:root{
  --bg:#0B1220;--surface:#131C2E;--surface2:#1A2540;--line:#24304A;--line2:#2C3A58;
  --text:#E9EEF8;--muted:#9AA8C2;--soft:#C8D3E6;--accent:#4D8DFF;--accent-hover:#8DB6FF;
  --gold:#F5C451;--warn:#F0A04B;--ok-bg:#1E3A6B;--ok:#8DB6FF;--ko-bg:#4A2228;--ko:#FFB0A8;
  --v:#2F5C33;--v-t:#D9F7D2;--n:#3A4440;--n-t:#E0E6E2;--d:#6B2E2A;--d-t:#FFDCD7;
  --radius:16px;--nav-h:68px;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--text);font:400 15px/1.4 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-text-size-adjust:100%}
a{color:var(--accent)}a:hover{color:var(--accent-hover)}
button{font:inherit;color:inherit;cursor:pointer}
.app{max-width:560px;margin:0 auto;min-height:100vh;padding-bottom:calc(var(--nav-h) + 20px + env(safe-area-inset-bottom))}
.head{padding:18px 16px 8px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.head h1{margin:0;font:800 22px Archivo,Inter,sans-serif;letter-spacing:.2px}
.sub{font-size:13px;color:var(--muted)}
.icon-btn{width:44px;height:44px;border-radius:12px;border:1px solid var(--line);background:var(--surface);display:flex;align-items:center;justify-content:center;color:var(--text)}
.back{width:44px;height:44px;display:flex;align-items:center;justify-content:center;color:var(--text);text-decoration:none}
.wrap{padding:0 16px;display:flex;flex-direction:column;gap:10px}
.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0 16px}
.tile{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:2px;color:var(--text);text-decoration:none}
.tile b{font:800 20px Archivo,Inter,sans-serif}
.tile span{font-size:11px;color:var(--muted)}
.seg{margin:12px 16px 0;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:4px;gap:4px}
.seg a,.seg button{text-align:center;padding:10px 0;border-radius:9px;color:var(--soft);font:600 13px Inter,sans-serif;text-decoration:none;border:0;background:transparent}
.seg .on{background:var(--accent);color:var(--bg)}
.chips{display:flex;gap:8px;overflow-x:auto;padding:12px 16px 2px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{border:1px solid var(--line2);background:var(--surface);color:var(--soft);border-radius:999px;padding:7px 12px;font:500 13px Inter,sans-serif;min-height:34px;white-space:nowrap}
.chip.on{background:var(--accent);color:var(--bg);border-color:var(--accent)}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:14px;display:flex;flex-direction:column;gap:8px;color:var(--text);text-decoration:none}
a.card:hover{border-color:var(--line2);color:var(--text)}
.meta{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted)}
.teams{font:600 16px Archivo,Inter,sans-serif}
.prono{display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--surface2);border-radius:10px;padding:8px 10px}
.prono .lib{font-size:14px}
.prono .right{display:flex;gap:8px;align-items:center;white-space:nowrap}
.stars{color:var(--gold);font-size:13px;letter-spacing:1px}
.cote{font:600 13px Inter,sans-serif}
.cote.est{color:var(--muted)}
.warn{color:var(--warn)}
.h{font:600 12px Inter,sans-serif;letter-spacing:.6px;text-transform:uppercase;color:var(--muted);margin:6px 2px 0}
.empty{background:var(--surface);border:1px dashed var(--line2);border-radius:var(--radius);padding:18px;color:var(--muted);text-align:center;font-size:14px}
.sc{display:inline-block;background:var(--surface2);border:1px solid var(--line2);border-radius:8px;padding:6px 10px;font:600 14px Archivo,Inter,sans-serif}
.scores{display:flex;flex-wrap:wrap;gap:6px}
.ticket{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.ticket .top{display:flex;justify-content:space-between;align-items:center;padding:12px 14px}
.ticket .sel{display:flex;justify-content:space-between;gap:8px;padding:9px 14px;border-top:1px dashed var(--line2);font-size:13px}
.tag{font:800 13px Archivo,Inter,sans-serif;letter-spacing:1px;padding:5px 10px;border-radius:8px}
.tag.safe{background:#21452A;color:#B8F28A}.tag.fun{background:#4A3E1A;color:#F5D778}.tag.maxi{background:#4D2420;color:#FFB3A8}
.big{font:800 20px Archivo,Inter,sans-serif}
.match-head{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;padding:4px 16px 14px}
.team{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.team .name{font:600 16px Archivo,Inter,sans-serif}
.form{display:flex;gap:3px}
.f{width:24px;height:24px;border-radius:6px;display:flex;align-items:center;justify-content:center;font:600 12px Inter,sans-serif}
.f.V{background:var(--v);color:var(--v-t)}.f.N{background:var(--n);color:var(--n-t)}.f.D{background:var(--d);color:var(--d-t)}
.vs{font:800 18px Archivo,Inter,sans-serif;color:var(--muted)}
.crit{display:grid;grid-template-columns:1.4fr repeat(2,minmax(0,1fr));gap:8px 6px;font-size:13px}
.crit .c{text-align:center}
.yes{color:var(--accent)}.no{color:var(--muted)}
.stat3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;text-align:center}
.stat3 b{font:800 18px Archivo,Inter,sans-serif;display:block}
.stat3 span{font-size:11px;color:var(--muted)}
details{background:var(--surface2);border-radius:10px;padding:8px 10px}
details summary{cursor:pointer;font-size:14px;list-style:none;display:flex;justify-content:space-between;gap:8px;align-items:center}
details summary::-webkit-details-marker{display:none}
details ul{margin:8px 0 2px;padding-left:18px;color:var(--soft);font-size:13px}
.rows{display:flex;flex-direction:column}
.row{display:flex;justify-content:space-between;gap:8px;padding:8px 0;border-top:1px solid var(--line);font-size:13px}
.row:first-child{border-top:0}
.list{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.it{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 12px;border-top:1px solid #1E2944}
.it:first-child{border-top:0}
.dot{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.dot.ok{background:var(--ok-bg);color:var(--ok)}.dot.ko{background:var(--ko-bg);color:var(--ko)}.dot.wait{background:var(--surface2);color:var(--muted)}
.it .t{font:600 14px Inter,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.it .s{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.day{display:flex;justify-content:space-between;align-items:baseline;font:600 13px Inter,sans-serif;color:var(--muted);padding:2px 2px 0}
.bar{display:grid;grid-template-columns:130px minmax(0,1fr) 46px;align-items:center;gap:8px;font-size:13px}
.track{height:8px;border-radius:4px;background:var(--line);overflow:hidden}
.fill{height:8px;border-radius:4px;background:var(--accent)}
.kpi{display:flex;justify-content:space-between;align-items:center}
.kpi b{font:800 34px Archivo,Inter,sans-serif;color:var(--accent);white-space:nowrap}
label{font:600 12px Inter,sans-serif;letter-spacing:.6px;text-transform:uppercase;color:var(--muted)}
input[type=text]{height:50px;border-radius:12px;border:1px solid var(--line2);background:var(--surface);color:var(--text);font:500 16px Inter,sans-serif;padding:0 14px;width:100%}
.btn{height:52px;border-radius:12px;border:none;background:var(--accent);color:var(--bg);font:700 16px Inter,sans-serif;width:100%}
.btn[disabled]{opacity:.45;cursor:not-allowed}
.set{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;border-top:1px solid #1E2944;font-size:14px;min-height:48px}
.set:first-of-type{border-top:0}
.val{font:600 14px Inter,sans-serif;background:var(--surface2);border:1px solid var(--line2);border-radius:8px;padding:6px 10px;white-space:nowrap}
.note{font-size:12px;color:var(--muted);line-height:1.45;margin:4px 2px}
.nav{position:fixed;left:0;right:0;bottom:0;height:calc(var(--nav-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:#0F1728;border-top:1px solid var(--line);display:flex;justify-content:space-around;align-items:center;z-index:10}
.nav a{display:flex;flex-direction:column;align-items:center;gap:3px;text-decoration:none;color:var(--muted);font:500 11px Inter,sans-serif;min-width:60px;min-height:44px;justify-content:center}
.nav a.on{color:var(--accent)}
.loading{padding:60px 16px;text-align:center;color:var(--muted)}
.banner{margin:10px 16px 0;padding:10px 12px;border-radius:12px;background:#2A2412;border:1px solid #5A4325;color:#F5D7A0;font-size:13px}
