@font-face{font-family:Cormorant;src:url(./assets/serif.woff2) format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:DM Sans;src:url(./assets/sans.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:DM Sans;src:url(./assets/sans-medium.woff2) format("woff2");font-weight:500 700;font-display:swap}

:root{color-scheme:dark;--bg:#151a28;--panel:#1c2231;--raised:#242a3a;--ink:#f3e8d4;--muted:#b8b2ac;--soft:#9898a3;--gold:#d9b77b;--border:#353746;--teal:#a2c3ba;--display:Cormorant,Georgia,serif;--body:"DM Sans",system-ui,sans-serif}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:radial-gradient(ellipse at 46% 5%,#1d2334 0,transparent 48%),var(--bg);color:var(--ink);font:400 15px/1.5 var(--body);min-height:100vh}
button,input,textarea,select{font:inherit}
button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
button{color:inherit;cursor:pointer}
button:disabled{opacity:.48;cursor:default}
a{color:inherit}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
h1,h2,h3,p{margin:0}
svg{display:block;width:20px;height:20px}
[data-icon]{display:inline-flex;align-items:center;justify-content:center;flex:none}
.topbar{border-bottom:1px solid #323545;background:#171c2a99}
.topbar-inner,.wrap{width:min(1410px,calc(100% - 112px));margin-inline:auto}
.topbar-inner{min-height:72px;display:flex;align-items:center;justify-content:space-between}
.signature{display:inline-flex;align-items:center;gap:12px;text-decoration:none;font-family:var(--display);font-size:27px;letter-spacing:.006em}
.brand-icon{width:37px;height:37px;border-radius:50%;background:#252a39;color:var(--gold);border:1px solid #4c443d}
.brand-icon svg{width:22px;height:22px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:39px;padding:7px 12px;border:1px solid #46454d;border-radius:8px;background:#262a38;font-size:12px;font-weight:600;white-space:nowrap;transition:background .18s,border-color .18s,color .18s}
.button:hover:not(:disabled){background:#343746;border-color:#70614e}
.button svg{width:17px;height:17px}
.invite{color:#ecd8b4;padding-inline:14px}
.invite [data-icon]{color:var(--gold)}
.intro{padding:35px 0 27px}
.eyebrow{display:flex;gap:9px;align-items:center;color:var(--gold);font-size:10px;font-weight:600;letter-spacing:.24em}
.eyebrow>span{height:1px;width:23px;background:#9c8059}
h1{font:500 clamp(52px,6.4vw,84px)/.98 var(--display);letter-spacing:-.031em;margin:12px 0 8px}
.intro p{font-size:15px;color:var(--muted);letter-spacing:.015em}
.studio-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(275px,324px);align-items:start;gap:20px}
.world{min-width:0}
.stage{position:relative;aspect-ratio:1.5;min-height:340px;overflow:hidden;isolation:isolate;border:1px solid #414355;border-radius:15px;background:#252b40}
.stage img,.viewport,.stage-edge,.hotspots{position:absolute;inset:0;width:100%;height:100%}
.stage img{object-fit:cover;object-position:center;user-select:none}
.viewport canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}
.viewport canvas:active{cursor:grabbing}
.stage-edge{pointer-events:none;box-shadow:inset 0 0 70px #090f2042;background:linear-gradient(0deg,#14172578,transparent 17%,transparent 85%,#15182838)}
.scene-badge,.scene-tools,.stage-hint,.viewer-status{position:absolute;z-index:1}
.scene-badge{top:15px;left:15px;display:flex;gap:6px;align-items:center;border:1px solid #5e574b;border-radius:6px;padding:5px 8px;background:#1b202eec;color:#e1c395;font-size:9px;font-weight:600;letter-spacing:.14em}
.scene-badge svg{width:15px;height:15px}
.scene-tools{bottom:13px;left:14px;display:flex;gap:7px}
.scene-button{background:#1c2130ed;border-color:#666271}
.scene-button [data-icon]{color:var(--gold)}
.stage-hint{right:16px;bottom:22px;color:#f1e3c9;font-size:11px;pointer-events:none;text-shadow:0 1px 3px #121623}
.viewer-status{left:50%;top:50%;transform:translate(-50%,-50%);width:max-content;max-width:85%;background:#181d2ced;padding:10px 15px;border:1px solid #5e574b;border-radius:8px;font-size:13px;text-align:center}
.hotspots{pointer-events:none;z-index:2}
.hotspot{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;background:#252938e8;border:1px solid #f3d396;border-radius:50%;width:27px;height:27px;pointer-events:auto;box-shadow:0 0 0 4px #231f374a,0 4px 12px #1616239c;padding:0}
.hotspot:after{content:"";width:7px;height:7px;border-radius:50%;background:#f3ce8a;box-shadow:0 0 8px #edb66e}
.hotspot:hover,.hotspot[aria-current=true]{background:#d9b77b;border-color:#fff0c8}
.hotspot:hover:after,.hotspot[aria-current=true]:after{background:#232536}
.hotspot .tip{display:none;position:absolute;top:-31px;white-space:nowrap;padding:3px 7px;border-radius:4px;background:#151a29;color:var(--ink);font-size:11px}
.hotspot:hover .tip,.hotspot:focus-visible .tip{display:block}
.scene-caption{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 2px 0;color:#bfb5ad}
.scene-caption>span{display:flex;gap:8px;align-items:center}
.scene-caption>span svg{width:15px;height:15px;color:var(--gold)}
.scene-caption i{font-family:Georgia,serif;font-size:13px}
.text-button{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;padding:4px;color:var(--muted);font-size:12px}
.text-button:hover,.text-button[aria-pressed=true]{color:var(--gold)}
.text-button svg{width:17px;height:17px}
.room-panel{background:linear-gradient(145deg,#222839 0,#1c2231 68%);border:1px solid #37394a;border-radius:15px;min-height:340px;overflow:auto}
.panel-body{padding:21px 17px 17px}
.panel-top{padding:0 4px 13px}
.panel-top h2{font:500 35px/.98 var(--display);letter-spacing:-.017em}
.panel-top p{font-size:12px;color:var(--muted);margin-top:6px}
.room-list{display:grid;gap:7px}
.room-row{width:100%;display:grid;grid-template-columns:38px minmax(0,1fr) 15px;align-items:center;gap:10px;min-height:62px;text-align:left;border-radius:9px;border:1px solid #3b3f50;background:#252b3c;padding:8px 10px}
.room-row:hover{background:#303548;border-color:#7c6b52}
.station-icon{width:38px;height:38px;border-radius:8px;background:#32323e;color:var(--gold)}
.station-icon svg{width:19px;height:19px}
.room-row:nth-child(2) .station-icon,.room-row:nth-child(4) .station-icon{background:#2b4147;color:#afd0c3}
.room-row-title{display:block;font-size:13px;font-weight:600;color:#f2e9d9}
.room-row-desc{display:block;font-size:10.5px;line-height:1.4;color:var(--muted);margin-top:2px}
.arrow svg{width:13px;height:13px;color:#a8a4a7}
.panel-bottom{padding:14px 3px 0;color:var(--soft);font-size:11px}
.footer{margin-top:23px;padding:13px 1px 19px;border-top:1px solid #333647;display:flex;align-items:center;gap:9px;color:#9796a3;font-size:9px;font-weight:600;letter-spacing:.16em}
.foot-ornament,.footer a:hover{color:var(--gold)}
.foot-ornament svg,.footer a svg{width:13px;height:13px}
.footer a{margin-left:auto;letter-spacing:0;text-decoration:none;font-size:11px;display:flex;align-items:center;gap:7px}
.station-head{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:15px}
.station-head .text-button{color:var(--gold);padding-left:0}
.station-head .station-icon{height:33px;width:33px}
.activity h2{font:500 35px/.98 var(--display);letter-spacing:-.024em;margin-bottom:6px}
.activity>p{font-size:12px;color:var(--muted);margin-bottom:15px}
.activity label,.invite-dialog label{display:block;font-size:11px;font-weight:600;color:#d7cfbf;margin-bottom:4px}
.field,.invite-dialog input{width:100%;background:#171d2a;border:1px solid #414558;border-radius:7px;color:var(--ink);padding:8px 9px}
.field:focus,.invite-dialog input:focus{border-color:#af946b;outline:none}
.activity textarea{display:block;resize:vertical;min-height:173px;line-height:1.62}
.activity select{max-width:100%;text-overflow:ellipsis}
.controls{display:flex;align-items:center;gap:7px;margin-top:9px;flex-wrap:wrap}
.controls .button{min-height:33px;padding:5px 9px}
.primary{background:#d6b57b;color:#222535;border-color:#e6c592}
.primary:hover:not(:disabled){background:#e4c690;color:#222535;border-color:#f0d6ae}
.reader{margin-top:11px;border:1px solid #51483e;background:#272832;border-radius:8px;padding:13px;max-height:235px;overflow:auto}
.reader h3{font:500 26px/1.03 var(--display);margin-bottom:8px}
.reader p,.reader pre{font:400 13px/1.65 Georgia,serif;color:#ded1b9;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.hint{color:var(--muted);font-size:11px;min-height:17px;margin-top:8px}
.archive-list{display:grid;gap:6px;margin-top:8px}
.archive-list button{justify-content:flex-start;white-space:normal;text-align:left}
.archive-label{margin-top:14px}
.canvas-wrap{margin-top:9px;border:1px solid #9a8465;border-radius:7px;overflow:hidden;background:#efdfc4}
.paint-canvas{display:block;width:100%;height:auto;touch-action:none;cursor:crosshair}
.palette{display:flex;gap:7px;align-items:center;margin-top:10px;flex-wrap:wrap}
.swatch{width:23px;height:23px;border-radius:50%;border:1px solid #b4a38b;background:var(--swatch);padding:0}
.swatch[aria-pressed=true]{outline:2px solid var(--gold);outline-offset:2px}
.palette input{height:24px;width:27px;min-width:0;padding:0;border:0;background:transparent;cursor:pointer}
.brush-row{display:flex;gap:7px;align-items:center;margin-top:7px}
.brush-row label{margin:0}
.brush-row input{min-width:60px;max-width:105px;accent-color:var(--gold)}
.breath{display:grid;place-items:center;text-align:center;min-height:171px;border-radius:10px;border:1px solid #434457;background:radial-gradient(circle at center,#303847,#1c2232)}
.breath-ring{height:80px;width:80px;border:1px solid #b49768;border-radius:50%;display:grid;place-items:center;color:var(--gold);margin:10px auto 4px;box-shadow:0 0 28px #d9b77b19}
.breath-ring svg{width:32px;height:32px}
.breath[data-active=true] .breath-ring{animation:breathe 10s infinite ease-in-out}
@keyframes breathe{0%,100%{transform:scale(.87)}40%{transform:scale(1.16)}}
.breath-title{font:500 25px/1.2 var(--display)}
.breath small{display:block;margin:0 0 10px;color:var(--muted)}
.icon-button{width:39px;padding:0}
.invite-dialog{max-width:min(420px,calc(100% - 28px));border:1px solid #5b544e;border-radius:13px;background:#242a3a;color:var(--ink);padding:24px;box-shadow:0 24px 85px #080b15a0}
.invite-dialog::backdrop{background:#0c101bc2}
.invite-dialog h2{font:500 36px/1.05 var(--display);margin:8px 0}
.invite-dialog p{color:var(--muted);font-size:13px;margin-bottom:15px}
.dialog-close{position:absolute;top:12px;right:12px;min-height:32px;width:32px}
.dialog-emblem{color:var(--gold)}
.invite-dialog .primary{margin-top:10px}
.toast{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:10;background:#292e40;border:1px solid #75634f;border-radius:8px;padding:8px 13px;font-size:13px;color:var(--ink);max-width:90vw}
.noscript{text-align:center;padding:20px}
@media(max-width:1180px){.topbar-inner,.wrap{width:calc(100% - 70px)}.studio-layout{grid-template-columns:minmax(0,1fr) 282px;gap:15px}.panel-body{padding:17px 13px 13px}.room-row{min-height:55px}.stage{aspect-ratio:1.37}}
@media(max-width:880px){.topbar-inner,.wrap{width:calc(100% - 38px)}.studio-layout{grid-template-columns:minmax(0,1fr)}.stage{aspect-ratio:1.5;min-height:0}.room-panel{min-height:0}.room-list{grid-template-columns:repeat(2,minmax(0,1fr))}.intro{padding:26px 0 22px}.topbar-inner{min-height:60px}.activity textarea{min-height:220px}.canvas-wrap{max-width:560px}.hotspot{width:23px;height:23px}}
@media(max-width:480px){.topbar-inner,.wrap{width:calc(100% - 26px)}.stage{aspect-ratio:1.29;border-radius:10px}.signature{font-size:23px;gap:8px}.brand-icon{width:32px;height:32px}.room-list{grid-template-columns:1fr}.room-row{min-height:55px}.stage-hint{display:none}.scene-tools{left:8px;bottom:8px}.scene-badge{left:8px;top:8px}.scene-button{min-height:32px;font-size:11px}.scene-caption i{font-size:11px}.footer{margin-top:16px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}
