.tablet-game{--court-line:#c5d0de}.game-top{background:#101e36;color:#fff;border-radius:16px;padding:10px 12px;position:sticky;top:0;z-index:8;box-shadow:0 5px 18px #132b4920}.game-score{display:flex;align-items:center;gap:12px}.game-score>button{width:48px;flex-shrink:0}.score-team{display:flex;align-items:center;gap:8px;flex:1;min-width:0;font-size:14px}.score-team img{width:34px;height:34px;object-fit:contain;background:#fff;border-radius:8px}.score-team.away{justify-content:flex-end}.game-score .score-num{font-size:30px;letter-spacing:2px;white-space:nowrap}.game-score .clock{font-size:35px;letter-spacing:-1px;min-width:125px;margin-left:16px;border-left:1px solid #ffffff30;padding-left:16px;line-height:1.1}.game-score .clock small{font-size:10px;letter-spacing:0;color:#c6d4ea;line-height:1.7}.game-score .clock.event-mode{font-size:24px}.game-controls{display:flex;gap:7px;align-items:center;margin-top:8px;flex-wrap:wrap}.game-controls button{font-size:12px;padding:7px 12px;min-height:44px}.mode-pick{display:flex;gap:8px;align-items:center;color:#fff;font-size:12px;margin-left:auto}.mode-pick select{min-height:42px;color:#192d45;font-size:12px;padding:7px}.technical-banner{background:#fef3c7;color:#713f12;font-size:16px;font-weight:750;text-align:center;padding:6px;margin-top:8px;border-radius:8px}.game-workspace{display:grid;grid-template-columns:minmax(350px,1.35fr) minmax(310px,1fr);gap:12px;margin-top:12px}.court-pane,.action-pane{background:#fff;border:1px solid #dce4ef;border-radius:16px;padding:12px;min-width:0}.scout-left .court-pane{grid-column:2;grid-row:1}.scout-left .action-pane{grid-column:1;grid-row:1}.scout-left .game-workspace{grid-template-columns:minmax(310px,1fr) minmax(350px,1.35fr)}.court-heading,.bench-heading,.scout-heading{display:flex;align-items:center;gap:8px;font-size:13px;margin-bottom:8px}.court-heading>span{color:#64748b;margin-right:auto}.court-heading button{font-size:11px;padding:6px 10px}.bench-heading{justify-content:space-between;margin:10px 0 6px}.scout-heading{justify-content:space-between;margin:8px 0}.scout-heading button{min-height:42px;font-size:12px}.tablet-game .pitch{height:310px;background:#f4f7fb;border:2px solid #d4dde9;box-shadow:inset 0 0 0 10px #fff}.tablet-game .pitch:before{border:2px solid var(--court-line);background:linear-gradient(0deg,transparent 49.6%,var(--court-line) 50%,transparent 50.4%);inset:9px}.tablet-game .pitch:after{border-color:var(--court-line);width:90px;height:90px}.tablet-game .area{border:2px solid var(--court-line);height:52px}.tablet-game .player{border:2px solid #bfd1e9;background:white;color:#14243b;min-width:96px;min-height:76px;gap:0;padding:3px 6px;box-shadow:0 3px 10px #1e355c18;user-select:none;touch-action:none}.tablet-game .player .pos{font-size:9px;color:#475569}.tablet-game .player .name{font-size:12px;font-weight:750;max-width:120px;line-height:1.15}.tablet-game .player .ptime{font-size:12px;line-height:1.3}.player-portrait{display:flex;justify-content:center;align-items:center;height:30px}.player-portrait b{font-size:24px}.tablet-game .player .avatar{width:30px;height:30px;border-radius:50%;object-fit:cover;margin:0}.tablet-game .player.warn{background:#fff4cc;border-color:#e8ad23}.tablet-game .player.exceeded{background:#ffe1e5;border-color:#dc4058}.status-dot{position:absolute;right:5px;top:5px;width:7px;height:7px;border-radius:50%}.warn .status-dot{background:#d18a00}.exceeded .status-dot{background:#c8203b}.tablet-game .slot-0{top:83%}.tablet-game .slot-1{top:58%}.tablet-game .slot-2{top:38%;left:20%}.tablet-game .slot-3{top:38%;left:80%}.tablet-game .slot-4{top:17%}.tablet-game .bench{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:7px;margin:0;padding-bottom:5px;scrollbar-width:thin}.tablet-game .bench button{flex:0 0 86px;display:grid;justify-items:center;text-align:center;min-width:86px;min-height:76px;padding:5px;touch-action:none;user-select:none}.tablet-game .bench strong{font-size:11px;max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bench-portrait{height:28px;display:flex;align-items:center;justify-content:center}.bench-portrait .avatar{width:28px;height:28px;object-fit:cover;border-radius:50%;margin:0}.compact-times{font-size:12px;margin-top:5px}.compact-times summary{padding:10px;cursor:pointer}.compact-times .bars{gap:4px}.score-counters{display:grid;grid-template-columns:1fr 1fr;gap:8px}.touch-counter{background:#f2f5fa;border-radius:12px;padding:8px}.touch-counter>span{display:block;font-size:12px;font-weight:700;min-height:17px}.touch-counter small{display:block;font-size:10px;font-weight:400}.touch-counter>div{display:flex;align-items:center;justify-content:space-between;margin-top:5px;gap:5px}.touch-counter button{width:48px;min-width:48px;height:46px;padding:0;font-size:24px;line-height:1}.touch-counter strong{font-size:24px}.touch-counter.risk{background:#fff1cc;box-shadow:inset 0 0 0 1px #eab847}.timeout-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.timeout-row button{font-size:11px;padding:7px;min-height:46px}.tablet-game .scout-actions{grid-template-columns:repeat(4,1fr);gap:6px;margin:0}.tablet-game .scout-actions button{display:grid;justify-items:center;align-content:center;gap:2px;min-height:60px;padding:5px;font-size:10px}.scout-actions b{font-size:19px;color:var(--green)}.scout-actions .selected{border:2px solid var(--green);background:#edf4ff}.scout-pending{padding:10px;background:#eef4ff;border:1px solid #bed0ed;border-radius:12px;margin-top:8px;display:grid;gap:7px}.scout-pending>span{font-size:12px}.scout-options{display:flex;gap:7px;flex-wrap:wrap}.scout-options label{flex:1;font-size:11px;min-width:95px}.scout-options select{font-size:11px;padding:5px;min-height:42px}.scout-pick{outline:2px solid var(--green);outline-offset:2px}.discipline-controls{display:flex;gap:7px;margin-top:10px;flex-wrap:wrap}.discipline-controls button{font-size:11px;flex:1}.analysis-link{width:100%;margin-top:9px;font-size:12px}.drag-ghost{position:fixed;pointer-events:none;z-index:500;transform:translate(-50%,-50%);display:grid;place-items:center;width:100px;background:#fff;border:3px solid #2563eb;border-radius:12px;padding:5px;box-shadow:0 8px 24px #0004;opacity:.9}.drag-ghost img{width:30px;height:30px;object-fit:cover}.drag-origin{opacity:.4}.drop-ready{outline:3px dashed #2563eb!important;outline-offset:1px}.rotation-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.rotation-grid button.selected{background:#e4eeff;border:2px solid var(--green)}.rotation-grid button small{display:block}.rotation-grid button{min-height:60px}.rotation-preview{padding:12px;border-radius:10px;background:#edf4ff;margin-top:12px;font-size:13px}.tactics-dialog{width:min(1000px,96vw);max-width:96vw;padding:14px}.tactics-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0}.tactics-toolbar button{min-height:48px}.tactics-board{width:100%;height:min(65vh,560px);background:#f6f8fc;display:block;border-radius:12px;border:1px solid #cbd5e1;touch-action:none;user-select:none}.tactics-board text{pointer-events:none;font:600 13px Arial;text-anchor:middle;dominant-baseline:middle}.tactics-board .token{cursor:grab}.tactics-board .token:active{cursor:grabbing}.tactics-tip{font-size:12px;color:#64748b}.game-top [hidden]{display:none!important}
@media(min-width:700px){.shell{grid-template-columns:88px 1fr}.sidebar{position:sticky;top:0;bottom:auto;width:88px;height:100dvh;display:flex;padding:18px 7px}.sidebar .brand>div:last-child,.sidebar .foot{display:none}.sidebar .brand{display:flex;padding:0;justify-content:center}.sidebar nav{display:grid;gap:7px}.sidebar .nav{display:grid;justify-items:center;text-align:center;font-size:11px;padding:9px 4px}.sidebar .nav span:first-child{font-size:22px}.main{padding:18px}.shell.menu-hidden{grid-template-columns:1fr}.match-focus .main{padding:10px;max-width:none;height:100dvh;overflow:hidden}.match-focus .focus-menu{display:none}.match-focus .tablet-game{height:100%;display:flex;flex-direction:column}.match-focus .game-top{position:relative;flex-shrink:0}.match-focus .game-workspace{flex:1;min-height:0;overflow:hidden}.match-focus .court-pane,.match-focus .action-pane{overflow-y:auto;scrollbar-width:thin;overscroll-behavior:contain}.match-focus .court-pane{display:flex;flex-direction:column}.match-focus .pitch{flex:1;min-height:275px}.match-focus .court-heading,.match-focus .bench-heading,.match-focus .bench,.match-focus .compact-times{flex-shrink:0}.match-focus .bench{min-height:84px}.match-focus .compact-times[open]{overflow-y:auto;max-height:180px}.game-top .game-controls button{min-height:44px}}
@media(min-width:700px) and (max-height:650px){.match-focus .game-top{padding:6px 9px}.game-controls{margin-top:5px;gap:5px}.game-score .clock{font-size:29px}.game-score .score-num{font-size:26px}.game-controls button{font-size:11px}.match-focus .game-workspace{margin-top:8px;gap:8px}.court-pane,.action-pane{padding:8px}.match-focus .pitch{min-height:245px}.tablet-game .player{min-height:67px;min-width:88px}.player-portrait{height:23px}.tablet-game .player .avatar{width:24px;height:24px}.tablet-game .player .name{font-size:11px}.tablet-game .player .ptime{font-size:11px}.touch-counter{padding:6px}.touch-counter button{min-height:44px;height:44px}.tablet-game .scout-actions button{min-height:54px}.tablet-game .bench button{min-height:68px}.match-focus .bench{min-height:73px}.court-heading{margin-bottom:5px}.bench-heading{margin-top:7px}.compact-times summary{padding:5px 8px}}
@media(max-width:699px){.game-workspace,.scout-left .game-workspace{grid-template-columns:1fr}.scout-left .court-pane,.scout-left .action-pane{grid-column:auto;grid-row:auto}.game-score{gap:6px}.game-score .clock{min-width:93px;margin-left:0;padding-left:7px;font-size:27px}.score-team{font-size:11px}.score-team img{display:none}.game-score .score-num{font-size:24px}.game-top{top:0}.tablet-game .pitch{height:330px}}
@media print{.game-top,.game-controls,.tactics-toolbar{display:none}.tablet-game{height:auto}.game-workspace{display:block}}
.game-save-bar{display:flex;align-items:center;gap:12px;border-top:1px solid #ffffff30;margin-top:8px;padding-top:8px}.game-save-status{display:grid;gap:3px;flex:1;min-width:0}.game-save-status strong{font-size:12px;line-height:1.3}.game-save-status>span{font-size:11px;color:#d8e3f5;line-height:1.35}.game-save-status[data-save-state="local-error"] strong,.game-save-status[data-save-state="conflict"] strong{color:#ffe0a8}.game-save-status[data-save-state="synced"] strong{color:#b5f3d4}.game-save-actions{display:flex;gap:6px;flex-shrink:0;flex-wrap:wrap}.game-save-actions button{font-size:11px;min-height:44px;padding:7px 10px}.game-save-actions [hidden]{display:none!important}
@media(max-width:699px){.game-save-bar{flex-wrap:wrap;gap:7px}.game-save-status{flex-basis:100%}.game-save-actions{width:100%}.game-save-actions button{flex:1}}
.match-context-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f1f5fd;border:1px solid #cbd9ee;border-radius:10px;padding:7px 12px;margin:10px 0;flex-shrink:0}.match-context-bar>div{display:grid;gap:3px;min-width:0}.match-context-bar strong{font-size:12px;overflow-wrap:anywhere}.match-context-bar span{font-size:11px;color:#52647b}.match-context-bar button{font-size:12px;min-height:44px;flex-shrink:0}.calendar-context-active{outline:3px solid var(--green);outline-offset:3px}.match-journey{max-width:780px}.match-journey header h3{margin:8px 0}.journey-stages{display:grid;gap:12px;margin:16px 0}.journey-stage{border:1px solid #d4dfed;border-radius:12px;padding:14px}.journey-stage h4{margin:0 0 10px;font-size:15px}.journey-stage>p,.journey-records p{font-size:13px;line-height:1.5}.journey-stage .toolbar{margin-top:10px}.journey-records{list-style:none;padding:0;margin:0;display:grid;gap:12px}.journey-records li{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.journey-records li>div:first-child{flex:1;min-width:180px;display:grid;gap:5px}.journey-records span{font-size:12px;color:#52647b}.journey-warning{background:#fff4d8;color:#744918;border-radius:8px;padding:9px;margin:5px 0}.journey-records button,.journey-stage>button{min-height:44px}.match-focus .match-context-bar{margin:7px 0 0}.match-focus .match-context-bar strong{font-size:11px}
@media(max-width:699px){.match-context-bar{flex-wrap:wrap}.match-context-bar>div{flex-basis:100%}.match-context-bar button{width:100%}.journey-records li>button{width:100%}}
@media print{.match-context-bar{display:none}}
.live-score-control{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:12px 14px;margin:10px 0;border:1px solid #cbd5e1;border-radius:12px;background:#f8fafc;color:#0f172a}
.live-score-control p{margin:4px 0;font-size:13px;line-height:1.4}.live-score-control small{color:#475569}.live-score-control .toolbar{flex-shrink:0}.live-score-control button{min-height:44px}
@media(max-width:699px){.live-score-control{align-items:stretch;flex-direction:column}.live-score-control .toolbar button{flex:1}}
@media print{.live-score-control{display:none}}
/* A sticky scoreboard must not cover the player-times disclosure on compact screens. */
@media(max-width:699px){.tablet-game .game-top{position:relative}.tablet-game .compact-times>summary{scroll-margin-block:16px calc(100px + env(safe-area-inset-bottom))}}
@media(min-width:700px){.match-focus.menu-hidden .main{padding:10px}.tablet-game .slot-1{top:54%}.tablet-game .slot-0{top:84%}.match-focus .analysis-link{display:none}.match-focus .discipline-controls{position:sticky;bottom:0;background:#fff;padding:6px 0 0;margin-bottom:0;z-index:2}}
@media(min-width:700px) and (max-height:650px){.match-focus.menu-hidden .main{padding:8px}.tablet-game .slot-1{top:54%}.tablet-game .slot-0{top:84%}.match-focus .scout-heading{margin:5px 0}.match-focus .discipline-controls button{min-height:44px}}

/* Match-first navigation: no persistent sidebar or bottom bar steals pitch space.
   The menu remains accessible via the scoreboard; opening it is temporary. */
.game-shell.menu-hidden{grid-template-columns:minmax(0,1fr)!important}
.game-shell.menu-hidden .sidebar{display:none!important}
.game-shell.menu-hidden .main{max-width:none;width:100%;padding-left:clamp(8px,1.3vw,18px);padding-right:clamp(8px,1.3vw,18px)}
.game-shell .game-analysis-shortcut{background:#d8f5f1;color:#12344b;border:1px solid #9fded8;font-weight:800;min-height:44px;padding:7px 12px}
.game-shell .game-analysis-shortcut:hover{background:#9ce9de}
.game-shell .game-score>button[data-action="menu"]{min-height:44px;min-width:44px}
@media(max-width:699px){.game-shell.menu-hidden .main{padding:8px 8px 16px}.game-shell .game-analysis-shortcut{padding:7px 11px}}


/* Match-day controls: step-by-step scouting and quick official-clock correction. */
.game-shell .game-controls .timer-toggle{font-weight:850;min-width:126px;min-height:52px;font-size:14px}
.game-shell .timer-adjust{display:inline-flex;align-items:stretch;gap:7px}
.game-shell .timer-adjust button{min-width:76px;min-height:52px;font-size:15px;font-weight:850;border:1px solid #b8d6e7;border-radius:12px;background:#e9f4fb;color:#153552}
.game-shell .timer-adjust button:disabled{opacity:.5}
.game-shell .court-counters{margin-top:10px;display:grid;gap:9px}
.game-shell .court-counters .score-counters{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.game-shell .court-counters .timeout-row{margin-top:0}
.game-shell .scout-live-indicator{margin-left:auto;color:#17745c;font-size:12px;font-weight:800}
.game-shell .scout-step-title{display:flex;align-items:center;gap:10px;margin:9px 0 13px;font-size:17px;font-weight:850;color:#172d49}
.game-shell .scout-step-title span{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#153e68;color:#fff;font-size:14px}
.game-shell .scout-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}
.game-shell .scout-actions button{min-height:78px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;border-radius:13px;font-size:13px;font-weight:800;padding:10px 8px;line-height:1.2;text-align:center}
.game-shell .scout-actions button b{font-size:25px;line-height:1.1}
.game-shell .scout-filter-details{font-size:12px;color:#5a6b81;margin-top:12px}
.game-shell .scout-filter-details summary{cursor:pointer;padding:10px 0;min-height:44px}
.game-shell .scout-filter-details select{width:100%;min-height:44px}
.game-shell .scout-pending{display:grid;gap:12px;border:1px solid #b2cfe2;background:#f4f8fe;border-radius:17px;padding:12px;margin-top:7px}
.game-shell .scout-choice-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.game-shell .scout-choice-top strong{font-size:17px;color:#143658}
.game-shell .scout-choice-top span{font-size:12px;font-weight:750;color:#4f647d}
.game-shell .scout-progress{display:flex;gap:5px;flex-wrap:wrap}
.game-shell .scout-progress span{padding:6px 9px;border-radius:20px;background:#e6edf6;color:#596d84;font-size:11px;font-weight:750}
.game-shell .scout-progress span.current{background:#153b64;color:#fff}
.game-shell .scout-progress span.done{color:#166753;background:#d8eee7}
.game-shell .scout-choice-label{font-size:13px;font-weight:800;color:#1f3b58;margin-top:3px}
.game-shell .scout-touch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.game-shell .scout-touch-grid button{min-height:60px;padding:8px;border-radius:12px;font-weight:780;font-size:12px;line-height:1.2;white-space:normal;text-align:center;word-break:break-word}
.game-shell .scout-touch-grid button.selected{border:2px solid #167f80;background:#d8f5f2;color:#11444d}
.game-shell .scout-touch-grid button b{display:block;font-size:23px}
.game-shell .scout-touch-grid button span{display:block;font-size:11px;margin-top:3px}
.game-shell .scout-context-buttons{grid-template-columns:repeat(3,minmax(0,1fr))}
.game-shell .scout-context-buttons button{min-height:58px;font-size:11px;padding:6px}
.game-shell .scout-ignore{grid-column:1/-1;background:#e5edf8;border-color:#bbcee4;color:#254a72}
.game-shell .scout-flow-footer{display:flex;gap:10px;margin-top:3px}
.game-shell .scout-flow-footer button{min-height:46px;flex:1;font-size:12px}
.game-shell .team-scouting-settings{margin:0 0 14px}
@media(min-width:980px){.game-shell .court-counters .score-counters{grid-template-columns:repeat(4,minmax(0,1fr))}.game-shell .court-counters .touch-counter button{width:35px;min-width:35px;height:42px}.game-shell .court-counters .touch-counter strong{font-size:22px}}
@media(max-width:699px){.game-shell .game-controls .timer-toggle{min-width:108px}.game-shell .timer-adjust button{min-width:64px}.game-shell .scout-touch-grid button{min-height:58px}.game-shell .scout-actions button{min-height:74px}}
@media(max-height:670px) and (min-width:700px){.game-shell .scout-actions button{min-height:63px;padding:6px}.game-shell .scout-context-buttons button{min-height:50px}.game-shell .scout-pending{gap:7px;padding:8px}.game-shell .scout-progress span{padding:4px 7px}}
@media print{.game-shell .timer-adjust,.game-shell .scout-flow-footer,.game-shell .game-analysis-shortcut{display:none}}

/* Touch workspace: stable groups and eight actions per page. */
.game-shell .scout-category-tabs{display:flex;flex-wrap:wrap;gap:.4rem;margin:.7rem 0}
.game-shell .scout-category-tabs button{min-height:44px;padding:.5rem .7rem;font-size:.875rem;white-space:normal;line-height:1.2}
.game-shell .scout-category-tabs button.selected{background:#15c3c4;color:#102027;border-color:#15c3c4}
.game-shell .scout-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}
.game-shell .scout-actions button{min-height:72px;padding:.65rem;font-size:.875rem;line-height:1.25;touch-action:manipulation}
.game-shell .scout-touch-grid button{min-height:60px;font-size:.875rem}
.game-shell .scout-touch-grid button span{font-size:.875rem}
.game-shell .scout-pages{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-top:.6rem}
.game-shell .scout-pages button{min-height:48px;min-width:5.5rem}
.game-shell .quick-rotations{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.7rem}
.game-shell .quick-rotations button{min-height:48px;font-size:.875rem}
.game-shell .two-hands .game-workspace{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
.game-shell .one-hand .scout-actions button{min-height:68px}
@media(min-width:1300px){.game-shell .two-hands .scout-actions{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:699px){.game-shell .two-hands .game-workspace{grid-template-columns:minmax(0,1fr)}.game-shell .scout-actions button{min-height:68px}.game-shell .scout-category-tabs button{flex:1 1 30%}}

