body{background:#edf4f7}.app-header{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:100px;border-bottom:1px solid #d4e2e9}.header-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.header-actions button{font-size:14px}.user-label{font-size:14px;font-weight:700;color:#436677}.portal{max-width:1100px;margin:30px auto 45px}.welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.welcome h1{font-size:30px;letter-spacing:-1px;margin:5px 0 10px}.welcome p{font-size:15px;color:var(--muted);line-height:1.7;margin:0}.portal-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}.portal-tabs button.active{background:#153c52;color:white}.panel{background:white;border:1px solid #d8e7ee;border-radius:17px;padding:24px;margin-bottom:18px}.panel h2{font-size:21px;letter-spacing:-.5px;margin:0 0 12px}.panel p{font-size:14px;line-height:1.8;color:var(--muted)}.panel-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field{display:block;font-size:14px;font-weight:700;color:#36596c;margin-bottom:16px}.field input,.field select,.field textarea{display:block;width:100%;font-size:16px;color:#173f55;background:#f6fafc;border:1px solid #cbdfe8;border-radius:9px;padding:12px;margin-top:7px;min-height:46px}.field select{appearance:none;background:#f6fafc 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 10px center;padding-right:32px}.field small{display:block;color:var(--muted);font-size:12px;font-weight:400;line-height:1.7;margin-top:7px}.form-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:18px}.auth-card{max-width:470px;margin:50px auto;background:white;padding:34px;border:1px solid #d5e5ed;border-radius:22px;box-shadow:0 12px 30px #153c5208}.auth-card h1{font-size:28px;letter-spacing:-1px;margin:15px 0 10px}.auth-card p{font-size:14px;color:var(--muted);line-height:1.8}.auth-card .button{width:100%;font-size:16px}.login-symbol{font-size:52px}.hint{padding:13px 16px;border-radius:10px;background:#eaf5f9;color:#3d6a7e;font-size:14px;line-height:1.8}.empty{padding:22px;text-align:center;color:#6e8795;font-size:14px;line-height:1.8}.class-row,.student-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 0;border-top:1px solid #e6eef2}.class-row strong{display:block;font-size:16px}.class-row small{display:block;font-size:12px;color:var(--muted);margin-top:5px}.class-actions{display:flex;gap:7px;flex-wrap:wrap}.class-actions button{font-size:13px;padding:9px 11px;min-height:38px}.deleted-row{opacity:.65}.check-grid{display:flex;flex-wrap:wrap;gap:12px;padding:8px 0}.check-grid label{display:flex;align-items:center;gap:7px;font-size:14px}.check-grid input{width:18px;height:18px;accent-color:#1486ab}.data-table{width:100%;border-collapse:collapse;font-size:14px}.data-table th,.data-table td{border-bottom:1px solid #e4edf2;padding:12px 8px;text-align:left;line-height:1.7}.data-table th{font-size:13px;color:#66818f;white-space:nowrap}.table-scroll{overflow-x:auto}.badge{display:inline-block;padding:4px 8px;background:#e7f4f2;color:#2f7a6b;font-size:12px;border-radius:6px;margin:2px}.badge.inactive{background:#e9eef1;color:#7b8d97}.profile-hero{display:flex;gap:22px;align-items:center}.large-avatar{font-size:70px;background:#e6f6fa;border-radius:22px;width:110px;height:110px;display:grid;place-items:center;flex-shrink:0}.profile-hero h1{font-size:28px;margin:5px 0}.profile-hero p{font-size:14px;line-height:1.8;color:var(--muted)}.avatar-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin:20px 0}.avatar-grid button{min-height:67px;font-size:33px;background:#f1f7fa;border:2px solid transparent;border-radius:12px}.avatar-grid button.selected{border-color:#1b98b9;background:#e0f4f8}.room-code-input{font-size:30px!important;letter-spacing:8px;text-align:center;font-variant-numeric:tabular-nums}.live-layout{display:grid;grid-template-columns:minmax(0,1fr) 355px;gap:25px;padding:25px 0}.live-layout.tv-only{display:block}.broadcast{min-width:0}.live-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.live-title h1{font-size:26px;margin:0 0 7px}.live-title p{margin:0;color:#638092;font-size:14px}.code-chip{background:#fff;border:1px solid #c7dfe9;padding:9px 14px;border-radius:10px;text-align:center;white-space:nowrap}.code-chip small{display:block;font-size:11px;color:#708997}.code-chip b{font-size:26px;letter-spacing:4px;font-variant-numeric:tabular-nums}.live-sidebar{min-width:0;align-self:start;background:#fff;border:1px solid #d4e4ed;border-radius:18px;padding:22px}.live-sidebar h2{font-size:20px;margin:0 0 15px}.live-sidebar .button{font-size:15px;min-height:46px}.live-sidebar .profile-top{display:flex;align-items:center;gap:10px;padding-bottom:16px;border-bottom:1px solid #e2ecf1}.live-sidebar .profile-top .profile-face{font-size:35px;background:#e4f4fa;border-radius:11px;width:52px;height:52px;display:grid;place-items:center}.live-sidebar .profile-top b{font-size:18px}.live-sidebar .profile-top small{display:block;font-size:12px;color:#678592;margin-top:4px}.live-sidebar .question-card{min-height:205px}.live-sidebar .answer-card{font-size:20px;min-height:76px}.live-sidebar .answer-feedback{font-size:14px;min-height:60px}.personal-clock{font-size:14px;font-weight:700;background:#eaf5f9;color:#285f76;padding:11px;text-align:center;border-radius:8px;margin:15px 0}.lobby-team-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.lobby-team-buttons button{border:2px solid #d5e5ec;background:#f3f8fb;border-radius:12px;padding:15px 10px;font-size:15px;color:#335b70;font-weight:700}.lobby-team-buttons .chosen{border-color:#1f91b4;background:#e4f5f9}.ready-button{width:100%;background:#128474!important;border-color:#128474!important;color:white!important}.live-crew-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-top:15px;min-height:78px}.crew-member b{font-size:12px}.crew-member small{font-size:10px;line-height:1.6}.offline-player{opacity:.42}.empty-crew{grid-column:1/-1;text-align:center;align-self:center;font-size:13px;color:#738c99}.overlay-code{font-size:35px;letter-spacing:8px;display:block;margin:7px 0 0}.host-person{display:grid;grid-template-columns:minmax(0,1fr) 70px 45px;gap:5px;align-items:center;border-bottom:1px solid #e2edf2;padding:10px 0}.host-person span{font-size:14px;overflow-wrap:anywhere}.host-person small{display:block;font-size:11px;color:#698593;margin-top:4px}.host-person select{font-size:12px;padding:7px;border:1px solid #d0e3eb;border-radius:7px;max-width:75px}.host-person button{font-size:12px;padding:7px;border:1px solid #e5d2cc;border-radius:7px;color:#a35643;background:#fff4f0}.host-controls{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.host-controls button{flex:1;white-space:nowrap}.host-secondary{display:flex;gap:7px;margin:15px 0;flex-wrap:wrap}.host-secondary button{font-size:12px!important;padding:9px}.connection-banner{padding:13px 18px;background:#fff0cf;color:#8b611e;border:1px solid #f3d7a3;border-radius:10px;margin-top:15px;font-size:14px}.emoji-wave{font-size:170px;line-height:1.1;opacity:.72}.loading{text-align:center;padding:70px;color:#5e8092}.toggle-label{display:flex;gap:8px;align-items:center;font-size:14px}.toggle-label input{width:18px;height:18px;accent-color:#1486ab}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:50;max-width:min(90%,680px);padding:15px 22px;background:#183e52;color:#fff;border-radius:12px;font-size:14px;line-height:1.7;box-shadow:0 8px 30px #14374a30}.tv-only .lake{height:440px}.tv-only .lane-blue{top:45px}.tv-only .lane-coral{top:195px}.tv-only .lane{height:110px}.tv-only .boat-position{width:300px;top:-40px}.tv-only .match-hud b{font-size:44px}.tv-only .match-hud p{font-size:18px}.tv-only .race-event{font-size:25px}.tv-only .crew-member b{font-size:16px}.tv-only .crew-member small{font-size:13px}.tv-only .crew-avatar{font-size:32px}.tv-only .live-crew-list{min-height:110px}.student-mode .results{overflow-x:auto}.mini-record{border-top:1px solid #e2ecf1;padding:14px 0}.mini-record b{font-size:15px}.mini-record p{font-size:13px;margin:5px 0}.danger{color:#ae4d37!important;border-color:#e9cfc6!important}.danger-zone{border-top:1px solid #e3eaee;margin-top:24px;padding-top:18px}.full-width{width:100%}.setup-description{background:#eaf5f9;border-radius:10px;padding:14px;font-size:14px;line-height:1.8}.student-search{width:min(100%,360px);padding:11px 13px;border:1px solid #ccdfe8;border-radius:8px;font-size:15px;margin:10px 0 16px}.form-error{color:#a94f39;font-size:14px;line-height:1.7}.muted{color:#6c8897}.entry-dialog{max-height:90vh;overflow:auto}.entry-dialog .field{margin-bottom:16px}.entry-dialog .field input{margin-top:7px}.feedback-muted{font-size:13px;color:#688694;line-height:1.8}.server-origin{overflow-wrap:anywhere}.disconnected-controls{opacity:.55;pointer-events:none}@media(max-width:1100px){.live-layout{grid-template-columns:minmax(0,1fr) 310px;gap:18px}.live-sidebar{padding:18px}.app-header{padding:15px 0;min-height:90px;flex-wrap:wrap}.header-actions{gap:6px}.header-actions .button{font-size:13px;padding:9px 12px}.crew-member b{font-size:11px}.crew-member small{font-size:9px}.live-title h1{font-size:22px}.code-chip b{font-size:23px}.match-hud{flex-wrap:wrap}}@media(max-width:850px){.live-layout{display:block}.live-sidebar{margin:20px auto;max-width:480px;padding:22px}.student-mode .broadcast{display:none}.student-mode .live-sidebar{max-width:500px}.panel-grid{grid-template-columns:1fr}.welcome{display:block}.welcome h1{font-size:26px}.welcome .form-actions{margin-top:15px}.portal{margin-top:22px}.panel{padding:20px}.live-title h1{font-size:22px}.tv-only .lake{height:390px}.tv-only .boat-position{width:230px;top:-15px}.tv-only .lane-coral{top:160px}.tv-only .crew-member b{font-size:13px}.tv-only .crew-member small{font-size:11px}.tv-only .race-event{font-size:19px}.host-person{grid-template-columns:minmax(0,1fr) 85px 50px}.live-crew-list{gap:3px}.user-label{font-size:13px}.data-table{font-size:13px}.tv-only .match-hud p{font-size:14px}.auth-card{margin:32px auto;padding:27px}.form-grid{gap:12px}}@media(max-width:480px){.game-shell{padding:0 13px}.header-actions .user-label{display:none}.app-header .brand b{font-size:18px}.app-header .brand small{display:none}.app-header .brand-icon{width:42px;height:42px;font-size:25px}.app-header{gap:10px}.header-actions{width:100%;justify-content:flex-start}.header-actions .button{font-size:12px;padding:9px}.form-grid{grid-template-columns:1fr}.profile-hero{gap:15px}.large-avatar{width:85px;height:85px;font-size:55px}.profile-hero h1{font-size:23px}.avatar-grid{grid-template-columns:repeat(4,1fr)}.class-row{align-items:flex-start}.class-actions button{font-size:12px;padding:8px}.welcome h1{font-size:25px}.portal-tabs .button{font-size:13px}.live-title{flex-wrap:wrap}.tv-only .crew-avatar{font-size:25px}.tv-only .crew-member b{font-size:11px}.tv-only .crew-member small{font-size:9px}.tv-only .live-crew-list{min-height:80px}.match-hud p{width:100%}.data-table td{padding:10px 6px}.student-mode .live-sidebar{margin-top:0}.auth-card{padding:25px 21px}.entry-dialog{padding:28px 22px}.room-code-input{letter-spacing:6px!important}.tv-only .match-hud b{font-size:35px}}@media(prefers-reduced-motion:reduce){.scene-event,.distance-pop{display:none}}
