:root {
  --bg-deep: #121018;
  --panel-dark: rgba(24, 20, 32, 0.94);
  --panel-mid: rgba(34, 28, 44, 0.92);
  --brass-bright: #f4d690;
  --brass-mid: #c89748;
  --brass-dim: #735426;
  --ink-light: #f6efe2;
  --ink-muted: #c2b7a6;
  --accent-sky: #7cb8d8;
  --accent-coral: #e57a67;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", Georgia, serif;
}

* {
  box-sizing: border-box;
  user-select: none;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #231d30 0%, #0f0d14 100%);
  color: var(--ink-light);
  font-family: var(--font-sans);
}

.hidden {
  display: none !important;
}

.app-shell {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  gap: 8px;
}

/* 顶部 RPG 状态栏 */
.hud-topbar {
  width: min(1280px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 14px;
  background: linear-gradient(180deg, rgba(35, 29, 46, 0.95), rgba(20, 17, 28, 0.95));
  border: 1.5px solid var(--brass-dim);
  box-shadow: inset 0 0 0 1px rgba(244, 214, 144, 0.16), 0 6px 20px rgba(0, 0, 0, 0.45);
  border-radius: 6px;
}

.hud-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(14, 12, 20, 0.65);
  border: 1px solid rgba(200, 151, 72, 0.28);
  font-size: 13px;
  color: var(--ink-light);
  white-space: nowrap;
}

.hud-badge.date-badge {
  color: var(--brass-bright);
  font-weight: 600;
}

.hud-badge.companion-badge {
  border-color: rgba(124, 184, 216, 0.36);
  color: #cfe8f6;
}

.ui-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid var(--brass-dim);
  background: linear-gradient(180deg, rgba(58, 45, 30, 0.72), rgba(31, 24, 20, 0.85));
  color: var(--ink-light);
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
}

.hud-btn:hover {
  border-color: var(--brass-bright);
  background: linear-gradient(180deg, rgba(84, 63, 38, 0.85), rgba(45, 34, 25, 0.92));
}

.hud-btn:active {
  transform: translateY(1px);
}

.hud-btn.icon-only {
  padding: 5px 8px;
}

.key-cap {
  font-style: normal;
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink-muted);
}

.hud-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(200, 151, 72, 0.25);
  color: var(--brass-bright);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

/* 主游戏舞台 */
.stage-wrapper {
  position: relative;
  width: min(1280px, 100%);
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 76px);
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--brass-mid);
  box-shadow: 0 0 0 1px rgba(244, 214, 144, 0.25), 0 20px 55px rgba(0, 0, 0, 0.7);
  background: #0d111a;
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* 章节演出字幕卡 */
.chapter-card {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: radial-gradient(circle at center, rgba(14, 12, 22, 0.78), rgba(8, 7, 14, 0.94));
  pointer-events: none;
  animation: fadeChapter 3.2s ease forwards;
}

@keyframes fadeChapter {
  0% { opacity: 0; }
  16% { opacity: 1; }
  78% { opacity: 1; }
  100% { opacity: 0; }
}

.chapter-ornament {
  width: 240px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass-bright), transparent);
}

.chapter-eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--brass-mid);
}

.chapter-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  text-shadow: 0 2px 18px rgba(244, 214, 144, 0.35);
}

.chapter-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
}

/* 浮动目标条 */
.quest-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(18, 16, 26, 0.78);
  border: 1px solid rgba(244, 214, 144, 0.38);
  backdrop-filter: blur(4px);
  font-size: 13px;
  color: var(--ink-light);
}

.quest-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass-bright);
  box-shadow: 0 0 8px var(--brass-bright);
}

