:root {
  --bg: #fff4f8;
  --ink: #2b1a3a;
  --muted: #6e5a7e;
  --card: #ffffff;
  --line: #ffd1e3;
  --green: #12b886;
  --red: #ff3d8b;
  --gold: #ffd43b;
  --on-accent: #ffffff;
  --shadow: 0 5px 0 #2b1a3a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1f1330; --ink: #fff4f8; --muted: #cbb7dc; --card: #2b1a3a; --line: #4a2f63;
    --green: #38d9a9; --red: #ff6ba8; --gold: #ffe066; --on-accent: #1f1330; --shadow: 0 5px 0 #0f0818;
  }
}
:root[data-theme="dark"] {
  --bg: #1f1330; --ink: #fff4f8; --muted: #cbb7dc; --card: #2b1a3a; --line: #4a2f63;
  --green: #38d9a9; --red: #ff6ba8; --gold: #ffe066; --on-accent: #1f1330; --shadow: 0 5px 0 #0f0818;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.5 'Rubik', Arial, system-ui, sans-serif;
  background-image: radial-gradient(var(--line) 1.5px, transparent 1.5px); background-size: 22px 22px;
  -webkit-text-size-adjust: 100%;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 20px 16px 48px; }
.display { font-family: 'Oswald', Arial, sans-serif; letter-spacing: 0.02em; line-height: 1; font-weight: 400; }
h1.display { font-size: clamp(44px, 12vw, 88px); margin: 8px 0 12px; }
h2.display { font-size: clamp(28px, 7vw, 40px); margin: 32px 0 12px; }
.tag { color: var(--red); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 14px; }
.sub { font-size: 20px; color: var(--muted); margin: 0 0 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand .logo { width: 34px; height: 34px; border-radius: 9px; background: var(--red); color: var(--on-accent); display: grid; place-items: center; font-size: 20px; }
a { color: var(--green); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 20px; border-radius: 999px; border: 3px solid var(--ink);
  background: var(--card); color: var(--ink); font: 700 18px/1.1 'Rubik', Arial, sans-serif;
  text-decoration: none; cursor: pointer; box-shadow: var(--shadow);
}
.btn.primary { background: var(--red); border-color: var(--red); color: var(--on-accent); }
.btn.green { background: var(--green); border-color: var(--green); color: var(--on-accent); }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 140px; }

.card { background: var(--card); border: 3px solid var(--ink); box-shadow: var(--shadow); border-radius: 24px; padding: 18px; margin: 14px 0; }
.steps { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.step b { display: block; font-size: 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

input[type="text"], input[type="tel"] {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line);
  background: var(--bg); color: var(--ink); font: 600 20px 'Rubik', Arial, sans-serif;
}
label { display: block; font-weight: 700; margin: 12px 0 6px; }

.code { font-family: 'Oswald', Arial, sans-serif; font-size: 64px; letter-spacing: 0.12em; line-height: 1; }
.big-num { font-family: 'Oswald', Arial, sans-serif; font-size: clamp(88px, 30vw, 160px); line-height: 0.9; }
.pct { color: var(--red); }
.meter { height: 22px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 12px 0 4px; }
.meter > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--gold), var(--red)); transition: width 0.3s ease; }

.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button { flex: 1 1 0; min-height: 48px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); font: 700 16px 'Rubik', Arial, sans-serif; cursor: pointer; }
.seg button[aria-pressed="true"] { border-color: var(--red); background: var(--red); color: var(--on-accent); }
.seg button:disabled { opacity: 0.4; cursor: default; }

.banner { border-radius: 16px; padding: 14px 16px; margin: 12px 0; background: var(--gold); color: #17231d; font-weight: 800; font-size: 18px; }
.banner.green { background: var(--green); color: var(--on-accent); }
.hidden { display: none !important; }
.status { font-size: 14px; color: var(--muted); }
.status .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); margin-right: 6px; vertical-align: middle; }
.status.live .dot { background: var(--green); }

.barcode { display: flex; height: 70px; gap: 2px; margin: 12px 0 6px; }
.barcode i { background: var(--ink); display: block; }
.coupon { border: 3px dashed var(--red); border-radius: 18px; padding: 18px; text-align: center; }

