/* Fonts are self-hosted (SIL Open Font License, see /fonts/OFL-*.txt). */
@font-face { font-family: 'Shrikhand'; src: url('/fonts/shrikhand-latin-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url('/fonts/rubik-latin-wght.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'DotGothic16'; src: url('/fonts/dotgothic16-latin-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

/* Layout: one claw machine standing on arcade carpet, its prize shelf beside it (below it on phones). */
:root {
  color-scheme: dark;
  --carpet: #17123a;
  --carpet-1: #ff4fa3; --carpet-2: #36d8ff; --carpet-3: #ffe14f; --carpet-4: #5ef0a0; --carpet-5: #a77bff;
  --ink: #fbf5ff;
  --ink-soft: #c7bce6;
  --panel: #231b4b;
  --panel-edge: #3b3078;
  --focus: #ffe14f;
  /* the machine itself is the same object in any light */
  --cab: #43c6ad; --cab-deep: #2a917f; --cab-edge: #1b5b50; --cab-hi: #9ff0dc;
  --cherry: #e8414b; --cherry-deep: #a3202b;
  --butter: #ffd447; --butter-deep: #e0a21c;
  --chrome-hi: #f4f6fa; --chrome: #a5adbb; --chrome-lo: #5d6474;
  --led-bg: #1b0d10; --led: #ff7043; --led-glow: rgba(255,112,67,0.6);
  --wood: #b97a43; --wood-deep: #7a4a22; --wood-hi: #d99a5e;
  --paper: #fffaf1; --paper-ink: #2a1a2e; --paper-soft: #6e5f75;
  --r-common: #7d8396; --r-uncommon: #23a372; --r-rare: #3b78dc; --r-legendary: #d8960f; --r-secret: #8a74c9; --r-none: #9a8f86;
  --font-display: 'Shrikhand', 'Cooper Black', Georgia, serif;
  --font-ui: 'Rubik', 'Avenir Next', system-ui, sans-serif;
  --font-led: 'DotGothic16', 'Courier New', monospace;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --carpet: #efe7ff;
    --carpet-1: #ee5f9f; --carpet-2: #2bb8dc; --carpet-3: #f0b90b; --carpet-4: #2fbf78; --carpet-5: #8a62f0;
    --ink: #22183d; --ink-soft: #5b507c; --panel: #ffffff; --panel-edge: #d9cdf3; --focus: #8a62f0;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --carpet: #efe7ff;
  --carpet-1: #ee5f9f; --carpet-2: #2bb8dc; --carpet-3: #f0b90b; --carpet-4: #2fbf78; --carpet-5: #8a62f0;
  --ink: #22183d; --ink-soft: #5b507c; --panel: #ffffff; --panel-edge: #d9cdf3; --focus: #8a62f0;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
img { max-width: 100%; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html, body { min-height: 100%; }
body {
  margin: 0;
  background-color: var(--carpet);
  background-image: var(--carpet-img, none);
  background-size: 360px 360px;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.floor {
  display: flex;
  gap: 36px;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 16px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- the cabinet ---------- */
.machine {
  position: relative;
  flex: 0 0 auto;
  width: clamp(300px, calc((100dvh - 344px) * 0.833 + 52px), 520px);
  padding: 0 14px 14px;
  border-radius: 30px 30px 16px 16px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.0) 0 6%, rgba(255,255,255,0.28) 8% 11%, rgba(255,255,255,0) 14% 86%, rgba(0,0,0,0.12) 92% 100%),
    linear-gradient(180deg, var(--cab-hi), var(--cab) 18%, var(--cab-deep));
  border: 3px solid var(--cab-edge);
  box-shadow: 0 2px 0 rgba(255,255,255,0.4) inset, 0 26px 40px -18px rgba(0,0,0,0.55);
  transform-origin: 50% 100%;
}
.machine.shaking { animation: shake 0.42s cubic-bezier(.36,.07,.19,.97); }
@keyframes shake {
  10%, 90% { transform: translateX(calc(var(--shake, 6px) * -0.3)) rotate(-0.4deg); }
  20%, 80% { transform: translateX(calc(var(--shake, 6px) * 0.5)) rotate(0.5deg); }
  30%, 50%, 70% { transform: translateX(calc(var(--shake, 6px) * -1)) rotate(-0.8deg); }
  40%, 60% { transform: translateX(var(--shake, 6px)) rotate(0.8deg); }
}

.marquee {
  position: relative;
  margin: 0 -14px 12px;
  padding: 12px 26px 10px;
  border-radius: 27px 27px 10px 10px;
  background: linear-gradient(180deg, #fff1a6, var(--butter) 55%, var(--butter-deep));
  border-bottom: 3px solid var(--cab-edge);
  text-align: center;
  overflow: hidden;
}
.bulbs { position: absolute; inset: 0; pointer-events: none; }
.bulb {
  position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: #fff8d6; box-shadow: 0 0 8px 2px rgba(255,248,214,0.95);
  animation: chase 1.1s steps(1) infinite;
}
.bulb:nth-child(odd) { animation-delay: -0.55s; }
@keyframes chase { 0% { background: #fff8d6; box-shadow: 0 0 8px 2px rgba(255,248,214,0.95); } 50% { background: #e8a91c; box-shadow: none; } }
.marquee-title {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 7.6vw, 40px);
  line-height: 1;
  color: var(--cherry);
  letter-spacing: 0.01em;
  text-shadow: 0 3px 0 var(--cherry-deep), 0 0 1px #fff;
  -webkit-text-stroke: 1.5px #fff;
  paint-order: stroke fill;
  text-wrap: balance;
}
.marquee-title em { font-style: normal; font-size: 0.55em; vertical-align: 0.35em; color: var(--cab-edge); -webkit-text-stroke: 0; text-shadow: none; }
.marquee-sub {
  position: relative;
  margin: 5px 0 0;
  font-size: 10px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cab-edge);
}

.window {
  position: relative;
  padding: 9px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--chrome-hi), var(--chrome) 45%, var(--chrome-lo));
  box-shadow: 0 0 0 2px #2e3340, 0 3px 0 rgba(255,255,255,0.35) inset;
}
#tank {
  display: block;
  width: 100%;
  aspect-ratio: 600 / 720;
  border-radius: 10px;
  background: #cfeaff;
  touch-action: none;
  cursor: default;
}
#tank.grab { cursor: pointer; }
#tank.aim { cursor: crosshair; }

.deck {
  margin-top: 10px;
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--cab-deep), #237867);
  box-shadow: 0 2px 0 rgba(255,255,255,0.25) inset, 0 -2px 0 rgba(0,0,0,0.2) inset;
  display: grid;
  gap: 8px;
}
.led {
  position: relative;
  height: 40px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle, rgba(255,112,67,0.09) 1px, transparent 1.6px) 0 0 / 5px 5px,
    var(--led-bg);
  box-shadow: 0 0 0 2px #0b0507 inset, 0 1px 0 rgba(255,255,255,0.25);
  font-family: var(--font-led);
  font-size: 22px;
  line-height: 40px;
  color: var(--led);
  text-shadow: 0 0 8px var(--led-glow);
  white-space: nowrap;
  letter-spacing: 0.06em;
}
.led span { position: absolute; left: 0; top: 0; padding: 0 12px; }
.led.center span { left: 50%; transform: translateX(-50%); }
.led.scroll span { animation: ledscroll var(--dur, 6s) linear infinite; }
.led.flash span { animation: ledflash 0.3s steps(1) infinite; }
@keyframes ledscroll { 0%, 18% { transform: translateX(0); } 82%, 100% { transform: translateX(var(--to, -300px)); } }
@keyframes ledflash { 50% { opacity: 0.15; } }

.deck-top { display: flex; gap: 8px; align-items: stretch; min-width: 0; }
.deck-top .led { flex: 1; min-width: 0; }
.readout {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  min-width: 58px; padding: 2px 8px;
  border-radius: 8px;
  background: var(--led-bg);
  box-shadow: 0 0 0 2px #0b0507 inset, 0 1px 0 rgba(255,255,255,0.25);
}
.label { font-size: 9px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #bff3e6; line-height: 1.2; }
.readout .label { color: #ffb59a; opacity: 0.8; }
.readout .val { font-family: var(--font-led); font-size: 19px; line-height: 1.05; color: #ffe9a8; font-variant-numeric: tabular-nums; text-shadow: 0 0 6px rgba(255,214,120,0.5); }
.claw-meter { display: flex; align-items: center; gap: 8px; padding: 0 2px; min-width: 0; }
.meter { flex: 1; height: 8px; min-width: 40px; border-radius: 4px; background: rgba(0,0,0,0.4); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #ff7043, #ffd447 55%, #7cf0b4); transition: width 0.5s; }
.conf-word { font-family: var(--font-led); font-size: 13px; color: #ffe9a8; white-space: nowrap; min-width: 9ch; text-align: right; }
.controls { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.stick { display: flex; align-items: center; gap: 6px; }
.nudge {
  width: 44px; height: 44px; border: 0; border-radius: 12px; cursor: pointer;
  background: linear-gradient(180deg, #2f3446, #1b1e2a);
  box-shadow: 0 3px 0 #0c0d13, 0 1px 0 rgba(255,255,255,0.2) inset;
  display: grid; place-items: center; color: #f4f6fa;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.nudge:active, .nudge.on { transform: translateY(2px); box-shadow: 0 1px 0 #0c0d13; }
.nudge svg { width: 16px; height: 16px; fill: currentColor; }
.stick-base {
  position: relative; width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #3a3f52, #15171f 70%);
  box-shadow: 0 2px 0 rgba(255,255,255,0.18) inset;
}
.stick-ball {
  position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -22px 0 0 -15px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff9aa0, var(--cherry) 45%, var(--cherry-deep));
  box-shadow: 0 5px 0 -1px #6b1219, 0 8px 10px rgba(0,0,0,0.4);
  transition: transform 0.12s;
}
.stick-ball::after {
  content: ''; position: absolute; left: 50%; top: 24px; width: 8px; height: 16px; margin-left: -4px; border-radius: 4px;
  background: linear-gradient(90deg, #6b7282, #e4e8ef, #6b7282); z-index: -1;
}
.drop-btn {
  justify-self: center;
  width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer;
  background: radial-gradient(circle at 38% 30%, #ff9ca2, var(--cherry) 42%, var(--cherry-deep) 78%);
  box-shadow: 0 7px 0 #6b1219, 0 12px 18px rgba(0,0,0,0.35), 0 0 0 5px #f2f4f8, 0 0 0 7px #5d6474;
  color: #fff; font-family: var(--font-display); font-size: 21px; letter-spacing: 0.02em;
  text-shadow: 0 2px 0 rgba(0,0,0,0.25);
  transition: transform 0.06s, box-shadow 0.06s;
  touch-action: manipulation;
}
.drop-btn:active { transform: translateY(5px); box-shadow: 0 2px 0 #6b1219, 0 4px 8px rgba(0,0,0,0.3), 0 0 0 5px #f2f4f8, 0 0 0 7px #5d6474; }
.drop-btn.insert { font-size: 15px; line-height: 1.05; }
.coin-box { display: grid; gap: 8px; justify-items: center; }
.coin-slot, .coin-return {
  border: 0; cursor: pointer; border-radius: 10px;
  background: linear-gradient(180deg, var(--chrome-hi), var(--chrome));
  box-shadow: 0 3px 0 var(--chrome-lo), 0 0 0 1px #3a3f4d inset;
  color: #2a2f3c; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.coin-slot { position: relative; width: 78px; padding: 8px 4px 7px; display: grid; justify-items: center; gap: 5px; }
.coin-slot .slot { width: 8px; height: 26px; border-radius: 4px; background: #15171f; box-shadow: 0 0 0 3px #d8a93c; }
.coin-slot:active, .coin-return:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--chrome-lo), 0 0 0 1px #3a3f4d inset; }
.coin-return { width: 78px; padding: 6px 4px; }
.coin-return.pulse { animation: pulse 0.9s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 3px 0 var(--chrome-lo), 0 0 0 1px #3a3f4d inset, 0 0 0 4px var(--butter); } }
.coin {
  position: absolute; width: 18px; height: 18px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #fff3b0, #ffc93c 50%, #c9871b);
  box-shadow: 0 0 0 1.5px #a86a12 inset;
  animation: coin 0.45s ease-in forwards;
}
@keyframes coin { from { transform: translateY(-34px) scale(1); opacity: 1; } 80% { opacity: 1; } to { transform: translateY(2px) scaleX(0.3); opacity: 0; } }

.kick { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.prize-door {
  position: relative; flex: 0 0 auto;
  width: 132px; height: 70px; border: 0; padding: 0; cursor: pointer; border-radius: 10px;
  background: linear-gradient(180deg, #120a18, #2a1838);
  box-shadow: 0 0 0 4px var(--chrome), 0 0 0 6px var(--chrome-lo);
  overflow: hidden;
}
.prize-door img { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -36px 0 0 -38px; animation: popin 0.5s cubic-bezier(.3,1.6,.6,1); }
@keyframes popin { from { transform: translateY(-50px) scale(0.6); } }
.door-flap {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(220,240,255,0.42), rgba(160,200,230,0.22));
  border-top: 2px solid rgba(255,255,255,0.6);
  font-size: 12px; font-weight: 800; letter-spacing: 0.3em; color: rgba(255,255,255,0.85);
  transform-origin: 50% 0;
  transition: transform 0.35s;
}
.prize-door.open .door-flap { transform: perspective(200px) rotateX(-58deg); }
.kick-right { display: flex; align-items: center; gap: 10px; }
.speaker {
  border: 0; cursor: pointer; padding: 8px 12px; border-radius: 10px;
  background: repeating-radial-gradient(circle at 50% 50%, #1d2029 0 2px, #333849 2px 4px);
  color: #e9edf5; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  box-shadow: 0 0 0 2px var(--chrome-lo);
}
.speaker[aria-pressed="false"] { color: #8b90a0; text-decoration: line-through; }
.serial { font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(10,40,34,0.75); text-align: right; line-height: 1.3; }

/* ---------- the shelf ---------- */
.side { flex: 0 1 380px; min-width: 0; display: grid; gap: 18px; padding-top: 6px; }
.side h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.1; text-wrap: balance; }
.side h2 span { color: var(--carpet-1); }
.side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.count { font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.bookcase {
  position: relative;
  padding: 12px 12px 4px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--wood-hi), var(--wood) 30%, var(--wood-deep));
  box-shadow: 0 0 0 3px #4d2c12, 0 18px 30px -16px rgba(0,0,0,0.6);
}
.bookcase-top { position: absolute; right: 14px; top: -64px; width: 74px; height: 74px; }
.bookcase-top img { width: 100%; height: 100%; }
.shelf { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0 6px; }
.cubby {
  position: relative;
  aspect-ratio: 1;
  margin-bottom: 8px;
  border: 0; padding: 2px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #5a3417, #7a4a22 70%, #8f5a2c);
  box-shadow: 0 6px 0 -2px #4d2c12, 0 3px 6px rgba(0,0,0,0.45) inset;
  display: grid; place-items: center;
}
.cubby img { width: 100%; height: 100%; object-fit: contain; }
.cubby.unknown img { filter: brightness(0) opacity(0.32); }
.cubby.owned { cursor: pointer; }
.cubby.owned:hover img { transform: translateY(-2px) rotate(-3deg); }
.cubby .n {
  position: absolute; right: 1px; bottom: 1px;
  padding: 0 4px; border-radius: 6px;
  background: var(--butter); color: #3a2410; font-size: 10px; font-weight: 800; line-height: 15px;
}
.cubby.unknown { cursor: help; }
.shelf-hint {
  justify-self: start; margin: -6px 0 0; min-height: 1.45em; padding: 5px 12px; border-radius: 8px;
  background: var(--panel); box-shadow: 0 0 0 1px var(--panel-edge) inset;
  font-size: 14px; font-weight: 700; color: var(--ink-soft);
  letter-spacing: 0.04em; overflow-wrap: anywhere;
}
.shelf-hint b { color: var(--ink); letter-spacing: 0.12em; }
.cubby.fresh { animation: fresh 1.2s ease-out; }
@keyframes fresh { 0% { box-shadow: 0 0 0 4px var(--butter), 0 6px 0 -2px #4d2c12; } 100% { box-shadow: 0 6px 0 -2px #4d2c12, 0 3px 6px rgba(0,0,0,0.45) inset; } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { padding: 8px 10px; border-radius: 10px; background: var(--panel); box-shadow: 0 0 0 1px var(--panel-edge) inset; min-width: 0; }
.stat b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat span { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.howto { padding: 12px 14px; border-radius: 10px; background: var(--panel); box-shadow: 0 0 0 1px var(--panel-edge) inset; }
.howto summary { cursor: pointer; font-weight: 700; }
.howto ul { margin: 10px 0 2px; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-soft); max-width: 62ch; }
.howto kbd { font-family: var(--font-ui); font-size: 12px; padding: 1px 5px; border-radius: 4px; background: var(--panel-edge); color: var(--ink); }
.about { display: grid; gap: 6px; padding: 12px 14px; border-radius: 10px; background: var(--panel); box-shadow: 0 0 0 1px var(--panel-edge) inset; }
.reset { justify-self: start; border: 0; background: none; padding: 4px 0; color: var(--ink-soft); font-size: 13px; text-decoration: underline; cursor: pointer; }
.reset.armed { color: var(--carpet-1); font-weight: 700; }
.credit { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-soft); max-width: 62ch; }
.credit a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.credit a:hover { text-decoration-thickness: 2px; }

/* ---------- the hang tag ---------- */
.tag-overlay {
  position: fixed; inset: 0; z-index: 20;
  display: grid; place-items: center;
  padding: 16px;
  background: rgba(12, 8, 30, 0.62);
  backdrop-filter: blur(2px);
}
.tag {
  position: relative;
  width: min(360px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 34px 22px 20px;
  border-radius: 18px 18px 14px 14px;
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: 0 24px 50px rgba(0,0,0,0.45);
  text-align: center;
  animation: tagin 0.5s cubic-bezier(.25,1.5,.5,1);
}
@keyframes tagin { from { transform: translateY(-40px) rotate(-6deg) scale(0.85); opacity: 0; } }
.tag::before {
  content: ''; position: absolute; left: 50%; top: 12px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: rgba(12, 8, 30, 0.62); box-shadow: 0 0 0 3px #d8a93c;
}
.tag-rarity {
  display: inline-block; margin-top: 4px; padding: 3px 10px; border-radius: 999px;
  color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--r-common);
}
.tag img { display: block; width: 168px; height: 168px; margin: 6px auto 0; }
.tag h2 { margin: 2px 0 0; font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.1; color: var(--cherry); text-wrap: balance; }
.tag-no { margin: 6px 0 0; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-soft); font-variant-numeric: tabular-nums; }
.tag-blurb { margin: 12px 0 0; font-size: 16px; text-wrap: pretty; }
.tag dl { margin: 14px 0 0; padding: 12px 0 0; border-top: 2px dashed #e6dccf; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; text-align: left; font-size: 14px; }
.tag dt { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-soft); padding-top: 3px; }
.tag dd { margin: 0; }
.tag-effect, .tag-note { margin: 12px 0 0; padding: 8px 10px; border-radius: 10px; font-size: 14px; font-weight: 700; }
.tag-effect { background: #fff1c2; color: #6b4a0a; }
.tag-note { background: #e9f7f2; color: #1f5c4c; }
.tag-btn {
  margin-top: 16px; width: 100%; border: 0; cursor: pointer;
  padding: 13px 16px; border-radius: 12px;
  background: var(--cherry); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: 0.02em;
  box-shadow: 0 4px 0 var(--cherry-deep);
}
.tag-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--cherry-deep); }

.page-foot { grid-column: 1 / -1; font-size: 12px; color: var(--ink-soft); }

@media (max-width: 880px) {
  .floor { flex-direction: column; align-items: center; gap: 28px; }
  .machine { width: min(100%, 470px); }
  .side { width: min(100%, 470px); flex-basis: auto; }
}
@media (max-width: 420px) {
  .machine { padding: 0 10px 10px; border-radius: 24px 24px 14px 14px; }
  .marquee { margin: 0 -10px 10px; padding: 14px 18px 12px; }
  .deck { padding: 10px; }
  .controls { gap: 8px; }
  .drop-btn { width: 80px; height: 80px; font-size: 19px; }
  .nudge { width: 40px; height: 44px; }
  .stick-base { width: 44px; height: 44px; }
  .coin-slot, .coin-return { width: 70px; }
  .readout { min-width: 50px; padding: 2px 6px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .shelf { grid-template-columns: repeat(6, 1fr); gap: 0 4px; }
  .led { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .bulb, .led.flash span, .coin-return.pulse { animation: none; }
  .machine.shaking { animation: none; }
  .tag, .prize-door img { animation: none; }
}
