.world-shell{display:block;max-width:1600px;padding:14px 20px}.world-shell [hidden]{display:none!important}
#access{max-width:560px;width:100%;margin:24px auto}#login{display:grid;gap:14px}#login label{display:grid;gap:6px}
#login input{font:inherit;padding:10px;border-radius:5px;border:1px solid #648295;background:#071d2b;color:#fff;min-width:0}
.access-actions{display:flex;gap:10px;flex-wrap:wrap}.game-viewport{display:flex;justify-content:center;background:#030b11;padding:0;min-height:0}
.game-viewport{position:relative}#world-loading{position:absolute;inset:0;z-index:4;display:grid;place-items:center;overflow:hidden;background:#03111e radial-gradient(circle at 50% 44%,#154a6077 0 12%,transparent 43%),linear-gradient(135deg,#04101b,#092536 52%,#03101d);color:#dff9ff;text-align:center;padding:24px;font-size:14px;pointer-events:all;isolation:isolate}#world-loading::before{content:'';position:absolute;inset:0;background:url('/client/assets/ui/map-loading-assembly-v1.png') center/cover;opacity:.72;z-index:-2}#world-loading::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#02111add,transparent 25% 75%,#02111add),linear-gradient(#03101c8c,#03101cc9);z-index:-1}.world-loading-card{display:grid;justify-items:center;gap:10px;width:min(440px,86%);padding:20px 24px;background:#061b2bda;border:1px solid #67dbe7;border-radius:8px;box-shadow:0 0 0 2px #0b3145cc,0 18px 42px #000b}.world-loading-card p{margin:0;color:#e9fbff;font-weight:700;text-shadow:0 1px #001}.loading-logo-assembly{position:relative;width:min(360px,100%);aspect-ratio:1086/362;filter:drop-shadow(0 3px 8px #000)}.loading-logo-assembly img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;will-change:transform,opacity;animation:logo-assembly 1.7s cubic-bezier(.2,.85,.26,1) both}.loading-logo-assembly img:nth-child(1){clip-path:polygon(0 0,52% 0,48% 53%,0 55%);animation-delay:0s}.loading-logo-assembly img:nth-child(2){clip-path:polygon(51% 0,100% 0,100% 52%,48% 53%);animation-delay:.1s}.loading-logo-assembly img:nth-child(3){clip-path:polygon(0 54%,48% 52%,52% 100%,0 100%);animation-delay:.18s}.loading-logo-assembly img:nth-child(4){clip-path:polygon(48% 52%,100% 52%,100% 100%,51% 100%);animation-delay:.27s}@keyframes logo-assembly{0%{opacity:0;transform:var(--assemble-shift,translate(0)) scale(.86)}45%{opacity:1}100%{opacity:1;transform:translate(0) scale(1)}}.loading-logo-assembly img:nth-child(1){--assemble-shift:translate(-42px,-22px) rotate(-6deg)}.loading-logo-assembly img:nth-child(2){--assemble-shift:translate(42px,-22px) rotate(6deg)}.loading-logo-assembly img:nth-child(3){--assemble-shift:translate(-42px,22px) rotate(5deg)}.loading-logo-assembly img:nth-child(4){--assemble-shift:translate(42px,22px) rotate(-5deg)}.world-loading-signal{display:flex;gap:6px;height:7px}.world-loading-signal i{width:7px;height:7px;background:#62e6ef;box-shadow:0 0 10px #62e6ef;animation:loading-signal 1s ease-in-out infinite}.world-loading-signal i:nth-child(2){animation-delay:.15s}.world-loading-signal i:nth-child(3){animation-delay:.3s}@keyframes loading-signal{0%,100%{opacity:.28;transform:translateY(2px)}50%{opacity:1;transform:translateY(-2px)}}#world-loading.portal-loading{color:#dff9ff}@media (prefers-reduced-motion:reduce){.loading-logo-assembly img,.world-loading-signal i{animation:none}.loading-logo-assembly img{opacity:1;transform:none}}
#world-canvas{display:block;width:min(100%,960px);height:auto;aspect-ratio:3/2;image-rendering:pixelated;outline:none;touch-action:none}
#world-canvas:focus-visible{outline:2px solid #5ee2ed;outline-offset:-2px}#connection{margin-left:auto;font-size:12px;color:#8be4e8}
#world-error{margin:12px 20px;padding:12px;color:#ffd88b;border:1px solid #8d7244;border-radius:5px}.touch-controls{display:flex;justify-content:center;gap:8px;padding:10px}
.touch-controls button{width:46px;height:40px;font-size:20px;touch-action:none}.world-note a{color:#79e9f4;font-size:13px}
.shop-panel{min-width:0;max-height:none;height:100%;display:flex;flex-direction:column;gap:10px}
.shop-panel p{margin:0;font-size:13px}.shop-heading,.shop-wallet{display:flex;align-items:center;gap:8px}.shop-heading h2{margin:0;flex:1}.shop-heading button{font-size:20px}.shop-wallet{color:#ffda79}
.shop-tabs{display:flex;gap:5px;flex-wrap:wrap}.shop-tabs button{padding:7px 9px;font-size:12px}.shop-tabs [aria-pressed=true]{border-color:#72e9f5;background:#194757}
.shop-list{overflow:auto;min-height:0;overscroll-behavior:contain;display:grid;gap:8px}.shop-offer{display:flex;align-items:center;gap:8px;border:1px solid #355567;border-radius:5px;padding:8px;background:#0a2332}
.shop-offer>div:last-child{min-width:0;flex:1}.shop-offer strong,.shop-offer small{display:block;overflow-wrap:anywhere}.shop-offer strong{font-size:13px}.shop-offer small{font-size:11px;color:#b2cbd7;line-height:1.5;margin:5px 0}.shop-offer button{font-size:11px;padding:7px}
.shop-thumbnail{width:64px;height:72px;flex:0 0 64px;background-repeat:no-repeat;image-rendering:pixelated;display:flex;align-items:center;justify-content:center}.shop-thumbnail small{font-size:10px;text-align:center}
#shop-confirm{max-width:min(420px,calc(100vw - 28px));box-sizing:border-box;border:1px solid #5d899d;border-radius:8px;background:#102b3b;color:#edf7ff;padding:20px}
#shop-confirm::backdrop{background:#0009}#shop-confirm-item{display:flex;align-items:center;gap:10px}#shop-confirm h2{font-size:18px}button:disabled{opacity:.5;cursor:default}
@media(max-width:800px){.world-shell{grid-template-columns:1fr}.game-viewport{padding:0}.world-note{order:3}header .badge{max-width:160px;text-align:center}}
@media(max-width:800px){.shop-panel{max-height:50dvh}.shop-list{min-height:100px}#shop-confirm{width:calc(100vw - 28px)}}
.world-heading{padding:12px 20px}.world-heading h1{font-size:19px}.world-heading-tools{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}.world-heading-tools a{color:#8be4e8;font-size:12px}#workspace{min-width:0}#world-session-status{margin:0 0 8px;padding:10px;border:1px solid #967b46;border-radius:5px;color:#ffda88;font-size:12px}
.nc-widget-content:has(>.world-panel-mount){display:flex;flex-direction:column}.world-panel-mount{flex:1;min-height:0;min-width:0}.nc-widget[data-widget-id=game]>.nc-widget-content{display:flex;flex-direction:column;padding:0;overflow:hidden}
#world-panel{display:flex;flex-direction:column;height:100%;min-width:0;border-radius:0}.nc-workspace .game-viewport{flex:1;min-height:0;overflow:hidden}
.nc-workspace #world-canvas{display:block;width:min(100%,960px,calc((100dvh - 340px) * 1.5));height:auto;max-height:none;aspect-ratio:3/2;object-fit:fill;flex-shrink:0}
.nc-workspace[data-mode=movie] #world-canvas{width:100%}.nc-workspace[data-mode=movie] .nc-widget[data-widget-id=game]{grid-row:span 1;min-height:300px}
.nc-workspace[data-mode=movie] #world-note{display:none}
.nc-widget[data-widget-id=game] .toolbar{padding:8px 10px;gap:8px;font-size:12px;flex-shrink:0}.world-actions>span:first-child{flex:1}.world-actions button{padding:5px 8px;font-size:11px}
.world-note{font-size:11px;line-height:1.45;color:#9dbbcb;margin:0;padding:4px 12px 10px;flex-shrink:0}.touch-controls{padding:7px}.touch-controls button{height:34px}
#world-activity{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;background:#29473d;color:#dfefd1;font-size:12px;flex-shrink:0}#world-activity button{white-space:nowrap;font-size:11px}
body[data-world-activity=battle] #world-canvas{cursor:default}body[data-world-activity=battle] .touch-controls{opacity:.4}
.world-battle-panel{display:flex;flex-direction:column;gap:10px;min-width:0;height:100%;font-size:13px}.world-battle-panel h2{margin:0;font-size:16px}.world-battle-panel p{margin:0;font-size:12px;line-height:1.5;color:#bcd5e1}.world-battle-panel>button{align-self:flex-start}.world-battle-roster{display:grid;gap:8px}.world-battle-roster label{align-items:flex-start;padding:8px;background:#112e40;border:1px solid #395b70;border-radius:5px}.world-battle-roster input{margin-top:3px;flex-shrink:0}.world-battle-screen{display:block;width:min(100%,720px);height:auto;aspect-ratio:3/2;image-rendering:pixelated;background:#030b11;align-self:center}
.world-actor-notices{position:absolute;inset:0;overflow:hidden;pointer-events:none}.world-actor-notices>span{position:absolute;transform:translate(-50%,-100%);max-width:220px;padding:4px 7px;border:1px solid #98b6a3;border-radius:4px;background:#163326ed;color:#f0ffdc;font-size:10px;line-height:1.3;text-align:center}
.world-field-dialogue{position:absolute;z-index:12;left:50%;bottom:10px;transform:translateX(-50%);width:min(600px,calc(100% - 24px));box-sizing:border-box;padding:12px;border:1px solid #98b6a3;border-radius:4px;background:#163326f5;color:#f0ffdc;font-size:12px;line-height:1.4}.world-field-dialogue[hidden]{display:none}.world-field-dialogue p{margin:6px 0}.world-field-dialogue>div{display:flex;gap:8px;flex-wrap:wrap}.world-field-dialogue button{font-size:11px;padding:6px 9px;background:#244e3b;color:#f0ffdc;border-color:#98b6a3}
.world-progression-panel{display:flex;flex-direction:column;gap:10px;height:100%;min-width:0;font-size:13px;overflow:auto}.world-progression-panel h2{margin:0;font-size:17px}.world-progression-panel h3{font-size:14px;color:#ffdc80}.world-progression-panel h4{margin:8px 0;font-size:13px}.world-progression-panel p{margin:5px 0;line-height:1.45;color:#bddae7}.world-progression-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.world-progression-panel button{padding:7px 9px;font-size:12px}.world-encounter-teams{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.world-starter-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:8px}.world-team-card,.world-enemy-summary{display:flex;align-items:center;gap:10px;padding:9px;margin-bottom:8px;border:1px solid #46667b;border-radius:6px;background:#112c3d}.world-team-card>div{display:flex;flex-direction:column;gap:7px;min-width:0;flex:1}.world-team-card canvas{width:80px;height:80px;image-rendering:pixelated;flex-shrink:0}.world-team-card small,.world-enemy-summary small{font-size:11px;color:#c3dce6}.world-enemy-summary{flex-direction:column;align-items:flex-start}.world-team-card input[type=checkbox]{align-self:center;flex-shrink:0}.world-progression-result,.world-clinic{border:1px solid #496e73;padding:12px;border-radius:6px;background:#142f36;margin-top:12px}.world-clinic select{max-width:100%;padding:7px;background:#132f40;border:1px solid #52798d;border-radius:5px;color:#dcf1f9;margin-right:8px}.world-clinic button{margin:5px 6px 5px 0}.world-school-ceremony{margin:12px 0}.world-school-ceremony canvas{display:block;max-width:100%;width:720px;aspect-ratio:3/2;image-rendering:pixelated;background:#07111b}
.nc-widget[data-widget-id=shop] .nc-widget-content{overflow:hidden;display:flex;flex-direction:column}.nc-widget[data-widget-id=shop] .shop-list{flex:1}.nc-widget[data-widget-id=shop] .shop-panel{max-height:none;flex:1;min-height:0}
@media(max-width:1100px) and (min-width:701px){.nc-workspace[data-mode=movie] .nc-widget[data-widget-id=game]{grid-row:span 2}}
@media(max-width:700px){.world-shell{padding:10px}.world-heading{padding:10px}.world-heading .badge{max-width:160px}.nc-widget[data-widget-id=game]>.nc-widget-content{max-height:none}.nc-workspace #world-canvas{width:100%;max-height:none}.nc-workspace .game-viewport{flex:none;aspect-ratio:3/2}.world-note{font-size:10px}.world-actions>span:first-child{flex-basis:100%}.world-battle-panel{height:auto}.world-battle-screen{width:100%}#world-activity{flex-wrap:wrap}.nc-workspace[data-mode=movie] .nc-widget[data-widget-id=game]{min-height:0}}
