/* ============================================================
   Chá Revelação — design system & animations
   Warm, playful, tactile. Everything stays colour-neutral
   (gold / ink) until the very last gift box, so nobody can
   guess the answer from the UI.
   ============================================================ */

:root {
  --cream:    #FFF9EF;
  --cream-2:  #FFF3E2;
  --pink-bg:  #FFE9F1;
  --ink:      #3E3350;
  --muted:    #8A7D6A;
  --muted-2:  #B0A38F;
  --panel:    #FFFFFF;

  --gold:     #F5C24B;
  --gold-dk:  #D89B2E;
  --gold-lt:  #FFE39B;

  --blue:     #4FA3F7;
  --blue-dk:  #2E82D8;
  --pink:     #FF6FA5;
  --pink-dk:  #E04E86;
  --green:    #5BD68A;
  --yellow:   #FFD25E;
  --orange:   #FF9B5C;
  --purple:   #B58CF0;

  --shadow:   0 12px 32px rgba(62, 51, 80, 0.15);
  --shadow-s: 0 6px 16px rgba(62, 51, 80, 0.12);
  --radius:   26px;
  --font:     'Trebuchet MS', 'Segoe UI', 'Comic Sans MS', system-ui, sans-serif;
}

* { box-sizing: border-box; }

/* overscroll-behavior disables the browser's pull-to-refresh: dragging the
   slot lever (or any downward swipe) must never reload the app and reset the
   guest back to the first game. This is a full-screen experience, not a page
   that needs pull-to-refresh. */
html, body { margin: 0; padding: 0; overscroll-behavior: none; }

body {
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, var(--cream-2) 0%, transparent 46%),
    radial-gradient(circle at 84% 84%, var(--pink-bg) 0%, transparent 46%),
    var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* floating background dots for a bit of depth */
