:root {
  --orange: #ff7a1a; --orange-dark: #e35f00; --orange-soft: #fff1e6; --white: #fff;
  --ink: #3a2412; --muted: #8a6a52; --win: #1fb45a; --miss: #f0473a; --line: #ffd9bd;
  --bg: #fff; --card: #fff; --accent: #e35f00;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --orange-dark: #b84c00; --orange-soft: #3a2818; --ink: #fff4ea; --muted: #c8a88e; --line: #5c3f28;
  --win: #3ad07a; --miss: #ff6a5e; --bg: #1c140e; --card: #2a1e15; --accent: #ff9a4d;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --orange-dark: #b84c00; --orange-soft: #3a2818; --ink: #fff4ea; --muted: #c8a88e; --line: #5c3f28;
    --win: #3ad07a; --miss: #ff6a5e; --bg: #1c140e; --card: #2a1e15; --accent: #ff9a4d;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
       font: 18px/1.5 "Fredoka", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif; }
a { color: var(--accent); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }
b, strong { font-weight: 700; }
main { max-width: 640px; margin: 0 auto; padding: 8px 16px 32px; }

.top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px;
       padding: 14px 18px; background: var(--orange); color: var(--white); }
.brand { color: var(--white); font-size: 22px; font-weight: 700; }
.brand:hover { text-decoration: none; }
.logo { width: 38px; height: 38px; margin-right: 4px; vertical-align: middle; }
.top nav { display: flex; align-items: center; gap: 16px; font-size: 16px; }
.top nav a { color: var(--white); }
.theme { width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1;
         background: rgba(255, 255, 255, .25); color: var(--white); }
.theme:hover { background: rgba(255, 255, 255, .4); }

.intro { text-align: center; font-size: 20px; margin: 18px 4px 6px; }

/* Toy-like chunky cards: thick outline plus a solid "pressed" shadow. */
.card, .hero { background: var(--card); border: 3px solid var(--orange); border-radius: 28px;
               box-shadow: 0 6px 0 var(--orange); padding: 22px; margin: 22px 0; }
.card h2 { margin: 0 0 10px; font-size: 24px; }
.hero { text-align: center; background: var(--orange-soft); }
.kicker { margin: 0; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.ticker { margin: 2px 0 0; font-size: 84px; line-height: 1.05; font-weight: 700; color: var(--ink); }
.ticker.soon { font-size: 44px; }
.company { margin: 0 0 16px; font-size: 20px; color: var(--muted); }
.meter { height: 26px; border-radius: 999px; background: var(--card); border: 3px solid var(--orange); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--orange); border-radius: 999px; }
.chance { font-size: 22px; margin: 10px 0 6px; }
.chance b { font-size: 34px; color: var(--accent); }
.note { margin: 10px 0 4px; }
.tiny { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.btn-link { display: inline-block; margin-top: 12px; padding: 10px 20px; border-radius: 999px; background: var(--orange);
            color: var(--white); box-shadow: 0 4px 0 var(--orange-dark); }
.btn-link:hover { text-decoration: none; transform: translateY(1px); box-shadow: 0 3px 0 var(--orange-dark); }

.result { font-size: 24px; margin: 14px 0 4px; }
.result.win b { color: var(--win); }
.result.miss b { color: var(--miss); }
.sticker { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: 15px; font-weight: 700;
           color: var(--white); background: var(--muted); transform: rotate(-3deg); }
.win .sticker, .sticker.win { background: var(--win); }
.miss .sticker, .sticker.miss { background: var(--miss); }
.sticker.wait { background: var(--line); color: var(--ink); }

.live p { font-size: 20px; margin: 10px 0 4px; }
.live b { font-size: 34px; }
.up { color: var(--win); }
.down { color: var(--miss); }
.spark { width: 100%; max-width: 320px; height: 60px; }
.spark path { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.spark.up path { stroke: var(--win); }
.spark.down path { stroke: var(--miss); }
.spark .zero { stroke: var(--line); stroke-dasharray: 5 5; }

.status { margin: 14px 0 0; text-align: center; }
.steps { list-style: none; display: flex; justify-content: center; gap: 8px; margin: 0; padding: 0; }
.steps li { width: 14px; height: 14px; border-radius: 50%; background: var(--line); }
.steps li span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.steps li.done { background: var(--orange); }
.steps li.now { background: var(--accent); transform: scale(1.4); }
.next { margin: 8px 0 0; font-size: 16px; color: var(--muted); }

.game { text-align: center; }
.q { font-size: 20px; margin: 4px 0 14px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choices button { font: inherit; font-size: 26px; font-weight: 700; padding: 18px 10px; border-radius: 22px; cursor: pointer;
                  border: 3px solid var(--orange); color: var(--accent); background: var(--card);
                  box-shadow: 0 6px 0 var(--orange); transition: transform .08s; }
.choices button:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--orange); }
.choices button.on { background: var(--orange); color: var(--white); }
.choices button:disabled { cursor: default; opacity: .5; }
.choices button.on:disabled { opacity: 1; }
.scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 8px; }
.scores div { background: var(--orange-soft); border-radius: 18px; padding: 8px; }
.scores span { display: block; font-size: 13px; color: var(--muted); }
.scores strong { font-size: 20px; }
.badges { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0; padding: 0; }
.badges li { font-size: 14px; padding: 4px 12px; border-radius: 999px; border: 2px dashed var(--line); color: var(--muted); }
.badges li.got { border: 2px solid var(--orange); background: var(--orange); color: var(--white); }
.share { font: inherit; font-weight: 700; padding: 10px 20px; border-radius: 999px; cursor: pointer;
         border: 3px solid var(--orange); background: var(--card); color: var(--accent); }

