:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#183b30;background:#f4f3eb;font-synthesis:none;--green:#183b30;--lime:#dcf48d;--line:#dcded2}*{box-sizing:border-box}body{margin:0;padding:env(safe-area-inset-top) max(28px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(28px,env(safe-area-inset-left))}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #d17b28;outline-offset:4px}button:disabled{opacity:.35;cursor:default}[hidden]{display:none!important}header,footer{max-width:1320px;margin:auto;display:flex;align-items:center;justify-content:space-between}header{height:98px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;font-weight:900;letter-spacing:2px;color:inherit;text-decoration:none;font-size:20px}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--green);color:var(--lime);font-size:26px}.brand-sub{font-size:9px;letter-spacing:1.5px;border-left:1px solid #b7c1b4;padding-left:12px;margin-left:6px;width:78px;line-height:1.6}.header-note,footer{font-size:10px;letter-spacing:1.4px;color:#5e6c60}main{max-width:1220px;margin:auto}.setup{max-width:900px;margin:60px auto 55px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:800}.setup h1{font-size:clamp(60px,7.5vw,100px);line-height:1.02;letter-spacing:-5px;margin:24px 0}.setup h1 em{font-family:Georgia,serif;font-weight:400}.intro{font-size:20px;color:#677367}.team-options{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:38px}.team-option{display:flex;align-items:center;gap:22px;text-align:left;padding:25px;border:1px solid #b6c2ac;background:#e7ecdb;color:var(--green);border-radius:18px;min-height:132px}.team-option:hover{background:var(--lime);transform:translateY(-2px)}.option-number{font-size:66px;font-weight:700;letter-spacing:-4px}.team-option strong{display:block;font-size:20px}.team-option small{display:block;margin-top:12px;letter-spacing:3px}.arrow{margin-left:auto;font-size:28px}.setup-foot{display:flex;gap:40px;margin-top:35px;font-size:24px;font-weight:600}.setup-foot small{display:block;font-size:9px;letter-spacing:1.3px;margin-top:8px;color:#687366}.setup-note{font-size:12px;color:#65705f;max-width:540px;line-height:1.7;margin-top:28px}.board-top{display:flex;justify-content:space-between;align-items:center;margin:29px 0 22px}.board-top h1{font-size:38px;letter-spacing:-1.5px;margin:8px 0 0}.quiet{background:transparent;border:1px solid #c9d0c1;color:var(--green);border-radius:10px;min-height:48px;padding:10px 18px;font-size:13px;font-weight:600}.quiet:hover{background:#e6eada}.game-layout{display:grid;grid-template-columns:1.4fr 1fr;gap:20px}.now-card{background:var(--green);border-radius:23px;padding:27px 32px;color:#f8f9ee;position:relative;overflow:hidden}.card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.now-card .eyebrow{color:var(--lime)}.live-dot{display:inline-block;width:7px;height:7px;background:var(--lime);border-radius:50%;margin-right:8px}.game-pill{font-size:11px;border:1px solid #6c8977;border-radius:30px;padding:7px 11px;white-space:nowrap}.matchup{display:flex;align-items:center;justify-content:center;gap:28px}.now-card .matchup{padding:23px 0 19px}.team-letter{font-size:clamp(75px,9vw,122px);line-height:1;font-weight:750;letter-spacing:-5px}.versus{font-family:Georgia,serif;font-style:italic;font-size:23px;opacity:.55}.timer-section{border-top:1px solid #496356;padding-top:20px}.timer-top{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1.5px;color:#c0cebb}.timer-top span:last-child{color:var(--lime)}#timer{font-size:clamp(68px,8.7vw,110px);font-weight:550;letter-spacing:-4px;line-height:1.15;font-variant-numeric:tabular-nums}.progress{height:4px;background:#4a6352;border-radius:4px;margin:12px 0 24px;overflow:hidden}#progress-fill{height:100%;width:100%;background:var(--lime);transition:width .2s linear}.primary{background:var(--lime);border:0;color:#203b27;width:100%;border-radius:11px;padding:17px;font-weight:750;font-size:18px;min-height:58px}.primary:hover{background:#eaffab}.timer-help{text-align:center;color:#b5c9b2;font-size:11px;margin:13px 0 0}.queue{display:grid;grid-template-rows:1fr 1fr;gap:20px}.queue-card{border-radius:23px;padding:25px 28px;background:#e3e9d6;display:flex;flex-direction:column;justify-content:space-between}.queue-card.deck{background:#eaece2}.queue-card .card-top>span:last-child{font-size:11px;color:#63705f}.queue-card .team-letter{font-size:clamp(60px,6.5vw,88px)}.queue-card .matchup{padding:15px 0}.queue-card p{display:flex;justify-content:space-between;font-size:12px;color:#687762;margin:0}.queue-card p span{font-size:19px}.under-board{display:flex;align-items:center;justify-content:space-between;margin-top:16px;gap:10px}.navigation{display:flex;gap:10px}.loop-note{font-size:11px;color:#65715f}.transition{font-size:12px;padding:12px 0;color:#88602d;min-height:38px}.transition:empty{padding:0;min-height:12px}.bottom-bar{border-top:1px solid var(--line);padding-top:14px;display:flex;justify-content:space-between;align-items:center;gap:12px}.wake-label{display:flex;align-items:center;gap:9px;font-size:12px;min-height:44px;cursor:pointer}.wake-label input{width:21px;height:21px;accent-color:var(--green)}#wake-status{font-size:10px;color:#6d7766}.text-button{border:0;background:none;color:inherit;font-size:12px;min-height:44px;padding:8px 0}.text-button:hover{text-decoration:underline}.save-note{font-size:10px;color:#75816d;margin:8px 0 24px}footer{border-top:1px solid var(--line);min-height:68px;gap:20px}dialog{border:1px solid #cbd5bd;border-radius:22px;padding:35px;max-width:540px;width:calc(100% - 36px);color:var(--green);background:#f4f3eb;max-height:85dvh;overflow:auto}dialog::backdrop{background:#0d241f99;backdrop-filter:blur(5px)}dialog h2{font-size:32px;letter-spacing:-1px;margin:14px 0}dialog p{font-size:14px;line-height:1.7;color:#5c6f5c}.close{float:right;margin:-19px -19px 0 0;min-width:44px;min-height:44px;border:0;background:transparent;font-size:28px;color:var(--green)}.dialog-action{display:block;width:100%;border:1px solid #c2cbb8;border-radius:10px;padding:18px;margin-top:12px;background:#e4ecd6;color:var(--green);font-weight:650}.schedule-row{display:flex;justify-content:space-between;border-bottom:1px solid #dce0d3;padding:10px 4px;font-size:14px}.schedule-row.active{background:#dfedbf;font-weight:800}.dialog-note{font-size:12px!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(min-width:1400px){main{max-width:1160px}}@media(max-width:780px){body{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}.header-note{display:none}header{height:80px}.game-layout{grid-template-columns:1.18fr 1fr;gap:14px}.now-card{padding:24px}.queue-card{padding:22px}.matchup{gap:20px}.now-card .team-letter{font-size:94px}.queue-card .team-letter{font-size:68px}.timer-top{letter-spacing:.5px;font-size:8px}#timer{font-size:88px}.under-board{align-items:flex-start}.loop-note{padding-top:15px}.setup{margin-top:45px}}@media(max-width:600px){.brand-sub{display:none}.board-top h1{font-size:30px}.board-top .quiet{font-size:11px;padding:10px}.game-layout{grid-template-columns:1fr}.now-card .matchup{padding:20px 0}.now-card .team-letter{font-size:96px}.queue{grid-template-columns:1fr 1fr;grid-template-rows:auto;gap:12px}.queue-card{padding:19px 15px;border-radius:18px}.queue-card .eyebrow{font-size:9px;letter-spacing:1px}.queue-card .card-top>span:last-child{font-size:9px}.queue-card .team-letter{font-size:58px;letter-spacing:-2px}.queue-card .matchup{gap:12px}.queue-card p{font-size:10px}.queue-card .versus{font-size:16px}.under-board{flex-wrap:wrap}.navigation{width:100%}.navigation button{flex:1}.loop-note{padding:3px 0}.bottom-bar{align-items:flex-start;flex-direction:column;gap:0}.team-options{grid-template-columns:1fr}.setup h1{letter-spacing:-3px}.setup-foot{gap:25px}.setup-foot small{font-size:8px}footer{font-size:8px;letter-spacing:.7px}.timer-help{font-size:10px}}

