:root {
  --night: #101820;
  --night-soft: #17242c;
  --slate: #26343c;
  --mist: #c8d0d4;
  --paper: #f2f4f5;
  --muted: #8d9aa3;
  --rain: #71838c;
  --water: #303f44;
  --mud: #3a403c;
  --mud-light: #70756e;
  --amber: #d8b45f;
  --amber-soft: #ead49a;
  --danger: #d47761;
  --safe: #83b693;
  --line: rgba(255, 255, 255, 0.10);
  --panel: rgba(18, 29, 36, 0.82);
  --page-speed: 650ms;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

html {
  background: #0b1216;
}

body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 50% 8%, rgba(68, 83, 89, 0.3), transparent 42rem),
    #0b1216;
  font-family:
    "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Source Han Sans SC",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

button {
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.phone-shell {
  position: relative;
  width: min(100vw, 430px);
  height: 100vh;
  height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  overflow: clip;
  color: var(--paper);
  background: var(--night);
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.52);
  isolation: isolate;
  touch-action: none;
}

.story-track {
  --page-count: 9;
  --track-offset: 0svh;
  position: absolute;
  inset: 0;
  height: calc(var(--page-count) * 100vh);
  height: calc(var(--page-count) * 100svh);
  transform: translate3d(0, var(--track-offset), 0);
  transition: transform var(--page-speed) cubic-bezier(0.7, 0, 0.18, 1);
  will-change: transform;
}

.story-page {
  --scene-image: none;
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  background-color: var(--night);
  isolation: isolate;
}

.story-page .page,
.story-page .slide,
.story-page .section,
.story-page .screen,
.story-page .story-page {
  display: none !important;
}

.story-page::before,
.story-page::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.story-page::before {
  z-index: -3;
  background-image:
    linear-gradient(180deg, rgba(16, 24, 32, 0.22), rgba(16, 24, 32, 0.82)),
    var(--scene-image);
  background-position: center;
  background-size: cover;
  opacity: 0.72;
}

.story-page::after {
  z-index: -1;
  background:
    radial-gradient(ellipse at 18% 25%, rgba(199, 208, 212, 0.08), transparent 42%),
    radial-gradient(ellipse at 78% 62%, rgba(102, 116, 121, 0.08), transparent 46%),
    linear-gradient(112deg, transparent 0 45%, rgba(210, 220, 223, 0.025) 48%, transparent 51%);
  filter: blur(7px);
  opacity: 0.68;
}

.scene-artwork {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(
      180deg,
      rgba(16, 24, 32, 0.38) 0%,
      rgba(16, 24, 32, 0.12) 27%,
      rgba(16, 24, 32, 0.32) 58%,
      rgba(16, 24, 32, 0.78) 100%
    ),
    var(--scene-image);
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.025);
  transition:
    opacity 520ms ease,
    transform 1400ms ease;
  pointer-events: none;
}

.story-page.has-scene-image .scene-artwork {
  opacity: 0.78;
  transform: scale(1);
}

.story-page.has-scene-image .documentary-scene {
  opacity: 0.26;
}

.cover-page.has-scene-image .scene-artwork {
  background-position: 54% center;
  opacity: 0.82;
}

.water-page.has-scene-image .scene-artwork {
  background-position: 56% center;
  opacity: 0.72;
}

.call-page.has-scene-image .scene-artwork {
  background-position: 58% center;
  opacity: 0.68;
}

.transfer-page.has-scene-image .scene-artwork {
  background-position: 54% center;
  opacity: 0.7;
}

.shelter-page.has-scene-image .scene-artwork,
.rescue-page.has-scene-image .scene-artwork,
.risk-page.has-scene-image .scene-artwork,
.final-page.has-scene-image .scene-artwork {
  background-position: center;
  opacity: 0.7;
}

.warm-artwork {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(16, 24, 32, 0.25), rgba(16, 24, 32, 0.72)),
    var(--warm-image, none);
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 900ms ease;
  pointer-events: none;
}

.final-page.is-warm.has-warm-image .warm-artwork {
  opacity: 0.78;
}

.final-page.is-warm .scene-artwork {
  opacity: 0.18;
}

#refocus .focus-character-art {
  position: absolute;
  z-index: -1;
  right: -8%;
  bottom: 0;
  width: 68%;
  height: 48%;
  background-image:
    linear-gradient(180deg, rgba(7, 14, 20, 0) 0%, rgba(7, 14, 20, 0.08) 22%, rgba(7, 14, 20, 0.28) 100%),
    url("images/interview-focus-scene.jpg");
  background-repeat: no-repeat;
  background-position: 84% 78%;
  background-size: 215%;
  opacity: 0.78;
  filter: saturate(0.86) brightness(0.74);
  mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.35) 18%, rgba(0, 0, 0, 0.92) 40%, #000 58%);
  pointer-events: none;
}

.closing-page.has-warm-image .warm-artwork {
  opacity: 0.84;
}

.closing-page .scene-artwork {
  opacity: 0.16;
}

.documentary-scene {
  transition: opacity 520ms ease;
}

.page-content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding:
    max(66px, calc(env(safe-area-inset-top) + 54px))
    22px
    max(70px, calc(env(safe-area-inset-bottom) + 60px));
}

.page-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 560ms ease,
    transform 640ms cubic-bezier(0.22, 1, 0.36, 1);
}

.story-page.is-active .page-reveal {
  opacity: 1;
  transform: translateY(0);
}

.story-page.is-active .page-reveal:nth-child(2) {
  transition-delay: 90ms;
}

.story-page.is-active .page-reveal:nth-child(3) {
  transition-delay: 160ms;
}

.story-page.is-active .page-reveal:nth-child(4) {
  transition-delay: 230ms;
}

.story-page.is-active .page-reveal:nth-child(5) {
  transition-delay: 300ms;
}

.story-chrome {
  position: absolute;
  z-index: 50;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding:
    max(15px, env(safe-area-inset-top))
    18px
    10px;
  color: rgba(240, 244, 242, 0.72);
  background: linear-gradient(180deg, rgba(2, 8, 13, 0.72), transparent);
  pointer-events: none;
}

.story-brand {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.story-brand__mark {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--amber);
  box-shadow: 0 5px 0 rgba(239, 195, 109, 0.35);
}

