:root {
  --bg: #040507;
  --text: #f4efe5;
  --muted: #aeb5c1;
  --accent: #f0b35c;
  --accent-rgb: 240 179 92;
  --role-accent: #79b36f;
  --role-accent-rgb: 121 179 111;
  --line: rgba(255, 255, 255, 0.1);
  --panel: rgba(12, 14, 18, 0.62);
  --panel-strong: rgba(7, 8, 11, 0.84);
  --radius: 18px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
  --app-height: 100vh;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: #020304;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  letter-spacing: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.06), transparent 30%),
    radial-gradient(circle at 50% 68%, rgba(255, 255, 255, 0.02), transparent 28%),
    linear-gradient(180deg, #0b0d11 0%, #040507 48%, #010101 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at center, transparent 25%, rgba(0, 0, 0, 0.28) 100%);
  pointer-events: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button,
.scene-video {
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none !important;
}

.app {
  position: relative;
  width: 100vw;
  height: var(--app-height);
  overflow: hidden;
  background: #000;
}

.app.is-start .hud,
.app.is-start .story-card,
.app.is-start .choice-zone,
.app.is-start .start-gate,
.app.is-intro .hud,
.app.is-intro .story-card,
.app.is-intro .choice-zone,
.app.is-intro .start-gate {
  opacity: 0;
  pointer-events: none;
}

.scene-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
  filter: none;
}

.veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.08) 22%, rgba(0, 0, 0, 0.1) 70%, rgba(0, 0, 0, 0.56)),
    radial-gradient(circle at center, transparent 38%, rgba(0, 0, 0, 0.16) 100%);
}

.start-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 84px 18px 28px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.44) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.start-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.start-copy {
  width: min(560px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.start-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(12, 13, 18, 0.5);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.start-copy h1 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: 0;
}

.start-load {
  width: min(480px, 100%);
  display: grid;
  gap: 8px;
  padding: 12px 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(8, 10, 14, 0.42);
}

.start-load-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.start-load-label {
  color: rgba(244, 239, 229, 0.86);
}

.start-load-count {
  color: var(--accent);
}

.start-load-track {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.start-load-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.75), rgba(var(--accent-rgb), 1));
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.28);
  transition: width 180ms ease;
}

.start-load-hint {
  margin: 0;
  color: rgba(244, 239, 229, 0.7);
  font-size: 12px;
  line-height: 1.45;
}

.start-button {
  min-width: 180px;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid rgba(var(--accent-rgb), 0.68);
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.72);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  transition:
    transform 140ms ease,
    filter 140ms ease,
    background 140ms ease;
}

.start-button:hover {
  transform: translateY(-1px);
  background: rgba(14, 16, 22, 0.86);
  filter: brightness(1.04);
}

.start-button:active {
  transform: translateY(0);
}

.start-button:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.85);
  outline-offset: 2px;
}

.start-button:disabled {
  cursor: progress;
  opacity: 0.68;
  transform: none;
  filter: grayscale(0.12);
}

.start-button:disabled:hover {
  transform: none;
  background: rgba(8, 10, 14, 0.72);
  filter: grayscale(0.12);
}

.restart-fab {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: 12px;
  z-index: 10;
}

.intro-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: 86px 18px 28px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.36) 100%),
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.05), transparent 28%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.intro-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.intro-copy {
  width: min(900px, 100%);
  margin: 0 auto;
  text-align: center;
}

.intro-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(12, 13, 18, 0.5);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.intro-copy h1 {
  margin: 14px 0 10px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: 0;
}

.intro-copy p {
  margin: 0 auto;
  max-width: 760px;
  color: rgba(244, 239, 229, 0.88);
  font-size: 15px;
  line-height: 1.7;
}

.intro-foot {
  margin: 0 auto;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-align: center;
}

.role-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.role-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 0;
  min-height: 320px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(11, 12, 16, 0.76), rgba(7, 8, 11, 0.9));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  text-align: left;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.role-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--role-accent-rgb), 0.64);
  background: rgba(10, 12, 16, 0.94);
}

