:root{--bg:#0f172a;--card:#111827;--text:#f8fafc;--muted:#94a3b8;--accent:#22c55e;--line:#253044}*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:linear-gradient(135deg,#0f172a,#111827);color:var(--text)}header{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:1rem;backdrop-filter:blur(12px);background:rgba(15,23,42,.85);border-bottom:1px solid var(--line)}a{color:inherit}.brand{text-decoration:none;font-weight:800}nav{display:flex;gap:.7rem;flex-wrap:wrap}nav a,.btn,button{border:0;border-radius:999px;padding:.75rem 1rem;background:var(--accent);color:#052e16;text-decoration:none;font-weight:700;cursor:pointer}main{width:min(1100px,100%);margin:0 auto;padding:1rem}.hero,.card{background:rgba(17,24,39,.9);border:1px solid var(--line);border-radius:24px;padding:1.25rem;margin:1rem 0;box-shadow:0 12px 40px rgba(0,0,0,.25)}.hero{padding:2rem}h1{font-size:clamp(2rem,8vw,4rem);line-height:1;margin:.5rem 0}h2{margin-top:0}label{display:grid;gap:.4rem;margin:.7rem 0;color:var(--muted)}input,select{width:100%;border:1px solid var(--line);border-radius:14px;padding:.85rem;background:#020617;color:var(--text);font-size:1rem}.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}.match{display:grid;grid-template-columns:1fr auto;gap:1rem;padding:1rem 0;border-top:1px solid var(--line)}.score{display:flex;align-items:center;gap:.4rem}.score input{width:4.2rem;text-align:center}.save{position:sticky;bottom:1rem;width:100%;font-size:1.05rem}.flash{border-radius:16px;background:#064e3b;padding:1rem;margin:.75rem 0}.table{overflow:auto}.table table{width:100%;border-collapse:collapse}.table th,.table td{padding:.85rem;border-bottom:1px solid var(--line);text-align:left}.pill{display:inline-block;margin:.25rem;padding:.35rem .6rem;border-radius:999px;background:#1f2937}small{color:var(--muted)}code{white-space:normal}@media(max-width:800px){header{align-items:flex-start;flex-direction:column}.grid4{grid-template-columns:1fr}.match{grid-template-columns:1fr}.score input{width:50%}nav a{padding:.55rem .75rem}main{padding:.75rem}.hero,.card{border-radius:18px;padding:1rem}}

.hint{color:var(--muted);margin-top:-.25rem}

.match.match-locked{background:rgba(15,23,42,.55);border-color:#334155;opacity:.9}.match.match-locked .score input[disabled]{background:#0b1220;color:#94a3b8;border-color:#334155}.match-locked-note{color:#fbbf24;font-weight:700}.tip-random{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;margin-left:.45rem;padding:0;border-radius:999px;border:1px solid #1d4ed8;background:#1e40af;color:#eff6ff;font-size:1.05rem;line-height:1;cursor:pointer}.tip-random:hover{background:#2563eb}.tip-random:focus-visible{outline:2px solid #93c5fd;outline-offset:2px}.tip-lock-tail{display:inline-flex;align-items:center;justify-content:center;min-width:2rem;height:2rem;margin-left:.45rem;border-radius:999px;border:1px solid #7c2d12;background:#7f1d1d;color:#fee2e2;font-size:1rem;line-height:1}

.points-list{margin:.25rem 0 0;padding-left:1.25rem;color:var(--muted)}.points-list li{margin:.35rem 0}.points-card h2{margin-bottom:.35rem}.tip-info{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;margin-left:.4rem;padding:0;border-radius:999px;background:#2563eb;color:#eff6ff;font-weight:900;vertical-align:middle}.tip-modal{border:0;border-radius:24px;padding:0;background:transparent;color:var(--text);width:min(680px,calc(100% - 1.5rem))}.tip-modal::backdrop{background:rgba(2,6,23,.72);backdrop-filter:blur(4px)}.modal-card{position:relative;background:#111827;border:1px solid var(--line);border-radius:24px;padding:1.25rem;box-shadow:0 20px 70px rgba(0,0,0,.5);max-height:82vh;overflow:auto}.modal-close{position:absolute;right:.8rem;top:.8rem;width:2.2rem;height:2.2rem;padding:0;background:#1f2937;color:var(--text);font-size:1.35rem}.stat-list{display:grid;gap:.7rem}.stat-list>div{display:grid;grid-template-columns:1fr auto;gap:.25rem .75rem;padding:.85rem;border:1px solid var(--line);border-radius:16px;background:#020617}.stat-list small{grid-column:1/-1;line-height:1.4}.stat-list span{font-weight:800;color:var(--accent)}h4{margin:1rem 0 .5rem}@media(max-width:800px){.tip-info{width:1.8rem;height:1.8rem}.modal-card{border-radius:18px;padding:1rem}.stat-list>div{grid-template-columns:1fr}.stat-list span{justify-self:start}}
