/* =========================================================
   王座与方阵 · 爬塔（局外）样式
   复用 styles.css 的颜色变量与按钮；这里只写塔图、面板、局外弹层
   ========================================================= */

.tower-body {
  overflow: hidden;
}

.tower-app {
  width: min(1500px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 8px 0 10px;
}

/* ---------------------------------------------------------
   顶栏
   --------------------------------------------------------- */
.tower-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 50px;
  margin-bottom: 8px;
  padding: 0 4px;
}

.tower-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.run-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 18, 25, 0.7);
  font-size: 12px;
  white-space: nowrap;
}

.run-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-dim);
}

.run-stat b {
  color: var(--ink);
  font-size: 13px;
}

.run-stat .hp-mini {
  position: relative;
  width: 74px;
  height: 7px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.run-stat .hp-mini i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #6e9b75, #9ac7a0);
}

.run-stat .hp-mini.low i {
  background: linear-gradient(90deg, #b6584d, #df8272);
}

.run-stat.gold b {
  color: var(--gold-bright);
}

/* ---------------------------------------------------------
   主布局
   --------------------------------------------------------- */
.tower-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 12px;
  height: calc(100vh - 84px);
  min-height: 560px;
}

.map-panel,
.run-panel > .panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 0%, rgba(199, 160, 91, 0.06), transparent 45%),
    linear-gradient(180deg, rgba(24, 34, 45, 0.94), rgba(14, 20, 27, 0.96));
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.map-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

.map-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px 10px;
  border-bottom: 1px solid rgba(199, 160, 91, 0.14);
}

.map-head-title h2 {
  margin: 2px 0 2px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.06em;
}

.map-head-title p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 60%;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px 2px 3px;
  border: 1px solid rgba(199, 160, 91, 0.16);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
}

.legend-chip i {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-style: normal;
  font-size: 9px;
  line-height: 1;
}

.map-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 6px 10px;
  scrollbar-color: rgba(199, 160, 91, 0.28) transparent;
  scrollbar-width: thin;
}

.map {
  position: relative;
  width: 100%;
  min-height: 100%;
}

.map-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.map-lines path {
  fill: none;
  stroke: rgba(199, 160, 91, 0.16);
  stroke-width: 2;
  stroke-linecap: round;
}

.map-lines path.walked {
  stroke: rgba(231, 197, 126, 0.5);
  stroke-width: 2.4;
}

.map-lines path.active {
  stroke: rgba(231, 197, 126, 0.9);
  stroke-width: 3;
  stroke-dasharray: 7 6;
  animation: dashMove 1.1s linear infinite;
}

@keyframes dashMove {
  to { stroke-dashoffset: -13; }
}

.map-nodes {
  position: absolute;
  inset: 0;
}

.map-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease;
}

.map-node .node-disc {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--node-color, var(--line-strong));
  border-radius: 50%;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--node-color, #c7a05b) 34%, transparent), transparent 70%),
    #151e28;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), inset 0 0 0 3px rgba(0, 0, 0, 0.28);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1;
}

.map-node .node-label {
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  opacity: 0.72;
}

.map-node.locked {
  cursor: default;
  opacity: 0.38;
}

.map-node.visited .node-disc {
  filter: saturate(0.35) brightness(0.8);
}

.map-node.current .node-disc {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(231, 197, 126, 0.16), 0 0 24px rgba(231, 197, 126, 0.28);
}

.map-node.current .node-label {
  color: var(--gold-bright);
  opacity: 1;
}

.map-node.available .node-disc {
  border-color: var(--gold-bright);
  animation: nodePulse 1.8s ease-in-out infinite;
}

.map-node.available:hover .node-disc {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 0 0 4px rgba(231, 197, 126, 0.18), 0 0 26px rgba(231, 197, 126, 0.4);
}

@keyframes nodePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231, 197, 126, 0.3), 0 6px 18px rgba(0, 0, 0, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(231, 197, 126, 0.06), 0 0 24px rgba(231, 197, 126, 0.34); }
}