/* Toast */
.toast-stack {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.toast-item {
  padding: 8px 14px;
  border-radius: 5px;
  background: rgba(22, 18, 30, 0.92);
  border: 1px solid var(--brass-mid);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  font-size: 13px;
  color: var(--brass-bright);
  animation: toastSlide 0.25s ease;
}

@keyframes toastSlide {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 底部提示条 */
.controls-bar {
  position: absolute;
  left: 14px;
  bottom: 10px;
  z-index: 8;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 5px 10px;
  border-radius: 4px;
  background: rgba(14, 12, 20, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11.5px;
  color: rgba(246, 239, 226, 0.8);
  pointer-events: none;
}

.controls-bar kbd {
  display: inline-block;
  padding: 1px 5px;
  margin-right: 2px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-family: inherit;
  font-size: 10.5px;
  color: var(--brass-bright);
}

/* 标题界面 */
.title-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 45%, rgba(16, 18, 32, 0.42), rgba(10, 10, 18, 0.82));
  backdrop-filter: blur(2px);
}

.title-panel {
  width: min(560px, 90%);
  padding: 34px 32px;
  text-align: center;
  background: linear-gradient(180deg, rgba(24, 20, 34, 0.92), rgba(16, 14, 24, 0.95));
  border: 2px solid var(--brass-mid);
  box-shadow: inset 0 0 0 1px rgba(244, 214, 144, 0.2), 0 24px 60px rgba(0, 0, 0, 0.72);
  border-radius: 10px;
}

.title-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--brass-mid);
}

.game-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 38px);
  color: var(--ink-light);
  letter-spacing: 0.08em;
  text-shadow: 0 2px 18px rgba(124, 184, 216, 0.35);
}

.game-tagline {
  margin: 12px 0 0;
  font-size: 13px;
  font-style: italic;
  color: var(--accent-sky);
  line-height: 1.6;
}

.title-divider {
  width: 72%;
  height: 1px;
  margin: 22px auto;
  background: linear-gradient(90deg, transparent, var(--brass-mid), transparent);
}

.title-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.rpg-btn {
  min-width: 250px;
  padding: 11px 22px;
  border-radius: 5px;
  border: 1.5px solid var(--brass-dim);
  background: linear-gradient(180deg, rgba(50, 40, 32, 0.92), rgba(26, 21, 20, 0.96));
  color: var(--ink-light);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.rpg-btn.primary {
  border-color: var(--brass-mid);
  background: linear-gradient(180deg, #5e4423, #3a2916);
  color: var(--brass-bright);
}

.rpg-btn:hover {
  border-color: var(--brass-bright);
  box-shadow: 0 0 18px rgba(244, 214, 144, 0.22);
}

.title-hint {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--ink-muted);
}

/* 对话框 */
.dialogue-cast {
  position: absolute;
  inset: 0;
  z-index: 18;
  pointer-events: none;
}

.dialogue-slot {
  position: absolute;
  width: min(44%, 475px);
  height: 90%;
  bottom: 8%;
  opacity: 1;
  transition: opacity 180ms ease, filter 180ms ease;
}

.dialogue-slot.left { left: 6%; }
.dialogue-slot.right { right: 6%; }
.dialogue-slot[data-actor="xiaoman"] { height: 77%; }
.dialogue-slot.listening { opacity: .94; filter: brightness(.68) saturate(.78); }

.dialogue-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(1px 9px 18px #19132260);
  animation: dialogue-figure-in 160ms ease-out;
}

.dialogue-cast[data-light="night"] img,
.dialogue-cast[data-light="storm"] img {
  filter: brightness(.88) saturate(.86) drop-shadow(1px 9px 18px #1713297a);
}

.dialogue-cast[data-light="red"] img {
  filter: sepia(.29) saturate(1.2) brightness(.87);
}

.dialogue-cast.meteor .dialogue-slot {
  width: min(34%, 395px);
  height: 75%;
}

.dialogue-cast.meteor .dialogue-slot.right { right: 3%; }

@keyframes dialogue-figure-in {
  from { opacity: .86; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .dialogue-slot { transition: none; }
  .dialogue-slot img { animation: none; }
}

.dialogue-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 20;
  padding: 14px 20px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 9, 16, 0.72) 45%);
}

.dialogue-frame {
  display: flex;
  gap: 16px;
  align-items: stretch;
  min-height: 164px;
  padding: 14px 18px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(28, 22, 38, 0.96), rgba(17, 14, 24, 0.98));
  border: 2px solid var(--brass-mid);
  box-shadow: inset 0 0 0 1px rgba(244, 214, 144, 0.2), 0 14px 36px rgba(0, 0, 0, 0.75);
  cursor: pointer;
}

.portrait-box {
  width: 132px;
  height: 136px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1.5px solid var(--brass-dim);
  background: radial-gradient(circle at 50% 30%, #312c46, #181422);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-box.hidden {
  display: none;
}

.portrait-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 29%;
}

