:root{--bg: #000;--fg: #fff;--dim: #9aa0a6;--line: #26282c;--surface: #17191d;--surface-2: #0b0c0e;--amber: #ffb020;--blue: #2563eb;--pip-blue: #5b8def;--red: #ef4444;--ok: #34d399;--safe-t: env(safe-area-inset-top, 0px);--safe-b: env(safe-area-inset-bottom, 0px);--safe-l: env(safe-area-inset-left, 0px);--safe-r: env(safe-area-inset-right, 0px)}*{box-sizing:border-box}html{touch-action:manipulation}html,body{margin:0;height:100dvh;overflow:hidden;background:var(--bg);color:var(--fg);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;-webkit-text-size-adjust:100%;overscroll-behavior:none}@media(display-mode:standalone){html,body{height:100lvh}}body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}input{-webkit-user-select:text;user-select:text}#app{height:100%;display:flex;flex-direction:column;overflow:hidden;position:relative}button{font:inherit;color:inherit;background:none;border:none;padding:0;cursor:pointer;font-variant-numeric:tabular-nums}button:disabled{cursor:default}:focus-visible{outline:3px solid #fff;outline-offset:3px}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.play{flex:1;display:flex;flex-direction:column;gap:8px;width:100%;max-width:560px;margin:0 auto;padding:calc(var(--safe-t) + 26px) calc(var(--safe-r) + 10px) calc(var(--safe-b) + 10px) calc(var(--safe-l) + 10px);min-height:0;overflow:hidden}.scoreband{display:flex;gap:8px}.score-box{flex:1;background:var(--surface-2);border:1px solid var(--line);border-radius:14px;display:flex;flex-direction:column;align-items:stretch;overflow:hidden}.score-value{font-size:44px;font-weight:800;line-height:1;color:var(--accent);padding:12px 0 8px;min-height:64px;text-align:center}.score-value:active{background:#16181c}.score-label{font-size:12px;font-weight:800;letter-spacing:.1em;color:var(--dim);text-transform:uppercase;padding:8px 4px 10px;min-height:44px;text-align:center;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tabs{display:flex;gap:8px}.tab{flex:1;background:#141619;border:1px solid var(--line);border-radius:13px;padding:10px 6px 9px;display:flex;flex-direction:column;align-items:center;gap:7px;color:var(--dim)}.tab[data-selected=true]{border-color:var(--accent);color:var(--accent);background:#17191d}.tab-name{font-size:15px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tab-marks{display:flex;gap:4px}.tab-marks i{width:9px;height:6px;border-radius:2px;background:#2a2d31;display:block}.tab-marks i[data-on=true]{background:var(--red)}.grid{flex:1;display:grid;grid-template-columns:repeat(2,1fr);grid-auto-rows:minmax(62px,1fr);gap:8px;min-height:0;overflow-y:auto;overscroll-behavior:contain}.tile{background:var(--surface);border-radius:14px;border:1.5px solid transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;position:relative;overflow:hidden}.tile:active{background:#22252b}.tile-number{font-size:38px;font-weight:800;line-height:1}.tile[data-state=near-blue]{background:#3a2a10;border-color:var(--amber)}.tile[data-state=near-red]{background:#33161a;border-color:var(--red)}.tile[data-state=bin]{background:#0d1a33;border-color:#3b6de0}.tile[data-state=bin] .tile-number{color:#cfe0ff}.tile[data-state=off]{background:var(--surface-2);opacity:.45}.tile[data-state=off] .tile-number{text-decoration:line-through}.tile-note{font-size:11px;font-weight:800;letter-spacing:.1em;color:var(--red)}.tile-bin{font-size:14px;font-weight:800;color:#7fa6ee}.tile-add{background:none;border:1.5px dashed #34383e;color:var(--dim);font-size:30px;font-weight:700}.tile-confirm{position:absolute;inset:0;z-index:1;pointer-events:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:var(--amber);color:#1a1203;font-size:16px;font-weight:900;letter-spacing:.04em}.tile-confirm small{font-size:11px;font-weight:900;letter-spacing:.1em}.tile-confirm[data-motion=true]{animation:offence-confirm .9s cubic-bezier(.2,.8,.2,1) both}@keyframes offence-confirm{0%{opacity:.72;transform:scale(.98);filter:brightness(1.2)}12%{opacity:1;transform:scale(1);filter:brightness(1)}84%{opacity:1;transform:scale(1);filter:brightness(1)}to{opacity:0;transform:scale(1);filter:brightness(1)}}.pips{display:flex;gap:9px;align-items:center}.pip-group{display:flex;gap:5px}.pips i{width:9px;height:9px;border-radius:50%;background:#34383e;display:block}.pips i[data-on=true]{background:var(--amber)}.pips i[data-on=true][data-carded=true]{background:var(--pip-blue)}.pips i[data-on=true][data-red]{background:var(--red)}.bottom{display:flex;gap:8px}.bottom-btn{flex:1;border:1px solid var(--line);border-radius:13px;padding:15px 0;font-size:13px;font-weight:800;letter-spacing:.1em;color:var(--dim)}.bottom-btn-undo{color:var(--fg)}.bottom-btn:disabled{color:#3a3f47}.bottom-btn:not(:disabled):active{background:#16181c}.overlay{position:absolute;inset:0;background:#000000b8;display:flex;align-items:flex-end;justify-content:center;z-index:10}.sheet{width:100%;max-width:460px;background:#101318;border:1px solid #33383f;border-bottom:none;border-radius:20px 20px 0 0;padding:18px 16px calc(var(--safe-b) + 18px)}.sheet-title{font-size:12px;font-weight:800;letter-spacing:.12em;color:var(--dim);margin:0 0 14px;text-align:center}.sheet-label{display:block;font-size:12px;font-weight:800;letter-spacing:.1em;color:var(--dim);margin:0 0 8px}.sheet-actions{display:flex;gap:8px;margin-top:16px}.sheet-btn{flex:1;border:1px solid #3a3f47;border-radius:13px;padding:16px 0;font-size:14px;font-weight:800;letter-spacing:.08em;color:var(--dim)}.sheet-btn-go{background:#123a29;border-color:var(--ok);color:var(--ok)}.sheet-btn:disabled{opacity:.35}.offence-types{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.offence-type{min-height:68px;background:#1c2027;border:1px solid #3a3f47;border-radius:13px;font-size:14px;font-weight:800;letter-spacing:.06em}.offence-type:active{background:#2a3038;border-color:var(--amber);color:var(--amber)}.swatches{display:flex;gap:8px;margin-bottom:18px}.swatch{flex:1;aspect-ratio:1;border-radius:12px;border:2px solid transparent;max-height:54px}.swatch[data-selected=true]{border-color:var(--fg);box-shadow:0 0 0 2px #101318 inset}.sheet-input{width:100%;background:#1c2027;border:1px solid #3a3f47;border-radius:12px;color:var(--fg);font-size:20px;font-weight:700;letter-spacing:.04em;padding:14px;text-transform:uppercase}.sheet-input::placeholder{color:#9aa0a6;opacity:1}.pad-readout{font-size:46px;font-weight:800;text-align:center;margin:0 0 12px;line-height:1;font-variant-numeric:tabular-nums}.pad-readout[data-empty=true]{color:#3a3f47}.pad-warning{color:var(--amber);font-size:14px;text-align:center;margin:-6px 0 10px}.pad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.pad-key{background:#1c2027;border-radius:13px;padding:16px 0;font-size:26px;font-weight:800}.pad-key:active{background:#262b33}.pad-key-dim{font-size:15px;color:var(--dim)}.hold-btn{position:relative;overflow:hidden;flex:1;border:1px solid rgba(255,255,255,.45);border-radius:12px;padding:15px 0;text-align:center}.hold-fill{position:absolute;inset:0;transform:scaleX(0);transform-origin:left;background:#ffffff47}.hold-btn[data-holding=true] .hold-fill{transform:scaleX(1);transition:transform var(--hold-ms) linear}.hold-label{position:relative;font-size:12px;font-weight:800;letter-spacing:.08em}.card-screen{position:absolute;inset:0;z-index:30;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px 20px calc(var(--safe-b) + 84px)}.card-screen[data-colour=blue]{background:var(--blue)}.card-screen[data-colour=red]{background:#d01b1b}.card-number{font-size:clamp(110px,34vh,190px);font-weight:900;line-height:.9;letter-spacing:-.04em;margin:0}.card-title{font-size:26px;font-weight:800;letter-spacing:.16em;margin:14px 0 0}.card-who{font-size:14px;letter-spacing:.12em;opacity:.8;margin:6px 0 0}.card-also{font-size:19px;font-weight:900;letter-spacing:.07em;line-height:1.3;margin:20px 0 0;padding-top:16px;width:100%;border-top:1px solid rgba(255,255,255,.34)}.card-note{font-size:13px;letter-spacing:.1em;opacity:.85;margin:12px 0 0;font-weight:700}.card-foot{position:absolute;left:16px;right:16px;bottom:calc(var(--safe-b) + 18px);display:flex;gap:8px}.penalty-screen{position:absolute;inset:0;z-index:30;background:#160809;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px 20px calc(var(--safe-b) + 84px)}.penalty-title{font-size:46px;font-weight:900;color:var(--red);margin:0;letter-spacing:.02em}.penalty-to{font-size:20px;font-weight:800;letter-spacing:.1em;margin:16px 0 0}.penalty-why{font-size:15px;color:var(--dim);margin:10px 0 0;line-height:1.5}.penalty-ok{position:absolute;left:16px;right:16px;bottom:calc(var(--safe-b) + 18px);background:var(--red);color:#fff;border-radius:13px;padding:18px 0;font-size:14px;font-weight:800;letter-spacing:.1em}.hold-menu{align-items:center}.hold-menu-inner{width:calc(100% - 32px);max-width:400px;padding:20px;background:#101318;border:1px solid #33383f;border-radius:18px;display:flex;flex-direction:column;align-items:center;gap:10px}.hold-menu-who{font-size:11px;letter-spacing:.14em;color:var(--dim);font-weight:800;margin:0}.hold-menu-number{font-size:84px;font-weight:900;line-height:1;margin:0 0 8px}.menu-btn{width:100%;text-align:center;padding:17px 0;border-radius:13px;font-size:15px;font-weight:800;letter-spacing:.08em}.menu-btn-blue{background:var(--blue);color:#fff}.menu-btn-red{background:var(--red);color:#fff}.menu-btn-cancel{border:1px solid #3a3f47;color:var(--dim)}.hold-menu[data-armed=false] .menu-btn{opacity:.55}.kickoff{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;text-align:center;width:100%;max-width:560px;margin:0 auto;padding:calc(var(--safe-t) + 20px) calc(var(--safe-r) + 24px) calc(var(--safe-b) + 20px) calc(var(--safe-l) + 24px)}.kickoff-title{font-size:14px;letter-spacing:.16em;color:var(--dim);font-weight:700;margin:0}.stepper{display:flex;align-items:center;gap:16px;margin:22px 0 6px}.stepper-btn{width:64px;height:64px;border-radius:18px;border:1px solid #4a4e55;font-size:32px;font-weight:800;display:flex;align-items:center;justify-content:center}.stepper-btn:active{background:#16181c}.stepper-value{font-size:62px;font-weight:900;line-height:1;min-width:92px}.stepper-unit{font-size:11px;letter-spacing:.18em;color:var(--dim);font-weight:800;margin:0 0 20px}.halves{display:flex;gap:8px;width:100%;margin-bottom:24px}.halves-btn{flex:1;border:1px solid var(--line);border-radius:13px;padding:14px 4px;font-size:13px;color:var(--dim);font-weight:700;letter-spacing:.06em}.halves-btn[data-selected=true]{color:var(--fg);border-color:#585c63;background:#15171a}.kickoff-go{width:178px;height:178px;border-radius:50%;background:#123a29;border:2px solid var(--ok);color:var(--ok);font-size:26px;font-weight:900;letter-spacing:.04em}.kickoff-go:active{background:#17523a}.kickoff-derived{font-size:12px;letter-spacing:.1em;color:var(--dim);font-weight:700;margin:18px 0 0}.kickoff-history{margin-top:18px;padding:12px 20px;border:1px solid var(--line);border-radius:12px;color:var(--dim);font-size:12px;letter-spacing:.1em;font-weight:800}.report-screen,.history-screen{flex:1;width:100%;max-width:720px;margin:0 auto;display:flex;flex-direction:column;min-height:0;padding:calc(var(--safe-t) + 20px) calc(var(--safe-r) + 16px) calc(var(--safe-b) + 16px) calc(var(--safe-l) + 16px)}.report-head{display:flex;align-items:center;justify-content:space-between;min-height:44px;font-size:12px;font-weight:800;letter-spacing:.14em;color:var(--ok)}.report-head button{min-height:40px;padding:0 12px;border:1px solid var(--line);border-radius:9px;color:var(--dim);font-size:11px;font-weight:800;letter-spacing:.08em}.report-head-actions{display:flex;gap:7px}.report-score{display:flex;gap:8px;margin:10px 0 7px}.report-score>div{flex:1;display:flex;flex-direction:column;align-items:center;padding:12px 8px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}.report-score strong{font-size:48px;line-height:1;font-weight:900}.report-score span{max-width:100%;margin-top:7px;color:var(--dim);font-size:11px;font-weight:800;letter-spacing:.1em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.report-meta{margin:0 0 10px;text-align:center;color:var(--dim);font-size:10px;font-weight:800;letter-spacing:.11em}.report-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:0 14px 0 2px}.report-body section{border-top:1px solid var(--line);padding:15px 0}.report-body h2{margin:0 0 9px;color:var(--dim);font-size:10px;letter-spacing:.14em}.report-body p{margin:0;color:var(--dim);font-size:14px}.goal-list,.report-players,.report-timeline{display:flex;flex-direction:column}.goal-list>div,.report-players>div,.report-timeline>div{display:grid;align-items:baseline;gap:8px;padding:9px 2px;border-bottom:1px solid #1a1c20}.goal-list>div{grid-template-columns:65px 1fr auto}.goal-list b{color:var(--ok);font-size:12px}.goal-list span{font-weight:800;font-size:14px}.goal-list strong{font-size:13px}.report-types{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.report-types>div{padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2)}.report-types b{float:right;color:var(--amber);font-size:24px;line-height:.9}.report-types span,.report-types small{display:block}.report-types span{font-size:11px;letter-spacing:.08em;font-weight:800}.report-types small{margin-top:5px;color:var(--dim);font-size:9px;font-weight:700}.report-players>div{grid-template-columns:1fr auto auto;font-size:13px}.report-players span{font-weight:800}.report-players b{color:var(--amber);font-size:11px;letter-spacing:.04em}.report-players small{color:var(--dim);font-size:10px;font-weight:800}.report-timeline>div{grid-template-columns:64px minmax(0,1fr) auto;font-size:12px}.report-timeline time{color:var(--dim);font-weight:800;font-variant-numeric:tabular-nums}.report-timeline span{font-weight:800;min-width:0}.report-timeline b{color:var(--dim);font-size:10px;text-align:right}.report-timeline>div[data-kind=goal] span{color:var(--ok)}.report-timeline>div[data-kind=card] span{color:#a8c4ff}.report-timeline>div[data-kind=penalty] span{color:var(--amber)}.report-actions{padding-top:10px}.report-actions .sheet-btn{width:100%}.history-list{display:flex;flex-direction:column;gap:8px;overflow-y:auto;padding-right:10px;scrollbar-gutter:stable}.history-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;border:1px solid var(--line);border-radius:13px;background:var(--surface-2);overflow:hidden}.history-open{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0;padding:14px;text-align:left}.history-open:active{background:#15171a}.history-list time,.history-list span{color:var(--dim);font-size:10px;letter-spacing:.1em;font-weight:800}.history-list strong{max-width:100%;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-delete{align-self:stretch;min-width:72px;padding:0 12px;border-left:1px solid var(--line);color:#ff7b84;font-size:10px;font-weight:800;letter-spacing:.08em}.history-delete:active{background:#321216}.history-empty{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;text-align:center;color:var(--dim)}.history-empty b{color:var(--fg);font-size:14px;letter-spacing:.08em}.history-empty span{max-width:240px;font-size:13px;line-height:1.5}.export-choice{width:100%;min-height:68px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;padding:12px 15px;margin-bottom:8px;border:1px solid #3a3f47;border-radius:13px;background:#1c2027;text-align:left}.export-choice-primary{border-color:#287a5c;background:#123a29;color:var(--ok)}.export-choice span{font-size:14px;font-weight:850;letter-spacing:.07em}.export-choice small{color:var(--dim);font-size:12px;font-weight:650;letter-spacing:normal}.export-choice:active{background:#262b33}.export-choice-primary:active{background:#17523a}.export-choice:disabled{opacity:.5}.export-copy{width:100%;min-height:48px;color:var(--dim);font-size:11px;font-weight:800;letter-spacing:.1em}.export-status{min-height:18px;margin:3px 0 0;text-align:center;color:var(--ok);font-size:10px;font-weight:850;letter-spacing:.1em}.export-status[data-tone=error],.delete-match-error{color:#ff7b84}.delete-match-score{display:block;margin:3px 0 10px;text-align:center;font-size:19px}.delete-match-detail{max-width:330px;margin:0 auto 18px;text-align:center;color:var(--dim);font-size:13px;line-height:1.45}.delete-match-error{margin:-5px 0 12px;text-align:center;font-size:10px;font-weight:850;letter-spacing:.1em}.menu-row-delete{background:#321216;color:#ff8f96}.menu-row-delete:active{background:#48171c}.clockbar{display:flex;align-items:center;gap:10px;padding:0 4px}.clock-time{font-size:26px;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums}.clock-time[data-up=true]{color:var(--amber)}.clock-time[data-running=false]{opacity:.5}.clock-half{font-size:11px;color:var(--dim);letter-spacing:.1em;font-weight:700}.clock-menu{margin-left:auto;font-size:11px;color:var(--dim);letter-spacing:.08em;border:1px solid var(--line);border-radius:9px;padding:8px 12px;min-height:44px;font-weight:700}.binstrip{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#0d1a33;border:1px solid #24406f;border-radius:11px;padding:8px 11px}.binstrip-label{font-size:9px;letter-spacing:.14em;color:#7fa6ee;font-weight:800}.binstrip-item{font-size:15px;font-weight:800;color:#cfe0ff;font-variant-numeric:tabular-nums}.menu-row{width:100%;text-align:center;padding:17px 0;border-radius:13px;font-size:15px;font-weight:800;letter-spacing:.08em;background:#1c2027;margin-bottom:8px}.menu-row:active{background:#262b33}.menu-row-warn{background:#123a29;color:var(--ok)}.kickoff-teams{display:flex;gap:8px;width:100%}.kickoff-team{flex:1;display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid var(--line);border-radius:13px;padding:14px 10px;min-width:0}.kickoff-team:active{background:#15171a}.kickoff-chip{width:13px;height:13px;border-radius:4px;flex:0 0 auto}.kickoff-team-name{font-size:14px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kickoff-hints{margin:10px 0 20px;color:var(--dim)}.kickoff-hints p{font-size:12px;line-height:1.35;letter-spacing:.06em;font-weight:750;margin:0}.kickoff-hints p+p{margin-top:3px}.reliability-strip{border:1px solid #8a5d08;border-radius:10px;background:#2d210b;color:#ffd47d;padding:7px 10px;text-align:center;font-size:12px;line-height:1.2;font-weight:900;letter-spacing:.055em}.reliability-strip[data-severity=danger]{border-color:#a82d38;background:#341216;color:#ff9da5}.landscape-warning{display:none}@media(max-height:780px){.play{gap:6px;padding:calc(var(--safe-t) + 12px) calc(var(--safe-r) + 8px) calc(var(--safe-b) + 6px) calc(var(--safe-l) + 8px)}.scoreband,.tabs,.bottom{gap:6px}.score-value{font-size:36px;min-height:48px;padding:6px 0 4px}.score-label{min-height:44px;padding:5px 4px}.tab{padding:6px;gap:5px}.grid{grid-auto-rows:minmax(48px,1fr);gap:6px}.tile{gap:5px;border-radius:12px}.tile-number{font-size:32px}.bottom-btn{min-height:44px;padding:9px 0}.reliability-strip{padding:5px 8px}.kickoff{padding:calc(var(--safe-t) + 12px) calc(var(--safe-r) + 18px) calc(var(--safe-b) + 10px) calc(var(--safe-l) + 18px)}.stepper{margin:12px 0 3px}.stepper-btn{width:52px;height:52px;border-radius:15px}.stepper-value{font-size:52px}.stepper-unit,.halves{margin-bottom:12px}.halves-btn,.kickoff-team{min-height:44px;padding-top:9px;padding-bottom:9px}.kickoff-hints{margin:7px 0 10px}.kickoff-go{width:142px;height:142px;font-size:23px}.kickoff-derived{margin-top:10px}}@media(orientation:landscape)and (max-height:500px){.play{justify-content:center;padding:24px}.play>:not(.landscape-warning){display:none!important}.play>.landscape-warning{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}.landscape-warning strong{font-size:22px;letter-spacing:.08em}.landscape-warning span{color:var(--dim);font-size:14px}}@media(prefers-reduced-motion:reduce){.tile-confirm[data-motion=true]{animation:none}}
