:root {
  --night: #1a0d33;
  --night-2: #241246;
  --plum: #3a1d6e;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-2: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.14);
  --gold: #ffcc3d;
  --gold-2: #ffe592;
  --pink: #ff4f9a;
  --pink-2: #ff8cc1;
  --save: #2fe0b0;
  --save-ink: #0b7a5c;
  --save-bg: #d9fbef;
  --cost: #ff6b81;
  --cost-ink: #b4173b;
  --cost-bg: #ffe2e8;
  --cream: #fff8ee;
  --cream-2: #fff0f6;
  --ink: #2a1745;
  --ink-2: #6a5788;
  --text: #ffffff;
  --muted: #cdbfe9;
  --radius: 18px;
  --dock-h: 96px;
  --display: 'Bungee', 'Impact', system-ui, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--night);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.45;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
input { touch-action: manipulation; }
[hidden] { display: none !important; }

/* ---------- Stage ---------- */
.stage-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 45% at 15% 0%, rgba(255, 79, 154, 0.28), transparent 70%),
    radial-gradient(55% 40% at 90% 10%, rgba(124, 77, 255, 0.35), transparent 70%),
    radial-gradient(70% 50% at 50% 110%, rgba(255, 204, 61, 0.18), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}
.stage-bg::after {
  content: ''; position: absolute; inset: -50%;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, 0.028) 0deg 6deg, transparent 6deg 12deg);
  animation: spin 120s linear infinite;
  will-change: transform;
}
@keyframes spin { to { transform: rotate(360deg); } }

.screen {
  max-width: 640px; margin: 0 auto;
  padding: 16px 16px calc(var(--dock-h) + 32px + env(safe-area-inset-bottom));
  outline: none;
}
.screen.no-dock { padding-bottom: 48px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top));
  background: rgba(26, 13, 51, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  background: none; border: 0; padding: 0;
  font-family: var(--display); font-size: 13px; letter-spacing: 0.02em; color: var(--gold);
  white-space: nowrap;
}
.brand span { color: var(--pink); }
.progress { flex: 1; min-width: 0; }
.progress-label { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 4px; text-align: right; }
.progress-track { height: 6px; background: var(--glass-2); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--gold)); border-radius: 99px; transition: width 0.5s cubic-bezier(.34,1.56,.64,1); }
.icon-btn {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  background: var(--glass-2); border: 1px solid var(--line); font-size: 17px;
}

/* ---------- Dock: cost-o-meter + total + next ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(22, 10, 44, 0.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
}
.dock > * { flex: none; }
.dock .scoreboard { flex: 1; min-width: 0; position: relative; }
@media (min-width: 680px) {
  .dock { left: 50%; right: auto; width: 640px; transform: translateX(-50%); border-radius: 22px 22px 0 0; border: 1px solid var(--line); border-bottom: 0; }
}
/* Dial is 76px wide; the SVG viewBox is 120x72, so the needle pivot (60,62) lands at (38px, 39.3px). */
.gauge { width: 76px; text-align: center; }
.gauge-dial { position: relative; width: 76px; height: 45.6px; }
.gauge-dial svg { width: 100%; height: 100%; display: block; overflow: visible; }
.gauge-label { font-family: var(--display); font-size: 7px; color: var(--muted); letter-spacing: 0.05em; margin-top: 2px; white-space: nowrap; }
.g-zone { fill: none; stroke-width: 10; stroke-linecap: butt; }
.g-green { stroke: var(--save); }
.g-amber { stroke: var(--gold); }
.g-red { stroke: var(--cost); }
.g-tick { stroke: #fff; stroke-width: 2.5; stroke-linecap: round; }
.needle {
  position: absolute; left: 38px; top: 12.3px; width: 0; height: 27px;
  transform-origin: 0 100%; transform: rotate(-90deg);
  transition: transform 0.9s cubic-bezier(.34,1.8,.5,1);
}
.needle-arm { position: absolute; left: -1.75px; top: 0; width: 3.5px; height: 27px; border-radius: 2px; background: #fff; transform-origin: 50% 100%; }
.needle-arm.wobble { animation: wobble 0.7s ease-in-out; }
.needle-hub { position: absolute; left: 33.5px; top: 34.8px; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); border: 2px solid #fff; }
@keyframes wobble {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(7deg); }
  40% { transform: rotate(-5deg); }
  60% { transform: rotate(3deg); }
  80% { transform: rotate(-1.5deg); }
}
.score-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; white-space: nowrap; }
.score { font-family: var(--display); font-size: clamp(20px, 6.6vw, 30px); white-space: nowrap; line-height: 1.05; color: var(--gold); text-shadow: 0 2px 0 rgba(255, 79, 154, 0.55); transition: color 0.3s; }
.score.up { color: var(--cost); }
.score.down { color: var(--save); }
.score-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score-count { font-size: 11px; color: var(--pink-2); font-weight: 700; white-space: nowrap; margin-top: 1px; }
.delta-fly {
  position: absolute; left: 0; top: -6px; pointer-events: none;
  font-family: var(--display); font-size: 15px; opacity: 0;
}
.delta-fly.go { animation: fly 1.1s ease-out forwards; }
.delta-fly.up { color: var(--cost); }
.delta-fly.down { color: var(--save); }
@keyframes fly { 0% { opacity: 0; transform: translateY(8px) scale(.8); } 20% { opacity: 1; transform: translateY(-6px) scale(1.1); } 100% { opacity: 0; transform: translateY(-34px) scale(1); } }

