@font-face { font-family: 'Teko Text'; font-style: normal; font-weight: 100 449; font-display: swap; size-adjust: 120%; src: url(https://fonts.gstatic.com/s/teko/v23/LYjYdG7kmE0gV69VVPPdFl06VN8XG4S11zOmu1CET6g.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Teko Text'; font-style: normal; font-weight: 450 549; font-display: swap; size-adjust: 120%; src: url(https://fonts.gstatic.com/s/teko/v23/LYjYdG7kmE0gV69VVPPdFl06VN8lG4S11zOmu1CET6g.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Teko Text'; font-style: normal; font-weight: 550 900; font-display: swap; size-adjust: 120%; src: url(https://fonts.gstatic.com/s/teko/v23/LYjYdG7kmE0gV69VVPPdFl06VN_JHIS11zOmu1CET6g.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Teko everywhere: titles map to Teko's bold cut whatever weight a rule asks for (title rules were written for Bakbak One's single 400) */
@font-face { font-family: 'Teko Display'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(https://fonts.gstatic.com/s/teko/v23/LYjYdG7kmE0gV69VVPPdFl06VN_JHIS11zOmu1CET6g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Palette + type are lifted from the "everything diwali '26" deck — don't freestyle. */
:root {
  --maroon: #75150f;
  --maroon-d: #4f0d09;
  --yellow: #efbd0d;
  --sun: #f2bb05;
  --blue: #1d8cc4;
  --blue-d: #0b6f9d;
  --red: #c4221a;
  --pink: #ec5a86;
  --lotus: #f4a7bf;
  --teal: #2f9790;
  --green: #2e7a3c;
  --cream: #f7e6c8;
  --ink: #1c1410;
  --display: 'Teko Display', 'Palanquin Dark', system-ui, sans-serif;
  --deva: 'Palanquin Dark', 'Bakbak One', system-ui, sans-serif;
  --sans: 'Teko Text', 'Palanquin Dark', system-ui, sans-serif;
  --cond: 'Barlow Condensed', system-ui, sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* The invite has one look in both schemes. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --maroon: #75150f; } }
:root[data-theme="dark"] { --maroon: #75150f; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--maroon); color: var(--cream); font-family: var(--cond); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; height: 100svh; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* ─────────── sequence ─────────── */
#seq { position: relative; height: 100vh; height: 100svh; }
#stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; touch-action: none; user-select: none; -webkit-user-select: none; }
body[data-ph="done"] #stage { touch-action: auto; }
.ground {
  position: absolute; inset: 0; z-index: -2;
  background: var(--grain), radial-gradient(110% 75% at 50% 45%, #8a1b13 0%, var(--maroon) 55%, #5c100b 100%);
  background-size: 220px, auto;
  background-blend-mode: multiply, normal;
}
.mast { position: absolute; left: 50%; top: clamp(18px, 3.4vh, 34px); transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 5px; pointer-events: none; }
.mast-dot { height: clamp(26px, 4.2vh, 40px); width: auto; filter: drop-shadow(0 2px 0 rgba(40,4,2,.4)); }
.mast-pre { font: 600 10px/1 var(--sans); letter-spacing: .42em; text-transform: uppercase; color: var(--cream); opacity: .8; }
.powered { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 8px); z-index: 9; text-align: center; font: 500 10px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--cream); opacity: .7; pointer-events: none; }
.powered b { font-weight: 700; letter-spacing: .34em; color: var(--yellow); }

/* hanging decor: akash kandils + genda strings */
.decor { position: absolute; inset: 0 0 auto 0; height: 0; z-index: 1; pointer-events: none; }
.hang { position: absolute; top: 0; transform-origin: 50% 0; animation: sway var(--sw) ease-in-out var(--d) infinite alternate; }
@keyframes sway { from { transform: translateX(-50%) rotate(-2.2deg); } to { transform: translateX(-50%) rotate(2.2deg); } }
.hang .cord { display: block; width: 1.5px; height: var(--drop); margin: 0 auto; background: linear-gradient(#2a0805, #6b4a2a); }
.kandil .lamp { position: relative; display: block; width: var(--w); margin-top: -3px; }
.kandil .lamp img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 6px 8px rgba(40,4,2,.45)); }
.kandil .lamp .bloom { position: absolute; inset: 0; filter: blur(14px) saturate(1.6) brightness(1.5); mix-blend-mode: screen; opacity: calc(.35 + var(--lit, 0) * .6); animation: breathe 3s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(.92); } to { transform: scale(1.08); } }
.mari img { display: block; height: var(--len); width: auto; margin-top: -10px; filter: drop-shadow(0 6px 6px rgba(40,4,2,.4)); }

#env {
  position: absolute; left: 0; top: 0; z-index: 3;
  width: var(--ew); height: var(--eh);
  transform: translate(var(--ex), var(--ey));
  filter: drop-shadow(0 16px 22px rgba(40,4,2,.55)) drop-shadow(0 2px 3px rgba(40,4,2,.4));
}
.card {
  position: absolute; left: 0; top: 0; z-index: 2;
  width: var(--cw); height: var(--ch);
  transform: translate(var(--cx), var(--cy)) scale(var(--cs, 1)) rotate(var(--crot, 0deg));
  transform-origin: 50% 50%;
  visibility: hidden;
  filter: drop-shadow(0 22px 40px rgba(40,4,2,.6));
}
.card img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 4px var(--yellow), 0 0 0 7px var(--maroon-d); }
.cardname {
  position: absolute; left: 0; right: 0; z-index: 2; top: var(--ny, 80%);
  text-align: center; font: 400 clamp(24px, 6.6vw, 38px)/1 var(--display); color: var(--yellow);
  text-shadow: 2px 3px 0 var(--red);
  opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s;
}
.cardname b { font: 700 1.05em/1 var(--deva); color: var(--cream); }
.cardname.on { opacity: 1; transform: none; }

/* ─────────── matchbox (deck-style art, split into sleeve + drawer) ─────────── */
.box {
  position: absolute; left: 0; top: 0; z-index: 4;
  width: var(--bw); height: var(--bh);
  filter: drop-shadow(0 14px 16px rgba(40,4,2,.6));
  will-change: transform;
}
.box .sleeve { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 3px; }
.drawer {
  position: absolute; top: 4%; height: 90.2%; width: 25.3%; right: 0;
  will-change: transform;
}
.drawer img { width: 100%; height: 100%; }

.match {
  position: absolute; left: 0; top: 0; z-index: 5;
  width: var(--L); height: calc(var(--L) / 10.6);
  background: url(assets/match.webp) center / 100% 100% no-repeat;
  filter: drop-shadow(0 var(--lift, 2px) calc(var(--lift, 2px) * .9) rgba(40,4,2,.55));
  visibility: hidden; pointer-events: none;
  will-change: transform, clip-path;
}
.match .char { position: absolute; right: 0; top: -4%; width: 9.5%; height: 108%; border-radius: 40% 55% 55% 40%;
  background: radial-gradient(circle at 40% 40%, #4a3a33, #1b1210 60%, #0a0605); opacity: var(--char, 0); }

#fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; }
#glow {
  position: absolute; inset: 0; z-index: 7; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 60%), rgba(255,190,80,.6) 0, rgba(255,120,30,.2) var(--gr, 20vmax), transparent calc(var(--gr, 20vmax) * 2.2));
  mix-blend-mode: screen; opacity: 0;
}
.bottom { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 30px); z-index: 9; display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none; padding: 0 16px; }
.caption { pointer-events: none; max-width: 100%; }
.caption span { white-space: normal !important; text-align: center; }
body[data-ph="gate"] .bottom { opacity: 0; }
.autobtn { pointer-events: auto; border: 0; background: rgba(40,4,2,.45); color: var(--cream); border-radius: 99px; padding: 8px 14px; font: 500 13px/1 var(--sans); cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px rgba(247,230,200,.25); }
.autobtn b { font-weight: 700; color: var(--yellow); }
.autobtn:hover { background: rgba(40,4,2,.65); }

#ghost { position: absolute; left: 0; top: 0; z-index: 9; width: 44px; height: 52px; margin: -6px 0 0 -16px; pointer-events: none; opacity: 0; transition: opacity .35s; }
#ghost.on { opacity: 1; }
#ghost svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 6px rgba(0,0,0,.45)); transition: transform .15s; transform-origin: 40% 20%; }
#ghost.press svg { transform: scale(.88) translateY(2px); }
#ghost .ring { position: absolute; left: 9px; top: 0; width: 22px; height: 22px; margin: -11px 0 0 -2px; border-radius: 50%; border: 2px solid var(--yellow); opacity: 0; }
#ghost.press .ring { animation: ring .8s ease-out infinite; }
@keyframes ring { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(1.8); } }

.box.tap { cursor: pointer; }
body[data-ph="closed"] .box { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%,100% { filter: drop-shadow(0 14px 16px rgba(40,4,2,.6)); } 50% { filter: drop-shadow(0 14px 16px rgba(40,4,2,.6)) drop-shadow(0 0 18px rgba(239,189,13,.75)); } }
body[data-ph="strike"] #stage, body[data-ph="carry"] #stage { cursor: grab; }
body[data-ph="strike"] #stage:active, body[data-ph="carry"] #stage:active { cursor: grabbing; }

.after { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 40px); z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 12px; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .5s .3s, transform .5s .3s; }
.after.on { opacity: 1; transform: none; pointer-events: auto; }
.cta.small { width: auto; padding: 14px 26px 12px; font-size: 20px; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(4px) } }
.replay { border: 0; background: none; color: var(--cream); opacity: .75; font: 600 13px/1 var(--sans); letter-spacing: .06em; cursor: pointer; }
body[data-ph="done"] .bottom, body[data-ph="reveal"] .bottom { opacity: 0; transition: opacity .4s; }

.caption span {
  display: inline-block; white-space: nowrap;
  padding: 10px 18px 8px; border-radius: 3px;
  background: var(--yellow); color: var(--red);
  font: 400 clamp(15px, 4.2vw, 20px)/1 var(--display);
  box-shadow: 0 0 0 2px var(--red), 0 0 0 4px var(--yellow), 0 0 0 6px var(--teal), 0 8px 20px rgba(40,4,2,.45);
  transition: opacity .3s, transform .3s;
}
.caption.swap span { opacity: 0; transform: translateY(6px); }

/* ─────────── gate ─────────── */
.gate {
  position: fixed; inset: auto 0 0 0; z-index: 20;
  padding: 0 16px calc(env(safe-area-inset-bottom) + 18px);
  display: flex; justify-content: center;
  transition: transform .7s cubic-bezier(.7,0,.3,1), opacity .5s;
}
body.open .gate { transform: translateY(110%); opacity: 0; pointer-events: none; }
.gate-card {
  width: min(100%, 440px);
  background: var(--yellow) url(assets/paper_yellow.webp) center / cover;
  color: var(--ink); border-radius: 4px;
  padding: 20px 20px 16px; text-align: center;
  box-shadow: inset 0 0 0 6px var(--yellow), inset 0 0 0 8px var(--pink), inset 0 0 0 11px var(--yellow), inset 0 0 0 13px var(--teal),
              0 0 0 4px var(--maroon-d), 0 24px 50px rgba(30,3,2,.6);
}
.g-kick { font: 700 17px/1 var(--deva); color: var(--red); margin-top: 4px; }
.g-title { font: 400 clamp(20px, 5.6vw, 25px)/1.12 var(--display); margin: 8px 6px 14px; color: var(--ink); }
.g-lbl { display: block; font: 600 15px/1.2 var(--sans); color: var(--maroon); margin-bottom: 7px; }
.g-row { display: flex; align-items: stretch; margin: 0 6px; background: #fff6dc; border: 2px solid var(--maroon); border-radius: 3px; overflow: hidden; }
.g-cc { display: grid; place-items: center; padding: 0 11px; background: var(--maroon); color: var(--yellow); font: 400 17px/1 var(--display); }
.g-row input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 11px 12px; font: 600 22px/1 var(--cond); letter-spacing: .08em; color: var(--ink); }
.g-row:focus-within { box-shadow: 0 0 0 3px rgba(236,90,134,.5); }
.g-btn {
  margin: 12px 6px 0; width: calc(100% - 12px);
  border: 0; border-radius: 3px; cursor: pointer;
  padding: 13px 16px 11px;
  background: var(--red); color: var(--yellow);
  font: 400 21px/1 var(--display);
  box-shadow: inset 0 0 0 2px var(--yellow), 0 4px 0 var(--maroon-d);
}
.g-btn:active { transform: translateY(3px); box-shadow: inset 0 0 0 2px var(--yellow), 0 1px 0 var(--maroon-d); }
.g-err { min-height: 1.2em; margin-top: 8px; font: 700 14px/1.25 var(--deva); color: var(--red); }
.gate.shake .gate-card { animation: shake .45s; }
@keyframes shake { 20%,60% { transform: translateX(-8px) } 40%,80% { transform: translateX(8px) } }