.board-list { list-style: none; padding: 0; margin: 0; }
.board-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 4px; border-bottom: 2px solid var(--line); font-size: 22px; font-weight: 700; }
.board-list li.new { animation: pop 0.6s ease; }
@keyframes pop { from { background: var(--gold); } to { background: transparent; } }
.frames { counter-reset: f; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.frames li { counter-increment: f; background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px 12px 52px; position: relative; }
.frames li::before { content: counter(f); position: absolute; left: 14px; top: 10px; font: 24px 'Oswald', Arial, sans-serif; color: var(--red); }
@media (prefers-reduced-motion: reduce) { .meter > i { transition: none; } .board-list li.new { animation: none; } }

/* --- fun layer --- */
.btn { transition: transform .08s ease; }
.btn:active { transform: translateY(3px) scale(.98); box-shadow: 0 2px 0 var(--ink); }
.btn.primary { background: var(--red); border-color: var(--ink); }
.btn.green { background: var(--green); border-color: var(--ink); }
.btn.yellow { background: var(--gold); border-color: var(--ink); color: #2b1a3a; }
.sticker { display: inline-block; background: var(--gold); color: #2b1a3a; border: 3px solid var(--ink); border-radius: 999px; padding: 4px 14px; font-weight: 900; transform: rotate(-4deg); box-shadow: 0 3px 0 var(--ink); }
.wobble { display: inline-block; animation: wobble 2.4s ease-in-out infinite; }
@keyframes wobble { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.bounce { animation: bounce .45s ease; }
@keyframes bounce { 0% { transform: scale(1); } 40% { transform: scale(1.18) rotate(-3deg); } 100% { transform: scale(1); } }
.rank { font-family: 'Oswald', Arial, sans-serif; font-size: 22px; color: var(--red); margin: 4px 0; }
.shout { min-height: 28px; font-weight: 900; font-size: 20px; }
.confetti { position: fixed; top: -40px; font-size: 30px; pointer-events: none; z-index: 50; animation: fall 1.8s linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); opacity: .9; } }
.brand .logo { border: 3px solid var(--ink); border-radius: 12px; background: var(--gold); }
.banner { border: 3px solid var(--ink); box-shadow: var(--shadow); }
.coupon { border-color: var(--red); background: var(--card); }
.frames li { border: 3px solid var(--ink); }
.board-list li small { display: block; font-size: 14px; color: var(--muted); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .wobble, .bounce, .confetti { animation: none !important; } .confetti { display: none; } }

.status { display: block; width: 100%; clear: both; }
.status .dot { margin-bottom: 2px; }

/* === Gains and Bargains look (matches the pitch deck) === */
:root, :root[data-theme="light"] {
  --bg: #F4F1EA; --ink: #14171C; --muted: #55524B; --card: #FBFAF6; --line: #E2DDD2;
  --green: #14171C; --red: #C2410C; --gold: #FF5A1F; --orange: #FF5A1F; --on-accent: #F4F1EA; --shadow: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14171C; --ink: #F4F1EA; --muted: #B8B3A8; --card: #232831; --line: #3A3F48;
    --green: #F4F1EA; --red: #FF6A33; --gold: #FF5A1F; --orange: #FF5A1F; --on-accent: #14171C; --shadow: none;
  }
}
body { background-image: none; }
body::after { content: ""; position: fixed; top: 0; right: 0; width: 14px; height: 100vh; background: var(--orange); z-index: 40; pointer-events: none; }
.display { font-family: 'Oswald', Arial, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0; line-height: 1.0; }
h1.display { font-size: clamp(48px, 13vw, 104px); }
.tag { color: var(--red); letter-spacing: 4px; font-weight: 600; }
.sub { color: var(--muted); }
.brand { font-family: 'Oswald', Arial, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 20px; }
.brand .logo { background: var(--orange); border: 3px solid var(--ink); border-radius: 10px; }
.btn { border: 3px solid var(--ink); border-radius: 999px; font-family: 'Rubik', Arial, sans-serif; font-weight: 700; box-shadow: none; }
.btn:active { transform: translateY(2px) scale(.98); box-shadow: none; }
.btn.primary, .btn.yellow { background: var(--orange); border-color: var(--orange); color: #14171C; }
.btn.green { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.card { background: var(--card); border: 3px solid var(--ink); border-radius: 24px; box-shadow: none; }
.sticker { background: var(--orange); color: #14171C; border: 0; box-shadow: none; text-transform: uppercase; letter-spacing: 2px; font-size: 14px; font-weight: 700; padding: 6px 14px; transform: rotate(-2deg); }
.pct { color: var(--red); }
.rank { font-family: 'Oswald', Arial, sans-serif; text-transform: uppercase; font-weight: 700; color: var(--red); }
.big-num, .code { font-family: 'Oswald', Arial, sans-serif; font-weight: 700; }
.meter > i { background: var(--orange); }
.meter { background: var(--line); }
.banner { background: var(--orange); color: #14171C; border: 0; box-shadow: none; border-radius: 20px; }
.banner.green { background: var(--ink); color: var(--bg); }
.seg button { border: 3px solid var(--line); border-radius: 999px; font-family: 'Rubik', Arial, sans-serif; }
.seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.coupon { border: 3px dashed var(--orange); border-radius: 24px; }
.frames li { border: 3px solid var(--ink); border-radius: 20px; }
.frames li::before { font-family: 'Oswald', Arial, sans-serif; color: var(--red); }
input[type="text"], input[type="tel"] { border: 3px solid var(--line); font-family: 'Rubik', Arial, sans-serif; }
.board-list li { border-bottom: 2px solid var(--line); }

#miniBoard li { font-size: 18px; padding: 10px 4px; }
#miniBoard li small { font-size: 13px; }
#miniBoard li.me { background: var(--orange); color: #14171C; border-radius: 14px; padding: 10px 12px; border-bottom: 0; }
#miniBoard li.me small { color: #14171C; }
