/* First-person "맵 직접 걷기" overlay (PixelScene.explore). Loaded after gameplay.css.
   Layout: title bar / stage (the shared pixel canvas + minimap + prompt) / control dock.
   The dock sits BELOW the stage and wraps, so nothing covers the scene at 375px or at 200% zoom. */
body.pxs-explore-open{overflow:hidden}
.pxs-explore{--ex-panel:#1a120c;--ex-line:#8a6a2c;--ex-accent:#ffc46a;--ex-fg:#f0e6cc;--ex-muted:#cdbd97;--ex-key:#2a1c10;
  position:fixed;inset:0;z-index:90;display:flex;flex-direction:column;background:#000;color:var(--ex-fg);font:16px/1.5 var(--px,ui-monospace,monospace);overflow:auto;overscroll-behavior:contain}
.pxs-explore[data-game=seta]{--ex-panel:#101128;--ex-line:#b89d5e;--ex-accent:#7df3e2;--ex-fg:#ebe9f6;--ex-muted:#b9b5d6;--ex-key:#1b1c3c}
.pxs-explore [hidden]{display:none!important}

.pxs-explore-bar{flex:none;display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;padding:6px 12px;background:var(--ex-panel);border-bottom:3px solid var(--ex-line)}
.pxs-explore-title{flex:1 1 auto;min-width:0;margin:0;font:16px/1.4 var(--px,ui-monospace,monospace);color:var(--ex-accent);overflow-wrap:anywhere}
.pxs-explore-close{flex:none;margin:0 0 0 auto;min-width:44px;min-height:44px;padding:4px 14px;font:16px/1.2 var(--px,ui-monospace,monospace);background:#000;color:var(--ex-fg);border:2px solid var(--ex-line);border-radius:0;cursor:pointer}

.pxs-explore-stage{position:relative;flex:1 1 auto;min-height:160px;background:#000;overflow:hidden}
.pxs-explore-stage .pxs{position:absolute;inset:0}
.pxs-explore .pixel-scene-canvas{touch-action:pan-y;cursor:ew-resize}
.pxs-explore-map{position:absolute;top:8px;right:8px;z-index:4;width:144px;max-width:38%;height:auto;image-rendering:pixelated;image-rendering:crisp-edges;border:2px solid var(--ex-line);background:#000;pointer-events:none}
.pxs-explore-prompt{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);z-index:4;box-sizing:border-box;width:max-content;max-width:calc(100% - 16px);padding:6px 12px;background:#000;border:2px solid var(--ex-accent);color:var(--ex-fg);font:16px/1.5 var(--px,ui-monospace,monospace);text-align:center;pointer-events:none}

.pxs-explore-dock{flex:none;display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px 14px;padding:10px 12px;background:var(--ex-panel);border-top:3px solid var(--ex-line)}
.pxs-explore-pad{flex:none;display:grid;grid-template-columns:repeat(3,48px);grid-auto-rows:48px;gap:4px;touch-action:none}
.pxs-explore-key{min-width:44px;min-height:44px;margin:0;padding:0;font:20px/1 var(--px,ui-monospace,monospace);background:var(--ex-key);color:var(--ex-accent);border:2px solid var(--ex-line);border-radius:0;cursor:pointer;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.pxs-explore-key:active{background:var(--ex-accent);color:#000}

.pxs-explore-info{flex:1 1 240px;min-width:0}
.pxs-explore-near{margin:0 0 6px;color:var(--ex-accent);overflow-wrap:anywhere}
.pxs-explore-places{list-style:none;margin:0 0 6px;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:2px 16px}
.pxs-explore-place{display:flex;align-items:baseline;gap:8px;min-width:0}
.pxs-explore-swatch{flex:none;align-self:center;width:10px;height:10px;transform:rotate(45deg);border:1px solid #000;outline:1px solid var(--ex-muted)}
.pxs-explore-name{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.pxs-explore-where{flex:none;color:var(--ex-muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.pxs-explore-place.is-near .pxs-explore-name,.pxs-explore-place.is-near .pxs-explore-where{color:var(--ex-accent)}
.pxs-explore-place.is-near .pxs-explore-name::after{content:' ◆'}
.pxs-explore-help{margin:0;font-size:14px;line-height:1.5;color:var(--ex-muted);overflow-wrap:anywhere}

.pxs-explore-act{flex:0 1 220px;align-self:flex-start;min-height:52px;margin:0;padding:8px 14px;font:16px/1.4 var(--px,ui-monospace,monospace);background:#000;color:var(--ex-muted);border:2px dashed var(--ex-line);border-radius:0;cursor:pointer;overflow-wrap:anywhere}
.pxs-explore-act.is-ready{background:var(--ex-accent);color:#000;border:2px solid var(--ex-fg)}
/* server-locked bonus place: sealed look + reason text, never colour alone (the label says 잠김) */
.pxs-explore-act.is-locked{background:#000;color:var(--ex-fg);border:2px double var(--ex-muted);cursor:not-allowed}
.pxs-explore-prompt.is-locked{border-style:double;border-color:var(--ex-muted)}
.pxs-explore-place.is-locked .pxs-explore-name{color:var(--ex-muted)}
.pxs-explore-place.is-locked .pxs-explore-swatch{background:transparent!important;outline-style:dashed}

.pxs-explore-close:focus-visible,.pxs-explore-key:focus-visible,.pxs-explore-act:focus-visible{outline:3px solid var(--ex-fg);outline-offset:2px}
.pxs-explore .pixel-scene-canvas:focus-visible{outline:3px solid var(--ex-accent);outline-offset:-4px}

@media (max-width:560px){
  .pxs-explore-dock{gap:8px 10px;padding:8px}
  .pxs-explore-info{order:3;flex-basis:100%}
  .pxs-explore-act{flex:1 1 120px;min-height:100px}
  .pxs-explore-map{width:104px;top:6px;right:6px}
  .pxs-explore-help{font-size:14px}
}
@media (max-width:300px){
  .pxs-explore-act{flex-basis:100%;min-height:52px}
  .pxs-explore-map{width:84px}
}
@media (max-height:480px) and (orientation:landscape){
  .pxs-explore-help{display:none}
  .pxs-explore-stage{min-height:140px}
}
@media (prefers-reduced-motion:reduce){.pxs-explore *{transition:none!important;animation:none!important}}
@media (forced-colors:active){.pxs-explore-act.is-ready{border-style:double}.pxs-explore-swatch{forced-color-adjust:none}}
.map-encounter{border-left:3px solid var(--ex-line);padding-left:12px;margin-bottom:12px}


/* One main rectangle for movement, investigations and records; RP stays mounted. */
.pxs-main-workspace{grid-column:1;grid-row:2/4;min-width:0;min-height:0;overflow:auto;background:var(--ex-panel);color:var(--ex-fg);scrollbar-gutter:stable;container-type:inline-size}
.pxs-workspace-head{position:sticky;top:0;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;border-bottom:2px solid var(--ex-line);background:var(--ex-panel)}
.pxs-workspace-head h3{margin:0;font:20px/1.5 var(--px,monospace);overflow-wrap:anywhere}
.pxs-workspace-head button{flex:none;min-width:64px;min-height:44px}
.pxs-workspace-head .pxs-btn{font:16px/1.5 var(--px,monospace);padding:6px 12px}
/* NPC panel → place RP hand-off sits beside the map return; one contextual CTA, hidden otherwise. */
.pxs-workspace-actions{display:flex;flex:none;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.pxs-workspace-head .pxs-place-rp{background:var(--ex-accent);color:var(--ex-panel);border-color:var(--ex-accent)}
.pxs-workspace-head .pxs-place-rp[hidden]{display:none}
.pxs-workspace-head .pxs-place-rp:focus-visible{outline:3px solid var(--ex-fg);outline-offset:2px}
.world-flow-help{border-top:1px solid var(--ex-line);margin-top:4px;color:var(--ex-muted)}
.world-flow-help>summary{min-height:44px;padding:10px 0;cursor:pointer;font:16px/1.5 var(--px,monospace)}
.world-flow-help>summary:focus-visible{outline:3px solid var(--ex-accent);outline-offset:2px}
.pxs-workspace-body{padding:clamp(12px,3vw,28px);min-width:0;overflow-wrap:anywhere}
.pxs-workspace-body>.gs-panel{margin:0;padding:0;min-width:0;border:0;box-shadow:none;background:transparent}
.pxs-workspace-body>.map-investigate{margin:0;padding:0;border:0;background:transparent}
.pxs-workspace-body .cb-root{max-width:none}
.pxs-workspace-body>.map-investigate>.map-back{display:none}
.pxs-workspace-body #profile-fold{max-width:640px;margin-inline:auto}
.pxs-workspace-body .gs-side{display:block}
@media(max-width:900px){.pxs-main-workspace{order:2;flex:1 0 auto;overflow:visible;min-height:240px}.pxs-workspace-head{padding:10px 12px;flex-wrap:wrap}.pxs-workspace-head h3{flex:1 1 12ch;min-width:0}.pxs-workspace-actions{flex:1 1 auto}.pxs-workspace-body{padding:12px}.pxs-explore[data-view=content] .pxs-social-slot{order:3}}