.sound-toggle {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid rgba(220, 231, 233, 0.2);
  border-radius: 999px;
  color: rgba(240, 244, 242, 0.82);
  background: rgba(6, 17, 26, 0.38);
  cursor: pointer;
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.sound-toggle:disabled {
  opacity: 0.42;
  cursor: default;
}

.sound-toggle__wave {
  position: relative;
  display: block;
  width: 10px;
  height: 10px;
  border: 1px solid currentColor;
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
}

.sound-toggle.is-playing .sound-toggle__wave {
  color: var(--amber);
  animation: sound-pulse 1.2s ease-in-out infinite;
}

.sound-toggle__label {
  font-size: 10px;
}

.page-heading {
  position: relative;
}

.chapter-index,
.news-label,
.cover-kicker,
.section-tag,
.modal__kicker {
  margin: 0;
  color: var(--amber);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-heading h2 {
  margin: 7px 0 8px;
  color: #f2f4f5;
  font-size: clamp(25px, 7vw, 31px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.page-heading h2::after {
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 11px;
  background: linear-gradient(90deg, var(--amber), transparent);
  content: "";
}

.page-lead {
  max-width: 345px;
  margin: 0;
  color: #c8d0d4;
  font-size: 12px;
  line-height: 1.75;
  text-align: justify;
}

.page-subtitle {
  margin: 0 0 6px;
  color: var(--amber-soft);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}

.page-lead--compact {
  font-size: 10.5px;
  line-height: 1.62;
}

.chapter-quote {
  margin: 0;
  padding-left: 10px;
  border-left: 2px solid var(--amber);
  color: var(--amber-soft);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}

.compact-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.compact-heading h3 {
  margin: 4px 0 0;
  color: var(--paper);
  font-size: 12px;
}

.mini-action {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(216, 180, 95, 0.48);
  color: var(--amber-soft);
  background: rgba(216, 180, 95, 0.08);
  font-size: 9px;
  cursor: pointer;
}

.mini-action:disabled {
  opacity: 0.72;
}

/* Cover */

.cover-page::before {
  background-image:
    linear-gradient(180deg, rgba(23, 36, 44, 0.2), rgba(16, 24, 32, 0.68) 55%, rgba(18, 28, 34, 0.94)),
    radial-gradient(circle at 72% 58%, rgba(216, 180, 95, 0.1), transparent 10rem),
    var(--scene-image);
  opacity: 1;
}

.cover-page::after {
  background:
    linear-gradient(180deg, rgba(118, 137, 145, 0.06), rgba(16, 24, 32, 0.42)),
    repeating-linear-gradient(
      106deg,
      transparent 0 70px,
      rgba(193, 205, 209, 0.028) 72px 74px
    );
  filter: blur(3px);
}

.cover-content {
  justify-content: space-between;
  padding-top: max(80px, calc(env(safe-area-inset-top) + 68px));
}

.news-label {
  color: rgba(220, 231, 233, 0.66);
}

.cover-copy {
  margin-top: auto;
  margin-bottom: 7vh;
}

.cover-kicker {
  margin-bottom: 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.34em;
}

.cover-title {
  margin: 0;
  color: #f2f4f5;
  font-family: "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(45px, 13vw, 57px);
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.08;
  text-shadow: 0 5px 24px rgba(5, 11, 14, 0.48);
}

.cover-title-line {
  display: block;
  width: 84px;
  height: 3px;
  margin: 19px 0 17px;
  background: linear-gradient(90deg, var(--amber), rgba(239, 195, 109, 0));
}

.cover-subtitle {
  max-width: 325px;
  margin: 0;
  color: #c8d0d4;
  font-size: 13px;
  line-height: 1.8;
}

.cover-action {
  min-height: 106px;
  margin-bottom: 2.8vh;
}

.primary-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border: 1px solid rgba(239, 195, 109, 0.52);
  border-radius: 2px;
  color: #07131d;
  background: linear-gradient(100deg, #e6b85e, #f8d98f);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition:
    opacity 320ms ease,
    transform 320ms ease,
    filter 320ms ease;
}

.primary-button:active {
  transform: scale(0.985);
}

.button-arrow {
  font-size: 20px;
  line-height: 1;
}

.swipe-cue {
  display: none;
}

.sound-status {
  display: none;
}

.sound-status.is-visible {
  display: block;
}

.cover-page.is-entered .enter-button {
  opacity: 0;
  transform: translateY(9px);
  pointer-events: none;
}

.cover-page.is-entered .cover-copy {
  opacity: 0.48;
  transform: translateY(-7px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.cover-page.is-entered .sound-status.is-visible {
  margin: -38px 0 18px;
  color: var(--amber-soft);
  font-size: 12px;
  letter-spacing: 0.1em;
  animation: fade-in 480ms ease both;
}

.cover-page.is-entered .sound-status.is-error {
  color: #d9a89c;
  letter-spacing: 0;
}

.cover-page.is-entered .swipe-cue {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0;
  border: 0;
  color: rgba(230, 237, 237, 0.83);
  background: none;
  font-size: 12px;
  cursor: pointer;
  animation: fade-in 520ms 180ms ease both;
}

.swipe-cue__arrow {
  position: relative;
  width: 28px;
  height: 1px;
  background: var(--amber);
}

.swipe-cue__arrow::after {
  position: absolute;
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--amber);
  border-bottom: 1px solid var(--amber);
  content: "";
  transform: rotate(-45deg);
}

.cover-note {
  margin: 0;
  color: rgba(220, 231, 233, 0.38);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.rain-field {
  position: absolute;
  z-index: 2;
  inset: -20% 0 0;
  overflow: hidden;
  pointer-events: none;
}

.rain-drop {
  position: absolute;
  top: -18%;
  width: 1px;
  height: var(--drop-length, 62px);
  background: linear-gradient(transparent, rgba(186, 216, 226, 0.56));
  opacity: var(--drop-opacity, 0.42);
  transform: rotate(8deg);
  animation: rainfall var(--drop-speed, 1.1s) linear infinite;
  animation-delay: var(--drop-delay, 0s);
}

.documentary-scene {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.rain-haze {
  position: absolute;
  border-radius: 50%;
  background: rgba(177, 191, 197, 0.08);
  filter: blur(35px);
  opacity: 0.72;
}

.rain-haze--back {
  top: 8%;
  right: -25%;
  width: 88%;
  height: 34%;
}

.rain-haze--front {
  bottom: 19%;
  left: -35%;
  width: 115%;
  height: 28%;
  background: rgba(116, 130, 135, 0.11);
}

.village-silhouette {
  position: absolute;
  right: -5%;
  bottom: 18%;
  left: -5%;
  height: 25%;
  filter: blur(1.3px);
  opacity: 0.88;
}

.village-house {
  position: absolute;
  bottom: 0;
  display: block;
  border-radius: 2px 2px 0 0;
  background:
    linear-gradient(90deg, rgba(40, 52, 57, 0.98), rgba(25, 37, 43, 0.96));
  box-shadow: 0 16px 35px rgba(7, 13, 17, 0.55);
}

.village-house::before {
  position: absolute;
  right: -6%;
  bottom: 94%;
  left: -6%;
  height: 34%;
  border-radius: 3px 3px 0 0;
  background: #222f35;
  clip-path: polygon(5% 100%, 22% 20%, 78% 6%, 96% 100%);
  content: "";
}

.village-house::after {
  position: absolute;
  top: 27%;
  width: 7px;
  height: 5px;
  border-radius: 1px;
  background: rgba(216, 180, 95, 0.72);
  box-shadow: 0 0 14px rgba(216, 180, 95, 0.35);
  content: "";
}

.village-house--left {
  left: 0;
  width: 38%;
  height: 47%;
  opacity: 0.78;
}

.village-house--left::after {
  right: 24%;
}

.village-house--center {
  left: 31%;
  width: 35%;
  height: 65%;
}

.village-house--center::after {
  left: 27%;
}

.village-house--right {
  right: 0;
  width: 39%;
  height: 52%;
  opacity: 0.84;
}

.village-house--right::after {
  left: 42%;
}

.village-light {
  position: absolute;
  bottom: 29%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow:
    0 0 8px rgba(216, 180, 95, 0.75),
    0 0 20px rgba(216, 180, 95, 0.26);
  animation: light-flicker 2.8s ease-in-out infinite;
}

.village-light--one {
  left: 65%;
}

.village-light--two {
  right: 16%;
  bottom: 32%;
  animation-delay: 0.8s;
}

.village-light--three {
  left: 51%;
  bottom: 27%;
  animation-delay: 1.4s;
}

.puddle-reflection {
  position: absolute;
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      ellipse at center,
      rgba(196, 207, 209, 0.11) 0 1px,
      transparent 2px 9px
    ),
    linear-gradient(90deg, transparent, rgba(216, 180, 95, 0.09), transparent);
  filter: blur(1.5px);
  opacity: 0.68;
}

.puddle-reflection--cover {
  right: -12%;
  bottom: -3%;
  left: -12%;
  height: 23%;
  background:
    repeating-radial-gradient(
      ellipse at 55% 42%,
      rgba(190, 201, 204, 0.12) 0 1px,
      transparent 2px 13px
    ),
    linear-gradient(180deg, rgba(71, 84, 87, 0.18), rgba(27, 35, 37, 0.5));
  transform: scaleY(0.55);
}

/* Water page */

.water-page::before {
  background-image:
    linear-gradient(180deg, rgba(31, 45, 53, 0.34), rgba(16, 24, 32, 0.88)),
    radial-gradient(circle at 20% 20%, rgba(141, 154, 160, 0.1), transparent 13rem),
    var(--scene-image);
}

.flood-road-scene {
  background:
    linear-gradient(180deg, transparent 36%, rgba(26, 37, 42, 0.15) 48%, rgba(22, 30, 33, 0.58)),
    linear-gradient(158deg, transparent 0 42%, rgba(58, 64, 60, 0.36) 43% 100%);
}

.rain-haze--road {
  top: 19%;
  left: -20%;
  width: 120%;
  height: 25%;
}

.road-shoulder {
  position: absolute;
  bottom: -8%;
  width: 55%;
  height: 57%;
  background: linear-gradient(180deg, rgba(58, 64, 60, 0.2), rgba(33, 39, 38, 0.7));
  filter: blur(1px);
}

.road-shoulder--left {
  left: -18%;
  clip-path: polygon(0 100%, 100% 100%, 78% 0, 49% 0);
}

.road-shoulder--right {
  right: -18%;
  clip-path: polygon(0 100%, 100% 100%, 51% 0, 22% 0);
}

.roadside-house {
  position: absolute;
  bottom: 28%;
  width: 82px;
  height: 53px;
  border-radius: 2px;
  background: rgba(31, 42, 47, 0.9);
  filter: blur(1px);
  opacity: 0.74;
}

.roadside-house::before {
  position: absolute;
  right: -5px;
  bottom: 48px;
  left: -5px;
  height: 22px;
  background: #2b383e;
  clip-path: polygon(2% 100%, 25% 18%, 82% 10%, 98% 100%);
  content: "";
}

.roadside-house::after {
  position: absolute;
  top: 18px;
  width: 7px;
  height: 5px;
  background: rgba(216, 180, 95, 0.66);
  box-shadow: 0 0 12px rgba(216, 180, 95, 0.25);
  content: "";
}

.roadside-house--near {
  left: -9px;
}

.roadside-house--near::after {
  right: 17px;
}

.roadside-house--far {
  right: -7px;
  bottom: 35%;
  transform: scale(0.72);
  opacity: 0.52;
}

.roadside-house--far::after {
  left: 18px;
}

.road-lamp {
  position: absolute;
  right: 22%;
  bottom: 37%;
  width: 3px;
  height: 72px;
  background: rgba(121, 132, 132, 0.3);
}

.road-lamp::after {
  position: absolute;
  top: -4px;
  left: -1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 18px rgba(216, 180, 95, 0.55);
  content: "";
}

.puddle-reflection--road {
  right: -14%;
  bottom: 2%;
  left: -14%;
  height: 34%;
}

.water-content {
  gap: clamp(10px, 2vh, 18px);
}

.news-quote {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 10px 13px;
  border-left: 2px solid var(--amber);
  color: rgba(220, 231, 233, 0.72);
  background: linear-gradient(90deg, rgba(239, 195, 109, 0.08), transparent);
  font-size: 11px;
  line-height: 1.55;
}

.news-quote strong {
  color: var(--paper);
  font-size: 13px;
}

.news-quote em {
  color: var(--amber-soft);
  font-style: normal;
}

.water-stages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.water-stages li {
  position: relative;
  display: flex;
  min-height: 57px;
  flex-direction: column;
  gap: 6px;
  justify-content: flex-end;
  padding: 8px 5px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #8d9aa3;
  background: rgba(18, 29, 36, 0.72);
  font-size: 9px;
  line-height: 1.35;
  transition:
    color 360ms ease,
    border-color 360ms ease,
    background 360ms ease,
    transform 360ms ease;
}

.water-stages li span {
  width: 12px;
  height: 2px;
  background: currentColor;
}

.water-stages li.is-active {
  border-color: rgba(239, 195, 109, 0.46);
  color: var(--amber-soft);
  background: rgba(120, 91, 49, 0.23);
  transform: translateY(-4px);
}

.water-stages li.is-past {
  color: rgba(220, 231, 233, 0.75);
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.action-button {
  display: flex;
  min-height: 44px;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border: 1px solid rgba(239, 195, 109, 0.45);
  border-radius: 2px;
  color: #07131d;
  background: linear-gradient(110deg, #dfb45f, #f4d287);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.action-button--outline {
  color: rgba(240, 244, 242, 0.86);
  background: rgba(5, 19, 27, 0.62);
  backdrop-filter: blur(8px);
}

.action-button:disabled {
  opacity: 0.63;
  cursor: default;
}

.action-button__icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, serif;
}

.water-layer {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: -19%;
  left: 0;
  height: 51%;
  background:
    linear-gradient(180deg, rgba(103, 113, 108, 0.5), rgba(47, 57, 58, 0.88)),
    repeating-linear-gradient(
      176deg,
      transparent 0 28px,
      rgba(210, 216, 212, 0.07) 29px 31px
    );
  box-shadow: 0 -14px 40px rgba(113, 126, 123, 0.18);
  opacity: 0.66;
  transition: transform 4.1s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(43%);
  pointer-events: none;
}

.water-layer.is-rising {
  transform: translateY(-38%);
}

.water-wave {
  position: absolute;
  top: -11px;
  left: -10%;
  width: 120%;
  height: 25px;
  border-radius: 50%;
  background: rgba(166, 177, 172, 0.28);
  animation: water-sway 2.8s ease-in-out infinite alternate;
}

.water-wave--two {
  top: -5px;
  background: rgba(218, 222, 216, 0.1);
  animation-delay: -1.3s;
  transform: translateX(7%);
}

.water-level-mark {
  position: absolute;
  top: 16px;
  right: 17px;
  color: rgba(226, 238, 239, 0.58);
  font-size: 9px;
  letter-spacing: 0.16em;
}

/* Call page */

.call-page::before {
  background-image:
    linear-gradient(90deg, rgba(20, 30, 36, 0.32), rgba(16, 24, 32, 0.78)),
    var(--scene-image);
  opacity: 0.88;
}

.call-content {
  gap: clamp(7px, 1.4vh, 12px);
}

.doorway-scene {
  background:
    linear-gradient(90deg, rgba(32, 43, 48, 0.35), transparent 58%),
    linear-gradient(180deg, rgba(38, 52, 60, 0.14), rgba(23, 32, 36, 0.45));
}

.rain-haze--door {
  top: 12%;
  right: -26%;
  width: 95%;
  height: 38%;
}

.door-wall {
  position: absolute;
  top: 14%;
  right: -6%;
  width: 58%;
  height: 65%;
  border-left: 1px solid rgba(189, 199, 201, 0.08);
  background:
    linear-gradient(90deg, rgba(64, 73, 73, 0.18), rgba(33, 43, 47, 0.55));
  filter: blur(1px);
}

.door-eave {
  position: absolute;
  top: 19%;
  right: -4%;
  width: 64%;
  height: 22px;
  background: rgba(30, 39, 42, 0.88);
  box-shadow: 0 8px 18px rgba(9, 14, 16, 0.38);
  transform: skewX(-14deg);
}

.door-frame {
  position: absolute;
  top: 25%;
  right: 5%;
  width: 40%;
  height: 50%;
  border: 7px solid rgba(52, 61, 61, 0.84);
  border-bottom-width: 4px;
  background:
    linear-gradient(110deg, rgba(20, 27, 30, 0.86), rgba(46, 52, 51, 0.72));
  box-shadow:
    inset 14px 0 22px rgba(5, 9, 11, 0.45),
    0 18px 30px rgba(7, 12, 14, 0.28);
  filter: blur(0.5px);
}

.door-plate-shadow {
  position: absolute;
  top: 36%;
  right: 9%;
  width: 32px;
  height: 14px;
  border: 1px solid rgba(216, 180, 95, 0.18);
  background: rgba(25, 34, 37, 0.82);
  filter: blur(0.6px);
}

.puddle-reflection--door {
  right: -12%;
  bottom: 1%;
  left: 24%;
  height: 24%;
}

.flashlight-beam {
  position: absolute;
  z-index: 1;
  top: 19%;
  right: -10%;
  width: 79%;
  height: 52%;
  background: linear-gradient(270deg, rgba(229, 207, 149, 0.14), transparent 82%);
  clip-path: polygon(100% 28%, 0 0, 0 100%, 100% 72%);
  filter: blur(5px);
  opacity: 0.68;
  pointer-events: none;
}

.raincoat-silhouette {
  position: absolute;
  z-index: 1;
  right: -7px;
  bottom: 7%;
  width: 105px;
  height: 225px;
  opacity: 0.28;
  pointer-events: none;
}

.silhouette-head {
  position: absolute;
  top: 0;
  left: 31px;
  width: 49px;
  height: 45px;
  border-radius: 50% 50% 42% 42%;
  background: #030b10;
}

.silhouette-head::before {
  position: absolute;
  top: 28px;
  left: -14px;
  width: 76px;
  height: 22px;
  border-radius: 50%;
  background: #030b10;
  content: "";
}

.silhouette-body {
  position: absolute;
  top: 42px;
  left: 7px;
  width: 98px;
  height: 180px;
  background: linear-gradient(90deg, #02080c, #07151c);
  clip-path: polygon(28% 0, 73% 0, 100% 100%, 0 100%);
}

.call-statement {
  margin: 0;
  color: #aeb8bd;
  font-size: 11px;
  line-height: 1.6;
}

.call-statement strong {
  color: var(--amber-soft);
  font-size: 12px;
}

.call-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.call-card {
  position: relative;
  display: grid;
  min-height: 78px;
  gap: 4px;
  align-content: center;
  padding: 10px 11px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-left: 2px solid rgba(216, 180, 95, 0.42);
  border-radius: 1px;
  color: #e5e9ea;
  background: rgba(18, 29, 36, 0.82);
  box-shadow: 0 10px 24px rgba(4, 10, 13, 0.12);
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition:
    border-color 300ms ease,
    background 300ms ease,
    transform 300ms ease;
}

.call-card::after {
  position: absolute;
  right: 10px;
  bottom: 9px;
  width: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.13);
  content: "";
}

.call-card:active {
  transform: scale(0.98);
}

.call-card__number {
  color: var(--amber);
  font-family: Georgia, serif;
  font-size: 9px;
  letter-spacing: 0.15em;
}

.call-card strong {
  font-size: 13px;
  font-weight: 600;
}

.call-card__status {
  color: rgba(220, 231, 233, 0.47);
  font-size: 9px;
}

.call-card.is-called {
  border-color: rgba(131, 182, 147, 0.65);
  border-left-color: rgba(131, 182, 147, 0.82);
  background: rgba(27, 48, 42, 0.86);
}

.call-card.is-called .call-card__status {
  color: #a9dab6;
}

.call-card.is-called::before {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #a9dab6;
  content: "✓";
  font-size: 14px;
}

.call-progress {
  margin-top: auto;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(18, 29, 36, 0.82);
  backdrop-filter: blur(8px);
}

.call-progress__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: rgba(220, 231, 233, 0.67);
  font-size: 10px;
}

.call-progress__meta strong {
  color: var(--amber-soft);
  font-family: Georgia, serif;
  font-size: 13px;
}

.call-progress__track {
  height: 4px;
  overflow: hidden;
  background: rgba(220, 231, 233, 0.12);
}

.call-progress__track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--safe));
  box-shadow: 0 0 10px rgba(239, 195, 109, 0.45);
  transition: width 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.call-complete {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  color: rgba(220, 231, 233, 0.74);
  font-size: 9px;
  line-height: 1.55;
  opacity: 0;
  transition:
    max-height 420ms ease,
    margin 420ms ease,
    opacity 420ms ease;
}

.call-complete.is-visible {
  max-height: 45px;
  margin-top: 9px;
  opacity: 1;
}

/* Transfer page */

.transfer-page::before {
  background-image:
    linear-gradient(180deg, rgba(34, 47, 54, 0.28), rgba(16, 24, 32, 0.9)),
    radial-gradient(circle at 75% 35%, rgba(216, 180, 95, 0.06), transparent 12rem),
    var(--scene-image);
}

.map-wash {
  background:
    radial-gradient(ellipse at 18% 26%, rgba(102, 114, 116, 0.17), transparent 34%),
    radial-gradient(ellipse at 82% 72%, rgba(77, 88, 89, 0.19), transparent 42%),
    linear-gradient(180deg, rgba(38, 52, 60, 0.08), rgba(37, 46, 47, 0.3));
}

.rain-haze--map {
  top: 3%;
  right: -32%;
  width: 120%;
  height: 35%;
}

.map-water-stain {
  position: absolute;
  border: 1px solid rgba(174, 185, 184, 0.05);
  border-radius: 48% 52% 61% 39% / 42% 37% 63% 58%;
  background: rgba(67, 77, 77, 0.08);
  filter: blur(1px);
}

.map-water-stain--one {
  top: 13%;
  left: -10%;
  width: 62%;
  height: 31%;
  transform: rotate(-12deg);
}

.map-water-stain--two {
  right: -19%;
  bottom: 12%;
  width: 74%;
  height: 34%;
  transform: rotate(14deg);
}

.map-road-trace {
  position: absolute;
  height: 2px;
  border-radius: 50%;
  background: rgba(173, 183, 181, 0.08);
  filter: blur(0.4px);
  transform-origin: left center;
}

.map-road-trace--one {
  top: 28%;
  left: 2%;
  width: 74%;
  transform: rotate(17deg);
}

.map-road-trace--two {
  right: -5%;
  bottom: 31%;
  width: 69%;
  transform: rotate(-24deg);
}

.puddle-reflection--map {
  right: -20%;
  bottom: -3%;
  left: -20%;
  height: 21%;
}

.transfer-content {
  gap: clamp(7px, 1.3vh, 11px);
}

.transfer-statement {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 6px;
  margin: 0;
  color: rgba(220, 231, 233, 0.64);
  font-size: 11px;
}

.transfer-statement strong {
  color: var(--amber-soft);
  font-weight: 600;
}

.quiz-card,
.route-card {
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(18, 29, 36, 0.82);
  backdrop-filter: blur(9px);
}

.quiz-card {
  padding: 10px 11px;
}

.quiz-card h3,
.route-card h3 {
  margin: 4px 0 8px;
  color: rgba(244, 247, 245, 0.94);
  font-size: 12px;
  font-weight: 600;
}

.quiz-options {
  display: grid;
  gap: 5px;
}

.quiz-option {
  display: flex;
  min-height: 29px;
  gap: 8px;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid rgba(220, 231, 233, 0.11);
  color: rgba(220, 231, 233, 0.72);
  background: rgba(20, 45, 55, 0.42);
  font-size: 10px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 260ms ease,
    color 260ms ease,
    background 260ms ease;
}

.quiz-option span {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 9px;
}

.quiz-option.is-correct {
  border-color: rgba(131, 182, 147, 0.7);
  color: #bce2c6;
  background: rgba(45, 91, 66, 0.54);
}

.quiz-option.is-wrong {
  border-color: rgba(212, 119, 97, 0.65);
  color: #edb3a5;
  background: rgba(105, 50, 43, 0.45);
}

.quiz-feedback {
  min-height: 26px;
  margin: 7px 0 0;
  color: rgba(220, 231, 233, 0.55);
  font-size: 9px;
  line-height: 1.45;
}

.quiz-feedback.is-correct {
  color: #bce2c6;
}

.quiz-feedback.is-wrong {
  color: #edb3a5;
}

.route-card {
  padding: 9px 11px 11px;
}

.route-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.route-heading > span {
  margin-top: 2px;
  color: rgba(220, 231, 233, 0.36);
  font-size: 8px;
}

.route-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  min-height: 75px;
  align-items: end;
}

.route-line {
  position: absolute;
  z-index: 0;
  top: 20px;
  right: 15%;
  left: 15%;
  height: 2px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--amber) 0 8px,
      transparent 8px 14px
    );
  box-shadow: none;
  opacity: 0.58;
}

.route-point {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 0;
  border: 0;
  color: rgba(220, 231, 233, 0.74);
  background: none;
  cursor: pointer;
}

.route-point::before {
  display: block;
  width: 12px;
  height: 12px;
  margin-bottom: 7px;
  border: 2px solid var(--amber);
  border-radius: 50%;
  background: var(--night);
  box-shadow:
    0 0 0 4px rgba(216, 180, 95, 0.07),
    0 0 8px rgba(216, 180, 95, 0.18);
  content: "";
}

.route-point__pulse {
  position: absolute;
  top: -5px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(216, 180, 95, 0.18);
  border-radius: 50%;
  opacity: 0.34;
}

.route-point strong {
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.route-point small {
  color: rgba(220, 231, 233, 0.35);
  font-size: 8px;
}

.route-point.is-active {
  color: var(--amber-soft);
}

.route-point.is-active::before {
  background: var(--amber);
}

.fact-note {
  margin: auto 0 0;
  color: rgba(220, 231, 233, 0.36);
  font-size: 8px;
  text-align: center;
}

/* Shelter page */

.shelter-page::before {
  background-image:
    linear-gradient(180deg, rgba(25, 38, 45, 0.32), rgba(16, 24, 32, 0.9)),
    radial-gradient(circle at 74% 38%, rgba(216, 180, 95, 0.18), transparent 12rem),
    var(--scene-image);
}

.shelter-scene {
  background:
    linear-gradient(180deg, rgba(35, 49, 56, 0.1), rgba(16, 24, 32, 0.52)),
    radial-gradient(circle at 78% 44%, rgba(216, 180, 95, 0.13), transparent 25%);
}

.shelter-window {
  position: absolute;
  top: 21%;
  right: 7%;
  width: 42%;
  height: 30%;
  border: 8px solid rgba(36, 45, 45, 0.84);
  background: linear-gradient(145deg, rgba(216, 180, 95, 0.36), rgba(91, 73, 43, 0.12));
  box-shadow: 0 0 45px rgba(216, 180, 95, 0.16);
  opacity: 0.7;
}

.shelter-light {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 20px rgba(216, 180, 95, 0.75);
}

.shelter-light--one {
  top: 28%;
  right: 25%;
}

.shelter-light--two {
  right: 11%;
  bottom: 28%;
}

.supply-box {
  position: absolute;
  right: 4%;
  bottom: 13%;
  width: 57px;
  height: 38px;
  border: 1px solid rgba(216, 180, 95, 0.22);
  background: rgba(92, 77, 55, 0.35);
}

.supply-box--two {
  right: 17%;
  bottom: 9%;
  transform: scale(0.82);
}

.puddle-reflection--shelter {
  right: -16%;
  bottom: -4%;
  left: -16%;
  height: 25%;
}

.shelter-content,
.rescue-content,
.risk-content,
.final-content {
  gap: clamp(7px, 1.2vh, 11px);
}

.registration-card,
.rescue-progress,
.risk-map,
.focus-choice,
.refocus-stage {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(18, 29, 36, 0.84);
  backdrop-filter: blur(9px);
}

.registration-card {
  padding: 10px;
  overflow: hidden;
}

.registration-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 8px;
}

.registration-item {
  display: flex;
  min-height: 31px;
  align-items: center;
  justify-content: space-between;
  padding: 6px 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  background: rgba(14, 25, 31, 0.58);
  font-size: 9px;
  transition: 320ms ease;
}

.registration-item strong {
  font-size: 8px;
  font-weight: 500;
}

.registration-item.is-complete {
  border-color: rgba(216, 180, 95, 0.38);
  color: var(--paper);
  background: rgba(101, 78, 38, 0.27);
}

.registration-item.is-complete strong {
  color: var(--amber-soft);
}

.registration-item.is-complete::before {
  margin-right: 3px;
  color: var(--amber);
  content: "✓";
}

.registration-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width 420ms ease;
}