.role-card:focus-visible,
.chip:focus-visible,
.icon-btn:focus-visible,
.start-gate:focus-visible,
.choice-card:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.85);
  outline-offset: 2px;
}

.role-card[data-role="xiaoXin"] {
  --role-accent-rgb: 121 179 111;
}

.role-card[data-role="xiaoChe"] {
  --role-accent-rgb: 111 151 232;
}

.role-media {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(248, 244, 237, 0.98), rgba(236, 230, 220, 0.98));
}

.role-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
}

.role-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.74);
  color: #fff;
  font-size: 12px;
}

.role-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 4px 6px 12px;
}

.role-name {
  margin: 0;
  font-size: 28px;
  line-height: 1.06;
  font-weight: 800;
}

.role-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.role-copy {
  margin: 0;
  color: rgba(244, 239, 229, 0.9);
  font-size: 14px;
  line-height: 1.68;
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(var(--role-accent-rgb), 0.34);
  border-radius: 999px;
  background: rgba(var(--role-accent-rgb), 0.08);
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
}

.hud {
  position: absolute;
  inset: 16px 18px auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
  z-index: 8;
}

.hud-left,
.hud-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  pointer-events: auto;
}

.hud-center {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 13, 18, 0.58);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 13, 18, 0.58);
  backdrop-filter: blur(14px);
  color: var(--text);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

.chip.ghost {
  color: var(--muted);
}

.role-chip {
  cursor: pointer;
}

.role-chip:not(.ghost) {
  border-color: rgba(var(--role-accent-rgb), 0.44);
  background: rgba(var(--role-accent-rgb), 0.12);
}

.role-chip.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 16, 21, 0.58);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background 120ms ease,
    opacity 120ms ease;
}

.icon-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-rgb), 0.72);
  background: rgba(var(--accent-rgb), 0.1);
}

.icon-btn:active:not(:disabled) {
  transform: translateY(0);
}

.icon-btn.is-active {
  border-color: rgba(var(--accent-rgb), 0.94);
  background: rgba(var(--accent-rgb), 0.16);
}

.icon-btn svg,
.gate-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.start-gate {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 9;
  display: grid;
  place-items: center;
  gap: 10px;
  width: 112px;
  height: 112px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(8, 9, 12, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.start-gate.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.start-gate:hover {
  transform: translate(-50%, -50%) scale(1.02);
}

.gate-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.gate-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid currentColor;
}

.gate-text {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

.story-card {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 7;
  width: min(420px, calc(100vw - 36px));
  padding: 16px 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(10, 11, 15, 0.18), rgba(7, 8, 11, 0.84));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

.story-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.story-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.story-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
}

.story-pill.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.story-role {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.story-role img {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 14px;
  object-fit: cover;
  object-position: center top;
  background: rgba(255, 255, 255, 0.92);
}

.story-role-copy {
  min-width: 0;
}

.story-role-label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-role-name {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.24;
  font-weight: 700;
}

.story-role-desc {
  margin: 4px 0 0;
  color: rgba(244, 239, 229, 0.82);
  font-size: 12px;
  line-height: 1.5;
}

.story-card h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
}

.story-summary {
  margin: 10px 0 0;
  color: rgba(244, 239, 229, 0.88);
  font-size: 14px;
  line-height: 1.58;
}

.story-caption {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  line-height: 1.48;
}

.story-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.progress-track {
  position: relative;
  flex: 1;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.4), rgba(var(--accent-rgb), 1));
}

.time-line {
  min-width: 84px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.choice-zone {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 7;
  width: min(980px, calc(100vw - 420px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  pointer-events: none;
}

.choice-zone.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.choice-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  gap: 12px;
  min-width: 0;
  min-height: 140px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(11, 12, 16, 0.66);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  text-align: left;
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background 120ms ease;
}

.choice-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.72);
  background: rgba(var(--accent-rgb), 0.06);
}

.choice-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choice-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: 8px;
  color: var(--accent);
  font-size: 12px;
}

.choice-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
}