.snd {
  position: fixed; right: 14px; top: 14px; z-index: 21;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(40,4,2,.4); color: var(--yellow);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.snd svg { width: 22px; height: 22px; }
.snd.off .w { opacity: 0; }

/* ─────────── details ─────────── */
#details { position: relative; z-index: 1; background: var(--grain), var(--maroon); background-size: 220px, auto; background-blend-mode: multiply; }
.bunting {
  height: 46px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='46'%3E%3Cpath d='M0 4 Q60 14 120 4' stroke='%23efbd0d' stroke-width='2' fill='none'/%3E%3Cpath d='M4 5 L16 40 L28 8Z' fill='%23ec5a86'/%3E%3Cpath d='M34 9 L46 44 L58 11Z' fill='%23efbd0d'/%3E%3Cpath d='M64 11 L76 44 L88 9Z' fill='%232f9790'/%3E%3Cpath d='M94 8 L106 40 L118 5Z' fill='%231d8cc4'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 46px;
}
#details section { padding: 60px 16px; max-width: 1080px; margin: 0 auto; }
.kicker { font: 700 17px/1.2 var(--deva); color: var(--yellow); }

.aao { text-align: center; }
.aao h1 { font: 400 clamp(34px, 9vw, 66px)/1.02 var(--display); color: var(--cream); margin: 10px auto 16px; max-width: 16ch; text-shadow: 3px 3px 0 var(--red); }
.aao h1 em { font-style: normal; color: var(--yellow); }
.aao .lede { font: 500 clamp(18px, 4.6vw, 22px)/1.45 var(--sans); color: var(--cream); max-width: 34ch; margin: 0 auto; opacity: .92; }
.aao .lede b { color: var(--yellow); font-weight: 600; }

.boards { display: grid; gap: 22px; }
@media (min-width: 760px) { .boards { grid-template-columns: repeat(3, 1fr); } }
.board {
  position: relative; padding: 30px 24px 26px; text-align: center;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, calc(100% - 14px) 4px, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px, 14px 0);
  box-shadow: inset 0 0 0 7px var(--c1), inset 0 0 0 9px var(--c2), inset 0 0 0 12px var(--c1), inset 0 0 0 14px var(--c3);
}
.b-yellow { --c1: var(--yellow); --c2: var(--pink); --c3: var(--teal); background: var(--yellow) url(assets/paper_yellow.webp) center / cover; color: var(--red); }
.b-blue { --c1: var(--blue); --c2: var(--sun); --c3: var(--lotus); background: var(--grain), var(--blue); background-size: 220px, auto; background-blend-mode: multiply; color: var(--sun); }
.b-pink { --c1: var(--pink); --c2: var(--yellow); --c3: var(--maroon); background: var(--grain), var(--pink); background-size: 220px, auto; background-blend-mode: multiply; color: var(--yellow); }
.b-hi { font: 700 clamp(42px, 11vw, 56px)/1 var(--deva); }
.b-en { font: 600 12px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; opacity: .85; margin: 6px 0 14px; color: var(--ink); }
.b-blue .b-en, .b-pink .b-en { color: var(--cream); }
.b-val { font: 400 clamp(22px, 5.8vw, 27px)/1.1 var(--display); color: var(--ink); }
.b-blue .b-val, .b-pink .b-val { color: #fff; }
.b-note { font: 500 16px/1.35 var(--sans); margin-top: 8px; color: var(--ink); }
.b-blue .b-note, .b-pink .b-note { color: var(--cream); }
.b-btn { display: inline-block; margin-top: 14px; padding: 9px 14px 7px; border-radius: 3px; background: var(--sun); color: var(--blue-d); font: 400 16px/1 var(--display); text-decoration: none; }

.stalls { overflow: hidden; max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }
.stalls h2, .wall h2 { text-align: center; font: 400 clamp(28px, 7.4vw, 46px)/1.05 var(--display); color: var(--cream); margin-bottom: 26px; padding: 0 16px; text-shadow: 2px 2px 0 var(--red); }
.stalls h2 .hi, .wall h2 .hi { display: block; font: 700 clamp(16px, 4vw, 19px)/1.5 var(--deva); color: var(--yellow); text-shadow: none; }
.ticker { overflow: hidden; padding: 6px 0; }
.ticker .row { display: flex; gap: 12px; width: max-content; animation: tick 46s linear infinite; }
.ticker.rev .row { animation-direction: reverse; animation-duration: 52s; }
@keyframes tick { to { transform: translateX(-50%); } }
.chip { flex: none; display: inline-flex; align-items: baseline; gap: 8px; padding: 11px 16px 9px; border-radius: 3px; font: 400 19px/1 var(--display); white-space: nowrap; box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); }
.chip small { font: 700 14px/1 var(--deva); opacity: .9; }
.chip:nth-child(5n+1) { background: var(--yellow); color: var(--red); }
.chip:nth-child(5n+2) { background: var(--pink); color: #fff; }
.chip:nth-child(5n+3) { background: var(--blue); color: var(--sun); }
.chip:nth-child(5n+4) { background: var(--teal); color: var(--cream); }
.chip:nth-child(5n+5) { background: var(--cream); color: var(--maroon); }

.posters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (min-width: 760px) { .posters { grid-template-columns: repeat(3, 1fr); gap: 26px; } }
.p { position: relative; aspect-ratio: 4 / 5; border-radius: 3px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; box-shadow: inset 0 0 0 5px rgba(255,255,255,.22), 0 16px 28px rgba(30,3,2,.45); }
.p img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10% 8% 22%; }
.p.p3 img, .p.p6 img { object-fit: cover; padding: 0; }
.p figcaption { position: relative; margin: 0 8px 10px; padding: 7px 10px 5px; border-radius: 3px; background: var(--yellow); color: var(--red); text-align: center; font: 400 clamp(14px, 3.6vw, 17px)/1.1 var(--display); }
.p figcaption b { font-weight: 400; color: var(--ink); }
.p1 { background: var(--pink); transform: rotate(-2deg); }
.p2 { background: var(--yellow); transform: rotate(1.5deg); }
.p3 { background: var(--teal); transform: rotate(1deg); }
.p4 { background: var(--blue); transform: rotate(-1.5deg); }
.p5 { background: var(--green); transform: rotate(2deg); }
.p6 { background: var(--red); transform: rotate(-1deg); }

.rsvp { position: relative; text-align: center; padding-top: 80px !important; padding-bottom: 90px !important; }
.rsvp h2 { font: 400 clamp(34px, 9vw, 60px)/1.02 var(--display); color: var(--cream); margin: 10px 0 30px; text-shadow: 3px 3px 0 var(--red); }
.rsvp-star { position: absolute; width: 70px; height: auto; pointer-events: none; animation: spin 18s linear infinite; }
.rsvp-star.s1 { left: 6%; top: 40px; } .rsvp-star.s2 { right: 6%; bottom: 60px; width: 54px; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: min(100%, 380px); margin: 0 auto;
  padding: 17px 22px 15px; border-radius: 4px; border: 0; cursor: pointer;
  background: var(--yellow); color: var(--red); text-decoration: none;
  font: 400 23px/1 var(--display);
  box-shadow: inset 0 0 0 3px var(--red), 0 6px 0 var(--maroon-d), 0 18px 30px rgba(30,3,2,.4);
}
.cta:active { transform: translateY(4px); box-shadow: inset 0 0 0 3px var(--red), 0 2px 0 var(--maroon-d); }
.cta.ghost { margin-top: 14px; background: transparent; color: var(--yellow); box-shadow: inset 0 0 0 2px var(--yellow); font-size: 18px; padding: 13px 18px 12px; }
.by { margin-top: 18px; font: 500 16px/1.2 var(--sans); color: var(--cream); opacity: .85; }

.foot { background: var(--maroon-d); text-align: center; padding: 0 16px 40px; }
.foot-tick { overflow: hidden; margin: 0 -16px 30px; padding: 12px 0; background: var(--yellow); }
.foot-tick .row { display: flex; gap: 28px; width: max-content; animation: tick 40s linear infinite; }
.foot-tick span { font: 400 18px/1 var(--display); color: var(--red); white-space: nowrap; }
.foot-tick span::after { content: '✦'; margin-left: 28px; color: var(--teal); }
.foot-nl { height: 22px; width: auto; margin: 0 auto 12px; }
.foot p { font: 600 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--cream); opacity: .7; }

@media (prefers-reduced-motion: reduce) {
  .ticker .row, .foot-tick .row, .rsvp-star, .hang, .kandil .bloom, .cta.small, body[data-ph="closed"] .box { animation: none; }
}

