:root{color-scheme:dark;--bg:#10151e;--panel:#192230;--line:#2c3949;--text:#f0f4fa;--muted:#a0afc1;--accent:#51dca1}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:15px system-ui,sans-serif}body.light{color-scheme:light;--bg:#edf1f5;--panel:#fff;--line:#dce3ea;--text:#172331;--muted:#526479;--accent:#087c50}header{position:sticky;top:0;background:var(--bg);border-bottom:1px solid var(--line);padding:14px max(16px,calc((100% - 850px)/2));display:flex;justify-content:space-between;align-items:center;z-index:2}.brand,h1{font-weight:900;font-size:27px;letter-spacing:-1px}.brand span,h1 span{color:var(--accent)}.actions,.dates,.quick,nav{display:flex;gap:8px;align-items:center}main{max-width:850px;margin:auto;padding:16px 14px 40px}button,input{font:inherit;color:inherit;background:var(--panel);border:1px solid var(--line);border-radius:9px;padding:10px 13px}button{cursor:pointer}button.selected{background:var(--accent);color:var(--bg);font-weight:700}input{min-width:0}#search{width:100%;margin-top:12px}.notice{font-size:12px;color:var(--muted);margin-bottom:16px}.dates input{flex:1;text-align:center}.quick,nav{margin-top:10px}.quick button,nav button{flex:1;white-space:nowrap;padding:9px 5px}#count{color:var(--muted);font-size:12px}.league{background:var(--panel);border:1px solid var(--line);border-radius:12px;margin-bottom:12px;overflow:hidden}.league-head{display:flex;align-items:center;gap:8px;padding:12px;font-weight:700;background:var(--bg)}.league-head span{flex:1}.star{border:0;background:transparent;color:var(--muted);font-size:19px;padding:5px}.star.on{color:#e7b74c}.match{display:grid;grid-template-columns:50px 1fr 48px 30px;gap:8px;align-items:center;padding:12px 10px;border-top:1px solid var(--line);cursor:pointer}.status{font-size:12px;color:var(--muted);text-align:center}.status.live{color:var(--accent);font-weight:700}.teams,.scores{display:grid;gap:9px}.teams div{display:flex;align-items:center;gap:7px;min-width:0}.teams span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.scores{font-weight:800;text-align:center;font-variant-numeric:tabular-nums}.crest{width:22px;height:22px;display:inline-grid;place-items:center;border-radius:50%;background:var(--line);font-size:10px;flex-shrink:0}.red{color:#fa6565;font-size:10px}dialog{width:min(95%,600px);max-height:90vh;border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:16px;padding:18px}dialog::backdrop{background:#0009}.dialog-head{display:flex;justify-content:space-between;align-items:center}.hero{display:grid;grid-template-columns:1fr 85px 1fr;text-align:center;align-items:center;gap:8px;margin:24px 0}.hero strong{font-size:25px}.muted{color:var(--muted);font-size:13px}.event{display:flex;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.event span{flex:1}.stat{margin:16px 0}.stat div{display:flex;justify-content:space-between;gap:6px}.bar{height:6px;background:#64748b;border-radius:8px;overflow:hidden;margin-top:8px}.bar i{display:block;background:var(--accent);height:100%}.login{max-width:360px;margin:15vh auto}.login input,.login button{width:100%;margin:8px 0}#more{width:100%} [hidden]{display:none!important}

/* v0.2: mobile app shell; keep pinch zoom accessible. */
html{touch-action:manipulation;-webkit-text-size-adjust:100%;overscroll-behavior-y:none}body{min-height:100vh;min-height:100dvh;overscroll-behavior-y:none;-webkit-tap-highlight-color:transparent}button,input,[role=button]{touch-action:manipulation}input,select,textarea{font-size:16px}button,.match,.league-head,.brand{-webkit-user-select:none;user-select:none}input,textarea{-webkit-user-select:text;user-select:text}button{min-height:44px}header{padding-top:calc(12px + env(safe-area-inset-top,0px));padding-left:max(16px,env(safe-area-inset-left,0px),calc((100% - 850px)/2));padding-right:max(16px,env(safe-area-inset-right,0px),calc((100% - 850px)/2))}main{padding-left:max(14px,env(safe-area-inset-left,0px));padding-right:max(14px,env(safe-area-inset-right,0px));padding-bottom:calc(40px + env(safe-area-inset-bottom,0px))}.star{min-width:32px;min-height:44px}.match{grid-template-columns:44px minmax(0,1fr) 30px 34px}.teams{min-width:0}.crest{overflow:hidden}.login{padding-top:env(safe-area-inset-top,0px)}body:has(dialog[open]){overflow:hidden}dialog{overscroll-behavior:contain}button:active{opacity:.75}.flag{width:19px;height:14px;object-fit:contain;flex-shrink:0}.league-title{display:flex;align-items:center;gap:7px}.crest img{width:100%;height:100%;object-fit:contain}.hero .crest{width:44px;height:44px;font-size:15px}.dialog-head{position:sticky;top:0;background:var(--panel);z-index:1;padding-bottom:8px}.dialog-head button{flex-shrink:0}@media(max-width:600px){dialog{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;border:0;border-radius:0;padding:calc(12px + env(safe-area-inset-top,0px)) max(14px,env(safe-area-inset-right,0px)) calc(20px + env(safe-area-inset-bottom,0px)) max(14px,env(safe-area-inset-left,0px));overflow:auto}.dialog-head{top:0}.quick,nav{gap:5px}nav button{font-size:13px}.dates input{width:0}.hero{grid-template-columns:minmax(0,1fr) 90px minmax(0,1fr)}.hero p{overflow-wrap:anywhere}}
