.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}}
@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}}
