dialog.shop-guide {
  position: fixed;
  inset: auto 0 0;
  margin: 0 auto;
  width: 100%;
  max-width: none;
  max-height: 92dvh;
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px 24px 0 0;
  background: #171732;
  color: white;
  font: 400 16px/1.5 "Proxima Nova", ui-sans-serif, system-ui, sans-serif;
  font-kerning: normal;
  font-feature-settings: "salt";
  text-align: center;
  box-shadow: 0 40px 100px -30px rgb(0 0 0 / 95%);
}
.shop-guide::backdrop { background: rgba(8,8,20,.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (max-width: 639.98px), (hover: none) and (pointer: coarse) and (max-height: 639.98px) {
  .frame:has(.shop-guide:modal) {
    max-height: calc(100dvh - var(--mast));
    overflow: clip;
  }
}
.shop-guide[open] { display: flex; flex-direction: column; }
.shop-guide-scroll { overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.shop-guide button { appearance: none; margin: 0; cursor: pointer; font-family: inherit; border: 0; }
.shop-guide button:focus-visible { outline: 2px solid #ffb200; outline-offset: 2px; }
.shop-guide[data-initial-focus] .shop-guide-close:focus {
  outline: none;
}
.shop-guide[data-initial-focus]:not([data-home-entry]) .shop-guide-close:focus-visible { outline: auto 1px #eee; outline-offset: 0; }
.shop-guide .shop-guide-close {
  position: absolute; top: 16px; right: 16px; z-index: 2; display: grid; place-items: center;
  width: 36px; height: 36px; min-height: 0; padding: 0; border-radius: 50%;
  background: rgba(8,8,20,.3); color: #abadcc;
}
.shop-guide-stage {
  position: relative; display: grid; place-items: center; height: 220px; overflow: hidden;
  background: #111129;
  isolation: isolate; border-radius:24px 24px 0 0;
}
.shop-guide .shop-guide-rays {
  --rays:rgb(128 25 255 / 16%);
  top:50%; width:160%; z-index:-1; opacity:1; filter:none;
}
.shop-guide-stage::after {
  content:''; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:radial-gradient(45% 50% at 50% 55%,rgb(128 25 255 / 26%),transparent 72%);
}
.shop-guide-foreground { max-width:100%; }
.shop-guide-picture { position: relative; display: flex; align-items: center; justify-content: center; max-width: 100%; }
.shop-guide-picture img { display: block; object-fit: contain; padding: 0; margin: 0; border: 0; }
.shop-guide[data-step="1"] .shop-guide-picture { width: 240px; height: 170px; }
.shop-guide[data-step="1"] img {
  position: absolute; left: 50%; bottom: 0; width: auto; height: 100%; max-width: 100%; object-fit: fill;
  filter: drop-shadow(0 14px 18px #0009);
}
.shop-guide-left { transform: translateX(-96%) rotate(-12deg); }
.shop-guide-right { transform: translateX(-4%) rotate(12deg); }
.shop-guide-center { z-index: 1; transform: translateX(-50%); }
.shop-guide .shop-guide-pack { width: auto; height: 180px; max-width: 100%; filter: drop-shadow(0 18px 24px #0009); }
.shop-guide-opening { position:relative; max-width:100%; }
.shop-guide-seam::after {
  content:''; position:absolute; inset:16% 0 auto; height:4px; border-radius:999px;
  background:white; box-shadow:0 0 30px 10px #f2b33d; filter:blur(2px);
}
.shop-guide[data-step="3"] .shop-guide-picture { gap: 16px; padding-inline: 10px; box-sizing: border-box; }
.shop-guide .shop-guide-prize {
  width: auto; max-width: min(255px,calc(100vw - 116px)); height: 170px; border-radius: 8px;
  box-shadow: 0 0 40px -6px #ff4fa3;
}
.shop-guide-offers { display: grid; gap: 8px; flex-shrink: 0; text-align: left; }
.shop-guide-offers span { padding: 8px 12px; border-radius: 10px; background: #08081480; font-size: 12px; line-height: 18px; font-weight: 800; }
.shop-guide-offers span:first-child { font-variant-numeric: tabular-nums; }
.shop-guide-keep { display: flex; align-items: center; gap: 6px; }
.shop-guide-body { padding: 24px 24px max(24px,env(safe-area-inset-bottom)); }
.shop-guide .shop-guide-count { margin: 0; color: #abadcc; font-size: 12px; line-height: 18px; font-weight: 800; font-variant-numeric:tabular-nums; letter-spacing: .12em; text-transform: uppercase; }
.shop-guide .shop-guide-title { margin: 8px 0 0; padding: 0; color: #fff; font-family: inherit; font-size: 28px; line-height: 1.12; font-weight: 800; letter-spacing: -.015em; }
.shop-guide .shop-guide-description { margin: 8px 0 0; color: #abadcc; font-size: 15px; font-weight: 500; line-height: 22.5px; }
.shop-guide-dots { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.shop-guide-dots i { display: block; width: 6px; height: 6px; border-radius: 9px; background: #fff3; }
.shop-guide-dots [data-current] { width: 24px; background: #6443f5; }
.shop-guide-actions { display: flex; gap: 10px; margin-top: 24px; }
.shop-guide-actions button { height: 48px; padding: 0 20px; border-radius: 12px; color: #abadcc; font-size: 15px; line-height: 1.5; font-weight: 900; -webkit-text-stroke: .03em currentColor; }
.shop-guide-back { background: #111129; }
.shop-guide[data-step="1"] .shop-guide-back { padding-inline: 16px; background: transparent; font-size: 14px; font-weight: 700; -webkit-text-stroke: 0; }
.shop-guide-actions .shop-guide-next {
  flex: 1; padding: 0; border: 2px solid transparent; color: white;
  background: linear-gradient(#2f10ba,#6443f5) padding-box,linear-gradient(#4424d1,#7b5dff) border-box;
  box-shadow: 0 6px 20px #0000001a;
}
@media (hover:hover) {
  .shop-guide-next:hover { transform: scale(1.04); filter: brightness(1.1); }
  .shop-guide:not([data-step="1"]) .shop-guide-back:hover { transform: scale(1.04); background: #171732; color: white; }
  .shop-guide[data-step="1"] .shop-guide-back:hover, .shop-guide .shop-guide-close:hover { color: white; }
}
.shop-guide .shop-guide-next:active, .shop-guide:not([data-step="1"]) .shop-guide-back:active { transform: scale(.98); }
.shop-guide .shop-guide-close:active { transform: scale(.96); }
@media (min-width:640px) {
  dialog.shop-guide { inset: 0; margin: auto; width: min(440px,calc(100% - 32px)); border-radius: 24px; }
  .shop-guide-body { padding: 28px; }
}
@keyframes guide-grow { from { transform:scale(.94); } }
@keyframes guide-fade { from { opacity:0; } }
@keyframes guide-fade-out { to { opacity:0; } }
@keyframes guide-sheet-in { from { transform:translateY(28px); } }
@keyframes guide-sheet-out { to { transform:translateY(28px); opacity:0; } }
@keyframes guide-panel-in { from { transform:translateY(8px) scale(.98); } }
@keyframes guide-panel-out { to { transform:scale(.98); opacity:0; } }
@keyframes guide-shake {
  25% { translate: -3px 1px; rotate: -1.5deg; }
  50% { translate: 3px -1px; rotate: 1.5deg; }
  75% { translate: -2px 1px; rotate: -1deg; }
}
@media (prefers-reduced-motion:no-preference) {
  :root:not(.reduced-motion) .shop-guide:not(.shop-guide-still) button { transition: transform .125s cubic-bezier(.22,.61,.36,1), filter .125s, color .125s, background-color .125s; }
  :root:not(.reduced-motion) .shop-guide:not(.shop-guide-still) .shop-guide-close {
    transition: transform .16s cubic-bezier(.22,1,.36,1), color .125s cubic-bezier(.22,.61,.36,1),
      background-color .125s cubic-bezier(.22,.61,.36,1), opacity .125s cubic-bezier(.22,.61,.36,1);
  }
  .shop-guide {
    --guide-enter:guide-sheet-in .28s; --guide-fade-time:.2s; --guide-leave:guide-sheet-out .18s;
  }
  @media (min-width:640px) {
    .shop-guide { --guide-enter:guide-panel-in .24s; --guide-fade-time:.18s; --guide-leave:guide-panel-out .14s; }
  }
  :root:not(.reduced-motion) .shop-guide[open]:not(.shop-guide-still) {
    animation:var(--guide-enter) cubic-bezier(.22,1,.36,1) backwards,guide-fade var(--guide-fade-time) cubic-bezier(.22,1,.36,1) backwards;
  }
  :root:not(.reduced-motion) .shop-guide[open]:not(.shop-guide-still)::backdrop { animation:guide-fade .2s cubic-bezier(.22,1,.36,1) backwards; }
  :root:not(.reduced-motion) .shop-guide[open][data-closing]:not(.shop-guide-still) { animation:var(--guide-leave) cubic-bezier(.4,0,1,1) forwards; }
  :root:not(.reduced-motion) .shop-guide[open][data-closing]:not(.shop-guide-still)::backdrop { animation:guide-fade-out .14s cubic-bezier(.4,0,1,1) forwards; }
  :root:not(.reduced-motion) .shop-guide:not(.shop-guide-still) .shop-guide-picture {
    animation:guide-grow .42s cubic-bezier(.22,1,.36,1) backwards,guide-fade .3s cubic-bezier(.22,1,.36,1) backwards;
    animation-delay:33.334ms;
  }
  :root:not(.reduced-motion) .shop-guide:not(.shop-guide-still) .shop-guide-opening { animation: guide-shake .28s linear infinite; }
  :root:not(.reduced-motion) .shop-guide:not(.shop-guide-still) .shop-guide-dots i { transition: width .15s cubic-bezier(.2,.9,.3,1),background-color .15s cubic-bezier(.2,.9,.3,1); }
}
:root .shop-guide.shop-guide-still .shop-guide-rays { animation:none; }
