/* Theme and shared assets */
:root{color-scheme:light;--surface:#fff;--canvas:#fffcf6;--surface-soft:#fbf7ff;--border:#e7dfe9;--text:#382c45;--text-muted:#8c799a}html[data-theme=dark]{color-scheme:dark;--surface:#211d2c;--canvas:#15121d;--surface-soft:#2b2439;--border:#40354f;--text:#f4edf9;--text-muted:#b8a9c8;--ink:#f4edf9;--line:#40354f}.theme-toggle{font-size:11px;white-space:nowrap;flex-shrink:0}.whatsnew{margin-left:auto}header{gap:12px}.account-button{margin-left:0}.theme-toggle{padding:9px 12px}.platform-assets{margin:25px 0 35px;padding-bottom:28px;border-bottom:1px solid var(--border)}.library-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.library-heading h2{font-size:27px;margin:8px 0}.platform-stamp{font-size:10px;font-weight:900;white-space:nowrap;background:#fff0b6;border:1px solid #f2d470;border-radius:20px;padding:8px 12px;color:#8c6719}.platform-assets .template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.platform-assets .card-image{height:210px}.card-image>img{height:100%;width:100%;object-fit:cover;display:block}.panorama-badge{background:#ede0ff;color:#6f4197}.asset-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.asset-actions button{font-size:11px;padding:9px 12px}.asset-preview-dialog{max-width:1080px}.default-preview{position:relative;aspect-ratio:2/1;border-radius:14px;overflow:hidden;background:#16131d;min-height:250px}.default-preview>img{display:block;width:100%;height:100%;object-fit:contain}.media-picker{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-height:450px;overflow:auto}.media-choice{padding:8px;display:flex;flex-direction:column;gap:6px;text-align:left;overflow:hidden}.media-choice img{height:100px;width:100%;object-fit:cover;border-radius:7px}.media-choice strong{font-size:12px}.media-choice small{font-size:9px;color:var(--text-muted)}.panorama-stage{position:relative;isolation:isolate;overflow:hidden;min-height:280px;background:#17131f!important}.panorama-viewport{position:absolute;inset:0;min-width:0;min-height:0}.escape-panorama-hotspot{width:36px!important;height:36px!important;border:2px solid #ffe29a;border-radius:50%;display:grid;place-items:center;font-size:22px;font-family:Nunito,sans-serif;font-weight:900;line-height:1;background:#7950a8d9;color:white;box-shadow:0 0 0 5px #ffe29a26;cursor:pointer;text-shadow:none}.escape-panorama-hotspot:hover,.escape-panorama-hotspot:focus-visible{background:#a272d0;outline:3px solid #ffcc42;outline-offset:3px}.pnlm-hotspot-base.escape-panorama-hotspot{margin-left:-18px;margin-top:-18px}.pnlm-load-box{font-family:Nunito,sans-serif;border-radius:14px;background:#20172ee6;color:#f8ebff}.pnlm-load-box p{color:#f8ebff!important}.pnlm-controls{border-radius:9px;overflow:hidden;box-shadow:0 3px 12px #0004}.panorama-editor-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:12px}.panorama-editor-tools button{font-size:10px;padding:9px 12px}.panorama-editor-tools span{font-size:10px;color:var(--text-muted)}.placing-hotspot .pnlm-grab,.placing-hotspot .pnlm-grabbing{cursor:crosshair!important}.panorama-player-hint{font-size:10px;text-align:center;padding:10px 15px;color:#c7b8db;background:#241a32}.game-surface{background:#30213d;color:white;min-width:0}.game-surface:fullscreen{height:100dvh;width:100vw;display:flex;flex-direction:column;overflow:auto}.game-surface:fullscreen>.stage{flex:1;min-height:200px;aspect-ratio:auto;width:100%;border-radius:0}.game-surface:fullscreen>.game-header,.game-surface:fullscreen>.inventory{flex-shrink:0}.panorama-error{display:grid;place-items:center;padding:30px;text-align:center;font-size:13px;color:white}.game #game-content:not(:empty){padding-top:15px!important}.game #game-content input{color:#2d2239;background:white}.game .stage.panorama-stage{border-radius:0}.game{max-width:1100px!important;width:min(1100px,calc(100% - 24px))}.game .stage{aspect-ratio:16/9}.panorama-viewport:focus-visible{outline:3px solid #ffca40;outline-offset:-3px}
html[data-theme=dark] body{background:var(--canvas);color:var(--text)}html[data-theme=dark] aside{background:#1c1826;border-color:#342b42}html[data-theme=dark] .brand{background:white;border-radius:12px;padding:9px;width:174px}html[data-theme=dark] header{background:#191520;border-color:var(--border);color:#9e8caf}html[data-theme=dark] header strong{color:#c3b1d3}html[data-theme=dark] .workspace{background:#292135;border-color:var(--border);color:#d8c7e8}html[data-theme=dark] .workspace small,html[data-theme=dark] .profile small{color:#a795ba}html[data-theme=dark] .avatar{background:#453252;border-color:#604670;color:#d6b9ee}html[data-theme=dark] .nav-label{color:#8d789d}html[data-theme=dark] nav button{color:#aa98bc}html[data-theme=dark] nav button.active{background:#3f321d;border-color:#7b5c25;color:#ffdb7c;box-shadow:0 3px 0 #09060e}html[data-theme=dark] nav em{background:#63491c;color:#ffe090}html[data-theme=dark] .new{background:#3e301d;color:#eac473}html[data-theme=dark] .idea{background:#2b2139;border-color:#6a4e82}html[data-theme=dark] .idea strong{color:#d4b5ef}html[data-theme=dark] .idea p{color:#aa93bd}html[data-theme=dark] .idea button,html[data-theme=dark] .idea>span{color:#c69be8}html[data-theme=dark] .help{color:#a996b9}html[data-theme=dark] .profile{border-color:var(--border);color:#d4c5e2}html[data-theme=dark] h1{color:#f7eefc}html[data-theme=dark] .heading p{color:#a999ba}html[data-theme=dark] .eyebrow{color:#cfaa62}html[data-theme=dark] .hero{background:#30223f;border-color:#57416d;box-shadow:0 5px 0 #100c17}html[data-theme=dark] .hero h2{color:#f0e1fc}html[data-theme=dark] .hero h2 em{color:#c79deb}html[data-theme=dark] .hero p{color:#bb9dce}html[data-theme=dark] .pill{background:#483520;border-color:#775623;color:#ffda89}html[data-theme=dark] .hero-copy button{background:#493158;color:#f4e1ff;border-color:#76548c;box-shadow:0 3px 0 #160e22}html[data-theme=dark] .hero-art{background:radial-gradient(ellipse at 55% 70%,#513668,transparent 65%)}html[data-theme=dark] .orbit{border-color:#4c355f}html[data-theme=dark] .orbit.two{border-color:#49315d}html[data-theme=dark] .hero:after{border-color:#634578}html[data-theme=dark] .float-tag{background:#493554;border-color:#846197;color:#f5dc9f;box-shadow:0 4px 0 #211429}html[data-theme=dark] .tag2{color:#e1bdf9}html[data-theme=dark] .door{box-shadow:9px 6px 0 #7c559e,17px 14px 0 #432956}html[data-theme=dark] .step{background:#7f5c9e;box-shadow:0 6px 0 #382047;border-color:#9a76b5}html[data-theme=dark] .step.s2{background:#9b77b9;border-color:#b191cb}html[data-theme=dark] .step.s3{background:#b99bd0;border-color:#cdb2e0}html[data-theme=dark] .tabs button{color:#a18db2}html[data-theme=dark] .tabs .selected{color:#e0b9fa;border-color:#b186d0}html[data-theme=dark] .tabs span{background:#35283f;color:#bc99d1}html[data-theme=dark] .tabs .selected span{background:#57421c;color:#ffdb80}html[data-theme=dark] .search,html[data-theme=dark] .tools select,html[data-theme=dark] .tools>button{background:#231c2e;border-color:var(--border);color:#bba5ca}html[data-theme=dark] .search input{color:#e4d6ee}html[data-theme=dark] .search input::placeholder{color:#a28cb2}html[data-theme=dark] .card{background:var(--surface);border-color:var(--border);box-shadow:0 4px 0 #0d0913}html[data-theme=dark] .card:hover{box-shadow:0 9px 0 #0d0913}html[data-theme=dark] .card h3{color:#e4d0f1}html[data-theme=dark] .card p{color:#b49fc4}html[data-theme=dark] .card-bottom{border-color:var(--border);color:#9b84ac}html[data-theme=dark] .card-bottom button{background:#3b294b;color:#dab3f5}html[data-theme=dark] .badge{background:#624923;color:#ffe6a1}html[data-theme=dark] .badge.live{background:#214c42;color:#9fe8cd}html[data-theme=dark] .panorama-badge{background:#54346e;color:#eccdff}html[data-theme=dark] .secondary{background:#2b2236;border-color:#574265;color:#dbc3ec}html[data-theme=dark] .secondary:hover{background:#3c2d4a}html[data-theme=dark] .primary{color:#3f2c0b;background:#ffc431;border-color:#b38421;box-shadow:0 4px 0 #7d5712}html[data-theme=dark] .primary:hover{background:#ffd15e}html[data-theme=dark] .panel{background:var(--surface);border-color:var(--border)}html[data-theme=dark] .panel h3{color:#c8a4e0}html[data-theme=dark] .panel button{border-color:#574265;color:#d4b9e6}html[data-theme=dark] .panel button:hover{background:#41304c}html[data-theme=dark] [data-scene][style*="background"]{background:#48345b!important;color:#ebd4fc}html[data-theme=dark] .editor-top h2{color:#ead7fa}html[data-theme=dark] .editor-hint{color:#b5a0c5}html[data-theme=dark] label.field{color:#bda4d0!important}html[data-theme=dark] .field input,html[data-theme=dark] .field textarea,html[data-theme=dark] .field select{background:#191420;color:#ecdef5;border-color:#594369}html[data-theme=dark] dialog{background:#21192d;border-color:#68517c;color:#d8c4e8;box-shadow:0 12px 0 #08040c77,0 20px 100px #0008}html[data-theme=dark] dialog h2{color:#e4c8f7}html[data-theme=dark] dialog p[style*="color"]{color:#c7b0d9!important}html[data-theme=dark] .dropdown{background:#2a2035;border-color:#584169}html[data-theme=dark] .dropdown button:hover{background:#47334e}html[data-theme=dark] .cloud-status{background:#261e32;color:#c0a5d5;border-color:var(--border)}html[data-theme=dark] .cloud-status.error{background:#402d20;color:#f0c294}html[data-theme=dark] .empty{background:#211a2c;border-color:#614a74;color:#c2a2d9}html[data-theme=dark] .drop-zone{background:#19141f;border-color:#654c7c}html[data-theme=dark] .drop-zone strong{color:#d6b5ef}html[data-theme=dark] .drop-zone p{color:#a78abb}html[data-theme=dark] .drop-zone.dragging{background:#3f301e;border-color:#d3a63b}html[data-theme=dark] .upload-panel h2{color:#dec1f1}html[data-theme=dark] .platform-stamp{background:#4a371c;border-color:#866429;color:#ffdb87}html[data-theme=dark] .library-heading h2{color:#e3caf3}html[data-theme=dark] .footer-note{color:#9d83b0}html[data-theme=dark] .game,html[data-theme=dark] .game-surface{background:#17101f;color:#f6eaff}html[data-theme=dark] .game .end h2{color:#ffdc73}html[data-theme=dark] .panorama-player-hint{background:#21162d;color:#bea3d2}html[data-theme=dark] .stage{border-color:#65477c}html[data-theme=dark] .whatsnew{color:#b9a1c9}html[data-theme=dark] .drive-box{background:#21192d}html[data-theme=dark] .drive-box a,html[data-theme=dark] .drive-box summary{color:#caa2e7}html[data-theme=dark] .game input{color:#24162f!important;background:#fff!important}
@media(min-width:1450px){.platform-assets .template-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.platform-assets .card-image{height:180px}.asset-actions button{font-size:10px}}@media(max-width:1100px){header{padding-left:25px;padding-right:25px;gap:8px;font-size:10px}.whatsnew{display:none}}@media(max-width:850px){html[data-theme=dark] .brand{width:60px;padding:5px}.theme-toggle{font-size:10px;padding:8px}.account-button{font-size:10px}.library-heading{align-items:flex-start;flex-direction:column;gap:8px}.platform-assets .card-image{height:170px}.panorama-stage{min-height:290px}}@media(max-width:560px){header{justify-content:space-between;padding:0 17px;gap:6px}header .account-button{font-size:9px;padding:8px}.theme-toggle{font-size:9px;padding:8px}.platform-assets .template-grid{grid-template-columns:1fr}.platform-assets .card-image{height:170px}.library-heading h2{font-size:23px}.default-preview{aspect-ratio:1;min-height:250px}.asset-preview-dialog{padding:20px}.game{width:calc(100% - 14px)}.game .stage{aspect-ratio:1;min-height:300px}.game-header{gap:8px;padding:14px;font-size:10px}.inventory{flex-wrap:wrap;font-size:10px}.panorama-editor-tools{gap:8px}.panorama-editor-tools button{font-size:9px;padding:8px}.media-choice img{height:80px}.media-choice strong{font-size:11px}.platform-stamp{font-size:9px}.panorama-player-hint{font-size:9px}.panorama-stage{min-height:290px}}
@media(max-width:850px){html[data-theme=dark] .brand img{width:100%;height:auto}}