.dialogue-overlay.cinematic .dialogue-frame {
  min-height: 100px;
}

.dialogue-overlay.cinematic .portrait-box {
  width: 92px;
  height: 92px;
}

.dialogue-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.dialogue-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.speaker-tag {
  padding: 2px 10px;
  border-radius: 3px;
  background: rgba(200, 151, 72, 0.2);
  border: 1px solid rgba(244, 214, 144, 0.45);
  color: var(--brass-bright);
  font-size: 14px;
  font-weight: 600;
}

.speaker-mood {
  font-size: 12px;
  color: var(--ink-muted);
}

.dialogue-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-light);
  white-space: pre-wrap;
  word-break: break-word;
}

.dialogue-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.choice-btn {
  padding: 7px 14px;
  border-radius: 4px;
  border: 1px solid var(--brass-mid);
  background: rgba(45, 36, 56, 0.9);
  color: var(--brass-bright);
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.choice-btn:hover {
  background: rgba(94, 68, 35, 0.92);
  transform: translateY(-1px);
}

.dialogue-footer {
  display: flex;
  justify-content: flex-end;
}

.dialogue-advance {
  font-size: 12px;
  color: var(--brass-mid);
  animation: pulseHint 1.6s ease-in-out infinite;
}

@keyframes pulseHint {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* 通用 RPG 模态弹窗 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 7, 12, 0.78);
  backdrop-filter: blur(4px);
}

.rpg-modal {
  width: min(860px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 18px 22px 22px;
  border-radius: 10px;
  background: linear-gradient(180deg, #211c2d, #15121d);
  border: 2px solid var(--brass-mid);
  box-shadow: inset 0 0 0 1px rgba(244, 214, 144, 0.18), 0 24px 64px rgba(0, 0, 0, 0.85);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(200, 151, 72, 0.25);
  margin-bottom: 16px;
}

.modal-eyebrow {
  margin: 0 0 2px;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--brass-mid);
}

.modal-header h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ink-light);
}

.modal-close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid rgba(200, 151, 72, 0.35);
  background: rgba(0, 0, 0, 0.3);
  color: var(--ink-light);
  cursor: pointer;
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-close:hover {
  border-color: var(--brass-bright);
  color: var(--brass-bright);
}

/* 流星天平 */
.scale-stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scale-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px 12px;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 35%, rgba(49, 41, 72, 0.72), rgba(18, 15, 25, 0.92));
  border: 1px solid rgba(200, 151, 72, 0.28);
}

.scale-svg {
  width: min(460px, 100%);
  height: auto;
}

#scale-beam-group {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.scale-status-banner {
  margin-top: 4px;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(200, 151, 72, 0.14);
  border: 1px solid rgba(200, 151, 72, 0.35);
  color: var(--brass-bright);
}

.scale-status-banner.balanced {
  background: rgba(124, 184, 216, 0.2);
  border-color: var(--accent-sky);
  color: #dff3ff;
}

.scale-pans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pan-box, .keepsake-tray, .resonance-box {
  padding: 12px;
  border-radius: 7px;
  background: rgba(14, 12, 20, 0.72);
  border: 1px solid rgba(200, 151, 72, 0.24);
}

.pan-header, .tray-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.pan-header h3, .tray-header h3 {
  margin: 0;
  font-size: 14px;
  color: var(--brass-bright);
}

.pan-weight {
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(200, 151, 72, 0.2);
  color: var(--brass-bright);
  font-size: 13px;
  font-weight: 600;
}

.pan-slots {
  min-height: 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.empty-slot-hint {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.tray-tip {
  font-size: 12px;
  color: var(--ink-muted);
}

.keepsake-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.keepsake-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 6px;
  background: rgba(34, 28, 45, 0.85);
  border: 1px solid rgba(200, 151, 72, 0.28);
}

.keepsake-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.keepsake-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-light);
}

.keepsake-weight {
  font-size: 11.5px;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(244, 214, 144, 0.16);
  color: var(--brass-bright);
}

.keepsake-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.keepsake-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
}

.mini-btn {
  flex: 1;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(200, 151, 72, 0.4);
  background: rgba(54, 42, 30, 0.72);
  color: var(--ink-light);
  font-size: 12px;
  cursor: pointer;
}

