:root { --bg:#0b0e14; --panel:#131824; --line:#232b3b; --text:#e6e9f0; --muted:#8a93a6; --me:#3b82f6; --opp:#f59e0b; --up:#22c55e; --down:#ef4444; }
* { box-sizing: border-box; }
html, body { margin:0; background:var(--bg); color:var(--text); font:14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
button { font:inherit; color:var(--text); background:#1c2333; border:1px solid var(--line); border-radius:8px; padding:8px 14px; cursor:pointer; }
button:hover { border-color:#3a4560; }
button:disabled { opacity:.45; cursor:not-allowed; }
button.primary { background:var(--me); border-color:var(--me); font-weight:600; }
button.ghost { background:transparent; }
input { font:inherit; color:var(--text); background:#0e121b; border:1px solid var(--line); border-radius:8px; padding:8px 10px; width:100%; margin-top:6px; }
h2 { font-size:15px; margin:0 0 10px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }
h3 { font-size:13px; margin:0 0 8px; text-transform:uppercase; letter-spacing:.06em; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.muted { color:var(--muted); } .small { font-size:12px; } .hidden { display:none !important; }
.msg { min-height:18px; margin-top:8px; color:var(--opp); font-size:13px; }
.topbar { display:flex; justify-content:space-between; align-items:center; padding:10px 18px; border-bottom:1px solid var(--line); }
.brand { font-size:18px; letter-spacing:.04em; } .brand b { color:var(--me); }
.tag { font-size:11px; color:var(--muted); border:1px solid var(--line); border-radius:6px; padding:1px 6px; margin-left:6px; }
.screen { padding:18px; }
.card { background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:14px; }
.lobby-grid { display:grid; grid-template-columns: 1fr 1.4fr 1fr; gap:14px; max-width:1300px; margin:0 auto; }
@media (max-width: 1000px) { .lobby-grid { grid-template-columns:1fr; } }
.lobby-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.lobby-btn { display:flex; flex-direction:column; align-items:flex-start; padding:16px; gap:4px; text-align:left; }
.lobby-btn.sel { border-color:var(--me); box-shadow:0 0 0 1px var(--me) inset; }
.lobby-btn .sym { font-size:28px; font-weight:700; } .lobby-btn .desc { color:var(--muted); font-size:12px; } .lobby-btn .q { font-size:12px; color:var(--up); }
.actions { display:flex; gap:10px; margin-top:14px; flex-wrap:wrap; }
.profile { margin-top:12px; line-height:1.8; }
.profile b { color:var(--text); }
.board { width:100%; border-collapse:collapse; font-size:12px; }
.board td, .board th { padding:4px 6px; border-bottom:1px solid var(--line); text-align:left; }
.center { max-width:460px; margin:60px auto; text-align:center; }
.big { font-size:40px; margin:6px 0 10px; }
.spinner { width:38px; height:38px; margin:0 auto 14px; border:3px solid var(--line); border-top-color:var(--me); border-radius:50%; animation:spin 1s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.matchbar { display:grid; grid-template-columns:1fr 1.6fr 1fr; align-items:center; gap:12px; margin-bottom:12px; }
.matchbar .side { font-size:18px; font-weight:600; } .matchbar .opp { text-align:right; }
.matchbar .me .pname { color:var(--me); } .matchbar .opp .pname { color:var(--opp); }
.elo { font-size:12px; color:var(--muted); font-weight:400; }
.mid { text-align:center; }
.score { font-size:26px; font-weight:700; display:flex; justify-content:center; gap:14px; align-items:baseline; }
.score .vs { font-size:13px; color:var(--muted); }
.leadbar { height:8px; background:var(--opp); border-radius:4px; overflow:hidden; margin:6px 0; }
#leadFill { height:100%; width:50%; background:var(--me); transition:width .3s; }
.match-grid { display:grid; grid-template-columns: 1fr 340px; gap:12px; }
@media (max-width: 900px) { .match-grid { grid-template-columns:1fr; } }
.chart-wrap { display:flex; flex-direction:column; gap:6px; position:relative; height:calc(100vh - 170px); min-height:420px; padding:6px; }
#chart { width:100%; flex:1; min-height:0; position:relative; overflow:hidden; border-radius:8px; }
.chart-fail { display:flex; height:100%; align-items:center; justify-content:center; color:var(--muted); }
.countdown { z-index:20; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:110px; font-weight:800; background:rgba(11,14,20,.6); border-radius:12px; }
.side-col { display:flex; flex-direction:column; gap:10px; }
.acct h3 { color:var(--me); } .acct.opp h3 { color:var(--opp); }
.stats { display:grid; grid-template-columns:auto 1fr; gap:2px 12px; font-size:13px; }
.stats div:nth-child(even) { text-align:right; font-family: ui-monospace, Menlo, Consolas, monospace; }
.qty { margin:10px 0 8px; display:flex; gap:6px; align-items:center; }
.qbtn { padding:4px 12px; } .qbtn.sel { border-color:var(--me); background:#1d2a45; }
.orders { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:8px; }
.orders button { padding:12px 8px; font-weight:700; }
.orders small { display:block; font-weight:400; opacity:.8; }
.buy { background:#14532d; border-color:#166534; } .sell { background:#7f1d1d; border-color:#991b1b; }
.tape { max-height:200px; overflow:auto; }
.tape .me { color:#93c5fd; } .tape .opp { color:#fcd34d; }
.pos { color:var(--up); } .neg { color:var(--down); }
.result-wrap { max-width:1000px; margin:0 auto; }
#cardCanvas { width:100%; height:auto; border-radius:14px; border:1px solid var(--line); }
.trade-tables { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:14px; }
.trade-tables table { width:100%; border-collapse:collapse; font-size:12px; }
.trade-tables td, .trade-tables th { padding:3px 6px; border-bottom:1px solid var(--line); text-align:right; }
.trade-tables th:first-child, .trade-tables td:first-child { text-align:left; }

.tf-bar { display:flex; gap:4px; align-items:center; padding:0 2px; }
.tf-bar .muted { margin-right:4px; }
.tfbtn { padding:3px 10px; font-size:12px; } .tfbtn.sel { border-color:var(--me); background:#1d2a45; }

/* limit / stop orders */
.otype { margin:0 0 8px; display:flex; gap:6px; align-items:center; }
.otbtn { padding:4px 10px; font-size:12px; } .otbtn.sel { border-color:var(--me); background:#1d2a45; }
#oPrice { width:110px; margin:0 0 0 auto; padding:5px 8px; text-align:right; }
.worklist { font-size:12px; margin:0 0 8px; border-top:1px solid var(--line); padding-top:6px; }
.worklist .wrow { display:flex; align-items:center; gap:6px; padding:2px 0; font-family: ui-monospace, Menlo, Consolas, monospace; }
.worklist .wrow .tag { font-family:system-ui, sans-serif; font-size:10px; color:var(--muted); border:1px solid var(--line); border-radius:4px; padding:0 4px; }
.worklist .wrow button { margin-left:auto; padding:0 7px; line-height:18px; font-size:12px; }
.worklist .wbuy { color:#86efac; } .worklist .wsell { color:#fca5a5; }
.worklist .wfoot { display:flex; justify-content:space-between; align-items:center; margin-top:4px; }
.ticket { position:fixed; z-index:50; background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:6px; display:flex; flex-direction:column; gap:4px; min-width:190px; box-shadow:0 8px 24px rgba(0,0,0,.5); }
.ticket .thead { font-size:11px; color:var(--muted); padding:2px 4px 4px; }
.ticket button { text-align:left; padding:7px 10px; font-weight:600; font-size:13px; }

/* ================= HOME (from the homepage mockup, scoped to .home) ================= */
:root { --panel2:#0f1420; --gold:#eab308; }
body { background:radial-gradient(1200px 500px at 50% -120px,#15203a 0%,transparent 70%),var(--bg); min-height:100vh; }
.brand { display:flex; align-items:center; gap:8px; font-weight:800; letter-spacing:.03em; }
.brand .mark { width:26px; height:26px; border-radius:7px; background:linear-gradient(135deg,var(--me) 0 50%,var(--opp) 50% 100%); display:grid; place-items:center; font-size:12px; color:#0b0e14; font-weight:900; letter-spacing:0; }
body.on-home .topbar { display:none; }
.home { font-size:14px; line-height:1.45; }
.home a { color:inherit; text-decoration:none; }
.home button { padding:9px 16px; }
.home .wrap { max-width:1240px; margin:0 auto; padding:0 22px; }
.home .card { border-radius:14px; padding:18px; }
.home .label { font-size:11px; text-transform:uppercase; letter-spacing:.09em; color:var(--muted); }
.home .pos { color:var(--up); } .home .neg { color:var(--down); }
.home h2, .home h3 { text-transform:none; letter-spacing:normal; color:var(--text); }

/* prototype view toggle */
.home .demo { position:sticky; top:0; z-index:100; display:flex; justify-content:center; align-items:center; gap:10px; padding:6px; background:#2a1d05; border-bottom:1px solid #6b4a0a; font-size:12px; color:#fcd34d; }
.home .demo .seg { display:inline-flex; border:1px solid #6b4a0a; border-radius:7px; overflow:hidden; }
.home .demo .seg button { border:0; border-radius:0; background:transparent; color:#fcd34d; padding:4px 12px; font-size:12px; }
.home .demo .seg button.on { background:var(--opp); color:#1a1205; font-weight:700; }
.home .demo-conn { position:absolute; right:14px; opacity:.75; }
.home .view { display:none; } .home .view.on { display:block; }

/* nav */
.home .hnav { display:flex; align-items:center; justify-content:space-between; padding:14px 0; border-bottom:1px solid var(--line); }
.home .hnav .brand { font-size:19px; }
.home .links { display:flex; gap:26px; color:var(--muted); font-weight:500; }
.home .links a:hover, .home .links a.act { color:var(--text); }
.home .navr { display:flex; gap:10px; align-items:center; }
.home .btn-p { background:var(--me); border-color:var(--me); font-weight:700; }
.home .btn-p:hover { background:#2f6fe0; border-color:#2f6fe0; }
.home .btn-o { background:var(--opp); border-color:var(--opp); color:#1a1205; font-weight:700; }
.home .btn-v { background:#7c3aed; border-color:#a855f7; font-weight:700; }
.home .btn-g { background:transparent; }
.home .livedot { display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--down); box-shadow:0 0 0 0 rgba(239,68,68,.7); animation:pulse 1.6s infinite; vertical-align:middle; }
.home .livedot.off { background:#4b5368; animation:none; }
@keyframes pulse { 70% { box-shadow:0 0 0 8px rgba(239,68,68,0); } 100% { box-shadow:0 0 0 0 rgba(239,68,68,0); } }

/* hero */
.home .hero { display:grid; grid-template-columns:1fr 1.55fr; gap:34px; align-items:center; padding:46px 0 30px; }
.home .hero h1 { font-size:52px; line-height:1.02; margin:12px 0 14px; letter-spacing:-.02em; }
.home .hero h1 .a { color:var(--me); } .home .hero h1 .b { color:var(--opp); }
.home .lede { color:var(--muted); font-size:17px; max-width:440px; margin:0 0 26px; }
.home .find { display:grid; grid-template-columns:1fr 1fr; gap:12px; max-width:460px; }
.home .find button { padding:18px; text-align:left; display:flex; flex-direction:column; gap:2px; border-radius:12px; }
.home .find .sym { font-size:22px; font-weight:800; }
.home .find .q { font-size:12px; opacity:.85; font-weight:500; }
.home .find .es { background:linear-gradient(160deg,#2563eb,#1d4ed8); border-color:#3b82f6; }
.home .find .nq { background:linear-gradient(160deg,#a855f7,#7c3aed); border-color:#a855f7; }
.home .find button:hover { filter:brightness(1.1); }
.home .rules { display:flex; gap:16px; margin-top:16px; color:var(--muted); font-size:12px; flex-wrap:wrap; }
.home .rules span::before { content:"▸ "; color:var(--me); }
.home .practice { margin-top:12px; padding:6px 0; border:0; color:var(--muted); font-size:13px; text-decoration:underline; text-underline-offset:3px; }
.home .practice:hover { color:var(--text); }

/* featured live match */
.home .match { padding:0; overflow:hidden; box-shadow:0 30px 80px -30px rgba(59,130,246,.35); }
.home .mhead { display:flex; justify-content:space-between; align-items:center; padding:12px 16px; border-bottom:1px solid var(--line); background:var(--panel2); }
.home .mhead .tags { display:flex; gap:8px; align-items:center; }
.home .pill { font-size:11px; border:1px solid var(--line); border-radius:999px; padding:2px 9px; color:var(--muted); }
.home .pill.live { color:#fca5a5; border-color:#7f1d1d; background:#2a0f12; }
.home .scorebar { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; padding:14px 16px 6px; }
.home .pl .nm { font-weight:700; font-size:16px; } .home .pl .el { font-size:12px; color:var(--muted); }
.home .pl.r { text-align:right; }
.home .pl.a .nm { color:var(--me); } .home .pl.b .nm { color:var(--opp); }
.home .pl .pnl { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:24px; font-weight:800; margin-top:2px; }
.home .clock { text-align:center; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; }
.home .clock .t { font-size:22px; font-weight:700; }
.home .leadbar2 { height:6px; background:var(--opp); border-radius:4px; overflow:hidden; margin:0 16px; }
.home .leadbar2 i { display:block; height:100%; width:50%; background:var(--me); transition:width .4s; }
.home .chart { position:relative; padding:8px 8px 0; }
.home .chart svg { display:block; width:100%; height:250px; }
.home .legend { position:absolute; top:14px; left:20px; display:flex; gap:14px; font-size:11px; color:var(--muted); }
.home .legend i { display:inline-block; width:14px; height:3px; border-radius:2px; vertical-align:middle; margin-right:5px; }
.home .f-empty { position:absolute; inset:8px 8px 0; display:flex; align-items:center; justify-content:center; text-align:center; background:rgba(15,20,32,.7); border-radius:8px; padding:20px; }
.home .fills { display:grid; grid-template-columns:1fr 1fr; border-top:1px solid var(--line); }
.home .fills > div { padding:10px 16px; min-height:88px; }
.home .fills > div + div { border-left:1px solid var(--line); }
.home .fills table { width:100%; border-collapse:collapse; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:12px; }
.home .fills td { padding:3px 0; } .home .fills td:last-child { text-align:right; }
.home .b-buy { color:var(--up); font-weight:700; } .home .b-sell { color:var(--down); font-weight:700; }
.home .fills .h { font-size:11px; letter-spacing:.08em; text-transform:uppercase; margin-bottom:4px; }
.home .fills .ha { color:var(--me); } .home .fills .hb { color:var(--opp); }
.home .watching { padding:8px 16px; border-top:1px solid var(--line); font-size:12px; color:var(--muted); display:flex; justify-content:space-between; }

/* stats strip */
.home .strip { display:grid; grid-template-columns:repeat(5,1fr); border:1px solid var(--line); border-radius:14px; background:var(--panel); margin:10px 0 50px; }
.home .strip > div { padding:16px 20px; } .home .strip > div + div { border-left:1px solid var(--line); }
.home .strip .v { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:24px; font-weight:800; margin-top:4px; }

/* how it works, leaderboard */
.home .sec-t { font-size:26px; font-weight:800; margin:0 0 6px; letter-spacing:-.01em; scroll-margin-top:50px; }
.home .sec-s { color:var(--muted); margin:0 0 22px; }
.home .how { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:60px; }
.home .how .n { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; color:var(--me); font-weight:800; font-size:13px; }
.home .how h4 { margin:8px 0 6px; font-size:16px; } .home .how p { margin:0; color:var(--muted); font-size:13px; }
.home .lb { margin-bottom:50px; padding:8px 18px; }
.home .board { font-size:13px; } .home .board td, .home .board th { padding:8px 6px; }
.home .board th { color:var(--muted); font-weight:500; font-size:11px; text-transform:uppercase; letter-spacing:.08em; }
.home .board td:nth-child(n+3), .home .board th:nth-child(n+3) { text-align:right; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; }
.home .board tr.me td { color:var(--me); font-weight:700; }
.home .hfoot { border-top:1px solid var(--line); padding:22px 0 40px; color:var(--muted); font-size:12px; display:flex; justify-content:space-between; }

/* logged in */
.home .avatar { width:32px; height:32px; border-radius:50%; background:linear-gradient(135deg,#1e3a8a,#3b82f6); display:grid; place-items:center; font-weight:800; font-size:13px; }
.home .me-chip { display:flex; align-items:center; gap:10px; border:1px solid var(--line); border-radius:999px; padding:3px 12px 3px 3px; background:var(--panel); }
.home .me-chip .elo { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:12px; color:var(--muted); }
.home .bell { display:grid; grid-template-columns:1.3fr 1fr; gap:24px; align-items:center; margin:28px 0 22px; padding:24px 28px; background:linear-gradient(110deg,#121a2c,#131824 60%); border:1px solid var(--line); border-radius:16px; }
.home .bell h2 { margin:6px 0 4px; font-size:28px; }
.home .cd { display:flex; gap:10px; justify-content:flex-end; }
.home .cd div { background:var(--panel2); border:1px solid var(--line); border-radius:12px; padding:10px 0; width:86px; text-align:center; }
.home .cd b { display:block; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:38px; line-height:1.1; }
.home .cd span { font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
.home .hub { display:grid; grid-template-columns:1fr 340px; gap:18px; margin-bottom:28px; scroll-margin-top:50px; }
.home .modes { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.home .mode { display:flex; flex-direction:column; position:relative; overflow:hidden; padding:20px; scroll-margin-top:50px; }
.home .mode::before { content:""; position:absolute; left:0; right:0; top:0; height:3px; background:var(--c); }
.home .mode .ic { width:42px; height:42px; border-radius:10px; display:grid; place-items:center; font-size:20px; background:color-mix(in srgb,var(--c) 16%,transparent); border:1px solid color-mix(in srgb,var(--c) 40%,transparent); }
.home .mode h3 { margin:14px 0 2px; font-size:19px; }
.home .mode .freq { font-size:12px; color:var(--c); font-weight:600; }
.home .mode ul { list-style:none; padding:0; margin:14px 0 18px; color:var(--muted); font-size:13px; flex:1; }
.home .mode li { padding:5px 0; border-bottom:1px dashed var(--line); }
.home .mode li b { color:var(--text); font-weight:600; }
.home .mode .prize { font-size:12px; margin-bottom:12px; padding:8px 10px; border-radius:8px; background:var(--panel2); border:1px solid var(--line); }
.home .mode button { width:100%; padding:12px; font-weight:700; }
.home .mode button.mini { margin-top:8px; padding:7px; font-weight:500; font-size:12px; color:var(--muted); }
.home .seg2 { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:10px; }
.home .seg2 .lobby-btn { padding:8px; font-weight:800; font-size:15px; display:block; text-align:center; }
.home .seg2 .lobby-btn small { font-weight:500; font-size:11px; color:var(--muted); margin-left:4px; }
.home .seg2 .lobby-btn.sel { border-color:var(--me); background:#1d2a45; box-shadow:none; }
.home .prog { display:flex; gap:4px; margin:6px 0 2px; }
.home .prog i { flex:1; height:6px; border-radius:2px; background:#232b3b; }
.home .bracket { display:flex; gap:3px; align-items:flex-end; height:26px; margin-top:6px; }
.home .bracket i { flex:1; background:#2a2f45; border-radius:2px; }
.home .player { scroll-margin-top:50px; }
.home .player .top { display:flex; gap:14px; align-items:center; }
.home .player .avatar { width:56px; height:56px; font-size:20px; }
.home .player .nm { font-size:18px; font-weight:800; }
.home .kv { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:16px 0; }
.home .kv > div { background:var(--panel2); border:1px solid var(--line); border-radius:10px; padding:10px 12px; }
.home .kv .v { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:20px; font-weight:800; margin-top:2px; }
.home .token { display:flex; align-items:center; gap:12px; padding:12px; border-radius:10px; border:1px solid #6b4a0a; background:#1f1606; margin-bottom:16px; opacity:.7; }
.home .token .coin { width:34px; height:34px; border-radius:50%; background:radial-gradient(circle at 35% 35%,#fde68a,#eab308 55%,#a16207); display:grid; place-items:center; font-weight:900; color:#422006; flex:none; }
.home .res { width:100%; border-collapse:collapse; font-size:12px; }
.home .res td { padding:6px 0; border-bottom:1px solid var(--line); }
.home .res td:last-child { text-align:right; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; }
.home .wl { display:inline-block; width:20px; text-align:center; border-radius:4px; font-weight:800; font-size:11px; padding:1px 0; margin-right:8px; }
.home .wl.w { background:#14532d; color:#86efac; } .home .wl.l { background:#4c1616; color:#fca5a5; } .home .wl.d { background:#2a2f45; color:var(--muted); }
.home .center-msg { text-align:center; margin:-10px 0 20px; }
.home .sponsors { border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:22px 0; margin:10px 0 40px; }
.home .sponsors .row { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-top:14px; flex-wrap:wrap; }
.home .logo { display:flex; align-items:center; gap:8px; color:#6b7387; font-weight:800; font-size:17px; letter-spacing:.02em; opacity:.85; }
.home .logo .g { width:24px; height:24px; border-radius:6px; border:2px solid currentColor; }
.home .logo .g.c { border-radius:50%; } .home .logo .g.t { border-radius:2px; transform:rotate(45deg) scale(.8); }

/* login modal */
.home .modal { position:fixed; inset:0; z-index:200; background:rgba(5,8,14,.7); display:flex; align-items:center; justify-content:center; padding:16px; }
.home .modal-card { width:100%; max-width:400px; }
.home .modal-card h3 { font-size:20px; margin:0 0 6px; }

@media (max-width:980px) {
  .home .hero, .home .hub, .home .bell { grid-template-columns:1fr; }
  .home .strip { grid-template-columns:repeat(2,1fr); }
  .home .strip > div + div { border-left:0; }
  .home .how, .home .modes { grid-template-columns:1fr; }
  .home .links { display:none; }
  .home .cd { justify-content:flex-start; }
  .home .hero h1 { font-size:40px; }
  .home .demo-conn { display:none; }
}

/* ================= SESSIONS (2.1) ================= */
/* session bar: 24h New York clock across the screen */
.home .sessbar { border-bottom:1px solid var(--line); background:linear-gradient(180deg,#0e1422,#0b0e14); padding:10px 0 6px; }
.home .sb-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:8px; flex-wrap:wrap; }
.home .sb-clock { display:flex; align-items:baseline; gap:8px; }
.home .sb-clock b { font-size:16px; margin-right:10px; }
.home .sb-status { font-size:13px; color:var(--muted); display:flex; align-items:center; gap:8px; }
.home .sb-status b { color:var(--text); }
.home .sb-track { position:relative; height:44px; border-radius:10px; background:repeating-linear-gradient(90deg,#121827 0 calc(100%/24 - 1px),#1a2133 calc(100%/24 - 1px) calc(100%/24)); border:1px solid var(--line); overflow:hidden; }
.home .sb-block { position:absolute; top:4px; bottom:4px; border-radius:7px; border:1px solid color-mix(in srgb,var(--c) 55%,transparent); background:color-mix(in srgb,var(--c) 16%,#0b0e14); color:var(--text); padding:0 8px; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; overflow:hidden; white-space:nowrap; cursor:pointer; font:inherit; text-align:left; }
.home .sb-block:hover { background:color-mix(in srgb,var(--c) 26%,#0b0e14); }
.home .sb-block b { font-size:12px; color:var(--c); line-height:1.1; }
.home .sb-block span { font-size:10px; color:var(--muted); font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; line-height:1.2; }
.home .sb-block.sel { box-shadow:0 0 0 2px var(--c) inset; }
.home .sb-block.live { background:color-mix(in srgb,var(--c) 30%,#0b0e14); }
.home .sb-block.live b::after { content:" ● LIVE"; color:#fca5a5; font-size:9px; letter-spacing:.06em; }
.home .sb-halt { position:absolute; top:0; bottom:0; background:repeating-linear-gradient(45deg,#1a2133 0 4px,transparent 4px 8px); display:flex; align-items:flex-end; justify-content:center; pointer-events:none; }
.home .sb-halt span { font-size:9px; color:#5b6478; text-transform:uppercase; letter-spacing:.08em; margin-bottom:2px; }
.home .sb-now { position:absolute; top:0; bottom:0; width:2px; margin-left:-1px; background:#fff; box-shadow:0 0 8px rgba(255,255,255,.6); pointer-events:none; z-index:2; transition:left .5s linear; }
.home .sb-now i { position:absolute; top:-1px; left:-4px; width:10px; height:10px; border-radius:50%; background:#fff; }
.home .sb-closed { position:absolute; inset:0; background:rgba(11,14,20,.72); display:flex; align-items:center; justify-content:center; font-size:12px; color:var(--muted); z-index:3; pointer-events:none; }
.home .sb-ticks { position:relative; height:16px; margin-top:3px; font-size:10px; color:#5b6478; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; }
.home .sb-ticks span { position:absolute; transform:translateX(-50%); }
.home .sb-ticks span:first-child { transform:none; } .home .sb-ticks span:last-child { transform:translateX(-100%); }

/* session pickers (hero + Classic card) */
.home .sess-row { display:flex; align-items:center; gap:10px; margin:0 0 12px; max-width:460px; }
.home .sess-pick { display:flex; gap:6px; flex-wrap:wrap; }
.home .sess-pick.grid { display:grid; grid-template-columns:1fr 1fr; margin-bottom:8px; }
.home .sess-btn { padding:6px 10px; font-size:12px; font-weight:600; border-radius:8px; display:flex; align-items:center; gap:6px; justify-content:center; }
.home .sess-btn i { width:8px; height:8px; border-radius:50%; background:var(--c); flex:none; }
.home .sess-btn.sel { border-color:var(--c); background:color-mix(in srgb,var(--c) 18%,#1c2333); }
.home .sess-btn .lv { font-size:9px; color:#fca5a5; letter-spacing:.06em; }
.home .mode .sess-btn { width:auto; padding:7px 8px; font-weight:600; }

/* leaderboard tabs, by-session table */
.home .lb-tabs { display:flex; gap:6px; margin:-8px 0 10px; flex-wrap:wrap; }
.home .lb-tabs button { padding:5px 12px; font-size:12px; }
.home .lb-tabs button.sel { border-color:var(--c, var(--me)); background:color-mix(in srgb,var(--c, var(--me)) 18%,#1c2333); }
.home .bysess td { padding:5px 0; }
.home .bysess td:nth-child(n+2) { text-align:right; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; }
.home .bysess .dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; }
.home .bysess tr.best td:first-child::after { content:" ★ best"; color:var(--gold); font-size:10px; }
.home .bysess th { font-weight:500; color:var(--muted); font-size:10px; text-align:right; padding-bottom:2px; }
.home .bysess th:first-child { text-align:left; }

@media (max-width:980px) {
  .home .sb-block span { display:none; }
  .home .sb-ticks span:nth-child(even) { display:none; }
  .home .sess-row { flex-direction:column; align-items:flex-start; }
}
.home .sess-btn { white-space:nowrap; }
.home .mode .sess-btn { padding:7px 4px; font-size:11px; gap:5px; }

/* ================= TURBO-OPEN ================= */
.home .turbo-cta { display:flex; align-items:center; gap:12px; width:100%; max-width:460px; margin-top:12px; padding:12px 14px; border-radius:12px; text-align:left;
  background:linear-gradient(100deg,#3a1d08,#1c2333 70%); border-color:#9a3f0c; }
.home .turbo-cta:hover { border-color:#f97316; }
.home .turbo-cta .tz { font-size:20px; }
.home .turbo-cta b { color:#fdba74; }
.home .turbo-cta .tc-sub { display:block; font-size:12px; color:var(--muted); }
.home .turbo-cta .tc-go { margin-left:auto; font-weight:800; color:#fdba74; font-size:13px; }
.home .turbo-cta:disabled, .home .btn-turbo:disabled { opacity:.5; }
.home .mode.turbo { grid-column:1 / -1; display:grid; grid-template-columns:auto 1fr 240px; gap:18px; align-items:center; }
.home .mode.turbo h3 { margin:0 0 2px; display:flex; align-items:center; gap:8px; }
.home .mode.turbo .pill { font-size:10px; font-weight:600; color:#fdba74; border-color:#9a3f0c; }
.home .mode.turbo p { margin:8px 0 0; max-width:520px; }
.home .mode.turbo .tb-side .prize div { padding:2px 0; }
.home .btn-turbo { background:#f97316; border-color:#f97316; color:#1a0d03; font-weight:800; }
.home .btn-turbo:hover { background:#fb8a3c; }
.home .btn-turbo small { font-weight:600; opacity:.75; }
@media (max-width:980px) { .home .mode.turbo { grid-template-columns:1fr; } }
.home .bysess tr.sep td { border-top:1px solid var(--line); padding-top:8px; }

/* analysis phase (Turbo-Open) */
.analysis { border:1px solid #9a3f0c; background:linear-gradient(100deg,#2a1606,#131824 65%); border-radius:12px; padding:12px 14px; margin-bottom:12px; }
.an-head { display:grid; grid-template-columns:1fr auto auto; gap:16px; align-items:center; }
.an-title { display:flex; flex-direction:column; gap:2px; } .an-title b { font-size:16px; color:#fdba74; }
.an-timer { font-size:34px; font-weight:800; color:#fdba74; min-width:96px; text-align:center; }
.an-ready { display:flex; flex-direction:column; align-items:flex-end; gap:6px; }
.an-ready .primary { background:#f97316; border-color:#f97316; color:#1a0d03; font-weight:800; padding:10px 20px; }
.an-ready .primary:disabled { opacity:1; background:#14532d; border-color:#166534; color:#bbf7d0; cursor:default; }
#anOpp.ok { color:#86efac; }
.an-rules { display:flex; flex-wrap:wrap; gap:6px 8px; margin-top:10px; }
.an-rules span { font-size:12px; border:1px solid var(--line); background:#0f1420; border-radius:999px; padding:4px 10px; color:var(--muted); }
.an-rules span b { color:var(--text); font-weight:600; }
.reveal { text-align:center; margin:0 0 12px; padding:10px; border:1px solid #9a3f0c; border-radius:12px; background:#1f1206; color:#fdba74; font-size:15px; }
.reveal b { color:#fff; }
@media (max-width:900px) { .an-head { grid-template-columns:1fr; } .an-ready { align-items:flex-start; } .an-timer { text-align:left; } }
.drawkeys { margin-top:6px; } .drawkeys summary { cursor:pointer; } .drawkeys summary:hover { color:var(--text); }
.drawkeys div { margin-top:4px; line-height:1.7; } .drawkeys b { color:var(--text); font-weight:600; }
