#explore-root[hidden], #explore-retreat[hidden] { display: none !important; }
#explore-root { position: fixed; inset: 0; z-index: 90; overflow: auto; color: #f0eee6; background: linear-gradient(90deg,rgba(9,18,26,.97),rgba(9,18,26,.72)),url('../assets/story/backgrounds/prologue/touto_outskirts-v2.webp') center/cover; font-family: system-ui,sans-serif; padding: max(18px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left)); box-sizing: border-box; }
.explore-shell { max-width: 1100px; margin: auto; }
.explore-kicker { color: #d9ba76; letter-spacing: .2em; font-size: 12px; }
#explore-root h1 { font-size: clamp(24px,4vw,42px); margin: 8px 0; }
#explore-root p { line-height: 1.8; }
.explore-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; margin-top: 22px; }
.explore-nodes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#explore-root button, #explore-retreat, #chapter2-entry { color: #eee8d8; background: #182a36; border: 1px solid #65808a; border-radius: 6px; padding: 12px 16px; cursor: pointer; font: inherit; min-height: 44px; }
#explore-root button:hover, #explore-root button:focus-visible { background: #294555; outline: 2px solid #d9ba76; }
#explore-root button[aria-pressed=true] { border-color: #d9ba76; background: #30414a; }
#explore-root button:disabled { opacity: .5; cursor: default; }
.explore-node { text-align: left; min-height: 90px !important; }
.explore-node small { display: block; margin-top: 8px; color: #b7c5c8; }
.explore-panel { padding: 20px; border: 1px solid #52636b; background: #101e28e8; border-radius: 8px; }
#explore-status { color: #d9ba76; font-size: 14px; }
#explore-message { min-height: 72px; white-space: pre-line; }
#explore-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#explore-retreat { position: fixed; top: max(12px,env(safe-area-inset-top)); left: max(12px,env(safe-area-inset-left)); z-index: 110; }
#chapter2-entry { position: relative; z-index: 5; pointer-events: auto; margin-top: 22px; }
@media(max-height:500px) { #explore-root { padding-top:12px; } .explore-layout { margin-top:10px; gap:14px; } .explore-panel { padding:12px; } #explore-root h1 { font-size:24px; } .explore-node { min-height:65px !important; } #explore-message { min-height:48px; } }
@media(max-width:600px) and (orientation:portrait) { .explore-layout { grid-template-columns:1fr; } }
