.world-room{position:relative;height:100dvh;overflow:hidden;color:#edf7ff;background:#030b17;font-family:Manrope,Arial,sans-serif}
.world-backdrop{position:absolute;inset:0;background:linear-gradient(0deg,#020b18dd,transparent 50%),var(--world-scene) center/cover no-repeat}
.world-hud{position:absolute;z-index:3;inset:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:20px 90px 20px 28px;background:linear-gradient(#020b18f5,#020b18c9);border-bottom:1px solid #59758c}
.world-hud p,.world-kicker{font:700 12px 'DM Mono',monospace;color:var(--world);letter-spacing:.12em;margin:0 0 8px}.world-hud h1{font:800 clamp(28px,3.5vw,52px)/1 'Barlow Condensed',Arial;margin:0}.world-clock{border:1px solid #536d83;background:#061626;padding:10px 20px}.world-clock small{display:block;font-size:11px;color:#b6cbda}.world-clock strong{font:800 32px 'DM Mono',monospace;color:var(--world)}
.world-objective{position:absolute;top:132px;left:28px;width:290px;padding:18px;border-left:4px solid var(--world);background:#061626ed;border-radius:0 16px 16px 0}.world-objective small{color:var(--world);font-weight:800}.world-objective p{font-size:15px;line-height:1.5;margin:8px 0 16px}.world-objective>div{height:4px;background:#344757}.world-progress{display:block;height:100%;background:var(--world);transition:width .4s}
.world-machine{position:absolute;left:50%;top:40%;transform:translate(-50%,-50%);display:grid;justify-items:center;padding:20px;min-width:180px;background:#041322d9;border:1px solid var(--world);border-radius:50% 50% 18px 18px;box-shadow:0 0 30px #0008}.world-machine>span{font-size:54px;color:var(--world)}.world-machine strong{font-size:13px}.world-machine small{font-size:12px;margin:6px}.world-machine.powered{box-shadow:0 0 70px var(--world)}.world-machine.powered>span{animation:worldSpin 16s linear infinite}
.world-player{position:absolute;left:23%;bottom:16%;height:34%;width:170px;text-align:center}.world-player canvas{height:100%;width:100%;object-fit:contain}.world-player strong{display:block;font-size:12px;background:#041322d9;padding:7px;border-bottom:2px solid var(--world)}
.world-next{position:absolute;left:50%;bottom:6%;transform:translateX(-50%);padding:20px 28px;border:2px solid white;border-radius:14px;background:var(--world);color:#03101a;font-size:16px;font-weight:900;box-shadow:0 8px 40px #0009;cursor:pointer;min-height:52px}
.world-team{position:absolute;right:24px;top:132px;display:grid;gap:6px;max-height:28%;overflow:auto}.world-team span{background:#061626ed;padding:8px 12px;border:1px solid #49677d;border-radius:8px;font-size:12px}.world-team .ready{border-color:var(--world)}
.world-task{position:absolute;z-index:20;top:122px;right:24px;bottom:20px;width:min(620px,57%);padding:28px;overflow:auto;border:1px solid #7995ab;border-radius:20px;background:#061626fa;box-shadow:0 20px 90px #000b;animation:worldPanel .25s ease-out}.world-task[hidden]{display:none}.world-task h2{font:800 clamp(26px,3vw,42px)/1.1 'Barlow Condensed',Arial;margin:10px 35px 14px 0}.world-task>p:not(.world-kicker){font-size:15px;line-height:1.55;color:#e2edf6}.world-close{position:absolute;right:15px;top:15px;width:44px;height:44px;background:#16344a;color:white;border:1px solid #7894a8;border-radius:10px;font-size:28px;cursor:pointer}
.world-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}.world-choices button,.world-secondary{padding:14px;min-height:48px;border:1px solid #63859f;border-radius:12px;background:#17374e;color:white;font:700 14px/1.4 Manrope,Arial;cursor:pointer}.world-choices button:hover,.world-choices button:focus-visible{border-color:var(--world);background:#28546c;outline:2px solid var(--world)}.world-hint{padding:10px 0;background:none;color:#bed8ec;border:0;border-bottom:1px dashed #69869b;cursor:pointer}.world-feedback{min-height:24px;color:var(--world)!important}.world-small{font-size:12px!important}.world-task-icon{font-size:60px;text-align:center;color:var(--world)}
.world-sequence{display:flex;gap:8px;justify-content:center;align-items:center;margin:20px 0}.world-sequence span{display:grid;place-items:center;width:65px;height:65px;background:#143048;border:2px solid #65869f;border-radius:12px;font-size:26px}.world-sequence span.done{background:var(--world);color:#03111a;border-color:white}.world-sequence i{color:var(--world)}
.world-assembly{position:relative;height:150px;display:flex;align-items:center;justify-content:space-evenly;margin:10px;background:radial-gradient(ellipse,#193a51,transparent 70%)}.world-piece,.world-socket{position:relative;width:110px;height:110px;display:grid;place-items:center;border:4px solid var(--world);border-radius:25%;font-size:55px;color:var(--world);background:#173a4b;transition:transform .35s;box-shadow:inset 0 0 25px #0009}.world-piece b{position:absolute;top:-12px;right:8px;font-size:30px;color:white}.world-socket{border-style:dashed;background:#020b18;color:#809cad}
.world-breath,.world-dial{width:130px;height:130px;display:grid;place-items:center;margin:18px auto;border:3px solid var(--world);border-radius:50%;box-shadow:0 0 25px color-mix(in srgb,var(--world) 35%,transparent);color:var(--world)}.world-breath.running{animation:worldBreath 4s ease-in-out 3}.world-dial span{font-size:64px}.world-dial.day{background:radial-gradient(#f6bb3544,transparent)}.world-dial.night{background:radial-gradient(#7777ff55,transparent)}
.world-message{display:grid;text-align:center;gap:10px;padding:18px;margin:16px 0;border:1px solid var(--world);border-radius:12px;background:#082334}.world-message>span{font-size:52px;color:var(--world)}.world-message small{font-size:11px;color:#bbcfdf}.world-valve{position:relative;overflow:hidden;height:90px;border:3px solid #8ba8ba;border-radius:45px;margin:20px 0;display:grid;place-items:center}.world-valve i{position:absolute;inset:0;background:linear-gradient(90deg,var(--world),transparent);animation:worldPressure 4s ease-in-out infinite}.world-valve span{z-index:1;font-weight:900}.world-earned{font-size:90px;color:var(--world);text-align:center;text-shadow:0 0 30px var(--world)}
.world-loading{display:none;position:absolute;z-index:40;bottom:10px;right:30px;background:#071827;border:1px solid var(--world);padding:12px;font-size:12px}.world-busy .world-loading{display:block}.world-busy .world-choices{pointer-events:none;opacity:.6}
@keyframes worldSpin{to{rotate:360deg}}@keyframes worldBreath{50%{scale:.8;opacity:.6}}@keyframes worldPressure{50%{translate:-60% 0}}@keyframes worldPanel{from{opacity:0;translate:20px 0}to{opacity:1;translate:0 0}}
@media(max-height:600px){.world-hud{padding:8px 65px 8px 14px}.world-hud h1{font-size:26px}.world-hud p{font-size:10px}.world-clock{padding:5px 10px}.world-clock strong{font-size:25px}.world-objective{top:90px;left:14px;width:220px;padding:12px}.world-objective p{font-size:12px}.world-team{top:90px;right:14px}.world-machine{top:53%;padding:10px;min-width:130px}.world-machine>span{font-size:32px}.world-machine strong{font-size:11px}.world-player{height:33%;width:100px;left:23%;bottom:20%}.world-next{bottom:5%;padding:12px 18px;font-size:13px}.world-task{top:80px;bottom:10px;right:12px;padding:18px;width:62%}.world-task h2{font-size:28px}.world-task>p:not(.world-kicker){font-size:13px}.world-sequence span{width:44px;height:44px;font-size:20px}.world-choices button{min-height:44px;padding:10px;font-size:12px}.world-breath,.world-dial{width:80px;height:80px;margin:12px auto}.world-dial span{font-size:45px}.world-assembly{height:105px}.world-piece,.world-socket{width:80px;height:80px;font-size:38px}}
@media(prefers-reduced-motion:reduce){.world-room *{animation:none!important;transition:none!important}}
.test-world-picker{height:100dvh;padding:5vh 4vw;background:#04101d;color:white;display:flex;flex-direction:column;justify-content:center;gap:16px}.test-world-picker h1{font-size:clamp(28px,5vw,64px);margin:0}.test-world-picker>div{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;min-height:0;height:58vh}.test-world-picker button{background-size:cover;background-position:center;border:1px solid #46dfff;color:white;display:flex;flex-direction:column;justify-content:flex-end;align-items:start;padding:24px;gap:12px;text-align:left}.test-world-picker strong{font-size:clamp(18px,2.4vw,36px)}.test-world-picker p{margin:0;font-size:14px}@media(max-height:500px){.test-world-picker{padding:16px;gap:8px}.test-world-picker button{padding:12px}.test-world-picker>div{height:62vh}.test-world-picker p{font-size:11px}}
.mission-stars{position:absolute;left:20px;top:90px;z-index:5;padding:12px 16px;background:#041322ee;border:1px solid #66d9f2;color:#fff;font-size:12px;max-width:75%;border-radius:10px}
.world-room .world-task{backdrop-filter:blur(14px)}
@media(max-height:450px){.world-task{padding:12px 16px}.world-task h2{font-size:22px;margin:4px 38px 5px 0}.world-task>p:not(.world-kicker){margin:5px 0;font-size:12px;line-height:1.35}.world-kicker{font-size:9px;margin:0}.world-task-icon{font-size:30px}.world-breath,.world-dial{width:48px;height:48px;margin:5px auto}.world-dial span{font-size:30px}.world-breath span{font-size:9px}.world-choices{margin-top:8px;gap:6px;grid-template-columns:repeat(auto-fit,minmax(125px,1fr))}.world-choices button{font-size:11px;padding:6px;min-height:44px}.world-feedback{min-height:14px}.world-hint{padding:4px 0;font-size:10px}.world-sequence{margin:8px 0}.world-assembly{height:70px;gap:20px}.world-piece,.world-socket{width:60px;height:60px;font-size:28px}.world-secondary{padding:6px;min-height:32px;font-size:11px}.world-message{padding:8px;margin:6px 0}.world-message>span{font-size:28px}.world-earned{font-size:40px}.world-valve{height:55px;margin:8px 0}}
@media(max-height:450px){.world-task:has(.world-sequence) .world-choices{grid-template-columns:repeat(4,1fr)}.world-task:has(.world-message) .world-choices{grid-template-columns:repeat(3,1fr)}.world-task:has(.world-assembly) .world-choices{margin-top:4px}}
.test-world-picker{height:calc(100dvh - 72px);padding-block:2vh}.test-world-picker>div{height:auto;flex:1;min-height:0}.test-world-picker button{overflow:hidden}@media(max-height:450px){.test-world-picker{height:calc(100dvh - 56px);padding:8px 16px}.test-world-picker h1{font-size:25px}.test-world-picker>div{min-height:130px}.test-world-picker button{gap:5px;padding:10px}}