.scoreboard { text-align: center; }
.big { font-size: 28px; font-weight: 700; margin: 4px 0 10px; }
.results { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.res { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--white); font-size: 20px; }
.res.win { background: var(--win); }
.res.miss { background: var(--miss); }
.res:hover { text-decoration: none; transform: scale(1.1); }

.last { text-align: center; }
.last-sym { font-size: 40px; font-weight: 700; margin: 0; }
.next.card p, .card.next p { margin: 0; text-align: center; }

.reasons { list-style: none; margin: 12px 0 0; padding: 0; }
.reasons li { padding: 10px 0; border-top: 2px dashed var(--line); }
.tag { display: inline-block; margin-left: 4px; padding: 0 10px; border-radius: 999px; background: var(--orange-soft);
       color: var(--accent); font-size: 14px; }
.watch { background: var(--orange-soft); border-radius: 16px; padding: 10px 14px; }

.picklist { list-style: none; margin: 0; padding: 0; }
.picklist a { display: grid; grid-template-columns: 90px 70px 1fr auto; align-items: center; gap: 8px; padding: 12px 4px;
              border-top: 2px dashed var(--line); color: var(--ink); font-weight: 500; }
.picklist li:first-child a { border-top: 0; }
.picklist .d { color: var(--muted); font-size: 15px; }
.picklist .n { color: var(--muted); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.signup { text-align: center; }
.signup-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.signup-form input { flex: 1 1 220px; font: inherit; padding: 14px 18px; border-radius: 999px; border: 3px solid var(--line);
                     color: var(--ink); background: var(--card); }
.signup-form input:focus { outline: none; border-color: var(--orange); }
.signup-form button { font: inherit; font-weight: 700; padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
                      background: var(--orange); color: var(--white); box-shadow: 0 4px 0 var(--orange-dark); }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.prose h1 { margin-top: 0; font-size: 36px; }
.prose h2 { margin-top: 26px; }
.prose h3 { margin: 16px 0 4px; font-size: 19px; }
.howsteps { padding-left: 24px; }
.howsteps li { margin: 10px 0; }

.ad { margin: 22px 0; min-height: 120px; text-align: center; }
.ad-label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ad-preview { display: grid; place-items: center; border: 3px dashed var(--line); border-radius: 28px; color: var(--muted); }

.update { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 10; }
.update button { font: inherit; font-weight: 700; padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer;
                 background: var(--orange); color: var(--white); box-shadow: 0 5px 0 var(--orange-dark); }
.notice { background: var(--orange-soft); border: 3px solid var(--orange); border-radius: 20px; padding: 10px 16px;
          margin: 14px 0 0; text-align: center; }
.crumbs { font-size: 15px; color: var(--muted); margin-top: 14px; }
.pager { display: flex; justify-content: space-between; margin: 14px 6px; font-size: 20px; }
footer { max-width: 640px; margin: 0 auto; padding: 8px 18px 40px; font-size: 15px; color: var(--muted); text-align: center; }

@media (max-width: 480px) {
  body { font-size: 17px; }
  .ticker { font-size: 64px; }
  .top nav { gap: 12px; font-size: 15px; }
  .picklist a { grid-template-columns: 74px 60px 1fr; }
  .picklist .n { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
