/* ==========================================================================
   Booth styles
   ========================================================================== */

#gate.leave { opacity: 0; transition: opacity .6s; }
#map.is-active { animation: fade .8s var(--ease); }
.stop .door-glow { opacity: .9; transition: opacity .4s; }
.stop.locked .door-glow { opacity: 0; }
.stop.open .door-glow { animation: twinkle 1s ease-in-out infinite alternate; }

/* ---------- STARGAZING ------------------------------------------------- */
.scope-wrap { position: relative; margin-top: var(--s-2); }
.scope-wrap::before {   /* brass telescope housing */
  content: "";
  position: absolute; inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 30deg, #8a5a2a, #ffcf6b, #8a5a2a, #ffe39a, #8a5a2a);
  z-index: -1;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55), 0 0 60px rgba(255, 207, 107, .15);
}
.scope { display: block; border-radius: 50%; touch-action: none; cursor: crosshair; }
.scope-out { margin: var(--s-6) 0 var(--s-4); display: grid; place-items: center; min-height: 20px; }

/* ---------- ARCADE ----------------------------------------------------- */
.cabinet {
  width: max-content;
  max-width: 100%;
  padding: 0 var(--s-3) var(--s-4);
  background: linear-gradient(180deg, #2b2a6e, #1a1946);
  border-radius: 22px 22px 10px 10px;
  box-shadow: inset 0 0 0 3px #7fdcc6, inset 0 0 0 7px #1a1946, inset 0 0 0 9px #e2344f, 0 24px 50px rgba(0, 0, 0, .5);
  margin-top: var(--s-2);
}
.cab-marquee {
  margin: 0 calc(var(--s-3) * -1) var(--s-3);
  padding: var(--s-3) 0;
  text-align: center;
  border-radius: 22px 22px 0 0;
  background: repeating-linear-gradient(90deg, #e2344f 0 16px, #c42a44 16px 32px);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25);
}
.cab-marquee span {
  font-family: var(--f-sign); font-size: 24px; letter-spacing: .06em;
  color: var(--gold-hi);
  text-shadow: 0 0 10px var(--gold), 0 3px 0 #7a1630;
}
.cab-screen {
  position: relative;
  padding: 10px;
  background: #07060f;
  border-radius: 14px;
  box-shadow: inset 0 0 0 2px #333, inset 0 0 30px rgba(127, 220, 198, .15);
}
.cab-screen canvas { display: block; border-radius: 8px; touch-action: none; cursor: pointer; }
.cab-screen .toast { font-size: 24px; top: 30%; }
.cab-deck { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-3) 0; }
.cab-stick { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8aa0, #e2344f 60%, #7a1630); box-shadow: 0 8px 0 -3px #111, 0 10px 0 -2px #444; }
.cab-jump {
  width: 86px; height: 86px; border-radius: 50%;
  font-family: var(--f-sign); font-size: 20px; color: var(--ink);
  background: radial-gradient(circle at 35% 30%, var(--gold-hi), var(--gold) 45%, var(--gold-deep));
  box-shadow: 0 6px 0 #8a5a2a, 0 0 0 6px rgba(255, 207, 107, .18);
  touch-action: manipulation;
  transition: transform .08s, box-shadow .08s;
}
.cab-jump:active { transform: translateY(5px); box-shadow: 0 1px 0 #8a5a2a, 0 0 0 6px rgba(255, 207, 107, .18); }
.cab-coin { font-family: var(--f-mono); font-size: 9px; letter-spacing: .14em; color: #7fdcc6; border: 1px solid #7fdcc6; padding: 6px 6px; border-radius: 4px; animation: twinkle 1s steps(2) infinite; }
.arcade-gallery {
  display: grid; grid-template-columns: repeat(2, minmax(0, 150px));
  gap: var(--s-5) var(--s-4);
  justify-content: center;
  margin: var(--s-7) 0 var(--s-5);
}
.arcade-gallery .polaroid { animation: noteIn .7s var(--ease-back) both; }
@media (min-width: 700px) { .arcade-gallery { grid-template-columns: repeat(4, 150px); } }

/* ---------- CLAW MACHINE ----------------------------------------------- */
.claw-machine {
  width: min(340px, 100%);
  margin-top: var(--s-2);
  padding: 0 var(--s-3) var(--s-4);
  border-radius: 20px 20px 12px 12px;
  background: linear-gradient(180deg, #ff7a98, #e2547a);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .2), 0 24px 50px rgba(0, 0, 0, .5);
}
.cm-top { text-align: center; padding: var(--s-3) 0; }
.cm-top span { font-family: var(--f-mono); font-weight: 700; font-size: 12px; letter-spacing: .3em; color: var(--cream); background: var(--ink); padding: 6px 12px; border-radius: 4px; box-shadow: 0 0 0 2px var(--gold); }
.cm-glass {
  position: relative;
  height: min(330px, 46svh);
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .14) 0 12%, transparent 12% 20%, rgba(255, 255, 255, .07) 20% 24%, transparent 24%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 207, 107, .25), transparent 60%),
    #1a1236;
  box-shadow: inset 0 0 0 4px #c9cbd3, inset 0 0 30px rgba(0, 0, 0, .5);
}
.cm-rail { position: absolute; left: 0; right: 0; top: 0; height: 14px; background: repeating-linear-gradient(90deg, #c9cbd3 0 6px, #9a9caa 6px 10px); z-index: 4; }
.cm-claw { position: absolute; left: 0; top: 14px; width: 60px; z-index: 7; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.cm-cable { width: 3px; background: #c9cbd3; }
.cm-head { width: 60px; height: 52px; margin-top: -2px; }
.cm-head svg { width: 100%; height: 100%; overflow: visible; }
.cm-head .prong { transition: none; }
.cm-head .prong-l { transform-origin: 24px 14px; transform: rotate(var(--o, 20deg)); }
.cm-head .prong-r { transform-origin: 36px 14px; transform: rotate(calc(var(--o, 20deg) * -1)); }
.cm-chute {
  position: absolute; left: 0; bottom: 0;
  width: 24%; height: 72px;
  background: linear-gradient(180deg, #0b0818, #000);
  border-top: 4px solid var(--gold);
  border-right: 4px solid var(--gold);
  border-radius: 0 10px 0 0;
  display: grid; place-items: center;
  z-index: 3;
}
.cm-chute span { font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; color: var(--gold); }
.cap {
  position: absolute;
  width: 54px; height: 54px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .7) 0 5px, transparent 6px),
    linear-gradient(180deg, var(--c) 0 50%, rgba(255, 243, 220, .55) 50% 100%);
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .25), 0 4px 8px rgba(0, 0, 0, .4);
  display: grid; place-items: center;
  z-index: 2;
}
.cap span { font-size: 16px; color: var(--ink); margin-top: 18px; }
.cap.decor { opacity: .55; z-index: 1; filter: saturate(.7); }
.cap.held { z-index: 6; transition: none; }
.cap.falling { top: calc(100% + 20px) !important; transition: top .5s cubic-bezier(.5, 0, 1, .5); z-index: 2; }
.cm-panel { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4) var(--s-2) 0; }
.cm-arrows { display: flex; gap: var(--s-3); }
.cm-btn {
  width: 60px; height: 60px; border-radius: 12px;
  font-size: 22px; color: var(--ink);
  background: linear-gradient(180deg, var(--cream), var(--cream-dim));
  box-shadow: 0 5px 0 #b89d78;
  touch-action: none; user-select: none; -webkit-user-select: none;
  transition: transform .08s, box-shadow .08s;
}
.cm-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #b89d78; }
.cm-drop {
  width: 92px; height: 92px; border-radius: 50%;
  font-family: var(--f-sign); font-size: 20px; color: var(--cream);
  background: radial-gradient(circle at 35% 30%, #ff8aa0, var(--cherry) 55%, #8f1d33);
  box-shadow: 0 7px 0 #6d1426, 0 0 0 6px rgba(255, 243, 220, .25);
  touch-action: manipulation;
  transition: transform .08s, box-shadow .08s;
}
.cm-drop:active { transform: translateY(6px); box-shadow: 0 1px 0 #6d1426, 0 0 0 6px rgba(255, 243, 220, .25); }
.claw-machine .toast { font-size: 22px; top: 45%; }

.claw-reveal {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-6);
  padding: var(--s-5) var(--s-4);
  background: rgba(18, 13, 38, .88);
  animation: fade .3s;
}
.rv-capsule { position: relative; width: 90px; height: 90px; }
.rv-capsule span { position: absolute; left: 0; width: 90px; height: 45px; }
.rv-top { top: 0; border-radius: 45px 45px 0 0; background: var(--c); animation: capTop .8s var(--ease) forwards; }
.rv-bot { bottom: 0; border-radius: 0 0 45px 45px; background: rgba(255, 243, 220, .7); animation: capBot .8s var(--ease) forwards; }
@keyframes capTop { to { transform: translate(-40px, -30px) rotate(-35deg); opacity: 0; } }
@keyframes capBot { to { transform: translate(40px, 30px) rotate(25deg); opacity: 0; } }
.claw-reveal .note { margin-top: -90px; }
.rv-play { margin-top: var(--s-3); color: var(--wine); border-color: rgba(90, 29, 71, .4); }

/* ---------- SCRATCH-OFF ------------------------------------------------ */
.scratch-count { font-family: var(--f-mono); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin: var(--s-2) 0 var(--s-5); }
.scratch-deck { position: relative; width: min(340px, 100%); aspect-ratio: 1.7; margin-bottom: var(--s-6); }
.scard {
  position: absolute; inset: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  -webkit-mask: radial-gradient(circle 12px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 12px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 12px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 12px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  animation: rise .5s var(--ease-back);
}
.scard.ghost { transform: translateY(calc(var(--i) * 9px)) scale(calc(1 - var(--i) * .04)); background: var(--cream-dim); opacity: calc(1 - var(--i) * .25); animation: none; }
.scard-under {
  position: absolute; inset: 10px;
  border: 1.5px dashed rgba(90, 29, 71, .35);
  border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-align: center; color: var(--ink);
  padding: var(--s-3) var(--s-6);
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 207, 107, .35), transparent 70%);
}
.sc-kicker { font-family: var(--f-mono); font-weight: 700; font-size: 10px; letter-spacing: .3em; color: var(--cherry); }
.sc-prize { font-family: var(--f-serif); font-style: italic; font-weight: 700; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; font-size: clamp(24px, 7vw, 32px); line-height: 1.05; color: var(--wine); text-wrap: balance; }
.sc-fine { font-family: var(--f-hand); font-size: 19px; color: var(--ink); }
.sc-serial { font-family: var(--f-mono); font-size: 8px; letter-spacing: .12em; color: rgba(36, 20, 39, .5); text-transform: uppercase; margin-top: 4px; }
.scard.jackpot { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); }
.scard.jackpot .sc-prize { font-family: var(--f-sign); font-style: normal; color: var(--cherry); font-size: clamp(32px, 10vw, 44px); }
.scard-foil { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; transition: opacity .6s; }
.scard-foil.gone { opacity: 0; pointer-events: none; }
.scard.won { animation: pop .5s var(--ease-back); }

/* ---------- WHEEL ------------------------------------------------------ */
.wheel-wrap { position: relative; margin: var(--s-5) 0 var(--s-5); flex: none; }
.wheel-wrap::after {   /* stand */
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 70%; height: 70%;
  transform: translate(-50%, 0);
  background: linear-gradient(180deg, #d9932c, #8a5a2a);
  clip-path: polygon(46% 0, 54% 0, 80% 100%, 20% 100%);
  z-index: -1;
}
.wheel-cv { width: 100%; height: 100%; display: block; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .5)); }
.wheel-pointer {
  position: absolute; left: 50%; top: -14px;
  width: 34px; height: 44px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-deep));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .5));
  z-index: 2;
}
.wheel-hub {
  position: absolute; left: 50%; top: 50%;
  width: 26%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  font-family: var(--f-sign); font-size: clamp(16px, 4.5vw, 22px); color: var(--ink);
  background: radial-gradient(circle at 35% 30%, var(--gold-hi), var(--gold) 50%, var(--gold-deep));
  box-shadow: 0 0 0 5px var(--ink), 0 0 0 8px var(--gold), 0 8px 20px rgba(0, 0, 0, .5);
  transition: transform .2s var(--ease-back);
}
.wheel-hub:hover { transform: translate(-50%, -50%) scale(1.06); }
.wheel-hub:active { transform: translate(-50%, -50%) scale(.95); }
.wheel-out { display: grid; place-items: center; margin: var(--s-4) 0; }
.wheel-done { font-family: var(--f-sign); font-size: 26px; color: var(--gold); }
.note.quiz { width: min(340px, 100%); }
.note.quiz h3 { font-size: 24px; line-height: 1.2; text-wrap: balance; }
.quiz-opts { display: grid; gap: var(--s-2); margin-top: var(--s-4); }
.quiz-opt {
  display: flex; align-items: center; gap: var(--s-3);
  min-height: 48px;
  padding: var(--s-2) var(--s-3);
  text-align: left;
  font-family: var(--f-hand); font-size: 22px; line-height: 1.1;
  color: var(--ink);
  background: rgba(255, 255, 255, .55);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1.5px rgba(90, 29, 71, .25);
  transition: transform .15s var(--ease-back), box-shadow .2s, background .2s;
}
.quiz-opt:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--wine); transform: translateX(3px); }
.quiz-key {
  flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 12px; font-weight: 700;
  color: var(--cream); background: var(--wine);
}
.quiz-opt.right { background: var(--gold); box-shadow: inset 0 0 0 2px var(--gold-deep); animation: pop .4s var(--ease-back); }
.quiz-opt.right .quiz-key { background: var(--cherry); }
.quiz-opt.wrong { opacity: .45; text-decoration: line-through; animation: shake .4s; }
.quiz-msg { min-height: 1.4em; margin-top: var(--s-3) !important; text-align: center; }
.quiz-msg.yes { color: var(--wine); font-weight: 700; }
.quiz-msg.no { color: var(--cherry); }