.shelter-tasks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.shelter-task {
  display: grid;
  min-height: 52px;
  grid-template-columns: auto 1fr;
  gap: 3px 7px;
  align-content: center;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 2px solid rgba(216, 180, 95, 0.44);
  color: var(--paper);
  background: var(--panel);
  text-align: left;
  cursor: pointer;
  transition: 280ms ease;
}

.task-index {
  color: var(--amber);
  font-family: Georgia, serif;
  font-size: 8px;
}

.shelter-task strong {
  font-size: 10px;
}

.task-detail {
  grid-column: 1 / -1;
  max-height: 0;
  overflow: hidden;
  color: var(--mist);
  font-size: 8px;
  line-height: 1.45;
  opacity: 0;
  transition: 280ms ease;
}

.shelter-task.is-expanded {
  border-color: rgba(216, 180, 95, 0.48);
  background: rgba(83, 65, 36, 0.4);
}

.shelter-task.is-expanded .task-detail {
  max-height: 45px;
  margin-top: 3px;
  opacity: 1;
}

/* Continued rescue */

.rescue-page::before {
  background-image:
    linear-gradient(180deg, rgba(27, 40, 47, 0.3), rgba(16, 24, 32, 0.92)),
    radial-gradient(circle at 20% 66%, rgba(128, 105, 70, 0.12), transparent 14rem),
    var(--scene-image);
}

