.explore-page { max-width:1500px; margin:0 auto; padding:36px clamp(16px,4vw,56px) 60px; }
.explore-heading { display:flex; justify-content:space-between; gap:24px; align-items:center; margin-bottom:28px; }
.explore-heading h1 { font-family:inherit; font-size:clamp(28px,3vw,38px); font-weight:600; margin:8px 0; }
.explore-heading p,.explore-slider p { color:var(--muted,#a4a9af); margin:8px 0; }
.explore-preview { font-size:13px; max-width:210px; }
.explore-timeline { display:flex; align-items:center; gap:28px; background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:20px 24px; }
.explore-timeline label { display:block; font-size:12px; text-transform:uppercase; letter-spacing:.1em; color:var(--accent-muted); margin-bottom:8px; }
.explore-timeline select { max-width:330px; width:100%; }
.explore-slider { flex:1; min-width:120px; }
.explore-slider input { width:100%; accent-color:var(--accent); }
.explore-slider p { font-size:12px; }
.explore-breadcrumbs { display:flex; gap:10px; align-items:center; flex-wrap:wrap; padding:22px 0; font-size:13px; }
.explore-layout { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:24px; }
.explore-stage { border:1px solid var(--line); border-radius:12px; overflow:hidden; background:#0e1622; align-self:start; }
.explore-zoom { display:flex; gap:8px; padding:10px; border-bottom:1px solid var(--line); }
.explore-zoom button { min-height:36px; }
.explore-viewport { width:100%; max-height:70vh; overflow:auto; }
.explore-canvas { position:relative; width:100%; min-height:0; aspect-ratio:1000/650; background:#111c2b; color:#415875; isolation:isolate; }
.explore-background { display:block; width:100%; height:auto; position:relative; }
.explore-canvas:has(.explore-background) { aspect-ratio:auto; }
.explore-placeholder { width:100%; height:100%; display:block; position:absolute; inset:0; opacity:.65; }
.explore-placeholder text { font:14px monospace; letter-spacing:3px; fill:var(--muted); }
.explore-river { fill:none; stroke:#1c426b; stroke-width:55; }
.explore-road { fill:none; stroke:#6289b6; stroke-width:7; opacity:.4; }
.explore-park { fill:#1c2e46; stroke:#36577e; stroke-width:2; }
.explore-scene { background:linear-gradient(140deg,#192638,#0e1622); }
.explore-scene .explore-road,.explore-scene .explore-river,.explore-scene .explore-park { display:none; }
.explore-art-label { position:absolute; bottom:10px; left:14px; font-size:10px; letter-spacing:.15em; text-transform:uppercase; color:var(--muted); }
.explore-node { position:absolute; transform:translate(-50%,-50%); display:flex; flex-direction:column; align-items:center; gap:4px; border:0; background:transparent; color:var(--ink); min-width:44px; min-height:44px; padding:4px; max-width:160px; font-size:12px; text-shadow:0 2px 5px #000; z-index:1; }
.explore-node>span:not(.explore-pin) { background:#101b2bee; padding:4px 8px; border-radius:4px; }
.explore-node .explore-pin { background:var(--accent); border:4px solid #10253e; box-shadow:0 0 0 1px var(--accent); color:#ffffff; width:30px; height:30px; border-radius:50%; display:grid; place-content:center; font-size:24px; text-shadow:none; }
.explore-node.is-locked .explore-pin { background:#7d8b9d; box-shadow:0 0 0 1px #7d8b9d; }
.explore-node:hover .explore-pin { box-shadow:0 0 0 4px #3889ff55; }
.explore-node:focus-visible { outline:3px solid var(--accent-muted); outline-offset:5px; border-radius:5px; }
.explore-node small { background:#101b2b; padding:2px 5px; }
.explore-details { padding:20px; border:1px solid var(--line); border-radius:12px; background:var(--paper); }
.explore-details h2 { font-family:inherit; font-size:26px; font-weight:600; }
.explore-description { white-space:pre-wrap; line-height:1.65; font-size:14px; color:var(--muted); }
.explore-places { display:grid; gap:8px; margin:24px 0; }
.explore-place { display:flex; align-items:center; justify-content:space-between; text-align:left; padding:12px; border:1px solid var(--line); background:#172131; border-radius:7px; min-height:50px; }
.explore-place small { display:block; color:var(--accent-muted); margin-top:5px; font-size:11px; }
.explore-empty { padding:65px 24px; text-align:center; }
.explore-editor { padding:24px; }
.explore-editor-layout { display:grid; grid-template-columns:230px minmax(0,1fr); gap:24px; }
.explore-editor-list { display:grid; gap:8px; align-content:start; }
.explore-editor-fields { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:18px; }
.explore-editor-fields .field { min-width:0; }
.explore-editor-fields .wide { grid-column:1/-1; }
.explore-editor-fields textarea { min-height:100px; }
.explore-editor-list button { text-align:left; }
.explore-editor-list .active { border-color:var(--accent); }
.explore-editor-canvas { border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.explore-editor-note { padding:12px; border-left:3px solid var(--accent); background:#142237; }
@media(max-width:900px) { .explore-layout { grid-template-columns:1fr; } .explore-heading { align-items:start; flex-direction:column; } .explore-preview { max-width:none; } .explore-timeline { flex-wrap:wrap; gap:14px; } .explore-editor-layout { grid-template-columns:1fr; } }
@media(max-width:500px) { .explore-node { font-size:10px; max-width:105px; } .explore-node .explore-pin { width:23px; height:23px; } .explore-timeline { padding:16px; } .explore-timeline>div:first-child { width:100%; } .explore-editor { padding:12px; } .explore-editor-fields { grid-template-columns:1fr; } }
.explore-timeline select,.explore-editor select,.explore-editor input:not([type=checkbox]):not([type=file]),.explore-editor textarea { background:var(--bg); border:1px solid var(--line); color:var(--ink); border-radius:5px; padding:9px 11px; font:inherit; }
.explore-timeline select { font-size:14px; min-height:42px; }
.explore-inventory-bar { display:flex; align-items:center; gap:12px; margin:18px 0; flex-wrap:wrap; }
.explore-inventory-bar .selected-item { color:var(--accent-muted); }
.explore-inventory { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; margin:20px 0; }
.explore-item-card { border:1px solid var(--line); border-radius:8px; padding:16px; background:var(--paper); display:grid; gap:10px; }
.explore-item-card img { max-height:140px; width:100%; object-fit:contain; }
.explore-item-card h3 { margin:0; }
.explore-item-card .button-row { margin-top:auto; }
.explore-node[data-interaction] .explore-pin { border-radius:6px; font-size:18px; }
.explore-place.is-complete { border-color:#30567e; }
.explore-place:disabled { opacity:.65; }
.explore-content-editor { border-top:1px solid var(--line); margin-top:28px; padding-top:24px; }
.explore-content-editor .button-row { flex-wrap:wrap; }
.explore-inspect-image { display:block; max-width:100%; max-height:45vh; object-fit:contain; margin:12px auto; }
.explore-discovery-copy { white-space:pre-wrap; line-height:1.7; }
.explore-inventory-drawer { border:1px solid var(--line); border-radius:10px; background:var(--bg); padding:20px; margin-bottom:20px; }
.explore-inventory-drawer summary { cursor:pointer; font-weight:600; }
.explore-editor-note { color:var(--muted); }

/* The world fills the viewport; controls float above it without resizing it. */
body[data-view="explore"] { overflow:hidden; padding-bottom:0; }
body[data-view="explore"] .copyright-strip { display:none; }
.explore-page { position:relative; width:100%; max-width:none; height:calc(100dvh - var(--app-header)); margin:0; padding:0; overflow:hidden; isolation:isolate; background:#111c2b; }
.explore-stage { position:absolute; inset:0; width:100%; height:100%; align-self:stretch; border:0; border-radius:0; }
.explore-viewport { width:100%; height:100%; max-height:none; overflow:auto; scrollbar-width:none; cursor:grab; touch-action:none; overscroll-behavior:contain; }
.explore-viewport::-webkit-scrollbar { display:none; }
.explore-viewport.is-panning { cursor:grabbing; user-select:none; }
.explore-viewport .explore-background { width:100%; height:100%; }
.explore-viewport .explore-canvas { flex:none; }
.explore-hud-top,.explore-hud-bottom { position:absolute; left:24px; right:24px; z-index:2; display:flex; align-items:center; gap:12px; pointer-events:none; }
.explore-hud-top { top:22px; align-items:flex-start; }
.explore-hud-top h1 { margin:8px 0; font:600 clamp(16px,2vw,23px)/1.3 "Segoe UI",sans-serif; text-shadow:0 2px 8px #000,0 0 24px #000; }
.explore-hud-actions { margin-left:auto; display:flex; gap:8px; }
.explore-hud-bottom { bottom:max(20px,env(safe-area-inset-bottom)); }
.explore-hud-top button,.explore-hud-bottom button,.explore-equipped { pointer-events:auto; background:#10151de8; border:1px solid #ffffff29; box-shadow:0 3px 14px #0005; backdrop-filter:blur(12px); }
.explore-hud-top button,.explore-hud-bottom button,.explore-panel header button { min-height:44px; }
.explore-zoom { padding:0; border:0; gap:4px; }
.explore-zoom button { min-width:44px; }
.explore-back { margin-left:auto; }
.explore-equipped { position:absolute; right:24px; bottom:80px; z-index:2; max-width:calc(100% - 48px); border-radius:8px; padding:8px 12px; display:flex; align-items:center; gap:12px; color:var(--accent-muted); }
.explore-scrim { position:absolute; inset:0; z-index:3; background:#0004; }
.explore-panel { position:absolute; z-index:4; background:#12171ff5; backdrop-filter:blur(20px); border:1px solid var(--line); overflow:auto; padding:24px; box-shadow:0 8px 40px #0008; }
.explore-panel[hidden],.explore-scrim[hidden] { display:none; }
.explore-panel>header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.explore-panel h2 { font:600 22px/1.3 "Segoe UI",sans-serif; margin:0; }
.explore-panel header button { min-width:44px; font-size:23px; }
.explore-side-panel { top:0; right:0; bottom:0; width:min(400px,100%); border-radius:0; }
.explore-bottom-panel { bottom:0; left:0; right:0; max-height:80%; border-radius:16px 16px 0 0; padding-bottom:max(24px,env(safe-area-inset-bottom)); }
.explore-panel .explore-timeline { border:0; background:none; padding:0; border-radius:0; }
.explore-panel .explore-preview { display:block; max-width:none; margin-top:18px; }
.explore-panel .explore-inventory { grid-template-columns:1fr; }
.explore-panel .explore-breadcrumbs { padding:0; }
.explore-page>.explore-empty { padding-top:100px; }
.explore-page #explore-message { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
body[data-view="explore"] .toast { bottom:84px; }
@media(max-width:600px) {
  .explore-hud-top,.explore-hud-bottom { left:12px; right:12px; gap:8px; }
  .explore-hud-top { top:12px; flex-wrap:wrap; }
  .explore-hud-top h1 { flex-basis:100%; margin:0; }
  .explore-hud-actions { margin-left:0; }
  .explore-hud-bottom { bottom:max(12px,env(safe-area-inset-bottom)); }
  .explore-panel { padding:18px; }
  .explore-panel .explore-timeline { gap:12px; }
  .explore-equipped { right:12px; max-width:calc(100% - 24px); bottom:70px; }
}

/* Release-aware authoring: browse the complete world, edit one object at a time. */
.world-editor-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.world-editor-heading h2 { margin:5px 0; }
.world-editor-heading p { margin:5px 0 16px; color:var(--muted); }
.world-sections { display:flex; gap:8px; border-bottom:1px solid var(--line); padding:12px 0; flex-wrap:wrap; }
.world-sections button.active { background:#173357; border-color:var(--accent); }
.world-sections span { color:var(--accent-muted); margin-left:8px; }
.world-toolbar { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:12px 0 20px; }
.world-toolbar h3,.world-toolbar p { margin:0 0 6px; }
.world-toolbar>div { flex:1; }
.world-samples { margin-left:auto; max-width:280px; }
.world-samples summary,.world-advanced summary { cursor:pointer; color:var(--muted); font-size:13px; }
.explore-editor-layout { grid-template-columns:240px minmax(0,1fr); align-items:start; }
.explore-editor-list { max-height:75vh; overflow:auto; padding-right:8px; }
.explore-editor-list [data-world-entry] { display:grid; gap:5px; padding:12px 12px 12px calc(12px + var(--world-depth,0)*12px); min-width:0; overflow-wrap:anywhere; }
.explore-editor-list [data-world-entry][hidden] { display:none; }
.explore-editor-list [data-world-entry].active { background:#14263c; box-shadow:inset 3px 0 var(--accent); }
.explore-editor-list small { display:block; font-size:11px; color:var(--muted); }
.explore-editor-list .field { margin:0 0 8px; }
.world-inspector { min-width:0; }
.world-version-note { border-left:3px solid var(--accent); padding:12px 16px; background:#142237; margin-bottom:20px; }
.world-version-note strong,.world-version-note span { display:block; }
.world-version-note span { color:var(--accent-muted); font-size:12px; margin-top:4px; }
.world-version-note p { color:var(--muted); font-size:13px; margin:8px 0; }
.world-fields { border:1px solid var(--line); border-radius:8px; padding:20px; margin:20px 0 0; min-width:0; }
.world-fields legend { font-weight:600; padding:0 8px; }
.world-fields:disabled input,.world-fields:disabled select,.world-fields:disabled textarea { opacity:.65; }
.world-visual-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.world-advanced { margin:18px 0; }
.world-advanced p { overflow-wrap:anywhere; }
.world-art-preview { width:100%; max-height:220px; object-fit:contain; grid-column:1/-1; background:var(--bg); }
.world-guidance { padding:12px 16px; border:1px solid #526780; border-radius:6px; margin:12px 0; color:var(--muted); }
.world-guidance ul { margin:8px 0 0; padding-left:20px; }
#world-locations-section[hidden],#explore-content-editor[hidden] { display:none; }
@media(max-width:1100px) {
  .explore-editor-layout { grid-template-columns:1fr; }
  .explore-editor-list { max-height:260px; }
  .world-editor-heading { align-items:flex-start; flex-wrap:wrap; }
}
@media(max-width:600px) {
  .world-fields { padding:12px; }
  .world-samples { margin-left:0; }
  .world-sections button { flex:1; padding:8px; }
}
.explore-editor-fields .field { margin:0; }
.world-connections { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:14px 0; font-size:13px; }
.world-connections strong { margin-right:4px; }
.world-inspector>#content-connections { margin-bottom:14px; }
.explore-editor .field[hidden] { display:none; }