.bg-decor { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-decor span {
  position: absolute;
  font-size: 26px;
  opacity: 0.18;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0%   { transform: translateY(20px) rotate(0deg); }
  100% { transform: translateY(-24px) rotate(18deg); }
}

/* ---- layout shell -------------------------------------------------- */
.app {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px 40px;
}

.stage {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* auto margins centre the active stage vertically, yet still allow
     scrolling if a stage is taller than the screen (no clipped top) */
  margin-block: auto;
}

.hidden { display: none !important; }

/* ---- typography ---------------------------------------------------- */
h1.title { font-size: clamp(26px, 7vw, 34px); font-weight: 800; margin: 6px 0 2px; }
.subtitle { color: var(--muted); font-weight: 600; margin: 0 0 18px; font-size: 15px; }

/* ---- intro / welcome screen ---------------------------------------- */
.intro-hearts {
  display: flex; justify-content: center; align-items: center;
  gap: 14px; margin-bottom: 10px; line-height: 1;
}
.intro-hearts span { font-size: 38px; animation: bob 2.4s ease-in-out infinite; }
.intro-hearts .h-bear { font-size: 76px; animation-delay: .15s; }
.intro-hearts .h-pink { animation-delay: .3s; }
.intro-kicker {
  text-transform: uppercase; letter-spacing: 4px;
  font-weight: 700; color: var(--gold-dk); font-size: 14px; margin: 0 0 2px;
}
.intro-lead { max-width: 380px; line-height: 1.5; font-size: 16px; margin: 12px auto; }
.intro-from { color: var(--ink); font-weight: 600; font-size: 16px; margin: 20px 0 0; line-height: 1.4; }
.intro-from b { font-size: 21px; }
.eyebrow  { font-size: 12px; letter-spacing: 3px; font-weight: 800; color: var(--muted-2); }

/* ---- buttons ------------------------------------------------------- */
.btn {
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 800;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  padding: 16px 40px;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(62, 51, 80, 0.3);
  transition: transform .12s ease, box-shadow .12s ease, background .2s;
}
.btn:hover:not(:disabled)  { transform: translateY(-2px); }
.btn:active:not(:disabled) { transform: translateY(1px) scale(.98); }
.btn:disabled { background: #CFC6B8; cursor: not-allowed; box-shadow: none; }
.btn.gold  { background: linear-gradient(135deg, var(--gold), var(--gold-dk)); color: #4a3a10; }
.btn.ghost { background: #F3EDE1; color: var(--muted); box-shadow: none; padding: 12px 24px; font-size: 16px; }
.btn.pulse { animation: pulse 1.6s ease-in-out infinite; }

@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes bob   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes shake {
  0%,100% { transform: rotate(-6deg) scale(1.04); }
  50%     { transform: rotate(6deg)  scale(1.07); }
}

/* ---- progress trail ------------------------------------------------ */
.trail { display: flex; align-items: center; gap: 6px; margin: 4px 0 22px; }
.trail .node {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-size: 18px;
  background: #F1E9D8; color: var(--muted-2);
  border: 2px solid #E6DBC4;
  transition: all .3s ease;
}
.trail .node.done {
  background: linear-gradient(135deg, var(--gold-lt), var(--gold));
  border-color: var(--gold-dk); color: #4a3a10;
}
.trail .node.active {
  background: var(--ink); color: #fff; border-color: var(--ink);
  transform: scale(1.14); box-shadow: 0 6px 14px rgba(62,51,80,.3);
}
.trail .link { width: 16px; height: 3px; border-radius: 2px; background: #E6DBC4; }
.trail .link.done { background: var(--gold); }

/* ---- generic panel / card ----------------------------------------- */
.panel {
  width: 100%;
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.panel.dashed { border: 3px dashed #E8DCC8; }

.status {
  min-height: 26px;
  font-weight: 800;
  font-size: 17px;
  color: var(--orange);
  margin: 12px 0 0;
}

/* ---- setup form ---------------------------------------------------- */
.seg-toggle { display: flex; gap: 12px; margin-bottom: 20px; }
.seg-toggle button {
  flex: 1; border: none; cursor: pointer; font-family: var(--font);
  border-radius: 18px; padding: 14px 0; font-size: 18px; font-weight: 800;
  background: #F3EDE1; color: var(--ink); transition: all .15s;
}
.seg-toggle button.on-boy  { background: var(--blue); color: #fff; transform: scale(1.04); }
.seg-toggle button.on-girl { background: var(--pink); color: #fff; transform: scale(1.04); }

.field {
  width: 100%; border-radius: 14px; padding: 13px 16px; margin-bottom: 10px;
  font-family: var(--font); font-weight: 700; font-size: 16px;
  background: #F3EDE1; border: 2px solid transparent; outline: none; color: var(--ink);
}
.field:focus { border-color: var(--ink); background: #fff; }
.label { font-weight: 800; margin: 4px 0 8px; text-align: left; }

/* ============================================================
   GAME 1 — Roleta (roulette)
   ============================================================ */
/* Square, responsive wheel: fills the stage on phones, capped on desktop. */
.wheel-wrap { position: relative; width: min(88vw, 440px); aspect-ratio: 1; margin: 0 auto; }
.wheel-pointer { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); z-index: 3; }
.wheel-svg { width: 100%; height: 100%; will-change: transform; filter: drop-shadow(0 10px 24px rgba(62,51,80,.28)); }

/* ============================================================
   GAME 2 — Claw machine
   ============================================================ */
.claw-machine {
  position: relative;
  width: 340px; height: 430px;
  margin: 0 auto;
  border-radius: 28px;
  background: linear-gradient(160deg, #FFE9A8, #F5C24B);
  box-shadow: var(--shadow), inset 0 0 0 6px rgba(255,255,255,.35);
  padding: 14px;
}
.claw-machine .marquee {
  height: 40px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  color: #fff; font-weight: 800; letter-spacing: 1px; font-size: 15px;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.15);
}
.claw-glass {
  position: relative; margin-top: 12px;
  width: 100%; height: 300px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(215,240,255,.75), rgba(190,225,250,.55));
  border: 3px solid rgba(255,255,255,.7);
  overflow: hidden;
}
.claw-rail {
  position: absolute; top: 8px; left: 8px; right: 8px; height: 6px;
  border-radius: 4px; background: rgba(62,51,80,.25);
}
.claw {
  position: absolute; top: 8px; left: 0; width: 56px; height: 53px;
  z-index: 70; will-change: transform;
}
.claw-svg { display: block; overflow: visible; filter: drop-shadow(0 3px 3px rgba(0,0,0,.2)); }
.coin { position: absolute; will-change: transform; }

.plush { position: absolute; z-index: 2; will-change: transform; }
.claw-chute {
  position: absolute; bottom: 0; right: 6px; width: 78px; height: 62px;
  border-radius: 12px 12px 14px 14px;
  background: rgba(62,51,80,.14);
  border: 2px dashed rgba(62,51,80,.3);
  display: grid; place-items: end center; padding-bottom: 6px;
  font-size: 11px; font-weight: 800; color: rgba(62,51,80,.5);
}
.claw-floor {
  position: absolute; bottom: 0; left: 0; right: 0; height: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.25), rgba(120,90,30,.18));
}

/* ============================================================
   GAME 3 — Caça-Níqueis (casino slot machine)
   --cell must match SLOT_CELL in src/game-slot.js; the window
   shows 3 rows and the centre one is the payline.
   ============================================================ */
.slot-machine {
  --cell: 72px;
  display: flex; align-items: stretch; justify-content: center;
  gap: 4px; width: 340px; margin: 2px auto 0;
}

/* ---- cabinet: pastel body with a gold metallic frame ---- */
.slot-cabinet {
  flex: 1; position: relative; padding: 10px 16px 14px;
  border-radius: 30px 30px 22px 22px;
  background:
    linear-gradient(165deg, #FFAFD1 0%, #C79BF2 52%, #86C2FF 100%);
  box-shadow:
    var(--shadow),
    inset 0 0 0 4px rgba(255,255,255,.4),
    inset 0 0 0 8px rgba(213,155,46,.55),
    inset 0 -10px 20px rgba(0,0,0,.18);
}
/* chrome side rails */
.slot-cabinet::before, .slot-cabinet::after {
  content: ""; position: absolute; top: 74px; bottom: 52px; width: 7px;
  border-radius: 6px; pointer-events: none;
  background: linear-gradient(90deg, #fff, #d6dce4 45%, #9aa2ad);
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.slot-cabinet::before { left: 5px; }
.slot-cabinet::after  { right: 5px; }

/* ---- marquee sign ---- */
.slot-topper {
  position: relative; margin: 0 -4px 10px; padding: 12px 10px 9px;
  border-radius: 16px; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, #3d3160, #241d3d);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.1), 0 4px 10px rgba(0,0,0,.3);
}
.slot-marquee {
  position: relative; font-weight: 800; font-size: 16px; letter-spacing: .5px;
  background: linear-gradient(180deg, #FFE9AE, #F5C24B 55%, #D89B2E);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.25));
}
/* shine sweep across the sign text */
.slot-marquee::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.75) 50%, transparent 60%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 3.2s ease-in-out infinite;
}
@keyframes sheen { 0%,70% { background-position: -160% 0; } 100% { background-position: 160% 0; } }
/* row of chasing bulbs above the sign */
.slot-bulbs { display: flex; justify-content: center; gap: 6px; margin-bottom: 7px; }
.slot-bulbs span {
  width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--gold));
  box-shadow: 0 0 5px var(--gold-lt);
  animation: blink 1s ease-in-out infinite; animation-delay: var(--d, 0s);
}

/* ---- reel screen ---- */
.slot-screen {
  padding: 4px; border-radius: 16px;
  background: linear-gradient(180deg, #cfd6df, #8b93a0);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.6), 0 3px 8px rgba(0,0,0,.25);
}
.slot-window {
  position: relative; display: flex; gap: 6px; justify-content: center;
  background: #1c1730; padding: 8px; border-radius: 12px;
  box-shadow: inset 0 4px 14px rgba(0,0,0,.6);
}
.slot-reel {
  position: relative; flex: 1; height: calc(var(--cell) * 3);
  overflow: hidden; border-radius: 8px;
  background: linear-gradient(180deg, #FFFDF6, #F3ECFF);
  box-shadow: inset 0 8px 12px rgba(0,0,0,.18), inset 0 -8px 12px rgba(0,0,0,.18);
  will-change: transform;
}
/* top/bottom rows fade so the centre symbol reads as the winner */
.slot-reel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 8px;
  background: linear-gradient(180deg,
    rgba(20,16,40,.42) 0%, rgba(20,16,40,0) 32%,
    rgba(20,16,40,0) 68%, rgba(20,16,40,.42) 100%);
}
.slot-strip { will-change: transform; }
.slot-cell { height: var(--cell); display: grid; place-items: center; font-size: 42px; }

/* highlighted centre band = payline */
.slot-payline {
  position: absolute; left: 6px; right: 6px; top: 50%; height: var(--cell);
  transform: translateY(-50%); pointer-events: none; border-radius: 6px;
  border-top: 2px solid rgba(255,90,90,.9); border-bottom: 2px solid rgba(255,90,90,.9);
  box-shadow: 0 0 12px rgba(255,90,90,.45), inset 0 0 22px rgba(255,215,120,.14);
}
/* glass glare over the whole screen */
.slot-glass {
  position: absolute; inset: 0; pointer-events: none; border-radius: 12px;
  background: linear-gradient(118deg,
    rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 26%,
    rgba(255,255,255,0) 72%, rgba(255,255,255,.1) 100%);
}

/* ---- console: running lights + coin slot ---- */
.slot-console { margin-top: 12px; }
.slot-lights { display: flex; justify-content: center; gap: 12px; }
.slot-lights span {
  width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #FFD25E); box-shadow: 0 0 7px #FFD25E;
  animation: blink 1.2s ease-in-out infinite;
}
.slot-lights span:nth-child(2){ animation-delay:.2s; background: radial-gradient(circle at 35% 30%, #fff, #FF6FA5); box-shadow: 0 0 7px #FF6FA5; }
.slot-lights span:nth-child(3){ animation-delay:.4s; background: radial-gradient(circle at 35% 30%, #fff, #5BD68A); box-shadow: 0 0 7px #5BD68A; }
.slot-lights span:nth-child(4){ animation-delay:.6s; background: radial-gradient(circle at 35% 30%, #fff, #4FA3F7); box-shadow: 0 0 7px #4FA3F7; }
.slot-lights span:nth-child(5){ animation-delay:.8s; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
/* coin acceptor: a small gold plate with a dark entry slit — no label, the
   coin animates into the slit on every pull (see spinSlot in game-slot.js) */
.slot-coin {
  margin: 12px auto 0; width: 46px; height: 22px; position: relative;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFE39B, #E7B143);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.7), 0 2px 5px rgba(0,0,0,.25);
}
/* the coin entry slit */
.slot-coin::before {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 28px; height: 6px; border-radius: 4px; background: #241d3d;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.8);
}
/* the coin that drops into the slit — hidden until a pull animates it in */
.slot-coin-fly {
  position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
  font-size: 20px; line-height: 1; opacity: 0; pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.35));
}

/* ---- animated pull lever on the side ---- */
/* touch-action: manipulation — the lever reacts to a tap, never to a drag,
   so swiping down on it does nothing (no scroll, no page reload). */
.slot-lever { position: relative; width: 36px; cursor: pointer; flex: none; touch-action: manipulation; }
.lever-track {
  position: absolute; left: 50%; top: 30%; bottom: 8px; width: 16px; transform: translateX(-50%);
  border-radius: 10px; background: linear-gradient(90deg, #b9c0cb, #eef1f5 50%, #b9c0cb);
  box-shadow: 0 2px 5px rgba(0,0,0,.3);
}
.lever-slot {
  position: absolute; left: 50%; top: 32%; width: 9px; height: 60%; transform: translateX(-50%);
  border-radius: 6px; background: #1c1730; box-shadow: inset 0 2px 4px rgba(0,0,0,.6);
}
.lever-arm {
  position: absolute; left: calc(50% - 4px); bottom: 16%; width: 8px; height: 58%;
  border-radius: 6px; background: linear-gradient(#f4f6f9, #9aa2ad); transform-origin: 50% 100%;
  box-shadow: 0 2px 4px rgba(0,0,0,.25);
}
.lever-ball {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff9a9a, #d63636);
  box-shadow: 0 4px 8px rgba(0,0,0,.35), inset 0 -3px 6px rgba(0,0,0,.25);
}
.lever-hub {
  position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6a6088, #3a3350);
  box-shadow: 0 3px 6px rgba(0,0,0,.3);
}

/* ============================================================
   FINALE — Unwrap the gift, tap by tap
   ============================================================ */
.gift-scene { position: relative; width: 100%; height: 340px; display: grid; place-items: center; }
.giftbox { position: relative; width: 190px; height: 170px; z-index: 2; }
.giftbox .base {
  position: absolute; bottom: 0; left: 0; right: 0; height: 118px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--gold), var(--gold-dk));
  box-shadow: var(--shadow);
}
.giftbox .base::after { /* vertical ribbon */
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 26px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #fff6, #fff2);
}
.giftbox .lid {
  position: absolute; top: 8px; left: -10px; right: -10px; height: 46px;
  border-radius: 12px; z-index: 3; will-change: transform;
  background: linear-gradient(160deg, #FFE39B, var(--gold));
  box-shadow: 0 8px 16px rgba(62,51,80,.25);
}
.giftbox .lid::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 26px;
  transform: translateX(-50%); background: linear-gradient(180deg, #fff8, #fff3);
}
.giftbox .bow { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 46px; z-index: 4; will-change: transform; }
/* wrapping paper: a grid of pieces (built in JS) that tear off tap by tap */
.giftbox .wrap {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: 12px; overflow: visible; box-shadow: var(--shadow);
}
.giftbox .shred {
  position: absolute; will-change: transform, opacity;
  background:
    radial-gradient(circle at 25% 28%, rgba(255,255,255,.75) 3px, transparent 4px) 0 0/24px 24px,
    repeating-linear-gradient(45deg, #B79CEB 0 14px, #D9C7F7 14px 28px);
  /* a faint seam around every piece so the paper reads as creased and torn */
  box-shadow: 0 0 0 0.5px rgba(62, 51, 80, .12) inset;
}
.giftbox.bobbing { animation: bob 2s ease-in-out infinite; }

/* The box springs open with a bright, colour-neutral light halo so the
   secret stays hidden until the reveal punches in on the next screen. */
.giftbox.opening::before {
  content: ''; position: absolute; left: 50%; top: 42%;
  width: 40px; height: 40px; transform: translate(-50%, -50%);
  border-radius: 50%; z-index: 1; pointer-events: none;
  background: radial-gradient(circle,
    rgba(255,255,255,.95) 0%, rgba(245,194,75,.55) 42%, rgba(245,194,75,0) 72%);
  animation: giftGlow 1.7s ease-out forwards;
}
@keyframes giftGlow {
  0%   { width: 30px;  height: 30px;  opacity: 0; }
  35%  { opacity: 1; }
  100% { width: 360px; height: 360px; opacity: .9; }
}

/* unwrap progress bar */
.unwrap-bar {
  width: 220px; max-width: 80%; height: 14px; margin: 16px auto 4px;
  border-radius: 99px; background: #EFE7D8; overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(62,51,80,.18);
}
.unwrap-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dk));
  transition: width .25s ease;
}

.reveal-text { position: relative; z-index: 3; margin-top: 8px; }
/* a baby face flanked by hearts — the face pops bigger and gives a gentle bob */
.reveal-emojis {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 46px; line-height: 1;
}
.reveal-emojis .side { animation: heartBeat 1.4s ease-in-out infinite; }
.reveal-emojis .side.b { animation-delay: .7s; }
.reveal-emojis .face { font-size: 78px; animation: faceBob 2.2s ease-in-out infinite; }
@keyframes heartBeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }
@keyframes faceBob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }
.reveal-text h2 { font-size: clamp(34px, 11vw, 52px); font-weight: 800; margin: 4px 0 0; }

#confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 40; }

/* full-screen white flash on the reveal punch — created + removed in JS */
.reveal-flash { position: fixed; inset: 0; z-index: 44; background: #fff; pointer-events: none; }

/* ---- click-to-continue overlay (between steps) --------------------- */
.gate {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(62, 51, 80, 0.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.gate-card {
  width: 100%; max-width: 380px; text-align: center;
  background: var(--panel); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 32px 28px 30px;
}
.gate-emoji { font-size: 66px; line-height: 1; animation: bob 1.9s ease-in-out infinite; }
.gate-title { font-size: clamp(24px, 7vw, 32px); font-weight: 800; margin: 12px 0 4px; }
.gate-sub   { color: var(--muted); font-weight: 600; font-size: 15px; margin: 0 0 22px; }
.gate .btn  { width: 100%; }
/* Alpine enter transition: pop up from slightly small + transparent */
.gate-in       { transition: transform .3s cubic-bezier(.2, 1.4, .5, 1), opacity .3s ease; }
.gate-in-start { opacity: 0; transform: scale(.82) translateY(14px); }
.gate-in-end   { opacity: 1; transform: scale(1) translateY(0); }

/* ---- voting -------------------------------------------------------- */
.vote-row {
  position: relative; width: 100%; text-align: left; overflow: hidden;
  background: #fff; border-radius: 18px; padding: 16px; margin-bottom: 12px;
  border: 3px solid #EFE7D8; cursor: pointer; box-shadow: var(--shadow-s);
  transition: border-color .2s;
}
.vote-row .fill { position: absolute; inset: 0 auto 0 0; opacity: .16; transition: width .4s ease; }
.vote-row .content { position: relative; display: flex; justify-content: space-between; align-items: center; }
.vote-row .name { font-size: 19px; font-weight: 800; }
.vote-row .count { font-weight: 700; color: var(--muted); font-size: 14px; }

/* ---- misc ---------------------------------------------------------- */
.sound-toggle {
  position: fixed; top: 14px; right: 14px; z-index: 60;
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: #fff; box-shadow: var(--shadow-s); font-size: 18px;
}
.token-fly { font-size: 30px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; animation-iteration-count: 1 !important; }
}

/* small screens: scale the fixed-size game stages down a touch */
@media (max-width: 380px) {
  .claw-machine { transform: scale(.94); }
  .slot-machine { transform: scale(.86); transform-origin: top center; margin-bottom: -28px; }
}

/* ============================================================
   DEV-ONLY step shortcuts. The .dev-jump markup in index.html is
   hidden by default and only revealed on local dev hosts, so this
   never appears on the live site. Safe to keep.
   ============================================================ */
.dev-jump {
  /* Hidden by default. The script in index.html adds .is-visible on
     local dev hosts, which flips this to flex. Keeps the bar off prod. */
  display: none;
  position: fixed;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  z-index: 9999;
  gap: 6px;
  align-items: center;
  padding: 6px 8px;
  background: rgba(62, 51, 80, 0.88);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  font-size: 12px;
}
.dev-jump.is-visible { display: flex; }
.dev-jump-label {
  color: #FFD25E;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0 4px;
}
.dev-jump button {
  border: 0;
  cursor: pointer;
  padding: 5px 9px;
  border-radius: 999px;
  background: #FFF9EF;
  color: #3E3350;
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
}
.dev-jump button:hover { background: #FFE39B; }