.supplies-scene {
  background: linear-gradient(155deg, transparent 35%, rgba(68, 67, 58, 0.25));
}

.mud-road {
  position: absolute;
  right: -12%;
  bottom: -5%;
  left: -12%;
  height: 47%;
  background:
    radial-gradient(ellipse at 44% 30%, rgba(216, 180, 95, 0.08), transparent 21%),
    linear-gradient(160deg, rgba(69, 70, 64, 0.2), rgba(48, 51, 48, 0.63));
  clip-path: polygon(32% 0, 70% 0, 100% 100%, 0 100%);
}

.supply-vehicle {
  position: absolute;
  right: 7%;
  bottom: 23%;
  width: 96px;
  height: 45px;
  border-radius: 7px 12px 3px 3px;
  background: rgba(38, 49, 52, 0.86);
  box-shadow: 0 13px 30px rgba(0, 0, 0, 0.25);
  opacity: 0.6;
}

.supply-vehicle::after {
  position: absolute;
  right: 12px;
  bottom: -8px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #131d21;
  box-shadow: -57px 0 #131d21;
  content: "";
}

.road-marker {
  position: absolute;
  bottom: 22%;
  left: 12%;
  width: 4px;
  height: 75px;
  background: rgba(202, 195, 171, 0.18);
}

