/* Only the game host/surface changes appearance. Business markup and handlers are shared. */
.atelier-drawer .ap-panel.ap-shared{width:min(1280px,100%);height:min(880px,84vh);background:linear-gradient(130deg,#f9f7ffb8,#e8e7f0c2);border-color:#eee7ffc9;box-shadow:0 25px 90px #14132355,0 0 0 4px #e3d8fa33;--game-ink:#42384e;--game-muted:#786d86;color:var(--game-ink);backdrop-filter:blur(10px)}
.atelier-drawer .ap-shared .ap-header{padding:16px 24px 12px;border-bottom:1px solid #9584ad26}
.atelier-drawer .ap-shared .ap-header h3{font-size:23px;color:#544263;letter-spacing:.06em}
.atelier-drawer .ap-shared .ap-station-seal{color:#9374ae;border-color:#a991bc66;width:36px;height:36px;font-size:23px}
.atelier-drawer .ap-shared .ap-close,.atelier-drawer .ap-shared kbd{color:#78638c;border-color:#a890bc66}
.atelier-drawer .ap-shared .ap-close:hover{background:#9c82b326}
.atelier-drawer .ap-shared .ap-game-footer{margin:0 24px;padding:10px 0;color:#80718e;border-color:#9584ad33}
.atelier-drawer .ap-shared .ap-game-footer>span:first-child{color:#80718e}
.ap-surface-slot{position:relative;flex:1;min-height:0;overflow:hidden}
.ap-surface-slot iframe{position:absolute;inset:0;border:0;width:100%;height:100%;visibility:hidden;background:transparent}
.ap-surface-slot iframe.ready{visibility:visible}
.ap-surface-loading{position:absolute;inset:0;display:grid;place-items:center;font-size:14px;color:#86718e}
.ap-surface-loading[hidden]{display:none}
body.atelier-surface{--nav-height:0px;--paper:transparent;--surface:#fffdfb99;--ui-pad:22px;background:transparent;min-height:100vh;overflow-x:hidden}
body.atelier-surface:before,body.atelier-surface:after,body.atelier-surface>.skip{display:none}
.atelier-surface #shell{min-height:0}
.atelier-surface #main.page-main{width:100%;max-width:none;margin:0;padding:22px 26px;min-height:0}
.atelier-surface .page-main .page-title{margin-bottom:20px;gap:16px}
.atelier-surface .page-main .page-title h1{display:none}
.atelier-surface .page-main .page-title p{font-size:13px}
.atelier-surface .page-main .panel{background:#fffdfb70}
.atelier-surface .workbench-nav{position:static;margin:0 0 22px;padding:0 0 12px;gap:18px;background:transparent;border-bottom:1px solid var(--line)}
.atelier-surface .catalog-shell{margin:0;min-height:0}
.atelier-surface .catalog-nav{position:sticky;top:0;max-height:85vh;overflow:auto}
.atelier-surface .catalog-content{min-width:0}
.atelier-surface .auth-layout{padding:20px;min-height:0;margin:0;grid-template-columns:1fr;max-width:520px;margin-inline:auto}
.atelier-surface .auth-message{display:none}
.atelier-surface .auth-card{padding:24px}
.atelier-surface .cosmos-main{padding:0;margin:0;min-height:0}
.atelier-surface .cosmos-stage{height:100dvh;min-height:0}
.atelier-surface .cosmos-heading{top:18px;left:24px;right:24px}
.atelier-surface .cosmos-heading h1{font-size:20px}
.atelier-surface .cosmos-map{inset:88px 12px 80px}
.atelier-surface .cosmos-panel{top:85px;bottom:16px;right:20px;width:51%;max-height:calc(100dvh - 100px)}
.atelier-surface .cosmos-panel-body{padding:20px}
.atelier-surface .cosmos-bottom{bottom:14px}
.atelier-surface dialog{max-width:calc(100vw - 32px);max-height:calc(100dvh - 28px);border:1px solid #d6c4e9;background:#fcfaffd9;box-shadow:0 20px 60px #30213c30}
.atelier-surface dialog::backdrop{background:#55436526;backdrop-filter:blur(3px)}
.atelier-surface .legal-shell{padding:20px 24px;max-width:none}
.atelier-surface .account-menu{position:relative}
.atelier-surface .account-menu>div{z-index:20}
.atelier-surface .app-notice{max-width:calc(100vw - 40px)}
@media(max-width:760px){.atelier-drawer .ap-panel.ap-shared{height:88vh}.atelier-drawer .ap-shared .ap-header{padding:12px 16px}.atelier-drawer .ap-shared .ap-header h3{font-size:20px}.atelier-drawer .ap-shared .ap-game-footer{margin:0 16px}.atelier-surface #main.page-main{padding:18px 16px}.atelier-surface .workbench-nav{gap:12px;flex-wrap:wrap}.atelier-surface .cosmos-panel{top:170px;bottom:12px;left:12px;right:12px;width:auto;max-height:calc(100dvh - 182px)}.atelier-surface .is-focused .cosmos-map{top:30px;height:130px}.atelier-surface .is-focused .cosmos-focus-caption{top:140px}.atelier-surface .cosmos-heading h1 span{display:none}.atelier-surface .cosmos-heading{left:16px;right:16px}.atelier-surface .cosmos-stage{min-height:560px}.atelier-surface .cosmos-panel .identity-form-grid{grid-template-columns:1fr}}