/* ═════════ Deck signboard buttons — notched frame, mustard paper, pink/teal rules, wood-type ═════════ */
.sign, .cta, .g-btn, .b-btn, #seeDetails {
  --bg: var(--yellow); --ink: #1c1410; --sh: var(--red); --l1: var(--pink); --l2: var(--teal); --edge: var(--maroon);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 0; cursor: pointer; text-decoration: none;
  padding: 17px 30px 14px;
  background: var(--bg) url(assets/paper_yellow.webp) center / cover;
  color: var(--ink);
  font: 400 21px/1 var(--display); letter-spacing: .01em;
  text-shadow: 1.5px 2px 0 var(--sh);
  box-shadow: inset 0 0 0 2px var(--edge), inset 0 0 0 5px var(--bg), inset 0 0 0 6.5px var(--l1), inset 0 0 0 8.5px var(--bg), inset 0 0 0 10px var(--l2);
  --n: 10px;
  -webkit-mask: radial-gradient(circle at 0 0, #0000 var(--n), #000 calc(var(--n) + .5px)) 0 0 / 51% 51% no-repeat,
                radial-gradient(circle at 100% 0, #0000 var(--n), #000 calc(var(--n) + .5px)) 100% 0 / 51% 51% no-repeat,
                radial-gradient(circle at 0 100%, #0000 var(--n), #000 calc(var(--n) + .5px)) 0 100% / 51% 51% no-repeat,
                radial-gradient(circle at 100% 100%, #0000 var(--n), #000 calc(var(--n) + .5px)) 100% 100% / 51% 51% no-repeat;
          mask: radial-gradient(circle at 0 0, #0000 var(--n), #000 calc(var(--n) + .5px)) 0 0 / 51% 51% no-repeat,
                radial-gradient(circle at 100% 0, #0000 var(--n), #000 calc(var(--n) + .5px)) 100% 0 / 51% 51% no-repeat,
                radial-gradient(circle at 0 100%, #0000 var(--n), #000 calc(var(--n) + .5px)) 0 100% / 51% 51% no-repeat,
                radial-gradient(circle at 100% 100%, #0000 var(--n), #000 calc(var(--n) + .5px)) 100% 100% / 51% 51% no-repeat;
  transition: transform .12s, filter .2s;
}
.sign:hover, .cta:hover, .g-btn:hover, .b-btn:hover, #seeDetails:hover { filter: brightness(1.06) saturate(1.1); }
.sign:active, .cta:active, .g-btn:active, .b-btn:active, #seeDetails:active { transform: translateY(2px) scale(.98); }
.g-btn, .sign.red { --bg: var(--red); --ink: var(--yellow); --sh: var(--maroon-d); --l1: var(--yellow); --l2: var(--teal); --edge: var(--maroon-d); background-image: none; }
.cta.ghost, .sign.blue, .b-btn { --bg: var(--blue); --ink: var(--sun); --sh: var(--maroon-d); --l1: var(--sun); --l2: var(--lotus); --edge: var(--blue-d); background-image: none; }
.cta { width: auto; min-width: min(100%, 300px); margin: 0 auto; }
.cta.ghost { margin-top: 16px; font-size: 18px; padding: 15px 24px 12px; }
.g-btn { width: calc(100% - 12px); margin: 14px 6px 0; }
.b-btn { --n: 7px; font-size: 15px; padding: 11px 16px 9px; margin-top: 14px; }
#seeDetails { animation: bob 1.6s ease-in-out infinite; }
.rsvp .cta { display: flex; }

/* the step instruction is signage, not a button */
.caption span {
  display: inline-block; padding: 0; background: none !important; box-shadow: none !important;
  color: var(--cream); font: 400 clamp(19px, 5.2vw, 24px)/1.15 var(--display);
  text-shadow: 2px 2px 0 var(--red), 0 3px 14px rgba(30,3,2,.8);
}
.steps { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; pointer-events: none; }
.steps li { font: 600 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--cream); opacity: .45; padding: 6px 8px 5px; border-radius: 2px; transition: all .3s; }
.steps li::before { content: attr(data-n) ' '; color: var(--yellow); }
.steps li.on { opacity: 1; background: var(--yellow); color: var(--maroon); }
.steps li.on::before { color: var(--red); }
.steps li.done { opacity: .75; text-decoration: line-through; text-decoration-color: var(--pink); }
.autobtn { --n: 6px; background: var(--blue) !important; color: var(--sun) !important; border-radius: 0 !important; font: 400 14px/1 var(--display) !important; padding: 10px 14px 8px !important; text-shadow: 1px 1px 0 var(--maroon-d);
  box-shadow: inset 0 0 0 1.5px var(--blue-d), inset 0 0 0 3.5px var(--blue), inset 0 0 0 4.5px var(--sun) !important; backdrop-filter: none !important;
  -webkit-mask: radial-gradient(circle at 0 0, #0000 6px, #000 6.5px) 0 0 / 51% 51% no-repeat, radial-gradient(circle at 100% 0, #0000 6px, #000 6.5px) 100% 0 / 51% 51% no-repeat, radial-gradient(circle at 0 100%, #0000 6px, #000 6.5px) 0 100% / 51% 51% no-repeat, radial-gradient(circle at 100% 100%, #0000 6px, #000 6.5px) 100% 100% / 51% 51% no-repeat;
          mask: radial-gradient(circle at 0 0, #0000 6px, #000 6.5px) 0 0 / 51% 51% no-repeat, radial-gradient(circle at 100% 0, #0000 6px, #000 6.5px) 100% 0 / 51% 51% no-repeat, radial-gradient(circle at 0 100%, #0000 6px, #000 6.5px) 0 100% / 51% 51% no-repeat, radial-gradient(circle at 100% 100%, #0000 6px, #000 6.5px) 100% 100% / 51% 51% no-repeat; }
.autobtn b { color: #fff !important; font-weight: 400 !important; }
.replay { font: 400 14px/1 var(--display) !important; color: var(--cream) !important; text-shadow: 1px 1px 0 var(--red); }

/* sound toggle: a little deck roundel, bottom corner, clear of the kandils */
.snd { top: auto !important; bottom: calc(env(safe-area-inset-bottom) + 24px); right: 12px !important; width: 38px !important; height: 38px !important;
  background: var(--yellow) !important; color: var(--maroon) !important; backdrop-filter: none !important;
  box-shadow: inset 0 0 0 2px var(--maroon), inset 0 0 0 3.5px var(--yellow), inset 0 0 0 5px var(--pink); }
.snd svg { width: 18px !important; height: 18px !important; }

.caption { max-width: calc(100% - 92px); text-align: center; }
.after .replay { margin-top: 2px; }
/* toran: genda heads with mango leaves, in place of the flags */
.bunting { height: 64px; position: relative; overflow: hidden;
  background:
    url(assets/conf/c01.webp) 0 2px / 36px 36px repeat-x,
    url(assets/conf/c02.webp) 18px 6px / 36px 36px repeat-x,
    url(assets/conf/c16.webp) 9px 26px / 36px 36px repeat-x;
  background-color: var(--maroon-d); }
.bunting::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #3a1206; }
.cta.ghost { background: var(--blue); }

/* wide screens: gate sits where the matchbox will be, type scales up */
@media (min-aspect-ratio: 23/20) {
  .gate { inset: 0 5vw 0 auto; width: min(440px, 40vw); padding: 0; align-items: center; }
  .mast-dot { height: clamp(34px, 5vh, 54px); }
  .mast-pre { font-size: 12px; }
  .steps li { font-size: 12px; padding: 7px 10px 6px; }
  .caption span { font-size: clamp(22px, 2.2vw, 30px); }
  .autobtn { font-size: 16px !important; }
  .powered { font-size: 11px; }
}

/* paper sheen that drifts with the tilt — makes the poster read as a printed object */
.card::after { content: ''; position: absolute; inset: 0; border-radius: 3px; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(115deg, transparent calc(var(--sheen, 50%) - 24%), rgba(255,248,225,.45) var(--sheen, 50%), transparent calc(var(--sheen, 50%) + 24%)); }
#env, .card { transform-style: preserve-3d; backface-visibility: hidden; }
.cardname small { display: block; margin-top: 6px; font: 600 .42em/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--cream); text-shadow: none; opacity: .85; }

/* ═════════ the popup comes first: centred card over a blurred stage ═════════ */
.gate { position: fixed !important; inset: 0 !important; width: auto !important; z-index: 30; padding: 20px 16px !important;
  display: grid !important; place-items: center; align-items: center;
  background: radial-gradient(120% 90% at 50% 40%, rgba(117,21,15,.55), rgba(40,4,2,.88));
  -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1);
  transition: opacity .55s ease, visibility 0s linear .55s; }
.gate .gate-card { animation: popIn .7s cubic-bezier(.2,1.3,.4,1) both .15s; width: min(100%, 400px); padding: 26px 22px 18px; }
@keyframes popIn { from { opacity: 0; transform: translateY(24px) scale(.92); } to { opacity: 1; transform: none; } }
body.open .gate { transform: none !important; opacity: 0; visibility: hidden; pointer-events: none; }
body.open .gate .gate-card { transform: translateY(-30px) scale(.96); transition: transform .5s; }
.g-env { width: 72%; height: auto; margin: -6px auto 10px; filter: drop-shadow(0 8px 10px rgba(40,4,2,.35)); transform: rotate(-4deg); animation: envBob 3s ease-in-out infinite alternate; }
@keyframes envBob { from { transform: rotate(-4deg) translateY(0); } to { transform: rotate(-2deg) translateY(-4px); } }
.g-field { margin-bottom: 10px; }
.g-field .g-row input { font-size: 20px; }
#env { opacity: 0; }
body:not(.open) .bottom, body:not(.open) .snd { opacity: 0; }

/* RSVP: answers submit on tap, then a rubber-stamp confirmation */
.rsvp-ask { display: grid; gap: 14px; justify-items: center; }
.rsvp-done { display: grid; gap: 12px; justify-items: center; }
.rsvp-done[hidden], .rsvp-ask[hidden] { display: none; }
.stamp { display: inline-block; padding: 10px 22px 8px; border: 4px double var(--yellow); color: var(--yellow); font: 400 clamp(34px, 9vw, 48px)/1 var(--display);
  transform: rotate(-6deg); text-shadow: 2px 2px 0 var(--red); animation: stampIn .5s cubic-bezier(.2,1.6,.4,1); }
.stamp.no { border-color: var(--pink); color: var(--pink); text-shadow: 2px 2px 0 var(--maroon-d); }
@keyframes stampIn { from { opacity: 0; transform: rotate(-6deg) scale(1.8); } to { opacity: 1; transform: rotate(-6deg) scale(1); } }
.done-msg { font: 500 18px/1.4 var(--sans); color: var(--cream); max-width: 30ch; }
.linkish { border: 0; background: none; cursor: pointer; color: var(--cream); opacity: .75; font: 600 14px/1 var(--sans); text-decoration: underline; text-underline-offset: 4px; display: inline-block; margin-top: 14px; }
.rsvp .cta.ghost { margin-top: 0; }

/* RSVP = one deck board: the question, then the answer, same card */
.rsvp-card { max-width: 520px; margin: 0 auto; padding: 34px 26px 30px !important; }
.rsvp-card h2 { font: 400 clamp(28px, 7.4vw, 40px)/1.05 var(--display) !important; color: var(--ink) !important; text-shadow: 2px 2px 0 var(--red) !important; margin: 0 0 10px !important; }
.rsvp-card .b-note { color: var(--maroon) !important; font: 600 15px/1.4 var(--sans); margin: 0 0 20px; }
.rsvp-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.rsvp-btns .sign { font-size: 19px; padding: 15px 22px 13px; }
.rsvp-done .sign { font-size: 16px; padding: 13px 20px 11px; }
.rsvp-card .linkish { color: var(--maroon); opacity: .8; margin-top: 16px; }
.rsvp-ask, .rsvp-done { display: block; text-align: center; }
.rsvp-done #doneHead { font-size: clamp(40px, 11vw, 60px) !important; animation: pop .45s cubic-bezier(.2,1.5,.4,1); }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.b-hi { font-family: var(--display), var(--deva); }
.steps li::before { font-family: var(--sans); }

/* the poster already carries DOT presents / nailinit DIWALI PARTY — add the Bastian line under PARTY */
.card { container-type: inline-size; }
.card-pb { position: absolute; left: 0; right: 0; top: 24.3%; text-align: center; pointer-events: none;
  font: 600 2.6cqw/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: #1c1410; }
.card-pb b { font-weight: 700; color: var(--sun); text-shadow: .15cqw .15cqw 0 #1c1410; letter-spacing: .34em; }

/* ═════════ kismat: shuffle, fan, pick, flip ═════════ */
.kismat { text-align: center; overflow: hidden; max-width: none !important; }
.kismat h2 { font: 400 clamp(28px, 7.4vw, 46px)/1.05 var(--display); color: var(--cream); text-shadow: 2px 2px 0 var(--red); }
.k-sub { font: 500 17px/1.4 var(--sans); color: var(--cream); opacity: .85; margin: 8px 0 0; }
.k-table { position: relative; height: clamp(360px, 62vw, 520px); margin: 10px auto 0; max-width: 900px; perspective: 1400px; }
.kc { --w: clamp(108px, 30vw, 170px); position: absolute; left: 50%; top: 46%; width: var(--w); height: calc(var(--w) / .72);
  margin: calc(var(--w) / -1.44) 0 0 calc(var(--w) / -2);
  transition: transform .5s cubic-bezier(.3,.9,.3,1), opacity .4s; cursor: default; transform-style: preserve-3d; }
.kc.pickable { cursor: pointer; }
.kc.pickable:hover .kc-in { transform: translateY(-14px); }
.kc-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3,1.2,.4,1); }
.kc.flip .kc-in { transform: rotateY(180deg); }
.kc-f { position: absolute; inset: 0; border-radius: 8px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden;
  box-shadow: 0 10px 22px rgba(30,3,2,.5), 0 0 0 1px rgba(0,0,0,.2); }
.kc-back { background: var(--maroon) url(assets/pattern.webp) center / 120px;
  box-shadow: inset 0 0 0 5px var(--yellow), inset 0 0 0 7px var(--maroon), inset 0 0 0 8.5px var(--pink), inset 0 0 0 10px var(--maroon), inset 0 0 0 11.5px var(--teal), 0 10px 22px rgba(30,3,2,.5); }
.kc-back::before { content: ''; position: absolute; inset: 22% 18%; background: url(assets/conf/c03.webp) center / contain no-repeat; filter: drop-shadow(0 2px 0 rgba(0,0,0,.3)); }
.kc-back::after { content: 'kismat'; position: absolute; left: 0; right: 0; bottom: 12%; font: 400 calc(var(--w) * .13)/1 var(--display); color: var(--yellow); text-shadow: 1px 1px 0 var(--red); }
.kc-front { transform: rotateY(180deg); background: var(--cream) center / cover no-repeat; }
.k-read { max-width: 30ch; margin: 6px auto 0; }
.k-read[hidden] { display: none; }
.k-title { font: 400 clamp(24px, 6vw, 32px)/1.1 var(--display); color: var(--yellow); text-shadow: 2px 2px 0 var(--red); animation: pop .45s cubic-bezier(.2,1.5,.4,1); }
.k-text { font: 500 18px/1.45 var(--sans); color: var(--cream); margin-top: 8px; }
.k-actions { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.k-actions [hidden] { display: none; }

/* ═════════ mohalla games ═════════ */
.games { text-align: center; max-width: none !important; overflow: hidden; }
.games > h2 { font: 400 clamp(30px, 8vw, 50px)/1.05 var(--display); color: var(--cream); text-shadow: 2px 2px 0 var(--red); }
.g-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 18px 0 8px; }
.g-tabs .sign { --n: 8px; font-size: 16px; padding: 12px 18px 10px; opacity: .65; }
.g-tabs .sign.on { opacity: 1; }
.game[hidden] { display: none; }
.g-head { font: 400 clamp(22px, 5.6vw, 30px)/1.1 var(--display); color: var(--yellow); text-shadow: 2px 2px 0 var(--red); margin-top: 18px; }

/* lucky draw: a raffle drum with tumbling slips, a crank, and a printed ticket */
.d-stage { position: relative; width: min(300px, 78vw); height: min(300px, 78vw); margin: 18px auto 6px; }
.drum { position: absolute; inset: 0 0 18% 0; }
.drum-wheel { position: absolute; inset: 0; border-radius: 50%;
  border: 10px solid var(--yellow);
  box-shadow: inset 0 0 0 3px var(--maroon-d), inset 0 0 0 6px var(--pink), 0 0 0 3px var(--maroon-d), 0 16px 30px rgba(30,3,2,.5);
  background:
    repeating-linear-gradient(45deg, rgba(239,189,13,.22) 0 2px, transparent 2px 14px),
    repeating-linear-gradient(-45deg, rgba(239,189,13,.22) 0 2px, transparent 2px 14px),
    radial-gradient(circle, rgba(117,21,15,.35), rgba(40,4,2,.55));
  transition: transform 2.6s cubic-bezier(.2,.7,.2,1); }
.drum-wheel::before, .drum-wheel::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 6px; margin-left: -3px; background: var(--yellow); box-shadow: 0 0 0 2px var(--maroon-d); }
.drum-wheel::after { transform: rotate(90deg); }
.drum-hub { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--yellow), 0 0 0 6px var(--maroon-d); }
.drum-slips { position: absolute; inset: 14%; border-radius: 50%; overflow: hidden; pointer-events: none; }
.slip { position: absolute; left: 50%; top: 50%; width: 30px; height: 16px; margin: -8px 0 0 -15px; border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.35); transition: transform .09s linear; }
.drum-stand { position: absolute; left: 22%; right: 22%; bottom: 0; height: 26%; background: linear-gradient(var(--maroon-d), #3a0906);
  clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.drum-stand::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--yellow); }
.crank { position: absolute; right: -6%; top: 34%; width: 64px; height: 64px; border: 0; background: none; cursor: pointer; transform-origin: 12px 12px; transition: transform 2.6s cubic-bezier(.2,.7,.2,1); }
.crank::before { content: ''; position: absolute; left: 6px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px var(--maroon-d); }
.crank i { position: absolute; left: 10px; top: 9px; width: 46px; height: 6px; background: var(--yellow); box-shadow: 0 0 0 2px var(--maroon-d); border-radius: 3px; }
.crank i::after { content: ''; position: absolute; right: -6px; top: -7px; width: 12px; height: 20px; border-radius: 6px; background: var(--red); box-shadow: 0 0 0 2px var(--maroon-d); }

.ticket { display: flex; width: min(420px, 92vw); margin: 18px auto 0; text-align: left; color: var(--ink);
  background: var(--cream) url(assets/paper_yellow.webp) center / cover; background-blend-mode: soft-light;
  box-shadow: inset 0 0 0 3px var(--maroon), inset 0 0 0 6px var(--cream), inset 0 0 0 7.5px var(--pink), inset 0 0 0 10px var(--cream), inset 0 0 0 11.5px var(--teal), 0 18px 34px rgba(30,3,2,.55);
  -webkit-mask: radial-gradient(circle at 0 50%, #0000 12px, #000 12.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, #0000 12px, #000 12.5px) right / 51% 100% no-repeat;
          mask: radial-gradient(circle at 0 50%, #0000 12px, #000 12.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, #0000 12px, #000 12.5px) right / 51% 100% no-repeat;
  animation: ticketOut .7s cubic-bezier(.2,1.4,.4,1); }
.ticket[hidden] { display: none; }
@keyframes ticketOut { from { opacity: 0; transform: translateY(-120px) scale(.3) rotate(-14deg); } to { opacity: 1; transform: none; } }
.t-stub { flex: none; width: 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 2px dashed var(--maroon); padding: 18px 6px; }
.t-stub span { font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--maroon); }
.t-stub b { font: 400 22px/1 var(--display); color: var(--red); margin-top: 4px; writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .1em; }
.t-main { padding: 20px 20px 20px 16px; }
.t-kick { font: 600 11px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--maroon); }
.t-name { font: 400 clamp(24px, 6vw, 32px)/1.05 var(--display); color: var(--ink); text-shadow: 2px 2px 0 var(--red); margin: 8px 0 8px; }
.t-text { font: 500 16px/1.45 var(--sans); color: var(--maroon-d); }

/* reveal = the deck's clean landscape card (new deck p.3) */
.card img { object-fit: contain !important; box-shadow: none !important; border-radius: 0 !important; }
.card::after { -webkit-mask: url(assets/invite_card.webp) center / contain no-repeat; mask: url(assets/invite_card.webp) center / contain no-repeat; border-radius: 0; }
.card-pb { top: 79.5% !important; font-size: 2.1cqw !important; letter-spacing: .4em !important; }
.card-pb b { color: var(--red) !important; text-shadow: none !important; }
.card-pb { top: 82% !important; }

/* night → lights on */
#night { position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: radial-gradient(circle at var(--nx, 50%) var(--ny, 60%), rgba(12,2,2,.25) 0, rgba(12,2,2,.9) calc(var(--hr, 120px) * 1.8)),
              radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), transparent 0, transparent var(--hr, 120px), rgba(12,2,2,.92) calc(var(--hr, 120px) * 2.2));
  background-blend-mode: multiply; }
#fx { z-index: 7 !important; } #glow { z-index: 7 !important; }
.bottom, .after, .powered { z-index: 11 !important; }
.kandil .bloom { opacity: 0 !important; transition: opacity .3s; }
body.lit .kandil .bloom { opacity: .85 !important; }
body.lit .hang:nth-child(3n+1) .bloom { transition-delay: .1s; } body.lit .hang:nth-child(3n+2) .bloom { transition-delay: .35s; } body.lit .hang:nth-child(3n) .bloom { transition-delay: .6s; }
.kandil .lamp img:not(.bloom) { filter: drop-shadow(0 6px 8px rgba(40,4,2,.45)) brightness(.75); transition: filter .4s; }
body.lit .kandil .lamp img:not(.bloom) { filter: drop-shadow(0 6px 8px rgba(40,4,2,.45)) drop-shadow(0 0 14px rgba(255,190,80,.55)) brightness(1.05); }

/* ═════════ mohalla game center ═════════ */
.games > h2 { margin-bottom: 4px; }
.gc-sub { font: 500 16px/1.4 var(--sans); color: var(--cream); opacity: .85; }
.stalls-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 900px; margin: 22px auto 0; }
@media (max-width: 620px) { .stalls-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stall { position: relative; border: 0; cursor: pointer; padding: 34px 8px 12px; text-align: center; color: var(--ink);
  background: var(--yellow) url(assets/paper_yellow.webp) center / cover; border-radius: 0 0 6px 6px;
  box-shadow: inset 0 0 0 3px var(--maroon), inset 0 0 0 5px var(--yellow), inset 0 0 0 6.5px var(--pink), 0 10px 20px rgba(30,3,2,.45);
  display: flex; flex-direction: column; align-items: center; gap: 4px; transition: transform .2s, filter .2s; filter: saturate(.75) brightness(.85); }
.stall.on { filter: none; transform: translateY(-4px); }
.stall:hover { filter: none; }
.stall .aw, .booth-aw { position: absolute; left: 0; right: 0; top: 0; height: 26px; background: url(assets/game/awning.webp) 0 0 / auto 100% repeat-x; }
.stall img { height: 64px; width: auto; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(40,4,2,.3)); }
.stall b { font: 400 17px/1 var(--display); text-shadow: 1px 1px 0 var(--red); margin-top: 4px; }
.stall small { font: 500 11.5px/1.25 var(--sans); color: var(--maroon); }
.booth { position: relative; max-width: 900px; margin: 22px auto 0; padding: 46px 14px 26px; border-radius: 0 0 8px 8px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(239,189,13,.12), transparent 60%), #3d0a07;
  box-shadow: inset 0 0 0 3px var(--yellow), inset 0 0 0 6px #3d0a07, inset 0 0 0 7.5px var(--pink), 0 20px 40px rgba(20,2,1,.5); scroll-margin-top: 20px; }
.booth-aw { height: 40px; }
.booth .g-head { margin-top: 0; }

/* tota */
.tota-table { position: relative; height: clamp(360px, 70vw, 500px); margin: 8px auto 0; perspective: 1400px; overflow: hidden; }
.tota-table .kc { top: 48%; }
.tota { position: absolute; left: 50%; top: 48%; width: clamp(150px, 36vw, 230px); height: auto; z-index: 70; pointer-events: none; transform-origin: 50% 90%;
  filter: drop-shadow(0 8px 8px rgba(20,2,1,.5)); }
.reading { max-width: 32ch; margin: 6px auto 0; } .reading[hidden] { display: none; }
.r-title { font: 400 clamp(22px, 5.6vw, 30px)/1.1 var(--display); color: var(--yellow); text-shadow: 2px 2px 0 var(--red); animation: pop .45s cubic-bezier(.2,1.5,.4,1); }
.r-text { font: 500 17px/1.45 var(--sans); color: var(--cream); margin-top: 8px; }

/* gubbara */
.gub-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; max-width: 520px; margin: 14px auto 0; padding: 18px 12px;
  background: repeating-linear-gradient(90deg, #6b3b1c 0 46px, #5a3015 46px 48px); border-radius: 6px;
  box-shadow: inset 0 0 0 6px var(--yellow), inset 0 0 0 8px var(--maroon-d), 0 12px 24px rgba(20,2,1,.5); }
.gub { position: relative; border: 0; background: none; cursor: crosshair; padding: 0; aspect-ratio: .64; animation: bob2 3s ease-in-out var(--d) infinite; }
.gub img { width: 100%; height: 100%; object-fit: contain; }
.gub.popped { animation: none; cursor: default; }
.gub.popped img { animation: burst .35s ease-out forwards; }
@keyframes burst { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); opacity: .9; } }
@keyframes bob2 { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-5px) rotate(2deg); } }
.gtag { position: absolute; left: 50%; top: 30%; transform: translateX(-50%) rotate(-4deg); width: 130%; padding: 4px 4px 3px; z-index: 2;
  background: var(--cream); color: var(--maroon-d); font: 600 9.5px/1.15 var(--sans); box-shadow: 0 0 0 1.5px var(--maroon), 0 4px 8px rgba(0,0,0,.35); animation: pop .4s; }