.mini-btn:hover {
  border-color: var(--brass-bright);
  color: var(--brass-bright);
}

.mini-btn.active {
  background: rgba(124, 184, 216, 0.25);
  border-color: var(--accent-sky);
  color: #e4f5ff;
}

.resonance-box {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-light);
}

/* 相册 */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.photo-card {
  padding: 10px 10px 14px;
  border-radius: 4px;
  background: #f3ede0;
  color: #28231e;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.photo-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid #d4cab8;
  background: #1c2233;
}

.photo-frame canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.photo-caption {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.photo-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #5b5248;
}

/* 地图 */
.map-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.map-node {
  padding: 12px;
  border-radius: 7px;
  background: rgba(18, 16, 28, 0.85);
  border: 1px solid rgba(200, 151, 72, 0.3);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.map-node.current {
  border-color: var(--accent-sky);
  box-shadow: 0 0 16px rgba(124, 184, 216, 0.2);
}

.map-node.locked {
  opacity: 0.56;
}

.map-node-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--brass-bright);
}

.map-node-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* 触屏按钮 */
.touch-controls {
  display: none;
  width: min(1280px, 100%);
  justify-content: space-between;
  padding: 3px 6px;
}

.touch-pad-left, .touch-pad-right {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.touch-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(244, 214, 144, 0.5);
  background: rgba(18, 15, 25, 0.72);
  color: var(--ink-light);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.touch-btn svg {
  width: 20px;
  height: 20px;
}

.touch-btn.primary {
  border-color: var(--brass-bright);
  background: rgba(94, 68, 35, 0.85);
  color: var(--brass-bright);
}

@media (max-width: 860px), (pointer: coarse) {
  .app-shell {
    padding: 6px;
  }
  .hud-topbar {
    padding: 6px 8px;
  }
  .hud-badge {
    font-size: 12px;
    padding: 3px 7px;
  }
  .controls-bar {
    display: none;
  }
  .touch-controls {
    display: flex;
  }
  .quest-pill {
    top: 6px;
    left: 6px;
    max-width: calc(100% - 12px);
    padding: 4px 7px;
    font-size: 11px;
  }
  .quest-dot {
    flex-shrink: 0;
  }
  .dialogue-overlay {
    padding: 5px;
    max-height: 100%;
    overflow-y: auto;
  }
  .dialogue-frame {
    gap: 8px;
    min-height: 0;
    padding: 8px 10px;
  }
  .portrait-box {
    width: 78px;
    height: 78px;
  }
  .scale-pans-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .stage-wrapper:has(.dialogue-overlay:not(.hidden)) {
    aspect-ratio: auto;
    height: min(430px, calc(100dvh - 150px));
    flex-shrink: 0;
  }
  .stage-wrapper:has(.dialogue-overlay:not(.hidden)) #game-canvas {
    object-fit: cover;
  }
  .dialogue-slot {
    width: 48%;
    height: 59%;
    top: 8%;
    bottom: auto;
  }
  .dialogue-slot img { object-position: center top; }
  .dialogue-slot.left { left: 1%; }
  .dialogue-slot.right { right: 1%; }
  .dialogue-slot[data-actor="xiaoman"] { height: 53%; top: 13%; }
  .dialogue-cast.meteor .dialogue-slot { width: 38%; height: 53%; }
  .hud-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .hud-group {
    gap: 5px;
  }
  .key-cap {
    display: none;
  }
  .portrait-box {
    width: 52px;
    height: 64px;
  }
  .dialogue-overlay.cinematic .portrait-box {
    width: 52px;
    height: 64px;
  }
  .dialogue-body {
    gap: 5px;
  }
  .dialogue-text {
    font-size: 14px;
    line-height: 1.5;
  }
  .dialogue-choices {
    gap: 5px;
  }
  .choice-btn {
    padding: 5px 8px;
    font-size: 13px;
  }
  .toast-stack {
    inset: 36px 6px auto auto;
    max-width: calc(100% - 12px);
  }
  .stage-wrapper .title-panel {
    padding: 10px;
  }
  .title-kicker,
  .game-tagline,
  .title-divider {
    display: none;
  }
  .game-title {
    margin: 0 0 8px;
    font-size: clamp(22px, 6.5vw, 34px);
  }
  .title-hint {
    margin: 8px 0 0;
  }
}
