:root {
  --bg: #07080b;
  --panel: rgba(8, 10, 14, 0.78);
  --panel-strong: rgba(8, 10, 14, 0.9);
  --text: #f1f1ee;
  --muted: rgba(241, 241, 238, 0.62);
  --line: rgba(241, 241, 238, 0.22);
  --accent: #d8d1bf;
  --danger: #9b9991;
  --viewport-h: 100vh;
  --frame-w: min(100vw, 430px, 56.25vh);
}

@supports (height: 100svh) {
  :root {
    --viewport-h: 100svh;
    --frame-w: min(100vw, 430px, 56.25svh);
  }
}

@supports (height: 100dvh) {
  :root {
    --viewport-h: 100dvh;
    --frame-w: min(100vw, 430px, 56.25dvh);
  }
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
button {
  font: inherit;
  user-select: none;
  touch-action: manipulation;
}

.app-shell {
  width: 100vw;
  min-height: var(--viewport-h);
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 12%, #1b1e25 0, #07080b 48%, #020304 100%);
}

.game-frame {
  position: relative;
  width: var(--frame-w);
  height: auto;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #07080b;
  box-shadow: 0 20px 80px rgba(0,0,0,0.55);
  user-select: none;
  touch-action: manipulation;
}

.stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  user-select: none;
  touch-action: manipulation;
}
.layer { position: absolute; inset: 0; }
.hidden { display: none !important; }

.background-layer, .scene-cg-layer, .foreground-cg-layer {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: filter 300ms ease, opacity 300ms ease, transform 500ms ease;
}
.scene-cg-layer {
  transition: filter 300ms ease, opacity 280ms ease, transform 500ms ease;
}

