:root { --ground:#0A0B0D; --panel:#121418; --raised:#1B1F24; --line:rgba(255,255,255,.10); --text:#F4F6F8; --muted:#A9B3BC; --accent:#22C55E; --ink:#0A0B0D; --gold:#FFC515; --live:#E0162B; }
@media (prefers-color-scheme: light) { :root { --ground:#F2F2F7; --panel:#FFFFFF; --raised:#E9E9EE; --line:rgba(0,0,0,.12); --text:#141414; --muted:#5C6670; --accent:#15803D; --gold:#8A5A00; --ink:#FFFFFF; } }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html, body { margin:0; background:var(--ground); color:var(--text); font:16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
header { position:sticky; top:0; z-index:5; display:flex; gap:10px; align-items:center; padding:10px 16px; background:var(--panel); border-bottom:1px solid var(--line); }
.brand { font-weight:900; letter-spacing:.06em; display:flex; gap:6px; align-items:center; flex:1; }
.mark { background:var(--gold); color:#000; padding:2px 6px; transform:skewX(-12deg); display:inline-block; }
main { max-width:720px; margin:0 auto; padding:16px 16px 96px; }
nav#tabs { position:fixed; bottom:0; left:0; right:0; display:flex; background:var(--panel); border-top:1px solid var(--line); padding-bottom:env(safe-area-inset-bottom); }
nav#tabs button { flex:1; background:none; border:0; color:var(--muted); padding:12px 4px; font-weight:600; font-size:14px; min-height:52px; }
nav#tabs button.on { color:var(--accent); }
h1 { font-size:28px; margin:8px 0 4px; } h2 { font-size:18px; margin:20px 0 8px; }
.muted { color:var(--muted); } .small { font-size:13px; }
.card { background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:14px; margin:10px 0; }
.row { display:flex; gap:10px; align-items:center; } .row > .grow { flex:1; min-width:0; }
button, .btn { font:inherit; border-radius:10px; border:1px solid var(--line); background:var(--raised); color:var(--text); padding:10px 14px; min-height:44px; cursor:pointer; }
button.primary { background:var(--accent); color:var(--ink); border:0; font-weight:700; }
button.ghost { background:none; border:0; }
button:disabled { opacity:.5; }
input, select, textarea { font:inherit; width:100%; padding:10px 12px; border-radius:10px; border:1px solid var(--line); background:var(--panel); color:var(--text); min-height:44px; }
label { display:block; margin:10px 0 4px; font-weight:600; }
.list > * + * { border-top:1px solid var(--line); }
.item { padding:12px 0; display:flex; gap:12px; align-items:center; cursor:pointer; }
.jersey { width:40px; height:40px; border-radius:8px; background:var(--accent); color:var(--ink); font-weight:900; display:grid; place-items:center; flex:none; }
.msg { margin:10px 0; max-width:85%; } .msg.mine { margin-left:auto; text-align:right; }
.bubble { display:inline-block; padding:8px 12px; border-radius:16px; background:var(--panel); text-align:left; white-space:pre-wrap; word-break:break-word; }
.mine .bubble { background:var(--accent); color:var(--ink); }
.composer { position:fixed; left:0; right:0; bottom:52px; display:flex; gap:8px; padding:8px 16px calc(8px + env(safe-area-inset-bottom)); background:var(--panel); border-top:1px solid var(--line); }
.chip { display:inline-block; padding:2px 8px; border-radius:999px; background:var(--raised); font-size:12px; font-weight:700; }
.chip.green { background:var(--accent); color:var(--ink); } .chip.red { background:var(--live); color:#fff; }
.seg { display:flex; gap:6px; } .seg button { flex:1; } .seg button.on { background:var(--accent); color:var(--ink); border:0; font-weight:700; }
#toast { position:fixed; left:50%; transform:translateX(-50%); bottom:120px; background:var(--text); color:var(--ground); padding:10px 16px; border-radius:12px; opacity:0; transition:opacity .2s; pointer-events:none; max-width:90vw; }
#toast.show { opacity:1; }
video { width:100%; border-radius:14px; background:#000; }
.banner { background:var(--live); color:#fff; padding:8px 12px; border-radius:10px; font-weight:700; }
a { color:var(--accent); }