.shots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.shots i { width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px var(--maroon-d); }
.shots i.used { background: transparent; box-shadow: 0 0 0 2px var(--yellow); opacity: .5; }
.haul { max-width: 420px; margin: 14px auto 0; padding: 16px 18px; text-align: left; background: var(--cream); color: var(--ink); border-radius: 4px;
  box-shadow: inset 0 0 0 3px var(--maroon), inset 0 0 0 6px var(--cream), inset 0 0 0 7.5px var(--pink); }
.haul[hidden] { display: none; }
.haul .r-title { font-size: 24px; color: var(--ink); text-align: center; }
.haul ol { margin: 8px 0 0 20px; font: 500 15px/1.5 var(--sans); color: var(--maroon-d); }

/* chhalla */
.ring-stage { position: relative; height: clamp(300px, 64vw, 380px); max-width: 560px; margin: 10px auto 0; }
.shelf { position: absolute; left: 0; right: 0; top: 10px; display: flex; justify-content: space-around; align-items: flex-end; padding: 0 6px 12px;
  border-bottom: 14px solid #6b3b1c; box-shadow: 0 6px 0 var(--yellow); }
.bot { position: relative; border: 0; background: none; padding: 0; cursor: pointer; width: 17%; }
.bot img { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 6px rgba(20,2,1,.45)); transition: transform .2s; }
.bot:hover img { transform: translateY(-4px); }
.btag { position: absolute; left: 50%; bottom: -44px; transform: translateX(-50%); width: 120%; font: 600 10.5px/1.15 var(--sans); color: var(--cream); }
.bot.ringed::after { content: ''; position: absolute; left: 50%; top: 14%; width: 70%; aspect-ratio: 2.6; transform: translateX(-50%);
  border-radius: 50%; border: 5px solid transparent; border-image: none; box-shadow: 0 0 0 4px #1f8a3c inset, 0 0 0 4px #c4221a; animation: pop .35s; }
.ring { position: absolute; left: 50%; bottom: 6px; width: 76px; height: 76px; border-radius: 50%; transform: translate(-50%, 0);
  background: conic-gradient(#c4221a 0 25%, #1f8a3c 0 50%, #c4221a 0 75%, #efbd0d 0);
  -webkit-mask: radial-gradient(circle, transparent 0 27px, #000 28px 37px, transparent 38px); mask: radial-gradient(circle, transparent 0 27px, #000 28px 37px, transparent 38px);
  filter: drop-shadow(0 6px 6px rgba(20,2,1,.5)); }

/* lucky draw */
.drum-stage { position: relative; width: min(340px, 80vw); margin: 10px auto 0; }
.drum-img { width: 100%; height: auto; cursor: pointer; filter: drop-shadow(0 16px 20px rgba(20,2,1,.55)); transform-origin: 50% 45%; }
.drum-img.spin { animation: drumspin .45s linear infinite; }
@keyframes drumspin { 0% { transform: rotate(-4deg) translateY(0); } 25% { transform: rotate(3deg) translateY(-4px); } 50% { transform: rotate(-3deg) translateY(2px); } 75% { transform: rotate(4deg) translateY(-3px); } 100% { transform: rotate(-4deg) translateY(0); } }
.ticket2 { position: relative; width: min(460px, 94vw); margin: 16px auto 0; animation: ticketOut .7s cubic-bezier(.2,1.4,.4,1); }
.ticket2[hidden] { display: none; }
.ticket2 img { width: 100%; height: auto; display: block; filter: drop-shadow(0 16px 24px rgba(20,2,1,.55)); }
.t2 { position: absolute; left: 26%; right: 8%; top: 18%; bottom: 16%; display: flex; flex-direction: column; justify-content: center; text-align: left; color: var(--ink); }
.t2 .t-kick { font: 600 10px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--maroon); }
.t2 .t-name { font: 400 clamp(19px, 5vw, 28px)/1.05 var(--display); text-shadow: 1.5px 1.5px 0 var(--red); margin: 6px 0; }
.t2 .t-text { font: 500 clamp(12px, 3.2vw, 15px)/1.35 var(--sans); color: var(--maroon-d); }

/* new decor: marigold swag across the top + ornate kandils */
.decor-swag { position: absolute; left: -2%; right: -2%; top: -6px; height: clamp(70px, 14vw, 120px); z-index: 2; pointer-events: none;
  background: url(assets/swag.webp) center top / auto 100% repeat-x; filter: drop-shadow(0 6px 6px rgba(20,2,1,.45)); }
.kandil .lamp { margin-top: -1px; }
.stall .aw { height: 30px; background: url(assets/game/awning.webp) center top / 100% 100% no-repeat; top: -6px; }
.booth-aw { height: 52px; top: -10px; background: url(assets/game/awning.webp) center top / 100% 100% no-repeat; }
.booth { padding-top: 60px; }
.t2 { left: 25%; right: 9%; top: 17%; bottom: 15%; }
.btag { bottom: -62px !important; } .ring-stage { height: clamp(330px, 70vw, 400px) !important; } .shelf { padding-bottom: 14px; }

/* no gate any more — invites open straight onto the envelope */
#gate { display: none !important; }

/* ═════════════════ round 3 ═════════════════ */
.powered { display: none !important; }

/* headline: short and loud */
.aao { position: relative; padding-top: 70px !important; padding-bottom: 50px !important; }
.aao h1 { font-size: clamp(46px, 13vw, 96px) !important; line-height: .95 !important; max-width: none !important; }
.aao .lede { font: 600 clamp(18px, 4.6vw, 22px)/1.3 var(--sans) !important; margin-top: 14px !important; }
.deco-float { position: absolute; width: clamp(90px, 22vw, 190px); height: auto; pointer-events: none; filter: drop-shadow(0 8px 10px rgba(20,2,1,.45)); animation: floaty 6s ease-in-out infinite; }
.deco-float.d-l { left: -10px; top: 18px; transform: rotate(-10deg); }
.deco-float.d-r { right: -10px; bottom: 6px; animation-delay: -3s; }
@keyframes floaty { 0%,100% { translate: 0 0; rotate: -4deg; } 50% { translate: 0 -8px; rotate: 3deg; } }
.deco-row { display: block; width: min(560px, 90vw); margin: -6px auto 0; pointer-events: none; filter: drop-shadow(0 8px 10px rgba(20,2,1,.4)); animation: swingy 5s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes swingy { 0%,100% { rotate: -1.2deg; } 50% { rotate: 1.2deg; } }

/* details as objects you could pick up */
.objects { position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: clamp(10px, 4vw, 40px); padding-top: 40px !important; padding-bottom: 70px !important; }
.objects .deco-ground { position: absolute; left: 50%; top: 50%; width: min(520px, 92vw); transform: translate(-50%, -50%); opacity: .22; pointer-events: none; z-index: 0; }
.obj { position: relative; margin: 0; z-index: 1; width: clamp(150px, 42vw, 250px); filter: drop-shadow(0 18px 22px rgba(20,2,1,.5)); animation: objFloat 5s ease-in-out infinite; container-type: inline-size; }
.obj img { width: 100%; height: auto; display: block; }
.obj figcaption { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 3cqw; }
.o-k { font: 600 6cqw/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; }
.o-big { font: 400 11cqw/1.02 var(--display); }
.o-s { font: 600 6.4cqw/1.2 var(--sans); }
.o-cal { transform: rotate(-4deg); }
.o-cal figcaption { left: 10%; right: 10%; top: 20%; bottom: 8%; color: var(--ink); }
.o-cal .o-k { color: var(--red); } .o-cal .o-big { font-size: 15cqw; text-shadow: 2px 2px 0 var(--red); }
.o-sign { width: clamp(190px, 56vw, 330px); transform: rotate(2deg); animation-delay: -1.6s; }
.o-sign figcaption { left: 12%; right: 12%; top: 16%; bottom: 16%; color: var(--cream); }
.o-sign .o-k { color: var(--yellow); } .o-sign .o-big { color: #fff; font-size: 10cqw; }
.o-link { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.o-tag { transform: rotate(5deg); animation-delay: -3s; transform-origin: 70% 5%; }
.o-tag figcaption { left: 14%; right: 14%; top: 26%; bottom: 20%; color: var(--ink); }
.o-tag .o-k { color: var(--red); letter-spacing: .1em; font-family: var(--deva); font-weight: 700; } .o-tag .o-big { font-size: 13cqw; text-shadow: 2px 2px 0 var(--red); }
@keyframes objFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@media (max-width: 620px) { .o-sign { order: -1; width: 86vw; } .obj { width: 42vw; } }
.deco-sit { position: absolute; width: clamp(54px, 13vw, 96px); bottom: 10px; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(20,2,1,.5)); z-index: 2; }
.deco-sit.s1 { left: 4%; } .deco-sit.s2 { right: 4%; } .deco-sit.s3 { left: 6%; top: 40px; bottom: auto; } .deco-sit.s4 { right: 6%; bottom: 30px; }
.deco-sit::after { content: ''; }
.rsvp { position: relative; }
.rsvp .deco-ground.rg2 { position: absolute; left: 50%; top: 50%; width: min(600px, 110vw); transform: translate(-50%, -50%); opacity: .18; pointer-events: none; }
.rsvp > *:not(.deco-ground) { position: relative; }

/* game center chrome */
.games { position: relative; }
.deco-hang { position: absolute; top: 0; width: clamp(26px, 6vw, 44px); pointer-events: none; animation: swingy 4s ease-in-out infinite; transform-origin: 50% 0; filter: drop-shadow(0 6px 6px rgba(20,2,1,.4)); }
.deco-hang.h1 { left: 3%; } .deco-hang.h2 { right: 3%; animation-delay: -2s; }
@media (max-width: 620px) {
  .stalls-row { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 6px !important; }
  .stall { padding: 22px 2px 8px !important; }
  .stall img { height: 34px !important; }
  .stall b { font-size: 11.5px !important; }
  .stall small { display: none; }
  .stall .aw { height: 18px !important; top: -4px !important; }
}
.booth-in { position: relative; }
.game { touch-action: manipulation; }

/* tota */
.tota { left: 50%; top: 50%; transition: none !important; will-change: transform; }
.tota-table .kc { top: 52%; }
.kc-front { background-size: cover; background-position: center; }
.reading { position: relative; padding: 16px 18px; margin: 12px auto 0; max-width: 420px; background: var(--cream); border-radius: 4px; text-align: center;
  box-shadow: inset 0 0 0 3px var(--maroon), inset 0 0 0 6px var(--cream), inset 0 0 0 7.5px var(--pink), 0 14px 26px rgba(20,2,1,.45); animation: pop .45s cubic-bezier(.2,1.4,.4,1); }
.r-kick { font: 600 12px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--red); }
.reading .r-text { color: var(--ink) !important; font: 500 17px/1.45 var(--sans); margin-top: 8px; }
.reading .r-title { color: var(--ink) !important; text-shadow: 2px 2px 0 var(--red) !important; }

/* gubbara range */
.range { position: relative; height: clamp(380px, 110vw, 520px); max-width: 560px; margin: 12px auto 0; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; overflow: hidden; border-radius: 6px;
  background: linear-gradient(#5c2d12, #3a1b0a); box-shadow: inset 0 0 0 6px var(--yellow), inset 0 0 0 8px var(--maroon-d), 0 14px 26px rgba(20,2,1,.5); }
.range-wall { position: absolute; left: 12px; right: 12px; top: 12px; height: 70%; border-radius: 3px; background: repeating-linear-gradient(90deg, #6b3b1c 0 46px, #5a3015 46px 48px); }
.range .gub { position: absolute; left: 0; top: 0; width: 15%; aspect-ratio: .64; animation: none !important; pointer-events: none; }
.range .gub img { width: 100%; height: 100%; object-fit: contain; }
.range .gub.popped img { animation: burst .35s ease-out forwards; }
.range .gtag { top: 20% !important; width: 190% !important; font-size: 9.5px !important; }
.cross { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; pointer-events: none; z-index: 5; border-radius: 50%;
  box-shadow: 0 0 0 2px var(--yellow), 0 0 0 4px rgba(20,2,1,.6); background: radial-gradient(circle, var(--red) 0 3px, transparent 3.5px); }
.cross::before, .cross::after { content: ''; position: absolute; background: var(--yellow); box-shadow: 0 0 0 1px rgba(20,2,1,.5); }
.cross::before { left: 50%; top: -8px; bottom: -8px; width: 2px; margin-left: -1px; } .cross::after { top: 50%; left: -8px; right: -8px; height: 2px; margin-top: -1px; }
.range.aiming .cross { transform-origin: center; }
.rifle { position: absolute; left: 50%; bottom: -46%; height: 70%; width: auto; z-index: 4; transform-origin: 50% 100%; pointer-events: none; filter: drop-shadow(0 10px 10px rgba(20,2,1,.6)); }
.pellets { position: absolute; right: 18px; bottom: 16px; z-index: 6; display: flex; gap: 5px; }
.pellets i { width: 10px; height: 18px; border-radius: 5px 5px 2px 2px; background: linear-gradient(#f6d27a, #c99a2e); box-shadow: 0 0 0 1.5px var(--maroon-d); }
.pellets i.used { opacity: .2; }
.gfx { position: absolute; z-index: 6; pointer-events: none; width: 70px; height: 70px; margin: -35px 0 0 -35px; }
.gfx.pop { background: url(assets/game/bal8.webp) center / contain no-repeat; animation: gpop .5s ease-out forwards; }
.gfx.puff { border-radius: 50%; background: radial-gradient(circle, rgba(247,230,200,.7), rgba(247,230,200,0) 60%); animation: gpuff .6s ease-out forwards; }
@keyframes gpop { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
@keyframes gpuff { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.gmiss { position: absolute; z-index: 7; pointer-events: none; transform: translate(-50%, -140%); font: 400 18px/1 var(--display); color: var(--yellow); text-shadow: 2px 2px 0 var(--red); white-space: nowrap; animation: gmiss .9s ease-out forwards; }
@keyframes gmiss { to { translate: 0 -30px; opacity: 0; } }

/* chhalla */
.ring-stage { touch-action: none; user-select: none; -webkit-user-select: none; height: clamp(380px, 100vw, 460px) !important; }
.bot { pointer-events: none; }
.ring { bottom: 20px !important; cursor: grab; z-index: 5; will-change: transform; }
.ring-stage.aiming .ring { cursor: grabbing; }
.ring::after { content: ''; }
.ring-stage .aim { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; overflow: visible; }
.ring-stage .aim line { stroke: var(--yellow); stroke-width: 3; stroke-dasharray: 6 7; stroke-linecap: round; opacity: .85; }
.ring-stage::after { content: 'flick ↑'; position: absolute; left: 50%; bottom: 104px; transform: translateX(-50%); font: 600 12px/1 var(--sans); letter-spacing: .2em; color: var(--cream); opacity: .6; pointer-events: none; }
.btag { bottom: -64px !important; }

/* lucky draw: sliced drum */
.drum-stage { position: relative; width: min(360px, 84vw) !important; aspect-ratio: 700 / 503; margin: 14px auto 0; perspective: 900px; }
.drum-stage > * { position: absolute; }
.dr-body { left: 10%; top: 0; width: 60%; height: 70%; transform-origin: 50% 51%; will-change: transform; }
.dr-slips { left: 19%; top: 19%; width: 41%; height: 46%; overflow: hidden; clip-path: polygon(15% 0, 85% 0, 100% 50%, 85% 100%, 15% 100%, 0 50%); z-index: 1;
  background: none; }
.dr-slips::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(212,170,70,.85) 0 1.5px, transparent 1.5px 9px), repeating-linear-gradient(90deg, rgba(212,170,70,.85) 0 1.5px, transparent 1.5px 9px); }
.dr-slips i { position: absolute; left: 0; top: 0; width: 18%; height: 13%; margin: -6% 0 0 -9%; box-shadow: 0 1px 2px rgba(0,0,0,.35); }
.dr-stand { left: 0; top: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.dr-crank { left: 73.6%; top: 27.8%; width: 26.4%; height: 17.9%; z-index: 3; transform-origin: 0 25.5%; cursor: grab; touch-action: none; padding: 0; will-change: transform; filter: drop-shadow(0 4px 4px rgba(20,2,1,.4)); }
.dr-crank:active { cursor: grabbing; }
.dr-drop { left: 37%; top: 62%; width: 8%; aspect-ratio: 1.4; z-index: 1; opacity: 0; background: var(--cream); border-radius: 2px; box-shadow: inset 0 0 0 2px var(--pink), 0 3px 6px rgba(0,0,0,.4); }
.dr-drop.go { animation: tdrop .7s cubic-bezier(.5,0,.6,1) forwards; }
@keyframes tdrop { 0% { opacity: 1; transform: translateY(0) rotate(0) scale(.6); } 60% { opacity: 1; transform: translateY(150%) rotate(200deg) scale(.9); } 80% { transform: translateY(260%) rotate(330deg) scale(1.2); opacity: 1; } 100% { transform: translateY(330%) rotate(360deg) scale(1.6); opacity: 0; } }

/* the ticket: lands folded, then opens; always fits the screen */
.tix { width: min(460px, 100%); margin: 6px auto 0; perspective: 900px; }
.tix[hidden] { display: none; }
.tix-in { position: relative; container-type: inline-size; transform-origin: 50% 0; filter: drop-shadow(0 16px 24px rgba(20,2,1,.55)); overflow: hidden; }
.tix.open .tix-in { animation: tixOpen 1s cubic-bezier(.2,1.1,.3,1) both; }
@keyframes tixOpen {
  0% { transform: translateY(-140px) rotateX(-88deg) scale(.4); }
  35% { transform: translateY(0) rotateX(-88deg) scale(.7); }
  70% { transform: rotateX(12deg) scale(1.02); }
  100% { transform: rotateX(0) scale(1); } }
.tix-in > img { width: 100%; height: auto; display: block; }
.tix .t2 { position: absolute; left: 25%; right: 8%; top: 15%; bottom: 13%; display: flex; flex-direction: column; justify-content: center; text-align: left; color: var(--ink); }
.tix .t-kick { font: 600 2.4cqw/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--maroon); }
.tix .t-name { font: 400 6.4cqw/1.02 var(--display); text-shadow: .35cqw .35cqw 0 var(--red); margin: 1.6cqw 0; }
.tix .t-text { font: 500 3.3cqw/1.35 var(--sans); color: var(--maroon-d); }
.tix-sheen, .card .card-sheen { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,250,225,.65) 48%, rgba(255,255,255,.15) 52%, transparent 65%); mix-blend-mode: soft-light; background-size: 250% 100%; animation: sheen 3.4s ease-in-out infinite; }
@keyframes sheen { 0% { background-position: 130% 0; } 60%,100% { background-position: -40% 0; } }
.tix.open .tix-sheen { animation-delay: .9s; }

/* invite card sheen */
.card .card-sheen { -webkit-mask: url(assets/invite_card.webp) center / contain no-repeat; mask: url(assets/invite_card.webp) center / contain no-repeat; animation-duration: 4.2s; }
.o-tag .o-big { font-size: 10.5cqw !important; } .o-tag figcaption { left: 12% !important; right: 12% !important; }
.o-tag .o-s { font-size: 5.6cqw; }
.objects { padding-bottom: 30px !important; }
.objects .deco-sit { bottom: -4px; }
.tota { width: clamp(110px, 30vw, 200px) !important; }
.tota-table .kc { top: 44% !important; }
.kc-label { position: absolute; left: 6%; right: 6%; bottom: 5%; padding: 5% 4% 4%; background: var(--yellow); color: var(--ink); text-align: center;
  font: 400 calc(var(--w) * .085)/1.05 var(--display); text-shadow: 1px 1px 0 var(--red); box-shadow: 0 0 0 2px var(--maroon), 0 4px 8px rgba(0,0,0,.4); border-radius: 2px; }
.rifle { height: 92% !important; bottom: -52% !important; }
.tix .t2 { left: 27% !important; right: 13% !important; }
.games::before, .games::after { content: ''; position: absolute; width: clamp(80px, 20vw, 170px); aspect-ratio: 1; background: url(assets/deco/flowers3.webp) center / contain no-repeat; pointer-events: none; filter: drop-shadow(0 8px 10px rgba(20,2,1,.4)); }
.games::before { left: -14px; bottom: -30px; } .games::after { right: -14px; bottom: -30px; background-image: url(assets/deco/flowers4.webp); transform: scaleX(-1); }
.foot { position: relative; } .foot::before { content: ''; position: absolute; left: 50%; top: -34px; width: 60px; height: 60px; transform: translateX(-50%); background: url(assets/deco/bell2.webp) center / contain no-repeat; animation: swingy 3s ease-in-out infinite; transform-origin: 50% 0; }

/* rifle held from the bottom-right corner, pivoting at the butt */
.rifle { left: 0; top: 0; bottom: auto !important; height: auto !important; width: 88% !important; max-width: 480px; transform-origin: 0 50% !important; }

/* results as cards */
.haul-cards { margin: 16px auto 0; max-width: 560px; }
.haul-cards[hidden] { display: none; }
.hc-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.win-card { position: relative; background: var(--cream); border-radius: 4px; padding: 12px 10px 12px; text-align: center; color: var(--ink);
  box-shadow: inset 0 0 0 3px var(--maroon), inset 0 0 0 5px var(--cream), inset 0 0 0 6.5px var(--pink), 0 10px 18px rgba(20,2,1,.45);
  animation: dealIn .5s cubic-bezier(.2,1.4,.4,1) both; }
.win-card:nth-child(odd) { rotate: -2deg; } .win-card:nth-child(even) { rotate: 2deg; }
.win-card img { height: 54px; width: auto; margin: 0 auto 6px; animation: bob3 2.6s ease-in-out infinite; }
.win-card p { font: 600 13px/1.25 var(--sans); }
@keyframes dealIn { from { opacity: 0; transform: translateY(30px) scale(.7) rotate(-8deg); } to { opacity: 1; transform: none; } }

/* share */
.share-btn[hidden] { display: none !important; }
.share-btn { font-size: 17px !important; padding: 13px 20px 11px !important; }
.share-btn::before { content: '↗ '; }
.after .share-btn { margin-bottom: 2px; }
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 50; transform: translate(-50%, 20px); opacity: 0; transition: all .35s;
  background: var(--yellow); color: var(--ink); padding: 12px 18px 10px; border-radius: 4px; font: 400 16px/1 var(--display); box-shadow: 0 0 0 2px var(--maroon), 0 10px 24px rgba(0,0,0,.4); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* a little life in everything */
@keyframes bob3 { 0%,100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes tilt3 { 0%,100% { rotate: -2.5deg; } 50% { rotate: 2.5deg; } }
@keyframes spinSlow { to { rotate: 360deg; } }
.deco-sit { animation: bob3 3.2s ease-in-out infinite, tilt3 4.4s ease-in-out infinite; }
.deco-sit.s2, .deco-sit.s4 { animation-delay: -1.4s, -2s; }
.deco-ground { animation: spinSlow 90s linear infinite; }
.objects .deco-ground, .rsvp .deco-ground.rg2 { translate: -50% -50%; transform: none !important; }
.stall img { animation: bob3 2.4s ease-in-out infinite; }
.stall:nth-child(2) img { animation-delay: -.6s; } .stall:nth-child(3) img { animation-delay: -1.2s; } .stall:nth-child(4) img { animation-delay: -1.8s; }
.bot img { animation: tilt3 3s ease-in-out infinite; transform-origin: 50% 100%; }
.bot:nth-child(2n) img { animation-delay: -1.5s; } .bot:nth-child(3n) img { animation-delay: -.7s; }
.drum-stage { animation: bob3 3.6s ease-in-out infinite; }
.tota { animation: none; }
.k-actions .sign.red:not([hidden]) { animation: bob3 2.2s ease-in-out infinite; }
.rsvp-star, .aao .deco-float { will-change: transform; }
.reading, .win-card, .tix-in { will-change: transform; }
.obj { animation-duration: 4.4s; }
.foot-nl { animation: bob3 3s ease-in-out infinite; }
.cardname { animation: bob3 3.4s ease-in-out infinite; }
#night { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; background: none !important; opacity: 1 !important; filter: blur(2px); }
#glow { mix-blend-mode: soft-light !important; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 60%), rgba(255,170,60,.95) 0, rgba(255,120,30,.45) 22vmax, transparent 48vmax) !important; z-index: 5 !important; }
body:not(.lit) .decor .kandil .lamp img:not(.bloom) { filter: brightness(.55) saturate(.7) !important; }
/* decor: deck pieces only, small and quiet */
.deco-float { width: clamp(46px, 11vw, 90px) !important; opacity: .9; }
.deco-float.d-l { left: 8px !important; top: 26px !important; } .deco-float.d-r { right: 10px !important; bottom: 18px !important; }
.deco-sit { width: clamp(36px, 8vw, 58px) !important; opacity: .95; }
.games::before { background-image: url(assets/conf/c01.webp) !important; width: clamp(40px, 9vw, 70px) !important; left: 10px !important; bottom: -10px !important; }
.games::after { background-image: url(assets/conf/c02.webp) !important; width: clamp(40px, 9vw, 70px) !important; right: 10px !important; bottom: -10px !important; transform: none !important; }
.foot::before { display: none; }
.kc-label { font-size: calc(var(--w) * .07) !important; padding: 4% 4% 3% !important; }
/* hot-stamped gold foil for the guest's name */
.foil { background: linear-gradient(100deg, #8a5310 0%, #e9b53a 18%, #fff3c0 30%, #d9a02e 42%, #a8701a 55%, #f6d36b 70%, #fff6d4 78%, #b9811f 92%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; -webkit-text-fill-color: transparent;
  text-shadow: none !important; filter: drop-shadow(1.5px 2px 0 rgba(120,30,10,.85)) drop-shadow(0 0 1px rgba(255,240,200,.4)); animation: foilGlint 4.5s ease-in-out infinite; }
@keyframes foilGlint { 0%,100% { background-position: 100% 0; } 50% { background-position: 0% 0; } }
.aao h1 .foil { display: inline-block; }

/* printed paper: matchbox + seal + objects get grain and wear */
.box .sleeve, .drawer img { filter: contrast(1.04) saturate(1.05); }
.box::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: 3px; background: var(--grain); background-size: 160px; mix-blend-mode: multiply; opacity: .55;
  -webkit-mask: url(assets/mb_sleeve.webp) center / 100% 100%; mask: url(assets/mb_sleeve.webp) center / 100% 100%; }
.box::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2; border-radius: 3px; background: linear-gradient(115deg, transparent 30%, rgba(255,240,200,.28) 45%, transparent 60%); mix-blend-mode: soft-light; background-size: 250% 100%; animation: sheen 5s ease-in-out infinite;
  -webkit-mask: url(assets/mb_sleeve.webp) center / 100% 100%; mask: url(assets/mb_sleeve.webp) center / 100% 100%; }
.obj::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: var(--grain); background-size: 180px; mix-blend-mode: multiply; opacity: .35;
  -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; }
.o-cal { --m: url(assets/deco/calendar.webp); } .o-sign { --m: url(assets/deco/sign.webp); } .o-tag { --m: url(assets/deco/tag.webp); }
.rifle { width: auto; max-width: none !important; }
.range-wall { height: 64% !important; }

/* details: three mohalla enamel signs, hung on twine, each its own colour */
.signs { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px clamp(14px, 3vw, 34px); padding-top: 50px !important; }
.sgn { position: relative; margin: 0; width: clamp(240px, 30vw, 330px); container-type: inline-size; transform-origin: 50% -34px; animation: signSwing 4.6s ease-in-out infinite; filter: drop-shadow(0 16px 18px rgba(20,2,1,.5)); }
.sgn:nth-child(2) { animation-delay: -1.5s; } .sgn:nth-child(3) { animation-delay: -3.1s; }
@keyframes signSwing { 0%,100% { rotate: -2.2deg; } 50% { rotate: 2.2deg; } }
.sgn img { width: 100%; height: auto; display: block; }
.sgn .hook { position: absolute; left: 50%; top: -34px; width: 46%; height: 40px; transform: translateX(-50%); border: 2px solid #c9a46a; border-bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.sgn .hook::before { content: ''; position: absolute; left: 50%; top: -7px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f6d36b, #8a5310); }
.sgn figcaption { position: absolute; left: 13%; right: 13%; top: 17%; bottom: 17%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2.4cqw; color: #fff6dc; }
.sgn .o-k { font: 600 4.6cqw/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--yellow); }
.sgn.s-pink .o-k { font-family: var(--deva); letter-spacing: .06em; font-size: 5.6cqw; }
.sgn .o-big { font: 400 9.4cqw/1.02 var(--display); color: #fff8e6; text-shadow: .5cqw .5cqw 0 rgba(20,2,1,.45); }
.sgn .o-s { font: 600 4.8cqw/1.2 var(--sans); color: #fff0c8; }
.sgn .o-link { color: var(--yellow); }
@media (max-width: 620px) { .sgn { width: 86vw; } }
.objects:not(.signs) { display: none; }

/* section entrances: things arrive, they don't just exist */
.reveal-up { opacity: 0; translate: 0 40px; transition: opacity .8s ease, translate .9s cubic-bezier(.2,.9,.3,1); }
.reveal-up.in { opacity: 1; translate: 0 0; }
.reveal-up:nth-child(2) { transition-delay: .12s; } .reveal-up:nth-child(3) { transition-delay: .24s; }
.reveal-pop { opacity: 0; scale: .86; rotate: -2deg; transition: opacity .7s ease, scale .8s cubic-bezier(.2,1.4,.4,1), rotate .8s; }
.reveal-pop.in { opacity: 1; scale: 1; rotate: 0deg; }
.reveal-text { opacity: 0; filter: blur(8px); translate: 0 24px; transition: opacity .9s, filter .9s, translate .9s cubic-bezier(.2,.9,.3,1); }
.reveal-text.in { opacity: 1; filter: none; translate: 0 0; }

/* chhalla: bottles sway as a whole, so a ringed bangle sways with its bottle */
.bot { position: relative; animation: botSway 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes botSway { 0%,100% { rotate: -2deg; } 50% { rotate: 2deg; } }
.bot img { animation: none !important; position: relative; z-index: 1; }
.bot .hoop { position: absolute; left: 50%; top: 20%; width: 78%; aspect-ratio: 2.4; transform: translate(-50%, -50%) scale(.4); opacity: 0; border-radius: 50%;
  border: max(4px, .55vw) solid transparent; border-color: #c4221a #1f8a3c #c4221a #efbd0d; transition: transform .35s cubic-bezier(.2,1.6,.4,1), opacity .2s; pointer-events: none; }
.bot .hoop.back { z-index: 0; clip-path: inset(0 0 50% 0); filter: brightness(.7); }
.bot .hoop.front { z-index: 2; clip-path: inset(50% 0 0 0); box-shadow: 0 3px 4px rgba(0,0,0,.35); }
.bot.ringed .hoop { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.bot.ringed .hoop.front { animation: hoopSettle .5s ease-out; }
@keyframes hoopSettle { 0% { translate: 0 -14px; } 60% { translate: 0 4px; } 100% { translate: 0 0; } }
.bot.ringed::after { display: none !important; }
.coach { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: 6; margin: 0; padding: 8px 14px 7px; white-space: nowrap; border-radius: 3px;
  background: var(--cream); color: var(--maroon-d); font: 400 15px/1 var(--display); box-shadow: 0 0 0 2px var(--maroon), 0 8px 16px rgba(0,0,0,.4); pointer-events: none; }
.coach[hidden] { display: none; } .coach.good { background: var(--yellow); color: var(--red); }
.coach.bump { animation: pop .35s cubic-bezier(.2,1.6,.4,1); }
.ring-stage.practice::before { content: 'PRACTICE'; position: absolute; right: 10px; top: 8px; z-index: 6; font: 600 11px/1 var(--sans); letter-spacing: .3em; color: var(--yellow); opacity: .8; }
.ring-stage::after { bottom: 96px !important; }

/* pin + share row */
.pin-btn[hidden] { display: none !important; }
.pin-btn { font-size: 17px !important; padding: 13px 20px 11px !important; }
.pin-btn::before { content: '📌 '; }
.pin-btn:disabled { opacity: .7; cursor: default; }
.k-actions { flex-direction: row !important; flex-wrap: wrap; justify-content: center; gap: 10px !important; }
.k-actions .linkish { flex-basis: 100%; }

/* mohalle ki deewar: two rows of pinned cards drifting past */
.wall2 { text-align: center; max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; overflow: hidden; }
.wall2 h2 { font: 400 clamp(30px, 8vw, 50px)/1.05 var(--display); color: var(--cream); text-shadow: 2px 2px 0 var(--red); }
.w-track { overflow: hidden; padding: 14px 0; }
.w-row { display: flex; gap: 16px; width: max-content; animation: tick 60s linear infinite; }
.w-track.rev .w-row { animation-direction: reverse; }
.w-track:hover .w-row { animation-play-state: paused; }
.wcard { flex: none; width: 210px; padding: 14px 14px 16px; border-radius: 4px; text-align: left; color: var(--ink); position: relative;
  background: var(--cream); box-shadow: inset 0 0 0 3px var(--maroon), inset 0 0 0 5px var(--cream), inset 0 0 0 6.5px var(--pink), 0 10px 18px rgba(20,2,1,.45); }
.wcard:nth-child(odd) { rotate: -1.5deg; } .wcard:nth-child(even) { rotate: 1.5deg; }
.wcard::before { content: ''; position: absolute; left: 50%; top: -6px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8aa8, #c4221a); box-shadow: 0 2px 3px rgba(0,0,0,.4); }
.wcard img { position: absolute; right: 10px; top: 12px; height: 40px; width: auto; opacity: .95; }
.wc-game { display: block; font: 600 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
.wc-name { display: block; font: 400 20px/1.1 var(--display); margin: 6px 0 4px; }
.wc-title { font: 400 15px/1.15 var(--display); color: var(--maroon); padding-right: 30px; }
.wc-text { font: 500 12px/1.35 var(--sans); color: var(--maroon-d); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.w-tota { background: var(--cream); } .w-gubbara { background: #fde6ee; } .w-chhalla { background: #e3f2ee; } .w-draw { background: #fff3c4; }
.w-empty { font: 500 15px/1.4 var(--sans); color: var(--cream); opacity: .75; }
.w-empty[hidden] { display: none; }

/* chhalla: coach + practice tag get their own strip under the bangle, never over bottles/labels */
.ring-stage { padding-bottom: 0; height: clamp(420px, 110vw, 500px) !important; }
.ring { bottom: 54px !important; }
.ring-stage::after { bottom: 136px !important; }
.coach { bottom: 8px; top: auto; }
.ring-stage.practice::before { top: auto; bottom: 18px; left: 12px; right: auto; }
.ring-stage.practice:has(.coach:not([hidden]))::before { display: none; }

/* wall: one JS-driven row (drag to scrub), sits above the games */
.wall2 .w-row { animation: none !important; will-change: transform; }
.wall2 .w-track { touch-action: pan-y; cursor: grab; padding: 18px 0 22px; }
.wall2 { padding-bottom: 30px !important; }

/* stickers out (for now): no floating confetti pieces / sit-ons around sections */
.deco-float, .deco-sit, .games::before, .games::after { display: none !important; }

/* ═════════ round 6: result labels, guided flow, haul, 4-balloon range, 2-bottle ring toss, mood draw ═════════ */
.res-label { font: 600 12px/1.2 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--yellow); text-align: center; margin: 10px 0 8px; }
.res-label[hidden] { display: none; }
.res-label::before, .res-label::after { content: '✦'; color: var(--pink); margin: 0 .6em; letter-spacing: 0; }
.next-btn { --bg: var(--teal); }
.next-btn[hidden] { display: none !important; }
.tota-table.can-shuffle { cursor: pointer; }
.tota-table.can-shuffle .kc:last-of-type { animation: deckHint 2.4s ease-in-out infinite; }
@keyframes deckHint { 0%, 70%, 100% { translate: 0 0; } 80% { translate: 0 -8px; } 90% { translate: 0 0; } }
.stall.done b::after { content: ' ✓'; color: var(--teal); }

/* haul — everything you got, pin/share later */
.my-haul { max-width: 760px; margin: 34px auto 0; text-align: center; }
.my-haul[hidden] { display: none; }
.mh-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; margin-top: 14px; }
.mh-card { position: relative; padding: 14px 14px 16px; border-radius: 4px; color: var(--ink); text-align: center;
  background: var(--cream); box-shadow: inset 0 0 0 3px var(--maroon), inset 0 0 0 5px var(--cream), inset 0 0 0 6.5px var(--pink), 0 12px 22px rgba(20,2,1,.5);
  animation: dealIn .5s cubic-bezier(.2,1.4,.4,1) both; }
.mh-card:nth-child(odd) { rotate: -1deg; } .mh-card:nth-child(even) { rotate: 1deg; }
.mh-card .res-label { color: var(--red); margin-top: 0; font-size: 10px; }
.mh-card .res-label::before, .mh-card .res-label::after { display: none; }
.mh-card img { height: 92px; width: auto; max-width: 80%; object-fit: contain; margin: 2px auto 8px; display: block; filter: drop-shadow(0 6px 8px rgba(20,2,1,.3)); }
.mh-title { font: 400 21px/1.08 var(--display); text-shadow: 1.5px 1.5px 0 var(--red); }
.mh-text { font: 500 13px/1.4 var(--sans); color: var(--maroon-d); margin-top: 6px; }
.mh-acts { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.sign.small { font-size: 15px !important; padding: 11px 16px 9px !important; }
.sign.small:disabled { opacity: .6; }

/* gubbara: four big balloons, room to aim */
.range .gub { width: 15.5% !important; }
.pellets { gap: 4px !important; }
.pellets i { width: 8px !important; height: 15px !important; }

/* ring toss: two bottles, nothing written underneath */
.btag { display: none !important; }
.shelf { justify-content: space-evenly !important; }
.bot { width: 16.5% !important; }
.bot.enter { animation: botIn .6s cubic-bezier(.2,1.3,.4,1) both, botSway 3.2s ease-in-out .6s infinite !important; }
@keyframes botIn { from { opacity: 0; transform: translateX(60px) rotate(8deg); } to { opacity: 1; transform: none; } }
.pellets.rings { position: absolute; left: 12px; right: auto; bottom: 18px; z-index: 6; flex-wrap: wrap; width: 90px; }
.pellets.rings i { width: 13px !important; height: 13px !important; border-radius: 50%; background: none; box-shadow: inset 0 0 0 3px var(--yellow), 0 0 0 1px var(--maroon-d); }
.pellets.rings i.used { opacity: .2; }
.ring-stage.practice::before { display: none !important; }

/* lucky draw: explain it, show progress, step the drum aside for the ticket */
.d-intro { max-width: 34ch; margin-left: auto; margin-right: auto; }
.d-intro b { color: var(--yellow); font-weight: 600; }
.d-intro.gone { display: none; }
.drum-stage { cursor: grab; touch-action: none; transition: opacity .35s, transform .45s cubic-bezier(.5,0,.7,.4), max-height .45s .2s, margin .45s .2s; max-height: 600px; }
.drum-stage.turning { cursor: grabbing; }
.drum-stage.gone { opacity: 0; transform: translateY(40px) scale(.7); max-height: 0; margin: 0 auto !important; pointer-events: none; animation: none !important; }
.d-meter { display: flex; gap: 8px; justify-content: center; margin: 12px 0 0; }
.d-meter i { width: 34px; height: 8px; border-radius: 4px; background: rgba(247,230,200,.18); transition: background .3s, box-shadow .3s; }
.d-meter i.on { background: var(--yellow); box-shadow: 0 0 10px rgba(239,189,13,.7); }
.d-meter.gone { display: none; }
.tix .t-extra { font: 600 2.4cqw/1.35 var(--sans); color: var(--red); margin-top: 1.6cqw; letter-spacing: .02em; }
.tix .t-name { font-size: 5.6cqw !important; }
.tix .t-text { font-size: 3cqw !important; }

/* wall now sits before the games */
.wall2 { padding-top: 40px !important; }
.tix .t2 { top: 12% !important; bottom: 11% !important; }
.tix .t-name { font-size: 5cqw !important; margin: 1cqw 0 !important; }
.tix .t-text { font-size: 2.7cqw !important; line-height: 1.3 !important; }
.tix .t-extra { font-size: 2.15cqw !important; margin-top: 1cqw !important; line-height: 1.3; }
.tix .t-kick { font-size: 2.1cqw !important; }

/* wall cards: each pin carries its illustration */
.wcard { width: 236px !important; padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; }
.wcard > img { display: none; }
.wc-art { position: relative; height: 128px; display: flex; align-items: center; justify-content: center; margin: 8px 8px 0; border-radius: 3px; overflow: hidden;
  background: radial-gradient(circle at 50% 60%, rgba(255,220,140,.55), transparent 70%), var(--maroon); }
.w-gubbara .wc-art { background: repeating-linear-gradient(90deg, #6b3b1c 0 30px, #5a3015 30px 32px); }
.w-chhalla .wc-art { background: linear-gradient(#3c6e64, #24433d); }
.w-draw .wc-art { background: radial-gradient(circle at 50% 50%, #ffd76a, #c4221a); }
.w-tota .wc-art { background: radial-gradient(circle at 50% 50%, #ffd76a 0, #75150f 75%); }
.wc-art img { height: 112px; width: auto; max-width: 92%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(20,2,1,.45)); }
.a-poster img { height: 118px; rotate: -3deg; border-radius: 3px; box-shadow: 0 0 0 3px var(--cream), 0 8px 14px rgba(20,2,1,.5); filter: none; }
.a-balloon img { height: 84px; margin: 0 -10px; animation: bob3 calc(2.4s + var(--k) * .3s) ease-in-out infinite; } .a-balloon img:nth-child(even) { translate: 0 -12px; }
.a-bottle img { height: 116px; }
.wc-hoop { position: absolute; left: 50%; top: 22%; width: 34px; height: 12px; margin-left: -17px; border-radius: 50%; border: 3.5px solid var(--yellow); box-shadow: 0 2px 3px rgba(0,0,0,.4); }
.a-ticket img { height: auto; width: 92%; }
.wc-tix { position: absolute; left: 30%; right: 12%; top: 50%; transform: translateY(-50%); font: 400 13px/1.05 var(--display); color: var(--ink); text-align: left; text-shadow: 1px 1px 0 rgba(196,34,26,.6); }
.wc-body { padding: 10px 14px 14px; position: relative; }
.wc-title { padding-right: 0 !important; }
.wcard::before { z-index: 3; }

/* ═════════ metallic: the invite is foil-printed (gold paper, holo DIWALI, glossy ink) ═════════ */
.card-foil { position: absolute; inset: 0; pointer-events: none; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; background-size: 260% 260%; background-position: var(--fx, 50%) var(--fy, 50%); }
.f-gold { --m: url(assets/foil_gold.webp); mix-blend-mode: overlay; opacity: .95;
  background-image: repeating-linear-gradient(92deg, rgba(255,255,255,.07) 0 1px, transparent 1px 3px),
    linear-gradient(115deg, #6b4508 0%, #f8dc84 16%, #a8781c 30%, #fff4c2 44%, #b58322 56%, #f6d56e 70%, #7c540e 86%, #e9c45c 100%); }
.f-blue { --m: url(assets/foil_blue.webp); mix-blend-mode: color-dodge; opacity: .55;
  background-image: linear-gradient(125deg, #3f7bff 0%, #b98cff 18%, #ffffff 32%, #6ff2d6 46%, #5aa0ff 60%, #ffd1f0 76%, #3f7bff 100%); }
.f-ink { --m: url(assets/foil_ink.webp); mix-blend-mode: screen; opacity: .55;
  background-image: linear-gradient(115deg, transparent 38%, rgba(255,250,235,.85) 48%, rgba(255,255,255,.2) 53%, transparent 62%); }
.card .card-sheen { mix-blend-mode: overlay !important; opacity: .9; }

/* metallic enamel signs: gold rim, light sweep, chrome lettering */
.sgn .sg-rim, .sgn .sg-sheen { position: absolute; inset: 0; pointer-events: none; -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; }
.sgn .sg-rim { mix-blend-mode: multiply; opacity: .95; background: linear-gradient(115deg, #b98a2a 0%, #fff1b8 20%, #a6741c 36%, #f7d977 52%, #8a5d12 68%, #fbe7a1 84%, #a87a22 100%); background-size: 240% 240%; animation: foilShift 7s ease-in-out infinite; }
.sgn .sg-sheen { mix-blend-mode: soft-light; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.95) 45%, rgba(255,255,255,.2) 52%, transparent 66%); background-size: 260% 100%; animation: sheen 4.2s ease-in-out infinite; }
.sgn:nth-child(2) .sg-sheen { animation-delay: -1.4s; } .sgn:nth-child(3) .sg-sheen { animation-delay: -2.8s; }
.sgn figcaption { z-index: 2; }
.sgn .o-big { background: linear-gradient(100deg, #fdfbf3 0%, #c9ccd2 22%, #ffffff 38%, #9aa0aa 52%, #f4f6f9 68%, #b7bcc4 84%, #ffffff 100%); background-size: 240% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent !important; -webkit-text-fill-color: transparent; animation: foilShift 6s ease-in-out infinite;
  text-shadow: none !important; filter: drop-shadow(.45cqw .45cqw 0 rgba(20,2,1,.55)); }
.sgn .o-k { background: linear-gradient(100deg, #8a5d12, #ffe9a6 30%, #c8962e 50%, #fff3c4 70%, #9a6a18); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; -webkit-text-fill-color: transparent; animation: foilShift 5s ease-in-out infinite; }
@keyframes foilShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.card-foil { background-size: 170% 170%; }
.f-gold { opacity: 1; background-image: repeating-linear-gradient(92deg, rgba(255,255,255,.08) 0 1px, transparent 1px 3px),
    linear-gradient(115deg, #5c3a05 0%, #ffe695 12%, #9c6c14 24%, #fff7d0 36%, #8f6210 48%, #f8d870 60%, #6a460a 74%, #ffefb0 88%, #8a5e10 100%); }
.f-blue { opacity: .7; }
.wcard .wc-art img { position: static; right: auto; top: auto; opacity: 1; }
.wcard .wc-art.a-poster img { height: 118px; }
.wcard .wc-art.a-balloon img { height: 84px; }
.wcard .wc-art.a-bottle img { height: 116px; }
.wcard .wc-art.a-ticket img { height: auto; width: 92%; }
.gub .gtag { animation: gtagLife 2.4s ease forwards !important; }
@keyframes gtagLife { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.7); } 12% { opacity: 1; transform: translate(-50%, 0) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -16px) scale(.95); } }
.gub.popped img { animation: popGone 1.6s ease forwards; }
@keyframes popGone { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }

/* ═════════ perf: everything that moves in the hero moves on the compositor ═════════ */
#night { filter: none !important; }                                   /* half-res canvas is already soft; a CSS blur here re-ran on the whole screen every frame */
#glow { inset: auto !important; left: 0 !important; top: 0 !important; width: 96vmax !important; height: 96vmax !important; will-change: transform, opacity;
  background: radial-gradient(circle closest-side, rgba(255,170,60,.95) 0, rgba(255,120,30,.45) 46%, transparent 100%) !important; }
#env, #card, .box { will-change: transform; }
.kandil .lamp .bloom { opacity: calc(.35 + var(--lit, 0) * .6); }
/* foil + sheen: the gradient lives on a pseudo-element that slides (transform), the masked/blended parent never repaints */
.card-foil { overflow: hidden; background: none !important; }
.card-foil::before { content: ''; position: absolute; top: -40%; bottom: -40%; left: 0; width: 300%; background-image: inherit; will-change: transform; animation: foilSlide 9s ease-in-out infinite alternate; }
.f-gold::before { background-image: repeating-linear-gradient(92deg, rgba(255,255,255,.08) 0 1px, transparent 1px 3px), linear-gradient(115deg, #5c3a05 0%, #ffe695 6%, #9c6c14 12%, #fff7d0 18%, #8f6210 24%, #f8d870 30%, #6a460a 37%, #ffefb0 44%, #8a5e10 50%, #ffe695 56%, #9c6c14 62%, #fff7d0 68%, #8f6210 74%, #f8d870 80%, #6a460a 87%, #ffefb0 94%, #8a5e10 100%); }
.f-blue::before { background-image: linear-gradient(125deg, #3f7bff 0%, #b98cff 9%, #ffffff 16%, #6ff2d6 23%, #5aa0ff 30%, #ffd1f0 38%, #3f7bff 50%, #b98cff 59%, #ffffff 66%, #6ff2d6 73%, #5aa0ff 80%, #ffd1f0 88%, #3f7bff 100%); animation-duration: 6s; }
.f-ink::before { background-image: linear-gradient(115deg, transparent 10%, rgba(255,250,235,.85) 16%, rgba(255,255,255,.2) 18%, transparent 24%, transparent 60%, rgba(255,250,235,.7) 66%, transparent 72%); animation-duration: 5s; }
@keyframes foilSlide { from { transform: translateX(0); } to { transform: translateX(-66.66%); } }
.card .card-sheen { background: none !important; animation: none !important; overflow: hidden; }
.card .card-sheen::before { content: ''; position: absolute; inset: 0 -100% 0 -100%; background: linear-gradient(115deg, transparent 40%, rgba(255,250,225,.6) 48%, rgba(255,255,255,.12) 51%, transparent 58%); will-change: transform; animation: sheenSlide 4.2s ease-in-out infinite; }
@keyframes sheenSlide { 0% { transform: translateX(-30%); } 60%, 100% { transform: translateX(30%); } }
.wc-tix small { display: block; font: 600 7.5px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--maroon); text-shadow: none; margin-bottom: 3px; }
.wc-name { font-size: 17px !important; line-height: 1.15 !important; }
.t-intro, .games .d-intro { max-width: 36ch; margin-left: auto; margin-right: auto; }
.games .d-intro b { color: var(--yellow); font-weight: 600; }
.k-status { font: 600 12px/1.3 var(--sans) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow) !important; opacity: .9; margin-top: 4px; }

/* ═════════ the wall lives inside the mela: a wooden notice board in the same gold frame as the booth ═════════ */
.games .mela-board { position: relative; max-width: 900px; margin: 34px auto 0; padding: 58px 0 14px; border-radius: 8px; overflow: visible;
  background: radial-gradient(120% 70% at 50% 0%, rgba(255,214,120,.16), transparent 60%), repeating-linear-gradient(90deg, #6b3b1c 0 58px, #5a3015 58px 61px);
  box-shadow: inset 0 0 0 3px var(--yellow), inset 0 0 0 6px #3d0a07, inset 0 0 0 7.5px var(--pink), inset 0 18px 30px rgba(20,2,1,.35), 0 20px 40px rgba(20,2,1,.5); }
.games .mela-board .w-track { overflow: hidden; margin: 0 9px; padding: 14px 0 16px; }
.mb-sign { position: absolute; left: 50%; top: -18px; transform: translateX(-50%) rotate(-1.5deg); padding: 10px 22px 8px; white-space: nowrap; text-align: center;
  background: var(--yellow) url(assets/paper_yellow.webp) center / cover; color: var(--ink); box-shadow: 0 0 0 3px var(--maroon), 0 0 0 5px var(--pink), 0 10px 18px rgba(20,2,1,.45); }
.mb-sign::before, .mb-sign::after { content: ''; position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe7a3, #8a5d12); }
.mb-sign::before { left: 7px; } .mb-sign::after { right: 7px; }
.mb-sign b { display: block; font: 400 clamp(20px, 5.4vw, 28px)/1 var(--display); text-shadow: 1.5px 1.5px 0 var(--red); }
.mb-sign small { display: block; margin-top: 4px; font: 600 10.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--maroon); }
.mb-foot { font: 600 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); opacity: .85; margin: 2px 0 0; }
.games .mela-board .w-empty { color: var(--cream); padding: 10px 0; }
.games .stalls-row { margin-top: 30px; }
.games .wall2.mela-board { padding: 58px 0 14px !important; overflow: visible !important; max-width: 900px !important; }
.sgn.s-pink .o-k { font-family: var(--sans) !important; letter-spacing: .32em !important; font-size: 4.6cqw !important; }
.mb-sign { white-space: normal !important; width: max-content; max-width: calc(100% - 56px); padding: 9px 26px 7px !important; }
.mb-sign small { font-size: 9.5px !important; letter-spacing: .12em !important; }

/* CTAs: tall condensed caps (Barlow Condensed) — painted-signboard / mela-ticket lettering, distinct from the chunky headings */
:root { --cta: 'Barlow Condensed', 'Palanquin Dark', system-ui, sans-serif; }
.sign, .cta, .g-btn, .b-btn, #seeDetails, .autobtn, .next-btn, .sign.small { font-family: var(--cta) !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .06em; }
.sign, .cta, .g-btn, #seeDetails, .next-btn { font-size: 22px; }
.mh-acts .sign.small { font-size: 15px !important; }
.autobtn b { font-weight: 700; }

/* gubbara: balloons up top, shooter stands well back */
.range { height: clamp(430px, 122vw, 580px) !important; }
.range-wall { height: 56% !important; }

/* ═════════ RSVP: a reply postcard, clipped to a string, with stamp + postmark ═════════ */
.rsvp-card.postcard { position: relative; max-width: 500px; margin: 30px auto 0; padding: 70px 26px 30px !important; border-radius: 4px;
  background: #f1dfae url(assets/paper_yellow.webp) center / cover !important; background-blend-mode: multiply;
  box-shadow: inset 0 0 0 10px #f1dfae, inset 0 0 0 11.5px var(--red), inset 0 0 0 14px #f1dfae, inset 0 0 0 15px var(--teal), 0 22px 36px rgba(20,2,1,.55), 0 2px 0 rgba(255,255,255,.4) !important;
  transform-origin: 50% -40px; animation: pcSway 6s ease-in-out infinite; }
.rsvp-card.postcard::before { content: ''; position: absolute; left: 50%; top: -46px; width: 2px; height: 50px; margin-left: -1px; background: linear-gradient(#c9a46a, #8a6a3a); }
@keyframes pcSway { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.2deg); } }
.pc-clip { position: absolute; left: 50%; top: -14px; width: 16px; height: 34px; margin-left: -8px; border-radius: 3px; z-index: 3;
  background: linear-gradient(90deg, #b07a3a, #e2b277 45%, #a06a2e); box-shadow: 0 3px 4px rgba(0,0,0,.35), inset 0 -3px 0 rgba(0,0,0,.15); }
.pc-clip::after { content: ''; position: absolute; left: 3px; right: 3px; top: 12px; height: 4px; border-radius: 2px; background: #8a8f96; }
.pc-head { position: absolute; left: 22px; top: 22px; display: flex; gap: 10px; align-items: baseline; font: 700 15px/1 var(--cta); letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.pc-head .pc-hi { font: 700 13px/1 var(--deva); letter-spacing: .04em; color: var(--maroon); opacity: .8; text-transform: none; }
.pc-stamp { position: absolute; right: 22px; top: 18px; width: 58px; height: 68px; display: grid; place-items: center; padding: 5px; rotate: 4deg;
  background: var(--pink); box-shadow: 0 2px 3px rgba(0,0,0,.3);
  -webkit-mask: radial-gradient(circle 3px at 3px 3px, transparent 98%, #000) -3px -3px / 8px 8px; mask: radial-gradient(circle 3px at 3px 3px, transparent 98%, #000) -3px -3px / 8px 8px; }
.pc-stamp img { width: 30px; height: auto; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }
.pc-stamp b { font: 700 12px/1 var(--cta); color: var(--yellow); }
.pc-mark { position: absolute; right: 54px; top: 46px; width: 74px; height: 74px; border-radius: 50%; border: 2px solid rgba(117,21,15,.55); display: flex; flex-direction: column; align-items: center; justify-content: center; rotate: -14deg; pointer-events: none;
  color: rgba(117,21,15,.6); font: 700 7.5px/1.2 var(--cta); letter-spacing: .12em; text-transform: uppercase; }
.pc-mark b { font-size: 12px; letter-spacing: .06em; padding: 2px 0; border-top: 1.5px solid rgba(117,21,15,.5); border-bottom: 1.5px solid rgba(117,21,15,.5); margin: 2px 0; }
.rsvp-card.postcard h2 { margin-top: 6px !important; }
@media (prefers-reduced-motion: reduce) { .rsvp-card.postcard { animation: none; } }

/* wall cards hang off a twine and sway; nothing clips the pin */
.games .mela-board .w-track { position: relative; padding-top: 34px !important; }
.games .mela-board .w-track::before { content: ''; position: absolute; left: 0; right: 0; top: 12px; height: 2px; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(90deg, #d9b98a 0 6px, #b8925e 6px 9px); box-shadow: 0 2px 2px rgba(0,0,0,.35); }
.wcard { overflow: visible !important; transform-origin: 50% -22px; animation: wcSway 4.2s ease-in-out infinite; }
.wcard:nth-child(3n+1) { animation-duration: 3.7s; animation-delay: -1.1s; } .wcard:nth-child(3n+2) { animation-duration: 4.6s; animation-delay: -2.3s; }
@keyframes wcSway { 0%, 100% { transform: rotate(-2.2deg); } 50% { transform: rotate(2.2deg); } }
.wcard::after { content: ''; position: absolute; left: 50%; top: -22px; width: 1.5px; height: 18px; margin-left: -.75px; background: #c9a46a; z-index: 3; }
.wcard::before { top: -9px !important; z-index: 4 !important; }
.wcard .wc-art { border-radius: 3px 3px 0 0; }
.wcard .wc-body { border-radius: 0 0 4px 4px; }
@media (prefers-reduced-motion: reduce) { .wcard { animation: none; } }
.pc-stamp { -webkit-mask: none !important; mask: none !important; outline: 3px dotted #f1dfae; outline-offset: -2px; border: 3px solid var(--pink); background: var(--pink) !important; }
.pc-mark { right: 66px !important; top: 26px !important; width: 64px !important; height: 64px !important; }
.rsvp-card.postcard { padding-top: 104px !important; }
.range-wall { height: 52% !important; }

/* ═════════ mohalla diwali mix: a little mela TV, bottom-right ═════════ */
.mix { position: fixed; right: 60px; bottom: calc(env(safe-area-inset-bottom) + 16px); z-index: 40; width: 208px; border-radius: 8px; padding: 6px;
  background: var(--yellow) url(assets/paper_yellow.webp) center / cover; box-shadow: 0 0 0 2px var(--maroon), 0 0 0 4px var(--pink), 0 14px 28px rgba(20,2,1,.55);
  transform: translateY(140%); transition: transform .7s cubic-bezier(.2,1.2,.4,1), width .35s; }
.mix[hidden] { display: none; }
.mix.in { transform: none; }
.mx-tv { position: relative; aspect-ratio: 16 / 9; border-radius: 5px; overflow: hidden; background: #1a0503; box-shadow: inset 0 0 0 2px var(--maroon); }
.mx-tv iframe, .mx-tv #mxPlayer { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mx-tap { position: absolute; inset: 0; border: 0; cursor: pointer; background: rgba(26,5,3,.72); color: var(--yellow); font: 700 16px/1 var(--cta); letter-spacing: .08em; text-transform: uppercase; animation: mxPulse 1.4s ease-in-out infinite; }
.mx-tap[hidden] { display: none; }
@keyframes mxPulse { 50% { color: #fff3c4; } }
.mx-bar { display: flex; align-items: center; gap: 6px; padding: 6px 2px 1px; }
.mx-bar b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 700 14px/1 var(--cta); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.mx-btn { flex: none; width: 26px; height: 26px; border: 0; border-radius: 50%; cursor: pointer; background: var(--maroon); color: var(--yellow); font: 700 12px/1 var(--sans); display: grid; place-items: center; }
.mx-eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.mx-eq i { width: 3px; height: 4px; background: var(--red); border-radius: 1px; }
.mix.on .mx-eq i { animation: mxEq .8s ease-in-out infinite alternate; } .mix.on .mx-eq i:nth-child(2) { animation-delay: -.3s; } .mix.on .mx-eq i:nth-child(3) { animation-delay: -.55s; }
@keyframes mxEq { from { height: 3px; } to { height: 14px; } }
.mix.mini { width: 156px; }
@media (max-width: 420px) { .mix { width: 176px; right: 58px; } .mix.mini { width: 132px; } .mx-bar b { font-size: 12.5px; } }

/* mix v2: audio-only pill (saloon-style); the YouTube player is mounted at zero height */
.mix { width: auto !important; padding: 0 !important; background: none !important; box-shadow: none !important; display: flex; align-items: center; gap: 6px; }
.mix .mx-tv { position: absolute !important; left: 0; bottom: 0; width: 300px; height: 0 !important; aspect-ratio: auto !important; overflow: hidden; opacity: 0; pointer-events: none; box-shadow: none !important; }
.mx-pill { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px 0 12px; border: 0; border-radius: 99px; cursor: pointer;
  background: rgba(40,4,2,.78); color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(239,189,13,.6), 0 8px 20px rgba(20,2,1,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mx-pill b { font: 700 13.5px/1 var(--cta); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: var(--yellow); }
.mx-ic { font: 700 11px/1 var(--sans); color: var(--cream); opacity: .85; }
.mx-pill .mx-eq { height: 15px; } .mx-pill .mx-eq i { background: #4ade80; box-shadow: 0 0 6px rgba(74,222,128,.7); }
.mix.tap .mx-pill { animation: mxPulse2 1.3s ease-in-out infinite; }
@keyframes mxPulse2 { 50% { box-shadow: inset 0 0 0 1.5px var(--yellow), 0 0 18px rgba(239,189,13,.6); } }
.mx-link { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; font: 700 16px/1 var(--sans);
  background: rgba(40,4,2,.78); color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(247,230,200,.35), 0 8px 20px rgba(20,2,1,.45); }
@media (max-width: 420px) { .mx-pill b { font-size: 12px; } .mix .mx-link { display: none; } }

/* phones: a sideways swipe must never become browser back/forward (vertical scrolling is untouched) */
html, body { overscroll-behavior-x: none; }

/* games: scroll freely over the targets; only the firing / throwing zone captures the finger */
.range { touch-action: pan-y !important; }
.range .aimpad { position: absolute; left: 0; right: 0; bottom: 0; height: 42%; z-index: 3; touch-action: none; }
.range .aimpad::after { content: 'drag here to aim · or tap a balloon'; position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--cream); opacity: .55; pointer-events: none; }
.ring-stage { touch-action: pan-y !important; }
.ring-stage .launchpad { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; z-index: 4; touch-action: none; }

/* stacked signs: each one's hanging wire tucks behind the sign above it */
.signs .sgn { position: relative; }
.signs .sgn:nth-child(1) { z-index: 3; } .signs .sgn:nth-child(2) { z-index: 2; } .signs .sgn:nth-child(3) { z-index: 1; }
.range .aimpad::after { left: 12px !important; right: auto !important; width: 34%; bottom: 14px !important; text-align: left !important; line-height: 1.35 !important; }
.range .rifle { width: var(--rw, 140px) !important; max-width: none !important; }
@media (min-width: 700px) { .range .gub { width: 13% !important; } }

/* multi-prize wall cards: one prize at a time */
.wc-rot { position: relative; min-height: 58px; }
.wc-rot .wc-pr { position: absolute; left: 0; right: 0; top: 0; margin: 0 !important; opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .45s; -webkit-line-clamp: 3; }
.wc-rot .wc-pr.on { opacity: 1; transform: none; }
.wc-dots { position: absolute; left: 0; bottom: -2px; display: flex; gap: 4px; }
.wc-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(117,21,15,.25); transition: background .3s; }
.wc-dots i.on { background: var(--red); }
.a-balloon img { transition: transform .4s, filter .4s; filter: saturate(.75) brightness(.85); }
.a-balloon img.hl { transform: scale(1.18) translateY(-4px); filter: none; z-index: 1; position: relative !important; }
/* Teko's lowercase is short: size every text block by x-height so it reads like the old body size */
.k-sub, .gc-sub, .b-note, .r-text, .mh-text, .wc-text, .t-text, .win-card p, .aao .lede, .by { letter-spacing: .01em; }

/* footer: the deck's AAO poster, framed and hung */
.foot-poster { position: relative; width: min(320px, 74vw); margin: 34px auto 18px; transform-origin: 50% -30px; animation: pcSway 6.5s ease-in-out infinite; }
.foot-poster::before { content: ''; position: absolute; left: 50%; top: -30px; width: 2px; height: 30px; margin-left: -1px; background: linear-gradient(#c9a46a, #8a6a3a); }
.foot-poster::after { content: ''; position: absolute; left: 50%; top: -36px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe7a3, #8a5d12); }
.foot-poster img { display: block; width: 100%; height: auto; border-radius: 3px; box-shadow: 0 0 0 5px var(--cream), 0 0 0 7px var(--pink), 0 22px 36px rgba(20,2,1,.6); }
.foot-poster .fp-sheen { position: absolute; inset: 0; overflow: hidden; border-radius: 3px; pointer-events: none; }
.foot-poster .fp-sheen::before { content: ''; position: absolute; inset: 0 -100%; background: linear-gradient(115deg, transparent 42%, rgba(255,250,225,.35) 49%, transparent 56%); animation: sheenSlide 5s ease-in-out infinite; }
.foot-see { font: 400 clamp(26px, 7vw, 36px)/1.05 var(--display) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--yellow) !important; opacity: 1 !important; text-shadow: 2px 2px 0 var(--red); margin: 26px 0 18px; }
.foot-see .foot-name { color: var(--cream); }
@media (prefers-reduced-motion: reduce) { .foot-poster { animation: none; } }

/* invisible player: real size (phones won't play a 0-px video), parked under the pill, fully transparent */
.mix .mx-tv { width: 200px !important; height: 200px !important; left: 0; bottom: 0; opacity: .001 !important; pointer-events: none; z-index: -1; }

/* ring toss: the ring itself must capture the flick too (it sat above the throw zone and let the page scroll) */
.ring-stage .ring, .ring-stage .launchpad, .ring-stage .ring * { touch-action: none !important; }
.ring-stage .launchpad { height: 46% !important; }

/* ═════════ readable results: bigger opened card, chunky labels, readable body type ═════════ */
.tota-table { height: clamp(440px, 118vw, 640px) !important; }
.kc-label { font-family: 'Bakbak One', var(--display) !important; font-weight: 400 !important; font-size: calc(var(--w) * .085) !important; line-height: 1.1 !important; letter-spacing: 0 !important; }
.reading { max-width: 480px !important; padding: 18px 20px !important; }
.reading .r-kick { font: 700 13px/1 'Barlow Condensed', var(--sans) !important; letter-spacing: .22em !important; }
.reading .r-text { font: 600 19px/1.45 'Barlow', var(--sans) !important; }
.reading .r-title, .tix .t-name, .mh-title, .wc-name, .wc-title { font-family: 'Bakbak One', var(--display) !important; font-weight: 400 !important; letter-spacing: 0 !important; }
.tix .t-text, .tix .t-extra, .mh-text, .wc-text, .win-card p { font-family: 'Barlow', var(--sans) !important; }
.hc-row { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; gap: 14px !important; }
.win-card { padding: 14px 12px !important; }
.win-card img { height: 70px !important; }
.win-card p { font-size: 15.5px !important; font-weight: 600 !important; line-height: 1.3 !important; }
.mh-title { font-size: 22px !important; }
.mh-text { font-size: 15px !important; line-height: 1.4 !important; }
.mh-card img { height: 120px !important; }
.wc-name { font-size: 16px !important; line-height: 1.15 !important; }
.wc-title { font-size: 14.5px !important; }
.wc-text { font-size: 13px !important; line-height: 1.35 !important; }
.tix .t-name { font-size: 5cqw !important; }

/* footer without the logo + credit line */
.foot { padding-bottom: 56px !important; }

/* bottom-right: music pill, link and sound button share one baseline and height */
.snd { width: 40px !important; height: 40px !important; bottom: calc(env(safe-area-inset-bottom) + 20px) !important; right: 14px !important; }
.mix { bottom: calc(env(safe-area-inset-bottom) + 20px) !important; right: 64px !important; height: 40px; align-items: center; }
.mx-pill, .mx-link { height: 40px !important; box-sizing: border-box; }
.mx-pill { padding: 0 16px 0 14px !important; gap: 10px !important; }
.mx-ic { width: 12px; text-align: center; }

/* how-to-play guides: one line + an animated finger, gone on first touch */
.guide { position: absolute; left: 50%; z-index: 8; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; white-space: nowrap; pointer-events: none;
  padding: 8px 14px 7px; border-radius: 99px; background: rgba(26,5,3,.82); box-shadow: inset 0 0 0 1.5px var(--yellow), 0 8px 18px rgba(0,0,0,.4);
  font: 700 14px/1 'Barlow Condensed', var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); transition: opacity .35s; }
.guide.gone { opacity: 0; }
.guide .hand { display: inline-block; font-style: normal; font-size: 20px; line-height: 1; }
.g-tap { top: 10px; } .g-tap .hand { animation: gTap 1.1s ease-in-out infinite; }
.g-aim { bottom: 46%; } .g-aim .hand { animation: gUp 1.6s ease-in-out infinite; }
.g-flick { bottom: 44%; } .g-flick .hand { animation: gUp 1.1s cubic-bezier(.3,0,.2,1) infinite; }
.g-spin { top: -6px; } .g-spin .hand { animation: gSpin 1.6s linear infinite; }
@keyframes gTap { 0%, 100% { transform: translateY(0) scale(1); } 45% { transform: translateY(5px) scale(.88); } }
@keyframes gUp { 0% { transform: translateY(8px); opacity: .4; } 60% { transform: translateY(-8px); opacity: 1; } 100% { transform: translateY(-10px); opacity: 0; } }
@keyframes gSpin { from { transform: rotate(0deg) translateX(5px) rotate(0deg); } to { transform: rotate(360deg) translateX(5px) rotate(-360deg); } }
@media (max-width: 420px) { .guide { font-size: 12.5px; padding: 7px 12px 6px; } }
.guide .hand { width: 18px; height: 22px; font-size: 0 !important;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'%3E%3Cpath d='M9 2.5a2 2 0 0 1 4 0V13l1-.2a2 2 0 0 1 2.4 1.6l.1.6 1-.1a2 2 0 0 1 2.2 1.8l1-.1a2 2 0 0 1 2.2 2V23c0 3.6-2.9 6.5-6.5 6.5h-2.6a6.5 6.5 0 0 1-5.4-2.9l-4-6a1.9 1.9 0 0 1 2.9-2.4L9 19.6z' fill='%23efbd0d' stroke='%231a0503' stroke-width='1.2'/%3E%3C/svg%3E"); }
.ring-stage::after { display: none !important; }
.range .aimpad::after { display: none !important; }
.guide { max-width: calc(100% - 24px); white-space: normal; text-align: center; line-height: 1.15; }

/* toran v2: airy and alive */
.bunting { background: var(--maroon-d) !important; height: 74px !important; }
.bunting .tr-string { position: absolute; left: 0; right: 0; top: 14px; height: 2px; background: repeating-linear-gradient(90deg, #d9b98a 0 6px, #b8925e 6px 9px); box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.bunting .tr-g, .bunting .tr-l { position: absolute; top: 4px; transform-origin: 50% 0; animation: trSway var(--sw) ease-in-out var(--d) infinite; }
.bunting .tr-g img { width: 34px; height: 34px; display: block; filter: drop-shadow(0 3px 3px rgba(0,0,0,.35)); }
.bunting .tr-l { top: 13px; } .bunting .tr-l img { width: 20px; height: auto; display: block; transform: rotate(-35deg) translateY(4px); filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }
@keyframes trSway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@media (prefers-reduced-motion: reduce) { .bunting .tr-g, .bunting .tr-l { animation: none; } }
.bunting .tr-g img { width: 42px !important; height: 42px !important; }
.bunting .tr-l img { width: 26px !important; }
.bunting .tr-l { top: 15px !important; }
.bunting { height: 82px !important; }

/* ═════════ one fold per game: sticky switcher + stages sized to the screen ═════════ */
.gbar { position: fixed; left: 50%; top: 0; z-index: 45; transform: translate(-50%, -110%); transition: transform .35s cubic-bezier(.2,1,.3,1);
  display: flex; gap: 4px; padding: 6px; margin-top: calc(env(safe-area-inset-top) + 6px); border-radius: 14px; width: min(560px, calc(100% - 16px));
  background: rgba(42,6,4,.92); box-shadow: inset 0 0 0 1.5px var(--yellow), 0 10px 24px rgba(0,0,0,.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.gbar.on { transform: translate(-50%, 0); }
.gbar button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 10px; padding: 6px 4px; cursor: pointer; background: transparent; color: var(--cream); }
.gbar button img { height: 26px; width: auto; }
.gbar button b { font: 700 13px/1 'Barlow Condensed', var(--sans); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.gbar button.cur { background: var(--yellow); color: var(--ink); }
@media (max-width: 420px) { .gbar button { flex-direction: column; gap: 2px; padding: 5px 2px; } .gbar button img { height: 22px; } .gbar button b { font-size: 11px; } }
#booth { scroll-margin-top: 70px; }
.booth { padding-top: 44px !important; }
.booth .g-head { font-size: clamp(24px, 6vw, 34px) !important; margin-bottom: 2px !important; }
.games .d-intro { font-size: 15px !important; line-height: 1.3 !important; margin-top: 2px !important; }
.k-status { margin-bottom: 4px !important; }
/* stages take what the screen allows, leaving room for the result underneath */
.tota-table { height: min(118vw, 640px, 56svh) !important; min-height: 330px; }
.range { height: min(122vw, 580px, 54svh) !important; min-height: 330px; }
.ring-stage { height: min(110vw, 500px, 52svh) !important; min-height: 320px; }
.drum-stage { width: min(360px, 84vw, 46svh) !important; }
.reading { margin-top: 6px !important; }
.k-actions { margin-top: 10px !important; flex-direction: row !important; flex-wrap: wrap; justify-content: center; gap: 8px !important; }
.k-actions .sign { font-size: 16px !important; padding: 11px 16px 9px !important; }
.k-actions .linkish { width: 100%; margin-top: 2px; }
#tlabel { scroll-margin-top: 74px; }
.tix { scroll-margin-top: 74px; }

/* opening scene: images are never draggable/selectable (the browser's image-drag was hijacking the match swipe) */
#stage img, #stage canvas { -webkit-user-drag: none; user-drag: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#stage .box img, #stage .match img, #stage .drawer img { pointer-events: none; }
/* hidden switcher must sit fully off-screen (its gold edge was peeking as a thin line) */
.gbar { transform: translate(-50%, calc(-100% - 30px)); visibility: hidden; transition: transform .35s cubic-bezier(.2,1,.3,1), visibility 0s linear .35s; }
.gbar.on { transform: translate(-50%, 0); visibility: visible; transition: transform .35s cubic-bezier(.2,1,.3,1); }
