/* Girlies Night — midnight cocktail bar.
   Plum room, gold-foil deco, neon for the one thing to tap. Every question is an art-deco playing card:
   gold double border, a fan of gold rays behind the text, the mode's colour on the top edge and its suit in two corners. */
:root {
  color-scheme: dark;
  --plum: #2A1428;
  --charcoal: #17131A;
  --plum-2: #3A2238;
  --plum-3: #4A2C47;
  --gold: #D9A441;
  --gold-hi: #E8C46A;
  --gold-lo: #A87B28;
  --gold-grad: linear-gradient(135deg, #E8C46A 0%, #D9A441 50%, #A87B28 100%);
  --neon: #FF4D8D;
  --cream: #FAF3E8;
  --blush: #EFC9C0;
  --muted: rgba(250, 243, 232, 0.66);
  --line: rgba(217, 164, 65, 0.32);
  --line-soft: rgba(250, 243, 232, 0.12);
  --yes: #3DD68C;
  --no: #E5484D;

  --f-display: 'Playfair Display', 'Didot', Georgia, serif;
  --f-ui: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-card: 20px;
  --r-btn: 16px;
  --r-sm: 12px;
  --shadow: 0 24px 48px -20px rgba(8, 2, 8, 0.75), 0 2px 8px rgba(8, 2, 8, 0.25);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  /* art-deco card back: a gold diamond lattice */
  --lattice:
    repeating-linear-gradient(45deg, rgba(217, 164, 65, 0.16) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(-45deg, rgba(217, 164, 65, 0.16) 0 1px, transparent 1px 16px);
  /* the deco fan that rises behind every question */
  --fan:
    radial-gradient(120% 75% at 50% 0%, transparent 0 22%, var(--plum-2) 68%),
    repeating-conic-gradient(from 180deg at 50% -4%, rgba(217, 164, 65, 0.13) 0 0.6deg, transparent 0.6deg 7deg);
}

html, body { min-height: 100%; overflow-x: clip; }
body {
  margin: 0;
  color: var(--cream);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(90% 60% at 50% 30%, #3A1C37 0%, transparent 70%),
    radial-gradient(120% 80% at 50% 110%, var(--charcoal) 10%, transparent 70%),
    var(--plum);
  background-attachment: fixed;
}
body::after { content: ""; position: fixed; inset: 0; background-image: var(--grain); opacity: 0.06; mix-blend-mode: overlay; pointer-events: none; z-index: 0; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.app {
  position: relative; z-index: 1;
  max-width: 520px; min-height: 100vh; min-height: 100dvh; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 10px 28px;
  display: flex; flex-direction: column;
}

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.wordmark-sm {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 6px 0;
  font-family: var(--f-display); font-size: 19px; font-weight: 700; letter-spacing: 0.01em;
  color: var(--gold-hi);
}
.wordmark-sm em { font-style: italic; }
.lang-btn { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--gold); letter-spacing: 0.06em; }

.screen { display: flex; flex-direction: column; gap: 20px; flex: 1; padding-top: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 14px 22px; border-radius: var(--r-btn);
  font-weight: 600; font-size: 17px; text-decoration: none;
  border: 0; transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--neon); color: var(--charcoal); box-shadow: 0 10px 28px -10px rgba(255, 77, 141, 0.7); }
.btn-gold { background: var(--gold-grad); color: var(--charcoal); box-shadow: 0 10px 24px -12px rgba(217, 164, 65, 0.6); }
.btn-ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.link-btn { background: none; border: 0; color: var(--muted); font-size: 14px; padding: 8px 4px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }

/* ---------- home ---------- */
.home-hero { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 8px 0 4px; }
.emblem { width: 112px; height: 112px; margin-bottom: 2px; filter: drop-shadow(0 0 18px rgba(217, 164, 65, 0.25)); }
.hero-title {
  margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(46px, 13.5vw, 64px); line-height: 1.02; letter-spacing: -0.01em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline { margin: 0; font-family: var(--f-display); font-style: italic; font-size: 21px; color: var(--blush); }

.section-label { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 22px; color: var(--cream); }
.home-section { display: grid; gap: 12px; }

/* the mode tiles: little playing cards, two across */
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-tile {
  --mode: var(--gold);
  position: relative; overflow: hidden; display: grid; align-content: space-between; gap: 18px;
  min-height: 112px; padding: 14px 14px 12px; text-align: left;
  border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(160deg, color-mix(in srgb, var(--mode) 16%, var(--plum-2)) 0%, var(--plum-2) 60%);
  box-shadow: inset 0 3px 0 var(--mode);
}
.mode-tile .suit { font-family: var(--f-display); font-size: 26px; line-height: 1; color: var(--mode); font-variant-emoji: text; }
.mode-tile strong { font-family: var(--f-display); font-weight: 700; font-size: 18px; line-height: 1.15; color: var(--cream); }
.mode-tile small { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.mode-tile.wide { grid-column: 1 / -1; min-height: 0; grid-template-columns: auto 1fr; align-items: center; }

/* feature rows: bachelorette, secret mission, bestie test */
.feature {
  position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center;
  width: 100%; padding: 14px 16px; text-align: left; border-radius: var(--r-card);
  background: var(--plum-2); border: 1px solid var(--line);
}
.feature .ico { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 28px; background: var(--charcoal); border: 1px solid var(--line); }
.feature strong { display: block; font-family: var(--f-display); font-weight: 700; font-size: 19px; line-height: 1.2; }
.feature small { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.feature .badge { position: absolute; top: -9px; right: 14px; }
.feature.bach {
  background: linear-gradient(135deg, #F6D9D1 0%, var(--blush) 55%, #E3AFA4 100%); color: var(--charcoal); border: 0;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.0), inset 0 0 0 1px rgba(168, 123, 40, 0.5), var(--shadow);
}
.feature.bach small { color: rgba(23, 19, 26, 0.72); }
.feature.bach .ico { background: rgba(255, 255, 255, 0.45); border-color: rgba(168, 123, 40, 0.4); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; background: var(--gold-grad); color: var(--charcoal); white-space: nowrap; }
.badge.neon { background: var(--neon); }

/* paid packs: two card-backs side by side */
.pack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pack {
  position: relative; overflow: hidden; display: grid; align-content: space-between; gap: 12px;
  min-height: 190px; padding: 16px 14px 14px; border-radius: var(--r-card); text-align: left;
  background: var(--lattice), var(--charcoal);
  box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 5px var(--charcoal), inset 0 0 0 6px var(--line), var(--shadow);
}
.pack .pack-ico { font-size: 30px; line-height: 1; }
.pack strong { display: block; font-family: var(--f-display); font-weight: 700; font-size: 20px; line-height: 1.15; }
.pack small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.pack .btn { min-height: 44px; padding: 8px 12px; font-size: 15px; border-radius: 12px; width: 100%; }
.pack .done { font-size: 13px; font-weight: 600; color: var(--gold); }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.how-steps li { display: grid; gap: 4px; justify-items: center; padding: 12px 6px; border-radius: 14px; border: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); line-height: 1.3; }
.how-steps b { font-size: 22px; line-height: 1; font-weight: 400; }

/* legacy promo block (still used on a few inner screens) */
.promo { position: relative; display: grid; gap: 10px; padding: 20px; text-align: left; width: 100%; border-radius: var(--r-card); background: var(--plum-2); border: 1px solid var(--line); }
.promo h3 { margin: 0; font-family: var(--f-display); font-size: 26px; font-weight: 700; line-height: 1.12; }
.promo p { margin: 0; color: var(--muted); font-size: 15px; max-width: 42ch; }
.promo .btn { justify-self: start; min-height: 46px; padding: 10px 18px; font-size: 15px; }
.price-tag { justify-self: start; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }

/* ---------- setup ---------- */
.h2 { margin: 0; font-family: var(--f-display); font-size: 32px; font-weight: 800; line-height: 1.1; }
.h3 { font-size: 24px; }
.group { display: grid; gap: 12px; }
.names { display: grid; gap: 8px; }
.name-row { display: flex; gap: 8px; }
.input {
  flex: 1; min-width: 0; min-height: 54px; padding: 12px 16px; border-radius: var(--r-sm);
  background: var(--charcoal); border: 1px solid var(--line-soft); font-size: 17px; color: var(--cream);
}
.input::placeholder { color: rgba(250, 243, 232, 0.38); }
.input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.18); }
.screen > .input { flex: 0 0 auto; }
.icon-btn { width: 54px; flex: none; border-radius: var(--r-sm); border: 1px solid var(--line-soft); background: transparent; font-size: 22px; line-height: 1; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 13px; font-size: 14px; color: var(--cream); }
.chip.selected { border-color: var(--neon); background: rgba(255, 77, 141, 0.16); }
.chips .lbl { font-size: 13px; color: var(--muted); margin-right: 2px; }

.opt-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px;
  background: var(--plum-2); border: 1px solid var(--line-soft); cursor: pointer;
}
.opt-row:has(input:checked) { border-color: var(--gold); background: linear-gradient(135deg, rgba(217, 164, 65, 0.14), var(--plum-2) 70%); }
.opt-row input { appearance: none; width: 24px; height: 24px; flex: none; border-radius: 7px; border: 1.5px solid var(--muted); display: grid; place-items: center; margin: 0; }
.opt-row input[type="radio"] { border-radius: 50%; }
.opt-row input:checked { background: var(--gold-grad); border-color: var(--gold); }
.opt-row input:checked::after { content: ""; width: 10px; height: 6px; border-left: 2.5px solid var(--charcoal); border-bottom: 2.5px solid var(--charcoal); transform: translateY(-2px) rotate(-45deg); }
.opt-row input[type="radio"]:checked::after { width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--charcoal); transform: none; }
.opt-row.disabled { opacity: 0.42; cursor: not-allowed; }
.opt-row.disabled input { background: transparent; border-color: var(--line-soft); }
.opt-row.disabled input::after { content: none; }
.opt-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.opt-text strong { font-family: var(--f-display); font-weight: 700; font-size: 18px; line-height: 1.25; }
.opt-text span { font-size: 14px; color: var(--muted); }
.swatch { width: 10px; height: 10px; flex: none; border-radius: 50%; box-shadow: 0 0 10px currentColor; }
.mini-btn { flex: none; border: 0; border-radius: 999px; background: var(--gold-grad); color: var(--charcoal); font-size: 13px; font-weight: 600; padding: 7px 12px; }
.error { margin: 0; color: var(--neon); font-size: 15px; min-height: 1.5em; }
.sticky-cta { position: sticky; bottom: 0; padding-block: 12px env(safe-area-inset-bottom, 0px); background: linear-gradient(to top, var(--plum) 72%, transparent); display: grid; gap: 6px; }

/* ---------- game ---------- */
.game-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.round-info { display: grid; gap: 0; min-width: 0; }
.round-info small { font-size: 13px; color: var(--muted); }
.round-info strong { font-family: var(--f-display); font-weight: 700; font-size: 19px; line-height: 1.2; }
.game-actions { display: flex; gap: 4px; flex: none; }
.progress { height: 4px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 4px; background: var(--gold-grad); transition: width 0.3s ease; }

/* The question card: an art-deco playing card. */
.card {
  --mode: var(--gold);
  --suit: "◆\FE0E";
  position: relative; overflow: hidden; border-radius: var(--r-card);
  min-height: clamp(360px, 56vh, 600px); padding: 30px 26px 34px; display: flex; flex-direction: column; gap: 16px;
  color: var(--cream); background: var(--fan), var(--plum-2);
  box-shadow:
    inset 0 4px 0 var(--mode),
    inset 0 0 0 1px var(--gold),
    inset 0 0 0 7px var(--plum-2),
    inset 0 0 0 8px rgba(217, 164, 65, 0.45),
    var(--shadow);
}
/* suits in opposite corners, like a real deck */
.card::before, .card::after {
  content: var(--suit); position: absolute; z-index: 1;
  font-family: var(--f-display); font-size: 26px; line-height: 1; color: var(--mode); font-variant-emoji: text;
}
.card::before { top: 20px; right: 22px; }
.card::after { bottom: 18px; left: 22px; transform: rotate(180deg); }
.card > * { position: relative; z-index: 2; }
.card.enter { animation: deal 0.42s cubic-bezier(.2, .8, .2, 1); }
@keyframes deal { from { transform: translateY(18px) rotate(-1.5deg) scale(0.98); opacity: 0.3; } to { transform: none; opacity: 1; } }

.card[data-mode="this-or-that"] { --mode: #FF4D8D; --suit: "⇄"; }
.card[data-mode="deep"] { --mode: #D9A441; --suit: "◆\FE0E"; }
.card[data-mode="deep"].nhie { --mode: #FF4D8D; }
.card[data-mode="most-likely"] { --mode: #A274F2; --suit: "♛\FE0E"; }
.card[data-mode="red-flag"] { --mode: #E5484D; --suit: "⚑\FE0E"; }
.card[data-mode="princess"] { --mode: #EFC9C0; --suit: "♕\FE0E"; }
.card[data-mode="cute-cringe"] { --mode: #7ED3B2; --suit: "♡\FE0E"; }
.card[data-mode="guess-who"] { --mode: #C9B8F0; --suit: "?"; }
.card[data-mode="dare"] { --mode: #FF7A45; --suit: "✦\FE0E"; }
.card[data-mode="intro"] { --mode: var(--gold); --suit: "✦\FE0E"; }
.card[data-mode="award"], .card[data-mode="gq"] { --mode: var(--blush); --suit: "♕\FE0E"; }
.card[data-mode="award"] { --suit: "★\FE0E"; }

/* card backs: paywall, pass-the-phone gates, sealed missions */
.card[data-mode="paywall"], .card[data-mode="sm-gate"], .card[data-mode="guess-who"][data-gw="gate"], .card[data-mode="sm-private"], .card[data-mode="sm-out"] {
  background:
    radial-gradient(70% 55% at 50% 50%, var(--charcoal) 35%, transparent 75%),
    var(--lattice), var(--charcoal);
}
.card[data-mode="paywall"] { --mode: var(--neon); --suit: "🔒"; }
.card[data-mode="sm-gate"], .card[data-mode="guess-who"][data-gw="gate"] { --mode: var(--gold); --suit: "✦\FE0E"; }
.card[data-mode="sm-private"], .card[data-mode="sm-out"] { --mode: var(--neon); --suit: "✦\FE0E"; }

.card-band { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-right: 36px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mode); background: color-mix(in srgb, var(--mode) 15%, transparent);
}
.tag.spicy { color: var(--neon); background: rgba(255, 77, 141, 0.15); }
.card-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; min-width: 0; text-align: center; align-items: center; }
.card-text {
  margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 7.8vw, 38px);
  line-height: 1.3; text-wrap: balance; overflow-wrap: anywhere;
}
.card-kicker { margin: 0; font-family: var(--f-display); font-style: italic; font-size: 19px; line-height: 1.3; color: var(--blush); }
.card-hint { margin: 0; font-size: 15px; color: var(--muted); max-width: 34ch; }
.turn { display: inline-flex; padding: 6px 14px; border-radius: 999px; background: var(--mode); color: var(--charcoal); font-size: 15px; font-weight: 600; }

.tot { display: grid; gap: 10px; width: 100%; }
.tot .side { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 7.8vw, 38px); line-height: 1.2; text-wrap: balance; overflow-wrap: anywhere; }
.tot .side.a { color: var(--cream); }
.tot .side.b { color: var(--neon); }
.tot .or { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-style: italic; font-size: 20px; color: var(--gold); }
.tot .or::before, .tot .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.vote-legend { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.vote-legend span { padding: 7px 14px; border-radius: 999px; background: rgba(250, 243, 232, 0.08); border: 1px solid var(--line-soft); font-size: 15px; font-weight: 500; }

.countdown { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: rgba(23, 19, 26, 0.94); color: var(--cream); z-index: 5; padding: 20px; }
.countdown b { font-family: var(--f-display); font-weight: 800; font-size: clamp(120px, 40vw, 200px); line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; animation: beat 0.7s ease both; }
.countdown .vote-now { display: grid; gap: 10px; animation: beat 0.5s ease both; }
.countdown .vote-now strong { font-family: var(--f-display); font-size: 40px; line-height: 1.1; color: var(--neon); }
.countdown .vote-now span { font-size: 54px; letter-spacing: 0.12em; }
@keyframes beat { from { transform: scale(1.4); opacity: 0; } to { transform: none; opacity: 1; } }

.controls { display: grid; gap: 10px; padding-bottom: env(safe-area-inset-bottom, 0px); }
.controls .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.crown-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.crown-btn { min-height: 58px; padding: 10px 12px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--plum-2); font-family: var(--f-display); font-weight: 700; font-size: 19px; overflow-wrap: anywhere; transition: transform 0.12s ease; }
.crown-btn:active { background: var(--neon); color: var(--charcoal); transform: scale(1.03); }
.crown-btn small { display: block; font-family: var(--f-ui); font-weight: 400; font-size: 13px; color: var(--muted); }
.hint { margin: 0; text-align: center; font-size: 14px; color: var(--muted); }

/* guess who */
.gw-q { font-size: clamp(24px, 6.6vw, 30px); }
.gw-answer { font-size: clamp(36px, 10.5vw, 54px); color: var(--neon); font-style: italic; line-height: 1.15; }
.card p.gw-who { margin: 0; padding: 8px 18px; border-radius: 999px; background: var(--gold-grad); color: var(--charcoal); font-family: var(--f-display); font-weight: 800; font-size: 24px; animation: beat 0.35s ease both; }
.gw-count { color: var(--neon); }
.gw-num { font-size: 28px; text-align: center; }
.gw-mode { width: 100%; text-align: left; color: var(--cream); }
.gw-mode:active { border-color: var(--gold); }
.tally { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; width: 100%; text-align: left; }
.tally li { display: grid; grid-template-columns: minmax(0, 7.5em) 1fr auto; gap: 10px; align-items: center; font-size: 17px; }
.tally.reveal li { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 4px; border-bottom: 1px solid var(--line-soft); }
.tally.reveal li:last-child { border-bottom: 0; }
.tally-label { overflow-wrap: anywhere; font-family: var(--f-display); font-weight: 700; font-size: 19px; }
.tally b { font-weight: 600; text-align: right; color: var(--gold); }
.yn-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.yn-split span { display: grid; justify-items: center; padding: 14px 8px; font-size: 15px; border-radius: 16px; background: rgba(250, 243, 232, 0.06); }
.yn-split b { font-family: var(--f-display); font-weight: 800; font-size: 60px; line-height: 1; }
.yn-split .yes b { color: var(--yes); }
.yn-split .no b { color: var(--no); }
.sm-hidden { font-size: 64px; }

/* ---------- end / boards ---------- */
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.board li { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--plum-2); border: 1px solid var(--line-soft); }
.board .rank { font-family: var(--f-display); font-weight: 800; font-size: 24px; color: var(--gold); text-align: center; }
.board .who { min-width: 0; display: grid; gap: 2px; }
.board .who strong { font-family: var(--f-display); font-weight: 700; font-size: 19px; }
.board .who span { font-size: 14px; color: var(--muted); line-height: 1.35; }
.board .count { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.board li.top { border-color: var(--gold); background: linear-gradient(135deg, rgba(217, 164, 65, 0.18), var(--plum-2) 70%); }
.board li.top .count { color: var(--gold); }
.empty { margin: 0; padding: 18px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); text-align: center; }
.cross { border: 1px solid var(--neon); background: rgba(255, 77, 141, 0.1); color: var(--cream); border-radius: var(--r-btn); padding: 14px 16px; font-weight: 600; font-size: 15px; text-align: left; }

/* ---------- bestie test ---------- */
.lede { margin: 0; color: var(--muted); font-size: 17px; max-width: 40ch; }
.q-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.q-text { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 7.8vw, 36px); line-height: 1.25; text-wrap: balance; }
.answers { display: grid; gap: 10px; }
.answers.yn { grid-template-columns: 1fr 1fr; }
.answers.yn .answer { text-align: center; font-size: 22px; min-height: 76px; }
.answer { min-height: 60px; padding: 14px 18px; border-radius: var(--r-btn); text-align: left; font-size: 17px; font-weight: 500; border: 1px solid var(--line-soft); background: var(--plum-2); transition: transform 0.12s ease; }
.answer.picked, .answer:active { background: var(--neon); color: var(--charcoal); border-color: var(--neon); transform: scale(1.02); }
.answer.correct { background: var(--yes); border-color: var(--yes); color: var(--charcoal); }
.answer.wrong { background: var(--no); border-color: var(--no); color: var(--cream); }
.answer.dim { opacity: 0.4; }
.answer[disabled] { cursor: default; }
.juicy-tag { margin: 0; color: var(--neon); }
.swap { justify-self: center; }
.g-score { font-family: var(--f-display); font-weight: 700; font-size: 18px; color: var(--gold); }
.g-says { color: var(--blush); margin: 0; }
.g-feedback { margin: 0; font-family: var(--f-display); font-style: italic; font-size: 21px; line-height: 1.25; }
.g-feedback.ok { color: var(--yes); }
.g-feedback.no { color: var(--neon); }
.link-box { display: flex; gap: 8px; }
.link-box .input { font-size: 14px; }
.share-grid { display: grid; gap: 10px; }
.qr-wrap { display: grid; justify-items: center; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--plum-2); }
.qr { padding: 12px; background: var(--cream); border-radius: 12px; line-height: 0; }
.qr img, .qr canvas { display: block; width: 168px; height: 168px; }
.bt-hero { display: grid; gap: 8px; justify-items: start; }
.bt-emoji { font-size: 52px; line-height: 1; }
.emoji-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.emoji-btn { aspect-ratio: 1; max-width: 100%; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--plum-2); font-size: 22px; padding: 0; }
.emoji-btn.selected { border-color: var(--neon); background: rgba(255, 77, 141, 0.18); }

/* result cards: gold double border on plum, made to be screenshotted */
.score-card, .recap {
  position: relative; overflow: hidden; border-radius: var(--r-card); padding: 34px 24px; text-align: center;
  background: var(--fan), var(--plum-2); color: var(--cream); display: grid; gap: 6px;
  box-shadow: inset 0 0 0 1px var(--gold), inset 0 0 0 7px var(--plum-2), inset 0 0 0 8px rgba(217, 164, 65, 0.45), var(--shadow);
}
.score-card small, .recap small { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.score-card .num { font-family: var(--f-display); font-weight: 800; font-size: clamp(92px, 30vw, 140px); line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.score-card .verdict { font-family: var(--f-display); font-style: italic; font-size: 28px; font-weight: 700; color: var(--neon); }
.tier-sub { margin: 2px 0 0; font-size: 16px; color: var(--muted); }
.recap { text-align: left; }
.recap h2 { margin: 0; font-family: var(--f-display); font-size: 30px; font-weight: 800; line-height: 1.12; }
.recap ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; }
.recap li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.recap li span { min-width: 0; color: var(--muted); }
.recap li b { text-align: right; flex: none; font-family: var(--f-display); font-size: 18px; color: var(--cream); }
.review { list-style: none; margin: 0; padding: 0; display: grid; }
.review li { padding: 12px 2px; border-bottom: 1px solid var(--line-soft); display: grid; gap: 4px; font-size: 14px; }
.review li strong { font-family: var(--f-display); font-weight: 700; font-size: 17px; }
.review .ok { color: var(--yes); }
.review .no { color: var(--neon); }
.review-wrap summary { cursor: pointer; color: var(--muted); padding: 8px 0; }

/* ---------- bachelorette, after-party ---------- */
.bach-promo { background: linear-gradient(135deg, #F6D9D1, var(--blush) 55%, #E3AFA4); color: var(--charcoal); border: 0; }
.bach-promo h3 { color: var(--charcoal); }
.bach-promo p { color: rgba(23, 19, 26, 0.75); }
.bach-promo .price-tag { color: #8A2E52; }
.after-party { border-color: rgba(255, 77, 141, 0.5); }
.bach-hero { display: grid; gap: 8px; justify-items: start; }
.bach-title { font-size: clamp(40px, 12vw, 58px); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stage { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px; border-radius: var(--r-card); background: var(--plum-2); border: 1px solid var(--line-soft); }
.stage-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 18px; color: var(--charcoal); background: var(--gold-grad); }
.stage-text { display: grid; gap: 4px; min-width: 0; }
.stage-text small { font-size: 13px; color: var(--muted); }
.stage-text strong { font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 1.2; }
.stage-text > span { color: var(--muted); font-size: 15px; }
.stage-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.stage-actions .btn { min-height: 44px; padding: 10px 16px; font-size: 15px; border-radius: 12px; }
.stage-status { margin: 4px 0 0; font-size: 14px; color: var(--muted); width: 100%; }
.price-block { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-block .was { color: var(--muted); text-decoration: line-through; font-size: 18px; }
.price-block .now { font-family: var(--f-display); font-weight: 800; font-size: 52px; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-block .note { font-family: var(--f-display); font-style: italic; font-size: 17px; color: var(--blush); }
.card[data-mode="gq"] .gw-answer { color: var(--neon); }

/* ---------- modal + toast ---------- */
.modal { position: fixed; inset: 0; z-index: 30; display: grid; align-items: end; background: rgba(12, 6, 12, 0.72); backdrop-filter: blur(4px); }
.sheet {
  width: 100%; max-width: 520px; margin: 0 auto; background: var(--plum-2); border-radius: 24px 24px 0 0; border-top: 1px solid var(--gold);
  padding: 26px max(20px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  display: grid; gap: 16px; max-height: 92%; overflow-y: auto;
}
.sheet h3 { margin: 0; font-family: var(--f-display); font-size: 30px; font-weight: 800; line-height: 1.12; }
.sheet p { margin: 0; color: var(--muted); }
.taste { display: grid; gap: 8px; }
.taste div { padding: 14px 16px; border-radius: 14px; background: var(--charcoal); border: 1px solid var(--line); font-family: var(--f-display); font-size: 18px; font-weight: 700; line-height: 1.3; }
.taste small { display: block; margin-bottom: 4px; font-family: var(--f-ui); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--neon); }
.checkout { text-align: center; padding: 24px 8px; display: grid; gap: 6px; }
.checkout strong { font-family: var(--f-display); font-size: 22px; }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  z-index: 40; background: var(--cream); color: var(--charcoal); padding: 12px 20px; border-radius: 999px;
  box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center; font-weight: 600;
}

@media (max-width: 360px) { .emoji-row { grid-template-columns: repeat(4, 1fr); } .mode-tile strong { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* =====================================================================
   Finish layer: materials instead of boxes.
   Surfaces get a lit top edge, a foil hairline that catches light top-left and fades,
   and layered soft shadows, so they read as objects on a table rather than outlines.
   ===================================================================== */
:root {
  --surf: linear-gradient(165deg, #45283F 0%, #36203A 45%, #2C1A2E 100%);
  --foil: linear-gradient(150deg, rgba(240, 210, 140, 0.75) 0%, rgba(217, 164, 65, 0.18) 32%, rgba(217, 164, 65, 0.06) 60%, rgba(217, 164, 65, 0.4) 100%);
  --foil-strong: linear-gradient(150deg, #F3D68E 0%, #C7922F 30%, #7A5518 55%, #D9A441 80%, #F0CF83 100%);
  --lift: inset 0 1px 0 rgba(255, 236, 214, 0.09), 0 1px 1px rgba(10, 4, 10, 0.35), 0 10px 22px -10px rgba(10, 4, 10, 0.7), 0 28px 50px -30px rgba(10, 4, 10, 0.8);
}
.ico-svg { width: 24px; height: 24px; display: block; }

/* buttons with light on them */
.btn-primary {
  background: linear-gradient(180deg, #FF7AAB 0%, #FF4D8D 48%, #E73A7A 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 0 rgba(120, 10, 50, 0.25), 0 10px 26px -10px rgba(255, 77, 141, 0.75), 0 2px 4px rgba(10, 4, 10, 0.4);
}
.btn-gold {
  background: linear-gradient(180deg, #F1D48C 0%, #D9A441 52%, #B5862F 100%);
  box-shadow: inset 0 1px 0 rgba(255, 248, 225, 0.6), inset 0 -2px 0 rgba(90, 60, 10, 0.25), 0 10px 24px -12px rgba(217, 164, 65, 0.6), 0 2px 4px rgba(10, 4, 10, 0.4);
}
.btn-ghost {
  border: 1px solid transparent; color: var(--gold-hi);
  background: linear-gradient(#211723, #211723) padding-box, var(--foil-strong) border-box;
}

/* home */
.how-steps { grid-template-columns: repeat(3, 1fr); gap: 0; }
.how-steps li { border: 0; padding: 4px 4px; gap: 8px; color: var(--muted); position: relative; }
.how-steps li .ico-svg { width: 30px; height: 30px; color: var(--gold-hi); }
.how-steps li + li::before { content: ""; position: absolute; left: -14%; top: 18px; width: 28%; border-top: 1px dotted rgba(217, 164, 65, 0.45); }

.mode-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 136px; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding: 4px max(16px, env(safe-area-inset-left, 0px)) 22px;
  scroll-padding-inline: 16px;
}
.mode-rail::-webkit-scrollbar { display: none; }
.mini-card {
  --mode: var(--gold);
  position: relative; scroll-snap-align: start; aspect-ratio: 5 / 7.4;
  display: grid; grid-template-rows: 1fr auto; padding: 14px 12px 16px; text-align: center; color: var(--cream);
  border-radius: 14px; border: 1px solid transparent;
  background:
    radial-gradient(90% 60% at 50% 34%, color-mix(in srgb, var(--mode) 24%, transparent) 0%, transparent 70%) padding-box,
    repeating-conic-gradient(from 180deg at 50% 34%, rgba(217, 164, 65, 0.07) 0 0.8deg, transparent 0.8deg 9deg) padding-box,
    var(--surf) padding-box,
    var(--foil-strong) border-box;
  box-shadow: var(--lift);
  transition: transform 0.18s ease;
}
.mini-card:active { transform: translateY(-3px) rotate(-1deg); }
.mini-card::before, .mini-card::after { content: attr(data-suit); position: absolute; font-family: var(--f-display); font-size: 14px; line-height: 1; color: var(--mode); }
.mini-card::before { top: 10px; left: 11px; }
.mini-card::after { bottom: 10px; right: 11px; transform: rotate(180deg); }
.mini-card .big-suit { align-self: center; font-family: var(--f-display); font-size: 46px; line-height: 1; color: var(--mode); text-shadow: 0 0 22px color-mix(in srgb, var(--mode) 55%, transparent); }
.mini-name strong { display: block; font-family: var(--f-display); font-weight: 700; font-size: 16px; line-height: 1.18; text-wrap: balance; }
.mini-name small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }

.medallion {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-hi);
  border: 1px solid transparent; background: radial-gradient(circle at 35% 30%, #3E2440, #1E1220) padding-box, var(--foil-strong) border-box;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.6);
}
.medallion .ico-svg { width: 26px; height: 26px; }
.medallion.light { color: #7A4B2A; background: radial-gradient(circle at 35% 30%, #FFF4EE, #F1CFC4) padding-box, var(--foil-strong) border-box; }

.feature-hero {
  position: relative; display: grid; justify-items: start; gap: 6px; width: 100%; padding: 20px 20px 22px; text-align: left; color: var(--charcoal);
  border-radius: var(--r-card); border: 1px solid transparent;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.55), transparent 55%) padding-box,
    linear-gradient(160deg, #F8E3DB 0%, #EFC9C0 50%, #DDA597 100%) padding-box,
    var(--foil-strong) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 18px 40px -18px rgba(239, 160, 150, 0.45), 0 2px 4px rgba(10, 4, 10, 0.35);
}
.feature-hero .medallion { margin-bottom: 6px; }
.feature-hero strong { font-family: var(--f-display); font-weight: 800; font-size: 25px; line-height: 1.1; }
.feature-hero small { font-size: 15px; line-height: 1.45; color: rgba(23, 19, 26, 0.72); max-width: 34ch; }
.feature-hero .badge { position: absolute; top: 18px; right: 18px; }

.list-group {
  border-radius: var(--r-card); overflow: hidden; border: 1px solid transparent;
  background: var(--surf) padding-box, var(--foil) border-box; box-shadow: var(--lift);
}
.list-row { display: grid; grid-template-columns: 46px 1fr 14px; gap: 14px; align-items: center; width: 100%; padding: 15px 16px; background: none; border: 0; text-align: left; color: var(--cream); }
.list-row + .list-row { border-top: 1px solid rgba(250, 243, 232, 0.07); }
.list-row:active { background: rgba(250, 243, 232, 0.04); }
.ring-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-hi); background: rgba(217, 164, 65, 0.1); box-shadow: inset 0 0 0 1px rgba(217, 164, 65, 0.35); }
.list-text strong { display: block; font-family: var(--f-display); font-weight: 700; font-size: 18px; line-height: 1.2; }
.list-text small { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.chev { width: 9px; height: 9px; border-right: 1.5px solid var(--gold); border-top: 1.5px solid var(--gold); transform: rotate(45deg); opacity: 0.8; }

.pack {
  min-height: 0; padding: 18px 14px 14px; gap: 12px; justify-items: center; text-align: center; border: 1px solid transparent;
  background:
    radial-gradient(80% 50% at 50% 28%, rgba(23, 19, 26, 0.95) 30%, transparent 75%) padding-box,
    var(--lattice) padding-box, linear-gradient(#1C1520, #141017) padding-box,
    var(--foil-strong) border-box;
  box-shadow: inset 0 0 0 5px #17131A, inset 0 0 0 6px rgba(217, 164, 65, 0.3), var(--lift);
}
.pack .pack-text { display: grid; gap: 4px; }
.pack strong { font-size: 18px; }

/* the question card: foil edge, an inner printed rule, the mode glowing from its corner */
.card {
  border: 1.5px solid transparent;
  background:
    radial-gradient(70% 40% at 100% 0%, color-mix(in srgb, var(--mode) 20%, transparent), transparent 70%) padding-box,
    radial-gradient(120% 75% at 50% 0%, transparent 0 22%, #33203A 68%) padding-box,
    repeating-conic-gradient(from 180deg at 50% -4%, rgba(217, 164, 65, 0.11) 0 0.6deg, transparent 0.6deg 7deg) padding-box,
    var(--surf) padding-box,
    var(--foil-strong) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 236, 214, 0.08), 0 2px 3px rgba(10, 4, 10, 0.4), 0 30px 60px -28px rgba(8, 2, 8, 0.9);
  outline: 1px solid rgba(217, 164, 65, 0.32); outline-offset: -9px;
}
.card::before, .card::after { text-shadow: 0 0 14px color-mix(in srgb, var(--mode) 50%, transparent); }
.card[data-mode="paywall"], .card[data-mode="sm-gate"], .card[data-mode="guess-who"][data-gw="gate"], .card[data-mode="sm-private"], .card[data-mode="sm-out"] {
  background:
    radial-gradient(70% 55% at 50% 50%, #17131A 35%, transparent 75%) padding-box,
    var(--lattice) padding-box, linear-gradient(#1C1520, #141017) padding-box,
    var(--foil-strong) border-box;
}
.tag { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mode) 35%, transparent); }

/* inner surfaces share the material */
.opt-row, .answer, .crown-btn, .board li, .stage, .qr-wrap, .promo, .score-card, .recap, .emoji-btn {
  border: 1px solid transparent;
  background: var(--surf) padding-box, var(--foil) border-box;
  box-shadow: var(--lift);
}
.opt-row:has(input:checked) { background: linear-gradient(150deg, rgba(217, 164, 65, 0.2), transparent 60%) padding-box, var(--surf) padding-box, var(--foil-strong) border-box; }
.board li.top { background: linear-gradient(150deg, rgba(217, 164, 65, 0.2), transparent 60%) padding-box, var(--surf) padding-box, var(--foil-strong) border-box; }
.answer.picked, .answer:active { background: linear-gradient(180deg, #FF7AAB, #FF4D8D 48%, #E73A7A) padding-box, linear-gradient(#FF4D8D, #FF4D8D) border-box; }
.answer.correct { background: var(--yes) padding-box, var(--yes) border-box; }
.answer.wrong { background: var(--no) padding-box, var(--no) border-box; }
.emoji-btn.selected { background: rgba(255, 77, 141, 0.22) padding-box, linear-gradient(var(--neon), var(--neon)) border-box; }
.score-card, .recap {
  background: radial-gradient(120% 75% at 50% 0%, transparent 0 22%, #33203A 68%) padding-box,
    repeating-conic-gradient(from 180deg at 50% -4%, rgba(217, 164, 65, 0.11) 0 0.6deg, transparent 0.6deg 7deg) padding-box,
    var(--surf) padding-box, var(--foil-strong) border-box;
  outline: 1px solid rgba(217, 164, 65, 0.32); outline-offset: -9px;
}
.input { background: #1A121C; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35); border-color: rgba(250, 243, 232, 0.08); }
.sheet { background: linear-gradient(180deg, #3E2540, #2A1A2C); box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.5); }
.taste div { background: linear-gradient(#1C1520, #141017) padding-box, var(--foil) border-box; border: 1px solid transparent; }
.cross { background: rgba(255, 77, 141, 0.1); }

/* explainer card (Secret Mission intro) */
.card.explain { min-height: 0; padding: 26px 24px 30px; gap: 14px; }
.explain-title { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 7.4vw, 32px); line-height: 1.18; text-wrap: balance; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rules li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; font-size: 16px; line-height: 1.45; color: rgba(250, 243, 232, 0.86); }
.rule-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 15px; color: var(--charcoal); background: var(--gold-grad); }

/* back */
.topbar { justify-content: flex-start; }
.topbar .lang-btn { margin-left: auto; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(23, 19, 26, 0.5); color: var(--cream); font-size: 14px; font-weight: 600; flex: none; }
.back-chev { width: 8px; height: 8px; border-left: 1.75px solid var(--gold-hi); border-bottom: 1.75px solid var(--gold-hi); transform: rotate(45deg); margin-left: 3px; }
.back-btn:not([hidden]) + .wordmark-sm { font-size: 16px; margin-left: 12px; }

.sheet .card.explain { box-shadow: none; }
.controls .link-btn { justify-self: center; }

.reread { padding: 16px; border-radius: var(--r-card); border: 1px solid transparent; background: var(--surf) padding-box, var(--foil) border-box; box-shadow: var(--lift); gap: 8px; }
.reread .section-label { font-size: 19px; }
.reread .hint { text-align: left; }
.card[data-mode="sm-out"] { min-height: 0; padding-block: 48px; }

.write-own { display: flex; gap: 8px; }
.write-own .btn { min-height: 54px; flex: none; }
.answer.own { color: var(--gold-hi); text-align: center; background: transparent padding-box, var(--foil) border-box; box-shadow: none; border-style: dashed; border-color: rgba(217, 164, 65, 0.5); }
.answer.own.picked { color: var(--charcoal); }

/* open questions */
.open-tag { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.open-input { font-size: 20px; min-height: 60px; }
.open-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.open-compare > div { display: grid; gap: 4px; padding: 14px; border-radius: 16px; border: 1px solid transparent; background: var(--surf) padding-box, var(--foil) border-box; box-shadow: var(--lift); min-width: 0; }
.open-compare .hers { background: linear-gradient(150deg, rgba(255, 77, 141, 0.22), transparent 70%) padding-box, var(--surf) padding-box, var(--foil-strong) border-box; }
.open-compare small { font-size: 13px; color: var(--muted); }
.open-compare strong { font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* gradient text is clipped to its line box: give descenders (the g in Night) room */
.hero-title, .bach-title, .score-card .num, .price-block .now, .countdown b { line-height: 1.15; padding-bottom: 0.12em; margin-bottom: -0.08em; }


/* ---------- round intro: big mode medallion ---------- */
.card.is-intro {
  background:
    radial-gradient(55% 32% at 50% 26%, color-mix(in srgb, var(--mode) 32%, transparent), transparent 75%),
    radial-gradient(circle at 50% 26%, transparent 0, transparent 22%, var(--plum-2) 70%),
    repeating-conic-gradient(from 0deg at 50% 26%, rgba(217, 164, 65, 0.16) 0deg 1.2deg, transparent 1.2deg 7deg),
    var(--plum-2);
}
.card.is-intro .card-body { gap: 10px; }
.card.is-intro .card-hint { margin-top: 2px; }
.intro-medal {
  align-self: center; width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center; margin-top: 12px; flex: none;
  border: 1.5px solid rgba(217, 164, 65, 0.85);
  background: radial-gradient(circle, var(--plum) 0%, color-mix(in srgb, var(--plum) 85%, transparent) 100%);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--plum) 75%, transparent), 0 0 0 7px rgba(217, 164, 65, 0.35), 0 0 46px color-mix(in srgb, var(--mode) 40%, transparent);
}
.intro-medal span { font-family: var(--f-display); font-size: 56px; line-height: 1; color: var(--mode); font-variant-emoji: text; text-shadow: 0 0 18px color-mix(in srgb, var(--mode) 75%, transparent); }
.intro-rule { display: block; width: 44px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* ---------- game header: one "···" button instead of two links ---------- */
.more-btn {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(217, 164, 65, 0.5); background: transparent; color: var(--gold);
}
.more-btn span, .more-btn span::before, .more-btn span::after { display: block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.more-btn span { position: relative; }
.more-btn span::before, .more-btn span::after { content: ""; position: absolute; top: 0; }
.more-btn span::before { left: -8px; }
.more-btn span::after { left: 8px; }
.sheet .link-btn { justify-self: center; }

/* ---------- setup: sticky button no longer shows cards through it ---------- */
.sticky-cta {
  padding-top: 26px; margin-top: -10px;
  background: linear-gradient(to top, color-mix(in srgb, var(--plum) 55%, var(--charcoal)) calc(100% - 26px), transparent);
}
.sticky-cta .error:empty { display: none; }

/* ---------- mode rail: swipe dots ---------- */
.mode-rail { padding-bottom: 12px; }
.rail-dots { display: flex; justify-content: center; gap: 6px; }
.rail-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(250, 243, 232, 0.22); transition: background .2s, width .2s; }
.rail-dots i.on { width: 16px; border-radius: 3px; background: var(--gold); }

/* ---------- legal links ---------- */
.legal-foot { margin-top: 18px; padding: 22px 0 8px; border-top: 1px solid rgba(217, 164, 65, 0.18); text-align: center; display: grid; gap: 10px; }
.legal-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.legal-foot a { color: var(--muted); font-size: 14px; text-decoration: underline; text-decoration-color: rgba(217, 164, 65, 0.35); text-underline-offset: 4px; padding: 6px 2px; }
.legal-foot p { margin: 0; font-size: 13px; color: var(--muted); }
.fine-print { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; }
.fine-print a { color: var(--gold-hi); text-underline-offset: 3px; }

/* ---------- Spicy Bundle ---------- */
.bundle-bar { width: 100%; margin-top: 14px; display: grid; gap: 4px; justify-items: center; padding: 14px 16px; border-radius: var(--r-card); border: 1px dashed rgba(217, 164, 65, 0.6); background: rgba(217, 164, 65, 0.08); color: var(--cream); text-align: center; }
.bundle-bar strong { font-family: var(--f-display); font-size: 18px; color: var(--gold-hi); }
.bundle-bar span { font-size: 13px; color: var(--muted); }

/* Recover my purchases, payment confirmation */
.text-link { display: block; margin: 14px auto 0; background: none; border: 0; padding: 8px 4px; color: var(--gold-hi); font: inherit; font-size: 14px; text-decoration: underline; text-decoration-color: rgba(217, 164, 65, 0.45); text-underline-offset: 4px; cursor: pointer; }
.field { display: grid; gap: 6px; text-align: left; }
.field span { font-size: 14px; color: var(--muted); }
.field input { width: 100%; font: inherit; font-size: 17px; color: var(--cream); background: rgba(250, 243, 232, 0.06); border: 1px solid rgba(217, 164, 65, 0.35); border-radius: 12px; padding: 13px 14px; }
.field input:focus { outline: 2px solid var(--gold-hi); outline-offset: 1px; }
.form-msg { margin: 0; font-size: 14px; line-height: 1.45; }
.form-msg.err { color: var(--blush); }
.spinner { width: 34px; height: 34px; margin: 18px auto 6px; border-radius: 50%; border: 3px solid rgba(217, 164, 65, 0.25); border-top-color: var(--gold-hi); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
