@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600&display=swap');
:root{color-scheme:dark;font-family:'Space Grotesk',system-ui,sans-serif;color:#e7fff9;background:#030a14;--mint:#8ffbce;--aqua:#5ce9ee;--pink:#df8fff;--panel:#071b27e8}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button:focus-visible,a:focus-visible{outline:2px solid white;outline-offset:5px}button{border:1px solid #74dcd780;background:#0a2835de;min-height:44px;padding:10px 18px;border-radius:5px;box-shadow:inset 0 0 16px #4dd6b00b;transition:background .2s,border-color .2s}button:hover{background:#164455;border-color:#adffe3}a{color:inherit}.game-skip{position:fixed;top:-100px;z-index:100;background:#183443;padding:16px}.game-skip:focus{top:15px}.game-world{position:relative;width:100vw;height:100dvh;isolation:isolate;overflow:hidden;perspective:1200px}.world-plane{position:absolute;inset:-2%;transform:rotateX(var(--pitch,0deg)) rotateY(var(--yaw,0deg)) scale(1.045);transform-style:preserve-3d;transition:transform .3s ease;will-change:transform}.world-plane>img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;transition:transform 1s cubic-bezier(.2,.6,.3,1),opacity .6s;transform-origin:var(--portal-x,50%) var(--portal-y,50%)}.scene-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,#020814e8,transparent 27%,transparent 73%,#020814bd),linear-gradient(90deg,#030b1455,transparent 45%)}.portals{position:absolute;inset:0;transform:translateZ(18px)}.portal-hotspot{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);display:flex;align-items:center;gap:10px;padding:0;background:transparent;border:0;box-shadow:none;min-height:48px;white-space:nowrap}.portal-hotspot:hover{background:none}.portal-light{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;background:#092b39cc;border:1px solid #b0ffe2;border-radius:50%;color:#a8ffe7;box-shadow:0 0 15px #61edc788,inset 0 0 12px #53cbe933;font-size:20px;position:relative}.portal-light:before{content:'';position:absolute;inset:-7px;border:1px solid #7ef4cb77;border-radius:50%;animation:portalPulse 3s ease-in-out infinite}.portal-name{display:block;padding:9px 13px;background:#061c2ce8;border:1px solid #a2f3dd55;border-left:2px solid #a1f9df;border-radius:3px;font:500 12px 'Oxanium',system-ui,sans-serif;letter-spacing:.025em;text-shadow:0 1px #000;box-shadow:0 5px 20px #0004}.portal-name small{display:block;font:9px 'Space Grotesk',system-ui,sans-serif;color:#9ddfd6;letter-spacing:.12em;margin-bottom:3px}.portal-hotspot:hover .portal-light{box-shadow:0 0 30px #b2ffe6aa}.portal-hotspot:hover .portal-name{border-color:#b0ffe2}.game-header{position:fixed;inset:18px 28px auto;z-index:4;display:flex;justify-content:space-between;gap:20px;align-items:center}.game-brand{display:flex;align-items:center;gap:13px;padding:9px 16px;background:#051523e6;border-color:#7de6d955;max-width:60vw}.game-brand img{width:42px;height:48px;object-fit:contain}.game-brand span{font:600 clamp(15px,1.5vw,23px) 'Oxanium',system-ui,sans-serif;letter-spacing:.1em;text-shadow:0 0 14px #78dddb55}.game-brand small{font:8px 'Space Grotesk',system-ui,sans-serif;display:block;letter-spacing:.24em;color:#b4e8e0;margin-top:4px}.header-actions{display:flex;gap:7px}.header-actions button{font-size:11px;background:#061b2cdd}.scene-label{position:absolute;left:38px;top:122px;max-width:440px;z-index:2;pointer-events:none}.scene-label p:first-child{font:10px 'Oxanium',system-ui,sans-serif;letter-spacing:.2em;color:#a1efd7;margin:0 0 9px}.scene-label h1{font:500 clamp(27px,3vw,47px)/1.1 'Oxanium',system-ui,sans-serif;margin:0 0 9px;text-shadow:0 3px 18px #000}.scene-label p:last-child{font-size:12px;line-height:1.6;margin:0;color:#d4e7e8;text-shadow:0 2px 8px #000}.world-dock{position:fixed;z-index:5;bottom:55px;left:50%;transform:translateX(-50%);display:flex;gap:6px;padding:9px;border:1px solid #84dfd366;border-radius:9px;background:#051420ed;box-shadow:0 12px 50px #0009,0 0 25px #42dcc711;max-width:calc(100vw - 35px)}.world-dock button{background:#0c2838;border-color:#85c8d733;display:grid;place-items:center;gap:5px;min-width:92px;min-height:72px;padding:10px;font:10px 'Oxanium',system-ui,sans-serif}.world-dock button span{font-size:21px;color:#89efcd;line-height:1}.world-dock button:hover{background:#25475c;border-color:#c2ffe7}.game-footer{position:fixed;z-index:4;left:28px;right:28px;bottom:14px;display:flex;align-items:center;gap:18px;font-size:9px;color:#acc8d2}.game-footer>span{margin-right:auto;letter-spacing:.14em}.game-footer button{background:none;box-shadow:none;border:0;min-height:30px;padding:4px;font-size:10px}.game-footer a{font-size:10px;text-decoration:none}.map-toggle{position:fixed;right:28px;top:115px;z-index:6;font-size:11px;background:#071b2ce8}.world-map-panel{position:fixed;z-index:6;right:28px;top:170px;width:220px;padding:10px;background:#051725f5;border:1px solid #91e6d960;border-radius:7px}.world-map-panel button{display:block;text-align:left;width:100%;margin:5px 0;font-size:12px}.world-map-panel button[aria-current=true]{border-color:#9effe2;background:#1a4850}.world-toast{position:fixed;z-index:8;left:50%;top:45%;transform:translate(-50%,-50%);font:14px 'Oxanium',system-ui,sans-serif;text-align:center;background:#081e30e8;border:1px solid #adffe077;padding:15px 24px;border-radius:5px;pointer-events:none}.world-toast:empty{display:none}.traveling .world-plane>img{transform:scale(2.1);opacity:.25}.traveling .portals{opacity:0;pointer-events:none}.portal-panel-dialog{position:fixed;inset:3vh 3vw;width:94vw;height:94dvh;max-width:1500px;max-height:94dvh;margin:auto;padding:0;background:#07101f;border:1px solid #87eed98c;border-radius:10px;overflow:hidden;box-shadow:0 20px 100px #000a}.portal-panel-dialog::backdrop,.game-help::backdrop{background:#020611bb;backdrop-filter:blur(5px)}.portal-panel-dialog>header{height:82px;padding:14px 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #8ad9d344;gap:15px;background:#091c2a}.panel-eyebrow{font-size:8px;letter-spacing:.2em;color:#9debd7;margin:0 0 5px}.portal-panel-dialog h2{font:500 22px 'Oxanium',system-ui,sans-serif;margin:0}.portal-panel-dialog header button{font-size:11px}.portal-panel-dialog iframe{border:0;width:100%;height:calc(100% - 116px);background:#080b17}.panel-fallback{height:34px;margin:0;padding:9px 20px;font-size:10px;background:#081a2b}#panelLoading{position:absolute;top:110px;left:25px;font-size:13px;pointer-events:none}.game-help{padding:30px;background:#0b1e2e;color:#dff5f4;border:1px solid #a9ecd377;border-radius:8px;max-width:450px;width:calc(100vw - 40px)}.game-help h2{font:500 27px 'Oxanium',system-ui,sans-serif}.game-help p{font-size:14px;line-height:1.8;color:#b7d3df}.game-help button{margin-top:12px}.paused *{animation:none!important}.paused .world-plane{transform:scale(1.045)!important}.quiet-ui .game-footer{opacity:.8}@keyframes portalPulse{50%{transform:scale(1.17);opacity:.35}}
@media(max-width:760px){.game-header{inset:12px 12px auto;gap:8px;align-items:start}.game-brand{padding:7px 9px;gap:7px;max-width:70vw}.game-brand img{width:28px;height:34px}.game-brand span{font-size:14px;letter-spacing:.05em}.game-brand small{font-size:6px;letter-spacing:.1em}.header-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:4px}.header-actions button{font-size:9px;padding:5px 8px;min-height:30px}.header-actions #soundGame{font-size:8px}.scene-label{left:20px;top:101px;max-width:70vw}.scene-label h1{font-size:25px}.scene-label p:first-child{font-size:8px}.scene-label p:last-child{font-size:10px}.map-toggle{right:14px;top:156px;font-size:9px;min-height:35px;padding:7px 12px}.world-map-panel{right:14px;top:200px;width:180px}.portal-light{width:33px;height:33px;font-size:17px}.portal-light:before{inset:-5px}.portal-hotspot{gap:6px;min-height:44px}.portal-name{font-size:10px;padding:7px 9px}.portal-name small{font-size:7px;letter-spacing:.08em}.world-dock{bottom:calc(44px + env(safe-area-inset-bottom));width:calc(100vw - 18px);max-width:none;padding:6px;gap:4px;display:grid;grid-template-columns:repeat(4,1fr)}.world-dock button{min-width:0;min-height:53px;font-size:8px;padding:6px;gap:3px}.world-dock button span{font-size:17px}.world-dock button:last-child{grid-column:span 2}.game-footer{bottom:calc(6px + env(safe-area-inset-bottom));left:12px;right:12px;gap:12px}.game-footer>span{display:none}.game-footer button,.game-footer a{font-size:8px;min-height:26px}.portal-panel-dialog{inset:0;width:100vw;height:100dvh;max-height:none;border-radius:0;border:0}.portal-panel-dialog>header{height:76px;padding:12px 16px}.portal-panel-dialog h2{font-size:18px}.portal-panel-dialog iframe{height:calc(100% - 110px)}.portal-panel-dialog header button{padding:9px 12px;font-size:10px}.world-toast{font-size:12px;max-width:85vw;width:max-content}.world-plane>img{object-position:center}.portal-hotspot.edge-left{flex-direction:row-reverse}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}.world-plane{transform:scale(1.045)!important}.traveling .world-plane>img{transform:none;opacity:1}}

.world-dock .dock-contact{background:#12353e;border:1px solid #85c8d755;border-radius:5px;display:grid;place-items:center;gap:5px;min-width:92px;min-height:72px;padding:10px;font:10px 'Oxanium',system-ui,sans-serif;text-decoration:none;text-align:center}.world-dock .dock-contact span{font-size:21px;color:#89efcd;line-height:1}.world-dock .dock-contact:hover{background:#25475c;border-color:#c2ffe7}.panel-contact{height:44px;display:flex;align-items:center;gap:22px;padding:8px 22px;background:#0d2a32;border-bottom:1px solid #8ad9d333}.panel-contact a{font-size:11px;text-decoration:none;color:#a7f4d5}.portal-panel-dialog iframe{height:calc(100% - 160px)}
@media(min-width:761px) and (max-width:1050px){.world-dock button,.world-dock .dock-contact{min-width:78px;font-size:9px}}
@media(max-width:760px){.world-dock .dock-contact{min-width:0;min-height:53px;padding:6px;font-size:8px;gap:3px}.world-dock .dock-contact span{font-size:17px}.world-dock button:last-child{grid-column:auto}.panel-contact{padding:8px 15px;gap:15px}.panel-contact a{font-size:9px}.portal-panel-dialog iframe{height:calc(100% - 154px)}}

/* Give the creator's name priority over scene labels and secondary controls. */
.game-brand{padding:13px 23px 13px 15px;gap:16px;max-width:72vw;background:#051523f2;border-color:#a1f3df99;box-shadow:0 0 25px #62decc1c,inset 0 1px #b9fff02b}.game-brand img{width:62px;height:68px}.game-brand span{font-size:clamp(26px,2.9vw,42px);font-weight:700;letter-spacing:.07em;line-height:1.1;color:#dbfff5;text-shadow:0 0 20px #70ddcd55}.game-brand small{font-size:9px;letter-spacing:.28em;margin-top:8px;color:#a4e6dd}.scene-label{top:155px}.scene-label h1{font-size:clamp(23px,2.6vw,36px)}.map-toggle{top:145px}
@media(max-width:760px){.game-header{inset:10px 10px auto}.game-brand{max-width:calc(100vw - 112px);padding:10px 11px;gap:8px}.game-brand img{width:36px;height:43px}.game-brand span{font-size:clamp(17px,4.5vw,23px);letter-spacing:.025em}.game-brand small{font-size:6px;letter-spacing:.08em;margin-top:5px}.scene-label{top:112px}.scene-label h1{font-size:22px}.map-toggle{top:168px}}

.header-actions a{display:flex;align-items:center;justify-content:center;font-size:11px;padding:10px!important;background:#061b2cdd;border:1px solid #74dcd780;border-radius:5px;text-decoration:none;color:#f0dcaa}.creator-links{font-weight:700}@media(max-width:760px){.header-actions a{font-size:9px;padding:5px!important;min-height:30px}.header-actions #shareGame,.header-actions #soundGame{display:none}.scene-label{top:125px}}