/* Team names carry a color marker while retaining high-contrast text. */
.team-option small{letter-spacing:0;line-height:1.6;font-size:12px;max-width:210px}
.team-letter{display:flex;flex-direction:column;align-items:center;gap:13px;letter-spacing:-2px;font-size:clamp(28px,4.6vw,58px);font-weight:750}
.team-letter::before{content:"";display:block;width:22px;height:22px;border-radius:50%;border:2px solid #ffffff88;box-shadow:0 0 0 1px #183b3022}
[data-color="Red"]::before{background:#e34640}[data-color="Blue"]::before{background:#3783ec}[data-color="Green"]::before{background:#43ac60}[data-color="Black"]::before{background:#151c19}[data-color="Yellow"]::before{background:#f5ce42}
.now-card .matchup{min-height:155px;gap:20px}.queue-card .team-letter{font-size:clamp(24px,3.4vw,43px);letter-spacing:-1px}.queue-card .matchup{gap:18px}.queue-card .team-letter::before{width:16px;height:16px}.versus{align-self:center}
@media(max-width:780px){.now-card .team-letter{font-size:34px;letter-spacing:-1px}.queue-card .team-letter{font-size:29px}.now-card .matchup{gap:16px}.queue-card .matchup{gap:12px}}
@media(max-width:600px){.now-card .team-letter{font-size:40px}.queue-card .team-letter{font-size:22px;letter-spacing:-.7px}.queue-card .matchup{gap:8px}.queue-card .versus{font-size:13px}.team-letter::before{width:19px;height:19px}.queue-card .team-letter::before{width:12px;height:12px}}
@media(min-width:800px) and (max-height:850px){header{height:72px}.board-top{margin:18px 0 16px}.board-top h1{font-size:32px}.now-card{padding:24px 28px}.now-card .matchup{min-height:125px;padding:18px 0}.timer-section{padding-top:14px}#timer{font-size:86px}.progress{margin:8px 0 16px}.queue-card{padding:22px 26px}.under-board{margin-top:12px}.bottom-bar{padding-top:6px}.save-note{margin-bottom:14px}}

[data-color="Orange"]::before{background:#f18a34}[data-color="Purple"]::before{background:#9c6ce0}[data-color="Pink"]::before{background:#ed82ac}[data-color="White"]::before{background:#fff}[data-color="Gray"]::before{background:#8c9694}
#settings-form fieldset{border:0;padding:0;margin:24px 0}#settings-form legend{font-weight:750;font-size:16px}#settings-form .field-help{font-size:12px;margin:8px 0 14px}#color-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.color-field,.duration-fields label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600}.color-field select,.duration-fields input{font:inherit;font-size:16px;width:100%;min-height:48px;border:1px solid #b7c3ad;border-radius:9px;background:#fffef7;color:#183b30;padding:10px}.duration-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}#settings-error{color:#a13a2e;font-weight:650;font-size:13px}select:focus-visible{outline:3px solid #d17b28;outline-offset:3px}

.sound-options{margin-top:4px}.sound-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);min-height:44px}.sound-row .wake-label{flex:1;margin:0;min-width:0}.sound-test{flex:0 0 auto;min-width:52px;min-height:44px;padding:4px 10px;background:transparent;border:0;border-radius:8px;color:var(--green);font-size:12px;font-weight:650;text-decoration:underline;text-underline-offset:3px}.sound-test:hover{background:#e6eada}.sound-help{font-size:11px!important;line-height:1.5!important;margin:10px 0 0}#sound-status:empty{display:none}

.timer-controls{display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:8px;margin-top:12px}.timer-control{min-height:48px;padding:10px 5px;border:1px solid #78927a;border-radius:9px;background:#284d3e;color:#f7f9ec;font-size:13px;font-weight:650}.timer-control:hover{background:#365d4b}.timer-controls-help{font-size:11px;line-height:1.6;color:#65715f;margin:12px 0 8px}@media(max-width:780px){.timer-controls{gap:6px}.timer-control{font-size:11px}}

.board-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.setup .team-options{margin-top:20px}@media(max-width:600px){.board-top{gap:12px;align-items:flex-start}.board-actions{gap:6px;max-width:180px}.board-actions .quiet{min-height:44px;width:100%}}

.setup-foot{align-items:center;flex-wrap:wrap;row-gap:18px}#setup-settings{margin-left:auto;flex:0 0 auto}select option:disabled{color:#92998b}

.roster-bar{display:flex;align-items:center;gap:20px;margin:0 0 12px}.roster-controls{display:flex;align-items:center;gap:12px;flex-shrink:0}.roster-controls strong{font-size:14px;min-width:72px;text-align:center}.roster-bar p{font-size:11px;line-height:1.6;color:#65715f;margin:0}.team-change-notice{display:flex;align-items:center;gap:12px;font-size:12px;color:#6f5729}.team-change-notice:has(#team-change-status:empty){display:none}.team-change-notice:not(:has(#team-change-status:empty)){padding:0 0 12px}#team-history p{font-size:12px;border-bottom:1px solid #dce0d3;padding:8px 0}@media(max-width:780px){.roster-bar{align-items:flex-start;flex-direction:column;gap:8px}.team-change-notice{align-items:flex-start}}

#roster-error{color:#a13a2e;font-size:13px;font-weight:650}

/* Keep each settings section within an iPad viewport; allow scrolling on smaller screens. */
#options-dialog{max-width:660px;padding:20px;max-height:calc(100dvh - 32px)}
.settings-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
#options-dialog .settings-heading h2{font-size:27px;margin:0;letter-spacing:-.8px}
.settings-heading .close{float:none;margin:0;width:44px;height:44px}
.settings-tabs{display:flex;background:#e5e9dc;padding:4px;border-radius:12px;gap:4px;margin-bottom:16px}
.settings-tabs [role=tab]{flex:1;min-height:44px;border:0;border-radius:9px;background:transparent;color:var(--green);font-size:14px;font-weight:650}
.settings-tabs [aria-selected=true]{background:#fffef7;box-shadow:0 1px 4px #183b301a}
.settings-panel{min-height:280px}
#settings-form .settings-panel fieldset{margin:0 0 18px;min-width:0}
#settings-form .settings-panel legend{font-size:14px}
#settings-form .settings-panel .field-help{font-size:11px;line-height:1.5;margin:8px 0 12px}
#options-dialog #color-fields{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
#options-dialog .color-field,#options-dialog .duration-fields label{font-size:11px;gap:5px}
#options-dialog .color-field select,#options-dialog .duration-fields input{min-height:44px;padding:8px;font-size:15px}
.settings-timing{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:22px}
#settings-form .settings-timing fieldset{margin:0}
#options-dialog .duration-fields{gap:10px;margin-top:10px}
.settings-save{border-top:1px solid var(--line);padding-top:12px}
#settings-error:empty{display:none}#settings-error{margin:0 0 10px}
#options-dialog .primary{min-height:48px;padding:13px;font-size:16px}
@media(max-width:540px){#options-dialog{padding:18px}.settings-panel{min-height:360px}#options-dialog #color-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.settings-timing{gap:16px;margin-top:18px}}

#settings-form #settings-audio-panel fieldset{margin-bottom:0}
@media(max-height:700px){#options-dialog{padding:16px}.settings-heading{margin-bottom:8px}.settings-tabs{margin-bottom:12px}}
