/* قلبك فضحك: Aura leads. A soft glowing aura (it warms with the hot seat's pulse), crisp bold rounded type,
   chunky lime / pink / blue pills, bouncy entrances, bursts on the reveal. One phone screen, portrait first. */
@property --c1 { syntax: "<color>"; inherits: true; initial-value: #B79CFF; }
@property --c2 { syntax: "<color>"; inherits: true; initial-value: #8EC5FF; }
@property --c3 { syntax: "<color>"; inherits: true; initial-value: #F7A8D8; }
@property --c4 { syntax: "<color>"; inherits: true; initial-value: #C9A7FF; }
@property --c5 { syntax: "<color>"; inherits: true; initial-value: #FFC1DE; }

:root {
  --ink: #24123F;
  --ink-soft: #4A3768;
  --white: #FFFFFF;
  --glass: rgba(255, 255, 255, 0.78);
  --lime: #C6F24E;
  --pink: #FF3D9A;
  --blue: #3340F5;
  --coral: #FF7A59;
  --base: #E7D8F7;
  --period: 0.8s;
  --font: "Baloo Bhaijaan 2", "Readex Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); color: var(--ink); background: var(--base);
  overflow-x: hidden; -webkit-font-smoothing: antialiased; user-select: none;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input { font: inherit; }
[hidden] { display: none !important; }

/* ---------- aura ---------- */
.aura { position: fixed; inset: -25%; z-index: 0; filter: blur(70px) saturate(1.15); pointer-events: none;
  transition: --c1 1.4s, --c2 1.4s, --c3 1.4s, --c4 1.4s, --c5 1.4s; }
.aura i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: .95; }
.aura i:nth-child(1) { background: radial-gradient(circle, var(--c1) 0, transparent 62%); left: -5%; top: -10%; animation: drift1 19s ease-in-out infinite alternate; }
.aura i:nth-child(2) { background: radial-gradient(circle, var(--c2) 0, transparent 62%); right: -10%; top: 5%; animation: drift2 23s ease-in-out infinite alternate; }
.aura i:nth-child(3) { background: radial-gradient(circle, var(--c3) 0, transparent 62%); left: 15%; top: 35%; animation: drift3 17s ease-in-out infinite alternate; }
.aura i:nth-child(4) { background: radial-gradient(circle, var(--c4) 0, transparent 62%); left: -15%; bottom: -15%; animation: drift2 21s ease-in-out infinite alternate-reverse; }
.aura i:nth-child(5) { background: radial-gradient(circle, var(--c5) 0, transparent 62%); right: -10%; bottom: -10%; animation: drift1 25s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(12vmax, 8vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-10vmax, 12vmax) scale(.9); } }
@keyframes drift3 { to { transform: translate(8vmax, -10vmax) scale(1.2); } }
body.pulsing .aura { animation: breathe var(--period) ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 18% { transform: scale(1.035); } }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .32; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.flash { position: fixed; inset: 0; z-index: 5; pointer-events: none; background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.9), rgba(255,61,154,.55) 45%, transparent 75%); opacity: 0; }
.flash.go { animation: flash .9s ease-out; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- layout ---------- */
#app { position: relative; z-index: 2; min-height: 100%; }
.screen {
  min-height: 100dvh; max-width: 480px; margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) calc(22px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center;
}
.screen { position: relative; }
.screen.top { justify-content: center; padding-top: calc(84px + env(safe-area-inset-top, 0px)); }
.grow { flex: 1; }
.row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.col { display: flex; flex-direction: column; gap: 12px; width: 100%; align-items: center; }
.topline { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); display: flex; justify-content: space-between; align-items: center; min-height: 64px; }
.prog { font-weight: 800; font-size: 15px; color: var(--ink-soft); background: rgba(255,255,255,.5); border-radius: 99px; padding: 4px 14px; }
.who { margin: 0; font-size: clamp(30px, 9vw, 40px); font-weight: 800; line-height: 1.1; text-shadow: 0 2px 0 #fff, 0 -2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff, 0 6px 0 rgba(36,18,63,.15); }
.say { margin: 0; font-size: 22px; font-weight: 800; color: var(--ink); }
.facts { margin: 0; font-size: 22px; font-weight: 800; color: var(--ink); background: rgba(255,255,255,.8); border-radius: 999px; padding: 8px 22px; }
.sim { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; font-weight: 800; background: var(--ink); color: #fff; border-radius: 99px; padding: 2px 10px; }
.track .mark span { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 15px; font-weight: 800; background: #fff; color: var(--ink); border-radius: 99px; padding: 2px 10px; }
.bar-top { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 40px; }

/* ---------- type ---------- */
.shout {
  font-weight: 800; color: var(--white); line-height: 1.05; margin: 0;
  text-shadow: 0 3px 0 var(--ink), 0 -3px 0 var(--ink), 3px 0 0 var(--ink), -3px 0 0 var(--ink),
    2px 2px 0 var(--ink), -2px 2px 0 var(--ink), 2px -2px 0 var(--ink), -2px -2px 0 var(--ink), 0 9px 0 rgba(36,18,63,.3);
}
.shout.xl { font-size: clamp(54px, 17vw, 84px); }
.shout.l { font-size: clamp(40px, 12vw, 60px); }
.shout.m { font-size: clamp(30px, 9vw, 42px); }
.ink { color: var(--ink); }
.muted { color: var(--ink-soft); font-weight: 600; }
.small { font-size: 15px; }

/* ---------- logo ---------- */
.logo { position: relative; display: inline-flex; flex-direction: column; align-items: center; line-height: .92; padding: 26px 20px 18px; }
.logo span { font-size: clamp(74px, 23vw, 112px); font-weight: 800; color: var(--white);
  text-shadow: 0 4px 0 var(--ink), 0 -4px 0 var(--ink), 4px 0 0 var(--ink), -4px 0 0 var(--ink), 3px 3px 0 var(--ink), -3px 3px 0 var(--ink), 3px -3px 0 var(--ink), -3px -3px 0 var(--ink), 0 12px 0 rgba(36,18,63,.28); }
.logo .dot { position: absolute; width: 22px; height: 22px; border-radius: 50%; top: 52%; left: 47%;
  background: radial-gradient(circle at 40% 35%, #fff, #FFB0D3 30%, #FF3D9A 70%); box-shadow: 0 0 18px 6px rgba(255,61,154,.55); }
.logo .dot::before, .logo .dot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 3px solid #FF3D9A; opacity: 0; animation: ring 1.6s ease-out infinite; }
.logo .dot::after { animation-delay: .5s; }

/* ---------- pills & buttons ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--white); color: var(--ink);
  font-weight: 800; border-radius: 999px; padding: 6px 18px; font-size: 19px; box-shadow: 0 4px 0 rgba(36,18,63,.14); max-width: 100%; text-align: center; line-height: 1.3; }
.pill.lime { background: var(--lime); } .pill.pink { background: var(--pink); color: #fff; } .pill.blue { background: var(--blue); color: #fff; }
.pill.ink { background: var(--ink); color: #fff; }
.pill.sm { font-size: 15px; padding: 4px 12px; }
.pill.lg { font-size: 26px; padding: 8px 24px; }
.burstline { position: relative; }
.burstline::before, .burstline::after { content: ""; position: absolute; top: 50%; width: 18px; height: 4px; border-radius: 4px; background: #fff; box-shadow: 0 -9px 0 #fff, 0 9px 0 #fff; }
.burstline::before { right: calc(100% + 8px); transform: translateY(-50%) rotate(-12deg); }
.burstline::after { left: calc(100% + 8px); transform: translateY(-50%) rotate(12deg); }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 70px; padding: 10px 34px; border-radius: 999px; font-size: 30px; font-weight: 800; color: var(--ink);
  background: var(--lime); box-shadow: 0 7px 0 rgba(36,18,63,.22); transition: transform .12s, box-shadow .12s, opacity .2s; width: 100%; max-width: 380px; }
.btn:active { transform: translateY(5px); box-shadow: 0 2px 0 rgba(36,18,63,.22); }
.btn.pink { background: var(--pink); color: #fff; } .btn.blue { background: var(--blue); color: #fff; } .btn.white { background: #fff; }
.btn.sm { min-height: 54px; font-size: 22px; padding: 8px 24px; width: auto; }
.btn[disabled] { filter: opacity(.45) saturate(.6); pointer-events: none; }
.btn small { font-size: 16px; font-weight: 700; opacity: .85; }
.link { font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; font-size: 17px; padding: 8px; opacity: .8; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 16px; font-weight: 800; font-size: 19px; color: #fff; box-shadow: 0 4px 0 rgba(36,18,63,.18); }
.chip.dark-text { color: var(--ink); }
.chip.off { opacity: .45; }
.chip.pop { animation: pop .5s cubic-bezier(.2,1.6,.4,1) both; }
.initial { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff; border: 3px solid #fff; box-shadow: 0 3px 0 rgba(36,18,63,.18); }
.initial.dim { opacity: .35; }

.card { width: 100%; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 30px; padding: 18px 20px; box-shadow: 0 10px 30px -14px rgba(36,18,63,.35); font-weight: 800; font-size: 25px; line-height: 1.35; color: var(--ink); }
.card.q { font-size: clamp(24px, 7vw, 30px); }
.card small { display: block; font-size: 15px; font-weight: 700; color: var(--ink-soft); margin-top: 6px; }
.field { width: 100%; max-width: 380px; border: 0; border-radius: 999px; padding: 16px 24px; font-size: 24px; font-weight: 800; background: rgba(255,255,255,.88); color: var(--ink); text-align: center; outline: none; box-shadow: inset 0 0 0 3px transparent; }
.field:focus { box-shadow: inset 0 0 0 3px var(--blue); }
.choice { display: flex; gap: 10px; justify-content: center; }
.choice button { border-radius: 999px; padding: 10px 26px; font-weight: 800; font-size: 22px; background: rgba(255,255,255,.75); box-shadow: 0 4px 0 rgba(36,18,63,.14); }
.choice button[aria-pressed="true"] { background: var(--lime); }
.choice button[aria-pressed="true"]::before { content: "✓ "; }
.lang { position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); inset-inline-end: 12px; z-index: 6; }
.corner { position: fixed; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 10px; z-index: 6; }
.corner button { opacity: .75; background: rgba(255,255,255,.6); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 15px; }
.spices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%; max-width: 400px; }
.spice-btn { display: flex; flex-direction: column; align-items: center; gap: 0; min-width: 0; border-radius: 20px; padding: 8px 2px; background: rgba(255,255,255,.75); box-shadow: 0 4px 0 rgba(36,18,63,.14); font-weight: 800; font-size: 16px; }
.spice-btn .chilis { font-size: 11px; letter-spacing: -3px; min-height: 18px; white-space: nowrap; }
.spice-btn[aria-pressed="true"] { background: var(--pink); color: #fff; }
.spice-btn[disabled] { filter: opacity(.35); pointer-events: none; }
.icon-btn { opacity: .75; }
.corner { display: flex; gap: 6px; }
.overlay { position: fixed; inset: 0; z-index: 9; display: grid; place-items: center; padding: 20px; background: rgba(36,18,63,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.overlay .card { max-width: 420px; animation: pop .45s cubic-bezier(.2,1.5,.4,1) both; }
.card.how { text-align: start; font-size: 17px; font-weight: 700; line-height: 1.5; display: flex; flex-direction: column; gap: 10px; }
.card.how h2 { margin: 0; font-size: 26px; font-weight: 800; text-align: center; }
.card.how ol { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; }
.card.how li::marker { font-weight: 800; color: var(--pink); }
.card.how .btn { align-self: center; }
.lang button, .icon-btn { background: rgba(255,255,255,.7); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 15px; }

/* ---------- the pulse orb ---------- */
.orb { position: relative; width: min(64vw, 260px); aspect-ratio: 1; display: grid; place-items: center; }
.orb .core { position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(circle at 42% 36%, #FFFFFF 0, var(--c3) 30%, var(--c1) 62%, var(--c2) 100%);
  box-shadow: 0 0 60px 10px var(--c3), inset 0 -12px 40px rgba(255,255,255,.35); }
.orb .ringw { position: absolute; inset: 2%; border-radius: 50%; border: 7px dashed rgba(255,61,154,.75); animation: spin 14s linear infinite; }
.orb .pulse-ring { position: absolute; inset: 12%; border-radius: 50%; border: 4px solid rgba(255,255,255,.9); opacity: 0; }
body.pulsing .orb .core { animation: beat var(--period) ease-in-out infinite; }
body.pulsing .orb .pulse-ring { animation: ring var(--period) ease-out infinite; }
.orb .num { position: relative; display: flex; flex-direction: column; align-items: center; line-height: .9; }
.orb .num b { font-size: clamp(64px, 20vw, 96px); font-weight: 800; color: #fff; text-shadow: 0 3px 0 var(--ink), 0 -3px 0 var(--ink), 3px 0 0 var(--ink), -3px 0 0 var(--ink), 2px 2px 0 var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink); }
.orb .num .pill { margin-top: 8px; }
.orb.small { width: min(44vw, 170px); }
.orb.small .num b { font-size: 54px; }
.orb.held .num b { opacity: .5; }
.cam-mask video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.4); filter: saturate(1.3); }
#camhold { position: fixed; left: 0; bottom: 0; width: 2px; height: 2px; opacity: .01; overflow: hidden; pointer-events: none; z-index: 0; }
.hero { display: block; width: min(62vw, 260px); height: auto; border-radius: 22%; box-shadow: 0 20px 50px -18px rgba(36,18,63,.55); animation: floaty 4.5s ease-in-out infinite; }
.hero.sm { width: min(36vw, 150px); }
@keyframes floaty { 50% { transform: translateY(-8px) rotate(1.5deg); } }
.orb .cam-mask { position: absolute; inset: 22%; border-radius: 50%; overflow: hidden; background: #3A1030; box-shadow: 0 0 0 6px #fff, 0 0 40px 10px rgba(255,61,154,.6); }
.orb .cam-mask.ok { box-shadow: 0 0 0 6px var(--lime), 0 0 50px 14px rgba(255,90,90,.75); }
@keyframes beat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.09); } 28% { transform: scale(.98); } 42% { transform: scale(1.04); } }
@keyframes ring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* limit / target gauge */
.gauge { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 8px; }
.track { position: relative; height: 18px; border-radius: 99px; background: rgba(255,255,255,.65); overflow: visible; direction: ltr; }
.track .fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--pink)); transition: width .25s; }
.track .mark { position: absolute; top: -8px; bottom: -8px; width: 6px; border-radius: 4px; background: var(--ink); transform: translateX(-50%); }

/* countdown */
.timer { position: relative; width: 64px; height: 64px; display: grid; place-items: center; font-weight: 800; font-size: 22px; }
.timer svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.timer span { position: relative; }
.timer circle { fill: rgba(255,255,255,.75); stroke: var(--blue); stroke-width: 6; stroke-linecap: round; }
.timer .bg { stroke: rgba(36,18,63,.12); }

/* bets */
.bets { display: flex; gap: 12px; width: 100%; max-width: 400px; }
.bets .btn { flex: 1; flex-direction: column; gap: 0; min-height: 110px; font-size: 34px; border-radius: 34px; }
.bets .btn small { background: rgba(255,255,255,.9); color: var(--ink); border-radius: 99px; padding: 0 12px; font-size: 18px; }
.bets .btn.chosen { outline: 5px solid #fff; outline-offset: 3px; }
.bets .btn.faded { opacity: .35; }

/* ---------- motion ---------- */
.enter > * { animation: pop .55s cubic-bezier(.2,1.5,.4,1) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes pop { 0% { opacity: 0; transform: scale(.5) rotate(-5deg); } 60% { opacity: 1; transform: scale(1.06) rotate(1.5deg); } 100% { opacity: 1; transform: none; } }
.drop { animation: drop .8s cubic-bezier(.2,1.4,.35,1) both; }
@keyframes drop { 0% { opacity: 0; transform: translateY(-80vh) rotate(-14deg); } 70% { opacity: 1; transform: translateY(14px) rotate(3deg); } 100% { transform: none; } }
.slam { animation: slam .7s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes slam { 0% { opacity: 0; transform: scale(2.6) rotate(-12deg); } 55% { opacity: 1; transform: scale(.9) rotate(-5deg); } 100% { transform: scale(1) rotate(-4deg); } }
.shake { animation: shake .5s ease-in-out; }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translate(-10px, 4px); } 40% { transform: translate(9px, -5px); } 60% { transform: translate(-6px, 3px); } 80% { transform: translate(4px, -2px); } }
.wiggle { animation: wiggle 2.4s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
.spark { position: fixed; z-index: 4; width: 16px; height: 42px; border-radius: 99px; pointer-events: none; animation: fly 1.1s cubic-bezier(.15,.7,.3,1) forwards; }
@keyframes fly { 0% { opacity: 1; transform: translate(0, 0) rotate(var(--r)) scale(.4); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1); } }
.score-row { width: 100%; display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.85); border-radius: 999px; padding: 8px 10px 8px 22px; font-weight: 800; font-size: 24px; box-shadow: 0 4px 0 rgba(36,18,63,.12); }
[dir="rtl"] .score-row { padding: 8px 22px 8px 10px; }
.score-row.first { background: var(--lime); }
.score-row .name { flex: 1; text-align: start; }
.score-row .gain { font-size: 16px; }
.score-row .dotc { width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 10px 2px rgba(255,255,255,.7); }
.crown { width: 90px; height: 60px; }
canvas.confetti { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
.toast { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); z-index: 8; }
.qr { width: min(64vw, 250px); aspect-ratio: 1; background: #fff; border-radius: 30px; padding: 16px; box-shadow: 0 10px 30px -12px rgba(36,18,63,.4); }
.qr canvas { width: 100%; height: 100%; display: block; }
.code { font-size: 46px; letter-spacing: .08em; }
.hostbar { position: fixed; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); inset-inline-start: 10px; z-index: 6; display: flex; gap: 8px; }
.night-card { width: min(70vw, 300px); border-radius: 24px; box-shadow: 0 16px 40px -16px rgba(36,18,63,.5); }
.qlist { width: 100%; display: flex; flex-direction: column; gap: 8px; max-height: 40vh; overflow-y: auto; }
.qlist .card { font-size: 19px; display: flex; gap: 10px; align-items: center; justify-content: space-between; text-align: start; padding: 12px 16px; }
.qlist .card button { font-size: 18px; opacity: .6; }

/* ---------- v4: rules shown by the screens themselves ---------- */
svg { width: 1em; height: 1em; flex: none; }
/* the step bar: the whole turn at a glance, the current step opens into a labelled pill */
.steps { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 5px; background: rgba(255,255,255,.55); border-radius: 999px; box-shadow: 0 4px 0 rgba(36,18,63,.1); }
.steps li { display: flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px; color: var(--ink-soft); font-weight: 800; font-size: 15px; transition: background .3s; }
.steps li .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: rgba(255,255,255,.7); opacity: .55; }
.steps li b { display: none; white-space: nowrap; }
.steps li.done .ic { background: var(--lime); color: var(--ink); opacity: 1; }
.steps li.now { background: var(--pink); color: #fff; padding-inline-end: 14px; animation: pop .5s cubic-bezier(.2,1.5,.4,1) both; }
.steps li.now .ic { background: rgba(255,255,255,.25); color: #fff; opacity: 1; }
.steps li.now b { display: inline; }
/* names inside a question are the players' own colour chips */
.nm { display: inline-block; padding: 0 .32em; margin: 0 .05em; border-radius: .45em; color: #fff; line-height: 1.3; box-shadow: 0 3px 0 rgba(36,18,63,.18); }
.nm.dark-text { color: var(--ink); }
.nm.me { outline: 3px solid #fff; animation: wiggle 1.2s ease-in-out infinite; }
.card.q.compact { font-size: clamp(19px, 5.4vw, 22px); padding: 12px 16px; }
.say-pill { gap: 8px; }
.say-pill svg, .heartpill svg { font-size: 1.1em; }
.heartpill { gap: 6px; color: var(--pink); }
.heartpill b { color: var(--ink); }
body.pulsing .heartpill svg { animation: beat var(--period) ease-in-out infinite; }
/* her secret choice sits in a dashed "private" box */
.secret { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 10px; border: 3px dashed rgba(36,18,63,.28); border-radius: 34px; padding: 12px 10px 10px; background: rgba(255,255,255,.28); }
.secret .lbl { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 18px; color: var(--ink); }
.secret .muted { margin: 0; }
.bets .btn small bdi { font-weight: 800; }
.bets .btn small { border-radius: 14px; line-height: 1.25; padding: 3px 10px; max-width: 92%; margin-top: 4px; }
.bets.locked .btn { min-height: 62px; font-size: 24px; flex-direction: row; gap: 8px; }
.pill svg { font-size: 1em; }
.voters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.voters .initial { transition: opacity .3s, transform .3s; }
.voters .initial:not(.dim) { animation: pop .4s cubic-bezier(.2,1.6,.4,1) both; }
.who.big { font-size: clamp(54px, 17vw, 80px); }
/* standings on the turn card */
.standings { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 420px; }
.stand { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.85); border-radius: 999px; padding: 4px 4px 4px 14px; font-weight: 800; font-size: 17px; box-shadow: 0 3px 0 rgba(36,18,63,.12); }
[dir="rtl"] .stand { padding: 4px 14px 4px 4px; }
.stand i { font-style: normal; }
.stand b { background: var(--c); color: #fff; border-radius: 999px; min-width: 32px; padding: 0 9px; text-align: center; }
.stand.on { outline: 3px solid var(--pink); }
/* the reveal: two columns of voters, then the truth lights one of them */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 420px; }
.side { display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 128px; padding: 12px 8px; border-radius: 28px; background: rgba(255,255,255,.72); box-shadow: 0 6px 0 rgba(36,18,63,.1); }
.side > b { font-size: 24px; font-weight: 800; }
.who-voted { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.vchip { position: relative; display: inline-flex; border-radius: 999px; padding: 4px 13px; color: #fff; font-weight: 800; font-size: 17px; box-shadow: 0 3px 0 rgba(36,18,63,.18);
  animation: pop .45s cubic-bezier(.2,1.6,.4,1) both; animation-delay: calc(.25s + var(--k, 0) * 110ms); }
.vchip.dark-text { color: var(--ink); }
.vchip em { position: absolute; top: -12px; inset-inline-end: -10px; font-style: normal; font-size: 14px; background: var(--lime); color: var(--ink); border-radius: 999px; padding: 0 7px; box-shadow: 0 2px 0 rgba(36,18,63,.2);
  animation: pop .4s cubic-bezier(.2,1.6,.4,1) 1.35s both; }
.side.win { animation: sideWin .55s cubic-bezier(.2,1.5,.4,1) .95s both; }
.side.lose { animation: sideLose .5s ease-out .95s both; }
@keyframes sideWin { to { background: var(--lime); transform: scale(1.04); box-shadow: 0 0 0 4px #fff, 0 0 40px 8px rgba(198,242,78,.75); } }
@keyframes sideLose { to { opacity: .5; transform: scale(.96); } }
.reveal .slam.late { animation: slam .7s cubic-bezier(.2,1.6,.4,1) .85s both; }
.reveal .late2 { animation: pop .5s cubic-bezier(.2,1.5,.4,1) 1.3s both; }
.facts .chip { font-size: 18px; padding: 2px 12px; vertical-align: middle; }
/* how it works: a numbered picture strip and the points as tokens */
.card.how { gap: 14px; }
.how .flow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.how .flow li { position: relative; display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 800; line-height: 1.35; }
.how .flow li .ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; color: #fff; box-shadow: 0 3px 0 rgba(36,18,63,.18); flex: none; }
.how .flow .c0 { background: var(--pink); } .how .flow .c1 { background: var(--blue); } .how .flow .c2 { background: var(--ink); } .how .flow .c3 { background: var(--lime); color: var(--ink); } .how .flow .c4 { background: #FF8A3D; }
.how .flow li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 21px; top: 48px; height: 12px; border-inline-start: 4px dotted rgba(36,18,63,.3); }
.pts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tok { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 4px; font-size: 15px; font-weight: 800; box-shadow: 0 3px 0 rgba(36,18,63,.1); padding-inline-end: 12px; }
.tok b { background: var(--lime); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.tok.pink b { background: var(--pink); color: #fff; }
/* the paid levels */
.spice-btn { position: relative; }
.spice-btn.locked { background: rgba(255,255,255,.5); }
.spice-btn .lockb { position: absolute; top: -8px; inset-inline-end: -4px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 14px; }
.spice-btn .freeb { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--lime); color: var(--ink); border-radius: 999px; padding: 0 8px; font-size: 12px; white-space: nowrap; }
.card.unlock { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.card.unlock h2 { margin: 0; font-size: 30px; }
.btn.buy { flex-direction: column; gap: 0; min-height: 84px; }
a.btn { text-decoration: none; }
.field.code-in { font-size: 44px; letter-spacing: .3em; max-width: 260px; }
.card.unlock p { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink-soft); line-height: 1.5; }
.screen.top { padding-top: calc(88px + env(safe-area-inset-top, 0px)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* v4.1: her secret, a face-down card every phone can see. It wobbles while she decides, lands sealed when she picks,
   and flips open at the reveal. */
.secret-card { position: relative; width: min(80vw, 300px); height: 96px; perspective: 900px; }
.secret-card.big { height: 132px; width: min(84vw, 330px); }
.sc-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.sc-face { position: absolute; inset: 0; border-radius: 26px; border: 4px solid #fff; box-shadow: 0 7px 0 rgba(36,18,63,.2);
  -webkit-backface-visibility: hidden; backface-visibility: hidden; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 14px; }
.sc-back { background: repeating-linear-gradient(135deg, #34205A 0 14px, #24123F 14px 28px); color: #fff; }
.sc-back .lockc { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--pink); display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(255,255,255,.18); }
.sc-back .lockc svg { width: 24px; height: 24px; }
.sc-back .sc-t { display: flex; flex-direction: column; line-height: 1.2; text-align: start; }
.sc-back b { font-size: 22px; font-weight: 800; }
.sc-back small { font-size: 14px; font-weight: 700; opacity: .75; }
.sc-front { transform: rotateY(180deg); flex-direction: column; gap: 0; }
.sc-front small { font-size: 16px; font-weight: 800; opacity: .8; }
.sc-front b { font-size: 50px; font-weight: 800; line-height: 1; }
.sc-front.truth { background: var(--lime); color: var(--ink); }
.sc-front.lie { background: var(--pink); color: #fff; }
.secret-card.deciding .sc-inner { animation: scWobble 1.6s ease-in-out infinite; }
.secret-card.deciding .lockc { animation: beat 1s ease-in-out infinite; }
.secret-card.sealed .sc-inner, .secret-card.mine .sc-inner { animation: scSeal .55s cubic-bezier(.2,1.6,.4,1) both; }
.secret-card.flip .sc-inner { animation: scFlip .75s cubic-bezier(.3,1.35,.5,1) .2s both; }
.sc-mine { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); white-space: nowrap; gap: 5px; box-shadow: 0 3px 0 rgba(36,18,63,.15); }
.sc-mine svg { width: 14px; height: 14px; }
.secret-card.mine { margin-bottom: 12px; }
.pinkword { color: var(--pink); }
.bets.decide .btn { min-height: 120px; font-size: 30px; }
@keyframes scWobble { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes scSeal { from { transform: translateY(-30px) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes scFlip { from { transform: rotateY(0); } to { transform: rotateY(180deg); } }
@media (prefers-reduced-motion: reduce) {
  .secret-card .sc-inner, .secret-card .lockc { animation: none !important; }
  .secret-card.flip .sc-inner { transform: rotateY(180deg); }
}

/* yes/no answers: neutral white buttons (lime and pink always mean truth and lie), her claim on every phone, and the
   reveal's "she said / the truth" line */
.bets.yn .btn { min-height: 92px; font-size: 40px; color: var(--ink); }
.said { display: inline-flex; align-items: baseline; gap: 8px; background: #fff; border-radius: 999px; padding: 6px 22px; font-size: 22px; font-weight: 800; box-shadow: 0 5px 0 rgba(36,18,63,.12); }
.said b { font-size: 34px; color: var(--blue); }
.truthline { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.truthline .pill { font-size: 18px; }
.truthline .pill b { font-size: 22px; }
.reveal .truthline.late { animation: pop .45s cubic-bezier(.2,1.6,.4,1) .9s both; }

/* 13 Nov 2026: the finger-slip banner (her phone only) and the grip tip on the finger screen */
#slip { position: fixed; top: max(14px, env(safe-area-inset-top)); left: 50%; z-index: 60; display: flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 21px; box-shadow: 0 8px 30px rgba(255,61,154,.55);
  transform: translate(-50%, -160%); transition: transform .25s cubic-bezier(.2,1.4,.4,1); pointer-events: none; width: max-content; max-width: calc(100vw - 32px); white-space: nowrap; }
#slip.on { transform: translate(-50%, 0); animation: slipbeat .9s ease-in-out infinite; }
#slip svg { width: 28px; height: 28px; flex: none; }
@keyframes slipbeat { 0%, 100% { box-shadow: 0 8px 30px rgba(255,61,154,.55); } 50% { box-shadow: 0 8px 46px rgba(255,61,154,.95); } }
.grip { display: flex; align-items: center; gap: 12px; max-width: 420px; margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); font-weight: 600; text-align: start; }
.grip svg { flex: none; width: 52px; height: 52px; }