.road-marker::after {
  position: absolute;
  top: 0;
  left: -17px;
  width: 38px;
  height: 16px;
  background: rgba(216, 180, 95, 0.42);
  content: "";
}

.puddle-reflection--supplies {
  right: -10%;
  bottom: 0;
  left: -10%;
  height: 22%;
}

.rescue-task-strip {
  display: flex;
  gap: 8px;
  padding: 1px 1px 7px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  touch-action: pan-x;
}

.rescue-task-strip::-webkit-scrollbar {
  display: none;
}

.rescue-task-card {
  display: grid;
  min-width: 68%;
  min-height: 82px;
  gap: 5px;
  align-content: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-top: 2px solid rgba(216, 180, 95, 0.45);
  color: var(--paper);
  background: var(--panel);
  text-align: left;
  scroll-snap-align: start;
  cursor: pointer;
}

.rescue-task-card > span {
  color: var(--amber);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.rescue-task-card strong {
  font-size: 12px;
}

.rescue-task-card em {
  max-height: 0;
  overflow: hidden;
  color: var(--mist);
  font-size: 9px;
  font-style: normal;
  line-height: 1.5;
  opacity: 0;
  transition: 300ms ease;
}

.rescue-task-card.is-expanded {
  background: rgba(87, 67, 35, 0.46);
}

.rescue-task-card.is-expanded em {
  max-height: 45px;
  opacity: 1;
}

.rescue-progress {
  margin-top: auto;
  padding: 10px;
}

.drag-tip {
  color: var(--muted);
  font-size: 8px;
}

.rescue-progress__nodes {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 5px;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}

.rescue-progress__node {
  position: relative;
  padding-left: 12px;
  color: var(--muted);
  font-size: 8px;
  transition: color 300ms ease;
}

.rescue-progress__node::before {
  position: absolute;
  top: 1px;
  left: 0;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: var(--night);
  content: "";
}

.rescue-progress__node.is-active {
  color: var(--amber-soft);
}

.rescue-progress__node.is-active::before {
  border-color: var(--amber);
  background: var(--amber);
  box-shadow: 0 0 8px rgba(216, 180, 95, 0.35);
}

/* Risk check */

.risk-page::before {
  background-image:
    linear-gradient(180deg, rgba(27, 40, 47, 0.24), rgba(16, 24, 32, 0.92)),
    radial-gradient(circle at 68% 48%, rgba(216, 180, 95, 0.08), transparent 10rem),
    var(--scene-image);
}

.risk-scene {
  background: linear-gradient(110deg, rgba(52, 60, 60, 0.18), transparent 64%);
}

.wet-wall {
  position: absolute;
  top: 15%;
  right: -8%;
  width: 53%;
  height: 61%;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(110deg, rgba(58, 66, 66, 0.28), rgba(33, 42, 44, 0.48));
}

.wet-wall::after {
  position: absolute;
  top: 22%;
  left: 32%;
  width: 1px;
  height: 48%;
  background: rgba(206, 213, 210, 0.19);
  box-shadow: 9px 18px rgba(206, 213, 210, 0.1);
  content: "";
  transform: rotate(11deg);
}

.warning-tape {
  position: absolute;
  right: -8%;
  bottom: 26%;
  width: 64%;
  height: 13px;
  background: repeating-linear-gradient(135deg, rgba(216, 180, 95, 0.6) 0 12px, rgba(35, 40, 38, 0.6) 12px 24px);
  opacity: 0.35;
  transform: rotate(-8deg);
}

.flashlight-risk {
  position: absolute;
  top: 28%;
  right: -12%;
  width: 74%;
  height: 36%;
  background: linear-gradient(270deg, rgba(230, 210, 157, 0.13), transparent);
  clip-path: polygon(100% 23%, 0 0, 0 100%, 100% 75%);
  filter: blur(5px);
}

.puddle-reflection--risk {
  right: -14%;
  bottom: -5%;
  left: -14%;
  height: 23%;
}

.risk-map {
  min-height: 226px;
  margin-top: 3px;
  padding: 11px;
  overflow: hidden;
}

.risk-map__trace {
  position: absolute;
  height: 1px;
  border-top: 1px dashed rgba(216, 180, 95, 0.25);
  transform-origin: left center;
}

.risk-map__trace--one {
  top: 52%;
  left: 17%;
  width: 65%;
  transform: rotate(18deg);
}

.risk-map__trace--two {
  top: 68%;
  left: 26%;
  width: 57%;
  transform: rotate(-24deg);
}

.risk-point {
  position: absolute;
  display: grid;
  gap: 5px;
  justify-items: center;
  padding: 0;
  border: 0;
  color: var(--mist);
  background: none;
  font-size: 9px;
  cursor: pointer;
}

.risk-point::before {
  width: 13px;
  height: 13px;
  border: 2px solid var(--amber);
  border-radius: 50%;
  background: var(--night);
  box-shadow: 0 0 0 5px rgba(216, 180, 95, 0.07);
  content: "";
}

.risk-point.is-checked {
  color: var(--amber-soft);
}

.risk-point.is-checked::before {
  background: var(--amber);
  box-shadow: 0 0 15px rgba(216, 180, 95, 0.42);
}

.risk-point--house {
  top: 34%;
  left: 10%;
}

.risk-point--geology {
  top: 31%;
  right: 6%;
}

.risk-point--road {
  bottom: 13%;
  left: 18%;
}

.risk-point--water {
  right: 15%;
  bottom: 11%;
}

.risk-complete {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  color: var(--amber-soft);
  font-size: 10px;
  line-height: 1.6;
  opacity: 0;
  transition: 400ms ease;
}

.risk-complete.is-visible {
  max-height: 55px;
  padding: 8px 10px;
  border-left: 2px solid var(--amber);
  background: rgba(216, 180, 95, 0.08);
  opacity: 1;
}

/* Final page */

#refocus.final-page::before {
  background-image:
    linear-gradient(180deg, rgba(14, 22, 29, 0.56), rgba(9, 15, 22, 0.95)),
    radial-gradient(circle at 70% 72%, rgba(216, 180, 95, 0.08), transparent 14rem),
    var(--scene-image);
  transition: opacity 900ms ease;
}

