/* A shared retail palette, with the game's own objects as the visual language. */
:root {
  --ink: #102827; --ink-2: #173330; --ink-3: #24433e;
  --gold: #dfbe68; --gold-2: #e8cb79; --teal: #77c9b0;
  --ivory: #f6f5ec; --on-dark: #f6f5ec; --on-dark-muted: #b2c5bf;
  --radius: 10px; --radius-lg: 14px;
}
body { background: var(--ink); }
::selection { background: #e8cb79; color: #102827; }
.nav { border-radius: 10px; }
.nav.is-solid { background: #102827ed; }
.nav__links a { color: #fff; }
.btn { border-radius: 7px; box-shadow: none; }
.btn:hover { box-shadow: 0 8px 24px #0003; }
.btn--teal { --fg: #102827; }
.hero__title { letter-spacing: -.045em; }
.hero__title .line { text-shadow: 0 4px 24px #0005; }
.hero__title .line--alt { text-shadow: 0 4px 24px #0005; }
.hero__shade { background: linear-gradient(90deg,#102827d9, #10282722 85%),linear-gradient(0deg,#102827, transparent 35%,#10282755); }
.belt { background: #173330; border-block: 1px solid #a8d9c72b; padding-block: 22px; }
.belt::before { background: linear-gradient(90deg,#173330,transparent); }
.belt::after { background: linear-gradient(-90deg,#173330,transparent); }
.item { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.item img { object-fit: contain; filter: drop-shadow(0 8px 5px #0003); }
.item__price { border-radius: 3px; }
.game { color: var(--on-dark); background: var(--ink); }
.game__lede { color: var(--on-dark); }
.game__copy > p:not(.kicker):not(.game__lede), .game__meta { color: var(--on-dark-muted); }
.kicker { color: var(--teal); font-size: 14px; }
.facts li { background: transparent; box-shadow: none; border: 0; border-left: 1px solid #ffffff30; border-radius: 0; }
.facts strong { color: var(--gold-2); }
.facts span { color: var(--on-dark-muted); }
.receipt__paper { background: #f6f5ec; --tear: radial-gradient(circle at 10px -4px, transparent 12px, #f6f5ec 12.5px); }
.iconbtn { border-color: #b2c5bf; color: var(--ivory); }
.next { overflow: clip; background: #173330; }
.next::before { display: none; }
.tape { margin: 0; padding-block: 22px; background: #e8cb79; transform: none; filter: none; border-block: 1px solid #102827; }
.tape span { color: #102827; font-size: 1rem; text-shadow: none; letter-spacing: .18em; }
.next__head { padding-top: 90px; }
.next__logo { width: min(700px,90%); }
.clip { background: #102827; box-shadow: none; border: 1px solid #b2c5bf30; }
.clip__n { color: #a5c6b8; }
.stores__track figure { border-radius: 8px; }
.stores__track figcaption { border-radius: 4px; background: #102827e6; }
.studio { background: #203d36; color: var(--ivory); border-top: 1px solid #b2c5bf30; }
.studio::after { display: none; }
.studio h2, .studio .kicker { color: var(--ivory); }
.studio__cols { color: #d4e0da; }
.values li { border-radius: 6px; background: #102827; color: var(--ivory); box-shadow: none; }
.footer { background: #0b201f; }
/* Scroll choreography lives inside this section; ordinary page scrolling is never intercepted. */
.store-run { position: relative; height: 240svh; margin-top: 80px; }
.store-run__sticky { position: sticky; top: 0; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 32px 0 20px; overflow: hidden; }
.store-run__header { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 22px; }
.store-run__header .kicker { margin-bottom: 8px; }
.store-run__header h3 { font-size: clamp(2rem,4vw,3.5rem); }
.store-scene { --diorama-ratio: 1.185; position: relative; width: min(calc(100% - 2 * var(--gutter)),1050px,calc(57svh * var(--diorama-ratio))); margin: 0 auto; aspect-ratio: var(--diorama-ratio); isolation: isolate; }
.diorama-fallback { width: 100%; height: 100%; object-fit: contain; }
.is-ready .diorama-fallback { visibility: hidden; }
.diorama-stage { position: absolute; inset: 0; opacity: 0; }
.is-ready .diorama-stage { opacity: 1; }
.diorama-stage > img { position: absolute; max-width: none; user-select: none; pointer-events: none; }
.diorama-floor { filter: drop-shadow(0 16px 18px #061c2066); }
.diorama-fixture { filter: drop-shadow(4px 7px 3px #17333040); transition: transform .5s var(--ease),opacity .5s; }
.diorama-cart { position: absolute; aspect-ratio: 1; background-repeat: no-repeat; background-size: 800% 100%; transform: translate(var(--anchor-x),var(--anchor-y)); pointer-events: none; will-change: left,top; }
.diorama-cart::before { content: ''; position: absolute; left: 30%; top: 60%; width: 42%; height: 14%; border-radius: 50%; background: #082a2438; filter: blur(2px); z-index: -1; }
.diorama-route { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.diorama-route path { fill: none; stroke: #e8cb79; stroke-width: 2; stroke-dasharray: 4 7; opacity: .55; }
.diorama-pickup { position: absolute; width: 2.5%; aspect-ratio: 1; pointer-events: none; filter: drop-shadow(0 3px 2px #0004); }
.diorama-pickup img { width: 100%; height: 100%; object-fit: contain; }
.cartcard button:disabled { opacity: .5; cursor: wait; }
.store-fleet { margin-top: 18px; }
.store-fleet .fleet__row { display: flex; justify-content: center; gap: 10px; }
.store-fleet .cartcard { width: 74px; aspect-ratio: auto; border-radius: 7px; box-shadow: none; background: #10282780; overflow: visible; transform: none; }
.cartcard button { border: 1px solid #b2c5bf30; border-radius: 7px; padding: 4px 8px 6px; background: transparent; color: white; width: 100%; cursor: pointer; }
.cartcard button[aria-pressed="true"] { border-color: var(--gold-2); background: #e8cb7920; }
.store-fleet .cartcard img { position: static; width: 42px; height: 36px; object-fit: contain; margin: auto; }
.store-fleet .cartcard span { position: static; display: block; padding: 0; font-size: 12px; font-style: normal; font-weight: 500; text-transform: none; background: none; box-shadow: none; }
.store-fleet .cartcard:hover { transform: translateY(-3px); }
.store-run__footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 12px; }
.store-run__footer p { font-family: var(--mono); font-size: 12px; color: #b2c5bf; margin: 0; }
.route-progress { width: 130px; height: 3px; background: #ffffff20; flex-shrink: 0; }
.route-progress span { display: block; height: 100%; width: 100%; background: var(--gold-2); transform: scaleX(0); transform-origin: left; }
@media (max-width:720px) {
 .store-run { height: 185svh; margin-top: 50px; }
 .store-run__header { align-items: start; flex-direction: column; gap: 16px; }
 .store-run__sticky { padding-block: 30px; }
 .store-scene { width: min(calc(100% - 20px),calc(51svh * var(--diorama-ratio))); }
 .store-fleet .cartcard { width: 58px; }
 .store-run__footer { flex-direction: column; gap: 10px; align-items: start; }
 .next__head { padding-top: 60px; }
}
@media (prefers-reduced-motion: reduce) {
 .store-run { height: auto; }
 .store-run__sticky { position: relative; min-height: auto; }
 .store-scene { max-height: none; }
}
/* A visible static presentation still works when scripts are unavailable. */
@media (scripting: none) { .reveal { opacity: 1; transform: none; } .store-run { height: auto; } .store-run__sticky { position: relative; } }
body { overflow-x: clip; }
html { overflow-x: clip; }

/* Click-to-spawn uses the transparent game-object exports. */
.hero__drops { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.drop {
  position: absolute; top: 0; left: 0; width: 76px; height: 76px;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 10px 22px -6px rgba(0, 0, 0, .55), inset 0 0 0 3px rgba(255, 255, 255, .85);
  will-change: transform;
}
.drop img { width: 100%; height: 100%; object-fit: cover; }
.fee {
  position: absolute; z-index: 1; pointer-events: none;
  font-weight: 800; font-style: italic; font-size: 20px; color: #ff6b6b;
  text-shadow: 0 2px 0 #3a0b0b, 0 0 14px rgba(0, 0, 0, .6);
  animation: fee 1s var(--ease) forwards;
}
@keyframes fee { from { opacity: 1; transform: translate(-50%, 0) scale(.8); } to { opacity: 0; transform: translate(-50%, -60px) scale(1.15); } }

.hero__damage {
  position: absolute; right: var(--gutter); bottom: clamp(90px, 14vh, 150px); z-index: 2;
  display: grid; justify-items: end; gap: 0;
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em;
  pointer-events: none;
}
.hero__damage-label { font-size: 12px; color: var(--on-dark-muted); }
.hero__damage-value { font-family: var(--font); font-weight: 900; font-style: italic; font-size: 44px; letter-spacing: 0; color: #fff; text-shadow: 0 3px 0 var(--slate); transition: transform .2s var(--spring), color .2s; }
.hero__damage-value.bump { transform: scale(1.18) rotate(-3deg); color: #ff8080; }
.hero__damage-hint { font-size: 11px; color: var(--gold-2); opacity: .85; }


.hero { cursor: crosshair; }
.drop { border-radius: 0; box-shadow: none; overflow: visible; }
.drop img { object-fit: contain; filter: drop-shadow(0 8px 3px #0004); }
.hero__damage { bottom: 40px; }
.hero__damage-hint { font-size: 12px; }
@media (max-width:720px) {
 .hero { cursor: default; }
 .hero__damage { top: 85px; bottom: auto; }
 .hero__damage-value { font-size: 30px; }
 .hero__damage-hint { display: none; }
}

/* User-gesture playback remains available when mobile Safari declines autoplay. */
/* A small icon with a generous invisible touch target. */
.video-toggle { position: absolute; z-index: 3; top: 4px; right: 4px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: transparent; cursor: pointer; display: grid; place-items: center; }
.video-toggle::before { content: ""; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid currentColor; filter: drop-shadow(0 1px 3px #000); }
.video-toggle[data-playing="true"]::before { width: 9px; height: 12px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box; }
.video-toggle:hover, .video-toggle:focus-visible { background: #10282780; }
.video-toggle:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 1px; }
.hero > .video-toggle { top: 100px; right: var(--gutter); }
@media (max-width:720px) { .hero > .video-toggle { top: 88px; left: var(--gutter); right: auto; } }
