﻿:root{--cyan:#00eaff;--red:#ff3b3b;--green:#65ff9a;--dark:#020707;--panel:rgba(0,8,10,.82);--line:rgba(0,234,255,.55)}
*{box-sizing:border-box}body{margin:0;background:#000;color:#f4fbff;font-family:Arial,Helvetica,sans-serif;overflow:hidden}button,input{font:inherit}button{border:1px solid var(--cyan);background:rgba(0,28,34,.82);color:#fff;text-transform:uppercase;font-weight:800;border-radius:8px;padding:14px 18px;cursor:pointer;letter-spacing:0}button:hover:not(:disabled){background:rgba(0,180,220,.25);box-shadow:0 0 20px rgba(0,234,255,.18)}button:disabled{opacity:.35;cursor:not-allowed}.screen{position:absolute;inset:0;display:none}.screen.active{display:block}.hidden{display:none!important}.menu-bg{position:absolute;inset:0;background:radial-gradient(circle at 63% 38%,rgba(140,32,20,.35),transparent 24%),radial-gradient(circle at 50% 48%,rgba(0,100,120,.16),transparent 30%),linear-gradient(180deg,#020606,#050101 55%,#050808)}.menu-bg:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,rgba(255,255,255,.035) 0 1px,transparent 1px 80px),repeating-linear-gradient(0deg,rgba(255,255,255,.025) 0 1px,transparent 1px 80px);opacity:.35}.menu-card{position:absolute;left:8%;top:22%;width:460px;padding:36px;border:1px solid var(--line);border-radius:8px;background:rgba(0,0,0,.74);box-shadow:0 0 80px rgba(0,0,0,.8)}.logo{font-size:62px;font-weight:900;letter-spacing:6px;text-shadow:0 0 22px rgba(220,250,255,.35)}.subtitle{color:#ff4b4b;letter-spacing:5px;margin:6px 0 28px}.field-label{display:block;margin:0 0 8px;color:#61f6ff;font-size:12px;font-weight:900;text-transform:uppercase}.menu-input{width:100%;height:48px;border:1px solid rgba(0,234,255,.45);border-radius:8px;background:rgba(0,12,16,.84);color:#fff;padding:0 14px;font-weight:800;outline:none}.menu-input:focus{border-color:#fff;box-shadow:0 0 18px rgba(0,234,255,.18)}.menu-row,.join-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.join-row{grid-template-columns:1fr 130px}.menu-card>button{display:block;width:100%;margin-top:12px}.version{opacity:.6;margin-top:22px;font-size:12px}.lobby-panel{position:absolute;right:8%;top:22%;width:390px;padding:28px;border:1px solid var(--line);border-radius:8px;background:rgba(0,0,0,.74);box-shadow:0 0 80px rgba(0,0,0,.8)}.lobby-panel h2{margin:8px 0 6px;color:#44f4ff;font-size:28px}.lobby-status{color:#ffb3b3;font-weight:900;margin-bottom:16px}.lobby-players{display:grid;gap:8px;max-height:320px;overflow:auto}.lobby-player{display:flex;justify-content:space-between;gap:14px;border:1px solid rgba(255,255,255,.12);border-radius:8px;background:rgba(0,20,24,.62);padding:12px 14px}.lobby-player.me{border-color:var(--cyan);background:rgba(0,100,120,.22)}.lobby-player span{font-weight:900}.lobby-player b{color:#9fefff;text-transform:uppercase;font-size:11px}.lobby-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.hud.top{position:absolute;z-index:5;left:0;right:0;top:0;height:66px;display:flex;justify-content:space-between;align-items:center;padding:0 32px;border-bottom:1px solid rgba(0,234,255,.25);background:rgba(0,0,0,.72);font-weight:900}.scene{position:absolute;left:0;top:0;width:100vw;height:100vh;perspective:1000px;background:radial-gradient(circle at 50% 35%,rgba(120,30,18,.26),transparent 28%),linear-gradient(180deg,#030707 0%,#090202 68%,#100403 100%);overflow:hidden;transition:transform .18s ease}.bunker-wall.back{position:absolute;left:18%;top:5%;width:58%;height:60%;background:linear-gradient(180deg,#171919,#0b0c0c);clip-path:polygon(10% 0,90% 0,100% 100%,0 100%);border:1px solid rgba(255,255,255,.04);box-shadow:inset 0 0 80px rgba(0,0,0,.9)}.bunker-wall.back:after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,rgba(255,255,255,.035) 0 2px,transparent 2px 130px);opacity:.5}.vault-door{position:absolute;left:42%;top:28%;width:150px;height:190px;border-radius:8px;background:linear-gradient(135deg,#292f31,#111);border:4px solid #343b3d;box-shadow:inset 0 0 35px rgba(0,0,0,.9),0 0 40px rgba(0,0,0,.8)}.vault-door span{position:absolute;left:50%;top:50%;width:76px;height:76px;transform:translate(-50%,-50%);border-radius:50%;border:8px solid #555;background:#222}.pipe{position:absolute;background:#111;border:1px solid #2d3435;box-shadow:0 0 20px #000}.pipe.p1{left:6%;top:20%;width:10px;height:330px}.pipe.p2{right:8%;top:12%;width:12px;height:390px}.warning-light{position:absolute;top:12%;width:28px;height:18px;border-radius:10px;background:#9b1111;box-shadow:0 0 24px #f00;animation:blink 1.7s infinite}.warning-light.left{left:16%}.warning-light.right{right:18%}@keyframes blink{50%{opacity:.35;box-shadow:0 0 4px #f00}}.lamp{position:absolute;left:50%;top:7%;width:190px;height:45px;transform:translateX(-50%);border-radius:50%;background:#b2a093;box-shadow:0 0 70px rgba(255,210,170,.65);z-index:2}.lamp-beam{position:absolute;left:50%;top:34px;width:520px;height:710px;transform:translateX(-50%);clip-path:polygon(36% 0,64% 0,100% 100%,0 100%);background:linear-gradient(180deg,rgba(255,210,190,.24),rgba(255,170,80,.05),transparent);pointer-events:none}.floor-grid{position:absolute;left:-15%;right:-15%;bottom:-10%;height:45%;background:linear-gradient(180deg,rgba(70,24,17,.75),rgba(20,7,5,1));transform:skewY(-2deg)}.floor-grid:after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,rgba(255,255,255,.035) 0 1px,transparent 1px 110px),repeating-linear-gradient(0deg,rgba(255,255,255,.035) 0 1px,transparent 1px 90px);opacity:.32}.table{position:absolute;left:50%;top:58%;width:690px;height:245px;transform:translate(-50%,-50%) rotateX(58deg);border-radius:50%;background:radial-gradient(circle,#7c2b12,#431207 72%);box-shadow:0 45px 0 #170603,0 70px 80px rgba(0,0,0,.85);border:3px solid #943c13}.table-rim{position:absolute;inset:16px;border-radius:50%;border:2px solid rgba(255,170,80,.22)}.desk-cards{position:absolute;left:50%;top:46%;width:390px;height:120px;transform:translate(-50%,-50%)}.desk-card{position:absolute;width:106px;height:66px;border-radius:5px;background:linear-gradient(135deg,#c78a43,#8a4a17);border:1px solid rgba(255,220,150,.45);box-shadow:0 10px 12px rgba(0,0,0,.35);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:900;color:#220b02;text-transform:uppercase}.desk-card:nth-child(1){left:0;top:10px;transform:rotate(-7deg)}.desk-card:nth-child(2){left:92px;top:24px;transform:rotate(5deg)}.desk-card:nth-child(3){left:187px;top:8px;transform:rotate(-2deg)}.desk-card:nth-child(4){left:278px;top:30px;transform:rotate(8deg)}.characters{position:absolute;inset:0}.char{position:absolute;width:84px;height:190px;text-align:center;transition:.4s;filter:drop-shadow(0 18px 16px rgba(0,0,0,.75));background:transparent;border:0;padding:0;text-transform:none}.char:hover{box-shadow:none;transform:translateY(-4px)}.char.dead{opacity:.18;transform:scale(.9);pointer-events:none}.body{position:absolute;left:23px;top:56px;width:42px;height:105px;border-radius:25px;background:linear-gradient(180deg,#263433,#050707);box-shadow:inset 10px 0 15px rgba(255,255,255,.04)}.head{position:absolute;left:17px;top:6px;width:55px;height:55px;border-radius:50%;background:radial-gradient(circle at 35% 25%,#8c8275,#2c3431 60%,#080b0b);box-shadow:inset -10px -12px 18px rgba(0,0,0,.65)}.nameplate{position:absolute;top:160px;left:-34px;width:156px;font-weight:900;text-shadow:0 2px 8px #000;font-size:14px}.job{display:block;font-size:11px;opacity:.75;margin-top:3px}.speech{position:absolute;left:58px;top:18px;min-width:72px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:rgba(0,0,0,.86);font-size:13px;animation:pop .35s}@keyframes pop{from{transform:scale(.2);opacity:0}}.char.pos0{left:46%;top:30%}.char.pos1{left:64%;top:36%}.char.pos2{left:70%;top:54%}.char.pos3{left:57%;top:65%}.char.pos4{left:45%;top:67%}.char.pos5{left:32%;top:61%}.char.pos6{left:27%;top:43%}.char.pos7{left:36%;top:32%}.side-panel{position:absolute;right:42px;top:94px;width:390px;padding:26px;border:1px solid var(--line);border-radius:8px;background:rgba(0,0,0,.74);box-shadow:0 0 80px rgba(0,0,0,.72);z-index:6}.panel-kicker{color:#ff4b4b;text-transform:uppercase;font-size:12px;font-weight:900;letter-spacing:2px}.side-panel h1{color:#44f4ff;font-size:26px;margin:8px 0 18px}.stat{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid rgba(255,255,255,.1);padding:10px 0}.stat b{color:#61f6ff}.stat span{text-align:right}.stat.secret span{color:#ffb3b3}.panel-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.panel-actions button:first-child{grid-column:1/-1}.hint{font-size:13px;opacity:.58;line-height:1.45}.event-box{position:absolute;z-index:6;left:42px;bottom:34px;width:380px;min-height:130px;border:1px solid rgba(255,68,68,.6);border-radius:8px;background:rgba(0,0,0,.72);padding:18px}.event-box h3{color:#ff4b4b;text-transform:uppercase;margin-top:0}.status-strip{position:absolute;z-index:6;left:42px;top:94px;display:flex;gap:10px;flex-wrap:wrap}.status-strip span{border:1px solid rgba(255,255,255,.18);border-radius:6px;background:rgba(0,0,0,.62);padding:10px 12px;font-size:12px;font-weight:900;text-transform:uppercase}.gesture-wheel{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:30;width:360px;height:360px;border-radius:50%;background:rgba(0,0,0,.86);border:1px solid var(--line);display:grid;grid-template-columns:repeat(3,1fr);place-items:center;padding:28px}.gesture-wheel button{width:92px;height:92px;border-radius:50%;font-size:13px;padding:0}.gesture-wheel span{display:block;font-size:10px;margin-top:5px;color:#9fefff}.modal{position:absolute;inset:0;z-index:40;background:rgba(0,0,0,.92);display:flex;align-items:center;justify-content:center}.modal-card{width:620px;min-height:270px;border:1px solid var(--line);border-radius:8px;background:rgba(0,0,0,.86);padding:32px;box-shadow:0 0 100px rgba(0,0,0,.75)}.modal-card.large{width:840px}.vote-list{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:28px 0}.vote-card{min-height:132px;border:1px solid var(--line);border-radius:8px;background:rgba(0,24,28,.75);padding:18px;text-align:center;cursor:pointer;text-transform:none}.vote-card h3{margin:0 0 8px}.vote-card p{margin:0 0 10px;color:#72f2ff}.vote-card:hover,.vote-card.selected{background:rgba(150,22,22,.9);border-color:#ff4747}.vote-card small{opacity:.7}.modal-actions{display:flex;gap:12px}.red{color:var(--red)}.toast{position:absolute;z-index:50;left:50%;top:90px;transform:translateX(-50%);max-width:min(900px,90vw);padding:14px 22px;border:1px solid var(--line);border-radius:8px;background:rgba(0,0,0,.86);font-weight:900;text-align:center}.mic-state{position:absolute;z-index:7;right:32px;top:25px;font-weight:900}.mic-state.on{color:var(--green);text-shadow:0 0 14px #0f4}
@media(max-width:1100px){.menu-card{left:4%;width:410px}.lobby-panel{right:4%;width:350px}.side-panel{right:16px;width:330px}.table{width:560px}.vote-list{grid-template-columns:repeat(2,1fr)}.event-box{width:320px}.status-strip{left:24px}.status-strip span{padding:8px}}
@media(max-width:820px){body{overflow:auto}.screen.active{min-height:100vh}.menu-card,.lobby-panel{position:relative;left:auto;right:auto;top:auto;width:calc(100% - 24px);margin:16px auto}.menu-bg{position:fixed}.hud.top{height:58px;padding:0 14px;font-size:13px}.scene{height:100vh}.side-panel{left:12px;right:12px;top:auto;bottom:12px;width:auto;padding:16px}.side-panel h1{font-size:20px}.stat{font-size:13px}.event-box{left:12px;top:72px;bottom:auto;width:calc(100% - 24px);min-height:auto}.status-strip{display:none}.table{width:440px}.char{transform:scale(.78)}.vote-list{grid-template-columns:1fr}.modal-card,.modal-card.large{width:calc(100% - 24px);padding:20px}.logo{font-size:46px}.join-row,.menu-row{grid-template-columns:1fr}}

.room-props{position:absolute;inset:0;pointer-events:none}.prop{position:absolute;z-index:1}.prop b{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:11px;color:#9ff;text-shadow:0 0 10px #00eaff}.terminal{left:21%;top:35%;width:78px;height:62px;border:2px solid #263f42;background:linear-gradient(180deg,#102326,#020606);box-shadow:0 18px 28px rgba(0,0,0,.7),inset 0 0 18px rgba(0,234,255,.12)}.terminal span{position:absolute;left:12px;right:12px;top:12px;height:22px;background:rgba(0,234,255,.18);box-shadow:0 0 16px rgba(0,234,255,.32)}.oxygen{right:20%;top:36%;width:58px;height:130px;border-radius:24px;background:linear-gradient(90deg,#263b3b,#091010);border:2px solid #486368;box-shadow:0 20px 30px rgba(0,0,0,.65)}.oxygen span{position:absolute;left:9px;right:9px;bottom:14px;height:48px;border-radius:18px;background:rgba(0,234,255,.24)}.locker{left:12%;top:48%;width:86px;height:150px;background:linear-gradient(90deg,#222,#111);border:2px solid #343434;box-shadow:inset 0 0 30px #000}.locker span{position:absolute;left:50%;top:18px;width:1px;bottom:16px;background:rgba(255,255,255,.15)}.hatch{right:15%;bottom:22%;width:160px;height:62px;border-radius:50%;border:3px solid #322;background:radial-gradient(circle,#2d150e,#090403);box-shadow:0 18px 30px rgba(0,0,0,.8)}.hatch span{position:absolute;left:50%;top:50%;width:70px;height:16px;transform:translate(-50%,-50%);border-radius:8px;background:#181818;border:1px solid #58412e}.camera-controls{position:absolute;z-index:9;left:42px;top:144px;display:flex;gap:8px}.camera-controls button{padding:10px 13px;font-size:12px}.camera-controls button.active{background:rgba(150,22,22,.9);border-color:#ff4747}.room-detail-panel{position:absolute;z-index:6;left:42px;top:194px;width:300px;padding:18px;border:1px solid rgba(0,234,255,.45);border-radius:8px;background:rgba(0,0,0,.7);box-shadow:0 0 50px rgba(0,0,0,.55)}.room-detail-panel h2{margin:7px 0 14px;color:#44f4ff;font-size:20px}.room-grid{display:grid;grid-template-columns:1fr auto;gap:9px 14px;font-size:13px}.room-grid span{opacity:.68}.room-grid b{color:#fff;text-align:right}.scene.first-person{perspective:620px;background:radial-gradient(circle at 50% 72%,rgba(124,44,18,.34),transparent 24%),linear-gradient(180deg,#020404 0%,#080202 72%,#150503 100%)}.scene.first-person .table{top:73%;width:960px;height:330px;filter:drop-shadow(0 0 34px rgba(255,120,50,.08))}.scene.first-person .lamp{top:3%;transform:translateX(-50%) scale(1.22)}.scene.first-person .bunker-wall.back{left:8%;top:0;width:84%;height:68%}.scene.first-person .char.pos0{display:none}.scene.first-person .char:not(.pos0){transform:scale(1.12)}.scene.first-person .char.pos1{left:70%;top:27%}.scene.first-person .char.pos2{left:76%;top:47%}.scene.first-person .char.pos3{left:62%;top:61%}.scene.first-person .char.pos4{left:46%;top:64%}.scene.first-person .char.pos5{left:27%;top:56%}.scene.first-person .char.pos6{left:20%;top:36%}.scene.first-person .char.pos7{left:32%;top:25%}.first-person-ui .side-panel{opacity:.22;transform:translateX(24px)}.first-person-ui .side-panel:hover{opacity:1;transform:none}.card-inspect-stage{position:relative;width:min(760px,92vw);height:min(620px,86vh);display:flex;align-items:center;justify-content:center;perspective:900px}.hero-card-view{width:330px;min-height:470px;border-radius:8px;border:2px solid rgba(255,220,150,.74);background:linear-gradient(145deg,#d4a45d,#7b3916 54%,#2c0e06);box-shadow:0 40px 120px rgba(0,0,0,.86),inset 0 0 40px rgba(255,255,255,.09);color:#230b03;padding:26px;transform:rotateX(8deg) rotateZ(-1deg);animation:cardBreath 3.2s ease-in-out infinite}.hero-card-top{text-transform:uppercase;font-size:12px;font-weight:900;letter-spacing:2px;color:#531a09}.hero-card-view h2{font-size:34px;margin:16px 0 4px;color:#1b0802}.hero-card-view h3{margin:0 0 22px;color:#5a1908;text-transform:uppercase}.hero-card-line{display:flex;justify-content:space-between;gap:18px;border-top:1px solid rgba(45,10,3,.22);padding:11px 0;font-size:14px}.hero-card-line span{text-align:right;font-weight:900}.hero-card-secret{margin-top:18px;padding:14px;border:1px solid rgba(70,10,4,.3);background:rgba(255,238,180,.24);font-weight:900;color:#6b0d08}.hand{position:absolute;z-index:2;bottom:66px;width:170px;height:150px;border-radius:48% 48% 28px 28px;background:linear-gradient(145deg,#7a5d4b,#2d1b15);box-shadow:0 24px 50px rgba(0,0,0,.6)}.left-hand{left:80px;transform:rotate(22deg)}.right-hand{right:80px;transform:rotate(-22deg)}.close-card-btn{position:absolute;right:20px;top:20px;z-index:3}.inspecting-card .mic-state{display:none}@keyframes cardBreath{50%{transform:rotateX(11deg) rotateZ(1deg) translateY(-8px)}}
@media(max-width:1100px){.room-detail-panel{top:auto;bottom:180px;width:270px}.camera-controls{top:132px}.hero-card-view{width:300px}.hand{opacity:.75}.left-hand{left:20px}.right-hand{right:20px}}
@media(max-width:820px){.camera-controls{left:12px;top:128px}.room-detail-panel{display:none}.scene.first-person .table{width:620px}.hero-card-view{width:280px;min-height:430px}.hand{display:none}}

/* Strong first-person camera pass */
.camera-first-person .hud.top{background:rgba(0,0,0,.86)}
.camera-first-person .event-box,.camera-first-person .room-detail-panel{opacity:.18;transform:translateX(-18px);transition:opacity .18s ease,transform .18s ease}
.camera-first-person .event-box:hover,.camera-first-person .room-detail-panel:hover{opacity:1;transform:none}
.camera-first-person .camera-controls{top:86px}
.camera-first-person .status-strip{top:86px;left:230px}
.scene.first-person:before{content:"";position:absolute;z-index:8;left:50%;bottom:-120px;width:1180px;height:330px;transform:translateX(-50%);border-radius:50% 50% 0 0;background:radial-gradient(circle at 50% 0,#6f250d,#260703 68%,#080101);box-shadow:0 -24px 70px rgba(0,0,0,.88),inset 0 20px 55px rgba(255,143,69,.12);pointer-events:none}
.scene.first-person:after{content:"";position:absolute;z-index:10;left:50%;bottom:12px;width:620px;height:180px;transform:translateX(-50%);background:radial-gradient(ellipse at 20% 100%,rgba(104,75,59,.95) 0 18%,transparent 19%),radial-gradient(ellipse at 80% 100%,rgba(104,75,59,.95) 0 18%,transparent 19%),linear-gradient(90deg,transparent 0 30%,rgba(35,22,17,.75) 36% 43%,transparent 49% 51%,rgba(35,22,17,.75) 57% 64%,transparent 70%);filter:drop-shadow(0 18px 22px rgba(0,0,0,.6));pointer-events:none;opacity:.96}
.scene.first-person .table{top:82%;width:1180px;height:380px;transform:translate(-50%,-50%) rotateX(64deg);z-index:7}
.scene.first-person .desk-cards{top:38%;transform:translate(-50%,-50%) scale(1.32)}
.scene.first-person .bunker-wall.back{left:5%;top:-2%;width:90%;height:72%;filter:brightness(.9)}
.scene.first-person .lamp{top:2%;width:240px;height:56px}
.scene.first-person .lamp-beam{width:760px;height:850px;opacity:.84}
.scene.first-person .room-props{transform:scale(1.08);transform-origin:center 55%}
.scene.first-person .char.pos0{display:none!important}
.scene.first-person .char .nameplate{font-size:16px}.scene.first-person .char .job{font-size:12px}
.scene.first-person .char.pos1{left:73%;top:25%}.scene.first-person .char.pos2{left:78%;top:43%}.scene.first-person .char.pos3{left:62%;top:58%}.scene.first-person .char.pos4{left:47%;top:61%}.scene.first-person .char.pos5{left:27%;top:55%}.scene.first-person .char.pos6{left:18%;top:36%}.scene.first-person .char.pos7{left:31%;top:25%}
.scene.first-person .char:not(.pos0){filter:drop-shadow(0 24px 18px rgba(0,0,0,.88)) brightness(1.05)}
.first-person-ui .side-panel{opacity:.08;transform:translateX(42px);transition:opacity .18s ease,transform .18s ease}.first-person-ui .side-panel:hover{opacity:1;transform:none}
.first-person-ui #firstPersonBtn{background:rgba(150,22,22,.95);border-color:#ff4747;box-shadow:0 0 22px rgba(255,71,71,.24)}

/* Forward-looking first-person correction */
.scene.first-person{perspective:920px;background:radial-gradient(circle at 50% 28%,rgba(80,22,14,.24),transparent 30%),linear-gradient(180deg,#020505 0%,#070808 44%,#160402 100%)}
.scene.first-person .bunker-wall.back{left:11%;top:2%;width:78%;height:58%;clip-path:polygon(7% 0,93% 0,100% 100%,0 100%)}
.scene.first-person .vault-door{top:31%;left:44%;width:138px;height:178px}.scene.first-person .lamp{top:5%;width:210px;height:42px}.scene.first-person .lamp-beam{top:32px;width:560px;height:590px;opacity:.62}
.scene.first-person .floor-grid{bottom:-18%;height:39%;opacity:.72}.scene.first-person .table{top:74%;width:920px;height:230px;transform:translate(-50%,-50%) rotateX(54deg);z-index:7}.scene.first-person .table:after{content:"";position:absolute;left:50%;bottom:-72px;width:560px;height:96px;transform:translateX(-50%);border-radius:0 0 48% 48%;background:linear-gradient(180deg,#3a0c04,#110201);box-shadow:0 36px 48px rgba(0,0,0,.65)}
.scene.first-person .desk-cards{top:35%;transform:translate(-50%,-50%) scale(1.08)}
.scene.first-person:before{bottom:-210px;width:940px;height:280px;opacity:.82}.scene.first-person:after{bottom:-2px;width:520px;height:132px;opacity:.78}
.scene.first-person .char:not(.pos0){transform:scale(.98)}.scene.first-person .char.pos1{left:66%;top:34%}.scene.first-person .char.pos2{left:72%;top:49%}.scene.first-person .char.pos3{left:60%;top:58%}.scene.first-person .char.pos4{left:47%;top:60%}.scene.first-person .char.pos5{left:34%;top:56%}.scene.first-person .char.pos6{left:28%;top:43%}.scene.first-person .char.pos7{left:38%;top:34%}
.scene.first-person .terminal{left:23%;top:38%;transform:scale(.86)}.scene.first-person .oxygen{right:22%;top:39%;transform:scale(.86)}.scene.first-person .locker{left:13%;top:50%;transform:scale(.82)}.scene.first-person .hatch{right:14%;bottom:16%;transform:scale(.78)}
.camera-first-person .status-strip{top:84px;left:30px}.camera-first-person .camera-controls{top:136px}.camera-first-person .room-detail-panel{top:186px}.camera-first-person .event-box{opacity:.28}.first-person-ui .side-panel{opacity:.12;transform:translateX(34px) scale(.98)}
@media(max-width:820px){.scene.first-person .table{width:680px;top:76%}.scene.first-person:after{width:390px}.scene.first-person .char:not(.pos0){transform:scale(.82)}}

/* First-person eye-line polish */
.scene.first-person{perspective:1040px;overflow:hidden;background:radial-gradient(circle at 50% 22%,rgba(105,48,30,.2),transparent 28%),linear-gradient(180deg,#020505 0%,#070909 50%,#160403 100%)}
.scene.first-person .bunker-wall.back{left:10%;top:0;width:80%;height:60%;clip-path:polygon(8% 0,92% 0,100% 100%,0 100%);filter:brightness(.92)}
.scene.first-person .vault-door{left:44%;top:29%;width:136px;height:176px;opacity:.74}
.scene.first-person .lamp{top:4%;width:210px;height:40px;transform:translateX(-50%) scale(1)}
.scene.first-person .lamp-beam{top:34px;width:520px;height:560px;opacity:.58}
.scene.first-person .floor-grid{bottom:-20%;height:38%;opacity:.62}
.scene.first-person .table{top:79%;width:880px;height:210px;transform:translate(-50%,-50%) rotateX(58deg);z-index:7;filter:drop-shadow(0 18px 34px rgba(0,0,0,.7))}
.scene.first-person .table:after{bottom:-50px;width:470px;height:74px;opacity:.72}
.scene.first-person .desk-cards{top:31%;transform:translate(-50%,-50%) scale(.92)}
.scene.first-person:before{bottom:-238px;width:820px;height:250px;opacity:.68}
.scene.first-person:after{bottom:-24px;width:460px;height:118px;opacity:.54}
.scene.first-person .char.pos0{display:none!important}
.scene.first-person .char:not(.pos0){transform:scale(.9);filter:drop-shadow(0 18px 16px rgba(0,0,0,.82)) brightness(1.02)}
.scene.first-person .char.pos1{left:64%;top:33%}
.scene.first-person .char.pos2{left:70%;top:46%}
.scene.first-person .char.pos3{left:59%;top:55%}
.scene.first-person .char.pos4{left:47%;top:57%}
.scene.first-person .char.pos5{left:36%;top:54%}
.scene.first-person .char.pos6{left:30%;top:44%}
.scene.first-person .char.pos7{left:39%;top:33%}
.scene.first-person .terminal{left:24%;top:37%;transform:scale(.78)}
.scene.first-person .oxygen{right:23%;top:38%;transform:scale(.78)}
.scene.first-person .locker{left:13%;top:49%;transform:scale(.76)}
.scene.first-person .hatch{right:14%;bottom:15%;transform:scale(.7)}
.camera-first-person .status-strip{top:78px;left:24px;transform:scale(.94);transform-origin:left top}
.camera-first-person .camera-controls{top:130px;left:30px}
.camera-first-person .room-detail-panel{top:180px;left:30px;transform:scale(.92);transform-origin:left top;opacity:.78}
.camera-first-person .event-box{opacity:.18}
.first-person-ui .side-panel{opacity:.08;transform:translateX(48px) scale(.96)}
.first-person-ui .side-panel:hover{opacity:1;transform:none}
@media(max-width:820px){.scene.first-person .table{top:80%;width:650px;height:185px}.scene.first-person .desk-cards{top:30%;transform:translate(-50%,-50%) scale(.78)}.scene.first-person:after{width:340px;opacity:.45}.scene.first-person .char:not(.pos0){transform:scale(.76)}.camera-first-person .status-strip{left:12px}.camera-first-person .camera-controls{left:12px}}

/* First-person HUD cleanup */
.camera-first-person .room-detail-panel{opacity:.58;backdrop-filter:blur(3px)}
.camera-first-person .event-box{opacity:.08;pointer-events:none}
.first-person-ui .side-panel{opacity:.035;transform:translateX(58px) scale(.94)}
.first-person-ui .side-panel:hover{opacity:1;transform:none}
.scene.first-person .table{top:80%;height:200px}
.scene.first-person .desk-cards{top:29%;transform:translate(-50%,-50%) scale(.88)}
.scene.first-person:after{bottom:-34px;opacity:.45}

/* First-person table seating pass */
.scene.first-person .char:not(.pos0){z-index:9;transform:scale(1.08);filter:drop-shadow(0 22px 18px rgba(0,0,0,.85)) brightness(1.06)}
.scene.first-person .char .avatar{box-shadow:0 18px 28px rgba(0,0,0,.58)}
.scene.first-person .char .body{box-shadow:inset 0 10px 18px rgba(255,255,255,.04),0 18px 26px rgba(0,0,0,.48)}
.scene.first-person .char.pos1{left:65%;top:38%}
.scene.first-person .char.pos2{left:72%;top:48%}
.scene.first-person .char.pos3{left:62%;top:56%}
.scene.first-person .char.pos4{left:49%;top:58%}
.scene.first-person .char.pos5{left:36%;top:56%}
.scene.first-person .char.pos6{left:28%;top:48%}
.scene.first-person .char.pos7{left:37%;top:38%}
.scene.first-person .table{z-index:8;top:81%;width:920px;height:205px}
.scene.first-person .desk-cards{z-index:10;top:27%;transform:translate(-50%,-50%) scale(.92)}
.scene.first-person .char .nameplate{transform:translateY(-2px);text-shadow:0 2px 8px #000,0 0 10px rgba(255,255,255,.24)}
@media(max-width:820px){.scene.first-person .char:not(.pos0){transform:scale(.9)}.scene.first-person .table{width:700px;top:82%}}

/* First-person seated silhouette cleanup */
.scene.first-person .char:not(.pos0){z-index:9;transform:scale(1.02)}
.scene.first-person .char .body{top:62px;height:82px;border-radius:26px 26px 18px 18px;background:linear-gradient(180deg,#2c3c3a 0%,#10201f 64%,rgba(5,7,7,.18) 100%)}
.scene.first-person .char .nameplate{top:142px;font-size:15px;line-height:1.05}
.scene.first-person .char .job{font-size:11px;margin-top:4px}
.scene.first-person .char.pos1{left:65%;top:38%}
.scene.first-person .char.pos2{left:72%;top:49%}
.scene.first-person .char.pos3{left:62%;top:57%}
.scene.first-person .char.pos4{left:49%;top:59%}
.scene.first-person .char.pos5{left:36%;top:57%}
.scene.first-person .char.pos6{left:28%;top:49%}
.scene.first-person .char.pos7{left:37%;top:38%}
.scene.first-person .table{top:80%;width:940px;height:210px}
.scene.first-person .desk-cards{top:25%;transform:translate(-50%,-50%) scale(.86)}
@media(max-width:820px){.scene.first-person .char:not(.pos0){transform:scale(.86)}.scene.first-person .char .nameplate{top:138px}}

/* First-person around-table composition */
.scene.first-person .table{z-index:10;top:79%;width:980px;height:220px;box-shadow:0 34px 0 #180604,0 58px 68px rgba(0,0,0,.88),inset 0 18px 28px rgba(255,130,54,.08)}
.scene.first-person .table:before{content:"";position:absolute;left:3%;right:3%;top:10%;height:42%;border-radius:50%;border-top:2px solid rgba(255,188,92,.22);background:linear-gradient(180deg,rgba(255,110,38,.08),transparent);pointer-events:none}
.scene.first-person .desk-cards{z-index:12;top:24%;transform:translate(-50%,-50%) scale(.82)}

/* v0.9 interface, tutorial and release HUD */
.menu-secondary{margin-top:14px}.menu-secondary button{padding:11px}.hud-right{display:flex;align-items:center;gap:10px}.hud-right>button{width:42px;height:38px;padding:0}.hud-right>#journalBtn{width:auto;padding:0 12px;font-size:11px}.connection-state{display:flex;align-items:center;gap:7px;font-size:11px;color:#91a5a8}.connection-state i{width:9px;height:9px;border-radius:50%;background:#637174;box-shadow:0 0 8px currentColor}.connection-state.good{color:#65ff9a}.connection-state.fair{color:#ffd45c}.connection-state.bad{color:#ff4b4b}.mic-quality{height:24px;display:flex;align-items:flex-end;gap:2px}.mic-quality i{width:3px;height:6px;background:#203438;transition:.08s}.mic-quality i:nth-child(2){height:10px}.mic-quality i:nth-child(3){height:15px}.mic-quality i:nth-child(4){height:20px}.mic-quality i.active{background:#00eaff;box-shadow:0 0 7px #00eaff}.room-navigation{position:absolute;z-index:8;left:50%;bottom:22px;transform:translateX(-50%);display:flex;background:rgba(0,5,7,.82);border:1px solid rgba(0,234,255,.32);border-radius:8px;padding:4px}.room-navigation button{border:0;background:transparent;padding:9px 13px;font-size:10px;color:#7b9294}.room-navigation button.active{color:#fff;background:rgba(0,234,255,.16);box-shadow:none}.tutorial-card{width:min(580px,calc(100vw - 32px));min-height:430px}.tutorial-step{float:right;color:#00eaff;font-weight:900}.tutorial-card h1{font-size:32px;margin:28px 0 12px}.tutorial-card>p{line-height:1.6;color:#c7d1d3}.tutorial-visual{height:150px;margin:26px 0;background:linear-gradient(135deg,#071214,#170705);border:1px solid rgba(0,234,255,.25);border-radius:8px;position:relative;overflow:hidden}.tutorial-visual:before,.tutorial-visual:after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.tutorial-visual.card:before{width:110px;height:75px;border:2px solid #e7a44d;background:#6e3213;transform:translate(-65%,-45%) rotate(-7deg);box-shadow:32px 10px 0 #32130d}.tutorial-visual.voice:before{width:30px;height:68px;border:4px solid #00eaff;border-radius:18px}.tutorial-visual.voice:after{width:75px;height:40px;border:4px solid #00eaff;border-top:0;border-radius:0 0 45px 45px}.tutorial-visual.action:before{width:200px;height:64px;border:1px solid #ff4b4b;background:repeating-linear-gradient(90deg,#260b09 0 55px,#0b2225 55px 65px)}.tutorial-visual.vote:before{width:70px;height:70px;border:4px solid #00eaff;border-radius:50%;box-shadow:-100px 0 0 -4px #193c3d,100px 0 0 -4px #193c3d}.journal-card{width:min(720px,calc(100vw - 32px));height:min(720px,calc(100vh - 60px))}.journal-filters{display:flex;gap:7px;margin:18px 0}.journal-filters button{padding:8px 12px;font-size:10px}.journal-filters button.active{background:rgba(0,234,255,.22)}.journal-list{height:calc(100% - 118px);overflow:auto;display:grid;align-content:start;gap:8px;padding-right:8px}.journal-entry{display:grid;grid-template-columns:92px 1fr;gap:14px;padding:14px;border-left:3px solid #476064;background:rgba(5,18,20,.72)}.journal-entry.card{border-color:#e7a44d}.journal-entry.event{border-color:#ff4b4b}.journal-entry.round{border-color:#00eaff}.journal-entry time{font-size:11px;color:#7da0a3;font-weight:900}.journal-entry p{margin:0;line-height:1.4}.journal-empty{padding:50px;text-align:center;color:#73888a}.profile-card{width:min(500px,calc(100vw - 32px))}.profile-card select{margin-bottom:18px}.profile-preview{display:flex;align-items:center;gap:18px;margin:18px 0 24px;padding:16px;background:rgba(0,20,24,.65);border:1px solid rgba(255,255,255,.1)}.profile-preview div:last-child{display:grid;gap:4px}.profile-preview small{color:#8aa0a2}.profile-avatar{width:72px;height:72px;border-radius:50%;background:radial-gradient(circle at 38% 28%,#d6a184 0 18%,#774e3d 45%,#172c2d 46% 100%);border:2px solid #00eaff}.profile-avatar.model-1,.profile-avatar.model-5{box-shadow:inset 0 14px 0 #3b251c}.profile-avatar.model-2,.profile-avatar.model-6{border-color:#ff4b4b}.profile-avatar.model-3,.profile-avatar.model-8{background:radial-gradient(circle at 38% 28%,#c99576 0 18%,#5b3927 45%,#463140 46% 100%)}
@media(max-width:900px){body{overflow:auto}.screen{min-height:100dvh}.menu-card,.lobby-panel{position:relative;left:auto;right:auto;top:auto;width:calc(100% - 24px);margin:12px;padding:20px}.menu-card{margin-top:38px}.logo{font-size:44px}.lobby-panel{margin-top:18px}.side-panel{right:10px;top:auto;bottom:78px;width:280px;max-height:46vh;overflow:auto;padding:14px}.hud.top{padding:0 10px;height:58px}.hud-right{gap:5px}.hud-right>#journalBtn{width:38px;font-size:0}.hud-right>#journalBtn:after{content:"J";font-size:13px}.connection-state span{display:none}.status-strip{left:10px!important;top:68px!important;max-width:calc(100vw - 20px);flex-wrap:wrap}.camera-controls{left:10px!important;top:116px!important}.room-detail-panel,.event-box{display:none}.room-navigation{bottom:10px}.chat-panel{right:8px!important;bottom:68px!important;width:calc(100vw - 16px)!important;max-width:380px}.modal-card,.settings-card{max-height:calc(100dvh - 24px);overflow:auto}.journal-entry{grid-template-columns:70px 1fr}.three-person-label{transform:translate(-50%,-100%) scale(.78)!important}}
.scene.first-person .char:not(.pos0){z-index:9;transform:scale(.96);filter:drop-shadow(0 20px 18px rgba(0,0,0,.82)) brightness(1.04)}
.scene.first-person .char .head{top:0;width:58px;height:58px}
.scene.first-person .char .body{top:58px;height:72px;border-radius:24px 24px 16px 16px;background:linear-gradient(180deg,#2b3b39 0%,#10201f 70%,rgba(5,7,7,.06) 100%)}
.scene.first-person .char .nameplate{top:128px;font-size:15px;line-height:1.05;text-shadow:0 2px 8px #000,0 0 12px rgba(255,255,255,.28)}
.scene.first-person .char .job{font-size:11px;margin-top:4px}
.scene.first-person .char.pos1{left:64%;top:42%}
.scene.first-person .char.pos2{left:71%;top:49%}
.scene.first-person .char.pos3{left:62%;top:55%}
.scene.first-person .char.pos4{left:49%;top:57%}
.scene.first-person .char.pos5{left:36%;top:55%}
.scene.first-person .char.pos6{left:29%;top:49%}
.scene.first-person .char.pos7{left:38%;top:42%}
.scene.first-person .char.pos3,.scene.first-person .char.pos4,.scene.first-person .char.pos5{transform:scale(1.02)}
.scene.first-person .char.pos1,.scene.first-person .char.pos7{transform:scale(.9)}
.scene.first-person .char.pos2,.scene.first-person .char.pos6{transform:scale(.96)}
.scene.first-person .lamp-beam{opacity:.48}
.scene.first-person .bunker-wall.back{height:57%;opacity:.9}
@media(max-width:820px){.scene.first-person .table{width:720px;top:80%;height:205px}.scene.first-person .char:not(.pos0){transform:scale(.82)}.scene.first-person .char.pos3,.scene.first-person .char.pos4,.scene.first-person .char.pos5{transform:scale(.88)}}

/* First-person player hands and dossier lift */
.first-person-hands{position:absolute;z-index:13;left:0;right:0;bottom:0;height:230px;pointer-events:none;opacity:0;transform:translateY(44px);transition:opacity .22s ease,transform .22s ease}
.scene.first-person .first-person-hands{opacity:.92;transform:translateY(0)}
.fp-sleeve,.fp-palm{position:absolute;bottom:-18px;filter:drop-shadow(0 22px 22px rgba(0,0,0,.65))}
.fp-sleeve{width:210px;height:112px;border-radius:58px 58px 20px 20px;background:linear-gradient(135deg,#172322,#071010 70%);border:1px solid rgba(93,140,140,.18)}
.fp-palm{width:118px;height:76px;border-radius:54% 44% 28px 28px;background:radial-gradient(circle at 35% 24%,#9a7d68,#4a2e23 62%,#20100c);box-shadow:inset -14px -16px 20px rgba(0,0,0,.42)}
.fp-sleeve.left{left:28%;transform:rotate(17deg)}
.fp-palm.left{left:36%;bottom:34px;transform:rotate(18deg)}
.fp-sleeve.right{right:28%;transform:rotate(-17deg)}
.fp-palm.right{right:36%;bottom:34px;transform:rotate(-18deg)}
.camera-first-person.inspecting-card #game{filter:brightness(.42) blur(1px)}
.camera-first-person #cardInspect{background:radial-gradient(circle at 50% 56%,rgba(255,132,52,.16),transparent 26%),rgba(0,0,0,.62);align-items:flex-end;padding-bottom:28px}
.camera-first-person .card-inspect-stage{height:min(720px,92vh);align-items:flex-end;perspective:1100px}
.camera-first-person .hero-card-view{width:min(380px,78vw);min-height:520px;margin-bottom:64px;transform:translateY(34px) rotateX(16deg) rotateZ(-1deg);animation:firstPersonCardLift .42s cubic-bezier(.2,.8,.2,1) both,cardBreathFirst 3.4s ease-in-out .45s infinite;box-shadow:0 34px 100px rgba(0,0,0,.88),0 0 0 1px rgba(255,237,190,.28),inset 0 0 44px rgba(255,255,255,.1)}
.camera-first-person .card-inspect-stage:before,.camera-first-person .card-inspect-stage:after{content:"";position:absolute;z-index:3;bottom:30px;width:210px;height:158px;border-radius:48% 48% 30px 30px;background:linear-gradient(145deg,#8a6a56,#302018 70%);box-shadow:0 28px 58px rgba(0,0,0,.72);pointer-events:none}
.camera-first-person .card-inspect-stage:before{left:calc(50% - 320px);transform:rotate(27deg)}
.camera-first-person .card-inspect-stage:after{right:calc(50% - 320px);transform:rotate(-27deg)}
.camera-first-person .card-inspect-stage .hand{display:none}
.camera-first-person .close-card-btn{right:calc(50% - 260px);top:58px;background:rgba(0,20,24,.86)}
.camera-first-person .hero-card-view h2{font-size:36px}
.camera-first-person .hero-card-line{font-size:15px;padding:12px 0}
.camera-first-person .hero-card-secret{font-size:15px;line-height:1.25}
@keyframes firstPersonCardLift{from{opacity:0;transform:translateY(180px) rotateX(38deg) scale(.86)}to{opacity:1;transform:translateY(34px) rotateX(16deg) rotateZ(-1deg) scale(1)}}
@keyframes cardBreathFirst{50%{transform:translateY(22px) rotateX(13deg) rotateZ(1deg)}}
@media(max-width:820px){.first-person-hands{height:190px}.fp-sleeve{width:150px}.fp-palm{width:88px;height:58px}.fp-sleeve.left{left:16%}.fp-palm.left{left:28%}.fp-sleeve.right{right:16%}.fp-palm.right{right:28%}.camera-first-person .hero-card-view{width:min(330px,82vw);min-height:470px}.camera-first-person .card-inspect-stage:before{left:4%}.camera-first-person .card-inspect-stage:after{right:4%}.camera-first-person .close-card-btn{right:18px;top:18px}}

/* Room detail pass */
.room-details{position:absolute;inset:0;z-index:2;pointer-events:none;color:#9ff}
.detail{position:absolute;opacity:.72}
.vent{left:47%;top:19%;width:110px;height:30px;border:1px solid rgba(255,255,255,.12);background:linear-gradient(180deg,#1b2020,#070909);box-shadow:0 12px 22px rgba(0,0,0,.55),inset 0 0 18px rgba(0,0,0,.75)}
.vent span{display:block;height:1px;margin:7px 12px;background:rgba(180,220,220,.22)}
.cable{top:7%;width:2px;height:310px;background:linear-gradient(180deg,rgba(160,200,200,.18),rgba(40,60,60,.05));box-shadow:10px 24px 0 rgba(255,255,255,.035),-7px 80px 0 rgba(255,255,255,.03)}
.cable.c1{left:19%;transform:rotate(4deg)}.cable.c2{right:18%;transform:rotate(-3deg)}
.crate{bottom:14%;width:110px;height:58px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(135deg,#24130d,#110705);box-shadow:0 18px 24px rgba(0,0,0,.65),inset 0 0 18px rgba(255,120,50,.05)}
.crate:before,.crate:after{content:"";position:absolute;inset:10px;border-top:1px solid rgba(255,200,120,.12)}
.crate span{position:absolute;left:18px;right:18px;top:50%;height:2px;background:rgba(255,160,80,.16)}
.crate.left{left:18%;transform:skewY(-4deg)}.crate.right{right:20%;transform:skewY(3deg)}
.wall-console{right:27%;top:31%;width:72px;height:86px;border:1px solid rgba(0,234,255,.22);background:linear-gradient(180deg,rgba(0,35,42,.62),rgba(0,5,8,.7));box-shadow:0 0 18px rgba(0,234,255,.08),inset 0 0 18px rgba(0,0,0,.7)}
.wall-console b{position:absolute;left:9px;top:9px;font-size:10px;letter-spacing:1px;color:#ff6969}.wall-console span{position:absolute;left:14px;right:14px;bottom:15px;height:18px;border-radius:9px;background:rgba(255,54,54,.35);box-shadow:0 0 16px rgba(255,54,54,.28)}
.floor-scratch{bottom:22%;width:180px;height:1px;background:linear-gradient(90deg,transparent,rgba(255,210,150,.13),transparent)}
.floor-scratch.s1{left:34%;transform:rotate(-8deg)}.floor-scratch.s2{right:31%;bottom:18%;transform:rotate(6deg)}
.scene.first-person .room-details{z-index:3;opacity:.84}.scene.first-person .vent{top:18%;left:46%}.scene.first-person .crate{bottom:12%;opacity:.48}.scene.first-person .wall-console{right:25%;top:30%;transform:scale(.86)}
.inspecting-card .toast{display:none!important}

/* Card grip readability tune */
.camera-first-person .card-inspect-stage:before,.camera-first-person .card-inspect-stage:after{bottom:-4px;width:178px;height:126px;opacity:.94}
.camera-first-person .card-inspect-stage:before{left:calc(50% - 355px);transform:rotate(24deg)}
.camera-first-person .card-inspect-stage:after{right:calc(50% - 355px);transform:rotate(-24deg)}
.camera-first-person .hero-card-view{margin-bottom:78px}
.camera-first-person .hero-card-secret{margin-top:14px;padding:12px 14px}
@media(max-width:820px){.camera-first-person .card-inspect-stage:before{left:-10px}.camera-first-person .card-inspect-stage:after{right:-10px}.camera-first-person .card-inspect-stage:before,.camera-first-person .card-inspect-stage:after{width:138px;height:104px}}

/* Public reveal cards */
.desk-cards{width:520px;height:150px}
.desk-card{width:98px;height:62px;flex-direction:column;gap:4px;transition:transform .22s ease,filter .22s ease,box-shadow .22s ease}
.desk-card span{font-size:11px;line-height:1;text-align:center}.desk-card b{font-size:8px;letter-spacing:1px;color:rgba(40,12,4,.66)}
.desk-card.closed{background:linear-gradient(135deg,#2a1710,#0d0503);border-color:rgba(255,80,65,.28);color:#ffb48e;box-shadow:0 10px 18px rgba(0,0,0,.46),inset 0 0 22px rgba(255,45,28,.08)}
.desk-card.closed b{color:rgba(255,180,142,.45)}.desk-card.open{background:linear-gradient(135deg,#d29a4d,#8b4819);border-color:rgba(255,230,170,.62);color:#230b02;box-shadow:0 12px 18px rgba(0,0,0,.42),0 0 16px rgba(255,158,65,.08)}
.desk-card.open:after{content:"";position:absolute;inset:5px;border:1px solid rgba(255,245,205,.2);border-radius:4px;pointer-events:none}
.desk-card:hover{filter:brightness(1.12);transform:translateY(-4px) rotate(var(--card-rot,0deg))}
.desk-card:nth-child(1){left:0;top:38px;transform:rotate(-10deg);--card-rot:-10deg}.desk-card:nth-child(2){left:76px;top:15px;transform:rotate(6deg);--card-rot:6deg}.desk-card:nth-child(3){left:158px;top:34px;transform:rotate(-4deg);--card-rot:-4deg}.desk-card:nth-child(4){left:241px;top:12px;transform:rotate(5deg);--card-rot:5deg}.desk-card:nth-child(5){left:323px;top:36px;transform:rotate(-7deg);--card-rot:-7deg}.desk-card:nth-child(6){left:405px;top:18px;transform:rotate(9deg);--card-rot:9deg}
.scene.first-person .desk-cards{width:500px;top:23%;transform:translate(-50%,-50%) scale(.72)}
.reveal-moment{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 50% 52%,rgba(255,119,45,.16),transparent 28%),rgba(0,0,0,.24);pointer-events:none;animation:revealMomentIn .22s ease both}
.reveal-moment.leaving{animation:revealMomentOut .42s ease both}.reveal-card{width:310px;min-height:210px;border-radius:8px;border:2px solid rgba(255,226,164,.82);background:linear-gradient(145deg,#d7a55b,#7f3715 62%,#2c0e06);box-shadow:0 34px 90px rgba(0,0,0,.84),0 0 34px rgba(255,119,45,.24);padding:26px;color:#240b03;text-align:center;text-transform:uppercase;transform:rotateX(11deg) rotateZ(-2deg)}
.reveal-card span{display:block;font-size:12px;font-weight:900;letter-spacing:3px;color:#6b210b}.reveal-card b{display:block;margin:24px 0 18px;font-size:34px;line-height:1}.reveal-card small{display:block;font-size:13px;font-weight:900;line-height:1.25;color:#5c1908;text-transform:none}
@keyframes revealMomentIn{from{opacity:0}to{opacity:1}}@keyframes revealMomentOut{to{opacity:0;transform:scale(1.04)}}
@media(max-width:820px){.desk-cards{width:390px}.desk-card{width:82px;height:56px}.desk-card:nth-child(1){left:0}.desk-card:nth-child(2){left:60px}.desk-card:nth-child(3){left:122px}.desk-card:nth-child(4){left:184px}.desk-card:nth-child(5){left:246px}.desk-card:nth-child(6){left:308px}.reveal-card{width:280px}}


/* Table talk and character reactions */
.char.talking{z-index:15;filter:drop-shadow(0 22px 20px rgba(0,0,0,.82)) drop-shadow(0 0 18px rgba(0,234,255,.2)) brightness(1.12)}
.char.talking .head{animation:talkHead 1.05s ease-in-out infinite;box-shadow:inset -10px -12px 18px rgba(0,0,0,.65),0 0 22px rgba(255,245,210,.18)}
.char.talking .body{box-shadow:inset 10px 0 15px rgba(255,255,255,.05),0 0 20px rgba(0,234,255,.08)}
.speech{z-index:20;left:58px;top:-2px;max-width:210px;min-width:110px;padding:10px 12px;border:1px solid rgba(0,234,255,.58);border-radius:8px;background:rgba(0,8,10,.9);box-shadow:0 18px 34px rgba(0,0,0,.62),0 0 20px rgba(0,234,255,.12);font-size:12px;line-height:1.2;font-weight:800;text-align:left;text-transform:none;color:#eefcff;animation:speechPop .2s ease both}
.speech:after{content:"";position:absolute;left:14px;bottom:-8px;border:8px solid transparent;border-top-color:rgba(0,8,10,.9);border-bottom:0}
.speech.reaction{border-color:rgba(255,86,70,.72);box-shadow:0 18px 34px rgba(0,0,0,.62),0 0 24px rgba(255,70,50,.16)}
.speech.gesture{min-width:82px;text-align:center;color:#101;background:linear-gradient(135deg,#d8a756,#8e4818);border-color:rgba(255,230,170,.72)}
.scene.first-person .speech{top:-34px;left:42px;transform:scale(.92);transform-origin:left bottom}.scene.first-person .char.pos2 .speech,.scene.first-person .char.pos3 .speech{left:-150px}.scene.first-person .char.pos6 .speech,.scene.first-person .char.pos7 .speech{left:52px}
@keyframes talkHead{50%{transform:translateY(-3px) scale(1.03)}}
@keyframes speechPop{from{opacity:0;transform:translateY(8px) scale(.86)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:820px){.speech{max-width:150px;font-size:11px}.scene.first-person .speech{transform:scale(.8)}}

/* Keep table talk readable near side panels */
.scene.first-person .speech{max-width:180px}
.scene.first-person .char.pos1 .speech,.scene.first-person .char.pos2 .speech,.scene.first-person .char.pos3 .speech{left:-230px;text-align:right}
.scene.first-person .char.pos1 .speech:after,.scene.first-person .char.pos2 .speech:after,.scene.first-person .char.pos3 .speech:after{left:auto;right:18px}
.scene.first-person .char.pos6 .speech,.scene.first-person .char.pos7 .speech{left:58px;text-align:left}

/* Cinematic voting */
#vote{background:radial-gradient(circle at 50% 42%,rgba(150,22,22,.2),transparent 30%),rgba(0,0,0,.9)}
#vote .modal-card.large{width:min(1080px,92vw);background:rgba(0,0,0,.82);border-color:rgba(255,60,60,.5)}
.vote-status{margin:14px 0 6px;padding:12px 14px;border:1px solid rgba(0,234,255,.32);border-radius:8px;background:rgba(0,18,22,.72);font-weight:900;color:#c9fbff}.vote-status b{color:#ff6464}
.vote-list{grid-template-columns:repeat(4,minmax(160px,1fr));gap:12px;margin:18px 0 24px}.vote-card{position:relative;min-height:250px;padding:16px 14px 14px;overflow:hidden;text-align:left;background:linear-gradient(180deg,rgba(0,26,30,.86),rgba(4,8,9,.92));transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.vote-card:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 0,rgba(0,234,255,.12),transparent 45%);opacity:.7;pointer-events:none}.vote-card:hover{transform:translateY(-4px);box-shadow:0 18px 34px rgba(0,0,0,.5),0 0 24px rgba(0,234,255,.12)}.vote-card.selected{background:linear-gradient(180deg,rgba(120,16,16,.94),rgba(20,4,4,.96));border-color:#ff4747;box-shadow:0 22px 50px rgba(0,0,0,.62),0 0 28px rgba(255,70,70,.24)}
.vote-avatar{position:relative;width:64px;height:88px;margin:0 auto 10px}.vote-avatar:before{content:"";position:absolute;left:10px;top:0;width:46px;height:46px;border-radius:50%;background:radial-gradient(circle at 35% 25%,#928679,#2c3431 62%,#080b0b)}.vote-avatar span{position:absolute;left:16px;top:48px;width:34px;height:40px;border-radius:20px;background:linear-gradient(180deg,#263433,#050707)}
.vote-card h3{position:relative;text-align:center;margin:6px 0 5px;font-size:20px}.vote-card p{position:relative;text-align:center;margin:0 0 12px;color:#72f2ff;font-weight:900}.vote-facts{position:relative;display:grid;gap:7px;margin:12px 0}.vote-facts span{display:block;min-height:28px;padding:7px 8px;border:1px solid rgba(255,255,255,.08);border-radius:6px;background:rgba(0,0,0,.32);font-size:11px;line-height:1.15;color:#e9f7f7}.vote-card small{position:relative;display:block;margin-top:10px;color:#ffb9b9;font-weight:900;line-height:1.2}
.char.vote-target{filter:drop-shadow(0 22px 18px rgba(0,0,0,.85)) drop-shadow(0 0 26px rgba(255,55,55,.55)) brightness(1.2)!important}.char.vote-target .head{box-shadow:inset -10px -12px 18px rgba(0,0,0,.65),0 0 24px rgba(255,55,55,.45)}
.verdict-card{padding:26px;border:1px solid rgba(255,70,70,.56);border-radius:8px;background:radial-gradient(circle at 50% 0,rgba(255,70,70,.16),transparent 38%),rgba(0,0,0,.62);box-shadow:0 28px 70px rgba(0,0,0,.65);animation:verdictIn .28s ease both}.verdict-kicker{text-transform:uppercase;letter-spacing:3px;color:#ff5656;font-size:12px;font-weight:900}.verdict-card h2{margin:10px 0 6px;font-size:36px;color:#fff}.verdict-card p{margin:0 0 18px;color:#ffc2c2;font-weight:900}.verdict-grid{display:grid;grid-template-columns:120px 1fr;gap:10px 18px;border-top:1px solid rgba(255,255,255,.12);padding-top:18px}.verdict-grid span{color:#61f6ff;font-weight:900}.verdict-grid b{color:#fff}.survivor-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:18px}.survivor-list span{padding:12px;border:1px solid rgba(0,234,255,.24);border-radius:8px;background:rgba(0,18,22,.72);font-weight:900}.survivor-list b{display:block;margin-top:4px;color:#61f6ff;font-size:12px}.verdict-card.final{border-color:rgba(0,234,255,.55)}
@keyframes verdictIn{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:none}}
@media(max-width:900px){.vote-list{grid-template-columns:repeat(2,1fr)}.vote-card{min-height:230px}.survivor-list{grid-template-columns:1fr}}
@media(max-width:560px){.vote-list{grid-template-columns:1fr}.verdict-grid{grid-template-columns:1fr}.vote-card{min-height:auto}}

/* Bunker event states */
.scene.event-generator .lamp{animation:powerFlicker 1.9s infinite}.scene.event-generator .lamp-beam{opacity:.42}.scene.event-generator{box-shadow:inset 0 0 120px rgba(0,0,0,.45)}
.scene.event-oxygen .oxygen span{height:28px;background:rgba(255,64,64,.34);box-shadow:0 0 22px rgba(255,64,64,.35)}.scene.event-oxygen:before{filter:hue-rotate(145deg) brightness(.9)}
.scene.event-blast{animation:blastRumble 5s ease-in-out infinite}.scene.event-blast .vault-door{box-shadow:inset 0 0 35px rgba(0,0,0,.9),0 0 42px rgba(255,60,40,.22)}
.scene.event-radiation{background:radial-gradient(circle at 50% 38%,rgba(94,255,95,.08),transparent 34%),linear-gradient(180deg,#020707 0%,#071006 62%,#100403 100%)}.scene.event-radiation .warning-light{background:#68d438;box-shadow:0 0 24px #67ff4b}
.scene.event-rations .desk-card.closed{border-color:rgba(255,190,75,.34)}.scene.event-rations .table{filter:drop-shadow(0 18px 34px rgba(0,0,0,.7)) saturate(.86)}
.scene.event-sabotage .terminal{border-color:#6b1d1d;box-shadow:0 18px 28px rgba(0,0,0,.7),inset 0 0 22px rgba(255,30,30,.2)}.scene.event-sabotage .wall-console span{animation:consolePanic .7s infinite}
.room-detail-panel.danger{border-color:rgba(255,68,68,.74);box-shadow:0 0 42px rgba(255,60,40,.13),0 0 50px rgba(0,0,0,.55)}.room-detail-panel.danger h2{color:#ff6b6b}
.event-alert{position:fixed;z-index:70;left:50%;top:88px;transform:translateX(-50%);width:min(620px,88vw);pointer-events:none;animation:eventAlertIn .24s ease both}.event-alert div{border:1px solid rgba(255,68,68,.68);border-radius:8px;background:radial-gradient(circle at 50% 0,rgba(255,68,68,.17),transparent 46%),rgba(0,0,0,.9);box-shadow:0 30px 80px rgba(0,0,0,.74),0 0 30px rgba(255,60,40,.12);padding:18px 22px;text-align:center}.event-alert span{display:block;color:#ff6262;text-transform:uppercase;font-size:11px;font-weight:900;letter-spacing:3px}.event-alert b{display:block;margin:8px 0 6px;color:#fff;font-size:24px}.event-alert p{margin:0;color:#d9f7f7;font-weight:800;line-height:1.25}.event-alert.event-oxygen div{border-color:rgba(0,234,255,.65);box-shadow:0 30px 80px rgba(0,0,0,.74),0 0 30px rgba(0,234,255,.13)}.event-alert.event-radiation div{border-color:rgba(110,255,90,.6)}.event-alert.leaving{animation:eventAlertOut .45s ease both}
@keyframes eventAlertIn{from{opacity:0;transform:translate(-50%,-14px) scale(.96)}to{opacity:1;transform:translate(-50%,0) scale(1)}}@keyframes eventAlertOut{to{opacity:0;transform:translate(-50%,-18px) scale(.98)}}
@keyframes powerFlicker{0%,100%{opacity:1}45%{opacity:.45}48%{opacity:1}52%{opacity:.28}58%{opacity:.82}}@keyframes blastRumble{0%,92%,100%{transform:translateX(var(--scene-x,0))}94%{transform:translateX(2px)}96%{transform:translateX(-2px)}}@keyframes consolePanic{50%{opacity:.25;box-shadow:0 0 5px rgba(255,54,54,.15)}}

/* Event impact during voting */
.vote-status span{display:inline-block;margin-left:8px;padding:3px 7px;border:1px solid rgba(255,255,255,.16);border-radius:6px;background:rgba(255,255,255,.06);color:#ffe0a5;font-size:12px;text-transform:uppercase}
.event-fit{position:relative;margin:8px 0 2px;padding:8px 9px;border:1px solid rgba(255,255,255,.1);border-radius:6px;background:rgba(255,255,255,.04);font-size:11px;font-weight:900;line-height:1.15;text-transform:uppercase;color:#dffcff}
.event-fit.good{border-color:rgba(101,255,154,.44);background:rgba(30,120,72,.16);color:#9dffbf}.event-fit.bad{border-color:rgba(255,71,71,.55);background:rgba(150,22,22,.18);color:#ffb6b6}.event-fit.mixed{border-color:rgba(255,190,80,.55);background:rgba(170,100,20,.16);color:#ffd596}.event-fit.neutral{color:#b8c4c6}
.vote-card.impact-good{border-color:rgba(101,255,154,.38)}.vote-card.impact-good:before{background:radial-gradient(circle at 50% 0,rgba(101,255,154,.14),transparent 45%)}.vote-card.impact-bad{border-color:rgba(255,71,71,.42)}.vote-card.impact-bad:before{background:radial-gradient(circle at 50% 0,rgba(255,71,71,.16),transparent 45%)}.vote-card.impact-mixed{border-color:rgba(255,190,80,.42)}.vote-card.impact-mixed:before{background:radial-gradient(circle at 50% 0,rgba(255,190,80,.14),transparent 45%)}

/* Lived-in bunker room layer */
.table-objects{position:absolute;inset:0;z-index:3;pointer-events:auto;transform:translateZ(1px)}
.table-object{position:absolute;display:block;pointer-events:auto;cursor:pointer;outline:none;filter:drop-shadow(0 8px 8px rgba(0,0,0,.45));transition:filter .18s ease,scale .18s ease}
.table-object:hover,.table-object:focus-visible,.table-object.inspecting{filter:drop-shadow(0 0 12px rgba(89,244,255,.9)) brightness(1.35);scale:1.12}
.table-object:focus-visible{box-shadow:0 0 0 2px rgba(89,244,255,.75)}
.table-object.mug{left:18%;top:39%;width:28px;height:25px;border-radius:0 0 10px 10px;background:linear-gradient(180deg,#8a8d82,#34372f);border:1px solid rgba(255,255,255,.14);transform:rotate(-9deg)}
.table-object.mug:after{content:"";position:absolute;right:-9px;top:6px;width:11px;height:10px;border:2px solid rgba(180,190,180,.72);border-left:0;border-radius:0 9px 9px 0}
.table-object.radio{right:20%;top:40%;width:58px;height:30px;border-radius:5px;background:linear-gradient(135deg,#222b2b,#070909);border:1px solid rgba(0,234,255,.22);transform:rotate(7deg)}
.table-object.radio:before{content:"";position:absolute;left:8px;top:9px;width:18px;height:10px;background:rgba(0,234,255,.22);box-shadow:0 0 12px rgba(0,234,255,.2)}.table-object.radio:after{content:"";position:absolute;right:9px;top:-16px;width:2px;height:20px;background:rgba(210,230,230,.45);transform:rotate(16deg)}
.table-object.notes{left:33%;top:58%;width:70px;height:42px;border-radius:4px;background:linear-gradient(135deg,#caa15e,#80501e);border:1px solid rgba(255,230,170,.36);transform:rotate(12deg)}
.table-object.notes:before{content:"";position:absolute;left:9px;right:9px;top:12px;height:1px;background:rgba(55,20,6,.35);box-shadow:0 8px 0 rgba(55,20,6,.28),0 16px 0 rgba(55,20,6,.22)}
.table-object.ration{right:34%;top:61%;width:64px;height:28px;border-radius:6px;background:linear-gradient(135deg,#6d7648,#2b311b);border:1px solid rgba(190,220,120,.18);transform:rotate(-11deg)}
.table-object.ration:before{content:"R-7";position:absolute;left:12px;top:8px;color:rgba(230,255,180,.62);font-size:10px;font-weight:900;letter-spacing:1px}.table-object.tool{left:46%;top:32%;width:82px;height:9px;border-radius:8px;background:linear-gradient(90deg,#171717,#777 38%,#252525 70%);transform:rotate(-5deg);opacity:.72}.table-object.tool:after{content:"";position:absolute;right:-9px;top:-5px;width:18px;height:18px;border-radius:50%;border:4px solid rgba(150,150,135,.78)}
.event-layer{position:absolute;inset:0;z-index:4;pointer-events:none;overflow:hidden}.spark,.steam,.alarm-sweep{position:absolute;display:block;opacity:0}.spark{width:3px;height:18px;background:#ffef9a;box-shadow:0 0 12px #ff5b35;border-radius:2px}.spark.s1{right:28%;top:35%}.spark.s2{left:23%;top:37%}.spark.s3{right:44%;top:28%}.steam{width:120px;height:90px;border-radius:50%;background:radial-gradient(circle,rgba(180,245,255,.18),transparent 64%);filter:blur(5px)}.steam.st1{left:45%;top:17%}.steam.st2{right:18%;top:35%}.alarm-sweep{left:-20%;top:0;width:28%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,40,35,.08),transparent);transform:skewX(-15deg)}
.scene.event-generator .spark.s1,.scene.event-generator .spark.s2,.scene.event-sabotage .spark.s1,.scene.event-sabotage .spark.s3{animation:sparkBurst 1.15s infinite}.scene.event-generator .table-object.radio:before,.scene.event-sabotage .table-object.radio:before{animation:consolePanic .65s infinite}.scene.event-oxygen .steam,.scene.event-radiation .steam{animation:steamDrift 3.4s ease-in-out infinite}.scene.event-oxygen .vent{border-color:rgba(255,80,80,.26);box-shadow:0 12px 22px rgba(0,0,0,.55),0 0 22px rgba(255,70,70,.12),inset 0 0 18px rgba(0,0,0,.75)}.scene.event-blast .alarm-sweep,.scene.event-sabotage .alarm-sweep{animation:alarmSweep 3.2s ease-in-out infinite}.scene.event-radiation .event-layer:after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,rgba(100,255,90,.025) 0 2px,transparent 2px 14px);opacity:.55}.scene.event-rations .table-object.ration{box-shadow:0 0 22px rgba(255,205,80,.18);filter:drop-shadow(0 10px 10px rgba(0,0,0,.48)) brightness(1.16)}
.scene.first-person .table-objects{transform:scale(.82);transform-origin:center center;opacity:.9}.scene.first-person .event-layer{z-index:5}.scene.first-person .spark.s1{right:25%;top:34%}.scene.first-person .spark.s2{left:24%;top:34%}.scene.first-person .steam.st1{left:45%;top:15%}.scene.first-person .steam.st2{right:20%;top:31%}
@keyframes sparkBurst{0%,70%,100%{opacity:0;transform:translateY(0) scaleY(.4)}8%{opacity:1;transform:translateY(8px) scaleY(1)}18%{opacity:.35;transform:translateY(22px) scaleY(.6)}}
@keyframes steamDrift{0%{opacity:0;transform:translateY(26px) scale(.7)}30%{opacity:.7}100%{opacity:0;transform:translateY(-44px) scale(1.35)}}
@keyframes alarmSweep{0%,42%,100%{opacity:0;transform:translateX(-15vw) skewX(-15deg)}55%{opacity:1}82%{opacity:0;transform:translateX(150vw) skewX(-15deg)}}
@media(max-width:820px){.table-object{transform:scale(.78)}.event-layer{opacity:.72}.table-object.mug,.table-object.tool{display:none}}

/* Let room props receive input through the full-screen character layer. */
.characters{pointer-events:none}
.characters .char{pointer-events:auto}

/* Seated human models */
.char{width:112px;height:218px;overflow:visible;--cloth:#263a3a;--cloth-dark:#0b1515;--skin:#9d7a65;--skin-dark:#4c332a;--hair:#241a17;--chair:#24292a}
.char.pos1,.char.pos5{--cloth:#3a3530;--cloth-dark:#17120f;--skin:#a77b61;--hair:#171310}
.char.pos2,.char.pos6{--cloth:#29343f;--cloth-dark:#10151d;--skin:#8c6857;--hair:#32221a}
.char.pos3,.char.pos7{--cloth:#39312d;--cloth-dark:#18110f;--skin:#b08368;--hair:#151313}
.char .person{position:absolute;inset:0;z-index:2;animation:personBreath 4.8s ease-in-out infinite;transform-origin:50% 112px}
.char:nth-child(even) .person{animation-delay:-2.1s}.char:nth-child(3n) .person{animation-delay:-3.4s}
.char .chair{position:absolute;z-index:0;left:19px;top:69px;width:74px;height:129px;filter:drop-shadow(0 14px 10px rgba(0,0,0,.65))}
.char .chair-back{position:absolute;left:8px;top:0;width:58px;height:82px;border:3px solid #343b3c;border-radius:12px 12px 6px 6px;background:linear-gradient(90deg,#15191a,var(--chair),#0a0d0d);box-shadow:inset 0 0 18px rgba(0,0,0,.75)}
.char .chair-seat{position:absolute;left:3px;top:79px;width:68px;height:17px;border-radius:5px 5px 12px 12px;background:linear-gradient(180deg,#3a3f40,#111516);border:2px solid #282e2f}
.char .chair-leg{position:absolute;top:92px;width:7px;height:42px;border-radius:4px;background:linear-gradient(90deg,#353b3c,#111)}
.char .chair-leg.left{left:11px;transform:rotate(6deg)}.char .chair-leg.right{right:11px;transform:rotate(-6deg)}
.char .body{z-index:3;left:25px;top:62px;width:62px;height:72px;border-radius:25px 25px 14px 14px;background:linear-gradient(100deg,var(--cloth-dark),var(--cloth) 42%,#162323 100%);box-shadow:inset 9px 5px 13px rgba(255,255,255,.04),0 10px 18px rgba(0,0,0,.32)}
.char .collar{position:absolute;left:20px;top:0;width:22px;height:14px;background:var(--cloth-dark);clip-path:polygon(0 0,50% 100%,100% 0)}
.char .neck{position:absolute;z-index:2;left:46px;top:50px;width:20px;height:20px;border-radius:5px;background:linear-gradient(90deg,var(--skin-dark),var(--skin))}
.char .head{z-index:4;left:31px;top:4px;width:51px;height:58px;border-radius:46% 46% 43% 43%;background:radial-gradient(circle at 38% 28%,#c49a7e,var(--skin) 54%,var(--skin-dark));box-shadow:inset -8px -10px 14px rgba(0,0,0,.34),0 7px 10px rgba(0,0,0,.32)}
.char .hair{position:absolute;z-index:2;left:1px;right:1px;top:0;height:19px;border-radius:48% 48% 35% 20%;background:linear-gradient(135deg,#44312a,var(--hair) 65%);box-shadow:inset 0 -4px 4px rgba(0,0,0,.26)}
.char:nth-child(3n) .hair{right:7px;height:24px;border-radius:55% 35% 45% 15%}.char:nth-child(4n) .hair{height:12px;right:4px}
.char .ear{position:absolute;top:25px;width:7px;height:13px;border-radius:50%;background:var(--skin-dark)}.char .ear.left{left:-4px}.char .ear.right{right:-4px}
.char .face{position:absolute;inset:0}.char .eye{position:absolute;top:27px;width:4px;height:3px;border-radius:50%;background:#10100f;box-shadow:0 0 2px rgba(255,255,255,.45)}.char .eye.left{left:14px}.char .eye.right{right:14px}.char .nose{position:absolute;left:24px;top:31px;width:4px;height:8px;border-right:1px solid rgba(50,25,18,.42);border-bottom:1px solid rgba(50,25,18,.3);transform:skewY(-15deg)}
.char .arm{position:absolute;z-index:4;top:72px;width:22px;height:75px;border-radius:14px;background:linear-gradient(90deg,var(--cloth-dark),var(--cloth));transform-origin:50% 8px}
.char .arm.left{left:18px;transform:rotate(34deg)}.char .arm.right{right:18px;transform:rotate(-34deg)}
.char .arm .hand{position:absolute;left:2px;bottom:-5px;width:19px;height:24px;border-radius:45% 45% 50% 50%;background:linear-gradient(135deg,var(--skin),var(--skin-dark));box-shadow:none}
.char .leg{position:absolute;z-index:1;top:125px;width:28px;height:67px;border-radius:9px 9px 14px 14px;background:linear-gradient(90deg,#080d0e,var(--cloth-dark));transform-origin:50% 6px}
.char .leg.left{left:28px;transform:rotate(7deg)}.char .leg.right{right:28px;transform:rotate(-7deg)}
.char .leg i{position:absolute;left:-2px;bottom:-7px;width:34px;height:14px;border-radius:9px 13px 5px 5px;background:#080909;box-shadow:0 5px 7px rgba(0,0,0,.5)}
.char .nameplate{top:188px;left:-22px;width:156px;z-index:6}
.char:hover .person{filter:brightness(1.12)}.char.talking .person{animation:personTalk .8s ease-in-out infinite}.char.talking .arm.right{animation:talkingArm 1.1s ease-in-out infinite}
.scene.first-person .char .body{top:62px;height:72px}.scene.first-person .char .head{top:4px;width:51px;height:58px}.scene.first-person .char .nameplate{top:188px}
@keyframes personBreath{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-2px) rotate(.35deg)}}
@keyframes personTalk{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes talkingArm{0%,100%{transform:rotate(-34deg)}50%{transform:rotate(-58deg) translateY(-5px)}}

/* Bent legs and lower posture make the silhouettes read as seated. */
.char .chair{left:13px;top:54px;width:86px;height:139px}
.char .chair-back{left:4px;width:78px;height:91px}
.char .chair-seat{left:7px;top:88px;width:72px}
.char .body{top:67px;height:68px}
.char .neck{top:52px}
.char .arm{top:78px;height:64px}.char .arm.left{left:18px;transform:rotate(52deg)}.char .arm.right{right:18px;transform:rotate(-52deg)}
.char .leg{top:128px;width:48px;height:24px;border-radius:13px;background:linear-gradient(180deg,var(--cloth-dark),#070b0c);transform-origin:8px 50%}
.char .leg.left{left:18px;transform:rotate(14deg)}.char .leg.right{right:18px;transform:rotate(-14deg)}
.char .leg i{left:20px;top:12px;bottom:auto;width:18px;height:47px;border-radius:7px 7px 9px 9px;background:linear-gradient(90deg,#070b0c,var(--cloth-dark));transform:rotate(-8deg);box-shadow:none}
.char .leg.right i{left:8px;transform:rotate(8deg)}
.char .leg i:after{content:"";position:absolute;left:-3px;bottom:-7px;width:30px;height:13px;border-radius:10px 13px 5px 5px;background:#050606;box-shadow:0 5px 7px rgba(0,0,0,.55)}
.char .nameplate{top:184px}
.scene.first-person .char .body{top:67px;height:68px}.scene.first-person .char .nameplate{top:184px}

/* Voting keeps its actions on-screen while only the candidates scroll. */
#vote{padding:16px;align-items:center;overflow:hidden}
#vote .modal-card.large{display:flex;flex-direction:column;max-height:calc(100vh - 32px);min-height:0;padding:22px 26px;overflow:hidden}
#vote .modal-card.large>h1{flex:0 0 auto;margin:0 0 8px}
#vote .modal-card.large>p{flex:0 0 auto;margin:0 0 10px}
#vote .vote-status{flex:0 0 auto;margin:6px 0 10px}
.vote-progress{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}.vote-progress span{display:flex;align-items:center;gap:6px;padding:6px 8px;border:1px solid rgba(255,255,255,.1);font-size:10px;color:#8d999a}.vote-progress i{width:7px;height:7px;border-radius:50%;background:#555}.vote-progress b{color:#687577}.vote-progress .done{border-color:rgba(45,218,151,.45);color:#dbe9e8}.vote-progress .done i{background:#2dda97;box-shadow:0 0 9px #2dda97}.vote-progress .done b{color:#58d9a1}
#vote .vote-list{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;margin:0;padding:4px 6px 14px 0;scrollbar-color:rgba(0,234,255,.45) rgba(255,255,255,.05)}
#vote .modal-actions{position:relative;z-index:3;flex:0 0 auto;margin:0 -26px -22px;padding:14px 26px 18px;border-top:1px solid rgba(0,234,255,.22);background:rgba(0,8,10,.97);box-shadow:0 -16px 32px rgba(0,0,0,.7)}
#vote .modal-actions button{min-width:190px}

/* Every seat faces the center of the table. */
.scene.third-person .char.pos0{left:46%;top:28%}.scene.third-person .char.pos1{left:60%;top:33%}.scene.third-person .char.pos2{left:67%;top:43%}.scene.third-person .char.pos3{left:59%;top:53%}.scene.third-person .char.pos4{left:46%;top:56%}.scene.third-person .char.pos5{left:34%;top:53%}.scene.third-person .char.pos6{left:27%;top:43%}.scene.third-person .char.pos7{left:35%;top:33%}
.char.seat-back .face,.char.seat-back .ear{display:none}
.char.seat-back .head{background:linear-gradient(115deg,var(--hair),#33241f 58%,#160f0d);box-shadow:inset -8px -10px 14px rgba(0,0,0,.42),0 7px 10px rgba(0,0,0,.35)}
.char.seat-back .hair{inset:0;height:38px;border-radius:48% 48% 34% 34%;background:linear-gradient(135deg,#49342c,var(--hair) 68%)}
.char.seat-back .collar{transform:rotate(180deg)}
.char.seat-left .person{transform:perspective(260px) rotateY(48deg);transform-origin:50% 58%}
.char.seat-right .person{transform:perspective(260px) rotateY(-48deg);transform-origin:50% 58%}
.char.seat-left .eye.right,.char.seat-left .ear.right,.char.seat-right .eye.left,.char.seat-right .ear.left{display:none}
.char.seat-left .nose{left:12px;transform:skewY(-15deg) scaleX(-1)}.char.seat-right .nose{left:34px}
.char.seat-back .person{animation-name:personBreathBack}
.char.seat-left .person{animation-name:personBreathLeft}.char.seat-right .person{animation-name:personBreathRight}
.char.seat-back.talking .person{animation-name:personTalkBack}.char.seat-left.talking .person{animation-name:personTalkLeft}.char.seat-right.talking .person{animation-name:personTalkRight}
@keyframes personBreathBack{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
@keyframes personBreathLeft{0%,100%{transform:perspective(260px) rotateY(48deg) translateY(0)}50%{transform:perspective(260px) rotateY(48deg) translateY(-2px)}}
@keyframes personBreathRight{0%,100%{transform:perspective(260px) rotateY(-48deg) translateY(0)}50%{transform:perspective(260px) rotateY(-48deg) translateY(-2px)}}
@keyframes personTalkBack{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes personTalkLeft{0%,100%{transform:perspective(260px) rotateY(48deg) translateY(0)}50%{transform:perspective(260px) rotateY(48deg) translateY(-3px)}}
@keyframes personTalkRight{0%,100%{transform:perspective(260px) rotateY(-48deg) translateY(0)}50%{transform:perspective(260px) rotateY(-48deg) translateY(-3px)}}
@media(max-width:900px){#vote .modal-card.large{padding:18px}#vote .modal-actions{margin:0 -18px -18px;padding:12px 18px 16px}.scene.third-person .char{transform:scale(.86)}}

/* Story prologue */
.intro-modal{z-index:90;background:radial-gradient(circle at 50% 38%,rgba(145,35,24,.24),transparent 32%),linear-gradient(180deg,rgba(0,5,6,.94),rgba(10,2,2,.98))}
.intro-stage{width:min(860px,90vw);padding:42px;border-left:2px solid #ff4848;border-right:1px solid rgba(0,234,255,.3);background:linear-gradient(90deg,rgba(0,0,0,.92),rgba(3,15,17,.82));box-shadow:0 40px 110px rgba(0,0,0,.85)}
.intro-kicker{color:#ff5656;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:3px}.intro-stage h1{margin:12px 0 18px;font-size:48px}.intro-stage>p{max-width:760px;margin:0;color:#dce8e8;font-size:18px;line-height:1.55}
.intro-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;margin:30px 0;background:rgba(255,255,255,.1)}.intro-facts span{display:grid;gap:7px;padding:16px;background:#071012}.intro-facts b{color:#66eff7;font-size:11px;text-transform:uppercase}.intro-facts i{font-style:normal;font-weight:900}
.intro-actions{display:flex;gap:10px}.intro-actions button:first-child{min-width:240px;background:rgba(128,20,20,.9);border-color:#ff5050}

/* In-game chat */
.chat-panel{position:absolute;z-index:20;right:42px;bottom:24px;width:340px}.chat-toggle{display:none;width:100%}.chat-shell{border:1px solid rgba(0,234,255,.42);border-radius:8px;background:rgba(0,8,10,.94);box-shadow:0 24px 70px rgba(0,0,0,.7);overflow:hidden}.chat-head{height:46px;display:flex;align-items:center;justify-content:space-between;padding:0 12px 0 16px;border-bottom:1px solid rgba(255,255,255,.1);color:#6df2fa}.chat-head button{width:32px;height:32px;padding:0;border:0;background:transparent;font-size:22px}.chat-messages{height:210px;padding:12px;overflow-y:auto;display:grid;align-content:start;gap:9px}.chat-message{display:grid;gap:3px;padding:8px 10px;border-left:2px solid rgba(255,255,255,.18);background:rgba(255,255,255,.035)}.chat-message.mine{border-color:#39e8f2;background:rgba(0,180,205,.08)}.chat-message b{font-size:11px;color:#66eff7}.chat-message span{font-size:13px;line-height:1.3;overflow-wrap:anywhere}.chat-form{display:grid;grid-template-columns:1fr 44px;border-top:1px solid rgba(255,255,255,.1)}.chat-form input{min-width:0;height:46px;border:0;background:#040909;color:#fff;padding:0 12px;outline:none}.chat-form button{height:46px;padding:0;border:0;border-left:1px solid rgba(0,234,255,.25);border-radius:0}.chat-panel.collapsed{width:118px}.chat-panel.collapsed .chat-shell{display:none}.chat-panel.collapsed .chat-toggle{display:block;padding:11px}.chat-toggle span{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:6px;border-radius:50%;background:#e33;color:#fff;font-size:11px}

/* Settings */
.hud-right{display:flex;align-items:center;gap:14px}.hud-right button{width:34px;height:34px;padding:0;border-color:rgba(255,255,255,.15);background:transparent;font-size:18px}.settings-card{width:min(660px,92vw);max-height:90vh;overflow:auto;border:1px solid rgba(0,234,255,.42);border-radius:8px;background:#050b0c;padding:26px;box-shadow:0 40px 100px rgba(0,0,0,.8)}.settings-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid rgba(255,255,255,.1);padding-bottom:14px}.settings-head h1{margin:5px 0 0}.settings-head>button{width:38px;height:38px;padding:0;font-size:24px}.setting-row{min-height:74px;display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center;border-bottom:1px solid rgba(255,255,255,.08);padding:12px 2px}.setting-row span{display:grid;gap:5px}.setting-row small{color:#8ca0a2}.setting-row input[type="checkbox"]{width:22px;height:22px;accent-color:#23dbe5}.setting-row input[type="range"]{width:210px;accent-color:#23dbe5}.setting-row select{min-width:180px;height:42px;border:1px solid rgba(0,234,255,.38);border-radius:6px;background:#071315;color:#fff;padding:0 10px}.settings-actions{display:flex;justify-content:flex-end;padding-top:18px}.settings-actions button{min-width:180px}
@media(max-width:820px){.intro-stage{padding:24px}.intro-stage h1{font-size:34px}.intro-stage>p{font-size:15px}.intro-facts{grid-template-columns:1fr}.chat-panel{right:12px;bottom:12px;width:calc(100% - 24px)}.chat-panel.collapsed{width:110px}.setting-row{grid-template-columns:1fr}.setting-row input[type="range"],.setting-row select{width:100%}}

/* Ten distinct character archetypes; eight are drawn for each match. */
.char.model0{--cloth:#244342;--skin:#a7775f;--hair:#171311}.char.model1{--cloth:#41342f;--skin:#bd8b6e;--hair:#3b241b}.char.model2{--cloth:#27384a;--skin:#825c4e;--hair:#101010}.char.model3{--cloth:#4a3033;--skin:#c39474;--hair:#5b3927}.char.model4{--cloth:#39442b;--skin:#9a6c57;--hair:#241713}.char.model5{--cloth:#30323c;--skin:#d0a184;--hair:#201b1a}.char.model6{--cloth:#4a402e;--skin:#704b3e;--hair:#0d0b0a}.char.model7{--cloth:#274349;--skin:#b17d65;--hair:#56372b}.char.model8{--cloth:#46303f;--skin:#ca987a;--hair:#171314}.char.model9{--cloth:#344533;--skin:#8f6250;--hair:#342218}
.char.model1 .body,.char.model6 .body{left:21px;width:70px}.char.model1 .arm.left,.char.model6 .arm.left{left:13px}.char.model1 .arm.right,.char.model6 .arm.right{right:13px}
.char.model2 .person,.char.model8 .person{scale:.92}.char.model4 .person{scale:1.06}.char.model5 .person{scale:.97 1.06}
.char.model3 .head,.char.model8 .head{border-radius:50% 50% 43% 43%}.char.model6 .head{width:55px;left:29px;border-radius:42%}.char.model9 .head{height:62px;border-radius:48% 48% 38% 38%}
.char.model0 .hair{height:10px;right:6px}.char.model1 .hair{height:28px;border-radius:55% 45% 20% 30%}.char.model2 .hair{height:7px;opacity:.45}.char.model3 .hair{height:32px;right:-3px;border-radius:55% 55% 18% 35%}.char.model4 .hair{height:16px;clip-path:polygon(0 30%,14% 0,28% 30%,44% 0,58% 30%,74% 0,100% 28%,100% 100%,0 100%)}.char.model5 .hair{height:24px;right:10px}.char.model6 .hair{height:5px;opacity:.25}.char.model7 .hair{height:31px;left:-3px;right:-4px}.char.model8 .hair{height:36px;border-radius:55% 45% 30% 45%}.char.model9 .hair{height:20px;right:2px;clip-path:polygon(0 20%,18% 0,32% 25%,55% 0,72% 24%,100% 8%,100% 100%,0 100%)}

/* Three.js scene host and HUD cleanup */
.three-scene-host{position:absolute;inset:0;z-index:1;overflow:hidden}.three-scene-host canvas{display:block;width:100%;height:100%;outline:none}.three-labels{position:absolute;inset:0;pointer-events:none}.three-person-label{position:absolute;transform:translate(-50%,-50%);display:grid;gap:2px;min-width:100px;text-align:center;text-shadow:0 2px 7px #000;font-weight:900;pointer-events:auto;cursor:pointer}.three-person-label small{font-size:10px;color:#b9d5d7}.three-person-label.dead{opacity:.25}
.scene.three-ready .bunker-wall,.scene.three-ready>.lamp,.scene.three-ready>.floor-grid,.scene.three-ready>.room-props,.scene.three-ready>.room-details,.scene.three-ready>.characters,.scene.three-ready>.first-person-hands{display:none!important}
.scene.three-ready>.table{display:none!important}
.hud-right{min-width:330px;justify-content:flex-end}.hud-right .mic-state{position:static;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.hud-right #timerLabel{min-width:52px;text-align:right}
.hud-right .mic-state{min-width:112px;padding:8px 10px;border:1px solid rgba(255,255,255,.12);border-radius:6px;text-align:center;background:rgba(0,10,12,.72);transition:color .12s ease,background .12s ease,border-color .12s ease,box-shadow .12s ease}.hud-right .mic-state.on{color:#fff;background:#b30f16;border-color:#ff5960;box-shadow:0 0 22px rgba(255,35,45,.65);animation:micPulse .72s ease-in-out infinite alternate}@keyframes micPulse{to{box-shadow:0 0 34px rgba(255,35,45,.9);filter:brightness(1.18)}}
.scene.three-ready.first-person{transform:none!important}
.three-person-label.speaking{color:#fff;border-color:#65f5ff;background:rgba(0,70,78,.9);box-shadow:0 0 26px rgba(0,234,255,.45)}
.three-person-label.mic-live{color:#fff;border-color:#ff5960;background:rgba(130,8,12,.92);box-shadow:0 0 30px rgba(255,35,45,.62)}
.turn-banner{position:absolute;z-index:9;left:50%;top:76px;transform:translateX(-50%);display:grid;grid-template-columns:auto auto auto;align-items:center;gap:12px;max-width:calc(100vw - 760px);padding:8px 10px 8px 14px;border:1px solid rgba(0,234,255,.58);border-radius:8px;background:rgba(0,12,15,.9);box-shadow:0 14px 38px rgba(0,0,0,.62)}.turn-banner span{color:#7defff;font-size:10px;font-weight:900;text-transform:uppercase}.turn-banner b{white-space:nowrap}.turn-banner button{padding:8px 12px;font-size:11px}.three-person-label.current-speaker{border-color:#ffd16b;background:rgba(72,42,0,.9);box-shadow:0 0 30px rgba(255,190,60,.55)}@media(max-width:1100px){.turn-banner{max-width:420px;top:70px}.turn-banner span{display:none}}@media(max-width:820px){.turn-banner{left:12px;right:12px;transform:none;max-width:none;grid-template-columns:1fr auto}.turn-banner b{overflow:hidden;text-overflow:ellipsis}}
.settings-card{max-height:calc(100vh - 32px);overflow-y:auto}.setting-row input[type="number"]{width:120px;height:42px;border:1px solid rgba(0,234,255,.4);border-radius:6px;background:rgba(0,14,18,.9);color:#fff;padding:0 10px;font-weight:900;text-align:center}
.setting-inline{display:flex;align-items:center;gap:8px}.setting-inline select{max-width:250px}.setting-inline button{height:42px;padding:0 14px;white-space:nowrap}
#abilityBtn{border-color:#d9a438;color:#ffe08a;background:rgba(91,55,5,.42)}#abilityBtn:disabled{border-color:rgba(255,255,255,.12);color:#697477;background:rgba(255,255,255,.025)}
.action-card-description{display:block;margin:-2px 2px 4px;color:#9ba8aa;font-size:10px;line-height:1.35}
.menu-tabs{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:14px 0;border:1px solid rgba(0,234,255,.28)}.menu-tabs button{border:0;border-radius:0;padding:11px 8px;background:#050b0c;color:#778688;font-size:11px}.menu-tabs button+button{border-left:1px solid rgba(0,234,255,.28)}.menu-tabs button.active{background:rgba(0,126,148,.28);color:#7df4fa}.menu-tab-panel{min-height:178px}.room-create-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.room-create-options label{display:grid;gap:5px;color:#8c999a;font-size:10px;text-transform:uppercase}.room-create-options select{height:40px;border:1px solid rgba(0,234,255,.3);background:#071214;color:#fff;padding:0 9px}.public-rooms{padding-top:4px}.public-rooms-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.public-rooms-head small{display:block;margin-top:5px;color:#7f8e90}.public-rooms-head>button{width:36px;height:36px;padding:0;font-size:21px}.public-rooms>div:last-child{display:grid;gap:6px;max-height:210px;overflow:auto;margin-top:12px}.public-rooms button{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:10px;padding:10px;text-align:left}.public-rooms button b{color:#5cebf3}.public-rooms button i{font-style:normal;color:#829091}.lobby-player{grid-template-columns:1fr auto auto}.lobby-player-actions{display:flex;gap:4px}.lobby-player-actions button{width:28px;height:28px;padding:0;border-color:rgba(255,255,255,.16)}
.threat-head,.threat-meta{display:flex;align-items:center;justify-content:space-between;gap:14px}.threat-head h3{margin:0}.threat-head span{color:#ff6868;font-size:10px;font-weight:900;text-transform:uppercase}.threat-progress{height:5px;margin:13px 0 9px;background:rgba(255,255,255,.1);overflow:hidden}.threat-progress i{display:block;width:0;height:100%;background:#ff4646;transition:width .45s}.threat-meta{font-size:11px;color:#9da9aa}.threat-meta b{color:#ff7777}.event-box.resolved{border-color:#32d58a}.event-box.resolved .threat-progress i{background:#32d58a}.event-box.resolved .threat-meta b{color:#62eaaa}
.reveal-choice-card{width:min(620px,92vw)}.reveal-choice-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0}.reveal-choice-list button{min-height:82px;display:grid;gap:7px;text-align:left}.reveal-choice-list span{color:#65edf5;font-size:11px;text-transform:uppercase}.reveal-choice-list b{overflow-wrap:anywhere}@media(max-width:620px){.reveal-choice-list{grid-template-columns:1fr}}
.spectator-banner{position:absolute;z-index:18;left:50%;top:66px;transform:translateX(-50%);display:grid;gap:3px;min-width:360px;padding:10px 16px;border:1px solid #b33;background:rgba(35,4,5,.94);text-align:center}.spectator-banner b{color:#ff7777;text-transform:uppercase}.spectator-banner span{font-size:11px;color:#c8babb}.spectator-mode .side-panel{opacity:.68}.final-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;margin:18px 0;background:rgba(255,255,255,.1)}.final-metrics span{display:grid;gap:6px;padding:12px;background:#071012}.final-metrics b{color:#6eeef5;font-size:20px}.verdict-card.failed{border-color:#c33}.verdict-card.survived{border-color:#2b6}
#result.final-scene{background:rgba(0,0,0,.82)}#result.final-scene .modal-card{position:relative;z-index:2;width:min(980px,94vw);max-height:92vh;overflow:auto;background:rgba(2,8,9,.94)}.final-scene-world{display:none}.final-scene .final-scene-world{display:block;position:absolute;inset:0;background:linear-gradient(180deg,#071011,#020303 65%)}.final-door{position:absolute;left:50%;top:12%;width:340px;height:430px;transform:translateX(-50%);border:18px solid #20292a;background:#070b0c;box-shadow:0 0 80px #000}.final-door:before{content:"";position:absolute;inset:70px 25px;border:5px solid #303b3c;border-radius:50%}.final-door i{position:absolute;left:50%;top:50%;width:110px;height:14px;transform:translate(-50%,-50%);background:#394647;box-shadow:0 0 20px #2ff}.final-light{position:absolute;top:10%;width:10px;height:10px;border-radius:50%;background:#f22;box-shadow:0 0 50px 20px #a00}.final-light.left{left:20%}.final-light.right{right:20%}.final-metrics{grid-template-columns:repeat(4,1fr)}.final-roster{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.final-roster article{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:12px;border-left:2px solid #2bc;background:rgba(255,255,255,.04)}.final-roster article span,.final-roster article small{grid-column:1/-1;color:#9ba8aa}.final-report{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;margin-top:14px}.final-report span{display:flex;justify-content:space-between;padding:9px 11px;background:#081011}.final-report .ok b{color:#58df9b}.final-report .bad b{color:#ff6767}@media(max-width:700px){.final-metrics,.final-roster,.final-report{grid-template-columns:1fr 1fr}.final-door{width:240px;height:360px}}
@media(max-width:820px){.setting-inline{width:100%;display:grid;grid-template-columns:1fr auto}.setting-inline select{max-width:none}}
@media(max-width:820px){.hud-right{min-width:0;gap:8px}.hud-right .mic-state{display:none}.scene.three-ready>.table{width:460px}.three-person-label{font-size:11px}}

/* Selectable character appearance grid */
.profile-model-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:8px 0 22px}.profile-model-option{min-width:0;height:106px;padding:8px 4px;display:grid;place-items:center;align-content:center;gap:7px;border-color:rgba(255,255,255,.14);background:#071012;color:#93a6a8;font-size:9px}.profile-model-option:hover:not(:disabled){box-shadow:none}.profile-model-option.selected{border-color:#00eaff;background:rgba(0,234,255,.15);color:#fff;box-shadow:inset 0 0 18px rgba(0,234,255,.12)}.profile-model-option i{display:block;width:48px;height:64px;border-radius:24px 24px 14px 14px;background:radial-gradient(circle at 50% 26%,var(--skin,#b98368) 0 17px,transparent 18px),linear-gradient(90deg,var(--cloth,#234342),var(--cloth,#234342));position:relative}.profile-model-option i:before{content:"";position:absolute;left:9px;top:0;width:30px;height:15px;border-radius:18px 18px 5px 5px;background:var(--hair,#211714)}.profile-model-option i:after{content:"";position:absolute;left:16px;top:22px;width:16px;height:4px;border-top:2px solid var(--detail,#111);border-bottom:1px solid var(--detail,#111)}.profile-model-option.model-0{--cloth:#234342;--skin:#a77960;--hair:#1c1412}.profile-model-option.model-1{--cloth:#42342f;--skin:#be8c6f;--hair:#3b251c}.profile-model-option.model-2{--cloth:#29394a;--skin:#835d4f;--hair:#111;--detail:#536f74}.profile-model-option.model-3{--cloth:#4a3134;--skin:#c49575;--hair:#5b3927}.profile-model-option.model-4{--cloth:#39442c;--skin:#9b6d58;--hair:#241713}.profile-model-option.model-5{--cloth:#30323d;--skin:#d1a285;--hair:#201b1a}.profile-model-option.model-6{--cloth:#4a402f;--skin:#714c3f;--hair:#0e0c0b;--detail:#d6b56a}.profile-model-option.model-7{--cloth:#284349;--skin:#b27e66;--hair:#56372b}.profile-model-option.model-8{--cloth:#463140;--skin:#cb997b;--hair:#171314}.profile-model-option.model-9{--cloth:#344534;--skin:#906351;--hair:#342218}.profile-avatar.model-0{background:radial-gradient(circle at 38% 28%,#a77960 0 18%,#1c1412 19% 31%,#234342 32% 100%)}.profile-avatar.model-1{background:radial-gradient(circle at 38% 28%,#be8c6f 0 18%,#3b251c 19% 31%,#42342f 32% 100%)}.profile-avatar.model-2{background:radial-gradient(circle at 38% 28%,#835d4f 0 18%,#111 19% 31%,#29394a 32% 100%)}.profile-avatar.model-3{background:radial-gradient(circle at 38% 28%,#c49575 0 18%,#5b3927 19% 31%,#4a3134 32% 100%)}.profile-avatar.model-4{background:radial-gradient(circle at 38% 28%,#9b6d58 0 18%,#241713 19% 31%,#39442c 32% 100%)}.profile-avatar.model-5{background:radial-gradient(circle at 38% 28%,#d1a285 0 18%,#201b1a 19% 31%,#30323d 32% 100%)}.profile-avatar.model-6{background:radial-gradient(circle at 38% 28%,#714c3f 0 18%,#0e0c0b 19% 31%,#4a402f 32% 100%)}.profile-avatar.model-7{background:radial-gradient(circle at 38% 28%,#b27e66 0 18%,#56372b 19% 31%,#284349 32% 100%)}.profile-avatar.model-8{background:radial-gradient(circle at 38% 28%,#cb997b 0 18%,#171314 19% 31%,#463140 32% 100%)}.profile-avatar.model-9{background:radial-gradient(circle at 38% 28%,#906351 0 18%,#342218 19% 31%,#344534 32% 100%)}
@media(max-width:560px){.profile-model-grid{grid-template-columns:repeat(2,1fr)}.profile-model-option{height:92px}.profile-card{padding:18px}}
.hint kbd{display:inline-grid;place-items:center;min-width:21px;height:21px;margin:0 2px;border:1px solid rgba(0,234,255,.35);border-bottom-color:rgba(0,234,255,.7);border-radius:4px;background:#071416;color:#8ff7fc;font:800 10px Arial}
.connection-overlay{position:fixed;z-index:90;left:50%;top:18px;transform:translateX(-50%);width:min(620px,calc(100vw - 24px));display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;border:1px solid #e4454d;border-radius:8px;background:rgba(20,4,6,.96);box-shadow:0 18px 60px rgba(0,0,0,.72)}.connection-overlay>div:first-child{display:flex;align-items:center;gap:12px}.connection-overlay b,.connection-overlay small{display:block}.connection-overlay small{margin-top:4px;color:#c5afb1}.connection-pulse{width:12px;height:12px;border-radius:50%;background:#ff4b52;box-shadow:0 0 16px #ff3038;animation:connectionAlert .8s ease-in-out infinite alternate}.connection-actions{display:flex;gap:8px}.connection-actions button{padding:9px 12px;font-size:10px}@keyframes connectionAlert{to{opacity:.35;box-shadow:0 0 4px #ff3038}}@media(max-width:620px){.connection-overlay{top:8px;align-items:stretch;flex-direction:column}.connection-actions{justify-content:flex-end}}
.lobby-actions{grid-template-columns:1fr 1fr}.lobby-actions #leaveLobbyBtn{grid-column:1/-1}.danger-button,.leave-game-button{border-color:#b92e35!important;color:#ff9da1!important;background:rgba(91,8,12,.62)!important}.danger-button:hover:not(:disabled),.leave-game-button:hover:not(:disabled){background:rgba(170,15,24,.72)!important;box-shadow:0 0 22px rgba(255,35,45,.24)!important}.leave-confirm-card{width:min(520px,calc(100vw - 28px));min-height:0}.leave-confirm-card h1{margin:10px 0}.leave-confirm-card p{color:#aebcbe;line-height:1.5;margin:0 0 26px}.leave-confirm-card .modal-actions{justify-content:flex-end}.hud-right>.leave-game-button{width:auto;padding:0 10px;font-size:10px}

/* Touch controls use a dedicated dock instead of compressing the desktop panel. */
.mobile-controls{display:none}
.dossier-roster{display:flex;gap:6px;margin:0 0 12px;padding:2px 0 8px;overflow-x:auto;scrollbar-width:thin}.dossier-roster button{flex:0 0 auto;min-width:92px;padding:8px 10px;display:grid;gap:3px;text-align:left;border-color:rgba(255,255,255,.14);background:#071012;text-transform:none}.dossier-roster button b{font-size:11px}.dossier-roster button small{max-width:105px;overflow:hidden;color:#83a4a6;text-overflow:ellipsis;white-space:nowrap}.dossier-roster button.active{border-color:#00eaff;background:rgba(0,130,150,.24)}
@media(max-width:820px){
  body{overflow:hidden;overscroll-behavior:none}
  #game.screen.active{height:100dvh;min-height:0;overflow:hidden}
  #game .scene{height:100dvh;touch-action:none}
  .hud.top{height:58px;padding:0 10px;gap:8px;font-size:12px}
  #phaseLabel{flex:1;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}
  .hud-right{gap:6px}
  .hud-right .connection-state,.hud-right .mic-quality,.hud-right .mic-state,.hud-right #journalBtn{display:none}
  .hud-right>.leave-game-button{width:52px;padding:0;font-size:0}
  .hud-right>.leave-game-button:after{content:'Выход';font-size:9px}
  .hud-right #timerLabel{min-width:42px;font-size:12px}
  .status-strip{display:none!important}
  .camera-controls{top:68px!important;left:10px!important}
  .camera-controls button{padding:8px 10px;font-size:10px}
  .turn-banner{top:112px;left:10px;right:10px}
  .side-panel{
    position:fixed;z-index:31;left:8px;right:8px;top:auto;bottom:calc(76px + env(safe-area-inset-bottom));
    width:auto;max-height:calc(100dvh - 150px);padding:16px;overflow:auto;
    opacity:0!important;transform:translateY(calc(100% + 100px))!important;pointer-events:none;
    transition:transform .2s ease,opacity .2s ease
  }
  .side-panel.mobile-open,.first-person-ui .side-panel.mobile-open{opacity:1!important;transform:none!important;pointer-events:auto}
  .side-panel h1{font-size:19px;margin-bottom:10px}.side-panel .stat{padding:7px 0}.side-panel .hint{display:none}
  .dossier-roster{margin-left:-4px;margin-right:-4px}.dossier-roster button{min-width:108px;min-height:50px}
  .panel-actions{grid-template-columns:1fr 1fr;gap:8px}.panel-actions button{min-height:48px;padding:10px 8px;font-size:11px}
  .chat-panel,.chat-panel.collapsed{position:fixed;z-index:32;left:8px!important;right:8px!important;bottom:calc(76px + env(safe-area-inset-bottom))!important;width:auto!important;max-width:none!important}
  .chat-panel.collapsed{display:none}.chat-panel .chat-toggle{display:none}.chat-messages{height:min(34dvh,260px)}
  .mobile-controls{
    position:fixed;z-index:35;left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));
    height:60px;display:grid;grid-template-columns:1fr 1.35fr 1fr;gap:6px;padding:5px;
    border:1px solid rgba(0,234,255,.46);border-radius:8px;background:rgba(0,9,12,.96);box-shadow:0 -12px 38px rgba(0,0,0,.7)
  }
  .mobile-controls button{min-width:0;height:48px;padding:0 6px;border:0;background:rgba(0,70,80,.24);font-size:10px;touch-action:manipulation;user-select:none;-webkit-user-select:none}
  .mobile-controls .mobile-mic{border:1px solid #00eaff;background:rgba(0,110,125,.34);font-size:11px;touch-action:none}
  .mobile-controls .mobile-mic.on{border-color:#ff5960;background:#a20f16;box-shadow:0 0 24px rgba(255,35,45,.68)}
  .room-navigation{bottom:calc(78px + env(safe-area-inset-bottom));max-width:calc(100vw - 16px)}
  .room-navigation button{padding:8px 9px}
  .event-box,.room-detail-panel{display:none}
  .toast{top:66px;max-width:calc(100vw - 20px);padding:10px 14px;font-size:12px}
}
