/* ==========================================
   权谋录 · 古代人生模拟器
   古典风格 UI
   ========================================== */

/* --- 基础重置 & 变量 --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0804;
  --bg2:       #110e07;
  --card:      rgba(28, 19, 8, 0.92);
  --card2:     rgba(20, 14, 5, 0.96);
  --gold:      #c9a84c;
  --gold-lt:   #e8d07a;
  --gold-dk:   #8a6f2e;
  --text:      #e8d5b0;
  --text-dim:  #a08860;
  --divider:   rgba(201, 168, 76, 0.25);
  --red:       #c0392b;
  --green:     #27ae60;
  --purple:    #8e44ad;
  --shadow:    0 4px 24px rgba(0,0,0,0.7);
  --radius:    6px;
  --font:      'Georgia', 'Palatino Linotype', '宋体', serif;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

#app { min-height: 100vh; }

/* --- 公共工具 --- */
.hidden { display: none !important; }

.screen {
  min-height: 100vh;
  padding: 24px 16px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ==========================================
   创建角色页
   ========================================== */

#screen-create {
  background: radial-gradient(ellipse at 50% 0%, #1a1005 0%, var(--bg) 70%);
}

.game-logo {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.game-title {
  font-size: 3rem;
  letter-spacing: 0.5em;
  color: var(--gold);
  text-shadow: 0 0 24px rgba(201,168,76,0.5), 0 2px 4px rgba(0,0,0,0.8);
  line-height: 1.2;
}

.game-subtitle {
  font-size: 1rem;
  color: var(--text-dim);
  letter-spacing: 0.3em;
  margin-top: 8px;
  margin-bottom: 24px;
}

/* ==================== 开场故事幕序 ==================== */
.story-prelude {
  width: 100%;
  max-width: 900px;
  margin-bottom: 32px;
  padding: 20px 24px;
  border: 1px solid rgba(186, 137, 80, 0.3);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(30, 20, 10, 0.5), rgba(50, 35, 20, 0.3));
}

.prelude-scene {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-main);
  text-align: left;
}

.prelude-scene p {
  margin: 0 0 12px 0;
  opacity: 0.95;
}

.prelude-scene p:first-child {
  font-weight: 600;
  color: var(--gold-lt);
  font-size: 1.1rem;
}

.prelude-choice {
  margin-top: 16px !important;
  font-style: italic;
  color: var(--gold-lt);
  opacity: 0.9;
}

.create-body {
  width: 100%;
  max-width: 900px;
}

.section-label {
  font-size: 0.85rem;
  color: var(--gold-dk);
  letter-spacing: 0.2em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.create-section {
  margin-bottom: 32px;
}

/* 性别选择 */
.gender-group {
  display: flex;
  gap: 12px;
}

.gender-btn {
  padding: 10px 32px;
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.1em;
}

.gender-btn:hover {
  border-color: var(--gold-dk);
  color: var(--text);
}

.gender-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.08);
  box-shadow: 0 0 12px rgba(201,168,76,0.2);
}

/* 出身卡片 */
.origin-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 820px;
  width: 100%;
}

.origin-card {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 20px 18px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  text-align: center;
}

