:root {
    --bg: #ffffff; --surface: #f8f7f5; --border: #e6e2dc; --border2: #d6d0c8;
    --text: #17140f; --muted: #625a50;
    --accent: #c2410c; --accent-d: #9a3412; --accent-bg: #fff1e8; --accent-line: #f6d2bd;
    --win: #15803d; --win-bg: #eefaf2; --lose: #b42318; --lose-bg: #fdf0ef;
    --gold: #8a6100; --gold-bg: #fbf4e2; --gold-line: #ecdcae;
    --radius: 14px; --shadow: 0 4px 16px rgba(23,20,15,.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-d); }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* header */
.header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); }
.logo { font-family: 'Sora', sans-serif; font-size: 21px; font-weight: 800; letter-spacing: -.4px; color: var(--text); text-decoration: none; white-space: nowrap; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 6px; }
.nav a { font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; padding: 7px 12px; border: 1px solid var(--border2); border-radius: 8px; white-space: nowrap; }
.nav a:hover { border-color: var(--accent); color: var(--accent-d); }
.nav a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 600px) {
    .header { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px; }
    .logo { text-align: center; }
    .nav a { flex: 1; text-align: center; padding: 9px 4px; font-size: 12.5px; }
}

.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px 90px; }

/* hero */
.hero { text-align: center; padding: 38px 4px 10px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; background: var(--accent-bg); color: var(--accent-d); border: 1px solid var(--accent-line); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 6px 14px; border-radius: 20px; margin-bottom: 16px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
h1 { font-family: 'Sora', sans-serif; font-size: clamp(28px, 6.6vw, 42px); font-weight: 800; letter-spacing: -1px; line-height: 1.08; margin-bottom: 10px; }
.sub { color: var(--muted); font-size: 15.5px; max-width: 500px; margin: 0 auto; }
.jp { font-family: 'Sora', sans-serif; font-size: clamp(60px, 15vw, 100px); font-weight: 800; letter-spacing: -3px; line-height: 1; margin: 18px 0 4px; }
.jp small { font-size: .34em; vertical-align: super; letter-spacing: 0; color: var(--muted); }
.jp-note { font-size: 13px; color: var(--gold); font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 6px; }
.stat { border: 1px solid var(--border); border-radius: 12px; padding: 12px 8px; text-align: center; background: #fff; box-shadow: var(--shadow); }
.stat .n { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 21px; line-height: 1.15; }
.stat .l { font-size: 10.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* sections */
.sec { margin-top: 30px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sec-t { font-family: 'Sora', sans-serif; font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.sec-s { font-size: 12.5px; color: var(--muted); }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.how div { border: 1px solid var(--border); border-radius: 12px; padding: 14px 12px; background: var(--surface); font-size: 13px; color: var(--muted); }
.how b { display: block; font-family: 'Sora', sans-serif; color: var(--accent); font-size: 20px; line-height: 1.1; margin-bottom: 4px; }
@media (max-width: 520px) { .how { grid-template-columns: 1fr; } }

/* game rows (board + picker share the layout) */
.game { border: 1px solid var(--border); border-radius: 12px; background: #fff; margin-bottom: 9px; overflow: hidden; }
.game.picked { border-color: var(--accent); }
.game-h { display: flex; justify-content: space-between; gap: 8px; padding: 8px 13px; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); background: var(--surface); }
.teams { display: flex; align-items: stretch; }
.team { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; background: none; border: 0; font: inherit; color: var(--text); text-align: center; }
button.team { cursor: pointer; transition: background .15s; }
button.team:hover { background: var(--accent-bg); }
button.team.sel { background: var(--accent-bg); box-shadow: inset 0 0 0 2px var(--accent); }
.team .ab { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 17px; }
.team .nm { font-size: 12px; color: var(--muted); line-height: 1.25; }
.team .ha { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.at { display: flex; align-items: center; padding: 0 6px; font-size: 12px; font-weight: 700; color: var(--muted); border-left: 1px solid var(--border); border-right: 1px solid var(--border); }

/* card */
.card { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); overflow: hidden; margin-top: 28px; scroll-margin-top: 90px; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-t { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 16px; }
.card-b { padding: 20px; }
.steps { display: flex; gap: 6px; margin-bottom: 22px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--border); }
.steps i.done { background: var(--accent); } .steps i.on { background: #f3b48f; }
label.f { display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 7px; }
input.in { width: 100%; border: 1.5px solid var(--border2); border-radius: 10px; padding: 14px 16px; font-size: 16px; font-family: 'JetBrains Mono', monospace; color: var(--text); background: #fff; outline: none; -webkit-appearance: none; }
input.in:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.otp { text-align: center; font-size: 28px; letter-spacing: 8px; font-weight: 700; }
.chk { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 14px 0; cursor: pointer; }
.chk input { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--accent); }
.fine { font-size: 11.5px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.btn { display: block; width: 100%; background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 15px; font: 600 15px 'Inter', sans-serif; cursor: pointer; text-align: center; text-decoration: none; box-shadow: 0 2px 8px rgba(194,65,12,.22); }
.btn:hover { background: var(--accent-d); }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.btn-ghost { display: block; width: 100%; background: none; border: 0; padding: 12px; font-size: 13px; color: var(--muted); cursor: pointer; text-align: center; text-decoration: none; }
.err { background: var(--lose-bg); border: 1px solid #f2c9c5; color: var(--lose); border-radius: 10px; padding: 12px 14px; font-size: 13px; margin-bottom: 16px; }
.note { background: var(--gold-bg); border: 1px solid var(--gold-line); color: var(--gold); border-radius: 10px; padding: 11px 14px; font-size: 13px; margin-bottom: 14px; }
.progress { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.progress b { color: var(--accent-d); }
.tb { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--surface); margin: 6px 0 16px; }
.tb .t { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.tb input { width: 120px; text-align: center; }
.odds { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 12px; line-height: 1.6; }

/* my entry */
.entry-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 15px; border: 1px solid var(--accent-line); background: var(--accent-bg); border-radius: 12px; margin-bottom: 12px; }
.entry-top .big { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 22px; color: var(--accent-d); }
.pr { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 7px; background: #fff; font-size: 13px; }
.pr .who { flex: 1; min-width: 0; }
.pr .mine { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 14.5px; }
.pr .vs { font-size: 11.5px; color: var(--muted); }
.pr .sc { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); white-space: nowrap; }
.pr .st { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; border: 1px solid var(--border2); color: var(--muted); }
.pr.won { border-color: #bfe3cc; background: var(--win-bg); } .pr.won .st { color: var(--win); border-color: #bfe3cc; }
.pr.lost { border-color: #f2c9c5; background: var(--lose-bg); } .pr.lost .st { color: var(--lose); border-color: #f2c9c5; }
.share { display: flex; gap: 10px; margin-top: 16px; }
.share button { flex: 1; padding: 12px; border-radius: 10px; border: 1.5px solid var(--border2); background: #fff; font: 600 13px 'Inter', sans-serif; color: var(--text); cursor: pointer; }
.share button:hover { border-color: var(--accent); background: var(--accent-bg); }
.sponsor { display: block; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-top: 18px; text-decoration: none; color: var(--text); background: var(--surface); }
.sponsor .k { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.sponsor .d { font-size: 10.5px; color: var(--muted); margin-top: 6px; }

.winners { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.winners div { display: flex; justify-content: space-between; padding: 11px 14px; border-top: 1px solid var(--border); font-size: 13.5px; }
.winners div:first-child { border-top: 0; }
.cta { position: sticky; bottom: 12px; z-index: 5; margin-top: 22px; }
.faq details { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; background: #fff; }
.faq summary { font-weight: 600; cursor: pointer; font-size: 14px; }
.faq p { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.footer { text-align: center; padding: 30px 20px; font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--border); line-height: 2; }
.footer a { color: var(--muted); }