.choice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.choice-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.choice-thumb {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.choice-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 960px) {
  .scene-video {
    object-fit: cover;
    object-position: center center;
  }

  .role-card,
  .hud-center,
  .chip,
  .start-gate,
  .start-button,
  .story-card,
  .choice-card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  }

  .start-overlay {
    padding: calc(22px + env(safe-area-inset-top)) 14px calc(24px + env(safe-area-inset-bottom));
  }

  .intro-overlay {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.34) 100%),
      radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.04), transparent 28%);
  }

  .hud {
    inset: calc(10px + env(safe-area-inset-top)) 10px auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "left right"
      "center center";
    gap: 8px 10px;
  }

  .hud-left,
  .hud-right {
    gap: 8px;
    flex-wrap: wrap;
  }

  .hud-left {
    grid-area: left;
    align-self: start;
  }

  .hud-right {
    grid-area: right;
    justify-content: flex-end;
    align-self: start;
  }

  .hud-center {
    position: static;
    grid-area: center;
    left: auto;
    top: auto;
    transform: none;
    justify-self: center;
    margin-top: 2px;
  }

  .role-grid {
    grid-template-columns: 1fr;
  }

  .role-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .role-media {
    aspect-ratio: 16 / 10;
  }

  .story-card {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    max-height: min(44dvh, 360px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .choice-zone {
    left: 12px;
    right: 12px;
    top: 112px;
    bottom: calc(12px + env(safe-area-inset-bottom) + 120px);
    width: auto;
    grid-template-columns: 1fr;
    align-content: start;
    overflow-y: auto;
    padding-right: 4px;
  }

  .restart-fab {
    top: calc(10px + env(safe-area-inset-top));
    right: 10px;
  }
}

@media (max-width: 560px) {
  .role-card,
  .hud-center,
  .chip,
  .start-gate,
  .start-button,
  .story-card,
  .choice-card {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  }

  .start-copy {
    gap: 12px;
  }

  .start-copy h1 {
    font-size: 28px;
  }

  .start-load {
    padding: 10px 12px 12px;
    border-radius: 16px;
  }

  .start-load-head {
    font-size: 11px;
  }

  .start-button {
    width: min(100%, 240px);
    min-height: 46px;
    font-size: 15px;
  }

  .intro-overlay {
    justify-content: flex-start;
    padding: calc(18px + env(safe-area-inset-top)) 10px 14px;
  }

  .intro-copy h1 {
    margin: 8px 0 8px;
    font-size: 24px;
  }

  .intro-copy p {
    font-size: 13px;
    line-height: 1.55;
  }

  .intro-foot {
    font-size: 11px;
  }

  .role-card {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 168px;
    padding: 10px;
  }

  .role-name {
    font-size: 20px;
  }

  .role-subtitle {
    font-size: 12px;
  }

  .role-copy {
    font-size: 12px;
    line-height: 1.45;
  }

  .role-media {
    width: 112px;
    aspect-ratio: 3 / 4;
  }

  .role-body {
    padding: 4px 2px 4px 10px;
    gap: 8px;
  }

  .role-tags {
    gap: 6px;
  }

  .role-tags span {
    min-height: 20px;
    padding: 0 8px;
    font-size: 11px;
  }

  .hud-center {
    gap: 6px;
    padding: 7px 8px;
    max-width: calc(100vw - 20px);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .hud-center::-webkit-scrollbar {
    display: none;
  }

  .icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .start-gate {
    width: 96px;
    height: 96px;
  }

  .gate-icon {
    width: 46px;
    height: 46px;
  }

  .story-card h1 {
    font-size: 21px;
  }

  .story-card {
    padding: 14px 14px 12px;
    max-height: min(40dvh, 330px);
  }

  .story-role {
    padding: 10px;
    gap: 10px;
  }

  .story-role img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .choice-card {
    grid-template-columns: minmax(0, 1fr) 84px;
    min-height: 112px;
    padding: 11px;
    gap: 10px;
  }

  .choice-title {
    font-size: 15px;
  }
}