.background-layer.has-formal-asset.formal-fit-contain,
.title-screen.has-formal-asset.formal-fit-contain,
.scene-cg-layer.has-formal-asset.formal-fit-contain,
.foreground-cg-layer.has-formal-asset.formal-fit-contain {
  background-color: #030406;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.background-layer.has-formal-asset.formal-fit-cover,
.title-screen.has-formal-asset.formal-fit-cover {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-black { background: #030406; }
.bg-title { background: linear-gradient(180deg, rgba(20,23,29,0.4), rgba(4,5,7,0.98)), radial-gradient(circle at 48% 28%, #d9d5c5 0 2%, #353a42 3% 22%, #11151b 45%, #050608 100%); }
.bg-clinic-day { background: linear-gradient(180deg, rgba(216,216,203,0.18), rgba(11,13,17,0.7)), linear-gradient(135deg, #7f8790 0%, #d3d0bf 22%, #7a7c7a 42%, #343941 72%, #151922 100%); }
.bg-clinic-cloudy { background: linear-gradient(180deg, rgba(101,113,126,0.12), rgba(3,4,6,0.78)), linear-gradient(135deg, #5f6874 0%, #8f9696 20%, #4b535d 43%, #1b2027 72%, #090b0f 100%); }
.bg-under-bed { background: radial-gradient(circle at 50% 18%, #252422 0, #0b0a09 38%, #020202 82%); }
.bg-sleep-video { background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.45)), radial-gradient(circle at 45% 40%, #262a2e, #08090b 70%); }
.bg-te-blur-clinic { background: linear-gradient(180deg, rgba(198,218,221,0.1), rgba(0,0,0,0.82)), linear-gradient(135deg, #697b80, #111318 48%, #050607 100%); filter: saturate(0.55) contrast(1.18) blur(0.3px); }

.interstitial-screen {
  position: absolute;
  inset: 0;
  z-index: 18;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  background: #030406;
  text-align: center;
}
.interstitial-copy {
  color: rgba(241,241,238,0.82);
  font-size: 15px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  animation: interstitial-in 1.4s ease both;
}
.title-mark {
  position: relative;
  width: 100%;
  max-width: 100%;
  text-align: center;
}
.title-mark-logo {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding-inline: 2px;
  overflow: hidden;
  isolation: isolate;
}
.title-mark-outline, .title-mark-en {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 600;
  line-height: 1.08;
  width: 100%;
  letter-spacing: 0.075em;
  white-space: nowrap;
}
.title-mark-outline {
  position: absolute;
  inset: 0;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 0.35px rgba(211,216,214,0.1);
  text-shadow: 0 0 4px rgba(205,215,214,0.035);
  transform: translate(0.35px, -0.25px);
}
.title-mark-en {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(225,226,220,0.88);
  -webkit-text-stroke: 0.15px rgba(247,247,239,0.14);
  text-shadow: 0 1px 10px rgba(0,0,0,0.32);
}
.title-mark-lie { color: rgba(206,203,194,0.84); }
.title-mark-cn {
  position: relative;
  z-index: 1;
  margin: 15px 0 0;
  color: rgba(218,220,215,0.68);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.34em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.title-mark--screen .title-mark-en,
.title-mark--screen .title-mark-outline {
  font-size: clamp(17px, 5.2vw, 23px);
}
.title-mark--sting {
  width: calc(100% - 32px);
  max-width: 360px;
}
.title-mark--sting .title-mark-en,
.title-mark--sting .title-mark-outline {
  font-size: clamp(16px, 4.8vw, 21px);
}
.title-mark--sting .title-mark-outline {
  opacity: 0;
  filter: blur(4px);
  clip-path: inset(0 72% 0 16%);
  animation: title-mark-edge-reveal 2.8s ease both;
}
.title-mark--sting .title-mark-en {
  animation: title-mark-en-reveal 2.8s ease both;
}
.title-mark--sting .title-mark-lie {
  animation: title-mark-lie-hint 2.8s ease both;
}
.title-mark--sting .title-mark-cn {
  animation: title-mark-cn-reveal 2.8s ease both;
}
.title-mark-logo.has-formal-logo {
  padding-inline: 0;
  overflow: visible;
}
.title-mark-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.title-mark--sting .title-mark-logo.has-formal-logo {
  animation: title-mark-en-reveal 2.8s ease both;
}
@keyframes title-mark-edge-reveal {
  0%, 10% { opacity: 0; transform: translate(2px, -0.4px); clip-path: inset(0 72% 0 18%); }
  24%, 40% { opacity: 0.7; transform: translate(0.5px, -0.4px); clip-path: inset(0 46% 0 26%); }
  64%, 100% { opacity: 0.42; transform: translate(0.6px, -0.4px); clip-path: inset(0); filter: blur(0.3px); }
}
@keyframes title-mark-en-reveal {
  0%, 24% { opacity: 0; filter: blur(5px); letter-spacing: 0.31em; }
  62% { opacity: 0.58; filter: blur(1.2px); }
  82%, 100% { opacity: 1; filter: blur(0); letter-spacing: 0.075em; }
}
@keyframes title-mark-lie-hint {
  0%, 28% { text-shadow: none; }
  38% { color: rgba(185,177,164,0.52); text-shadow: 0 0 10px rgba(200,190,174,0.12); }
  64%, 100% { color: inherit; text-shadow: none; }
}
@keyframes title-mark-cn-reveal {
  0%, 70% { opacity: 0; filter: blur(2px); }
  86%, 100% { opacity: 1; filter: blur(0); }
}
@keyframes interstitial-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.scene-cg-layer, .foreground-cg-layer {
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.78);
  text-align: center;
  letter-spacing: 0.08em;
  padding: 10%;
}
.scene-cg-layer::after, .foreground-cg-layer::after {
  content: attr(data-label);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.24);
  padding: 16px 18px;
  border-radius: 14px;
  backdrop-filter: blur(5px);
}
.scene-cg-layer[data-label=""]::after, .foreground-cg-layer[data-label=""]::after { display: none; }
.cg-medical-record { background: radial-gradient(circle at 50% 62%, rgba(231,229,216,0.5), transparent 36%), linear-gradient(140deg, #34302a, #0f1115 70%); }
.cg-under-bed-close { background: radial-gradient(circle at 50% 12%, #4c4940 0, #161410 28%, #030303 78%); }
.cg-sleep-video-mark { background: linear-gradient(rgba(255,255,255,0.03) 50%, rgba(0,0,0,0.03) 50%), radial-gradient(ellipse at 50% 70%, rgba(220,220,210,0.32) 0 14%, rgba(20,20,20,0.2) 15% 21%, transparent 22%), linear-gradient(180deg, #1a1d22, #050607 80%); background-size: 100% 4px, cover, cover; }
.cg-te-scissors { background: radial-gradient(circle at 55% 48%, rgba(220,221,213,0.36), transparent 16%), linear-gradient(135deg, #293136, #050607 80%); }
.cg-te-sink { background: linear-gradient(180deg, rgba(210,230,230,0.14), rgba(0,0,0,0.8)), radial-gradient(ellipse at 52% 64%, rgba(111,48,45,0.3), transparent 18%), radial-gradient(circle at 50% 60%, rgba(220,225,218,0.3), transparent 29%), #071013; }
.cg-te-coat { background: radial-gradient(circle at 50% 28%, rgba(237,239,231,0.52), transparent 22%), linear-gradient(180deg, #222b31, #050608); }

.character-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  contain: layout paint;
  pointer-events: none;
}
.n06-crossfade-snapshot {
  position: absolute;
  inset: 0;
  z-index: 16;
  overflow: hidden;
  pointer-events: none;
}
.n06-staging-hidden {
  opacity: 0 !important;
}
.background-layer.n06-staging-hidden,
.character.n06-staging-hidden {
  transition: none !important;
}
.character {
  position: absolute;
  left: 50%;
  bottom: var(--character-bottom, 24%);
  width: var(--character-width, 74%);
  height: var(--character-height, 58%);
  transform: translateX(-50%);
  transition: opacity 260ms ease, filter 260ms ease, transform 260ms ease;
  display: grid;
  place-items: end center;
}
.character.inactive { opacity: 0.82; filter: brightness(0.62) saturate(0.75); }
.character.choice-dim { opacity: 0.64; filter: brightness(0.5) saturate(0.7); }
.character-card {
  position: relative;
  width: var(--character-card-width, 82%);
  height: 100%;
  border-radius: 44% 44% 12% 12%;
  background: linear-gradient(180deg, rgba(226,222,207,0.18), rgba(43,48,55,0.95) 38%, rgba(18,20,24,0.98));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 40px rgba(0,0,0,0.28);
  overflow: hidden;
}
.character-card::before {
  content: "";
  position: absolute;
  top: 12%; left: 50%; transform: translateX(-50%);
  width: 34%; height: 20%;
  border-radius: 50%;
  background: var(--face, #c8b8aa);
  box-shadow: 0 0 0 999px transparent;
}
.character-card::after {
  content: attr(data-label);
  position: absolute;
  left: 0; right: 0; bottom: 20%;
  text-align: center;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.character-card.is-formal-character,
.character-card.has-formal-character,
.character-card[data-formal="true"] {
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-size: contain;
  background-position: var(--character-card-position, bottom center);
  background-repeat: no-repeat;
  box-shadow: none;
  filter: none;
  overflow: visible;
}
.character-card.is-formal-character {
  background-image: none;
  border: 0 !important;
  box-shadow: none !important;
}
.character-card[data-formal="true"] {
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.character-card.is-formal-character[class*="sprite-"] {
  background-image: none;
}
.character-card.is-formal-character::before,
.character-card.is-formal-character::after,
.character-card.formal-character-pending::before,
.character-card.formal-character-pending::after,
.character-card.has-formal-character::before,
.character-card.has-formal-character::after,
.character-card[data-formal="true"]::before,
.character-card[data-formal="true"]::after {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
}
.character-card.formal-character-pending {
  visibility: hidden;
  opacity: 0;
  border: 0;
  background: none !important;
  box-shadow: none !important;
}
.sprite-normal_tense { --face: #c6b6ab; }
.sprite-relieved { --face: #d2c2b4; }
.sprite-vulnerable { --face: #cab7ad; background: linear-gradient(180deg, rgba(226,222,207,0.12), rgba(49,47,55,0.92) 38%, rgba(12,14,18,0.98)); }
.sprite-tired_fear { --face: #b9aaa4; filter: saturate(0.82); }
.sprite-numb_calm { --face: #c4beb6; filter: saturate(0.62); }

.overlay-layer.choice_dim { display: block !important; background: rgba(0,0,0,0.42); backdrop-filter: blur(1px); }
.overlay-layer.dark_vignette { display: block !important; background: radial-gradient(circle at 50% 42%, transparent 0 26%, rgba(0,0,0,0.86) 100%); }
.overlay-layer {
  transition: opacity 280ms ease;
}
.overlay-layer.memory_overlay { display: block !important; background: radial-gradient(circle at 50% 44%, transparent 0 60%, rgba(3,5,8,0.12) 88%, rgba(2,3,5,0.24) 100%), linear-gradient(180deg, rgba(166,188,198,0.012), rgba(16,21,27,0.02)); backdrop-filter: none; }
.overlay-layer.te_truth_filter { display: block !important; background: radial-gradient(circle at 50% 42%, rgba(196,220,220,0.04), rgba(0,0,0,0.55) 78%), repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 5px); mix-blend-mode: screen; }

.dialogue-box {
  position: absolute;
  left: 14px; right: 14px; bottom: max(14px, env(safe-area-inset-bottom, 0px));
  min-height: 22%;
  max-height: 30%;
  padding: 14px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  z-index: 20;
  user-select: none;
  touch-action: manipulation;
}
.speaker-name { min-height: 20px; font-size: 13px; color: var(--accent); margin-bottom: 8px; letter-spacing: 0.08em; }
.dialogue-text { font-size: clamp(16px, 4vw, 18px); line-height: 1.62; white-space: pre-wrap; }
.continue-hint { position: absolute; right: 16px; bottom: 8px; font-size: 11px; color: var(--muted); animation: blink 1.2s infinite ease-in-out; }
@keyframes blink { 50% { opacity: 0.35; } }

.choice-panel {
  position: absolute;
  left: 22px; right: 22px;
  bottom: 29%;
  z-index: 25;
  display: grid;
  gap: 12px;
}
.choice-question {
  text-align: center;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.choice-btn {
  color: var(--text);
  background: rgba(10, 12, 16, 0.72);
  border: 1px solid rgba(241,241,238,0.28);
  border-radius: 14px;
  padding: 13px 14px;
  cursor: pointer;
  transition: opacity 220ms ease, transform 160ms ease, border-color 200ms ease, background 200ms ease, filter 200ms ease;
  backdrop-filter: blur(10px);
}
.choice-btn:hover, .choice-btn:active { transform: translateY(-1px); border-color: rgba(241,241,238,0.52); }
.choice-btn.selected { background: rgba(216,209,191,0.2); border-color: rgba(216,209,191,0.9); box-shadow: 0 0 0 1px rgba(216,209,191,0.14), 0 12px 30px rgba(0,0,0,0.35); }
.choice-btn.dimmed { opacity: 0.38; filter: grayscale(0.4); }
.choice-btn:disabled { cursor: default; }

.title-screen, .ending-screen, .collection-screen {
  position: absolute; inset: 0; z-index: 40;
  display: grid; place-items: center;
  padding:
    calc(28px + env(safe-area-inset-top, 0px))
    calc(28px + env(safe-area-inset-right, 0px))
    calc(28px + env(safe-area-inset-bottom, 0px))
    calc(28px + env(safe-area-inset-left, 0px));
  background: linear-gradient(180deg, rgba(4,5,7,0.2), rgba(4,5,7,0.9)), var(--bg);
}
.ending-title-transition-cover {
  position: absolute;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: #000;
  opacity: 0;
}
.title-story-transition-cover {
  position: absolute;
  inset: 0;
  z-index: 110;
  pointer-events: auto;
  background: #000;
  opacity: 0;
}
.title-screen {
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(4,5,7,0.16), rgba(3,4,6,0.84) 68%, #030406 100%),
    radial-gradient(circle at 50% 28%, rgba(205,201,187,0.18) 0 2%, rgba(62,67,74,0.42) 3% 20%, rgba(13,16,21,0.86) 46%, #030406 78%),
    #030406;
}
.title-screen.has-formal-asset {
  background-color: #030406;
}
.title-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.48;
  background:
    linear-gradient(180deg, rgba(2,3,5,0.22) 0%, rgba(3,4,7,0.18) 32%, rgba(3,4,7,0.58) 68%, rgba(2,3,5,0.88) 100%),
    radial-gradient(ellipse at 50% 70%, rgba(4,5,8,0.18) 0%, rgba(4,5,8,0.68) 68%, rgba(2,3,5,0.88) 100%);
}
.title-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  background: repeating-linear-gradient(0deg, transparent 0 4px, rgba(255,255,255,0.022) 4px 5px);
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}
.title-content {
  position: relative;
  z-index: 1;
  align-self: end;
  width: 100%;
  padding-bottom: 7%;
  text-align: center;
  animation: title-cover-in 1.1s ease both;
}
.title-rule {
  width: 42px;
  height: 1px;
  margin: 30px auto 24px;
  background: rgba(241,241,238,0.32);
}
.title-actions { display: grid; gap: 10px; }
.title-start-btn, .title-collection-btn {
  width: 100%;
  cursor: pointer;
  color: var(--text);
}
.title-start-btn {
  padding: 14px 16px;
  border: 1px solid rgba(216,209,191,0.46);
  border-radius: 2px;
  background: rgba(216,209,191,0.1);
  letter-spacing: 0.18em;
  text-indent: 0.18em;
}
.title-collection-btn {
  padding: 8px 16px;
  border: 0;
  background: transparent;
  color: rgba(241,241,238,0.42);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.title-start-btn:hover, .title-start-btn:active { background: rgba(216,209,191,0.17); }
.title-collection-btn:hover, .title-collection-btn:active { color: rgba(241,241,238,0.68); }

.debug-panel-host {
  position: absolute;
  top: max(10px, env(safe-area-inset-top, 0px));
  right: max(10px, env(safe-area-inset-right, 0px));
  z-index: 90;
  width: min(260px, calc(100% - 20px));
  color: #f3f6f7;
  font-size: 12px;
  letter-spacing: 0.02em;
  pointer-events: auto;
}
.debug-toggle {
  float: right;
  min-width: 44px;
  padding: 7px 9px;
  color: #dceef2;
  background: rgba(9,18,22,0.82);
  border: 1px solid rgba(151,219,229,0.42);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.34);
  cursor: pointer;
}
.debug-panel-card {
  clear: both;
  margin-top: 40px;
  display: grid;
  gap: 8px;
  padding: 10px;
  background: rgba(5,10,13,0.86);
  border: 1px solid rgba(151,219,229,0.3);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.42);
  backdrop-filter: blur(10px);
  max-height: calc(100dvh - 76px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.debug-panel-host.is-collapsed .debug-panel-card { display: none; }
.debug-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.debug-meta span, .debug-field span, .debug-var-grid span {
  color: rgba(220,238,242,0.58);
}
.debug-meta strong {
  color: #dceef2;
  font-weight: 600;
  text-align: right;
}
.debug-field, .debug-var-grid label {
  display: grid;
  gap: 4px;
}
.debug-field input, .debug-var-grid input {
  width: 100%;
  color: #f3f6f7;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(220,238,242,0.24);
  border-radius: 8px;
  padding: 7px 8px;
  outline: none;
}
.debug-field input:focus, .debug-var-grid input:focus {
  border-color: rgba(151,219,229,0.68);
}
.debug-actions, .debug-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.debug-actions button, .debug-shortcuts button, .debug-apply-vars {
  color: #dceef2;
  background: rgba(151,219,229,0.12);
  border: 1px solid rgba(151,219,229,0.26);
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
}
.debug-actions button:disabled {
  opacity: 0.36;
  cursor: not-allowed;
}
.debug-section-label {
  color: rgba(220,238,242,0.5);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.debug-ending-shortcuts button {
  flex: 1 1 calc(50% - 6px);
}
.debug-var-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.debug-message {
  min-height: 1.2em;
  margin: 0;
  color: rgba(220,238,242,0.64);
}
.debug-message.is-error { color: #ffb1a8; }

@keyframes title-cover-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.ending-card h2 { font-size: 24px; }
.primary-btn, .ghost-btn {
  width: 100%; border-radius: 16px; padding: 14px 16px; margin-top: 12px;
  border: 1px solid rgba(255,255,255,0.24); color: var(--text); cursor: pointer;
}
.primary-btn { background: rgba(216,209,191,0.18); }
.primary-btn span { font-size: 12px; color: var(--muted); }
.ghost-btn { background: rgba(255,255,255,0.04); }

.ending-card, .collection-card {
  width: 100%; border: 1px solid var(--line); border-radius: 20px;
  background: var(--panel-strong); padding: 22px; backdrop-filter: blur(14px);
}
.ending-card .archive { font-size: 13px; color: var(--muted); letter-spacing: 0.18em; }
.ending-card h2 { font-weight: 500; margin: 18px 0 8px; }
.ending-card p { color: rgba(255,255,255,0.72); line-height: 1.7; }
.ending-actions { display: grid; gap: 10px; margin-top: 24px; }
.end-list { display: grid; gap: 10px; margin: 18px 0; }
.end-item {
  position: relative;
  min-height: 48px;
  padding: 12px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.025);
}
.end-item.unlocked { color: var(--text); border-color: rgba(216,209,191,0.5); background: rgba(216,209,191,0.08); }
.end-item.has-visual { min-height: 92px; display: flex; align-items: end; }
.end-item-visual {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(0.82) brightness(0.7);
}
.end-item-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,5,7,0.04), rgba(4,5,7,0.86));
}
.end-item-title { position: relative; z-index: 1; }

.te_truth .dialogue-box { background: rgba(3,5,7,0.62); border-color: rgba(205,225,225,0.18); }
.te_truth .dialogue-text { letter-spacing: 0.04em; }
.cutscene .dialogue-box { background: rgba(0,0,0,0.6); }

@media (max-height: 760px) {
  .dialogue-box { min-height: 24%; }
  .title-content { padding-bottom: 1%; }
  .title-rule { margin: 22px auto 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .title-content, .interstitial-copy, .title-mark--sting .title-mark-outline, .title-mark--sting .title-mark-en, .title-mark--sting .title-mark-lie, .title-mark--sting .title-mark-cn { animation-duration: 1ms; }
}
