/* Extend the existing white cards / yellow actions, with dedicated referee surfaces. */
.net-screen { padding-bottom: 50px; }
.net-screen h2 { font-size: 1.2rem; margin: 0 0 16px; }
.net-screen .card { margin-bottom: 18px; }
.net-note { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.net-screen select, .net-screen textarea, .modal select, .assistant-screen textarea, .assistant-screen select { width: 100%; background: #f7f8fa; color: var(--ink); border: 1px solid var(--line); border-radius: 13px; padding: 14px; font: inherit; font-size: 1rem; }
.net-toggle { display: flex; align-items: center; gap: 12px; font-size: 1rem; margin-bottom: 24px; }
.net-toggle input { width: 24px; height: 24px; accent-color: #b68a08; }
.net-room-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 18px 0 24px; }
.net-room-head span { display: block; font-size: .9rem; color: var(--muted); }
.net-room-head strong { font-size: 2rem; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
[data-connection] { font-size: .875rem; color: #237553; }
[data-connection].offline { color: #a53627; background: #fff0ed; border-radius: 8px; padding: 5px 8px; }
.net-courts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr)); gap: 16px; }
.net-court-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.net-court-head h2 { margin-bottom: 0; }
.net-court p { font-size: 1rem; }
.net-court p b { padding: 0 10px; white-space: nowrap; }
.net-court-status { font-size: 1rem; color: var(--muted); }
.net-device { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.net-device:last-child { border: 0; }
.net-device strong, .net-device span { display: block; }
.net-device span { font-size: .875rem; color: var(--muted); }
.net-device .mini { margin-left: 5px; }
.net-alert { border: 2px solid #32363b; }
.net-alert .row { flex-wrap: wrap; }
.net-alert .button { font-size: .95rem; }
.net-fixtures { max-height: 60vh; overflow-y: auto; margin-top: 18px; }
.net-fixture { display: grid; grid-template-columns: 34px 1fr auto 1fr; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 14px 0; font-size: 1rem; }
.net-fixture > small { grid-column: 2 / -1; color: var(--muted); font-size: .875rem; }
.net-fixture > span:nth-child(2) { color: #1761a2; }
.net-fixture > span:nth-child(4) { color: #b42535; }
.net-board { position: fixed; z-index: 100; left: 50%; top: 50%; width: 100dvh; height: 100dvw; transform: translate(-50%, -50%) rotate(90deg); background: #f7f8fa; display: flex; flex-direction: column; overflow: hidden; touch-action: manipulation; }
body:has(.net-board) .modal-wrap { position: fixed; inset: auto; left: 50%; top: 50%; width: 100dvh; height: 100dvw; transform: translate(-50%, -50%) rotate(90deg); }
body:has(.net-board) .modal { max-height: 95%; overflow-y: auto; }
.net-board-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; height: 52px; flex: 0 0 auto; background: #fff; font-size: .875rem; }
.net-board-header .mini { min-height: 34px; }
.net-board-sides { display: flex; flex: 1; min-height: 0; }
.net-side { width: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 15%; position: relative; }
.net-side.blue { background: #86bbff; color: #0b3b75; }
.net-side.red { background: #ff959e; color: #7f1427; }
.net-side h2 { font-size: clamp(1rem, 4dvw, 2.5rem); text-align: center; line-height: 1.2; margin: 0 0 8px; width: max-content; max-width: 35dvh; overflow-wrap: anywhere; }
.net-score { font-variant-numeric: tabular-nums; font-size: clamp(2.5rem, 14dvw, 8rem); line-height: 1; }
.net-board-center { position: absolute; left: 50%; top: 43%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px; min-width: 115px; border-radius: 18px; background: #fff; box-shadow: 0 5px 25px #26334412; }
.net-board-center strong { font-size: clamp(1.4rem, 6dvw, 2.8rem); font-variant-numeric: tabular-nums; }
.net-board-center span { font-size: .875rem; }
.net-score-actions { display: flex; gap: 12px; margin: 8px 0; }
.net-score-actions button { width: clamp(45px, 12dvw, 70px); height: clamp(38px, 10dvw, 55px); border: 0; border-radius: 13px; background: #ffffffdc; color: inherit; font-size: 2rem; line-height: 1; }
.net-score-actions button:active { transform: scale(.94); }
.net-cards, .net-penalty-actions { display: flex; gap: 6px; margin: 5px 0; white-space: nowrap; }
.penalty { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #0002; border-radius: 5px; padding: 3px 9px; min-width: 25px; font-size: .875rem; font-weight: 700; }
.penalty.yellow { background: #ffe04c; color: #4c3800; }.penalty.red { background: #d52a41; color: #fff; }.penalty.black { background: #22272d; color: #fff; }
.net-penalty-actions button { min-height: 34px; }
.net-board-controls { display: flex; justify-content: center; gap: 12px; padding: 9px 18px; background: white; }
.net-board-controls .button { min-height: 40px; padding: 8px 16px; font-size: .95rem; width: auto; }
.net-ticker { flex: 0 0 auto; min-height: 27px; font-size: .875rem; overflow: hidden; background: #252b35; color: #fff; }
.net-ticker span { display: inline-block; white-space: nowrap; padding-left: 100%; animation: piste-ticker 22s linear infinite; }
@keyframes piste-ticker { to { transform: translateX(-100%); } }
.net-display .net-score { font-size: clamp(5rem, 30dvw, 15rem); }
.net-display .net-side h2 { font-size: clamp(1.5rem, 5dvw, 3rem); }
.assistant-screen textarea { min-height: 135px; resize: vertical; }
.assistant-screen .card { margin: 18px 0; }
.assistant-screen .field label { font-size: .95rem; }
.assistant-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.assistant-tools label { cursor: pointer; display: grid; place-items: center; }
.assistant-plan { border: 1px solid #dcc671; }
.assistant-plan h3 { margin: 12px 0 8px; }
.assistant-plan .player-chip-list { margin-bottom: 16px; }
.assistant-status { min-height: 25px; font-size: .95rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .net-ticker span { animation: none; padding-left: 16px; } }
@media (max-width: 420px) { .net-room-head strong { font-size: 1.65rem; } .net-fixture { gap: 6px; } .net-board-header { gap: 8px; } }
