:root { --c: #8fdcff; --c2: #ffb35a; --dim: rgba(190,220,240,0.55); --font: "Helvetica Neue", "Hiragino Sans", "Noto Sans JP", Arial, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; color: #dfeeff; font-family: var(--font); overflow: hidden; user-select: none; -webkit-user-select: none; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
.screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 20; }
#title { background: radial-gradient(ellipse at 50% 60%, rgba(0,0,0,0.0), rgba(0,0,0,0.75) 80%); }
.title-inner { text-align: center; }
.eyebrow { font-size: 11px; letter-spacing: 0.45em; color: var(--dim); margin-bottom: 26px; }
#title h1 { font-size: clamp(48px, 9vw, 120px); font-weight: 200; letter-spacing: 0.32em; margin: 0 0 8px 0.32em; color: #f2f8ff; text-shadow: 0 0 40px rgba(143,220,255,0.35); animation: glow 5s ease-in-out infinite; }
@keyframes glow { 0%,100% { text-shadow: 0 0 40px rgba(143,220,255,0.25); } 50% { text-shadow: 0 0 70px rgba(143,220,255,0.6); } }
#title .sub { font-size: 16px; letter-spacing: 0.6em; color: var(--dim); margin: 0 0 56px 0.6em; }
button.primary { background: transparent; border: 1px solid rgba(143,220,255,0.55); color: #e8f6ff; padding: 16px 54px; font-size: 15px; letter-spacing: 0.35em; cursor: pointer; font-family: var(--font); transition: all .3s; }
button.primary:hover { background: rgba(143,220,255,0.12); box-shadow: 0 0 30px rgba(143,220,255,0.35); border-color: #8fdcff; }
.hint { font-size: 11px; letter-spacing: 0.2em; color: rgba(190,220,240,0.4); margin-top: 28px; }
.title-foot { position: absolute; bottom: 22px; width: 100%; text-align: center; font-size: 10px; letter-spacing: 0.25em; color: rgba(190,220,240,0.3); }
h2 { font-weight: 200; letter-spacing: 0.4em; font-size: 40px; }

#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; font-size: 12px; letter-spacing: 0.12em; }
#vignette { position: absolute; inset: 0; box-shadow: inset 0 0 180px rgba(0,0,0,0.55); }
.hud-block { margin-bottom: 18px; }
.hud-block.right { text-align: right; }
.lbl { font-size: 9px; letter-spacing: 0.4em; color: rgba(143,220,255,0.55); margin-bottom: 4px; }
.val { font-size: 13px; color: #e8f6ff; letter-spacing: 0.15em; }
.val.big { font-size: 34px; font-weight: 200; letter-spacing: 0.05em; }
.val.small { font-size: 10px; color: var(--dim); }
.unit { font-size: 9px; color: var(--dim); letter-spacing: 0.3em; }
#hud-tl { position: absolute; top: 28px; left: 32px; }
#hud-tr { position: absolute; top: 28px; right: 32px; }
#hud-bl { position: absolute; bottom: 28px; left: 32px; }
#hud-br { position: absolute; bottom: 28px; right: 32px; }
.bar { width: 160px; height: 3px; background: rgba(143,220,255,0.15); margin: 6px 0; position: relative; }
.hud-block.right .bar { margin-left: auto; }
.bar > div { height: 100%; background: var(--c); width: 0%; box-shadow: 0 0 8px rgba(143,220,255,0.6); transition: width .15s; }
#fold-bar { background: var(--c2); box-shadow: 0 0 8px rgba(255,179,90,0.6); }
#reticle { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 26px; height: 26px; opacity: 0; transition: opacity .4s; }
#reticle .r1 { position: absolute; inset: 0; border: 1px solid rgba(143,220,255,0.7); border-radius: 50%; }
#reticle .r2 { position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px; background: #fff; border-radius: 50%; }
#hud.pilot #reticle { opacity: 1; }
#hud-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
#scan-ring { width: 120px; height: 120px; opacity: 0; transition: opacity .3s; position: relative; }
#scan-ring.on { opacity: 1; }
#scan-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
#scan-ring circle { fill: none; stroke: rgba(143,220,255,0.2); stroke-width: 1.2; }
#scan-ring #scan-arc { stroke: #ffb35a; stroke-width: 2; stroke-dasharray: 289; stroke-dashoffset: 289; filter: drop-shadow(0 0 6px rgba(255,179,90,0.8)); }
#scan-txt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 9px; letter-spacing: 0.4em; color: var(--c2); }
#prompt { position: absolute; left: 50%; bottom: 20%; transform: translateX(-50%); font-size: 13px; letter-spacing: 0.25em; color: #e8f6ff; opacity: 0; transition: opacity .25s; white-space: nowrap; }
#prompt.on { opacity: 1; }
#prompt b { display: inline-block; border: 1px solid rgba(143,220,255,0.6); padding: 2px 7px; margin-right: 10px; font-weight: 400; font-size: 11px; }
#objective { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: 0.35em; color: rgba(232,246,255,0.75); opacity: 0; transition: opacity 1.2s; }
#objective.on { opacity: 1; }
#toast { position: absolute; left: 50%; top: 32%; transform: translateX(-50%); text-align: center; opacity: 0; transition: opacity .8s; }
#toast.on { opacity: 1; }
#toast .t1 { font-size: 10px; letter-spacing: 0.5em; color: var(--c2); margin-bottom: 8px; }
#toast .t2 { font-size: 24px; font-weight: 200; letter-spacing: 0.3em; color: #fff; }
#marker { position: absolute; left: -100px; top: -100px; transform: translate(-50%, -50%); text-align: center; opacity: 0; transition: opacity .3s; }
#marker.on { opacity: 1; }
#marker .diamond { width: 12px; height: 12px; border: 1px solid var(--c2); transform: rotate(45deg); margin: 0 auto 6px; box-shadow: 0 0 10px rgba(255,179,90,0.6); }
#marker .mlbl { font-size: 10px; letter-spacing: 0.25em; color: var(--c2); white-space: nowrap; }

#fade { position: fixed; inset: 0; background: #000; opacity: 1; pointer-events: none; z-index: 30; transition: opacity 1.5s; }
#letterbox { position: fixed; inset: 0; pointer-events: none; z-index: 25; }
#letterbox .lb { position: absolute; left: 0; right: 0; height: 0; background: #000; transition: height 1.2s ease-in-out; }
#letterbox .lb.top { top: 0; } #letterbox .lb.bot { bottom: 0; }
#letterbox.on .lb { height: 11vh; }
#subtitle { position: fixed; left: 50%; bottom: 16vh; transform: translateX(-50%); font-size: 18px; letter-spacing: 0.2em; color: #f2f8ff; text-shadow: 0 2px 12px rgba(0,0,0,0.9); opacity: 0; transition: opacity .8s; z-index: 26; white-space: nowrap; }
#subtitle.on { opacity: 1; }

#codex, #map, #pause { background: rgba(0,4,10,0.86); backdrop-filter: blur(6px); }
.codex-inner, .map-inner { width: min(760px, 90vw); max-height: 80vh; overflow-y: auto; }
.entry { border-left: 1px solid rgba(143,220,255,0.35); padding: 10px 18px; margin: 14px 0; }
.entry .h { font-size: 12px; letter-spacing: 0.3em; color: var(--c2); margin-bottom: 6px; }
.entry .b { font-size: 14px; line-height: 1.9; color: rgba(232,246,255,0.85); }
.entry.locked { opacity: 0.35; }
.map-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; margin: 6px 0; border: 1px solid rgba(143,220,255,0.15); cursor: pointer; pointer-events: auto; transition: all .2s; }
.map-row:hover { background: rgba(143,220,255,0.08); border-color: rgba(143,220,255,0.5); }
.map-row .n { font-size: 15px; letter-spacing: 0.25em; }
.map-row .d { font-size: 11px; color: var(--dim); letter-spacing: 0.15em; }
.map-row .tag { font-size: 10px; color: var(--c2); letter-spacing: 0.3em; }
.map-row.current { border-color: rgba(255,179,90,0.5); }
#pause button { pointer-events: auto; }

/* 2026-09-07 操作案内 */
#lockhint { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); font-size: 14px; letter-spacing: 0.18em; color: #fff; background: rgba(8,14,24,0.72); border: 1px solid rgba(143,220,255,0.55); padding: 12px 22px; opacity: 0; transition: opacity .25s; white-space: nowrap; pointer-events: none; z-index: 30; }
#lockhint span { color: #8fdcff; margin-left: 6px; font-size: 12px; }
#lockhint.on { opacity: 1; }
#skiphint { position: absolute; right: 24px; bottom: 24px; font-size: 11px; letter-spacing: 0.22em; color: rgba(232,246,255,0.7); opacity: 0; transition: opacity .3s; z-index: 30; pointer-events: none; }
#skiphint b { display: inline-block; border: 1px solid rgba(143,220,255,0.5); padding: 2px 7px; margin-right: 8px; font-weight: 400; }
#skiphint.on { opacity: 1; }
