@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#f3f4ec;background:#0e1a20}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 83% 8%,#173c48 0,transparent 35%),#0e1a20}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.site-header{min-height:76px;padding:0 max(4vw,20px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff20}.brand{font:700 18px 'Space Grotesk',sans-serif;letter-spacing:-.055em}.brand span{color:#eead5c;margin-left:5px}.header-link,.text-button{font:700 13px 'DM Sans',sans-serif;color:#d5e1e1;background:none;border:0;cursor:pointer}.home,.page{max-width:1400px;margin:auto;padding:70px 32px 120px}.eyebrow{color:#eead5c;font:700 12px 'Space Grotesk',sans-serif;letter-spacing:.18em}.home h1{font:600 clamp(58px,9vw,126px)/.96 'Space Grotesk',sans-serif;letter-spacing:-.075em;margin:26px 0}.home h1 em{font-style:normal;color:#eead5c}.intro,.muted,.hero-row p{color:#aebfc3;line-height:1.6}.intro{font-size:19px;max-width:570px}.status{display:flex;align-items:center;gap:10px;color:#bac8cb;font-size:13px;margin:30px 0 82px}.dot{width:8px;height:8px;border-radius:50%;background:#8eb2a3}.dot.on{background:#a8e8bd;box-shadow:0 0 12px #a8e8bd}.section-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:50px 0 24px}.section-head h2,.panel h2{font:600 28px 'Space Grotesk',sans-serif;letter-spacing:-.045em;margin:8px 0}.section-head>span{color:#9db1b5;font-size:13px}.division-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}.division-card,.panel,.empty{background:#172831;border:1px solid #47616a80;border-radius:16px;padding:25px}.division-card:hover{border-color:#eead5c;transform:translateY(-2px)}.division-card{transition:.2s}.card-top,.hero-row{display:flex;align-items:center;justify-content:space-between;gap:20px}.sport-pill{color:#eead5c;background:#eead5c1c;border:1px solid #eead5c55;border-radius:100px;padding:6px 11px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.07em}.status-pill{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#a7c8d2;font-weight:700}.status-pill.live{color:#a8e8bd}.status-pill.complete{color:#eead5c}.division-card h3{font:600 27px 'Space Grotesk',sans-serif;letter-spacing:-.04em;margin:26px 0 8px}.division-card p{color:#9eb0b4;font-size:13px;margin:0 0 26px}.card-link,.action-link,.back-link{color:#eead5c;font-size:13px;font-weight:700}.back-link{display:inline-block;margin-bottom:40px}.empty{color:#aebfc3;grid-column:1/-1}.page h1{font:600 clamp(40px,6vw,74px)/1.05 'Space Grotesk',sans-serif;letter-spacing:-.065em;margin:15px 0}.hero-row{align-items:end;margin-bottom:32px}.hero-row p{margin:0}.action-link{display:inline-block;border:1px solid #eead5c80;padding:12px 16px;border-radius:8px;white-space:nowrap}.forms-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px;margin:34px 0}.panel h2{margin:0 0 22px}.panel form{display:flex;flex-direction:column;gap:15px}.panel label{display:flex;flex-direction:column;gap:8px;color:#c6d3d5;font-size:13px;font-weight:700}.panel input,.panel select,.panel textarea,.auth-card input{width:100%;background:#0e1d24;color:white;border:1px solid #58707a;border-radius:8px;padding:13px}.panel input:focus,.panel select:focus,.panel textarea:focus,.auth-card input:focus{outline:2px solid #eead5c}.primary,.auth-card button{background:#eead5c;color:#1a2426;border:0;border-radius:8px;padding:13px 16px;font-weight:700;cursor:pointer}.primary:hover,.auth-card button:hover{background:#ffd08e}.secondary{background:#a8e8bd}.small{font-size:13px}.refs{margin-top:35px}.chips{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.chips span{background:#23404b;border:1px solid #59727a;padding:8px 12px;border-radius:100px;font-size:12px}.team-list{color:#cbd8d8;line-height:2;padding-left:20px}.bracket-scroll{overflow:auto;padding-bottom:15px}.bracket-grid{display:flex;gap:18px;align-items:flex-start;min-width:max-content}.round{width:280px}.round-label{text-transform:uppercase;color:#eead5c;font-size:12px;font-weight:700;letter-spacing:.12em;margin:0 0 16px}.game{background:#182a33;border:1px solid #4b667080;border-radius:12px;margin-bottom:18px;overflow:hidden}.game-head{display:flex;justify-content:space-between;padding:12px 15px;color:#91a8ad;font-size:11px;text-transform:uppercase;letter-spacing:.08em;border-bottom:1px solid #ffffff16}.team{display:flex;justify-content:space-between;gap:10px;padding:13px 15px;color:#c8d4d6;font-size:14px}.team+.team{border-top:1px solid #ffffff14}.team.winner{color:#a8e8bd;font-weight:700}.team strong{font-size:15px}.score-form{border-top:1px solid #ffffff24;padding:14px}.score-form>div{display:flex;gap:8px}.score-form label{flex:1;min-width:0;color:#b7c9cc;font-size:11px}.score-form label span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:5px}.score-form input{width:100%;padding:8px;color:#fff;background:#0e1d24;border:1px solid #58707a;border-radius:6px}.score-form button{width:100%;margin-top:10px;padding:10px}.auth-body{background:#0e1a20}.auth-wrap{max-width:470px;margin:70px auto;padding:0 24px}.auth-wrap h1{font:600 48px 'Space Grotesk',sans-serif;letter-spacing:-.06em;margin:20px 0}.auth-wrap p{color:#aebfc3}.auth-card{background:#172831;border:1px solid #47616a80;border-radius:14px;padding:28px;margin-top:30px;display:flex;flex-direction:column}.auth-card label{font-size:13px;font-weight:700;margin:0 0 8px}.auth-card input{margin-bottom:20px}.auth-card button{display:flex;justify-content:space-between}.error{background:#603735;color:#fff;padding:12px;border-radius:6px;margin-bottom:20px;font-size:13px}@media(max-width:700px){.home,.page{padding:50px 20px 90px}.home h1{font-size:clamp(52px,12vw,80px)}.status{margin-bottom:55px}.hero-row{align-items:start;flex-direction:column}.section-head h2{font-size:24px}.round{width:260px}}
.assignment{border-top:1px solid #ffffff24;padding:16px 0;display:flex;flex-direction:column;gap:10px}.assignment>form{display:flex;flex-direction:row;align-items:center;gap:8px}.assignment>form input,.assignment>form select{flex:1;min-width:0}.assignment-tag{flex:1;color:#c8d4d6;font-size:13px}.small-button,.court-form button{background:#29454f;color:#f3f4ec;border:1px solid #67818a;border-radius:7px;padding:9px 11px;cursor:pointer;font-size:12px;white-space:nowrap}.team-courts{margin:20px 0}.court-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:15px}.court-grid form{display:flex;flex-direction:column;gap:8px}.point-controls{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:5px 12px 10px;color:#aabec3;font-size:11px}.point-controls span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.point-controls button{width:42px;height:38px;border-radius:8px;border:1px solid #6b8c93;background:#27444d;color:white;font-size:22px;cursor:pointer}.point-controls button:hover{background:#eead5c;color:#182831}.court-form{display:flex;gap:6px;padding:10px;border-top:1px solid #ffffff1a}.court-form input{min-width:0;flex:1;border:1px solid #58707a;background:#0e1d24;color:white;border-radius:6px;padding:8px}.finalize-form{padding:0 10px 10px}.finalize-form button{width:100%}.finalize-form button:disabled{opacity:.45;cursor:not-allowed}
.top-nav{display:flex;gap:18px;color:#d5e1e1;font-size:13px;font-weight:700}.top-nav a:hover{color:#eead5c}.audience h1{margin-bottom:8px}.live-indicator{display:flex;align-items:center;gap:9px;color:#a8e8bd;font-size:13px;font-weight:700}.score-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px}.score-card{background:#172831;border:1px solid #47616a80;border-radius:16px;padding:22px}.score-card:hover{border-color:#eead5c}.score-card-top{display:flex;justify-content:space-between;align-items:center;color:#a8e8bd;font-size:12px;text-transform:uppercase;font-weight:700}.score-card h2{font:600 25px 'Space Grotesk',sans-serif;letter-spacing:-.04em;margin:22px 0 5px}.score-card p{color:#9eb0b4;font-size:13px;margin:0 0 20px}.score-line{display:flex;justify-content:space-between;padding:13px;border-top:1px solid #ffffff22}.score-line strong{font-size:23px}.score-line.winner{color:#a8e8bd;font-weight:700}.score-card .card-link{display:block;margin-top:22px}.login-row{border-top:1px solid #ffffff24;padding:20px 0}.login-row>div:first-child{display:flex;gap:12px;align-items:center}.login-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin-top:12px}.login-actions form{display:flex;flex-direction:column;gap:8px}.login-actions label{font-size:12px}.login-actions input{width:100%;background:#0e1d24;color:white;border:1px solid #58707a;border-radius:8px;padding:10px}.login-actions button{align-self:start}.status{flex-wrap:wrap}.status .action-link{margin-left:10px}
.header-actions{display:flex;gap:18px;align-items:center}.danger{color:#ffc1b8;border-color:#a2605a;background:#482b2a}.danger:hover{background:#663733}.delete-bracket{margin:0 0 18px}.delete-game{padding:0 10px 10px}.delete-game button{width:100%}.history-filter{display:flex;gap:10px;align-items:end;margin:30px 0}.history-filter label{display:flex;flex-direction:column;gap:8px;color:#cbd8d8;font-size:13px}.history-filter select{background:#0e1d24;color:#fff;border:1px solid #58707a;border-radius:8px;padding:12px;min-width:220px}.history-list{display:grid;gap:10px}.history-row{background:#172831;border:1px solid #47616a80;border-radius:12px;padding:18px}.history-row>div{display:flex;align-items:center;gap:12px}.history-row p{margin:10px 0;color:#e7f0f0}.history-row small{color:#9db1b5}@media(max-width:600px){.header-actions{gap:9px}.header-actions .header-link{font-size:11px}.history-filter{flex-wrap:wrap}}
.history-pages{display:flex;justify-content:space-between;gap:15px;margin-top:24px}

@media(max-width:700px){
  .site-header{height:auto;min-height:72px;padding:14px 18px;gap:10px;flex-wrap:wrap}
  .header-actions{width:100%;justify-content:space-between;gap:8px;flex-wrap:wrap}
  .brand{font-size:17px}
  .home,.page{padding:42px 18px 80px}
  .forms-grid,.score-grid{grid-template-columns:minmax(0,1fr)}
  .division-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr))}
  .panel,.division-card,.empty,.score-card{padding:20px}
  .section-head{align-items:flex-start;flex-wrap:wrap}
  .login-actions{grid-template-columns:minmax(0,1fr)}
  .round{width:min(78vw,280px)}
  .bracket-scroll{scroll-snap-type:x proximity;overscroll-behavior-inline:contain}
  .round{scroll-snap-align:start}
  .score-card h2{font-size:22px}
}
@media(max-width:380px){.brand{font-size:16px}.site-header{padding:12px 14px}.home,.page{padding-left:14px;padding-right:14px}.header-actions .header-link,.header-actions .text-button{font-size:11px}}
@media(max-width:700px){.small-button,.point-controls button,.primary,.court-form button{min-height:44px}.point-controls button{min-width:44px}.login-actions input,.panel input,.panel select,.panel textarea{font-size:16px}}
.assignment-form{margin:18px 0 22px}.assignment-list{border-top:1px solid #ffffff24}.assignment-item{padding:15px 0;border-bottom:1px solid #ffffff20}.assignment-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.assignment-heading form{margin:0}.assignment-tags{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:11px}.assignment-tags form{margin:0}.tiny-button{border:1px solid #607982;background:#25414b;color:#e1e9e8;border-radius:100px;padding:6px 9px;cursor:pointer;font-size:11px}.tiny-button:hover{background:#355966}@media(max-width:700px){.assignment-heading{align-items:flex-start;flex-direction:column}.assignment-form select,.assignment-form input{font-size:16px}}
.live-game-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:12px}.live-game{display:block;padding:18px;background:#172831;border:1px solid #47616a80;border-radius:12px}.live-game:hover{border-color:#eead5c}.live-game>div:first-child{display:flex;flex-direction:column;gap:5px}.live-game>div:first-child span{font-size:12px;color:#9eb0b4}.live-game-score{display:grid;gap:7px;margin-top:16px}.live-game-score span{display:flex;justify-content:space-between;gap:8px}.live-game-score b{color:#eead5c}
.form-notice{position:fixed;top:14px;left:50%;transform:translateX(-50%);z-index:1000;display:flex;align-items:center;gap:15px;width:max-content;max-width:min(92vw,560px);padding:13px 15px;border:1px solid #e99080;border-radius:10px;background:#5b302e;color:#fff;box-shadow:0 12px 32px #0008;font-size:14px;line-height:1.4}.form-notice[hidden]{display:none}.form-notice-text{min-width:0}.form-notice button{margin-left:auto;padding:0 2px;border:0;background:none;color:#fff;font-size:23px;line-height:1;cursor:pointer}@media(max-width:700px){.form-notice{top:8px;width:calc(100% - 20px);font-size:13px}}
.score-buttons{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}.score-buttons button{width:auto;min-width:39px;padding:0 7px;height:36px;font-size:14px}.point-controls{align-items:flex-start}.point-controls>span{padding-top:11px}.segment-list{display:flex;flex-wrap:wrap;gap:6px;padding:10px 13px;border-top:1px solid #ffffff1a;color:#b7c9cc;font-size:11px}.segment-list strong{color:#eead5c}.shootout-form{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:10px;border-top:1px solid #ffffff1a}.shootout-form span{width:100%;color:#eead5c;font-size:12px;font-weight:700}.shootout-form input{width:60px;min-width:0;padding:8px;background:#0e1d24;color:#fff;border:1px solid #58707a;border-radius:6px}.shootout-form button{flex:1}@media(max-width:700px){.score-buttons button{min-height:44px;min-width:44px}.point-controls{flex-direction:column;align-items:stretch}.point-controls>span{padding:0}.score-buttons{justify-content:flex-start}}

/* Referee scorekeeping: large, separated touch targets on phones. */
.referee-page .point-controls{display:block;padding:12px 14px 16px;border-top:1px solid #ffffff18}
.referee-page .point-controls>span{display:block;padding:0 0 9px;color:#f3f4ec;font-size:15px;font-weight:700;white-space:normal}
.referee-page .score-buttons{display:grid;grid-template-columns:repeat(auto-fit,minmax(64px,1fr));gap:9px}
.referee-page .score-buttons form{min-width:0}
.referee-page .score-buttons button{width:100%;height:56px;min-width:0;padding:0 4px;font-size:21px;font-weight:700;touch-action:manipulation}
.referee-page .score-buttons .add-point{background:#2c6552;border-color:#70b591}
.referee-page .score-buttons .remove-point{background:#4d3838;border-color:#a47474}
.referee-page .score-buttons button:focus-visible{outline:3px solid #eead5c;outline-offset:2px}
@media(max-width:700px){
  .referee-page .page{padding-left:14px;padding-right:14px}
  .referee-page .round{width:min(calc(100vw - 44px),380px)}
  .referee-page .score-buttons button{height:64px;font-size:24px}
  .referee-page .team{padding:16px;font-size:16px}
  .referee-page .team strong{font-size:22px}
}
.reset-game{padding:0 10px 10px}.reset-game button{width:100%;min-height:44px}

/* Match results and set progress remain legible at phone distance. */
.game .team strong{font-size:28px;line-height:1;font-variant-numeric:tabular-nums}
.score-line strong{font-size:32px;font-variant-numeric:tabular-nums}
.segment-list{font-size:14px;line-height:1.4;gap:8px 12px}
.score-context{padding:9px 13px;color:#c8d8d8;font-size:12px;line-height:1.4;border-top:1px solid #ffffff1a}
.referee-page .game .team strong{font-size:34px}
@media(max-width:700px){.game .team strong{font-size:32px}.referee-page .game .team strong{font-size:38px}.score-line strong{font-size:36px}}
.match-format{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:0 0 20px}.match-format label{display:grid;gap:6px;color:#c8d8d8;font-size:13px;font-weight:700}.match-format select{min-height:44px;max-width:100%;padding:9px 12px;border:1px solid #58707a;border-radius:7px;background:#0e1d24;color:#fff;font-size:16px}.match-format button{min-height:44px}
.score-buttons .add-point{height:auto;min-height:56px;padding:6px 5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.score-buttons .add-point small{display:block;max-width:100%;font-size:10px;line-height:1.1;font-weight:600;white-space:normal}.tiebreak-controls{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:10px}.tiebreak-controls>span{width:100%;font-size:12px;color:#eead5c}.tiebreak-controls button{min-height:44px;padding:5px 12px;border:1px solid #6b8c93;border-radius:8px;color:#fff;font-size:14px;font-weight:700}.tiebreak-controls .add-point{background:#2c6552}.tiebreak-controls .remove-point{background:#4d3838}
@media(max-width:700px){.referee-page .score-buttons .add-point{min-height:70px}.referee-page .score-buttons .add-point small{font-size:12px}.referee-page .tiebreak-controls button{min-height:54px;font-size:16px}}
.score-buttons button:disabled,.tiebreak-controls button:disabled{opacity:.42;cursor:not-allowed}
