:root{--navy:#071b2a;--navy2:#123c4f;--teal:#49d6c5;--teal2:#0e8f83;--cream:#f3f7f7;--ink:#0c2835;--muted:#687e87;--line:#d8e5e7;--white:#fff;--gold:#f6bf61}
*{box-sizing:border-box}body{margin:0;background:#e9f0f0;color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;font-size:15px;line-height:1.5}button,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}a{color:inherit}.shell{max-width:1060px;min-height:100dvh;background:#f9fbfb;margin:auto;box-shadow:0 0 60px #07334918;display:flex;flex-direction:column}main{flex:1}.topbar{background:var(--navy);padding:18px clamp(18px,4.5vw,48px);display:flex;align-items:center;justify-content:space-between;color:#fff}.brand{display:flex;gap:10px;align-items:center;line-height:1.15}.brand-icon{display:grid;place-items:center;color:var(--teal);border:1.5px solid var(--teal);height:42px;width:42px;border-radius:12px;font-size:28px;transform:rotate(-8deg)}.brand b{letter-spacing:.07em;font-size:17px}.brand b span{color:var(--teal);margin-left:6px}.brand small{display:block;color:#9dbbc0;font-size:9px;letter-spacing:.20em;margin-top:4px}.online{font-size:12px;color:#cae6e3;display:flex;gap:8px;align-items:center}.dot{height:7px;width:7px;background:var(--teal);border-radius:50%;box-shadow:0 0 10px #49d6c5a8}.hero{padding:50px clamp(22px,6vw,72px) 72px;color:white;background:radial-gradient(ellipse at 94% 15%,#12546a 0,transparent 40%),linear-gradient(155deg,#0c3546 0%,#071d2a 77%);position:relative;overflow:hidden}.hero:after{content:'';position:absolute;right:-120px;bottom:-140px;border:1px solid #52c9b626;border-radius:50%;height:430px;width:430px;box-shadow:0 0 0 40px #49d6c50d,0 0 0 90px #49d6c508}.hero-kicker,.eyebrow{font-weight:800;font-size:10px;letter-spacing:.18em;color:#15978b}.hero-kicker{color:var(--teal)}.hero h1{font-size:clamp(34px,6vw,64px);line-height:1.06;letter-spacing:-.045em;margin:18px 0}.hero h1 em{font-style:normal;color:var(--teal)}.hero p{max-width:485px;color:#b5ced0;font-size:17px}.hero-badges{display:flex;gap:9px;flex-wrap:wrap;margin-top:25px}.hero-badges span{color:#c2e5e1;border:1px solid #57cbb744;background:#ffffff0b;padding:7px 11px;border-radius:99px;font-size:11px}.auth-card{max-width:490px;margin:-39px auto 50px;position:relative;background:#fff}.card{border-radius:18px;border:1px solid var(--line);box-shadow:0 12px 30px #0b30450c;background:#fff;padding:24px}.card h3{font-size:20px;margin:0 0 6px;letter-spacing:-.03em}.card p{color:#526d78;margin:0 0 18px}.tabs{display:flex;background:#eef5f5;border-radius:12px;padding:4px;margin-bottom:20px}.tab{border:0;border-radius:9px;background:transparent;color:#526e7b;padding:10px;flex:1;font-weight:700}.tab.selected{background:white;color:#0c2938;box-shadow:0 1px 8px #07334922}.stack{display:grid;gap:14px}.field{display:flex;flex-direction:column;gap:6px}.field label{font-size:12px;font-weight:750;color:#2a4c58}.field input,.field select{width:100%;border:1px solid #cbdce1;background:#fbfdfd;color:#132e3a;border-radius:10px;padding:12px 13px;min-height:46px;outline:none}.field input:focus,.field select:focus{border-color:var(--teal2);box-shadow:0 0 0 3px #31c4b530}.form-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.primary,.secondary,.light-btn{border:0;border-radius:11px;font-weight:800;min-height:45px;padding:10px 17px}.primary{color:#062c35;background:var(--teal)}.primary:hover{background:#5ce9d6}.secondary{color:#08374b;background:#e6f5f3;border:1px solid #ace4db}.secondary:hover{background:#c9ede9}.light-btn{background:white;color:#0e4152}.full{width:100%}.small-note{color:#748b91!important;font-size:11px;line-height:1.6;margin-top:16px!important}.toast{margin:16px 22px -6px;background:#fff3e8;color:#873f16;border:1px solid #ffc8a2;padding:12px 16px;border-radius:10px}.welcome{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:32px clamp(20px,4.5vw,46px) 15px}.welcome h1{margin:4px 0;font-size:32px;letter-spacing:-.045em}.welcome p{margin:0;color:var(--muted)}.quiet{background:transparent;border:1px solid #cbdde1;color:#35606b;padding:9px 12px;border-radius:9px;font-size:12px;font-weight:750}.stat-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px clamp(20px,4.5vw,46px) 23px}.stat-strip>div{display:flex;flex-direction:column;gap:4px;padding:14px 18px;border-radius:13px;background:#e9f5f3;border:1px solid #d2e7e3}.stat-strip b{font-size:22px;letter-spacing:-.03em;color:#144456}.stat-strip small{color:#6d8990;font-size:11px}.navcards{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:0 clamp(20px,4.5vw,46px) 22px}.navcard{background:#fff;border:1px solid #d8e4e7;border-radius:13px;padding:13px 6px;display:flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;font-size:13px;font-weight:750;color:#496975}.navcard span{font-size:21px;color:#1f8a86}.navcard.selected{background:#0e3443;color:white;border-color:#0e3443}.navcard.selected span{color:var(--teal)}.screen{margin:0 clamp(20px,4.5vw,46px) 50px}.feature-card{min-height:255px;border-radius:19px;display:flex;justify-content:space-between;overflow:hidden;background:linear-gradient(125deg,#0a2f43,#125265);color:#fff;padding:27px;position:relative}.feature-copy{position:relative;z-index:1;max-width:480px}.feature-copy .eyebrow{color:var(--teal)}.feature-copy h2{font-size:30px;line-height:1.12;letter-spacing:-.04em;margin:12px 0}.feature-copy p{color:#c0e0e0;max-width:440px;margin-bottom:16px}.feature-graphic{display:grid;place-items:center;position:absolute;right:-15px;top:-15px;width:280px;height:280px;color:#83efdf;font-size:84px}.radar{position:absolute;width:180px;height:180px;border-radius:50%;border:1px solid #6fead052;box-shadow:0 0 0 29px #6fead013,0 0 0 58px #6fead013}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:17px}.cardhead{display:flex;align-items:center;gap:10px}.cardicon{height:32px;width:32px;display:grid;place-items:center;color:#0b766f;background:#e1f6f1;border-radius:8px;font-size:22px}.cardhead h3{margin:0}.link-btn{border:0;background:none;color:#087d76;font-weight:800;padding:2px 0;text-decoration:none}.warning{padding:15px 18px;border-radius:12px;background:#fff8e7;color:#6e5936;font-size:12px;margin-top:18px;border:1px solid #f1ddb2}.section-title{display:flex;justify-content:space-between;gap:10px;align-items:end;margin:20px 0 14px}.section-title h2{font-size:26px;letter-spacing:-.04em;margin:2px 0}.section-title h3{margin:8px 0 0}.count-pill{padding:6px 10px;background:#e6f3f1;border:1px solid #d4e9e6;border-radius:100px;color:#347970;font-size:11px;font-weight:750}.list-stack{display:grid;gap:12px;margin-top:15px}.group-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);border-radius:13px;background:white;padding:18px}.group-row strong{display:block}.group-row small{color:#66818a}.game-panel{margin-top:15px}.room-top{display:flex;justify-content:space-between;gap:10px;align-items:start}.room-top h2{font-size:25px;margin:3px 0}.room-top p{margin:2px 0;color:#70868b}.code-tag{letter-spacing:.12em;font-size:18px;color:#0a7d73}.mini-strip{margin:20px 0}.question-panel{padding:18px 0}.question-panel h3{font-size:25px;letter-spacing:-.025em}.question-panel .prompt-count{color:#008b80;font-size:11px;font-weight:800;letter-spacing:.13em}.answers{display:grid;gap:10px;margin:15px 0}.answer{display:flex;align-items:center;gap:10px;background:#f2f8f7;border:1px solid #cde0e1;border-radius:11px;padding:15px;text-align:left;color:#24444f;font-weight:700;width:100%}.answer span{background:#d9eeeb;border-radius:7px;color:#087a70;min-width:30px;height:30px;display:grid;place-items:center}.answer.picked{border-color:#048f80;background:#c8f2eb}.explanation{background:#e6f6ed;border:1px solid #bbdfc9;border-radius:12px;padding:15px;color:#315e49}.leaderboard{margin-top:10px}.leaderboard h3{font-size:15px;margin-bottom:8px}.leaderboard .line{display:flex;justify-content:space-between;border-bottom:1px solid #e1e9e8;padding:10px 4px}.room-actions{display:flex;justify-content:flex-end}.room-actions button{min-width:190px}footer{padding:16px clamp(20px,4.5vw,46px);display:flex;justify-content:space-between;gap:16px;background:#092433;color:#9fb8be;font-size:11px}
@media(max-width:700px){.topbar{padding:15px 18px}.online{font-size:10px}.hero{padding:40px 22px 73px}.auth-card{margin:-34px 18px 28px}.feature-graphic{opacity:.16}.two-col{grid-template-columns:1fr}.feature-card{min-height:270px}.welcome{padding:23px 18px 10px}.welcome h1{font-size:26px}.stat-strip{margin:14px 18px 19px}.stat-strip>div{padding:11px 12px}.stat-strip b{font-size:17px}.navcards{margin:0 18px 20px;gap:5px}.navcard{flex-direction:column;font-size:11px;gap:3px;padding:9px 5px}.navcard span{font-size:23px}.screen{margin:0 18px 35px}.feature-card{padding:20px}.feature-copy h2{font-size:27px}.card{padding:18px}.group-row{flex-wrap:wrap}.room-top h2{font-size:22px}.room-top{align-items:start}footer{flex-direction:column;gap:3px}}[hidden]{display:none!important}

.admin-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:10px;margin:18px 0}
.admin-stat{padding:18px 14px;border-radius:12px;background:#e5f4f1;border:1px solid #d4e6e3;display:flex;flex-direction:column;gap:4px}
.admin-stat b{font-size:26px;color:#0e4152}.admin-stat small{font-size:11px;color:#5f7c87}
.admin-card{margin:14px 0}.admin-user{padding:15px 0;border-bottom:1px solid #e1e9e8;display:flex;align-items:center;justify-content:space-between;gap:12px}
.admin-user strong{display:block}.admin-user small{display:block;font-size:12px;color:#66818a}.admin-user-actions{display:flex;align-items:center;gap:8px}
.admin-user-actions select{border:1px solid #bed2d5;padding:10px;background:white;border-radius:9px;max-width:116px}
.owner-label{font-size:11px;font-weight:800;color:#087b6b;background:#d5eee7;padding:6px 10px;border-radius:9px}
.owner-setup{margin-top:-4px}.owner-setup details{background:#f2f7f7;border-radius:10px;padding:12px 14px}
.owner-setup summary{cursor:pointer;font-weight:700;color:#496c75;font-size:12px}.owner-setup .field{margin-top:10px}
.secret-field{position:relative;display:flex;align-items:center}.secret-field input{padding-right:56px}.secret-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;border:0;background:transparent;color:#416b75;border-radius:9px;cursor:pointer;touch-action:manipulation}.secret-toggle:focus-visible{outline:3px solid #0e8f83;outline-offset:0}.secret-toggle:hover{background:#e1f4f0}.secret-toggle svg{pointer-events:none}
.auth-feedback{background:#fff0e8;border:2px solid #c24e24;color:#7b2c10;padding:14px;border-radius:11px;margin:2px 0;font-size:14px;font-weight:750;line-height:1.45;overflow-wrap:anywhere}
@media(max-width:700px){.navcards{grid-template-columns:repeat(5,1fr)}.admin-user{flex-wrap:wrap}.admin-user-actions{width:100%;justify-content:flex-end}}

.chat-card textarea{font:inherit;resize:vertical;width:100%;border:1px solid #cbdce1;border-radius:10px;padding:12px;min-height:85px}.chat-messages{background:#f3f8f8;border:1px solid #d6e5e5;min-height:220px;height:360px;max-height:60vh;overflow-y:auto;border-radius:12px;padding:13px;display:flex;flex-direction:column;gap:10px}.chat-entry{background:white;border:1px solid #d9e5e5;border-radius:11px;padding:11px;max-width:92%;overflow-wrap:anywhere}.chat-mine{align-self:flex-end;background:#e2f7ef}.chat-entry-head{display:flex;justify-content:space-between;gap:18px;color:#305e67;font-size:12px}.chat-entry-head time{color:#6c8a90}.chat-entry p{white-space:pre-wrap;margin:7px 0 0;color:#143c48}.chat-entry .chat-deleted{color:#77888d;font-style:italic}.chat-compose{margin-top:15px}.chat-actions{display:flex;justify-content:space-between;align-items:center;gap:10px}.chat-actions span{color:#657d84;font-size:12px}.chat-remove{margin-top:8px}.chat-empty{text-align:center;color:#67858a;margin:auto}.navcards{grid-template-columns:repeat(6,1fr)}@media(max-width:700px){.navcards{grid-template-columns:repeat(3,1fr)}.chat-messages{height:53vh;min-height:245px}.chat-entry{max-width:98%}}

/* Floating, minimizable messaging overlay, mobile-safe and never covers main content when closed. */
.chat-launcher-wrap{position:fixed;right:18px;bottom:18px;z-index:1001;pointer-events:none}.chat-launcher{pointer-events:auto;border:0;border-radius:99px;box-shadow:0 6px 25px #0b283d65;background:#0a3448;color:white;padding:12px 17px;min-height:48px;font-weight:800}.chat-unread{display:inline-grid;place-items:center;background:#e04a36;color:#fff;padding:1px 6px;min-width:20px;border-radius:99px}.floating-chat{position:fixed;right:16px;bottom:76px;z-index:1002;background:#fff;border:1px solid #a8cfcc;box-shadow:0 12px 40px #09344777;width:min(390px,calc(100vw - 22px));max-height:min(74dvh,680px);border-radius:16px;overflow:hidden;display:flex;flex-direction:column}.floating-chat[hidden]{display:none}.floating-chat-title{display:flex;align-items:center;justify-content:space-between;background:#0b3041;color:#fff;padding:10px 14px}.floating-chat-title .quiet{background:#204d60;color:white;font-size:24px;padding:0 9px;min-height:30px}.floating-chat .chat-card{box-shadow:none;border:0;padding:12px;overflow-y:auto;max-height:calc(74dvh - 100px)}.floating-chat .chat-messages{height:min(34dvh,220px);min-height:145px}.floating-chat textarea{min-height:65px}.floating-chat .chat-compose{margin-top:8px}.floating-chat .chat-entry{max-width:100%}.room-chat-controls{padding:5px 12px 11px;border-top:1px solid #dde6e6;font-size:12px}.room-chat-controls small{display:block;color:#66818a}.room-chat-controls label{display:flex;align-items:center;gap:7px;font-weight:750}@media(max-width:700px){.floating-chat{right:9px;bottom:68px;width:calc(100vw - 18px);max-height:76dvh}.chat-launcher-wrap{bottom:10px;right:10px}.floating-chat .chat-card{padding:10px}.floating-chat .chat-messages{height:29dvh;min-height:120px}}


/* Private voice calling. Invitation-only presence and explicit microphone consent. */
.voice-card{max-width:780px}.voice-optin{display:flex;gap:12px;align-items:center;font-weight:800;font-size:17px;margin-bottom:6px}.voice-optin input{width:22px;height:22px;accent-color:#126d73}.voice-contacts{display:flex;flex-direction:column;gap:9px;border:1px solid #d5e2e1;border-radius:10px;background:#f5faf9;padding:12px;margin-bottom:24px;min-height:56px;color:#305f65}.voice-contact{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px;background:#fff;border-radius:8px}.voice-join-row{display:flex;gap:10px;align-items:center}.voice-join-row select{min-width:0;flex:1;min-height:44px}.voice-warning{font-size:12px;color:#8b5b0b;margin-top:16px}.voice-incoming{position:fixed;z-index:1300;top:20px;left:50%;transform:translateX(-50%);width:min(390px,calc(100vw - 24px));background:#fff;border:3px solid #167e81;border-radius:16px;box-shadow:0 16px 60px #102e3b77;padding:20px;text-align:center}.voice-incoming[hidden],.voice-hud[hidden]{display:none}.voice-incoming strong{font-size:18px;color:#113948}.voice-incoming p{font-size:17px;margin:12px}.voice-incoming div{display:flex;gap:10px;justify-content:center}.voice-hud{position:fixed;z-index:1190;bottom:14px;left:12px;background:#fff;border:2px solid #1d8992;border-radius:13px;box-shadow:0 8px 32px #0b273e55;padding:11px 15px;max-width:340px;display:flex;flex-direction:column;gap:10px}.voice-hud-actions{display:flex;gap:9px;align-items:center}.voice-hud button{min-height:42px}.voice-hud .voice-end{background:#a92f31;color:white}.voice-audio-host{position:fixed;left:-99999px;height:0;overflow:hidden}.voice-audio-host audio{width:0;height:0}@media(max-width:700px){.voice-join-row{flex-direction:column;align-items:stretch}.voice-hud{left:9px;right:9px;bottom:72px;max-width:none}.voice-hud-actions>*{flex:1}.voice-contact{flex-wrap:wrap}.voice-incoming{top:14px}}

/* Examination voice permissions and captain's lightweight celebration gestures. */
.exam-voice-policy-bar{border:1px solid #b5dcd7;background:linear-gradient(115deg,#f0f9f6,#f8fcff);border-radius:13px;padding:12px;margin:12px 0 10px}
.exam-voice-policy-title{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.exam-voice-policy-title strong{font-size:14px;color:#16535b}
.exam-voice-policy-title button{font-size:13px;min-height:42px}
.exam-voice-admin{margin-top:11px;padding-top:11px;border-top:1px dashed #a5cece;display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.exam-voice-admin[hidden],.exam-voice-mini[hidden],.exam-voice-toggle[hidden]{display:none}
.exam-voice-admin>label:first-child{font-size:12px;font-weight:800;color:#2c616a}
.exam-voice-admin select{width:min(100%,240px);min-height:42px;border:1px solid #b2cfce;border-radius:8px;background:#fff;padding:7px}
.exam-voice-toggle{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:800}
.exam-voice-toggle input{width:19px;height:19px;accent-color:#247d7b}
.exam-voice-create{margin:10px 0}.exam-voice-create select{min-height:42px}
.exam-captain{display:flex;gap:12px;align-items:center;padding:9px 13px;margin:11px 0;background:linear-gradient(105deg,#f0f9fc,#f6f5ff);border:1px solid #cddbe8;border-radius:14px;max-width:100%}
.exam-captain-emoji{font-size:34px;display:block;flex:none;will-change:transform}
.exam-captain strong{font-size:14px;color:#224e68;display:block;line-height:1.3}
.exam-captain small{display:block;color:#5a7284;font-size:12px;margin-top:3px;line-height:1.35}
.exam-captain[data-mood=thinking] .exam-captain-emoji{animation:examThink 2.6s ease-in-out infinite}
.exam-captain[data-mood=waiting] .exam-captain-emoji{animation:examWait 2s ease-in-out infinite}
.exam-captain[data-mood=celebrate] .exam-captain-emoji{animation:examCelebrate .75s ease-out 2}
.exam-captain[data-mood=ready] .exam-captain-emoji{animation:examWait 3.5s ease-in-out infinite}
.exam-captain[data-mood=encourage] .exam-captain-emoji{animation:examNod 1.3s ease-in-out 1}
@keyframes examThink{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(8deg) translateY(-3px)}}
@keyframes examWait{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes examCelebrate{0%,100%{transform:scale(1)}40%{transform:scale(1.23) rotate(-12deg)}75%{transform:scale(1.12) rotate(12deg)}}
@keyframes examNod{0%,100%{transform:rotate(0)}55%{transform:rotate(10deg)}}
.game-panel{position:relative}
.exam-confetti{position:absolute;inset:0;z-index:3;overflow:hidden;pointer-events:none}
.exam-confetti-piece{position:absolute;top:-20px;left:var(--x);background:var(--colour);width:8px;height:13px;border-radius:2px;opacity:0;animation:examConfettiFall 1.5s ease-out var(--delay) forwards}
@keyframes examConfettiFall{0%{transform:translateY(-10px) rotate(0deg);opacity:0}15%{opacity:1}80%{opacity:.95}100%{transform:translateY(260px) rotate(var(--spin));opacity:0}}
.exam-voice-mini{position:fixed;z-index:1205;right:12px;bottom:70px;width:min(385px,calc(100vw - 24px));height:min(70dvh,620px);background:#fff;border:1px solid #a1cecc;box-shadow:0 12px 45px #0a374b66;border-radius:16px;display:flex;flex-direction:column;overflow:hidden}
.exam-voice-mini-head{background:#123b51;color:white;display:flex;align-items:center;justify-content:space-between;padding:9px 12px;min-height:38px}
.exam-voice-mini-head button{color:white;background:#26546a;border:0;font-size:25px;line-height:1.1;padding:0 10px}
.exam-voice-mini #examVoiceSlot{overflow-y:auto;padding:9px;flex:1}
.exam-voice-mini .voice-card{border:0;box-shadow:none;max-width:100%;padding:9px}
.exam-voice-mini .voice-contacts{max-height:130px;overflow:auto}
@media(max-width:700px){.exam-voice-policy-bar{padding:10px}.exam-captain{padding:9px;gap:9px}.exam-captain-emoji{font-size:29px}.exam-voice-admin{align-items:stretch;flex-direction:column}.exam-voice-admin select,.exam-voice-admin button{width:100%}.exam-voice-mini{right:8px;width:calc(100vw - 16px);bottom:66px;max-height:70dvh}.exam-voice-mini #examVoiceSlot{padding:4px}}
@media(prefers-reduced-motion:reduce){.exam-captain-emoji,.exam-confetti-piece{animation:none!important}.exam-confetti{display:none!important}}

/* Voice troubleshooting and safe Android call controls. */
.voice-tools{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end;align-items:center}
.voice-tools button{font-size:12px;min-height:40px}
.voice-hud-actions{flex-wrap:wrap}
.voice-hud-actions button{flex:1 1 130px;min-height:42px}
@media(max-width:700px){.voice-tools{justify-content:stretch}.voice-tools button{flex:1}}


/* DECKWISE 2026-10-30 exam-first responsive layout and compact call dock. */
.chat-launcher-wrap{display:flex;align-items:center;gap:10px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:1210}
.chat-launcher{min-height:48px;padding:11px 14px}
.voice-dock-launcher{pointer-events:auto;display:flex;align-items:center;justify-content:center;gap:5px;min-height:48px;min-width:50px;padding:9px 13px;background:#0d856f;border:1px solid #4fcead;border-radius:40px;color:white;font-weight:850;box-shadow:0 4px 19px #084b4480;touch-action:manipulation}
.voice-dock-launcher span:first-child{font-size:23px;line-height:1}
.voice-dock-launcher .voice-dock-state{font-size:11px}
.voice-dock-launcher[data-stage=ringing]{animation:dwPhoneRing 1.35s ease-in-out infinite}
.voice-dock-launcher[data-stage=connected]{background:#06775e;box-shadow:0 0 0 2px #88e8c0,0 4px 20px #116f4e80}
.voice-dock-launcher[data-stage=interrupted]{background:#9b6823;border-color:#f8c879}
@keyframes dwPhoneRing{0%,100%{transform:rotate(0)}25%{transform:rotate(-9deg)}60%{transform:rotate(8deg)}}
.voice-hud{position:fixed;left:auto;right:12px;bottom:calc(74px + env(safe-area-inset-bottom,0px));z-index:1212;max-width:none;width:min(320px,calc(100vw - 22px));max-height:min(58dvh,420px);overflow-y:auto;border-radius:15px;padding:12px 14px;box-shadow:0 10px 38px #0d354c5c;border:1px solid #6bc2b7;gap:6px;background:white}
.voice-hud-title{display:flex;align-items:flex-start;justify-content:space-between;gap:7px}
.voice-hud-title strong{font-size:13px;line-height:1.35;color:#0c4253}
.voice-hud-title .quiet{font-size:21px;padding:2px 9px;min-height:31px;flex:0 0 auto}
.voice-hud-meta{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#497580}
.voice-hud-meta #voiceDuration{font-variant-numeric:tabular-nums;color:#115d57;font-weight:800}
.voice-hud-actions{display:flex;flex-wrap:wrap;gap:6px}
.voice-hud-actions button{flex:1 1 130px;min-height:42px;padding:8px 7px;font-size:12px}
.voice-hud-actions .voice-end{flex-basis:100%}
.voice-call-detail{font-size:11px;color:#557786;line-height:1.35;display:block}
.crew-voice-panel{position:fixed;right:9px;bottom:calc(73px + env(safe-area-inset-bottom,0px));z-index:1209;width:min(385px,calc(100vw - 18px));max-height:min(64dvh,560px);display:flex;flex-direction:column;border-radius:15px;background:#fff;overflow:hidden;border:1px solid #89c8c2;box-shadow:0 14px 42px #12395065}
.crew-voice-panel #crewVoicePanelSlot{padding:9px;overflow:auto}
.crew-voice-panel .voice-card{border:0;box-shadow:none;padding:10px;max-width:100%}
.crew-voice-panel .voice-contacts{max-height:145px;overflow-y:auto;margin-bottom:14px}
.crew-voice-panel .section-title{margin:12px 0 8px}
.crew-voice-panel .section-title h3{font-size:15px}
.floating-chat{bottom:calc(74px + env(safe-area-inset-bottom,0px))}
.voice-incoming{top:calc(12px + env(safe-area-inset-top,0px));width:min(330px,calc(100vw - 20px));padding:12px 14px;border-width:2px}
.voice-incoming strong{font-size:15px}.voice-incoming p{font-size:14px;margin:6px}.voice-incoming button{min-height:45px}
.exam-voice-policy-bar{margin:12px 0 15px}
.mini-strip{margin:12px 0 8px}
.mini-strip>div{padding:10px 8px;min-width:0}
.game-panel .question-panel{padding:9px 0 3px}
.game-panel .question-panel h3{line-height:1.34;letter-spacing:-.015em;margin:8px 0 12px}
.game-panel .answers{margin:12px 0 14px;gap:10px}
.game-panel .answer{min-height:54px;padding:13px;touch-action:manipulation}
.exam-captain{max-width:100%;display:flex;align-items:center;gap:12px;margin:10px 0;background:linear-gradient(115deg,#e8f5f3,#f1f8ff);border-color:#b8dcd8;box-shadow:0 4px 18px #0e52641c;animation:dwCaptainEntrance .3s ease-out both}
.exam-captain-art{width:78px;height:88px;flex:0 0 78px;display:grid;place-items:center;filter:drop-shadow(0 3px 4px #2e657434)}
.exam-captain-emoji{display:none}
.exam-captain strong{font-size:14px}.exam-captain small{font-size:12px;line-height:1.35}
.exam-captain .dw-captain-head{transform-origin:46px 50px}
.exam-captain .dw-captain-arm{transform-origin:46px 88px}
.exam-captain[data-mood=thinking] .dw-captain-head{animation:dwCaptainThink 2.6s ease-in-out infinite}
.exam-captain[data-mood=waiting] .dw-captain-head{animation:dwCaptainNod 1.9s ease-in-out infinite}
.exam-captain[data-mood=correct] .dw-captain-head,.exam-captain[data-mood=finished] .dw-captain-head{animation:dwCaptainCelebrate .68s ease-in-out 2}
.exam-captain[data-mood=correct] .dw-eyes,.exam-captain[data-mood=finished] .dw-eyes{opacity:0}
.exam-captain[data-mood=correct] .dw-eyes-happy,.exam-captain[data-mood=finished] .dw-eyes-happy{opacity:1}
.exam-captain[data-mood=correct] .dw-arm-right,.exam-captain[data-mood=finished] .dw-arm-right{animation:dwCaptainWave .8s ease-in-out 3}
.exam-captain[data-mood=encourage] .dw-arm-left,.exam-captain[data-mood=review] .dw-arm-left{animation:dwCaptainWave 1.1s ease-out 1}
.exam-captain[data-mood=ready] .dw-captain-head{animation:dwCaptainNod 3s ease-in-out infinite}
@keyframes dwCaptainEntrance{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes dwCaptainThink{0%,100%{transform:rotate(-2deg)}50%{transform:rotate(7deg)}}
@keyframes dwCaptainNod{0%,100%{transform:rotate(0)}50%{transform:rotate(5deg)}}
@keyframes dwCaptainCelebrate{0%,100%{transform:rotate(0) scale(1)}45%{transform:rotate(-9deg) scale(1.06)}}
@keyframes dwCaptainWave{0%,100%{transform:rotate(0deg)}50%{transform:rotate(-35deg)}}
.exam-confetti{inset:0;position:absolute;pointer-events:none;overflow:hidden;z-index:12}
.exam-confetti-piece{top:-18px;left:var(--x);width:var(--width);height:var(--height);border-radius:var(--shape);background:var(--colour);opacity:0;will-change:transform,opacity;animation:dwConfettiFall var(--flight) cubic-bezier(.18,.5,.38,1) var(--delay) both}
@keyframes dwConfettiFall{
 0%{opacity:0;transform:translate3d(0,-24px,0) rotate(0deg) rotateY(0deg)}
 13%{opacity:1}
 49%{opacity:1;transform:translate3d(var(--dxmid),calc(var(--distance) * .42),0) rotate(calc(var(--spin) * .55)) rotateY(480deg)}
 82%{opacity:.95}
 100%{opacity:0;transform:translate3d(var(--dx),var(--distance),0) rotate(var(--spin)) rotateY(960deg)}
}
.chat-crew-box{margin:7px 0 9px;padding:9px 8px;background:#f3faf8;border:1px solid #cde3df;border-radius:11px}
.chat-crew-head{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-bottom:7px}
.chat-crew-head strong{font-size:12px;color:#175769}
.chat-crew-head button{font-size:11px;padding:5px 7px;min-height:32px}
.chat-crew-box .small-note{margin:5px 0 0!important}
.crew-roster{display:flex;flex-direction:column;gap:5px;max-height:175px;overflow-y:auto}
.crew-presence-row{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:7px 8px;border-radius:8px;background:#fff;border:1px solid #e2eceb}
.crew-presence-identity{display:flex;align-items:center;gap:10px;min-width:0}
.crew-presence-label{display:flex;flex-direction:column;gap:1px;min-width:0}
.crew-presence-label strong{font-size:12px;overflow-wrap:anywhere}
.crew-presence-label small{font-size:11px;color:#68808a}
.crew-online-light{height:10px;width:10px;min-height:10px;min-width:10px;border-radius:50%;display:inline-block;background:#9baeb0;box-shadow:0 0 0 2px #c4cece55}
.crew-online-light.is-online,.crew-online-light.is-available{background:#16bc7a;box-shadow:0 0 8px #2ad48fa3,0 0 0 3px #d4f7e7}
.crew-online-light.is-busy{background:#edab3e;box-shadow:0 0 6px #ffc65c88,0 0 0 3px #fff1d6}
.crew-online-light.is-offline{background:#9babb0}
.crew-call-action{min-height:34px;font-size:11px;padding:5px 8px}
.crew-call-action:disabled{opacity:.55}
.crew-empty{font-size:12px;color:#67838b}
.room-crew-status{margin:10px 0;border:1px solid #dfebe8;border-radius:11px;padding:11px;background:#f9fcfc}
.room-crew-status>strong{font-size:13px;color:#29606c;display:block;margin-bottom:8px}
.room-crew-status .crew-roster{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));max-height:170px;gap:5px}
.room-crew-status .crew-presence-row{padding:7px}
.group-roster-panel{margin-top:15px}
@media(max-width:700px){
 .chat-launcher-wrap{right:9px;bottom:calc(9px + env(safe-area-inset-bottom,0px));gap:8px}
 .voice-dock-launcher{min-width:49px;padding:9px 10px}
 .voice-hud{right:8px;left:auto;bottom:calc(71px + env(safe-area-inset-bottom,0px));width:min(315px,calc(100vw - 16px));max-height:54dvh}
 .floating-chat{bottom:calc(71px + env(safe-area-inset-bottom,0px))}
 .game-panel .question-panel h3{font-size:20px}
 .game-panel .answer{font-size:14px}
 .exam-captain{gap:8px;padding:6px 10px}
 .exam-captain-art{width:60px;height:68px;flex-basis:60px}
 .exam-captain-art svg{width:60px;height:68px}
 .exam-captain strong{font-size:12px}.exam-captain small{font-size:11px}
 .crew-roster{max-height:135px}
 .crew-voice-panel{bottom:calc(71px + env(safe-area-inset-bottom,0px))}
}
@media(prefers-reduced-motion:reduce){
 .exam-captain,.exam-captain *, .voice-dock-launcher,.exam-confetti-piece{animation:none!important;transition:none!important}
 .exam-confetti{display:none!important}
}


/* Original academy 22-module exam builder and interactive owner controls. */
.exam-mode-config{padding:13px 12px;border:1px solid #c9e1dc;background:#f6fbfa;border-radius:13px;margin:8px 0}
.exam-mode-config .form-pair{margin-bottom:10px}
.exam-mode-config select{min-height:44px}
.module-picker{border:1px solid #c8dedc;background:#fff;border-radius:12px;padding:10px}
.module-picker-title{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.module-picker-title strong{color:#184e5b;font-size:14px}
.module-picker-title>div{display:flex;gap:5px;flex-wrap:wrap}
.module-picker-title .quiet{min-height:39px;font-size:11px;padding:7px 9px}
.exam-module-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(225px,1fr));gap:5px;max-height:270px;overflow-y:auto;margin:10px 0;padding:3px}
.exam-module-option{display:flex;align-items:center;gap:9px;border:1px solid #dbe9e6;border-radius:9px;padding:9px;background:#f9fcfc;cursor:pointer}
.exam-module-option:has(input:checked){background:#e5f7ef;border-color:#81c8ad}
.exam-module-option input{min-width:19px;min-height:19px;accent-color:#08776e;flex-shrink:0}
.exam-module-option span{min-width:0;display:grid;gap:2px}
.exam-module-option strong{font-size:12px;line-height:1.3;color:#174757}
.exam-module-option small{font-size:10px;color:#60838c}
#examModuleSummary[data-enough=false]{color:#ad4e1e!important;font-weight:800}
.room-actions-top{justify-content:flex-end;margin:10px 0 12px;padding:8px 11px;background:#f2f8f7;border:1px solid #d6e8e4;border-radius:10px}
.room-actions-top button{min-height:44px;min-width:178px}
.question-panel textarea,.admin-detail-editor textarea,.practical-response-item textarea{font:inherit;width:100%;border:1px solid #b7d1d4;border-radius:10px;padding:11px;min-height:90px;resize:vertical}
.question-panel #practicalAnswerForm{display:grid;gap:10px;padding:13px;border:1px solid #c5e1e1;border-radius:12px;background:#f6fbfa}
.question-panel #practicalAnswerForm label{color:#164958;font-size:13px;font-weight:800}
.question-panel #practicalAnswerForm button{min-height:47px}
.practical-review-panel{border:1px solid #a9d6ca;border-radius:12px;padding:14px;background:#f2f9f6;margin:10px 0 13px}
.practical-review-panel .section-title{margin:0 0 9px}
.practical-review-panel select{min-height:43px;border:1px solid #b4cfcc;border-radius:8px;padding:8px;background:#fff}
.practical-review-panel button{min-height:43px}
.practical-response-item{display:grid;gap:8px;padding:12px;background:white;border:1px solid #d4e9e5;border-radius:10px}
.practical-response-item strong{color:#164856}
.practical-response-item p{white-space:pre-wrap;color:#295c66;margin:0}
.practical-response-item label{font-size:12px;font-weight:800}
.practical-response-item input{min-height:42px;max-width:150px;border-radius:9px;border:1px solid #bed8d5;padding:8px}
.admin-stat-button{cursor:pointer;text-align:left;color:inherit;width:100%;font:inherit;min-width:0}
.admin-stat-button:hover{border-color:#51ab9f;background:#dff6ed}
.admin-stat-button.selected{background:#0c4252;color:white;border-color:#105564}
.admin-stat-button.selected b,.admin-stat-button.selected small{color:white}
.admin-stat-arrow{font-size:11px;font-weight:850;color:#096b63;align-self:flex-end}
.admin-stat-button.selected .admin-stat-arrow{color:#8ff1db}
.admin-detail-editor{margin-top:16px;background:#f5faf9;padding:13px;border:1px solid #c6dfdb;border-radius:11px;display:grid;gap:10px}
.admin-detail-editor h3{margin:5px 0;color:#154758}
.admin-detail-editor input,.admin-detail-editor select{width:100%;min-height:43px;border:1px solid #bad2d2;border-radius:9px;background:white;padding:9px}
.admin-member-row{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:7px;background:white;padding:10px;border:1px solid #d7e6e4;border-radius:9px}
.admin-member-row span{font-size:12px}
.admin-member-row button{min-height:40px}
.admin-room-row{display:flex;flex-direction:column;gap:6px;background:#fff;border:1px solid #cde1df;border-radius:11px;padding:12px}
.admin-room-row strong{color:#174c5a}
.admin-room-row small{color:#62818a}
.admin-room-actions{display:flex;gap:8px;flex-wrap:wrap}
.admin-room-actions button{min-height:40px}
.admin-room-review{display:grid;gap:8px;margin:9px 0;padding:12px;border:1px solid #b4d4cd;background:#f3faf7;border-radius:10px}
.admin-room-review input{max-width:140px;min-height:44px;border-radius:9px;border:1px solid #b5d6d0;padding:8px}
.admin-history-row{font-size:12px;border:1px solid #d9e8e4;background:#f9fcfc;padding:9px 10px;border-radius:8px}
.admin-question-templates{display:flex;flex-direction:column;gap:7px;max-height:415px;overflow:auto;margin:12px 0}
.admin-question-row{display:flex;justify-content:space-between;align-items:center;gap:8px;border:1px solid #cbdcde;padding:7px;background:#fdfefe;border-radius:10px}
.admin-question-select{background:none;border:0;text-align:left;flex:1;min-height:45px;color:#164b58;font-size:12px;line-height:1.4}
.admin-question-select:hover{color:#0e7f74;text-decoration:underline}
.admin-question-row .quiet{min-height:39px;flex-shrink:0}
#adminQuestionEditor .exam-question-enabled{display:flex;gap:8px;align-items:center;font-size:13px;font-weight:800}
#adminQuestionEditor .exam-question-enabled input{width:21px;height:21px;min-height:21px;accent-color:#0b796a}
.admin-editor-actions{display:flex;gap:10px;flex-wrap:wrap}
.admin-editor-actions button{min-height:44px}
@media(max-width:700px){
 .exam-module-grid{grid-template-columns:1fr;max-height:215px}
 .exam-mode-config{padding:10px}
 .room-actions-top{padding:7px;margin:9px 0}
 .room-actions-top button{width:100%;min-width:0}
 .admin-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .admin-stat-button{padding:12px}
 .admin-stat-button b{font-size:21px}
 .admin-room-actions button{flex:1}
 .admin-question-row{flex-wrap:wrap}
 .admin-question-select{flex-basis:100%}
}

/* 3D-style educational recognition hall: lightweight CSS perspective, no microphone/camera use. */
.awards-hall{position:relative;isolation:isolate;overflow:hidden;height:390px;margin:16px 0;border-radius:20px;background:radial-gradient(ellipse at 50% 9%,#376980,#0c2234 60%,#07131f);perspective:850px;box-shadow:inset 0 0 70px #0008,0 20px 45px #0004;color:#fff}
.awards-hall-ceiling{position:absolute;top:0;left:0;right:0;height:42%;background:repeating-linear-gradient(90deg,transparent 0 13%,#a6dbec18 13% 13.4%,transparent 13.4% 26%);transform:rotateX(-40deg);transform-origin:top}
.awards-hall-stage{position:absolute;top:10%;left:12%;width:76%;height:67%;display:flex;align-items:center;justify-content:center;transform:rotateX(5deg);transform-style:preserve-3d}
.awards-stage-left,.awards-stage-right{width:12%;height:95%;background:linear-gradient(90deg,#122c3e,#305772,#122c3e);transform:rotateY(36deg);box-shadow:0 0 25px #46d9f344}
.awards-stage-right{transform:rotateY(-36deg)}
.awards-projection{position:relative;flex:1;height:88%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;text-align:center;padding:16px;background:linear-gradient(145deg,#082738,#164c68 55%,#061924);border:2px solid #71d6e6;box-shadow:0 0 24px #5acaffb0,inset 0 0 44px #6ce9ff24;transform:translateZ(35px)}
.awards-projection-subtitle{font-size:clamp(9px,1.5vw,13px);letter-spacing:2px;color:#bceffc}
.awards-projection strong{font-size:clamp(22px,4vw,43px);line-height:1.1;color:white;text-shadow:0 0 18px #73d9ff}
.awards-projection>span:last-child{font-size:clamp(11px,1.6vw,16px);color:#ffdb88}
.awards-emblem{font-size:38px;color:#fbd782;text-shadow:0 0 25px #fbd782}
.awards-podium{position:absolute;bottom:12%;left:41%;width:18%;height:15%;display:grid;place-items:center;font-size:30px;color:#e8c273;transform:rotateX(18deg);background:linear-gradient(130deg,#2d6277,#082b40);border-top:3px solid #d8bb77;box-shadow:0 8px 30px #0009}
.awards-stage-floor{position:absolute;bottom:-21%;height:37%;left:-25%;width:150%;transform:rotateX(60deg);background:repeating-linear-gradient(90deg,#244b5c,#123248 16%,#205066 17%);border-top:4px solid #c4a56b}
.awards-enter .awards-projection{animation:award-arrival 1.1s ease-out both}
@keyframes award-arrival{from{transform:translateZ(-150px) scale(.72);opacity:.2}to{transform:translateZ(35px) scale(1);opacity:1}}
.award-particles{position:absolute;inset:0;pointer-events:none;overflow:hidden}.award-particles i{position:absolute;top:-15px;width:7px;height:15px;background:#e9cb79;border-radius:2px;animation:award-fall 3.6s ease-in forwards;box-shadow:0 0 5px #fff5}.award-particles i:nth-child(3n){background:#6bdff4}.award-particles i:nth-child(4n){background:#f4f3ef}
@keyframes award-fall{to{transform:translate(var(--drift),450px) rotate(720deg);opacity:0}}
.reward-badge-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.reward-badge{padding:16px;border:1px solid #71d6e655;background:linear-gradient(155deg,#143b4d,#0c293d);color:#fff;border-radius:14px;text-align:center;display:grid;justify-items:center;gap:6px}.reward-badge span{font-size:30px;color:#ffcf69}.reward-badge small{color:#bedbe5}.reward-info-line{padding:10px 0;border-bottom:1px solid #7699a33b}#rewardNext progress{width:100%;height:15px;accent-color:#52b6d1}
@media(max-width:550px){.awards-hall{height:285px}.awards-hall-stage{left:5%;width:90%}.awards-projection{padding:8px;gap:7px}.awards-projection strong{font-size:22px}.awards-emblem{font-size:28px}}
@media(prefers-reduced-motion:reduce){.awards-enter .awards-projection,.award-particles i{animation:none!important}}

/* Cinematic high-density vector projection: viewport fills at 4K or phone resolution */
.cinema-overlay[hidden]{display:none!important}.cinema-overlay{position:fixed;inset:0;z-index:9999;overflow:hidden;background:radial-gradient(ellipse at 50% 35%,#20506e,#041221 75%);color:#fff;display:grid;place-items:center;isolation:isolate}.cinema-open{overflow:hidden}
.cinema-glow{position:absolute;inset:0;pointer-events:none;background:conic-gradient(from 200deg at 50% 85%,transparent,#51d9ff22,transparent,#ffc96d12,transparent);filter:blur(25px)}
.cinema-space{position:relative;width:min(96vw,1720px);height:min(78vh,980px);display:flex;align-items:center;justify-content:center;perspective:1100px;transform-style:preserve-3d}
.cinema-hologram{position:relative;width:min(76%,1300px);height:min(67vh,760px);border:3px solid #73dfff;border-radius:24px;display:flex;align-items:center;justify-content:center;gap:1.8vh;flex-direction:column;text-align:center;padding:clamp(18px,3vw,70px);background:linear-gradient(135deg,#12668cbb,#093650da 55%,#0b213bd6);box-shadow:0 0 45px #2fbfffaa,inset 0 0 85px #62eaff2c,0 36px 120px #000b;transform:rotateY(-6deg) translateZ(30px);backdrop-filter:blur(16px)}
.cinema-reveal{animation:cinema-project .9s cubic-bezier(.16,.8,.25,1) both}@keyframes cinema-project{from{opacity:0;transform:translateZ(-380px) rotateY(-18deg) scale(.75)}to{opacity:1;transform:rotateY(-6deg) translateZ(30px) scale(1)}}
.cinema-kicker{letter-spacing:.2em;text-transform:uppercase;color:#c0f2ff;font-size:clamp(11px,1.1vw,19px)}.cinema-student{font-size:clamp(26px,4vw,77px);font-weight:900;line-height:1.05;text-shadow:0 0 30px #7ae7ff}.cinema-grade{color:#ffdfa0;font-size:clamp(16px,2vw,35px)}.cinema-badge{color:#ffecbb;font-size:clamp(13px,1.5vw,25px)}.cinema-boat{width:min(70%,780px);min-height:90px;filter:drop-shadow(0 0 19px #49ecfa);animation:cinema-boat-float 2.4s ease-in-out infinite alternate}.cinema-boat svg{display:block;width:100%;height:auto}.cinema-boat-name{font-size:clamp(14px,1.9vw,28px);color:#ffcf75}.cinema-message{font-size:clamp(13px,1.5vw,24px);font-weight:600;max-width:800px}
@keyframes cinema-boat-float{to{transform:translateY(-9px) rotateY(5deg)}}
.cinema-mascot{position:absolute;z-index:3;left:0;bottom:6%;width:min(23vw,340px);filter:drop-shadow(0 0 25px #45d6f680);transform-origin:50% 100%}.cinema-mascot svg{width:100%;height:auto}.cinema-gesture{animation:cinema-salute 2s ease-in-out infinite alternate}@keyframes cinema-salute{to{transform:rotate(-5deg) translateY(-8px)}}
.cinema-controls{position:absolute;right:clamp(12px,2vw,40px);top:clamp(12px,2vw,40px);z-index:8}.cinema-particles,.cinema-burst{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:6}
.cinema-faller{position:absolute;top:-5%;display:block;width:11px;height:18px;border-radius:2px;background:#ffcc67;animation:cinema-fall var(--dur) linear var(--delay) both;box-shadow:0 0 7px #fff7}.cinema-faller.type-1{color:#fff1ab;font-size:26px;background:transparent;line-height:1}.cinema-faller.type-2{background:#ef8bbd;color:#ef8bbd;font-size:28px;width:17px;height:23px;border-radius:50%;line-height:23px}.cinema-faller.type-2:after{content:'';display:block;position:absolute;top:22px;left:50%;height:25px;border-left:1px solid #fff7}
@keyframes cinema-fall{0%{transform:translate(0,-7vh) rotate(0);opacity:0}9%{opacity:1}100%{transform:translate(var(--dx),110vh) rotate(var(--spin));opacity:.15}}
.cinema-star-burst{position:absolute;top:50%;left:50%!important;color:#fff0a9;font-size:clamp(15px,2vw,40px);text-shadow:0 0 12px #ffd15c;animation:cinema-explode var(--dur) ease-out var(--delay) both}@keyframes cinema-explode{0%{transform:translate(-50%,-50%) rotate(var(--angle)) scale(.2);opacity:0}10%{opacity:1}100%{transform:translate(calc(-50% + var(--dx) * 3),-65vh) rotate(var(--spin)) scale(.8);opacity:0}}
@media(max-width:650px){.cinema-space{height:85vh}.cinema-hologram{width:94%;height:70vh;padding:26px 12px 20px;gap:12px;transform:none}.cinema-mascot{width:22vw;left:1%;bottom:1%}.cinema-boat{width:90%}.cinema-message{padding:0 10px}.cinema-reveal{animation:cinema-project-mobile .8s ease-out both}@keyframes cinema-project-mobile{from{transform:scale(.7);opacity:0}to{transform:scale(1);opacity:1}}}
@media(prefers-reduced-motion:reduce){.cinema-faller,.cinema-star-burst,.cinema-reveal,.cinema-boat,.cinema-gesture{animation:none!important}}

/* Arcade-bright original celebration polish: gradients, joyful glow and mascot salute. */
.cinema-overlay{background:radial-gradient(ellipse at 48% 42%,#315fc0 0%,#173b74 35%,#0b1b4c 78%,#070d27 100%)}
.cinema-glow{background:conic-gradient(from 100deg at 52% 46%,#ffe46630,#fc70b83b,#50ddf04b,#a987ff3b,#fbb95e35,#ffe46630);filter:blur(28px);animation:dw-arcade-glow 5s ease-in-out both}
.cinema-hologram{border:4px solid #99eeff;box-shadow:0 0 25px #4bd5ff,0 0 95px #a571ff91,inset 0 0 110px #75e8ff31,0 25px 100px #02091cc9;background:linear-gradient(133deg,#1866bfc9 5%,#6737a3ae 51%,#0e7b9ecf 100%)}
.cinema-student{background:linear-gradient(95deg,#fff8ab,#fff,#ffadeb,#bbfff8);color:transparent;background-clip:text;-webkit-background-clip:text;filter:drop-shadow(0 0 14px #ffe388)}
.cinema-badge{color:#ffed81;text-shadow:0 0 13px #fcb34f}.cinema-boat{filter:drop-shadow(0 0 23px #e3fafe) drop-shadow(0 0 20px #71d1ff)}
.cinema-faller.type-0{background:linear-gradient(45deg,#ff6ca8,#ffe472,#4df9db);box-shadow:0 0 8px #fff}
.cinema-faller.type-1{color:#ffe886;text-shadow:0 0 15px #fff3ad}.cinema-faller.type-2{background:radial-gradient(circle at 30% 30%,#fff3bd,#f75eaa);box-shadow:0 0 12px #f96ace}
.cinema-star-burst{color:#ffe878;text-shadow:0 0 15px #fff,0 0 25px #ff6fd0}
.cinema-gesture{animation:dw-captain-wave .85s ease-in-out 5 alternate}
@keyframes dw-captain-wave{from{transform:rotate(-7deg) translateY(0)}to{transform:rotate(7deg) translateY(-10px)}}
@keyframes dw-arcade-glow{0%{opacity:.2;transform:scale(.8)}30%{opacity:.85;transform:scale(1.1)}100%{opacity:.4;transform:scale(1.3)}}
@media(prefers-reduced-motion:reduce){.cinema-glow,.cinema-gesture{animation:none!important}}

/* Device-tested celebration polish: gestures are display-only; no microphone interruption. */
.cinema-mascot svg{overflow:visible}.cinema-mascot.cinema-present{transform:rotate(-4deg) translateX(10px);filter:drop-shadow(0 0 32px #75edff)}.cinema-mascot.cinema-salute{animation:dw-salute .65s ease-in-out 2 alternate}.cinema-mascot.cinema-applause{animation:dw-applause .34s ease-in-out 5 alternate}
@keyframes dw-salute{from{transform:rotate(-5deg)}to{transform:rotate(8deg) translateY(-14px)}}@keyframes dw-applause{from{transform:rotate(-4deg) translateY(0)}to{transform:rotate(4deg) translateY(-8px)}}
@media(max-width:430px){.cinema-hologram{width:95vw;max-height:79dvh;gap:clamp(5px,1.1vh,12px);padding:50px 10px 15px}.cinema-mascot{width:clamp(60px,18vw,110px);bottom:1vh;z-index:5}.cinema-student{font-size:clamp(23px,7vw,37px)}.cinema-boat{width:84%;min-height:60px}.cinema-space{height:92dvh}.cinema-controls{top:max(8px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right))}}
@media(min-width:2800px){.cinema-space{width:min(92vw,3100px);height:84vh}.cinema-hologram{width:min(78%,2400px);height:74vh}.cinema-mascot{width:min(21vw,650px)}.cinema-student{font-size:clamp(65px,4vw,132px)}.cinema-grade{font-size:clamp(32px,1.9vw,70px)}.cinema-message{font-size:clamp(29px,1.4vw,50px)}.cinema-boat{width:min(70%,1400px)}}
@media(prefers-reduced-motion:reduce){.cinema-mascot.cinema-present,.cinema-mascot.cinema-salute,.cinema-mascot.cinema-applause{animation:none!important;transform:none}}

/* At-a-glance logged-in member and calling status */
.crew-live-count{font-size:.87rem;font-weight:700;padding:8px 12px;border-radius:10px;background:rgba(13,167,172,.12);margin:0 0 10px}
.voice-person-label{display:inline-flex;align-items:center;gap:9px}
.voice-person-label .crew-online-light{display:inline-block;flex:none}
#academyPresenceCount{font-size:.78rem;align-self:center;white-space:nowrap}
#voiceReconnect{margin-block:6px 12px;width:100%}

/* DECKWISE: one-tap smartphone call controls and touch-draggable chat / voice windows. */
.voice-incoming{
  width:min(400px,calc(100vw - 20px));max-height:82dvh;overflow-y:auto;
  padding:16px 16px 19px;border-radius:23px;
  border:2px solid #168f79;
  background:linear-gradient(180deg,#edfffa 0%,#fff 60%);
  box-shadow:0 19px 55px #092a3f80;
  z-index:1400;
}
.dw-drag-handle{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.dw-drag-handle:active{cursor:grabbing}
.dw-move-hint{display:block;font-size:10px;font-weight:600;letter-spacing:.015em;opacity:.76;line-height:1.3}
.dw-incoming-handle{display:flex;flex-direction:column;gap:3px;padding:6px 6px 8px;border-bottom:1px solid #bce6dc}
.dw-incoming-handle strong{font-size:18px}
.voice-incoming p#voiceIncomingName{font-size:clamp(19px,5vw,25px);font-weight:850;color:#0e4354;overflow-wrap:anywhere;margin:12px 0}
.voice-incoming .voice-answer-actions{display:flex;gap:16px;align-items:stretch;justify-content:center;margin:12px 0 6px}
.voice-call-control{
  touch-action:manipulation;-webkit-tap-highlight-color:transparent;
  cursor:pointer;display:inline-flex;align-items:center;justify-content:center;
  gap:8px;border:0;color:white;font-weight:850;line-height:1.15;
  box-shadow:0 5px 15px #143a4d38;
}
.voice-incoming .voice-call-control{
  display:flex;flex-direction:column;
  min-width:104px;min-height:92px;
  flex:1 1 0;max-width:156px;padding:12px 9px;
  border-radius:19px;font-size:16px;
}
.voice-call-accept{background:#087c56!important;color:white!important}
.voice-call-reject{background:#cb3343!important;color:white!important}
.voice-call-icon{display:inline-block;font-size:34px;line-height:1.1}
.voice-call-reject .voice-call-icon{transform:rotate(135deg)}
.voice-call-control:focus-visible{outline:4px solid #0c7399;outline-offset:3px}
.voice-call-control:disabled{opacity:.6;cursor:wait}
.voice-tap-instruction{display:block;font-size:12px;color:#476b73;margin-top:6px}
.voice-hud{z-index:1320;box-shadow:0 16px 48px #09283f88}
.voice-hud-title{padding:5px 0 10px;border-bottom:1px solid #d4e7e4}
.voice-hud-title strong{display:block;flex:1}
.voice-hud .voice-hud-actions button{min-height:51px;font-size:14px}
.voice-hud .voice-hud-actions .voice-call-end{
  flex-basis:100%;min-height:60px;padding:12px;
  background:#cb3343!important;color:#fff!important;
  border-radius:14px;font-size:18px;letter-spacing:.01em
}
.voice-call-end span:first-child{display:inline-block;transform:rotate(135deg);font-size:24px}
.floating-chat .floating-chat-title,.crew-voice-panel .floating-chat-title{min-height:53px}
.floating-chat-title strong{min-width:0}
.floating-chat .floating-chat-title button,.crew-voice-panel .floating-chat-title button,
.voice-hud-title button{min-width:44px;min-height:44px;touch-action:manipulation}
.floating-chat,.crew-voice-panel{box-shadow:0 15px 50px #09283f75}
@media(max-width:480px){
  .voice-incoming{top:max(8px,env(safe-area-inset-top));padding:13px 12px}
  .voice-incoming .voice-call-control{min-width:0;min-height:88px}
  .voice-hud{width:min(350px,calc(100vw - 16px));max-height:68dvh}
  .floating-chat{max-height:78dvh}
}
@media(prefers-reduced-motion:reduce){.voice-incoming,.voice-call-control{animation:none!important;transition:none!important}}

/* Open Play lobbies, code-free group joins and always-ready voice calling. */
.open-rooms-list{display:grid;gap:9px;margin:12px 0;max-height:360px;overflow:auto}
.open-room-row{display:flex;align-items:center;justify-content:space-between;gap:12px;
 background:#f5fbfa;border:1px solid #c8e5de;border-radius:12px;padding:11px}
.open-room-text{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}
.open-room-text strong{font-size:14px;color:#12495a}.open-room-text small{font-size:12px;color:#56767b}
.open-room-row button{min-height:48px;min-width:82px;touch-action:manipulation;flex:0 0 auto}
.crew-auto-ready{background:#e7f8f0;border:1px solid #9bddbe;border-radius:12px;
 color:#075b3b;padding:10px 12px;font-size:14px;font-weight:800}
.voice-invite-panel{display:grid;gap:7px;border-top:1px solid #b7dad4;padding-top:9px}
.voice-invite-panel strong{font-size:13px;color:#165d5e}
.voice-invite-contacts{display:grid;gap:6px;max-height:160px;overflow:auto}
.voice-invite-row{display:flex;align-items:center;justify-content:space-between;gap:8px;
 padding:6px 8px;background:#f1faf7;border-radius:9px}
.voice-invite-row span{font-size:12px;overflow-wrap:anywhere}
.voice-invite-row button{min-height:43px;padding:8px 12px;touch-action:manipulation}
@media(max-width:480px){.open-room-row{flex-wrap:wrap}.open-room-row button{width:100%}}

/* Chat reliability: explicit in-panel refresh and six-hour paginated history. */
.chat-sync-row{display:flex;align-items:center;justify-content:space-between;gap:8px;
 padding:6px 1px 10px;flex-wrap:wrap}
.chat-sync-status{font-size:11px;color:#376975;line-height:1.3;min-width:0}
.chat-sync-status.chat-sync-error{font-weight:700;color:#9a4d1a}
.chat-sync-row button,.chat-load-older{touch-action:manipulation;min-height:42px;
 border-radius:10px;font-size:12px}
.chat-sync-row button{margin-left:auto}
.chat-load-older{width:100%;margin:3px 0 8px;background:#eff8f6;
 border:1px solid #b8dad2;color:#135c60;font-weight:800}
.chat-unread{min-width:22px;font-variant-numeric:tabular-nums}
.floating-chat .chat-sync-row{padding:6px 0}
@media(max-width:480px){
 .chat-sync-row button{min-height:44px}
 .chat-sync-status{font-size:11px}
 .floating-chat .chat-messages{min-height:126px}
}

/* Signal-state indicator, always legible on Samsung Chrome and large screens. */
.dw-connection-wrap{display:flex;gap:9px;justify-content:flex-end;align-items:center;flex-wrap:wrap}
.dw-connection{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;
 min-height:36px;padding:7px 11px;border-radius:99px;font-size:12px;font-weight:850;
 background:#e1f5ed;color:#085b43;border:1px solid #a2d4c5}
.dw-connection .dot{width:10px;height:10px;border-radius:50%;background:#0e9962;
 box-shadow:0 0 0 3px #13a8752b}
.dw-connection[data-state="reconnecting"]{background:#fff3d9;color:#6d4a0a;border-color:#eac779}
.dw-connection[data-state="reconnecting"] .dot{background:#db9424;box-shadow:0 0 0 3px #db94242b}
.dw-connection[data-state="offline"]{background:#ffe5e3;color:#862b2c;border-color:#ebafaa}
.dw-connection[data-state="offline"] .dot{background:#d24b49;box-shadow:0 0 0 3px #d24b492b}
.dw-connection[data-state="unverified"]{background:#e5eef3;color:#395567;border-color:#b4ccd7}
.dw-connection[data-state="unverified"] .dot{background:#7c94a1;box-shadow:none}
.dw-retry-now{min-height:43px;touch-action:manipulation;padding:8px 12px;
 background:#12485b;border:1px solid #347a85;border-radius:12px;
 color:#fff;font-weight:850;cursor:pointer;font-size:12px}
.dw-retry-now:focus-visible{outline:3px solid #20b4a4;outline-offset:2px}
@media(max-width:550px){
 .topbar{gap:8px;align-items:center}
 .dw-connection-wrap{gap:5px}
 .dw-connection{font-size:10px;min-height:34px;padding:5px 8px}
 .dw-retry-now{min-height:42px;padding:6px 8px;font-size:11px}
}