.map-node.type-boss .node-disc {
  width: 62px;
  height: 62px;
  border-width: 2.5px;
  font-size: 25px;
  background:
    radial-gradient(circle at 50% 35%, rgba(223, 130, 114, 0.38), transparent 70%),
    #1a1a24;
  box-shadow: 0 0 0 5px rgba(223, 130, 114, 0.08), 0 8px 26px rgba(0, 0, 0, 0.5);
}

.map-node.type-boss .node-label {
  color: var(--red-bright);
  opacity: 1;
  font-size: 10.5px;
}

.map-node.type-rest .node-disc {
  border-radius: 14px 4px 14px 4px;
}

.map-node.type-shop .node-disc {
  border-radius: 8px;
}

.map-node.type-event .node-disc {
  font-family: var(--font-body);
  font-weight: 700;
}

.map-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 18px 10px;
  border-top: 1px solid rgba(199, 160, 91, 0.12);
  color: var(--ink-dim);
  font-size: 11px;
}

.map-foot-dim {
  color: var(--muted);
  font-size: 10.5px;
}

/* ---------------------------------------------------------
   右侧局面
   --------------------------------------------------------- */
.run-panel {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-color: rgba(199, 160, 91, 0.28) transparent;
  scrollbar-width: thin;
}

.run-panel > .panel {
  padding: 10px 12px;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.panel-head h3 {
  margin: 0;
  color: var(--ink-dim);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.panel-head span {
  color: var(--muted);
  font-size: 10.5px;
}

.run-hero-panel {
  display: flex;
  align-items: center;
  gap: 12px;
}

.run-hero-glyph {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 12px 3px 12px 3px;
  color: var(--gold-bright);
  background:
    linear-gradient(145deg, rgba(199, 160, 91, 0.18), transparent 62%),
    #151e28;
  font-family: var(--font-display);
  font-size: 28px;
}

.run-hero-copy {
  min-width: 0;
  flex: 1;
}

.run-hero-copy h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.04em;
}

.run-hero-copy p {
  margin: 1px 0 5px;
  color: var(--muted);
  font-size: 10.5px;
}

.hp-bar {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hp-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #5f8b66, #9ac7a0);
  transition: width 0.25s ease;
}

.hp-bar.low i {
  background: linear-gradient(90deg, #a14b42, #df8272);
}

.hp-bar span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.run-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  color: var(--ink-dim);
  font-size: 10.5px;
}

.run-meta b {
  color: var(--gold-bright);
}

.relic-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 128px;
  overflow-y: auto;
}

.relic-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 6px;
  border: 1px solid rgba(199, 160, 91, 0.14);
  border-radius: 6px;
  background: rgba(199, 160, 91, 0.05);
  color: var(--ink-dim);
  font-size: 11px;
}

.relic-chip i {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  color: #22190d;
  background: linear-gradient(180deg, #e8c77f, #b88c45);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}

.relic-empty {
  color: var(--muted);
  font-size: 10.5px;
}

.deck-bar {
  display: flex;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
}

.deck-bar i {
  display: block;
  height: 100%;
}

.deck-bar .d-barracks { background: #b58a4d; }
.deck-bar .d-spell { background: #6f8fbd; }
.deck-bar .d-unit { background: #7fa382; }
.deck-bar .d-hero { background: #b46a6a; }

.deck-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 7px 0;
}

.deck-tag {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-dim);
  font-size: 10px;
}

.wide-btn {
  width: 100%;
  padding: 6px 10px;
  font-size: 11.5px;
}

.run-log {
  display: flex;
  max-height: 132px;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
  font-size: 10.5px;
  line-height: 1.45;
}

.run-log-entry {
  padding-left: 7px;
  border-left: 2px solid rgba(199, 160, 91, 0.18);
  color: var(--ink-dim);
}

.run-log-entry.battle { border-left-color: rgba(182, 88, 77, 0.7); }
.run-log-entry.relic { border-left-color: rgba(231, 197, 126, 0.8); }
.run-log-entry.heal { border-left-color: rgba(154, 199, 160, 0.8); }
.run-log-entry.card { border-left-color: rgba(131, 182, 216, 0.7); }
.run-log-entry.act { border-left-color: rgba(201, 183, 224, 0.8); color: var(--ink); }

.run-actions-panel {
  display: flex;
  gap: 8px;
}

.run-actions-panel button {
  flex: 1;
}

.ghost-btn.danger {
  border-color: rgba(182, 88, 77, 0.4);
  color: var(--red-bright);
}

/* ---------------------------------------------------------
   开局页
   --------------------------------------------------------- */
.home-overlay {
  align-items: start;
  overflow-y: auto;
  padding-top: clamp(16px, 4vh, 48px);
  padding-bottom: 36px;
}

.home-inner {
  width: min(1240px, 100%);
}

.home-head {
  margin-bottom: 16px;
  text-align: center;
}

.home-head h2 {
  margin: 2px 0 6px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 42px);
  letter-spacing: 0.1em;
}

.home-head p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink-dim);
  font-size: 12.5px;
  line-height: 1.7;
}

.home-head p b {
  color: var(--gold-bright);
}

.home-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.home-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.home-chips i {
  padding: 2px 9px;
  border: 1px solid rgba(199, 160, 91, 0.2);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10.5px;
  font-style: normal;
}

.home-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-continue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(199, 160, 91, 0.1), rgba(199, 160, 91, 0.02));
}

