@charset "UTF-8";
.survival-page { --pivot-x: -40vw; --pivot-y: 50vh; }
.survival-back { position: absolute; z-index: 210; top: 1.3vh; left: 2.5vw; padding: .2em .6em; font-size: clamp(22px,2.5vw,38px); transform: rotate(-8deg); }
.survival-title { position: absolute; z-index: 170; top: 3vh; left: 40vw; margin: 0; font-size: clamp(34px,4.5vw,70px); transform: rotate(-8deg); }
.survival-title button { font-weight: 900; }
.survival-nav { position: absolute; inset: 0; z-index: 140; pointer-events: none; }
.survival-nav button { position: absolute; width: 21vw; height: 10vh; min-height: 38px; pointer-events: auto; font-size: clamp(24px,3.2vw,48px); font-weight: bold; transform-origin: 50% 50%; }
.survival-nav button::before { content: ""; position: absolute; inset: -24% -4%; background: url('../assets/paper/submenu-strip.png?v=20260916-img1') center / 100% 100% no-repeat; z-index: -1; }
.survival-nav button[aria-selected="true"] { translate: 14px 0; color: #9c533b; }
.survival-nav button { transition: translate .16s ease; }
.survival-stage { position: absolute; inset: 0; overflow: clip; touch-action: pan-y; }
.survival-sheet { position: absolute; inset: 0; transform-origin: var(--pivot-x) var(--pivot-y); transform: rotate(var(--page-angle,0deg)); opacity: var(--page-opacity,0); pointer-events: none; will-change: transform, opacity; }
.survival-sheet.is-active { z-index: 110; }
.page-window { position: absolute; inset: 0; width: 100%; height: 100%; isolation: isolate; z-index: 1; }
.radial-paper { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.survival-content { position: absolute; inset: 8% 16% 7% 7%; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; overscroll-behavior: contain; padding: 1vh 1vw 2vh; font-family: 'KaiTi','STKaiti','楷体',serif; font-size: clamp(17px,1.55vw,25px); line-height: 1.65; }
.survival-content::-webkit-scrollbar { display: none; }
.survival-content.radial-reading { padding: 0; overflow-anchor: none; }
.radial-scroll-space { position: relative; width: 100%; overflow: clip; }
.radial-content-plane { position: absolute; transform-origin: 0 0; }
.radial-content-plane > :first-child { margin-top: 0; }
.radial-glyph { display: inline-block; transform-origin: 50% 50%; }
.radial-word { display: inline-block; white-space: nowrap; }
.radial-space { width: .32em; white-space: pre; }
.radial-source-image { opacity: 0; }
.radial-media-canvas { position: absolute; }
.radial-arg-overlay { z-index: 5; }
.radial-reading .arg-special.reveal::before { display: none; }
.radial-reading .overview-facts div { border-top: 0; }
.is-active .survival-content { pointer-events: auto; }
.survival-content:focus-visible { outline: 1px dashed var(--rust); outline-offset: 1px; }
.survival-content h2 { font-size: 1.5em; line-height: 1.3; margin: .2em 0 .65em; }
.survival-content h3 { font-size: 1.13em; line-height: 1.4; margin: .8em 0 .35em; }
.survival-content p { margin: .6em 0; }
.survival-content ol, .survival-content ul { padding-left: 1.4em; margin: .6em 0; }
.survival-content li { margin-bottom: .6em; }
.survival-content code { font: .83em/1.6 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; color: #744737; }
.survival-content a { text-decoration: underline; text-underline-offset: .2em; }
.overview-map, .landmark-item > img { display: block; width: 100%; height: auto; object-fit: cover; }
.overview-map { max-height: 23vh; margin: .5em 0 1em; object-position: center; }
.overview-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .65em 1em; margin: 1em 0; }
.overview-facts div { border-top: 2px solid #8c7c64; padding-top: .45em; }
.overview-facts dt { color: #746650; font-size: .85em; }
.overview-facts dd { margin: .15em 0 0; overflow-wrap: anywhere; }
.landmark-item { margin: 0; }
.landmark-item[hidden], .page-arrow[hidden] { display: none; }
.landmark-item > img { max-height: 29vh; }
.landmark-item > .arg-card-hst { display: none; }
.landmark-item.reveal { cursor: pointer; color: #713b4d; }
.arg-special { position: relative; }
.arg-special:hover { box-shadow: 0 0 12px #ff00644d; }
.arg-special.reveal::before { content: ""; position: absolute; inset: 0; background: url('../images/hst.png') center / cover no-repeat; z-index: 2; pointer-events: none; animation: arg-reveal .8s ease both; }
.arg-special.reveal .landmark-content { background: linear-gradient(to top,#000d,#0008,#0005); }
.arg-special.reveal .landmark-content h3, .arg-special.reveal .landmark-content p { position: relative; animation: arg-glitch .25s steps(1) infinite; }
@keyframes arg-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes arg-glitch {
  0%,100% { transform: translate(0,0); color: #fff; text-shadow: none; }
  20% { transform: translate(2px,-1px); color: #0ff; text-shadow: 1px 0 #0f0; }
  40% { transform: translate(1px,-2px); color: #f0c; text-shadow: 0 1px #0f0; }
  60% { transform: translate(2px,2px); color: #f55; text-shadow: 1px 1px #f0a; }
  80% { transform: translate(1px,-1px); color: #ff5; text-shadow: 1px -1px #f50; }
}
.page-arrow { position: absolute; z-index: 210; top: 39vh; width: clamp(40px,5.5vw,84px); aspect-ratio: 1; padding: 0; transform: rotate(-5deg); }
.page-arrow img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.page-arrow--previous { left: 37vw; }
.page-arrow--next { right: 10vw; top: 32vh; }
.page-arrow:disabled { opacity: .28; cursor: default; }
.content-rail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; }
.content-rail-track, .content-rail-thumb { fill: none; stroke: var(--ink); stroke-linecap: round; }
.content-rail-track { stroke-width: 5; }
.content-rail-thumb { stroke: var(--rust); stroke-width: 11; }
.content-rail-hit { fill: none; stroke: transparent; stroke-width: 32; }
.is-active .content-rail-hit, .is-active .content-rail-thumb { pointer-events: stroke; cursor: grab; touch-action: none; }
.content-rail-control:focus-visible .content-rail-thumb { stroke: #e4ae82; }
.content-rail-control:focus, .survival-page #rail-drag:focus { outline: none; }
.content-rail-control[aria-disabled="true"] { opacity: .28; }
.content-rail-control[aria-disabled="true"] .content-rail-hit, .content-rail-control[aria-disabled="true"] .content-rail-thumb { pointer-events: none; }
.survival-page .record-player { width: clamp(170px,29vw,430px); }
.survival-access { position: absolute; right: 9vw; bottom: 2vh; display: flex; align-items: center; gap: 1.5vw; pointer-events: auto; }
.survival-access a { font-size: clamp(18px,2vw,28px); transform: rotate(-6deg); }
#hstEntry img { width: clamp(26px,3vw,45px); height: clamp(26px,3vw,45px); object-fit: contain; }
@media (orientation: portrait) {
  .survival-page { --pivot-x: -100vw; }
  .survival-back { top: 1vh; left: 2vw; font-size: 24px; }
  .survival-title { top: 6vh; left: 34vw; font-size: 38px; }
  .survival-nav button { width: 28vw; height: 6vh; font-size: 24px; }
  .survival-content { inset: 8% 17% 6% 6%; padding: .5vh 1vw 2vh; font-size: 16px; line-height: 1.6; }
  .survival-content h2 { font-size: 23px; }
  .overview-map { max-height: 17vh; }
  .overview-facts { display: block; }
  .overview-facts div { margin-bottom: .65em; }
  .page-arrow { width: 9vw; min-width: 30px; transform: rotate(-3deg); }
  .page-arrow--previous { left: 30vw; top: 44vh; }
  .page-arrow--next { right: 6vw; top: 32vh; }
  .survival-page .record-player { width: 44vw; }
  .content-rail-track { stroke-width: 3; }
  .content-rail-thumb { stroke-width: 7; }
  .content-rail-hit { stroke-width: 19; }
  .survival-access { right: 12vw; bottom: 4vh; gap: 5vw; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .survival-title { font-size: 10vh; top: 1vh; }
  .survival-content { font-size: 15px; }
  .survival-nav button { font-size: 7vh; }
  .survival-page .record-player { width: 40vh; }
}
@media (prefers-reduced-motion: reduce) { .survival-sheet { will-change: auto; } .arg-special.reveal::before, .arg-special.reveal .landmark-content h3, .arg-special.reveal .landmark-content p { animation: none; } }