.next-btn {
  border: 0; border-radius: 99px; padding: 14px 18px; min-height: 52px; min-width: 96px;
  font-weight: 800; font-size: 16px; color: #fff;
  background: linear-gradient(135deg, var(--pink), #c23bff);
  box-shadow: 0 6px 0 #8a1d6a, 0 10px 24px rgba(255, 79, 154, 0.35);
  transition: transform 0.12s, box-shadow 0.12s;
  white-space: nowrap;
}
.next-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #8a1d6a, 0 6px 14px rgba(255, 79, 154, 0.3); }
.next-btn.skip { background: var(--glass-2); box-shadow: 0 6px 0 rgba(0,0,0,.35); border: 1px solid var(--line); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 99px; padding: 14px 22px; min-height: 50px;
  font-weight: 800; font-size: 16px; text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:active { transform: translateY(3px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--ink); box-shadow: 0 6px 0 #b8860b, 0 12px 30px rgba(255, 204, 61, 0.35); }
.btn-gold:active { box-shadow: 0 3px 0 #b8860b; }
.btn-pink { background: linear-gradient(135deg, var(--pink), #c23bff); color: #fff; box-shadow: 0 6px 0 #8a1d6a; }
.btn-ghost { background: var(--glass-2); color: #fff; border: 1px solid var(--line); }
.btn-small { padding: 9px 14px; min-height: 40px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 8px; font-size: 14px; }

/* ---------- Intro ---------- */
.intro { text-align: center; padding-top: 4vh; }
.marquee {
  position: relative; display: inline-block; margin: 18px auto 10px;
  padding: 28px 22px 24px; border-radius: 26px;
  background: linear-gradient(180deg, #3b1673, #23104a);
  box-shadow: 0 0 0 4px #ffcc3d, 0 0 0 8px #b8860b, 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(255, 79, 154, 0.35);
}
.bulbs { position: absolute; inset: 0; pointer-events: none; }
.bulb {
  position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: #fff6d6; box-shadow: 0 0 8px 2px rgba(255, 220, 120, 0.9);
  animation: chase 1.2s steps(1) infinite;
}
.bulb:nth-child(odd) { animation-delay: -0.6s; }
@keyframes chase { 0% { opacity: 1; } 50% { opacity: 0.25; box-shadow: none; } }
.logo { font-family: var(--display); line-height: 0.92; margin: 0; font-weight: 400; }
.logo .l1 { display: block; font-size: clamp(22px, 7vw, 34px); color: #fff; letter-spacing: 0.04em; }
/* The shadow sits on a wrapper: Safari can blank out text that has both a gradient clip and a filter. */
.logo .l2-wrap { display: block; filter: drop-shadow(0 4px 0 var(--pink)) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45)); }
.logo .l2 {
  display: inline-block; font-size: clamp(54px, 19vw, 96px);
  background: linear-gradient(180deg, #fff3b8 0%, var(--gold) 55%, #ff9f1c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.starring { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 5.5vw, 26px); margin: 18px 0 2px; }
.starring b { color: var(--pink-2); font-weight: 700; }
.tagline { color: var(--muted); max-width: 420px; margin: 0 auto 22px; }
.who { display: inline-flex; background: var(--glass-2); border: 1px solid var(--line); border-radius: 99px; padding: 4px; margin: 6px 0 22px; }
.who button { border: 0; background: none; padding: 9px 18px; border-radius: 99px; font-weight: 700; color: var(--muted); }
.who button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.who-label { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.mail-note {
  margin: 0 auto 20px; max-width: 420px; padding: 12px 14px; border-radius: 14px;
  background: rgba(255, 79, 154, 0.15); border: 1px solid rgba(255, 79, 154, 0.4); font-size: 14px;
}
.fine { font-size: 12px; color: var(--muted); margin-top: 26px; opacity: 0.85; }

/* ---------- Budget ---------- */
.panel {
  background: var(--glass); border: 1px solid var(--line); border-radius: 22px; padding: 22px 18px;
  backdrop-filter: blur(6px);
}
.big-value { font-family: var(--display); font-size: clamp(40px, 13vw, 64px); color: var(--gold); text-align: center; line-height: 1; margin: 10px 0 4px; text-shadow: 0 3px 0 rgba(255, 79, 154, 0.6); }
.center { text-align: center; }

/* ---------- Round header + host ---------- */
.round-head { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; }
.round-badge {
  flex: none; font-family: var(--display); font-size: 12px; color: var(--ink);
  background: var(--gold); border-radius: 10px; padding: 6px 9px; line-height: 1.1; text-align: center;
  box-shadow: 0 3px 0 #b8860b;
}
.round-badge.bonus { background: var(--pink); color: #fff; box-shadow: 0 3px 0 #8a1d6a; }
.round-title { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(28px, 8vw, 38px); margin: 0; line-height: 1.05; }
.round-title .emo { font-style: normal; }

.host { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; }
.host-avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px;
  background: radial-gradient(circle at 35% 30%, var(--gold-2), var(--gold) 60%, #c98f00);
  box-shadow: 0 3px 0 #9c6c00;
}
.bubble {
  position: relative; flex: 1; background: #fff; color: var(--ink); border-radius: 16px; padding: 11px 14px;
  font-size: 15px; font-weight: 500; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}
.bubble::before { content: ''; position: absolute; left: -7px; top: 16px; border: 8px solid transparent; border-right-color: #fff; border-left: 0; }
.bubble .who-says { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--pink); font-weight: 800; margin-bottom: 2px; }
.bubble.pop { animation: pop 0.35s cubic-bezier(.34,1.56,.64,1); }
@keyframes pop { 0% { transform: scale(0.94); } 100% { transform: scale(1); } }

/* ---------- Questions ---------- */
.question { margin: 0 0 26px; }
.q-label { font-family: var(--serif); font-weight: 600; font-size: 21px; margin: 0 0 4px; }
.q-note { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.audience { font-size: 13px; color: #e9defc; margin: -4px 0 12px; padding: 8px 11px; border-radius: 12px; background: rgba(124, 77, 255, 0.18); border: 1px solid rgba(180, 140, 255, 0.35); }
.audience b { color: var(--gold-2); }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.options.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 560px) { .options.wide { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.opt {
  position: relative; text-align: left; display: flex; flex-direction: column; gap: 2px;
  background: var(--cream); color: var(--ink); border: 3px solid transparent; border-radius: var(--radius);
  padding: 12px 12px 10px; min-height: 100%;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.25), 0 10px 22px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, background 0.15s;
}
@media (hover: hover) { .opt:hover { transform: translateY(-2px); } }
.opt:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }
.opt:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.opt[aria-pressed="true"] {
  border-color: var(--pink); background: var(--cream-2);
  box-shadow: 0 5px 0 #c42c78, 0 0 0 4px rgba(255, 79, 154, 0.25), 0 12px 28px rgba(255, 79, 154, 0.3);
}
.opt[aria-pressed="true"]::after {
  content: '✓'; position: absolute; top: -9px; right: -9px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--pink); color: #fff; font-weight: 800; font-size: 15px;
  border: 3px solid #fff; animation: pop 0.3s cubic-bezier(.34,1.56,.64,1);
}
.opt .emo { font-size: 28px; line-height: 1.1; }
.opt .name { font-weight: 800; font-size: 15.5px; line-height: 1.2; margin-top: 2px; }
.opt .blurb { font-size: 13px; color: var(--ink-2); line-height: 1.3; flex: 1; }
.opt .price-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.opt .price { font-family: var(--display); font-size: 15px; color: var(--ink); }
.pill { font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.pill.save { background: var(--save-bg); color: var(--save-ink); }
.pill.cost { background: var(--cost-bg); color: var(--cost-ink); }
.pill.same { background: #ece6f6; color: var(--ink-2); }

/* multi-select chips look like the cards but tick on/off */
.opt.multi[aria-pressed="true"]::after { content: '✓'; }

/* year/day compact options */
.opt.compact { align-items: center; text-align: center; padding: 12px 8px; }
.opt.compact .price-row { justify-content: center; }

/* months */
.months { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 340px) { .months { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.month {
  border: 3px solid transparent; border-radius: 14px; padding: 10px 4px 8px; text-align: center;
  color: var(--ink); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
  transition: transform 0.15s, border-color 0.15s;
}
.month:active { transform: translateY(3px); }
.month .m { font-family: var(--display); font-size: 16px; display: block; }
.month .p { font-size: 12.5px; font-weight: 800; display: block; margin-top: 2px; }
.month.h0 { background: #c9f7ea; } .month.h0 .p { color: var(--save-ink); }
.month.h1 { background: #e6fbf4; } .month.h1 .p { color: var(--save-ink); }
.month.h2 { background: #fbf6ec; } .month.h2 .p { color: var(--ink-2); }
.month.h3 { background: #ffeeda; } .month.h3 .p { color: #a34e00; }
.month.h4 { background: #ffdbe3; } .month.h4 .p { color: var(--cost-ink); }
.month[aria-pressed="true"] { border-color: var(--pink); transform: scale(1.06); box-shadow: 0 4px 0 #c42c78, 0 0 0 4px rgba(255, 79, 154, 0.3); }
.month-effect { margin-top: 10px; font-size: 14px; color: var(--muted); min-height: 1.4em; }
.month-effect b { color: #fff; }
.kalkan-warn { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 204, 61, 0.15); border: 1px solid rgba(255, 204, 61, 0.45); font-size: 14px; }

/* sliders */
.slider-box { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.slider-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.slider-val { font-family: var(--display); font-size: 40px; color: var(--gold); line-height: 1; }
.slider-val small { font-family: var(--sans); font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.stepper { display: flex; gap: 8px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass-2); font-size: 22px; font-weight: 700; line-height: 1; }
input[type=range] { width: 100%; margin: 16px 0 4px; accent-color: var(--pink); height: 28px; }
.slider-quip { font-size: 14px; color: var(--muted); margin-top: 6px; }
.per-head { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 204, 61, 0.12); border: 1px solid rgba(255, 204, 61, 0.35); font-size: 14.5px; }
.per-head b { font-family: var(--display); color: var(--gold); font-weight: 400; }

/* tips */
details.tip { margin: 6px 0 0; background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; }
details.tip summary { cursor: pointer; padding: 12px 0; font-weight: 700; list-style: none; }
details.tip summary::-webkit-details-marker { display: none; }
details.tip summary::after { content: '+'; float: right; color: var(--gold); font-weight: 800; }
details.tip[open] summary::after { content: '−'; }
details.tip p { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }
.back-link { background: none; border: 0; color: var(--muted); padding: 4px 0; font-size: 14px; font-weight: 600; }

/* ---------- Round title card ---------- */
.round-card {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; text-align: center; padding: 24px;
  background: radial-gradient(circle at 50% 45%, #4a1d8f 0%, #1a0d33 70%);
  cursor: pointer;
}
.round-card::before {
  content: ''; position: absolute; inset: -50%;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 204, 61, 0.09) 0deg 8deg, transparent 8deg 16deg);
  animation: spin 30s linear infinite;
}
.round-card .rc-inner { position: relative; animation: zoomIn 0.55s cubic-bezier(.34,1.56,.64,1); }
.round-card .rc-num { font-family: var(--display); font-size: clamp(20px, 6vw, 28px); color: var(--pink-2); letter-spacing: 0.08em; }
.round-card .rc-emo { font-size: 72px; line-height: 1.1; margin: 8px 0; }
.round-card .rc-title { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(38px, 12vw, 64px); line-height: 1; color: #fff; text-shadow: 0 4px 0 rgba(255, 79, 154, 0.6); }
.round-card.out { animation: fadeOut 0.3s forwards; }
@keyframes zoomIn { 0% { transform: scale(0.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }

/* ---------- Showcase ---------- */
.showcase-hero { text-align: center; padding: 10px 0 6px; }
.showcase-kicker { font-family: var(--display); color: var(--pink-2); letter-spacing: 0.06em; font-size: 15px; }
.showcase-title { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 7vw, 32px); margin: 6px 0 4px; }
.total-big { font-family: var(--display); font-size: clamp(54px, 17vw, 92px); line-height: 1; color: var(--gold); margin: 14px 0 6px; text-shadow: 0 5px 0 var(--pink), 0 16px 40px rgba(0, 0, 0, 0.45); }
.total-big.spinning { color: #fff; filter: blur(0.6px); }
.verdict { font-size: 18px; font-weight: 700; margin: 8px auto 4px; max-width: 460px; }
.verdict.good { color: var(--save); }
.verdict.over { color: var(--cost); }
.subline { color: var(--muted); font-size: 14.5px; }
.reveal-wrap { text-align: center; padding: 8vh 0; }
.reveal-wrap .drum { font-size: 70px; display: inline-block; }
.reveal-wrap .drum.rolling { animation: shake 0.12s infinite; }
@keyframes shake { 0% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } 100% { transform: rotate(-6deg); } }

.card { background: var(--glass); border: 1px solid var(--line); border-radius: 22px; padding: 18px 16px; margin: 18px 0; }
.card h3 { font-family: var(--serif); font-weight: 700; font-size: 22px; margin: 0 0 4px; }
.card .card-sub { color: var(--muted); font-size: 14px; margin: 0 0 14px; }

.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: end; }
.bar-label { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-val { font-family: var(--display); font-size: 14px; color: #fff; text-align: right; }
.bar-track { grid-column: 1 / -1; height: 12px; border-radius: 0 6px 6px 0; }
.bar-fill { height: 100%; background: var(--gold); border-radius: 0 4px 4px 0; width: 0; transition: width 0.9s cubic-bezier(.22,1,.36,1); min-width: 3px; }
.bar-pct { font-size: 12px; color: var(--muted); font-family: var(--sans); font-weight: 600; margin-left: 4px; }

.swap { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.swap:first-of-type { border-top: 0; }
.swap .s-txt { flex: 1; font-size: 15px; }
.swap .s-txt small { display: block; color: var(--muted); font-size: 13px; }
.swap .s-save { font-family: var(--display); color: var(--save); font-size: 16px; white-space: nowrap; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist input { width: 22px; height: 22px; accent-color: var(--pink); margin-top: 2px; flex: none; }
.checklist .c-main { flex: 1; min-width: 0; }
.checklist .c-item { font-weight: 700; }
.checklist .c-note { font-size: 13px; color: var(--muted); }
.checklist .c-qty { font-family: var(--display); color: var(--gold); white-space: nowrap; font-size: 15px; }
.checklist li.done .c-item { text-decoration: line-through; opacity: 0.6; }
.when { font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 99px; white-space: nowrap; background: var(--glass-2); }
.when.now { background: var(--cost); color: #fff; }
.when.soon { background: var(--gold); color: var(--ink); }

.picks { display: grid; gap: 8px; }
.pick { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.pick .p-emo { font-size: 22px; flex: none; }
.pick .p-main { flex: 1; min-width: 0; }
.pick .p-q { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.pick .p-a { font-weight: 700; }
.pick .p-a.undecided { color: var(--muted); font-style: italic; font-weight: 500; }
.pick .p-edit { font-size: 13px; color: var(--pink-2); font-weight: 700; flex: none; }

.vs-score { text-align: center; font-family: var(--display); font-size: 34px; color: var(--pink-2); margin: 4px 0; }
.vs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.vs-table th { text-align: left; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 4px; }
.vs-table td { padding: 9px 4px; border-top: 1px solid var(--line); vertical-align: top; }
.vs-table td.q { color: var(--muted); width: 32%; }
.vs-table tr.agree td:not(.q) { color: var(--save); font-weight: 700; }

.share-box { text-align: center; }
.sources { font-size: 12px; color: var(--muted); text-align: center; margin: 26px 0 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--dock-h) + 24px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #fff; color: var(--ink); font-weight: 700; padding: 12px 18px; border-radius: 99px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); transition: all 0.3s; max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Write my own / not sure / hearts ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  border: 1.5px dashed rgba(255, 255, 255, 0.35); background: transparent; color: #fff;
  border-radius: 99px; padding: 8px 14px; font-size: 14px; font-weight: 700; min-height: 40px;
}
.chip[aria-pressed="true"] { border-style: solid; border-color: var(--pink); background: rgba(255, 79, 154, 0.22); }
.own-wrap { margin-top: 10px; }
/* 16px or more stops iPhone Safari zooming in when the box is tapped. */
.own-input, .text-q, .note-box textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--cream);
  border: 2px solid var(--pink); border-radius: 14px; padding: 12px 14px; outline: none;
}
.own-input:focus, .text-q:focus, .note-box textarea:focus { box-shadow: 0 0 0 4px rgba(255, 79, 154, 0.3); }
.text-q { border-color: var(--gold); min-height: 96px; resize: vertical; }
.hearts { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-top: 12px; padding: 8px 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); }
.hearts-q { font-size: 13px; color: var(--muted); font-weight: 600; }
.hearts-row { display: inline-flex; align-items: center; gap: 2px; }
.heart { background: none; border: 0; line-height: 0; padding: 6px 4px; color: rgba(255, 255, 255, 0.28); transition: transform 0.15s, color 0.15s; }
.heart svg { display: block; }
.heart[aria-pressed="true"] { color: var(--pink); transform: scale(1.1); }
.hearts-word { font-size: 13px; font-weight: 800; color: var(--pink-2); margin-left: 6px; }
.note-box { margin: 0 0 12px; background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; }
.note-box summary { cursor: pointer; padding: 12px 0; font-weight: 700; list-style: none; }
.note-box summary::-webkit-details-marker { display: none; }
.note-box textarea { border-color: var(--line); margin-bottom: 14px; min-height: 80px; resize: vertical; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(42, 23, 69, 0.15); display: block; margin-bottom: 2px; }

/* ---------- Showcase extras ---------- */
.reveal-teaser { font-size: 46px; margin: 16px 0 22px; min-height: 60px; }
.headline {
  font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(24px, 7vw, 34px); line-height: 1.2;
  margin: 14px auto 12px; max-width: 560px; color: #fff; text-shadow: 0 3px 0 rgba(255, 79, 154, 0.45);
}
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tag { font-size: 14px; font-weight: 800; padding: 7px 12px; border-radius: 99px; background: var(--glass-2); border: 1px solid var(--line); }
.tag-cost { background: rgba(255, 107, 129, 0.2); border-color: rgba(255, 107, 129, 0.5); }
.tag-save { background: rgba(47, 224, 176, 0.18); border-color: rgba(47, 224, 176, 0.5); }
.words-row { padding: 10px 0; border-top: 1px solid var(--line); }
.words-row:first-of-type { border-top: 0; }
.w-q { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
.w-a { font-family: var(--serif); font-size: 18px; font-style: italic; margin-top: 2px; white-space: pre-wrap; }
.w-a.undecided, .b-val.undecided { color: var(--muted); font-style: italic; font-weight: 500; font-family: var(--sans); font-size: 15px; }
.brief-actions { justify-content: flex-start; margin: 4px 0 8px; }
.brief-sec { margin-top: 16px; }
.brief-sec h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); }
.just-us { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 600; font-size: 12px; margin-left: 4px; }
.brief-row {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; width: 100%; text-align: left;
  background: none; border: 0; border-top: 1px solid var(--line); padding: 9px 0; color: #fff;
}
.brief-sec .brief-row:first-of-type { border-top: 0; }
.b-label { flex: 0 0 38%; min-width: 120px; color: var(--muted); font-size: 14px; }
.b-val { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; }
.b-hearts { color: var(--pink); display: inline-flex; gap: 1px; vertical-align: -2px; }
.b-hearts svg { display: block; }
.brief-row .p-edit { font-size: 12px; color: var(--pink-2); font-weight: 700; }
.brief-note { font-size: 14px; color: #e9defc; background: rgba(124, 77, 255, 0.15); border-radius: 10px; padding: 8px 10px; margin-top: 6px; white-space: pre-wrap; }
.qlist { margin: 0; padding-left: 20px; }
.qlist li { margin: 6px 0; }
.matter + .matter { margin-top: 12px; }
.m-head { color: var(--pink-2); font-weight: 800; margin-bottom: 2px; }
.open-list { display: flex; flex-wrap: wrap; gap: 8px; }
.open-chip { background: var(--glass-2); border: 1px solid var(--line); color: #fff; border-radius: 99px; padding: 7px 12px; font-size: 14px; font-weight: 700; }
.print-only { display: none; }

/* ---------- Copy fallback ---------- */
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(10, 4, 24, 0.75); display: grid; place-items: center; padding: 16px; }
.modal-box { width: 100%; max-width: 520px; background: var(--night-2); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.modal-box h3 { font-family: var(--serif); margin: 0 0 4px; }
.modal-box textarea { width: 100%; height: 50vh; font-size: 16px; border-radius: 12px; padding: 10px; margin-bottom: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

@media print {
  body { background: #fff; color: #000; }
  .stage-bg, .topbar, .dock, .toast, .no-print, .round-card { display: none !important; }
  .screen { padding: 0; max-width: none; }
  .card { border: 1px solid #ccc; background: #fff; break-inside: avoid; }
  .total-big { color: #000; text-shadow: none; }
  .bar-fill { background: #999; }
  .card .card-sub, .checklist .c-note, .subline, .bar-pct, .pick .p-q { color: #444; }
  .checklist .c-qty, .bar-val { color: #000; }
  .pick { background: #fff; border-color: #ccc; }
  .headline { color: #000; text-shadow: none; }
  .brief-row, .w-a, .b-val { color: #000; }
  .b-label, .w-q, .just-us { color: #555; }
  .brief-sec h4 { color: #7a5a00; }
  .brief-note { background: #f3f0fa; color: #222; }
  /* "Save as PDF" prints just the venue-ready parts. */
  body.print-brief .screen > :not(.print-keep):not(.print-only) { display: none !important; }
  body.print-brief .print-only { display: block; }
  body.print-brief .just-us-sec { display: none !important; }
  .print-head h1 { font-family: var(--serif); margin: 0; }
  .print-head p { margin: 0 0 12px; color: #555; }
}