.final-page::before {
  background-image:
    linear-gradient(180deg, rgba(17, 26, 33, 0.54), rgba(10, 17, 24, 0.95)),
    radial-gradient(circle at 78% 65%, rgba(216, 180, 95, 0.08), transparent 14rem),
    var(--scene-image);
  transition: opacity 900ms ease;
}

#refocus::after {
  background:
    radial-gradient(circle at 78% 72%, rgba(216, 180, 95, 0.08), transparent 15rem),
    linear-gradient(180deg, rgba(10, 17, 24, 0) 0%, rgba(10, 17, 24, 0.22) 44%, rgba(10, 17, 24, 0.54) 100%);
  filter: blur(6px);
  opacity: 0.84;
}

#refocus .scene-artwork {
  opacity: 0.42;
  background-position: center 60%;
  background-size: cover;
}

#refocus .warm-artwork {
  opacity: 0;
}

#refocus.has-scene-image .documentary-scene {
  opacity: 0.14;
}

.final-page.is-warm::after {
  background: radial-gradient(circle at 50% 76%, rgba(216, 180, 95, 0.16), transparent 60%);
}

#refocus.is-warm .focus-character-art {
  opacity: 0.6;
}

.camera-frame {
  position: absolute;
  top: 15%;
  right: 8%;
  width: 40%;
  height: 29%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.28);
}

