:root { --paper: #fffdf6; --ink: #191916; --line: #282820; --yellow: #f6d74d; --green: #b9d969; --red: #e75f45; --muted: #777568; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 20px 0 44px; }
.site-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--line); padding-bottom: 15px; }
.brand { color: var(--ink); font-weight: 900; font-size: 1.1rem; letter-spacing: .07em; text-decoration: none; }.brand span { background: var(--yellow); padding: 2px 5px; }
.btn { border: 2px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); font-weight: 800; padding: 11px 16px; box-shadow: 3px 3px 0 var(--line); }.btn:active { box-shadow: 1px 1px 0 var(--line); transform: translate(2px,2px); }.btn:disabled { cursor: not-allowed; opacity: .45; }.btn-primary { background: var(--green); }.btn-dark { background: var(--ink); color: var(--paper); }.btn-danger { background: var(--red); }.btn-outline { background: transparent; }.btn-large { width: 100%; font-size: 1.08rem; padding: 16px; }.btn-small { padding: 7px 11px; box-shadow: 2px 2px 0 var(--line); }
.setup-screen { max-width: 840px; margin: 38px auto 0; }.page-intro h1 { margin: 4px 0; font-size: clamp(2rem, 6vw, 3.4rem); line-height: .95; }.page-intro > p:last-child, .section-heading > p { color: var(--muted); }.eyebrow, .team-kicker { font-size: .72rem; font-weight: 900; letter-spacing: .12em; margin: 0 0 7px; }.mode-picker { display: flex; gap: 10px; border: 0; padding: 28px 0 6px; }.mode-picker legend { width: 100%; font-weight: 800; margin-bottom: 9px; }.mode-picker label { flex: 1; }.mode-picker input { position: absolute; opacity: 0; }.mode-picker span { display: block; border: 2px solid var(--line); padding: 14px; text-align: center; font-weight: 900; }.mode-picker input:checked + span { background: var(--yellow); box-shadow: 3px 3px 0 var(--line); }
.team-inputs, .match-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 22px 0; }.team-form, .position-editor, .match-settings { border-top: 2px solid var(--line); padding-top: 14px; }.team-form label, .match-settings label { display: grid; gap: 7px; font-size: .8rem; font-weight: 800; margin-top: 12px; } input, select { width: 100%; border: 2px solid var(--line); border-radius: 0; background: #fff; padding: 11px; outline: none; } input:focus, select:focus { outline: 3px solid var(--yellow); outline-offset: 2px; }.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; }.section-heading h2 { margin: 2px 0; }.section-heading > p { font-size: .82rem; margin: 0; }.mini-court { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; border: 3px solid var(--line); margin: 14px 0; text-align: center; background: #e1efc4; }.court-team { padding: 10px; }.court-team strong, .net { font-size: .67rem; letter-spacing: .1em; }.court-slots { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 7px; }.player-slot { border: 2px dashed var(--line); min-height: 76px; padding: 5px; display: grid; place-items: center; font-size: .75rem; color: var(--muted); }.player-chip { width: 100%; min-height: 62px; color: var(--ink); background: var(--yellow); border: 2px solid var(--line); padding: 14px; font-size: 1.15rem; font-weight: 800; cursor: grab; }.player-chip.is-selected { background: var(--green); outline: 3px solid var(--ink); }.player-chip.is-server { background: #dfb914; }.position-actions { display: flex; gap: 11px; flex-wrap: wrap; }.net { display: grid; place-items: center; border-left: 3px solid var(--line); border-right: 3px solid var(--line); background: var(--paper); padding: 4px; writing-mode: vertical-rl; }.match-settings { grid-template-columns: repeat(3, 1fr); }.form-error { min-height: 20px; color: #b32816; font-weight: 800; }.is-hidden { display: none !important; }
.match-screen { margin-top: 22px; }.match-meta { display: flex; justify-content: space-between; border-bottom: 2px solid var(--line); padding: 10px 0; font-weight: 900; font-size: .78rem; letter-spacing: .06em; }.live-status i { display: inline-block; width: 9px; height: 9px; background: #e53e2d; border-radius: 50%; margin-right: 5px; }.live-status b { margin-left: 6px; }.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin: 25px 0 16px; }.score-team { text-align: center; }.score-team h2 { margin: 0 auto 16px; min-height: 2.4em; max-width: 280px; font-size: clamp(.95rem, 2vw, 1.3rem); }.score { display: block; font-size: clamp(5.5rem, 18vw, 10rem); line-height: .8; letter-spacing: -.08em; }.score-button { border: 2px solid var(--line); background: var(--paper); width: 48px; height: 44px; font-size: 2rem; font-weight: 900; line-height: 1; margin: 16px 4px 0; }.score-button.plus { background: var(--green); }.score-divider { font-size: 2rem; padding: 0 10px; }.serve-court { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); border: 3px solid var(--line); background: #e1efc4; text-align: center; }.serve-court-team { padding: 10px; }.serve-court-team > strong, .serve-net { font-size: .7rem; letter-spacing: .12em; }.serve-court-slots { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 8px; }.serve-player-slot { display: grid; place-items: center; min-height: 82px; padding: 5px; border: 2px dashed var(--line); }.serve-player { display: grid; place-items: center; width: 100%; min-height: 66px; padding: 14px; border: 2px solid var(--line); background: var(--yellow); font-size: 1.15rem; font-weight: 900; }.serve-player.is-server { background: #dfb914; }.serve-net { display: grid; place-items: center; border-left: 3px solid var(--line); border-right: 3px solid var(--line); background: var(--paper); padding: 4px; writing-mode: vertical-rl; }.serve-court.is-single .serve-player-slot[data-position="left"] { visibility: hidden; }.serve-action { text-align: center; margin-top: 9px; }.text-button { border: 0; border-bottom: 2px solid var(--line); background: transparent; padding: 4px 0; font-weight: 800; }.match-actions { display: flex; justify-content: center; gap: 13px; flex-wrap: wrap; margin: 20px 0; }.timers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.timer-card { border: 2px solid var(--line); padding: 15px; }.timer-card p { font-size: .72rem; font-weight: 900; letter-spacing: .12em; margin: 0; }.timer-card strong { display: block; font-size: 2rem; margin: 6px 0 12px; }.time-up { color: #b32816; }.timer-card div { display: flex; align-items: center; gap: 13px; }.modal { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(25,25,22,.54); padding: 20px; }.modal-card { width: min(390px, 100%); text-align: center; border: 3px solid var(--line); background: var(--paper); padding: 30px; box-shadow: 8px 8px 0 var(--yellow); }.modal-card h2 { margin: 5px 0; font-size: 2rem; }.modal-card p { margin: 5px 0 22px; }
@media (max-width: 560px) { .app-shell { width: min(100% - 24px, 1080px); padding-top: 13px; }.site-header { padding-bottom: 12px; }.btn { padding: 9px 11px; }.team-inputs, .match-settings { grid-template-columns: 1fr; gap: 9px; }.section-heading { display: block; }.section-heading > p { margin-top: 7px; }.scoreboard { margin-top: 18px; }.score-divider { display: none; }.score-team h2 { margin-bottom: 8px; min-height: 0; }.score { font-size: clamp(5rem, 30vw, 8rem); }.score-button { width: 58px; height: 52px; }.timers { grid-template-columns: 1fr; }.match-actions { gap: 9px; }.match-actions .btn { flex: 1; } }
@media (orientation: landscape) and (max-height: 600px) { .app-shell { width: min(100% - 28px, 1100px); padding-top: 10px; }.site-header { padding-bottom: 8px; }.match-screen { margin-top: 8px; }.match-meta { padding: 6px 0; }.scoreboard { margin: 8px 0; }.score-team h2 { margin-bottom: 6px; min-height: 0; font-size: 1rem; }.score { font-size: clamp(4.5rem, 17vh, 7rem); }.score-button { margin-top: 7px; width: 52px; height: 42px; }.serve-panel { padding: 8px; }.serve-panel p { margin: 3px 0; }.match-actions { margin: 10px 0; }.timers { grid-template-columns: 1fr 1fr; }.timer-card { padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; }.timer-card strong { margin: 0; font-size: 1.6rem; }.timer-card div { gap: 9px; }.position-editor { margin-bottom: 8px; }.mini-court { margin: 8px 0; }.court-team { padding: 6px; } }