/* ---------- BIG TENT: curtains ---------------------------------------- */
.curtains { position: fixed; inset: 0; z-index: 70; pointer-events: none; display: grid; place-items: center; }
.cur {
  position: absolute; top: 0; bottom: 0; width: 51%;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .3), transparent 20%),
    repeating-linear-gradient(90deg, #8f1d33 0 18px, #c42a44 18px 30px, #8f1d33 30px 44px);
  transition: transform 1.4s cubic-bezier(.7, 0, .3, 1);
  box-shadow: inset 0 -40px 60px rgba(0, 0, 0, .4);
}
.cur-l { left: 0; transform-origin: left; }
.cur-r { right: 0; transform-origin: right; }
.curtains.open .cur-l { transform: translateX(-100%) scaleX(.4); }
.curtains.open .cur-r { transform: translateX(100%) scaleX(.4); }
.cur-title { position: relative; z-index: 2; display: grid; text-align: center; transition: opacity .5s; }
.cur-title .t-script { transform: rotate(-6deg); font-size: clamp(2.4rem, 10vw, 4rem); }
.cur-big { font-family: var(--f-sign); font-size: clamp(2.4rem, 11vw, 5rem); color: var(--gold); text-shadow: 0 5px 0 #6d1426, var(--glow); }
.curtains.open .cur-title { opacity: 0; }

/* ---------- BIG TENT: cake builder ------------------------------------- */
.cake-scene {
  position: relative;
  width: 100%; max-width: 360px;
  min-height: 270px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-top: 70px;
  margin-top: var(--s-2);
}
.cake-empty { position: absolute; top: 45%; font-family: var(--f-hand); font-size: 24px; color: var(--muted); }
.cake { position: relative; display: flex; flex-direction: column-reverse; align-items: center; z-index: 2; touch-action: manipulation; }
.layer {
  position: relative;
  width: var(--w); height: 54px;
  border-radius: 10px 10px 6px 6px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .22), transparent 18%, transparent 75%, rgba(0, 0, 0, .25)),
    linear-gradient(180deg, transparent 55%, rgba(255, 255, 255, .25) 55% 62%, transparent 62%),
    var(--c);
  animation: layerIn .45s var(--ease-back);
  margin-top: -4px;
}
.layer::before {   /* frosting with drips */
  content: "";
  position: absolute; left: -3px; right: -3px; top: -6px; height: 34px;
  background:
    radial-gradient(circle at 50% 0, var(--f) 0 8px, transparent 8.5px) 4px 14px / 22px 22px repeat-x,
    radial-gradient(ellipse 5px 9px at 50% 0, var(--f) 0 98%, transparent) 15px 16px / 33px 18px repeat-x,
    linear-gradient(var(--f), var(--f)) 0 0 / 100% 16px no-repeat;
  border-radius: 12px 12px 0 0;
  transition: background .3s;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .1));
}
@keyframes layerIn { from { transform: translateY(-120px); opacity: 0; } }
.plate { width: 280px; height: 26px; margin-top: -10px; border-radius: 50%; background: radial-gradient(ellipse at 50% 30%, #fff, #d9cdb8 70%); box-shadow: 0 10px 20px rgba(0, 0, 0, .4); z-index: 1; }
.toppings { position: absolute; inset: -6px 0 0; z-index: 3; pointer-events: none; }
.tp { position: absolute; font-size: 22px; line-height: 1; animation: pop .3s var(--ease-back); }
.tp.sprinkle { width: 3px; height: 9px; border-radius: 2px; animation: none; }
.candles { position: absolute; bottom: calc(100% + 4px); left: -4%; right: -4%; display: flex; justify-content: space-evenly; align-items: flex-end; z-index: 4; }
.candle {
  position: relative;
  width: 9px; height: var(--h, 32px);
  border-radius: 2px 2px 0 0;
  background: repeating-linear-gradient(160deg, var(--cream) 0 5px, var(--rose) 5px 9px);
  box-shadow: inset -2px 0 0 rgba(0, 0, 0, .12);
  cursor: pointer;
}
.candle::before { content: ""; position: absolute; left: 50%; top: -6px; width: 1.5px; height: 6px; background: #3a2a2a; transform: translateX(-50%); }
.candle.num {   /* the big "4" and "8" */
  width: auto; height: auto;
  background: none; box-shadow: none;
  margin: 0 -2px;
}
.candle.num b {
  display: block;
  font-family: var(--f-sign); font-weight: 400;
  font-size: 46px; line-height: .9;
  color: var(--gold);
  -webkit-text-stroke: 2px var(--cherry);
  paint-order: stroke fill;
  text-shadow: 0 3px 0 #b5243b, 0 0 14px rgba(255, 207, 107, .5);
}
.candle.num::before { top: -5px; }
.flame {
  position: absolute; left: 50%; bottom: calc(100% + 3px);
  width: 14px; height: 24px;
  margin-left: -7px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(ellipse at 50% 75%, #fff 0 18%, #ffe27a 30%, #ff9a3c 60%, rgba(226, 52, 79, 0) 72%);
  filter: drop-shadow(0 0 8px #ffb347) drop-shadow(0 0 22px rgba(255, 179, 71, .7));
  transform-origin: 50% 100%;
  transform: scale(0);
  transition: transform .3s var(--ease-back);
  pointer-events: none;
}
.candle.lit .flame { transform: scale(1); animation: flicker .14s ease-in-out infinite alternate; }
.candle.lit .flame.windy { animation: windy .1s ease-in-out infinite alternate; }
.candle.out::after {   /* smoke */
  content: "";
  position: absolute; left: 50%; bottom: 100%;
  width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%;
  background: rgba(220, 210, 230, .55);
  filter: blur(3px);
  animation: smoke 1.6s ease-out forwards;
}
@keyframes flicker { from { transform: scale(1) rotate(-2deg); } to { transform: scale(.94, 1.06) rotate(2deg); } }
@keyframes windy { from { transform: scale(.85, .9) skewX(-14deg); } to { transform: scale(.75, .8) skewX(-26deg); } }
@keyframes smoke { to { transform: translate(8px, -60px) scale(3.5); opacity: 0; } }

.tray { width: 100%; max-width: 420px; margin-top: var(--s-6); text-align: center; }
@media (max-height: 760px) {
  .cake-scene { min-height: 210px; padding-top: 54px; margin-top: 0; }
  .layer { height: 46px; }
  .tray { margin-top: var(--s-4); }
  .tray-title { font-size: 22px; margin-bottom: var(--s-3); }
  .chip { min-height: 40px; }
}
.tray-step { font-family: var(--f-mono); font-size: 10px; letter-spacing: .3em; color: var(--gold); }
.tray-title { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-variation-settings: "opsz" 72, "SOFT" 100, "WONK" 1; font-size: 26px; margin: 4px 0 var(--s-4); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-2); }
.chip {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 44px;
  padding: 0 var(--s-4);
  border-radius: 10px;
  font-family: var(--f-serif); font-size: 15px;
  background: rgba(255, 243, 220, .07);
  box-shadow: inset 0 0 0 1.5px rgba(255, 243, 220, .2);
  transition: box-shadow .2s, background .2s, transform .15s var(--ease-back);
}
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--gold); }
.chip:active { transform: scale(.95); }
.chip.on { background: rgba(255, 207, 107, .16); box-shadow: inset 0 0 0 2px var(--gold); }
.chip i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.chip.emoji { font-size: 22px; padding: 0 var(--s-3); }
.chip.emoji:last-of-type { font-size: 14px; }
.chip.undo { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.chip.round { width: 52px; justify-content: center; padding: 0; font-size: 24px; }
.candle-count { font-family: var(--f-sign); font-size: 40px; min-width: 64px; color: var(--gold); }

/* ---------- BIG TENT: wish + party ------------------------------------ */
.booth { transition: background-color .8s; }
.booth::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: #050310; opacity: 0; transition: opacity 1s; z-index: 0; }
.booth.dim::after { opacity: .6; }
.booth > :is(.awning, .booth-head, .booth-stage, .booth-foot) { position: relative; z-index: 1; }
.booth.dim .awning, .booth.dim .booth-head { opacity: .4; transition: opacity 1s; }
.wish { text-align: center; margin-top: var(--s-2); }
.wish-line { font-family: var(--f-script); font-size: clamp(2.4rem, 10vw, 3.6rem); color: var(--gold-hi); text-shadow: var(--glow); animation: rise 1s var(--ease); }
.wish-sub { font-family: var(--f-hand); font-size: 24px; color: var(--cream-dim); animation: rise 1s .3s var(--ease) both; }
.wish-alt { align-self: center; font-family: var(--f-hand); font-size: 19px; color: var(--muted); }
.booth-foot:has(.wish-alt) { flex-direction: column; align-items: center; }
.meter { width: 200px; height: 8px; margin: var(--s-4) auto 0; border-radius: 4px; background: rgba(255, 243, 220, .12); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 4px; transition: width .08s; }
.meter span.hot { background: var(--mint); }
.marquee-title.hb { margin-top: 0; animation: pop .9s var(--ease-back); }
.marquee-title.hb .t-script { font-size: clamp(2.6rem, 11vw, 4.6rem); }
.marquee-title.hb .t-bulbs { font-size: clamp(2.6rem, 13vw, 5.4rem); }
.marquee-title.hb .t-serif { font-size: clamp(2.2rem, 10vw, 4rem); }

/* ---------- letter ---------------------------------------------------- */
.envelope { position: relative; width: min(340px, 92%); aspect-ratio: 1.45; margin: 120px auto var(--s-6); flex: none; transition: opacity .6s, transform .6s var(--ease); }
.envelope.gone { opacity: 0; transform: translateY(40px) scale(.92); }
.env-back { position: absolute; inset: 0; background: #c42a44; border-radius: 6px; }
.env-front {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(to top right, #e2344f 50%, transparent 50.5%) left / 50.5% 100% no-repeat,
              linear-gradient(to top left, #d62e4a 50%, transparent 50.5%) right / 50.5% 100% no-repeat;
  border-radius: 0 0 6px 6px;
  pointer-events: none;
}
.env-flap {
  position: absolute; left: 0; right: 0; top: 0; height: 60%; z-index: 4;
  background: #b5243b;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top;
  transition: transform .8s var(--ease), z-index 0s .4s;
}
.env-seal { position: absolute; left: 50%; top: 52%; z-index: 5; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--cherry); font-size: 22px; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); transition: opacity .3s, transform .4s var(--ease-back); }
.envelope.open .env-flap { transform: rotateX(180deg); z-index: 1; }
.envelope.open .env-seal { opacity: 0; transform: translate(-50%, -50%) scale(1.6); }
.letter {
  position: absolute; left: 5%; right: 5%; top: 6%; z-index: 2;
  min-height: 88%;
  padding: var(--s-5) var(--s-5) var(--s-6);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 207, 107, .18), transparent 40%),
    repeating-linear-gradient(180deg, transparent 0 33px, rgba(90, 29, 71, .1) 33px 34px),
    #fffaf0;
  color: var(--ink);
  border-radius: 3px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform 1s var(--ease);
}
.envelope.out .letter { transform: translateY(-60%); }

.letter-card {
  position: relative;
  width: min(420px, 100%);
  margin: var(--s-4) auto var(--s-5);
  padding: var(--s-6) var(--s-5) var(--s-5);
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 207, 107, .22), transparent 40%),
    repeating-linear-gradient(180deg, transparent 0 33px, rgba(90, 29, 71, .1) 33px 34px),
    #fffaf0;
  color: var(--ink);
  border-radius: 3px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .5);
  transform: rotate(-.8deg);
  transform-origin: top center;
  animation: unfold .9s var(--ease);
}
.letter-card::before {   /* wax seal */
  content: "♥";
  position: absolute; top: -18px; right: 22px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cherry); color: var(--gold-hi);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
  transform: rotate(12deg);
}
.letter-card h3 { font-family: var(--f-serif); font-style: italic; font-weight: 600; font-variation-settings: "opsz" 72, "SOFT" 100, "WONK" 1; font-size: 28px; color: var(--wine); }
.letter-card p { font-family: var(--f-hand); font-size: 23px; line-height: 1.45; margin-top: var(--s-3); }
.letter-card h3, .letter-card p { opacity: 0; animation: lineIn .8s var(--ease) forwards; }
.letter-card .sig { font-family: var(--f-script); font-size: 40px; line-height: 1.1; color: var(--cherry); text-align: right; margin-top: var(--s-2); }
@keyframes unfold { from { opacity: 0; transform: rotate(-.8deg) scaleY(.2) translateY(60px); } }
@keyframes lineIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- final gift ------------------------------------------------ */
.gift { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--s-8) var(--s-4) var(--s-4); max-width: 440px; }
.gift-box { position: relative; width: 140px; height: 130px; margin-bottom: var(--s-6); }
.gift-body { position: absolute; left: 10px; right: 10px; bottom: 0; height: 90px; background: linear-gradient(90deg, transparent 43%, var(--gold) 43% 57%, transparent 57%), var(--cherry); border-radius: 0 0 8px 8px; }
.gift-lid { position: absolute; left: 0; right: 0; top: 18px; height: 30px; z-index: 2; background: linear-gradient(90deg, transparent 43%, var(--gold) 43% 57%, transparent 57%), #c42a44; border-radius: 6px; transition: transform .9s var(--ease-back); }
.gift-lid::before, .gift-lid::after { content: ""; position: absolute; top: -26px; width: 34px; height: 30px; border: 7px solid var(--gold); border-radius: 50% 50% 0 50%; }
.gift-lid::before { left: 34px; transform: rotate(10deg); }
.gift-lid::after { right: 34px; transform: scaleX(-1) rotate(10deg); }
.gift.open .gift-lid { transform: translate(-30px, -44px) rotate(-22deg); }
.gift-text {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-size: clamp(28px, 8vw, 40px); line-height: 1.15; letter-spacing: -.01em;
  color: var(--gold-hi);
  text-wrap: balance;
  opacity: 0; transform: translateY(20px);
  transition: all 1s .6s var(--ease);
}
.gift-sign { font-family: var(--f-hand); font-size: 24px; color: var(--cream-dim); margin-top: var(--s-5); opacity: 0; transition: opacity 1s 1.4s; }
.gift.open .gift-text { opacity: 1; transform: none; }
.gift.open .gift-sign { opacity: 1; }