.camera-frame::before,
.camera-frame::after {
  position: absolute;
  width: 19px;
  height: 19px;
  border-color: var(--amber);
  border-style: solid;
  content: "";
  opacity: 0.5;
}

.camera-frame::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.camera-frame::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 1px 1px 0;
}

.final-rain {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(105deg, transparent 0 38px, rgba(206, 216, 218, 0.035) 39px 40px);
}

.final-content {
  gap: 10px;
  padding-bottom: max(96px, calc(env(safe-area-inset-bottom) + 86px));
}

.final-heading-card {
  padding: 14px 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 21, 29, 0.8);
  backdrop-filter: blur(10px);
}

.final-content-scroll {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.final-content-scroll::-webkit-scrollbar {
  display: none;
}

.closing-content {
  gap: 12px;
}

.closing-content .final-content-scroll {
  gap: 12px;
}

.final-quote {
  margin: 0;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 22, 30, 0.78);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.final-quote strong {
  color: var(--amber-soft);
  font-weight: 600;
}

.focus-choice {
  padding: 12px 13px;
}

.focus-choice h3 {
  margin: 4px 0 10px;
  font-size: 15px;
}

.focus-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.focus-option {
  display: flex;
  min-height: 44px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  color: var(--mist);
  background: rgba(14, 28, 35, 0.72);
  font-size: 14px;
  cursor: pointer;
}

.focus-option span {
  color: var(--amber);
  font-family: Georgia, serif;
  font-size: 17px;
}

.focus-option.is-selected {
  border-color: rgba(216, 180, 95, 0.52);
  color: var(--paper);
  background: rgba(93, 72, 38, 0.42);
}

.focus-feedback {
  min-height: 42px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.refocus-stage {
  display: grid;
  gap: 12px;
  padding: 12px 13px;
}

.refocus-button {
  width: 100%;
}

.final-gate[hidden],
.final-ending[hidden] {
  display: none !important;
}

.focus-keywords {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-start;
  overflow: hidden;
  opacity: 1;
}

.focus-keywords span {
  padding: 7px 10px;
  border: 1px solid rgba(216, 180, 95, 0.28);
  color: var(--amber-soft);
  background: rgba(216, 180, 95, 0.07);
  font-size: 12px;
}

.refocus-stage.is-focused .focus-keywords {
  animation: fade-in 450ms ease both;
}

.closing-line {
  margin: 0;
  color: var(--paper);
  font-size: 16px;
  line-height: 1.55;
}

.light-action {
  display: grid;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  background: rgba(18, 29, 36, 0.84);
  backdrop-filter: blur(9px);
}

.light-action .action-button {
  min-height: 42px;
  padding: 10px 12px;
  font-size: 13px;
}

.light-field {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  background: rgba(18, 29, 36, 0.68);
}

.light-field span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(216, 180, 95, 0.12);
  transition: 350ms ease;
}

.light-field span.is-lit {
  background: var(--amber);
  box-shadow: 0 0 13px rgba(216, 180, 95, 0.8);
  transform: scale(1.25);
}

.light-field.is-lit {
  background: linear-gradient(90deg, rgba(216, 180, 95, 0.06), rgba(216, 180, 95, 0.18), rgba(216, 180, 95, 0.06));
}

.final-ending {
  display: grid;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid rgba(216, 180, 95, 0.18);
  background: rgba(11, 22, 30, 0.84);
  backdrop-filter: blur(9px);
}

.final-salute {
  margin: 0;
  color: var(--amber-soft);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-align: center;
}

/* Navigation and modal */

.page-navigation {
  position: absolute;
  z-index: 55;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 10px;
  align-items: center;
  padding:
    8px
    17px
    max(11px, env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(2, 8, 13, 0.88), transparent);
  pointer-events: none;
}

.page-nav-button {
  display: grid;
  width: 38px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(220, 231, 233, 0.17);
  color: rgba(240, 244, 242, 0.75);
  background: rgba(7, 21, 29, 0.5);
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(7px);
}

.page-nav-button:disabled {
  color: rgba(220, 231, 233, 0.18);
  cursor: default;
}

.page-nav-button--next {
  justify-self: end;
}

.page-indicator {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.page-counter {
  color: rgba(220, 231, 233, 0.52);
  font-family: Georgia, serif;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.page-dots {
  display: flex;
  gap: 7px;
  align-items: center;
  pointer-events: auto;
}

.page-dot {
  width: 5px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(220, 231, 233, 0.25);
  cursor: pointer;
  transition:
    width 260ms ease,
    background 260ms ease;
}

.page-dot.is-active {
  width: 19px;
  background: var(--amber);
}

.toast {
  position: absolute;
  z-index: 80;
  top: 70px;
  left: 50%;
  max-width: calc(100% - 44px);
  padding: 8px 12px;
  border: 1px solid rgba(239, 195, 109, 0.28);
  color: rgba(244, 247, 245, 0.9);
  background: rgba(5, 17, 24, 0.9);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  font-size: 10px;
  opacity: 0;
  transform: translate(-50%, -8px);
  transition:
    opacity 250ms ease,
    transform 250ms ease;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.modal {
  position: absolute;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 7, 11, 0.78);
  backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 340px;
  padding: 24px 21px 19px;
  border: 1px solid rgba(220, 231, 233, 0.21);
  border-top-color: rgba(239, 195, 109, 0.58);
  color: var(--paper);
  background:
    linear-gradient(145deg, rgba(17, 43, 54, 0.98), rgba(5, 18, 26, 0.99)),
    var(--night);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
  animation: modal-in 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal__signal {
  position: absolute;
  top: 0;
  left: 21px;
  width: 50px;
  height: 2px;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(239, 195, 109, 0.45);
}

.modal__panel h2 {
  margin: 7px 0 11px;
  font-size: 20px;
  font-weight: 650;
}

.modal__panel > p:not(.modal__kicker) {
  margin: 0;
  color: rgba(220, 231, 233, 0.76);
  font-size: 12px;
  line-height: 1.75;
}

.modal__close {
  width: 100%;
  margin-top: 22px;
  padding: 10px;
  border: 1px solid rgba(239, 195, 109, 0.42);
  color: var(--amber-soft);
  background: rgba(239, 195, 109, 0.06);
  font-size: 11px;
  cursor: pointer;
}

@keyframes rainfall {
  from {
    transform: translate3d(0, -15%, 0) rotate(8deg);
  }
  to {
    transform: translate3d(-34px, 145vh, 0) rotate(8deg);
  }
}

@keyframes light-flicker {
  0%,
  100% {
    opacity: 0.52;
  }
  50% {
    opacity: 1;
  }
}

@keyframes water-sway {
  from {
    transform: translateX(-3%) scaleY(0.8);
  }
  to {
    transform: translateX(4%) scaleY(1.15);
  }
}

@keyframes sound-pulse {
  0%,
  100% {
    transform: scale(0.88);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@keyframes route-pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.55);
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-height: 720px) {
  .page-content {
    padding-top: max(58px, calc(env(safe-area-inset-top) + 49px));
    padding-right: 18px;
    padding-bottom: max(57px, calc(env(safe-area-inset-bottom) + 50px));
    padding-left: 18px;
  }

  .cover-content {
    padding-top: max(67px, calc(env(safe-area-inset-top) + 58px));
  }

  .cover-copy {
    margin-bottom: 2vh;
  }

  .cover-title {
    font-size: clamp(40px, 12vw, 50px);
  }

  .cover-title-line {
    margin: 13px 0 12px;
  }

  .cover-action {
    min-height: 91px;
    margin-bottom: 1vh;
  }

  .page-heading h2 {
    margin-top: 4px;
    font-size: 23px;
  }

  .page-heading h2::after {
    margin-top: 7px;
  }

  .page-lead {
    font-size: 10.5px;
    line-height: 1.6;
  }

  .water-content,
  .call-content,
  .transfer-content,
  .shelter-content,
  .rescue-content,
  .risk-content,
  .final-content {
    gap: 6px;
  }

  .page-subtitle {
    margin-bottom: 3px;
    font-size: 9.5px;
  }

  .page-lead--compact {
    font-size: 9px;
    line-height: 1.48;
  }

  .chapter-quote {
    font-size: 9.5px;
  }

  .news-quote {
    padding: 7px 10px;
    font-size: 9.5px;
  }

  .news-quote strong {
    font-size: 11px;
  }

  .water-stages li {
    min-height: 49px;
    padding: 6px 4px;
    font-size: 8px;
  }

  .call-statement {
    font-size: 9.5px;
  }

  .call-card {
    min-height: 65px;
    padding: 7px 9px;
  }

  .call-card strong {
    font-size: 11px;
  }

  .call-progress {
    padding: 8px 10px;
  }

  .quiz-card {
    padding: 8px 9px;
  }

  .quiz-card h3,
  .route-card h3 {
    margin-bottom: 5px;
    font-size: 11px;
  }

  .quiz-options {
    gap: 3px;
  }

  .quiz-option {
    min-height: 25px;
    padding: 3px 7px;
    font-size: 9px;
  }

  .quiz-feedback {
    min-height: 22px;
    margin-top: 4px;
    font-size: 8px;
  }

  .route-card {
    padding: 7px 9px 8px;
  }

  .route-map {
    min-height: 61px;
  }

  .route-line {
    top: 16px;
  }

  .route-point::before {
    width: 10px;
    height: 10px;
    margin-bottom: 4px;
  }

  .route-point__pulse {
    top: -6px;
  }

  .registration-card,
  .rescue-progress,
  .risk-map,
  .focus-choice,
  .refocus-stage {
    padding: 7px 8px;
  }

  .registration-item {
    min-height: 27px;
    padding: 4px 6px;
  }

  .shelter-task {
    min-height: 44px;
    padding: 6px 7px;
  }

  .rescue-task-card {
    min-height: 69px;
    padding: 8px 10px;
  }

  .risk-map {
    min-height: 182px;
  }

  .focus-choice h3 {
    margin-bottom: 4px;
    font-size: 12px;
  }

  .focus-option {
    min-height: 32px;
    padding: 5px 7px;
    font-size: 11px;
  }

  .focus-feedback {
    min-height: 32px;
    margin-top: 4px;
    font-size: 10px;
  }

  .final-content {
    gap: 8px;
    padding-bottom: max(92px, calc(env(safe-area-inset-bottom) + 82px));
  }

  .final-heading-card,
  .final-quote,
  .light-action,
  .final-ending {
    padding: 9px 10px;
  }

  .final-content-scroll {
    gap: 8px;
  }

  #refocus .focus-character-art {
    right: -10%;
    width: 74%;
    height: 44%;
    background-position: 85% 80%;
    background-size: 225%;
  }

  .focus-keywords span {
    padding: 5px 8px;
    font-size: 10px;
  }

  .light-action {
    gap: 8px;
  }

  .final-salute {
    font-size: 10px;
  }
}

@media (min-width: 431px) {
  body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
      linear-gradient(115deg, transparent 49.8%, rgba(130, 170, 188, 0.06) 50%, transparent 50.2%),
      radial-gradient(circle at center, rgba(30, 60, 72, 0.32), transparent 36rem);
    content: "";
  }

  .phone-shell {
    border-right: 1px solid rgba(220, 231, 233, 0.08);
    border-left: 1px solid rgba(220, 231, 233, 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --page-speed: 180ms;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .story-track {
    transition-timing-function: ease;
  }

  .page-reveal {
    transform: none;
    transition-duration: 160ms;
  }

  .water-layer {
    transition-duration: 800ms;
  }
}
