.sound-controls{display:flex;gap:6px}.sound-btn{background:#fff;border:1px solid #d5e4eb;border-radius:9px;padding:10px;font-size:13px;font-weight:700;color:#224b61;white-space:nowrap}.sound-btn[aria-pressed=false]{color:#71828c;background:#e4edf1}.setup-bar{display:flex;flex-wrap:wrap;gap:14px;margin:0 0 16px;padding:14px 16px;background:#fff;border:1px solid var(--line);border-radius:12px}.setup-bar label{display:flex;gap:8px;align-items:center;font-size:13px;color:#547181}.setup-bar select{font-size:14px;font-weight:700;color:#183c50;appearance:none;border:1px solid #d7e5ec;border-radius:7px;background:#f3f8fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%235c7687' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 7px center;padding:8px 28px 8px 9px}.quick-label{margin-left:auto;white-space:nowrap}.quick-label input{accent-color:#17809c;width:16px;height:16px}.match-hud{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 22px;background:linear-gradient(105deg,#10384d,#154962);border-radius:14px 14px 0 0;color:white}.match-hud>div{display:flex;gap:15px;align-items:center;white-space:nowrap}.match-hud span{font-size:13px;color:#a4dbe4;font-weight:700}.match-hud b{font-size:35px;letter-spacing:1px;font-variant-numeric:tabular-nums}.match-hud p{font-size:13px;line-height:1.7;color:#edf9fd;margin:0}.match-hud .music-indicator{font-size:10px;letter-spacing:1px;white-space:nowrap;color:#97decc}.match-progress{height:5px;background:#c8dce5;border-radius:0 0 9px 9px;overflow:hidden;margin-bottom:16px}.match-progress>div{width:100%;height:100%;background:#f6c75e;transition:width .2s linear}.urgent{color:#ffca69;animation:clock-pulse .8s infinite}.racing .lane-waves{height:20px;bottom:0;background:repeating-linear-gradient(90deg,#ddffff 0 40px,transparent 40px 105px);animation:water-rush 1.7s linear infinite}.racing .water:before,.racing .water:after{content:"";position:absolute;inset:20px -100px 0;opacity:.3;background:repeating-linear-gradient(90deg,transparent 0 73px,#e6ffff 73px 108px,transparent 108px 190px);mask-image:repeating-linear-gradient(0deg,transparent 0 29px,#000 29px 32px,transparent 32px 66px);animation:water-rush 3s linear infinite;pointer-events:none}.racing .water:after{inset:35px -100px 0;opacity:.18;animation-duration:4.5s}.racing .rower .oar{animation:row 1.1s ease-in-out infinite}.racing .rower:nth-child(2) .oar{animation-delay:-.08s}.racing .rower:nth-child(3) .oar{animation-delay:-.16s}.racing .rower:nth-child(4) .oar{animation-delay:-.24s}.racing .boat-bob{animation:active-bob 1.1s ease-in-out infinite}.racing .boat-wake{animation:wake 1.1s ease-in-out infinite}.racing .cloud{animation:cloud-drift 28s linear infinite}.surge .rower .oar{animation-duration:.35s!important}.surge .boat-bob{animation:surge-bob .28s ease-in-out 3}.surge .lane-waves{animation-duration:.4s!important;opacity:.65}.surge .boat-position{filter:drop-shadow(0 0 9px #f6ffffad)}.distance-pop{position:absolute;top:-20px;margin-left:90px;z-index:7;background:#fff4c5;color:#684109;border:2px solid #ffc75b;border-radius:30px;padding:7px 14px;font-size:20px;font-weight:900;white-space:nowrap;animation:distance-pop 1.1s ease-out forwards;pointer-events:none}.splash-drop{position:absolute;top:72px;width:8px;height:12px;border-radius:60% 60% 70% 70%;background:#e8ffff;box-shadow:0 0 5px #fff7;z-index:4;animation:splash .8s ease-out forwards;pointer-events:none}.race-event{position:absolute;left:50%;top:12px;transform:translateX(-50%) translateY(-15px);background:#15384fe8;border:2px solid #94dce7;color:#fff;border-radius:12px;padding:12px 22px;text-align:center;font-size:20px;font-weight:900;z-index:8;opacity:0;pointer-events:none;white-space:nowrap;transition:opacity .2s,transform .3s}.race-event.visible{opacity:1;transform:translateX(-50%) translateY(0);animation:event-bounce .4s ease-out}.race-event.cheer-event{background:#f7d471;color:#5e3e12;border-color:#fff3b2}.race-event.lead-event{background:#ef765c;border-color:#ffe1b7}.race-event.final-event{background:#16394e;border-color:#ffcd77;color:#ffdc92}.race-overlay .overlay-icon{animation:medal-bob 2s ease-in-out infinite}.confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:9}.confetti i{position:absolute;left:var(--x);top:-20px;width:8px;height:14px;border-radius:2px;transform:rotate(var(--r));animation:confetti-fall 3.4s var(--d) ease-in infinite}.completed{background:#e4f4e8}.entry-dialog{border:0;border-radius:24px;padding:36px;width:min(500px,calc(100% - 32px));color:var(--ink);box-shadow:0 30px 100px #0d304d50}.entry-dialog::backdrop{background:#13354b99;backdrop-filter:blur(7px)}.dialog-close{position:absolute;right:15px;top:10px;background:none;color:#6c8491;font-size:30px;width:35px;height:40px}.entry-dialog h2{font-size:25px;letter-spacing:-1px;margin:12px 0}.entry-dialog p{font-size:14px;line-height:1.8;color:var(--muted)}.entry-note{background:#edf6fa;padding:14px;border-radius:10px;font-size:13px;line-height:1.8;margin:18px 0}.entry-dialog label{font-size:14px;display:block;font-weight:700;margin:16px 0}.entry-dialog input{display:block;width:100%;border:1px solid #cddfe8;padding:13px;margin-top:8px;border-radius:9px;font-size:16px}.entry-dialog .button{margin:5px 5px 0 0}.avatar-options{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:24px 0}.avatar-option{font-size:38px;min-height:76px;border-radius:14px;background:#f0f6f8;border:2px solid transparent}.avatar-option.chosen{border-color:#1597b8;background:#e2f5f8}.game-choice{text-align:center;border:1px solid #cce4ed;background:linear-gradient(#f3fbfc,#e5f5fa);padding:24px;border-radius:17px;margin-top:24px}.game-choice>span{font-size:60px}.game-choice h3{font-size:23px;margin:12px 0 5px}.future-games{display:flex;gap:10px;margin-top:14px}.future-games span{flex:1;background:#eff2f4;padding:13px;border-radius:9px;text-align:center;font-size:12px;color:#7b8a94}.paused .rower .oar,.paused .lane-waves,.paused .water:before,.paused .water:after,.paused .boat-bob{animation-play-state:paused!important}.player-select label,.player-select select,.question-progress,.question-hint,.question-card p,.answer-feedback,.time-pill{font-size:14px}.crew-member b{font-size:14px}.crew-member small{font-size:11px}.crew-list{gap:4px}.tv-view .match-hud b{font-size:44px}.tv-view .match-hud p{font-size:18px}.tv-view .race-event{font-size:26px}.tv-view .setup-bar{justify-content:center}.tv-view .quick-label{margin-left:0}@keyframes water-rush{to{background-position-x:-210px}}@keyframes active-bob{0%,100%{transform:translateY(0) rotate(-.4deg)}50%{transform:translateY(3px) rotate(.4deg)}}@keyframes surge-bob{50%{transform:translateY(-4px) rotate(-1deg)}}@keyframes distance-pop{0%{opacity:0;transform:translateY(10px) scale(.75)}20%{opacity:1;transform:translateY(-8px) scale(1.05)}100%{opacity:0;transform:translateY(-65px) scale(1)}}@keyframes splash{0%{opacity:0}15%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(45deg)}}@keyframes clock-pulse{50%{opacity:.6}}@keyframes cloud-drift{to{translate:-80px}}@keyframes event-bounce{0%{scale:.85}65%{scale:1.05}100%{scale:1}}@keyframes medal-bob{50%{transform:translateY(-6px) rotate(5deg)}}@keyframes confetti-fall{to{top:110%;transform:translateX(30px) rotate(calc(var(--r) + 600deg))}}@media(max-width:1150px){.match-hud{padding:12px 15px;gap:12px}.match-hud>div{gap:8px}.match-hud b{font-size:28px}.match-hud .music-indicator{display:none}.match-hud p{font-size:12px}.setup-bar{gap:10px;padding:12px}.quick-label{margin-left:0}.topbar{gap:10px}.sound-btn{font-size:12px;padding:9px}.crew-member b{font-size:12px}.race-event{font-size:16px;padding:10px 14px}.button{font-size:14px}.referee{flex-wrap:wrap}}@media(max-width:850px){.brand{min-width:200px}.sound-controls{margin-left:auto}.topbar .view-tabs{order:4}.setup-bar label{font-size:12px}.match-hud{gap:8px;flex-wrap:wrap}.match-hud p{font-size:12px}.match-hud>div{gap:12px}.race-event{max-width:95%;white-space:normal;width:max-content;font-size:15px}.tv-view .race-event{font-size:20px}.student-view .student-panel{margin-top:18px}.entry-dialog{padding:28px 22px}.entry-dialog h2{font-size:23px}.entry-dialog .avatar-option{font-size:32px;min-height:65px}.tv-view .match-hud p{font-size:14px}}@media(max-width:420px){.sound-controls{width:100%;justify-content:flex-end;position:absolute;top:14px;right:15px;width:auto}.brand{padding-right:100px}.brand b{font-size:17px}.brand small{display:none}.brand-icon{width:40px;height:40px}.sound-btn{font-size:11px;padding:8px 6px}.topbar{position:relative}.topbar .brand{min-width:0}.crew-member small{font-size:10px}.crew-member b{font-size:11px}.match-hud p{width:100%}.race-event{font-size:14px}.quick-label{font-size:11px!important}}
@media(prefers-reduced-motion:reduce){.racing *,.confetti i,.urgent,.race-event,.distance-pop,.splash-drop{animation:none!important}.distance-pop,.splash-drop,.confetti{display:none}.race-event{transition:none}}
.student-match-bar{margin:13px 0 0;padding:10px 12px;border-radius:8px;background:#eaf5f9;color:#245e75;font-size:13px;font-weight:700;text-align:center}