.home-continue b {
  color: var(--gold-bright);
}

.hero-pick-race {
  margin-top: 4px;
}

.hero-pick-race-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px 2px;
}

.hero-pick-race-head h3 {
  margin: 0;
  color: var(--ink-dim);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.hero-pick-race-head em {
  color: var(--muted);
  font-size: 10.5px;
  font-style: normal;
}

.hero-pick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.hero-pick {
  display: flex;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(199, 160, 91, 0.16);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(28, 39, 51, 0.9), rgba(18, 25, 34, 0.94));
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.hero-pick:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.hero-pick-glyph {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hero-color, var(--line-strong));
  border-radius: 10px 3px 10px 3px;
  color: var(--hero-color, var(--gold-bright));
  background: var(--hero-glow, rgba(199, 160, 91, 0.1));
  font-family: var(--font-display);
  font-size: 22px;
}

.hero-pick-copy {
  min-width: 0;
}

.hero-pick-copy h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.03em;
}

.hero-pick-copy .hero-pick-sub {
  color: var(--muted);
  font-size: 10px;
}

.hero-pick-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 3px 0 0;
  color: var(--ink-dim);
  font-size: 10.5px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-pick-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 5px;
}

.hero-pick-skills i {
  padding: 0 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 9.5px;
  font-style: normal;
}

/* ---------------------------------------------------------
   通用弹层
   --------------------------------------------------------- */
.tower-modal {
  width: min(820px, 100%);
}

/* 结局弹层之上再开牌组/遗物弹层 */
#towerModal {
  z-index: 60;
}

.tower-modal-head {
  padding-right: 24px;
  margin-bottom: 12px;
}

.tower-modal-head h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.06em;
}

.tower-modal-body {
  color: var(--ink-dim);
  font-size: 12px;
  line-height: 1.65;
}

.tower-modal-body p {
  margin: 0 0 10px;
}

.tower-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.reward-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(199, 160, 91, 0.2);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(30, 41, 54, 0.95), rgba(19, 26, 35, 0.96));
  color: var(--ink-dim);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.reward-card:hover {
  border-color: var(--gold-bright);
  transform: translateY(-2px);
}

.reward-card.hero {
  border-color: rgba(180, 106, 106, 0.5);
}

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

