:root{color-scheme:dark;--bg: #0D1B2A;--surface: #16293D;--surface-variant: #213A52;--on: #E7ECEA;--muted: #B9C2C0;--outline: #56636A;--accent: #E30F29;--live: #E4572E;--error: #FF6B6B;--home: #E30F29;--away: #7FA8C9;--win: #4CAF50;--win-light: #A5D6A7;--loss: #EF5350;--loss-light: #EF9A9A;--nav-h: 64px;--safe-b: env(safe-area-inset-bottom, 0px);--safe-t: env(safe-area-inset-top, 0px)}*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--on)}body{font:15px/1.35 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;-webkit-tap-highlight-color:transparent;overscroll-behavior-y:contain;overflow-x:hidden}button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}h1{font-size:24px;font-weight:500;margin:0}h2{font-size:18px;font-weight:500;margin:16px 0 6px}p{margin:6px 0}.content{padding-top:var(--safe-t);padding-bottom:calc(var(--nav-h) + var(--safe-b));min-height:100vh}.content.no-nav{padding-bottom:var(--safe-b)}.pad{padding:12px 16px}.center{text-align:center}.muted{color:var(--muted)}.small{font-size:13px}.xsmall{font-size:11.5px}.strong{font-weight:700}.big{font-size:16px}.accent{color:var(--accent)}.mt4{margin-top:4px}.mt8{margin-top:8px}.error{color:var(--error)}.banner{background:#4a2a12;color:#ffd9b8;padding:8px 16px;font-size:13px}.screen-header{background:var(--bg)}.screen-header.sticky{position:sticky;top:0;z-index:5;padding-top:var(--safe-t);margin-top:calc(-1 * var(--safe-t))}.screen-title-row{padding:12px 16px;display:flex;justify-content:space-between;align-items:center}.accent-bar{height:3px;background:var(--accent)}.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:10;display:flex;background:var(--surface);border-top:1px solid rgba(86,99,106,.4);padding-bottom:var(--safe-b);height:calc(var(--nav-h) + var(--safe-b))}.tabbar button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:12px;color:var(--muted)}.tabbar button.on{color:var(--on)}.tabbar button.on svg{background:#3b2a35;border-radius:16px;padding:2px 18px;width:60px;box-sizing:content-box}.tabbar svg{padding:2px 18px;box-sizing:content-box}.logo{object-fit:contain;display:block;flex:none}.logo-fallback{display:block;flex:none}.team-badge{display:flex;align-items:center;gap:8px;flex:1;min-width:0;text-align:left}.team-badge.reversed{flex-direction:row-reverse;text-align:right}.team-short{font-weight:700;font-size:16px;white-space:nowrap}.compact .team-short{font-size:14px}.game{background:var(--surface);padding:14px 16px;border-bottom:1px solid rgba(86,99,106,.35);cursor:pointer}.game.compact{padding:12px 16px}.game.fav{background:var(--surface-variant)}.game-line{display:flex;align-items:center}.game-center{display:flex;flex-direction:column;align-items:center;padding:0 8px;text-align:center}.game-center.narrow{max-width:160px}.score{font-size:22px;font-weight:700;white-space:nowrap}.score.sm{font-size:16px}.score.muted{font-weight:400}.live-label{color:var(--live);font-size:11.5px}.win{margin-top:8px}.win-row{display:flex;align-items:center;font-size:12.5px}.win-bar{flex:1;display:flex;gap:3px;height:8px;margin:0 8px}.win-bar span{border-radius:4px;border:1px solid rgba(86,99,106,.6)}.win-live{color:var(--live);font-size:11.5px;text-align:center;margin-top:2px}.win-notes{display:flex;justify-content:space-between;font-size:11.5px;color:var(--muted);margin-top:2px}.detail{margin-top:14px;cursor:default}.periods{display:flex;gap:8px}.periods span{flex:1;background:var(--bg);padding:6px 0;text-align:center}.detail-tabs{display:flex;justify-content:space-between;margin-top:14px;padding-bottom:8px;border-bottom:1px solid rgba(86,99,106,.3);margin-bottom:12px}.detail-tabs button{font-size:14px;color:var(--muted);padding:4px 2px}.detail-tabs button.on{color:var(--accent);font-weight:700}.period-title{font-size:12px;letter-spacing:.04em;color:var(--muted);margin:14px 0 6px;font-weight:500}.tl-row{display:flex}.tl-half{flex:1;min-width:0}.tl-axis{width:28px;flex:none;position:relative;display:flex;justify-content:center}.tl-axis:before{content:"";position:absolute;top:0;bottom:0;width:2px;background:#56636a59}.tl-mark{position:relative;width:22px;height:22px;border-radius:50%;background:var(--surface);display:grid;place-items:center;margin-top:1px}.game.fav .tl-mark{background:var(--surface-variant)}.tl-icon{width:18px;height:18px;filter:brightness(0) invert(.75)}.tl-icon.goal{filter:none}.tl-dot{width:7px;height:7px;border-radius:50%;background:var(--muted)}.tl-side{display:flex;gap:8px;padding-bottom:16px}.tl-side.left{flex-direction:row-reverse;text-align:right}.tl-time{padding-top:2px;font-size:14px}.stat{padding:5px 0}.stat-row{display:flex;justify-content:space-between;align-items:baseline;gap:6px}.stat-row span{text-align:center;flex:2}.stat-row b{flex:1}.stat-row b:last-child{text-align:right}.stat-bar{display:flex;gap:2px;height:5px;margin-top:3px}.stat-bar .home{background:var(--home)}.stat-bar .away{background:var(--away)}.stat-bar.empty span{background:var(--surface-variant)}.stat-head{display:flex;justify-content:space-between;font-weight:700;margin-bottom:6px}.dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin:0 6px;vertical-align:middle}.dot.home{background:var(--home)}.dot.away{background:var(--away)}.shotmap{width:100%;display:block}.legend{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px;margin-top:6px}.team-choice{display:flex;gap:16px;margin-bottom:8px}.team-choice button{color:var(--muted)}.team-choice button.on{color:var(--on);font-weight:700}table.players{width:100%;border-collapse:collapse;font-size:13px;table-layout:fixed}table.players th{font-size:11.5px;font-weight:500;color:var(--muted);text-align:right;padding:6px 0;cursor:pointer}table.players th.on{color:var(--accent);font-weight:700}table.players td{text-align:right;padding:2px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}table.players th:first-child,table.players td:first-child{text-align:left;width:38%}table.players th:last-child{width:15%}table.players tr.hl td:nth-child(2),table.players tr.hl td:nth-child(3),table.players tr.hl td:nth-child(4){font-weight:700}.pair{display:flex;padding:6px 0}.pair>div{flex:1;padding:0 8px;min-width:0}.pair .end{text-align:right}.line-title{background:var(--surface-variant);text-align:center;font-weight:700;font-size:12px;padding:6px 0;margin:14px 0 8px}table.standings{width:100%;border-collapse:collapse;font-size:14px}table.standings th{background:var(--surface);font-size:12px;font-weight:500;padding:10px 4px;text-align:center}table.standings td{background:var(--surface);padding:10px 4px;text-align:center;border-bottom:1px solid rgba(86,99,106,.35)}table.standings tr.fav td{background:var(--surface-variant)}table.standings tr.cutoff td{border-bottom:3px solid #fff}table.standings .left{text-align:left}table.standings th:first-child,table.standings td:first-child{padding-left:16px;width:36px;text-align:left}table.standings td:last-child,table.standings th:last-child{padding-right:16px}.st-team{display:flex;align-items:center;gap:10px}table.standings tr{cursor:pointer}.day-header{font-size:14px;font-weight:700;color:var(--muted);background:var(--bg);padding:8px 16px;margin:0;scroll-margin-top:8px}.team-head{display:flex;align-items:center;gap:12px;padding:8px 12px}.back{font-size:24px;width:40px;height:40px}.team-head h1{font-weight:700;font-size:21px}.chips{display:flex;overflow-x:auto;padding:10px 0;scrollbar-width:none}.chips::-webkit-scrollbar{display:none}.chip{flex:none;width:78px;padding:0 5px;display:flex;flex-direction:column;align-items:center}.chip-day{font-size:22px;font-weight:700}.chip-res{margin-top:8px;width:100%;padding:8px 2px;font-size:11.5px;font-weight:700;text-align:center;background:var(--surface-variant);color:var(--muted)}.chip-res.win{background:var(--win);color:#000}.chip-res.win-light{background:var(--win-light);color:#000}.chip-res.loss{background:var(--loss);color:#000}.chip-res.loss-light{background:var(--loss-light);color:#000}.team-list{list-style:none;margin:0;padding:0 16px}.team-list li{display:flex;align-items:center;gap:12px;padding:8px 4px;border-bottom:1px solid var(--surface-variant);cursor:pointer}.team-list li.on{background:var(--surface-variant)}.team-list input{width:20px;height:20px;accent-color:var(--accent);pointer-events:none}.buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}button.secondary{border:1px solid var(--outline);border-radius:20px;padding:9px 18px}button.primary{background:var(--accent);color:#fff;border-radius:22px;padding:12px 18px;font-weight:600;width:100%}button.primary:disabled{opacity:.6}button.link{color:var(--away);padding:10px}.dialog-backdrop{position:fixed;inset:0;background:#0000008c;display:grid;place-items:center;z-index:20;padding:16px}.dialog{background:var(--surface-variant);border-radius:24px;padding:22px;max-width:360px;width:100%}.dialog h3{margin:0 0 12px;font-size:22px;font-weight:500}.dialog-buttons{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:4px;margin-top:12px}.auth{max-width:380px;margin:0 auto;padding:calc(48px + var(--safe-t)) 20px 32px;text-align:center}.auth h1{margin-top:12px}.auth form{text-align:left;margin-top:24px;display:flex;flex-direction:column;gap:14px}.auth label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted)}.auth input{font:inherit;font-size:16px;color:var(--on);background:var(--surface);border:1px solid var(--outline);border-radius:10px;padding:12px}.auth input:focus{outline:2px solid var(--away);border-color:transparent}.ptr{overflow:hidden;display:grid;place-items:center;transition:height .15s}.spinner{width:24px;height:24px;border-radius:50%;border:3px solid var(--surface-variant);border-top-color:var(--accent);display:inline-block;opacity:.4}.spinner.on{opacity:1;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.admin-form{display:flex;flex-direction:column;gap:12px}.admin-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted)}.admin-form input{font:inherit;font-size:16px;color:var(--on);background:var(--surface);border:1px solid var(--outline);border-radius:10px;padding:12px}.admin-form input:focus{outline:2px solid var(--away);border-color:transparent}.admin-result{background:var(--surface-variant);border-radius:16px;padding:14px 16px;margin-bottom:8px}.admin-result dl{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:10px 0}.admin-result dt{color:var(--muted);font-size:13px}.admin-result dd{margin:0;font-weight:700;word-break:break-all}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:17px;letter-spacing:.03em}.accounts{list-style:none;margin:0;padding:0}.accounts li{background:var(--surface);border-radius:12px;padding:10px 12px;margin-bottom:8px}.accounts li.off{opacity:.6}.acc-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.tag{font-size:11px;border:1px solid var(--outline);border-radius:10px;padding:1px 8px;color:var(--muted)}.tag.warn{border-color:#b8860b;color:#f0c674}.acc-actions{display:flex;flex-wrap:wrap;margin:2px -10px -6px}.acc-actions .link{padding:8px 10px;font-size:14px}button.link.danger{color:var(--error)}button:disabled{opacity:.5}h3.sub{font-size:15px;font-weight:600;margin:18px 0 2px}.block{display:block}.warn-text{color:#f0c674}.hint-box{background:var(--surface-variant);border-radius:12px;padding:12px 14px;font-size:14px;line-height:1.45}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;cursor:pointer}.switch-row input{appearance:none;-webkit-appearance:none;width:52px;height:32px;border-radius:16px;flex:none;background:var(--surface-variant);border:2px solid var(--outline);position:relative;transition:background .15s;cursor:pointer}.switch-row input:after{content:"";position:absolute;top:4px;left:4px;width:20px;height:20px;border-radius:50%;background:var(--outline);transition:transform .15s,background .15s}.switch-row input:checked{background:var(--accent);border-color:var(--accent)}.switch-row input:checked:after{transform:translate(20px);background:#fff}.switch-row input:disabled{opacity:.5}.check-row{display:flex;align-items:flex-start;gap:12px;padding:7px 0;cursor:pointer}.check-row input{width:20px;height:20px;margin:1px 0 0;flex:none;accent-color:var(--accent)}.check-row.indent{padding-left:32px}.stade{margin-top:10px}.stade.on{background:#e30f291f;border:1px solid rgba(227,15,41,.4);border-radius:12px;padding:8px 12px}.stade>.secondary{width:100%}.trains{list-style:none;margin:6px 0;padding:0;font-size:14px}.trains li{padding:6px 0;border-bottom:1px solid rgba(86,99,106,.35)}.suggestions{list-style:none;margin:4px 0 0;padding:0;background:var(--surface);border-radius:10px}.suggestions button{display:block;width:100%;text-align:left;padding:10px 12px}.walk{display:flex;align-items:center;gap:10px;margin-top:12px}.walk span{flex:1}button.round{width:40px;height:40px;padding:0;font-size:20px}.envoi{list-style:none;margin:8px 0 4px;padding:0;display:flex;flex-direction:column;gap:8px}.envoi .secondary{width:100%}
