:root {
  color-scheme: dark;
  --bg: #07090d;
  --panel: #0e1116;
  --panel-raised: #13171d;
  --ink: #f5ead5;
  --ink-bright: #fff9ec;
  --muted: #a79f91;
  --faint: #6f6b64;
  --line: rgba(235, 219, 187, 0.16);
  --line-strong: rgba(235, 219, 187, 0.28);
  --gold: #d6ad62;
  --gold-soft: rgba(214, 173, 98, 0.14);
  --cyan: #71d8da;
  --cyan-soft: rgba(113, 216, 218, 0.13);
  --red: #ed6a66;
  --red-soft: rgba(237, 106, 102, 0.13);
  --paper: #d9c7a5;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  --serif: "Iowan Old Style", "Noto Serif KR", "AppleMyungjo", "Times New Roman", serif;
  --sans: Inter, Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  font-family: var(--sans);
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 12%, rgba(60, 77, 86, 0.13), transparent 31rem),
    radial-gradient(circle at 90% 88%, rgba(214, 173, 98, 0.06), transparent 26rem),
    var(--bg);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

[data-help-key] {
  cursor: help;
}

[data-help-key]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 12px;
  padding: 10px 14px;
  color: #081014;
  background: var(--cyan);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.game-shell {
  --accent: var(--gold);
  --accent-soft: var(--gold-soft);
  display: grid;
  grid-template-rows: 64px auto minmax(0, 1fr);
  height: 100dvh;
  min-height: 100dvh;
  padding: 0 clamp(14px, 2.4vw, 34px) clamp(14px, 2.2vw, 30px);
}

.game-shell[data-tone="echo"] {
  --accent: var(--cyan);
  --accent-soft: var(--cyan-soft);
}

.game-shell[data-tone="danger"],
.game-shell[data-tone="red"] {
  --accent: var(--red);
  --accent-soft: var(--red-soft);
}