.reward-cost {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #22190d;
  background: linear-gradient(180deg, #e8c77f, #b88c45);
  font-size: 12px;
  font-weight: 700;
}

.reward-type {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.reward-name {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.03em;
}

.reward-stats {
  color: var(--gold-bright);
  font-size: 10.5px;
}

.reward-desc {
  color: var(--ink-dim);
  font-size: 10.5px;
  line-height: 1.5;
}

.reward-foot {
  margin-top: auto;
  padding-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.choice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.choice-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(199, 160, 91, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-dim);
  text-align: left;
  cursor: pointer;
}

.choice-row:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: rgba(199, 160, 91, 0.07);
}

.choice-row:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.choice-row .choice-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  color: #22190d;
  background: linear-gradient(180deg, #e8c77f, #b88c45);
  font-family: var(--font-display);
  font-size: 15px;
}

.choice-row .choice-copy {
  min-width: 0;
  flex: 1;
}

.choice-row .choice-copy b {
  display: block;
  color: var(--ink);
  font-size: 12.5px;
}

.choice-row .choice-copy span {
  color: var(--muted);
  font-size: 10.5px;
}

.choice-row .choice-price {
  flex: 0 0 auto;
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 700;
}

.gold-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border: 1px solid rgba(199, 160, 91, 0.24);
  border-radius: 999px;
  color: var(--gold-bright);
  font-size: 11px;
}

.modal-note {
  color: var(--muted);
  font-size: 10.5px;
}

.modal-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(199, 160, 91, 0.14);
  border-radius: 8px;
  background: rgba(199, 160, 91, 0.04);
}

.modal-hero b {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
}

.deck-view-group {
  margin-bottom: 10px;
}

.deck-view-group h4 {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.deck-view-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 11.5px;
}

.deck-view-row .glyph {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(199, 160, 91, 0.2);
  border-radius: 4px;
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 11px;
}

.deck-view-row .name {
  flex: 1;
  min-width: 0;
  color: var(--ink-dim);
}

.deck-view-row .cost {
  color: var(--gold-bright);
  font-size: 10.5px;
}

.deck-view-row .count {
  color: var(--muted);
  font-size: 10.5px;
}

.deck-view-row button {
  padding: 1px 7px;
  border: 1px solid rgba(182, 88, 77, 0.36);
  border-radius: 4px;
  color: var(--red-bright);
  background: rgba(182, 88, 77, 0.08);
  cursor: pointer;
  font-size: 10px;
}

.deck-view-row button:disabled {
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  background: none;
  cursor: not-allowed;
}

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

.relic-card {
  display: flex;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid rgba(199, 160, 91, 0.18);
  border-radius: 8px;
  background: rgba(199, 160, 91, 0.04);
}

.relic-card i {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  color: #22190d;
  background: linear-gradient(180deg, #e8c77f, #b88c45);
  font-style: normal;
  font-weight: 700;
}

.relic-card b {
  display: block;
  color: var(--ink);
  font-size: 12px;
}

.relic-card span {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.relic-card.owned {
  border-color: rgba(231, 197, 126, 0.5);
}

.relic-card.locked {
  opacity: 0.5;
}

/* 结局 */
.result-modal {
  width: min(560px, 100%);
  text-align: center;
}

.result-emblem {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 4px auto 10px;
  border: 2px solid var(--gold-bright);
  border-radius: 50%;
  color: var(--gold-bright);
  background: radial-gradient(circle, rgba(231, 197, 126, 0.18), transparent 70%);
  font-family: var(--font-display);
  font-size: 40px;
}

.result-modal.defeat .result-emblem {
  border-color: var(--red-bright);
  color: var(--red-bright);
  background: radial-gradient(circle, rgba(223, 130, 114, 0.18), transparent 70%);
}

.result-modal h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0.12em;
}

.result-sub {
  margin: 0 auto 14px;
  max-width: 440px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
}

.result-stat {
  padding: 8px 4px;
  border: 1px solid rgba(199, 160, 91, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.result-stat b {
  display: block;
  color: var(--gold-bright);
  font-size: 20px;
  font-family: var(--font-display);
}

.result-stat span {
  color: var(--muted);
  font-size: 10px;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
}

/* ---------------------------------------------------------
   自适应
   --------------------------------------------------------- */
@media (max-width: 1180px) {
  .tower-shell {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

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

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

@media (max-width: 900px) {
  .tower-body {
    overflow: auto;
  }

  .tower-shell {
    display: flex;
    height: auto;
    flex-direction: column;
  }

  .map-panel {
    min-height: 540px;
  }

  .run-panel {
    overflow: visible;
  }

  .map-legend {
    display: none;
  }

  .hero-pick-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }
}