.origin-card:hover {
  border-color: var(--gold-dk);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.origin-card.selected {
  border-color: var(--gold);
  background: rgba(201,168,76,0.06);
  box-shadow: 0 0 20px rgba(201,168,76,0.2), var(--shadow);
}

.origin-card.selected::before {
  content: '✦ 已选';
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.origin-icon { font-size: 2.2rem; margin-bottom: 10px; }
.origin-name { font-size: 1.15rem; color: var(--gold); margin-bottom: 8px; letter-spacing: 0.1em; }
.origin-desc { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 12px; line-height: 1.6; }
.origin-trait { font-size: 0.8rem; color: #8e7c44; background: rgba(201,168,76,0.06); border: 1px solid rgba(201,168,76,0.15); border-radius: 4px; padding: 5px 8px; margin-bottom: 8px; }
.origin-recommend { font-size: 0.75rem; color: var(--text-dim); letter-spacing: 0.05em; }

/* ==========================================
   赛道选择页
   ========================================== */

#screen-track {
  background: radial-gradient(ellipse at 50% 0%, #14100a 0%, var(--bg) 70%);
  justify-content: center;
}

.track-header {
  text-align: center;
  margin-bottom: 40px;
}

.track-header h2 {
  font-size: 1.8rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.track-header p {
  color: var(--text-dim);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

/* ==================== 赛道选择情景引导 ==================== */
.track-intro {
  max-width: 820px;
  width: 100%;
  margin: 0 auto 28px;
  padding: 16px 20px;
  border: 1px solid rgba(186, 137, 80, 0.25);
  border-radius: 6px;
  background: rgba(30, 20, 10, 0.3);
}

.track-intro-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-main);
  margin: 0;
  opacity: 0.9;
}

.track-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 820px;
  width: 100%;
}

.track-card {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 28px 24px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  text-align: center;
}

.track-card:hover {
  border-color: var(--gold-dk);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.track-card.selected {
  border-color: var(--gold);
  background: rgba(201,168,76,0.06);
  box-shadow: 0 0 28px rgba(201,168,76,0.2), 0 8px 32px rgba(0,0,0,0.6);
}

.recommend-badge {
  display: none;
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.7rem;
  color: var(--gold);
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 3px;
  padding: 3px 8px;
  letter-spacing: 0.05em;
}

.track-icon { font-size: 2.8rem; margin-bottom: 12px; }
.track-name { font-size: 1.4rem; color: var(--gold); letter-spacing: 0.2em; margin-bottom: 4px; }
.track-sub  { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 14px; letter-spacing: 0.15em; }
.track-desc { font-size: 0.88rem; color: var(--text); line-height: 1.7; margin-bottom: 16px; }

.track-conditions { margin-top: 12px; }
.track-win  { font-size: 0.78rem; color: #4caf50; margin-bottom: 3px; }
.track-lose { font-size: 0.78rem; color: #e57373; margin-bottom: 10px; }

.track-res-preview {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.track-res-preview span {
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--divider);
  border-radius: 3px;
  padding: 2px 8px;
}

/* ==========================================
   游戏主界面
   ========================================== */

#screen-play {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #0c0a05;
}

/* 顶部栏 */
.play-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: rgba(20, 14, 5, 0.95);
  border-bottom: 1px solid var(--divider);
  flex-shrink: 0;
  gap: 12px;
  flex-wrap: wrap;
}

.round-display {
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.time-age {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-style: italic;
  letter-spacing: 0.05em;
  margin-left: 2px;
}

/* ===== 内心独白条 ===== */
.monologue-bar {
  text-align: center;
  padding: 6px 24px;
  background: rgba(200, 164, 76, 0.04);
  border-bottom: 1px solid rgba(200, 164, 76, 0.1);
}

.monologue-text {
  font-size: 0.8rem;
  color: var(--gold-dim, #b8963e);
  font-style: italic;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.situation-text {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
  flex: 1;
  text-align: center;
}

.ap-group {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ap-label { font-size: 0.75rem; color: var(--text-dim); }

.ap-dot {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(201,168,76,0.5);
  transition: all 0.2s;
}

.ap-dot.used {
  background: #2a2010;
  border: 1px solid rgba(201,168,76,0.2);
  box-shadow: none;
}

/* 主体区域 */
.play-content {
  display: grid;
  grid-template-columns: 220px 1fr 260px;
  gap: 0;
  flex: 1;
  overflow: hidden;
}

/* 左侧：资源面板 */
.play-sidebar {
  background: var(--card2);
  border-right: 1px solid var(--divider);
  padding: 18px 14px;
  overflow-y: auto;
}

.panel-title {
  font-size: 0.75rem;
  color: var(--gold-dk);
  letter-spacing: 0.2em;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--divider);
  padding-bottom: 8px;
}

/* 胜利目标进度条 */
.goal-panel {
  margin-bottom: 14px;
  padding: 10px 12px;
  background: rgba(200,164,76,0.06);
  border: 1px solid rgba(200,164,76,0.2);
  border-radius: 6px;
}

.goal-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.goal-item:last-child { margin-bottom: 0; }

.goal-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
  min-width: 58px;
}

.goal-label.goal-done {
  color: #2ecc71;
  font-weight: 600;
}

.goal-track {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}

.goal-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.goal-pct {
  font-size: 0.68rem;
  color: var(--text-dim);
  min-width: 30px;
  text-align: right;
}

.res-item {
  margin-bottom: 16px;
}

.res-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.res-icon  { font-size: 1rem; }
.res-name  { font-size: 0.82rem; color: var(--text-dim); flex: 1; }
.res-sublabel { font-size: 0.7rem; color: var(--gold-dk); margin-left: 4px; }
.res-val   { font-size: 0.9rem; color: var(--text); font-weight: bold; }

/* 资源变动浮动数字 */
@keyframes res-delta-float {
  0%   { opacity: 1; transform: translateY(0);    }
  70%  { opacity: 1; transform: translateY(-8px); }
  100% { opacity: 0; transform: translateY(-14px);}
}
.res-delta {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 4px;
  border-radius: 3px;
  padding: 0 3px;
  animation: res-delta-float 2s ease forwards;
  pointer-events: none;
}
.res-delta-pos { color: #2cb87a; background: rgba(44,184,122,0.12); }
.res-delta-neg { color: #e74c3c; background: rgba(231,76,60,0.12); }

.res-track {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}

.res-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.res-item.res-low .res-val { color: #e74c3c; }
.res-item.res-low .res-name { color: #c0392b; }
.res-item.res-high .res-val { color: var(--gold-lt); }

/* 体魄资源条特殊样式 */
.res-vitality {
  border-radius: 5px;
  padding: 3px 4px;
  background: rgba(39, 174, 96, 0.05);
  border: 1px solid rgba(39, 174, 96, 0.12);
  transition: background 0.4s, border-color 0.4s;
}
/* 体魄中等警告 */
.res-vitality.res-low {
  background: rgba(231, 76, 60, 0.08);
  border-color: rgba(231, 76, 60, 0.35);
  animation: vitality-pulse 2s ease-in-out infinite;
}
@keyframes vitality-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231,76,60,0); }
  50%       { box-shadow: 0 0 6px 2px rgba(231,76,60,0.28); }
}

/* NPC 关系面板 */
.npc-panel {
  margin-top: 14px;
}
.npc-panel-title {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.npc-item {
  margin-bottom: 10px;
}
.npc-header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}
.npc-icon { font-size: 0.9rem; }
.npc-name { font-size: 0.78rem; color: var(--text-main); font-weight: 600; }
.npc-title-label { font-size: 0.62rem; color: var(--text-muted); margin-left: 2px; }
.npc-rel-label { font-size: 0.7rem; font-weight: 700; margin-left: auto; }
.npc-bar-track {
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: visible;
  position: relative;
}
.npc-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}
/* 盟友阈值标记线（65%处） */
.npc-ally-line {
  position: absolute;
  left: 65%;
  top: -2px;
  height: 9px;
  width: 1.5px;
  background: rgba(255,255,255,0.30);
  border-radius: 1px;
  pointer-events: none;
}
/* 盟友状态整体高亮 */
.npc-ally .npc-bar-track {
  background: rgba(44,184,122,0.12);
}
/* 盟友徽章 */
.npc-ally-badge {
  display: inline-block;
  font-size: 0.52rem;
  font-weight: 700;
  color: #fff;
  background: #2cb87a;
  border-radius: 3px;
  padding: 1px 4px;
  margin-left: 3px;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

/* NPC 行动按钮高亮 */
.npc-action-btn {
  border-left: 3px solid #7c5cbf !important;
}
.npc-rel-status {
  color: #a98de8 !important;
  font-style: italic;
}

/* 日志：npc 类型 */
.log-npc {
  border-left-color: #8a6bc4;
}
.log-npc .log-text { color: #c9b8f0; }

.common-action-btn {
  border-left: 3px solid #3a8a6b !important;
}
.common-action-btn .act-effect {
  color: #6bcfa4;
}
/* 通用行动的赛道适配加成标签 */
.act-track-bonus {
  margin-left: 4px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(58, 138, 107, 0.18);
  border: 1px solid rgba(58, 138, 107, 0.35);
  font-size: 0.75em;
  white-space: nowrap;
}

/* 中部：行动区 */
.play-main {
  padding: 18px 18px 80px;
  overflow-y: auto;
  position: relative;
}

/* 专属行动（左） + 通用行动（右）两列并排 */
.actions-columns {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 12px;
  align-items: start;
}

.actions-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.action-btn {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  color: var(--text);
  font-family: var(--font);
  width: 100%;
}

.action-btn:hover:not(.action-disabled) {
  border-color: var(--gold-dk);
  background: rgba(201,168,76,0.06);
  transform: translateX(2px);
}

.action-btn.action-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 当季强化行动：金边高亮 */
.action-btn.action-season {
  border-color: #c9a84c;
  background: rgba(201,168,76,0.05);
}
.action-btn.action-season:hover:not(.action-disabled) {
  background: rgba(201,168,76,0.12);
}
.act-season-badge {
  display: inline-block;
  background: linear-gradient(90deg, #c9a84c, #e8c45a);
  color: #1a1208;
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 700;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

/* 高风险行动：红边高亮 */
.action-btn.action-risk {
  border-color: #c0445a;
  background: rgba(192,68,90,0.05);
}
.action-btn.action-risk:hover:not(.action-disabled) {
  background: rgba(192,68,90,0.10);
}
.act-risk-badge {
  display: inline-block;
  background: rgba(192,68,90,0.85);
  color: #fff;
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.act-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.act-icon { font-size: 1.1rem; }
.act-name { font-size: 0.95rem; color: var(--gold); flex: 1; letter-spacing: 0.05em; }
.act-cost { font-size: 0.85rem; color: var(--gold-dk); letter-spacing: 0.05em; }
.act-desc { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 5px; line-height: 1.5; }
.act-effect { font-size: 0.78rem; }

/* 高风险行动悬停详情 tooltip */
.act-effect-risk { position: relative; cursor: default; }
.act-risk-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  z-index: 20;
  background: #1e1209;
  border: 1px solid #c0445a;
  border-radius: var(--radius);
  padding: 8px 12px;
  min-width: 220px;
  font-size: 0.75rem;
  line-height: 1.7;
  box-shadow: 0 4px 16px rgba(0,0,0,0.55);
  pointer-events: none;
}
.act-effect-risk:hover .act-risk-tooltip { display: block; }
.risk-tip-row { white-space: nowrap; }
.risk-tip-win  { color: #4ade80; font-weight: 700; margin-right: 4px; }
.risk-tip-lose { color: #f87171; font-weight: 700; margin-right: 4px; }

/* 季节指示器 */
.season-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  margin-bottom: 8px;
  background: rgba(201,168,76,0.07);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: var(--radius);
  font-size: 0.76rem;
}
.season-icon { font-size: 1rem; line-height: 1; }
.season-label { color: var(--gold); font-weight: 700; }
.season-boosted-list { color: var(--text-dim); }

.eff-pos { color: #4ade80; margin-right: 6px; }
.eff-neg { color: #f87171; margin-right: 6px; }

/* 结束回合按钮 */
.end-round-btn {
  position: sticky;
  bottom: 16px;
  margin-top: 16px;
  width: 100%;
}

/* 右侧：事件日志 */
.play-log {
  background: var(--card2);
  border-left: 1px solid var(--divider);
  padding: 18px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.event-log { display: flex; flex-direction: column; gap: 10px; }

.log-empty {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
  padding: 20px 0;
  opacity: 0.5;
}

.log-entry {
  border-left: 2px solid var(--divider);
  padding: 8px 10px;
  font-size: 0.78rem;
  line-height: 1.6;
}

.log-round {
  display: block;
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-bottom: 3px;
  letter-spacing: 0.05em;
}

.log-text { color: var(--text); }

.log-action { border-color: var(--gold-dk); }
.log-event  { border-color: #3498db; }
.log-system { border-color: #8e44ad; }
.log-warn   { border-color: var(--red); }

.log-event .log-text  { color: #89c4e1; }
.log-system .log-text { color: #c39bd3; }
.log-warn .log-text   { color: #e74c3c; }
/* 季节加成/系统提示 */
.log-hint { border-color: #c9a84c; background: rgba(201,168,76,0.06); }
.log-hint .log-text { color: #e8c45a; font-style: italic; }

/* ==========================================
   通用按钮
   ========================================== */

.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, #8a6f2e 0%, #c9a84c 50%, #8a6f2e 100%);
  background-size: 200% auto;
  color: #1a1005;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: bold;
  letter-spacing: 0.15em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 12px rgba(201,168,76,0.3);
}

.btn-primary:hover:not(:disabled) {
  background-position: right center;
  box-shadow: 0 4px 20px rgba(201,168,76,0.5);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: #2a2010;
  color: var(--text-dim);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-primary.large {
  padding: 14px 48px;
  font-size: 1.05rem;
  margin-top: 8px;
  width: 100%;
  max-width: 400px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================
   结局页
   ========================================== */

#screen-result {
  justify-content: center;
  background: radial-gradient(ellipse at 50% 30%, #120e06 0%, var(--bg) 70%);
}

.result-body {
  max-width: 580px;
  width: 100%;
  text-align: center;
  padding: 40px 24px;
}

.result-badge {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  padding: 5px 18px;
  border-radius: 3px;
  margin-bottom: 20px;
}

.result-victory { color: var(--gold); border: 1px solid var(--gold); background: rgba(201,168,76,0.08); }
.result-defeat  { color: #e74c3c;    border: 1px solid #e74c3c; background: rgba(192,57,43,0.08); }
.result-survive { color: #89c4e1;    border: 1px solid #89c4e1; background: rgba(52,152,219,0.08); }
.result-death   { color: #a8b8a0;    border: 1px solid #a8b8a0; background: rgba(130,150,120,0.08); }

.result-title {
  font-size: 2.4rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 24px;
  text-shadow: 0 0 20px rgba(201,168,76,0.4);
}

.result-story {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 12px;
  white-space: pre-line;
  text-align: justify;
}

.result-footnote {
  font-size: 0.85rem;
  color: var(--gold-dim, #b8963e);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 24px;
  padding: 10px 16px;
  border-left: 2px solid var(--gold-dim, #b8963e);
  opacity: 0.85;
}

/* ===== 存档 / 继续游戏 ===== */
.continue-section {
  margin-top: 20px;
}

.continue-card {
  background: rgba(200, 164, 76, 0.08);
  border: 1px solid rgba(200, 164, 76, 0.3);
  border-radius: 8px;
  padding: 14px 18px;
  text-align: center;
}

.continue-title {
  font-size: 0.82rem;
  color: var(--gold-dim, #b8963e);
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.continue-info {
  font-size: 0.88rem;
  color: var(--text-muted, #c8b068);
  margin-bottom: 12px;
}

.continue-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-continue {
  background: linear-gradient(135deg, #8b6914, #c8a43c);
  color: #1a1208;
  border: none;
  border-radius: 6px;
  padding: 7px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-continue:hover { opacity: 0.85; }

.btn-delete-save {
  background: transparent;
  color: var(--text-dim, #8a7550);
  border: 1px solid rgba(138, 117, 80, 0.4);
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.btn-delete-save:hover { color: #e74c3c; border-color: #e74c3c; }

.result-rounds {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.result-ambition {
  font-size: 0.82rem;
  color: #8acfb0;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
  font-style: italic;
}

/* 成长弧感悟（关键年份追加在独白下方）*/
.growth-arc {
  display: block;
  font-size: 0.82rem;
  color: #c8a96e;
  font-style: italic;
  margin-top: 4px;
  letter-spacing: 0.08em;
}

/* ==================== 人生时间线 ==================== */
.result-timeline {
  margin: 20px 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 16px 20px;
}
.timeline-title {
  font-size: 0.78rem;
  color: #8a7a5a;
  letter-spacing: 0.2em;
  text-align: center;
  margin-bottom: 12px;
}
.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.82rem;
  line-height: 1.5;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-icon { font-size: 0.9rem; min-width: 20px; }
.timeline-year {
  color: #8a7a5a;
  font-size: 0.75rem;
  min-width: 68px;
  flex-shrink: 0;
}
.timeline-text { color: #c8c0a8; }

/* ==================== 世界状态面板 ==================== */
.world-panel {
  margin-top: 12px;
}
.world-panel-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b8fa3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 10px;
}
.world-item {
  margin-bottom: 8px;
}
.world-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.world-label {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.world-val {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.world-bar-track {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.world-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ==================== 天下地图面板 ==================== */
.map-panel {
  display: none; /* MVP 阶段暂时隐藏，待后续完善为交互式工具 */
  margin-top: 12px;
}
.map-panel-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: #6b8fa3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.map-legend {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-bottom: 6px;
  opacity: 0.75;
}
.map-footer {
  display: flex;
  gap: 8px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.map-legend-item {
  font-size: 0.62rem;
  opacity: 0.7;
}
.map-leg-origin { color: #e8b84b; }
.map-leg-active  { color: #5b8fe8; }
.map-leg-high    { color: #4caf81; }

/* 城市详情卡片 */
.map-detail {
  margin-top: 6px;
  min-height: 38px;
  padding: 6px 8px;
  border-radius: 5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.7rem;
  line-height: 1.5;
}
.map-detail-hint {
  color: #555;
  font-size: 0.65rem;
}
.map-detail-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #c9a84c;
  margin-bottom: 3px;
}
.map-detail-desc {
  color: var(--text-dim);
  font-size: 0.68rem;
  margin-bottom: 3px;
}
.map-detail-status {
  color: #8ab4f8;
  font-size: 0.67rem;
}

/* ==================== 志向选择页 ==================== */#screen-ambition {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 48px 24px 80px;
  overflow-y: auto;
}
.ambition-header {
  text-align: center;
  margin-bottom: 36px;
}
.ambition-header h2 {
  font-size: 1.7rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}
.ambition-header p {
  color: var(--text-dim);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}
.ambition-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
  width: 100%;
}
.ambition-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--divider);
  border-left: 4px solid #8acfb0;
  border-radius: var(--radius);
  padding: 20px 22px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}
.ambition-card:hover {
  background: rgba(255,255,255,0.05);
  border-left-color: var(--gold);
}
.amb-icon {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.amb-body { flex: 1; }
.amb-name {
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.amb-desc {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.6;
}
.amb-bonus {
  font-size: 0.78rem;
  color: #8acfb0;
  margin-bottom: 6px;
}
.amb-tag {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
}


.result-stats-box {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
  text-align: left;
}

.result-stats-box h4 {
  font-size: 0.75rem;
  color: var(--gold-dk);
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--divider);
  padding-bottom: 8px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.stat-label { color: var(--text-dim); }
.stat-val   { color: var(--text); font-weight: bold; }

/* ==========================================
   响应式
   ========================================== */

/* 中等屏幕：缩紧三栏 */
@media (max-width: 1000px) {
  .play-content { grid-template-columns: 180px 1fr 200px; }
}

/* 移动端（≤780px）：单列全展示布局 */
@media (max-width: 780px) {

  /* ── 通用 ── */
  html, body { font-size: 14px; }
  .screen { padding: 16px 12px 32px; }
  .game-title { font-size: 1.8rem; letter-spacing: 0.25em; }
  .game-subtitle { font-size: 0.82rem; }

  /* ── 创建页 ── */
  .origin-group { grid-template-columns: 1fr; }
  .track-group  { grid-template-columns: 1fr; }
  .track-header h2 { font-size: 1.4rem; letter-spacing: 0.1em; }
  .track-card { padding: 16px 14px; }
  .track-conditions { display: none; } /* 小屏隐藏条件说明，保留预览 */

  /* ── 志向页 ── */
  #screen-ambition { padding: 20px 12px 60px; }
  .ambition-header h2 { font-size: 1.4rem; letter-spacing: 0.1em; }
  .ambition-card { padding: 14px 16px; gap: 12px; }
  .amb-icon { font-size: 1.6rem; }

  /* ── 游戏主界面 ── */
  /* 整页可滚动 */
  #screen-play {
    min-height: 100vh;
    overflow-y: auto;
  }

  /* 顶部栏：紧凑两行 */
  .play-topbar {
    padding: 8px 12px;
    gap: 6px;
  }
  .round-display { font-size: 0.78rem; }
  .situation-text {
    font-size: 0.72rem;
    flex-basis: 100%;
    order: 3;
    text-align: left;
    padding-top: 2px;
  }
  .ap-dot { width: 10px; height: 10px; }
  .ap-label { font-size: 0.68rem; }

  /* 独白条：紧凑 */
  .monologue-bar { padding: 5px 12px; }
  .monologue-text { font-size: 0.73rem; }

  /* 三栏 → 单列垂直堆叠 */
  .play-content {
    grid-template-columns: 1fr;
    overflow: visible;
    flex: none;
    height: auto;
  }

  /* 左侧资源面板：正常显示，不再隐藏 */
  .play-sidebar {
    display: block;
    border-right: none;
    border-bottom: 1px solid var(--divider);
    padding: 12px;
    overflow-y: visible;
    height: auto;
  }

  /* 资源数值：横向紧凑排列 */
  #resources-panel .res-row {
    display: inline-flex;
    margin: 0 6px 4px 0;
  }

  /* 目标进度条：小字 */
  .goal-label { font-size: 0.68rem; min-width: 48px; }
  .goal-pct   { font-size: 0.68rem; }

  /* 中间行动区 */
  .play-main {
    padding: 12px 12px 72px; /* 底部预留固定按钮空间 */
    overflow-y: visible;
    height: auto;
  }

  /* 移动端：两列转单列堆叠 */
  .actions-columns {
    grid-template-columns: 1fr;
  }

  /* 结束回合按钮：固定在视口底部 */
  .end-round-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 0;
    z-index: 200;
    padding: 14px 0;
    font-size: 0.95rem;
    letter-spacing: 0.15em;
  }

  /* 行动按钮：触控友好 */
  .action-btn { min-height: 48px; }
  .act-name { font-size: 0.88rem; }
  .act-desc { font-size: 0.75rem; }

  /* 右侧日志：显示，限制高度，置于最下方 */
  .play-log {
    display: block;
    border-left: none;
    border-top: 1px solid var(--divider);
    padding: 10px 12px;
    max-height: 200px;
    overflow-y: auto;
    height: auto;
  }

  .log-entry { font-size: 0.78rem; }
  .log-round { font-size: 0.68rem; }

  /* NPC 面板紧凑 */
  .npc-item { margin-bottom: 6px; }
  .npc-name { font-size: 0.76rem; }
  .npc-rel-label { font-size: 0.68rem; }

  /* ── 剧情事件页 ── */
  #screen-story, #screen-transition {
    padding: 10px;
    align-items: flex-start;
  }
  .story-body {
    padding: 1.2rem 1rem;
    margin-top: 8px;
  }
  .story-title { font-size: 1.4rem; }
  .story-scene {
    font-size: 0.9rem;
    padding: 0.8rem 1rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
  }
  .story-choice-btn {
    padding: 12px 14px;
  }
  .choice-text { font-size: 0.88rem; }

  /* ── 结局页面 ── */
  #screen-result { padding: 12px; }
  .result-body {
    padding: 20px 12px;
    max-width: 100%;
  }
  .result-title { font-size: 1.8rem; letter-spacing: 0.12em; }
  .result-story { font-size: 0.88rem; line-height: 1.8; }
  .result-stats-box { padding: 12px 12px; }

  /* 时间线：文字换行适配小屏 */
  .timeline-item { flex-wrap: wrap; gap: 4px; }
  .timeline-year { min-width: 58px; }
  .timeline-text { flex-basis: 100%; padding-left: 24px; font-size: 0.78rem; }
}

/* ==========================================
   主线剧情事件页（story phase）
   ========================================== */

#screen-story {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background: radial-gradient(ellipse at center, rgba(60,30,5,0.6) 0%, transparent 70%);
}

/* ==============================
   互动事件页（react 阶段）
   ============================== */
#screen-react {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
  background: radial-gradient(ellipse at center, rgba(20,10,5,0.7) 0%, transparent 70%);
}
.react-body {
  max-width: 540px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.react-badge {
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  border: 1px solid var(--gold-dk);
  padding: 4px 16px;
  border-radius: 20px;
  background: rgba(201,168,76,0.07);
}
.react-event-text {
  font-size: 1.08rem;
  color: var(--text);
  text-align: center;
  line-height: 1.85;
  max-width: 480px;
}
.react-choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.react-choice-btn {
  background: var(--card2);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 14px 18px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}
.react-choice-btn:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
}
.react-choice-desc {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}
.react-choice-effect {
  font-size: 0.76rem;
  color: var(--text-dim);
}

.story-body {
  max-width: 680px;
  width: 100%;
  background: var(--card-bg);
  border: 2px solid var(--gold);
  border-radius: 4px;
  padding: 2.5rem 3rem;
  box-shadow: 0 0 60px rgba(201,168,76,0.15), inset 0 0 30px rgba(0,0,0,0.4);
  animation: storyFadeIn 0.5s ease;
}

@keyframes storyFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.story-chapter-badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.2em 0.8em;
  border-radius: 2px;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.story-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin: 0 0 1.5rem 0;
  text-shadow: 0 0 20px rgba(201,168,76,0.4);
}

.story-scene {
  font-size: 1rem;
  color: var(--text);
  line-height: 2;
  margin-bottom: 2rem;
  padding: 1.2rem 1.5rem;
  background: rgba(0,0,0,0.3);
  border-left: 3px solid rgba(201,168,76,0.5);
  border-radius: 0 2px 2px 0;
  white-space: pre-line;
}

.story-choices {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.story-choice-btn {
  width: 100%;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 4px;
  padding: 1rem 1.4rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
  color: var(--text);
}

.story-choice-btn:hover {
  background: rgba(201,168,76,0.14);
  border-color: var(--gold);
  transform: translateX(4px);
}

.story-choice-btn:active {
  transform: translateX(2px);
}

.choice-text {
  font-size: 1rem;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.choice-effect {
  font-size: 0.82rem;
  opacity: 0.85;
}

/* story log 样式 */
.log-story {
  border-left-color: #c9a84c;
  background: rgba(201,168,76,0.05);
}
.log-story .log-round { color: var(--gold); }

/* ==========================================
   新手指引弹窗
   ========================================== */
.tutorial-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}
.tutorial-overlay.hidden { display: none; }

.tutorial-modal {
  background: linear-gradient(160deg, #1a130a 0%, #100c06 100%);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 12px;
  padding: 32px 28px 24px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(201,168,76,0.08);
}

.tutorial-step {
  display: none;
  text-align: center;
  min-height: 200px;
}
.tutorial-step.active { display: block; }

.tutorial-icon {
  font-size: 3rem;
  margin-bottom: 14px;
  line-height: 1;
}
.tutorial-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-lt);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.tutorial-desc {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 14px;
}
.tutorial-desc strong { color: var(--gold); }
.tutorial-tip {
  font-size: 0.78rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 6px;
  padding: 8px 12px;
  line-height: 1.6;
}

.tutorial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 16px;
}
.tutorial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(201,168,76,0.2);
  cursor: pointer;
  transition: background 0.2s;
}
.tutorial-dot.active { background: var(--gold); }

.tutorial-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 14px;
}
.tutorial-btn-skip {
  background: transparent;
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--text-dim);
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.tutorial-btn-skip:hover { border-color: var(--gold-dk); color: var(--text); }

.tutorial-btn-next {
  background: linear-gradient(135deg, #c9a84c, #a07830);
  border: none;
  color: #0a0804;
  font-weight: 700;
  padding: 7px 22px;
  border-radius: 6px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.tutorial-btn-next:hover { opacity: 0.88; }

.tutorial-no-show {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-dim);
  cursor: pointer;
  justify-content: center;
}
.tutorial-no-show input { cursor: pointer; accent-color: var(--gold); }

/* 帮助按钮（右下角固定） */
.help-btn {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 999;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.help-btn:hover { background: rgba(201,168,76,0.28); transform: scale(1.08); }

/* ==========================================
   战役事件 UI（手动战斗）
   ========================================== */
.battle-ui {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 双方血条区 */
.battle-bars {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 8px;
  padding: 12px 14px;
}
.battle-bar-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.battle-bar-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 600;
  text-align: center;
}
.battle-bar-track {
  height: 8px;
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  overflow: hidden;
}
.battle-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}
.battle-bar-player { background: linear-gradient(90deg, #2cb87a, #1a9f5e); }
.battle-bar-enemy  { background: linear-gradient(90deg, #e74c3c, #c0392b); }
.battle-bar-val {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
}
.battle-bar-vs {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-dk);
  flex-shrink: 0;
}

/* 回合提示 */
.battle-round-indicator {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  padding: 4px 0;
}

/* 战斗日志 */
.battle-log {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(0,0,0,0.25);
  border-radius: 6px;
  padding: 8px 10px;
  max-height: 110px;
  overflow-y: auto;
}
.battle-log-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
}
.battle-log-round { color: var(--text-muted, #6b5f4b); flex-shrink: 0; }
.battle-log-move  { flex: 1; color: var(--text); }
.battle-log-dmg   { display: flex; gap: 6px; flex-shrink: 0; }
.battle-dmg-pos   { color: #2cb87a; font-weight: 700; }
.battle-dmg-neg   { color: #e74c3c; font-weight: 700; }

/* 出招按钮 */
.battle-moves {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.battle-move-btn {
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  transition: background 0.18s, border-color 0.18s, transform 0.12s;
}
.battle-move-btn:hover {
  background: rgba(201,168,76,0.14);
  border-color: rgba(201,168,76,0.45);
  transform: translateX(2px);
}
.move-emoji {
  grid-row: 1 / 3;
  font-size: 1.4rem;
  align-self: center;
  line-height: 1;
}
.move-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold-lt);
}
.move-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.4;
}
.move-range {
  grid-column: 2;
  font-size: 0.7rem;
  color: var(--text-muted, #6b5f4b);
  margin-top: 2px;
}

/* 战斗结果 */
.battle-result {
  border-radius: 10px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.battle-win  { background: rgba(44,184,122,0.08); border: 1px solid rgba(44,184,122,0.30); }
.battle-lose { background: rgba(231,76,60,0.08);  border: 1px solid rgba(231,76,60,0.25);  }

.battle-result-icon  { font-size: 2.2rem; line-height: 1; }
.battle-result-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.battle-win  .battle-result-title { color: #2cb87a; }
.battle-lose .battle-result-title { color: #e74c3c; }

.battle-result-story {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.65;
  margin: 4px 0;
}
.battle-result-effect {
  font-size: 0.78rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border-radius: 5px;
  padding: 5px 10px;
}
.battle-continue-btn {
  margin-top: 6px;
  padding: 8px 28px;
  font-size: 0.9rem;
}