.game-shell[data-tone="paper"] {
  --accent: var(--paper);
  --accent-soft: rgba(217, 199, 165, 0.12);
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-width: 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  margin-right: 11px;
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(214, 173, 98, 0.18);
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chapter-status {
  display: flex;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-label {
  color: var(--accent);
}

.status-title {
  max-width: min(32vw, 320px);
  margin-left: 10px;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-divider {
  width: 1px;
  height: 12px;
  margin: 0 12px;
  background: var(--line-strong);
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.icon-button:hover {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.icon-button[aria-pressed="true"] .sound-icon {
  color: var(--accent);
}

.icon-button .button-label {
  font-size: 11px;
}

.sound-icon {
  width: 23px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: -0.12em;
}

.global-warning {
  align-self: center;
  margin: 9px 0 -1px;
  padding: 8px 12px;
  border: 1px solid rgba(237, 106, 102, 0.34);
  color: #ffd7ce;
  background: rgba(99, 24, 22, 0.34);
  font-size: 12px;
  animation: warning-in 220ms ease both;
}

.game-frame {
  display: grid;
  grid-row: 3;
  grid-template-columns: minmax(360px, 0.92fr) minmax(520px, 1.08fr);
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 1600px;
  height: calc(100% - clamp(24px, 4vh, 44px));
  max-height: 1200px;
  min-height: 0;
  margin-top: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

@media (min-width: 821px) {
  .story-scroll {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .story-copy {
    align-self: center;
  }

  .is-combat-screen .story-copy,
  .is-result-screen .story-copy {
    align-self: start;
  }
}

.visual-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
  isolation: isolate;
}

.stage-background {
  position: absolute;
  z-index: -4;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(0.68) contrast(1.08) brightness(0.7);
  transform: scale(1.025);
  animation: background-drift 18s ease-in-out infinite alternate;
}

.stage-wash {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0.2), rgba(6, 8, 12, 0.06) 45%, rgba(6, 8, 12, 0.88)),
    linear-gradient(90deg, transparent 58%, rgba(7, 9, 13, 0.55));
}

.stage-grid {
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.echo-rift {
  position: absolute;
  z-index: -1;
  inset: -20%;
  opacity: 0;
  background: radial-gradient(circle at 68% 52%, rgba(113, 216, 218, 0.22), transparent 24%);
  mix-blend-mode: screen;
  pointer-events: none;
}

[data-tone="echo"] .echo-rift {
  opacity: 1;
  animation: echo-breathe 2.8s ease-in-out infinite;
}

[data-tone="danger"] .visual-stage::after,
[data-tone="red"] .visual-stage::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  border: 1px solid rgba(237, 106, 102, 0.28);
  box-shadow: inset 0 0 80px rgba(120, 22, 20, 0.18);
  pointer-events: none;
}

.stage-index {
  position: absolute;
  top: 20px;
  left: 22px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: rgba(245, 234, 213, 0.62);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stage-index strong {
  color: var(--accent);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.stage-portrait {
  position: absolute;
  z-index: 1;
  right: clamp(-90px, -5vw, -34px);
  bottom: 0;
  width: min(70%, 590px);
  height: 91%;
  object-fit: contain;
  object-position: 50% 100%;
  filter: saturate(0.82) contrast(1.04) drop-shadow(-22px 18px 28px rgba(0, 0, 0, 0.46));
  transform-origin: bottom center;
  animation: portrait-in 420ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.stage-portrait.is-enemy {
  right: -3%;
  width: min(62%, 500px);
  height: 82%;
  filter: saturate(0.62) brightness(0.82) contrast(1.1) drop-shadow(-22px 18px 28px rgba(0, 0, 0, 0.52));
}

.battle-stage {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

.battle-actor {
  position: absolute;
  bottom: 8%;
  width: 31%;
  height: 80%;
  transform-origin: bottom center;
  transition: filter 180ms ease, opacity 180ms ease, transform 180ms ease;
  pointer-events: auto;
}

.battle-actor > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55));
}

.battle-roen { left: 2%; }
.battle-asella { left: 27%; }
.battle-enemy { right: 4%; }

.battle-actor:not(.is-active):not(.battle-enemy) {
  filter: brightness(0.68) saturate(0.72);
}

.battle-actor.is-active {
  filter: brightness(1.12) drop-shadow(0 0 18px rgba(214, 173, 98, 0.25));
  transform: translateY(-2%);
}

.battle-actor.is-striking {
  animation: actor-strike 420ms ease-out both;
}

.battle-enemy.is-hit {
  animation: enemy-hit 420ms ease-out both;
}

.battle-enemy.is-striking {
  animation: enemy-strike 480ms ease-out both;
}

.battle-roen.is-hit,
.battle-asella.is-hit {
  animation: ally-hit 480ms ease-out both;
}

.actor-status {
  position: absolute;
  z-index: 2;
  right: 10%;
  bottom: 2%;
  left: 10%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  padding: 7px 9px;
  border: 1px solid rgba(245, 234, 213, 0.24);
  color: var(--ink);
  background: rgba(7, 9, 13, 0.82);
  font-family: var(--mono);
  font-size: 8px;
  backdrop-filter: blur(8px);
}

.actor-status i {
  grid-column: 1 / -1;
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.actor-status b {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transition: width 260ms ease;
}

.battle-enemy .actor-status b { background: var(--red); }

.enemy-bubble {
  position: absolute;
  z-index: 3;
  top: 6%;
  left: 50%;
  min-width: 120px;
  padding: 7px 10px;
  border: 1px solid rgba(237, 106, 102, 0.5);
  color: #ffd3cf;
  text-align: center;
  background: rgba(67, 15, 17, 0.85);
  font-family: var(--serif);
  font-size: 12px;
  transform: translateX(-50%);
}

.enemy-bubble strong,
.enemy-bubble small {
  display: block;
}

.battle-log {
  position: absolute;
  z-index: 12;
  right: 14px;
  bottom: 12px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 12px;
  overflow: hidden;
  border: 1px solid rgba(113, 216, 218, 0.34);
  color: var(--ink);
  background: rgba(5, 8, 12, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
}

.battle-log span {
  flex: 0 0 auto;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.battle-log strong {
  min-width: 0;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.is-combat-screen .enemy-bubble,
.is-combat-screen .feedback-toast,
.is-combat-screen .stage-caption,
.is-combat-screen .scene-body {
  display: none;
}

.enemy-bubble small {
  margin-top: 3px;
  color: #dba9a6;
  font-family: var(--sans);
  font-size: 8px;
  line-height: 1.35;
}

.feedback-toast {
  position: absolute;
  z-index: 10;
  top: 22%;
  left: 50%;
  max-width: min(86%, 540px);
  padding: 11px 16px;
  border: 1px solid var(--gold);
  color: #17130c;
  text-align: center;
  background: var(--gold);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  transform: translate(-50%, -8px);
}

.feedback-toast[data-feedback-tone="red"] {
  border-color: var(--red);
  color: #fff2ec;
  background: #a73e3b;
}

.feedback-toast[data-feedback-tone="cyan"] {
  border-color: var(--cyan);
  color: #071516;
  background: var(--cyan);
}

.feedback-toast.is-showing {
  animation: feedback-pop 1.45s ease both;
}

.dialogue-heading {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.dialogue-avatar {
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 8px 8px 2px 8px;
  object-fit: cover;
  object-position: 50% 18%;
  background: #0b0d11;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.dialogue-avatar.is-enemy {
  object-position: 50% 12%;
}

.dialogue-heading .eyebrow {
  margin-bottom: 5px;
}

.dialogue-heading .speaker {
  margin-top: 6px;
}

.stage-caption {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(245, 234, 213, 0.72);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.stage-caption-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

.story-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.018), transparent 34%),
    var(--panel);
}

.campaign-status {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.campaign-status[data-mode="prologue"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.campaign-status > div {
  min-width: 0;
  padding: 12px 16px;
  border-right: 1px solid var(--line);
}

.campaign-status > div:hover,
.campaign-status > div:focus-visible {
  background: var(--accent-soft);
}

.campaign-status > div:last-child {
  border-right: 0;
}

.campaign-status span,
.campaign-status strong {
  display: block;
}

.campaign-status span {
  margin-bottom: 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
}

.campaign-status strong {
  overflow: hidden;
  color: var(--ink-bright);
  font-family: var(--serif);
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.choice-panel.is-decision-dock {
  position: absolute;
  z-index: 24;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: min(46%, 380px);
  overflow-y: auto;
  border-top: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(14, 17, 22, 0.96), #0e1116 20%);
  box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(14px);
}

.is-campaign-screen .choice-panel.is-decision-dock {
  max-height: min(58%, 460px);
}

.has-decision .story-footer {
  opacity: 0;
  pointer-events: none;
}

.has-decision .story-scroll {
  overflow: hidden;
}

.story-progress {
  display: grid;
  grid-template-columns: auto auto minmax(80px, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 46px;
  padding: 0 clamp(20px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress-track {
  height: 1px;
  overflow: visible;
  background: rgba(245, 234, 213, 0.15);
}

.progress-track span {
  position: relative;
  display: block;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 480ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.progress-track span::after {
  position: absolute;
  top: -3px;
  right: -1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.story-scroll {
  min-height: 0;
  overflow-y: auto;
  scrollbar-color: var(--line-strong) transparent;
}

.story-copy,
.choice-panel {
  padding-right: clamp(22px, 4vw, 52px);
  padding-left: clamp(22px, 4vw, 52px);
}

.story-copy {
  padding-top: clamp(24px, 3.8vh, 46px);
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.story-copy h1 {
  max-width: 720px;
  margin: 0;
  color: var(--ink-bright);
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.story-copy h1:focus {
  outline: none;
}

.speaker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.speaker::before {
  width: 18px;
  height: 1px;
  content: "";
  background: var(--accent);
}

.scene-body {
  max-width: 700px;
  margin-top: clamp(21px, 2.7vh, 30px);
  color: #d7cdbd;
  font-family: var(--serif);
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.86;
  word-break: keep-all;
  cursor: pointer;
}

.scene-body p {
  margin: 0 0 27px;
  animation: copy-in 360ms ease both;
}

.dialogue-line {
  min-height: 4.2em;
  margin: 0 !important;
}

.dialogue-line.is-typing::after {
  display: inline-block;
  width: 0.42em;
  height: 1.05em;
  margin-left: 0.16em;
  content: "";
  border-right: 2px solid var(--accent);
  vertical-align: -0.12em;
  animation: dialogue-cursor 720ms steps(1) infinite;
}

.choice-panel.is-locked {
  display: none;
}

.scene-body p:nth-child(2) {
  animation-delay: 70ms;
}

.scene-body p:nth-child(3) {
  animation-delay: 140ms;
}

.scene-callout {
  max-width: 700px;
  margin-top: 23px;
  padding: 12px 15px;
  border-left: 2px solid var(--accent);
  color: #cfc5b5;
  background: var(--accent-soft);
  font-size: 12px;
  line-height: 1.6;
}

.choice-panel {
  padding-top: 20px;
  padding-bottom: 26px;
}

.choice-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.choice-heading small {
  color: var(--faint);
  font-size: 8px;
}

.choices {
  display: grid;
  gap: 8px;
}

.choice-button {
  position: relative;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 12px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  text-align: left;
  background: rgba(255, 255, 255, 0.018);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.choice-button::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  content: "";
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 180ms ease;
}

.choice-button:hover {
  border-color: color-mix(in srgb, var(--accent) 58%, transparent);
  background: var(--accent-soft);
  transform: translateX(3px);
}

.choice-button:hover::before,
.choice-button:focus-visible::before {
  transform: scaleY(1);
}

.choice-number {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
}

.choice-copy {
  display: grid;
  gap: 5px;
}

.choice-copy strong {
  color: var(--ink-bright);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
}

.choice-copy small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.choice-arrow {
  color: var(--faint);
  font-size: 16px;
  transition: color 180ms ease, transform 180ms ease;
}

.choice-button:hover .choice-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

.result-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.summary-item {
  min-height: 72px;
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.summary-item span {
  display: block;
  margin-bottom: 7px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.summary-item strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.result-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.primary-action {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  color: #0c0d0f;
  background: var(--accent);
  font-family: var(--serif);
  font-weight: 600;
  cursor: pointer;
  transition: filter 160ms ease, transform 160ms ease;
}

.primary-action:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.story-footer {
  display: none;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  padding: 10px clamp(20px, 3vw, 40px);
  border-top: 1px solid var(--line);
  background: rgba(4, 6, 9, 0.34);
}

.meter-group {
  display: flex;
  gap: clamp(18px, 3vw, 42px);
}

.meter-item {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 9px;
  align-items: baseline;
}

.meter-item[data-help-key] {
  padding: 4px 6px;
  border: 1px solid transparent;
}

.meter-item[data-help-key]:hover,
.meter-item[data-help-key]:focus-visible {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
}

.meter-item span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.meter-item strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
}

.mini-meter {
  grid-column: 1 / -1;
  width: 76px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.mini-meter i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(113, 216, 218, 0.5);
  transition: width 320ms ease;
}

.keyboard-hint {
  margin: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
}

kbd {
  display: inline-flex;
  justify-content: center;
  min-width: 20px;
  margin: 0 2px;
  padding: 2px 4px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.start-form {
  display: grid;
  gap: 20px;
  max-width: 700px;
  margin-top: 28px;
}

.is-start-screen .story-copy {
  padding-top: clamp(24px, 3.2vh, 38px);
}

.is-start-screen .story-copy h1 {
  font-size: clamp(25px, 2.4vw, 38px);
}

.is-start-screen .speaker {
  display: none;
}

.is-start-screen .scene-body {
  margin-top: 18px;
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.65;
}

.is-start-screen .scene-callout {
  margin-top: 14px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.is-start-screen .choice-panel {
  padding-top: 16px;
  padding-bottom: 24px;
}

.is-start-screen .start-form {
  gap: 13px;
  margin-top: 12px;
}

.is-start-screen .primary-action,
.is-start-screen .secondary-action {
  min-height: 48px;
}

.is-result-screen .story-copy {
  padding-top: clamp(22px, 3vh, 34px);
}

.is-result-screen .story-copy h1 {
  font-size: clamp(24px, 2.4vw, 36px);
}

.is-result-screen .scene-body {
  margin-top: 18px;
  font-size: clamp(15px, 1vw, 17px);
  line-height: 1.65;
}

.is-result-screen .choice-panel {
  padding-top: 14px;
  padding-bottom: 20px;
}

.is-result-screen .summary-item {
  min-height: 62px;
  padding: 11px 14px;
}

.combat-panel {
  display: grid;
  gap: 12px;
}

.combat-vitals,
.enemy-intent,
.combat-tabs {
  display: none;
}

.combat-vitals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.combat-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  padding: 8px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.combat-bar:hover,
.combat-bar:focus-visible,
.enemy-intent:hover,
.enemy-intent:focus-visible,
.combat-objectives [data-help-key]:hover,
.combat-objectives [data-help-key]:focus-visible {
  border-color: var(--accent);
}

.help-dialog {
  width: min(430px, calc(100vw - 28px));
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--ink);
  background: #11151b;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72);
  animation: help-in 220ms ease-out both;
}

.help-dialog::backdrop {
  background: rgba(2, 4, 7, 0.78);
  backdrop-filter: blur(5px);
}

.transcript-dialog {
  width: min(680px, calc(100vw - 28px));
}

.transcript-scroll {
  display: grid;
  gap: 10px;
  max-height: min(58dvh, 520px);
  margin: 0 0 20px;
  padding: 2px 10px 2px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--line-strong) transparent;
}

.transcript-line {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.transcript-line span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
}

.transcript-line p {
  margin: 0;
  color: #e3d8c7;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.65;
  word-break: keep-all;
}

.help-dialog h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 27px;
}

.help-dialog > p:not(.eyebrow) {
  margin: 0 0 22px;
  color: #d7cdbd;
  font-size: 15px;
  line-height: 1.75;
  word-break: keep-all;
}

.help-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.combat-bar span,
.combat-bar strong {
  font-family: var(--mono);
  font-size: 8px;
}

.combat-bar span { color: var(--muted); }
.combat-bar strong { color: var(--ink); font-weight: 500; }

.combat-bar i {
  grid-column: 1 / -1;
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
}

.combat-bar b {
  display: block;
  height: 100%;
  background: var(--gold);
  transition: width 220ms ease;
}

.combat-bar[data-bar-tone="cyan"] b { background: var(--cyan); }
.combat-bar[data-bar-tone="blue"] b { background: #75a8ff; }
.combat-bar[data-bar-tone="red"] b { background: var(--red); }

.enemy-intent {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(237, 106, 102, 0.32);
  background: var(--red-soft);
}

.enemy-intent span,
.enemy-intent em {
  color: var(--red);
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.enemy-intent strong {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
}

.enemy-intent small { color: #c6bbae; font-size: 10px; }

.combat-objectives {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.combat-objectives span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.combat-objectives [data-status="rescued"],
.combat-objectives [data-status="secured"] {
  border-color: rgba(113, 216, 218, 0.34);
  color: var(--cyan);
  background: var(--cyan-soft);
}

.combat-objectives [data-status="dead"],
.combat-objectives [data-status="destroyed"] {
  border-color: rgba(237, 106, 102, 0.34);
  color: #ffaaa4;
  background: var(--red-soft);
}

.combat-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
}

.combat-tabs button {
  min-width: 74px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  font-family: var(--mono);
  font-size: 9px;
  cursor: pointer;
}

.combat-tabs button[aria-selected="true"] {
  border-bottom-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.combat-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}

.combat-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
  background: rgba(255, 255, 255, 0.018);
  cursor: pointer;
}

.combat-action:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.combat-action.is-recommended { border-color: var(--accent); background: var(--accent-soft); }
.combat-action:disabled { opacity: 0.43; cursor: not-allowed; }
.combat-action > span:first-child { display: grid; gap: 4px; }
.combat-action strong { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.combat-action small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.combat-key, .combat-ready { color: var(--accent); font-family: var(--mono); font-size: 8px; }
.combat-ready:empty { display: none; }

.is-combat-screen .story-copy { padding-top: 20px; }
.is-combat-screen .story-copy h1 { font-size: clamp(22px, 2vw, 32px); }
.is-combat-screen .scene-body { margin-top: 12px; font-family: var(--sans); font-size: 12px; line-height: 1.45; }
.is-combat-screen .scene-body p { margin-bottom: 4px; }
.is-combat-screen .scene-callout { margin-top: 9px; padding-top: 7px; padding-bottom: 7px; }
.is-combat-screen .choice-panel { padding-top: 10px; padding-bottom: 16px; }
.is-combat-screen .combat-vitals,
.is-combat-screen .enemy-intent,
.is-combat-screen .combat-tabs,
.is-combat-screen .stage-index,
.is-combat-screen .story-footer {
  display: none !important;
}

.is-campaign-screen .story-footer,
.is-encounter-screen .actor-status,
.is-encounter-screen .enemy-bubble,
.is-encounter-screen .stage-caption {
  display: none !important;
}

.is-encounter-screen .battle-log {
  border-color: rgba(237, 106, 102, 0.42);
}

.is-mystery-screen .scene-body {
  color: #c9eded;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
}

.is-mystery-screen .scene-callout {
  border-color: var(--cyan);
  background: var(--cyan-soft);
}

.is-route-screen .campaign-status {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.is-route-screen .story-panel {
  box-shadow: inset 0 0 70px var(--accent-soft);
}

.start-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.secondary-action {
  min-height: 52px;
  padding: 0 17px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.secondary-action:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

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

.is-transitioning .story-copy,
.is-transitioning .choice-panel {
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 120ms ease, transform 120ms ease;
}

@keyframes background-drift {
  from { transform: scale(1.025) translate3d(-0.2%, 0, 0); }
  to { transform: scale(1.055) translate3d(0.4%, -0.4%, 0); }
}

@keyframes portrait-in {
  from { opacity: 0; transform: translate3d(18px, 12px, 0) scale(0.985); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

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

@keyframes echo-breathe {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

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

@keyframes dialogue-cursor {
  0%, 52% { opacity: 1; }
  53%, 100% { opacity: 0; }
}

@keyframes help-in {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes feedback-pop {
  0% { opacity: 0; transform: translate(-50%, -12px) scale(0.96); }
  14%, 78% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -4px) scale(0.99); }
}

@keyframes actor-strike {
  0%, 100% { transform: translateX(0); }
  48% { transform: translateX(12%); }
}

@keyframes enemy-hit {
  0%, 100% { transform: translateX(0); filter: brightness(1); }
  25% { transform: translateX(-4%); filter: brightness(1.7) saturate(0.45); }
  55% { transform: translateX(3%); }
}

@keyframes enemy-strike {
  0%, 100% { transform: translateX(0); }
  46% { transform: translateX(-18%); filter: brightness(1.16); }
}

@keyframes ally-hit {
  0%, 100% { transform: translateX(0); filter: brightness(1); }
  24% { transform: translateX(-5%); filter: brightness(1.65) saturate(0.5); }
  55% { transform: translateX(3%); }
}

@media (max-width: 1100px) {
  .game-frame {
    grid-template-columns: minmax(300px, 0.82fr) minmax(460px, 1.18fr);
  }

  .story-copy h1 {
    font-size: clamp(29px, 4vw, 43px);
  }

  .stage-portrait {
    width: 80%;
  }

  .button-label,
  .keyboard-hint {
    display: none;
  }

  .start-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .start-actions .primary-action {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  body {
    overflow: auto;
  }

  .game-shell {
    display: block;
    height: auto;
    min-height: 100dvh;
    padding: 0;
  }

  .topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    grid-template-columns: 1fr auto;
    min-height: 56px;
    padding: 0 12px;
    background: rgba(7, 9, 13, 0.94);
    backdrop-filter: blur(14px);
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .chapter-status {
    display: none;
  }

  .global-warning {
    position: sticky;
    z-index: 19;
    top: 56px;
    margin: 0;
    border-width: 0 0 1px;
  }

  .game-frame {
    display: block;
    min-height: calc(100dvh - 56px);
    margin: 0;
    overflow: visible;
    border: 0;
  }

  .visual-stage {
    height: clamp(230px, 33vh, 330px);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .is-start-screen .visual-stage,
  .is-combat-screen .visual-stage {
    height: 156px;
  }

  .stage-background {
    object-position: 52% 54%;
  }

  .stage-portrait {
    right: -8%;
    width: min(58%, 320px);
    height: 90%;
  }

  .stage-portrait.is-enemy {
    right: 1%;
    width: min(48%, 260px);
  }

  .stage-index {
    top: 13px;
    left: 14px;
  }

  .stage-caption {
    right: 14px;
    bottom: 12px;
    left: 14px;
  }

  .story-panel {
    display: block;
    min-height: 0;
  }

  .story-progress {
    position: sticky;
    z-index: 10;
    top: 56px;
    min-height: 39px;
    padding: 0 16px;
    background: rgba(14, 17, 22, 0.96);
    backdrop-filter: blur(12px);
  }

  .story-scroll {
    overflow: visible;
  }

  .story-copy,
  .choice-panel {
    padding-right: 18px;
    padding-left: 18px;
  }

  .story-copy {
    padding-top: 27px;
  }

  .is-start-screen .story-copy {
    padding-top: 24px;
  }

  .story-copy h1 {
    font-size: clamp(30px, 9.6vw, 45px);
    line-height: 1.12;
  }

  .scene-body {
    margin-top: 24px;
    font-size: 17px;
    line-height: 1.78;
  }

  .choice-panel {
    padding-top: 22px;
    padding-bottom: 126px;
  }

  .is-combat-screen .choice-panel {
    padding-top: 10px;
    padding-bottom: 104px;
  }

  .is-start-screen .choice-panel {
    padding-bottom: 150px;
  }

  .is-start-screen .story-footer {
    display: none;
  }

  .is-start-screen .start-actions {
    position: fixed;
    z-index: 40;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 10px;
    padding: 8px;
    border: 1px solid var(--line-strong);
    background: rgba(7, 9, 13, 0.96);
    box-shadow: 0 -16px 34px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
  }

  .combat-vitals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .enemy-intent {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .enemy-intent small {
    grid-column: 1 / -1;
  }

  .choice-button {
    min-height: 73px;
  }

  .story-footer {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: calc(70px + env(safe-area-inset-bottom));
    padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
    background: rgba(7, 9, 13, 0.94);
    backdrop-filter: blur(14px);
  }

  .meter-group {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .meter-item {
    min-width: 0;
  }

  .mini-meter {
    width: 54px;
  }

  .start-actions {
    grid-template-columns: 1fr;
  }

  /* Mobile visual-novel frame: one viewport, one current line, minimal page scroll. */
  body {
    overflow: hidden;
  }

  .game-shell {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .topbar {
    position: relative;
  }

  .global-warning {
    display: none;
  }

  .game-frame {
    position: relative;
    height: calc(100dvh - 56px);
    min-height: 0;
    overflow: hidden;
  }

  .visual-stage,
  .is-start-screen .visual-stage {
    position: absolute;
    inset: 0;
    height: auto;
    border: 0;
  }

  .stage-portrait {
    bottom: 42%;
    height: 53%;
  }

  .stage-caption {
    top: 112px;
    bottom: auto;
  }

  .story-panel {
    position: absolute;
    z-index: 8;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    height: 56%;
    min-height: 0;
    border-top: 1px solid var(--line-strong);
    background:
      linear-gradient(180deg, rgba(14, 17, 22, 0.94), #0e1116 20%),
      var(--panel);
    box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(15px);
  }

  .campaign-status,
  .campaign-status[data-mode="prologue"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .campaign-status > div {
    padding: 7px 10px;
    border-bottom: 1px solid var(--line);
  }

  .is-start-screen .story-panel {
    height: 58%;
  }

  .is-result-screen .story-panel {
    height: 76%;
  }

  .is-result-screen .stage-portrait {
    bottom: 68%;
    height: 30%;
  }

  .is-combat-screen .visual-stage {
    display: block;
    height: 100%;
  }

  .is-combat-screen .story-panel {
    height: 62%;
  }

  .story-progress {
    position: static;
    min-height: 34px;
    padding: 0 12px;
  }

  .story-scroll {
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .story-scroll::-webkit-scrollbar {
    display: none;
  }

  .story-copy,
  .choice-panel {
    padding-right: 16px;
    padding-left: 16px;
  }

  .story-copy,
  .is-start-screen .story-copy {
    padding-top: 14px;
  }

  .story-copy h1,
  .is-start-screen .story-copy h1 {
    font-size: clamp(20px, 4vw, 25px);
    line-height: 1.12;
  }

  .speaker {
    margin-top: 9px;
  }

  .scene-body,
  .is-start-screen .scene-body {
    min-height: 62px;
    margin-top: 13px;
    font-size: 15px;
    line-height: 1.67;
  }

  .is-start-screen .scene-body {
    min-height: 32px;
  }

  .scene-callout,
  .is-start-screen .scene-callout {
    margin-top: 9px;
    padding: 8px 10px;
    font-size: 10px;
  }

  .dialogue-line {
    min-height: 4.8em;
  }

  .choice-panel,
  .is-start-screen .choice-panel,
  .is-combat-screen .choice-panel {
    padding-top: 8px;
    padding-bottom: 10px;
  }

  .choice-panel.is-decision-dock {
    max-height: min(40dvh, 310px);
    padding: 9px 14px 12px;
  }

  .choice-button {
    min-height: 57px;
    padding: 8px 10px;
  }

  .choice-copy strong {
    font-size: 14px;
  }

  .choice-copy small {
    font-size: 9px;
  }

  .story-footer {
    position: static;
    min-height: 47px;
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
  }

  .mini-meter {
    display: none;
  }

  .meter-item {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .is-start-screen .start-actions {
    bottom: calc(8px + env(safe-area-inset-bottom));
  }

  .is-combat-screen .story-copy {
    padding-top: 8px;
  }

  .is-combat-screen .scene-body,
  .is-combat-screen .scene-callout {
    display: none;
  }

  .is-combat-screen .story-copy h1 {
    font-size: 21px;
  }

  .is-combat-screen .choice-panel {
    padding-top: 5px;
  }

  .is-combat-screen .story-footer {
    display: none;
  }

  .is-combat-screen .combat-vitals {
    display: none;
  }

  .is-combat-screen .enemy-intent {
    display: none;
  }

  .is-combat-screen .battle-actor {
    top: 1%;
    bottom: auto;
    width: 29%;
    height: 31%;
  }

  .is-encounter-screen .story-panel {
    height: 62%;
  }

  .is-encounter-screen .battle-actor {
    top: 1%;
    bottom: auto;
    width: 29%;
    height: 31%;
  }

  .is-encounter-screen .battle-roen { left: 1%; }
  .is-encounter-screen .battle-asella { left: 31%; }
  .is-encounter-screen .battle-enemy { right: 1%; }

  .is-encounter-screen .battle-log {
    right: 8px;
    bottom: calc(62% + 6px);
    left: 8px;
    min-height: 34px;
  }

  .is-combat-screen .battle-roen { left: 1%; }
  .is-combat-screen .battle-asella { left: 31%; }
  .is-combat-screen .battle-enemy { right: 1%; }

  .is-combat-screen .battle-log {
    right: 8px;
    bottom: calc(62% + 6px);
    left: 8px;
    min-height: 34px;
    padding: 6px 9px;
  }

  .is-combat-screen .battle-log strong {
    font-size: 9px;
  }

  .transcript-dialog {
    padding: 20px 18px;
  }

  .transcript-scroll {
    max-height: 62dvh;
  }

  .dialogue-heading {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 9px;
  }

  .dialogue-avatar {
    width: 42px;
    height: 42px;
  }

  .combat-vitals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .combat-bar {
    padding: 6px 7px;
  }

  .enemy-intent {
    padding: 7px 9px;
  }

  .combat-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .combat-action {
    min-height: 51px;
    padding: 6px 8px;
  }
}

@media (max-width: 540px) {
  .brand-copy small,
  #reset-button {
    display: none;
  }

  .combat-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .result-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .choice-heading small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
