:root {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  --bg: #0e1218;
  --panel: rgba(10, 14, 22, 0.92);
  --line: rgba(255, 255, 255, 0.14);
  --accent: #e0b13a;
  --danger: #d25040;
  --ok: #3fad67;
  --text: #f4f6f8;
  --muted: #9aa3ad;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: #0a0d12;
  color: var(--text);
  overflow: hidden;
  touch-action: manipulation;
  user-select: none;
}

#app {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 10px;
}

#phone {
  position: relative;
  width: min(100vw - 12px, 400px);
  height: min(100vh - 12px, 760px);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.chrome {
  background: var(--panel);
  border-color: var(--line);
  z-index: 3;
  position: relative;
}

.chrome.bottom {
  z-index: 5;
}

.chrome.top {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1.2fr;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
}

.res {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: var(--accent);
}

.res img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.status {
  text-align: center;
}

#phaseText {
  font-size: 13px;
  font-weight: 700;
}

#waveText {
  font-size: 11px;
  color: var(--muted);
}

.core {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px;
  align-items: center;
  font-size: 12px;
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

#coreFill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #7a1d1d, var(--danger));
}

.stage {
  position: relative;
  min-height: 0;
  background: #111;
}

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

.stage-hint {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  max-width: 92%;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--line);
  font-size: 11px;
  color: #dce3ea;
  text-align: center;
  pointer-events: none;
}

.timer-badge {
  position: absolute;
  right: 10px;
  top: 42px;
  min-width: 64px;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--line);
  text-align: center;
  pointer-events: none;
}

#timerLabel {
  display: block;
  font-size: 10px;
  color: var(--muted);
}

#timerText {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.synergy {
  position: absolute;
  left: 10px;
  bottom: 10px;
  right: 10px;
  font-size: 11px;
  color: #9fd0ff;
  text-shadow: 0 1px 2px #000;
  pointer-events: none;
}

.map-shop-btn {
  position: absolute;
  bottom: 10px;
  z-index: 4;
  width: 72px;
  padding: 8px 6px 7px;
  border-radius: 12px;
  border: 1px solid rgba(224, 177, 58, 0.45);
  background: linear-gradient(180deg, rgba(28, 36, 48, 0.94), rgba(12, 16, 24, 0.96));
  color: #f4f6f8;
  display: grid;
  gap: 3px;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.map-shop-btn.left {
  left: 8px;
}

.map-shop-btn.right {
  right: 8px;
}

.map-shop-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.map-shop-btn.active {
  border-color: #e0b13a;
  box-shadow: 0 0 0 1px rgba(224, 177, 58, 0.35), 0 4px 14px rgba(0, 0, 0, 0.45);
}

.map-shop-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  background: rgba(224, 177, 58, 0.18);
  color: #e0b13a;
}

.map-shop-btn.right .map-shop-icon {
  background: rgba(126, 200, 255, 0.16);
  color: #9fd0ff;
}

.map-shop-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.shop-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: auto;
  height: auto;
  z-index: 7;
  display: grid;
  align-items: stretch;
  justify-items: stretch;
  padding: 6px;
  background: rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

.shop-panel.hidden {
  display: none !important;
}

.shop-panel-card {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: 100%;
  background: #121821;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 8px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 4px;
  margin: 0;
  min-height: 0;
  overflow: hidden;
}

.shop-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.shop-panel-head h3 {
  margin: 0;
  font-size: 17px;
}

.shop-close {
  padding: 6px 10px;
  font-size: 12px;
}

.shop-panel-hint {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.shop-panel-actions {
  display: grid;
}

.shop-panel-actions.hidden {
  display: none !important;
}

.shop-panel-actions button {
  width: 100%;
  padding: 10px;
}

.shop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  align-content: start;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
  overscroll-behavior: contain;
}

.shop.hero-catalog {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.shop.weapon-shop {
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.shop-slot.catalog {
  display: grid;
  grid-template-rows: 40px auto auto auto;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: start;
  text-align: center;
  min-height: 108px;
  height: auto;
  padding: 4px 3px;
  gap: 2px;
  box-sizing: border-box;
}

/* 普通武器卡：纵向 flex，彻底脱离商店默认左右网格，避免叠字 */
.shop-slot.catalog.weapon-card {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  min-height: 148px;
  height: auto;
  padding: 6px 4px 8px;
  gap: 4px;
  overflow: visible;
}

.shop-slot.catalog.weapon-card .shop-portrait,
.shop-slot.catalog.weapon-card .item-icon,
.shop-slot.catalog.weapon-card .item-icon-img {
  width: 36px;
  height: 36px;
  grid-row: auto !important;
  grid-column: auto !important;
  flex-shrink: 0;
  margin: 0;
}

.shop-slot.catalog.weapon-card .name {
  width: 100%;
  max-width: 100%;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  color: #f0f3f6;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  word-break: break-word;
  margin: 0;
  padding: 0 2px;
  text-align: center;
}

.shop-slot.catalog.weapon-card .wep-stats {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  margin: 0;
  padding: 0 2px;
  overflow: visible;
  flex: 1 1 auto;
}

.shop-slot.catalog.weapon-card .wep-line {
  width: 100%;
  display: block;
  font-size: 9px;
  line-height: 1.35;
  color: #c5ced8;
  white-space: normal !important;
  word-break: break-word;
  overflow: visible !important;
  text-align: center;
  margin: 0;
  padding: 0;
}

.shop-slot.catalog.weapon-card .wep-tier {
  font-size: 8.5px;
  color: #9aa3ad;
}

.shop-slot.catalog.weapon-card .wep-exclusive {
  font-size: 8.5px;
  color: #e0b13a;
  font-weight: 700;
}

.shop-slot.catalog.weapon-card .wep-bonus {
  font-size: 9px;
  color: #dce3ea;
  font-weight: 600;
}

.shop-slot.catalog.weapon-card .wep-bond {
  font-size: 9px;
  color: #9fd0ff;
  font-weight: 700;
}

.shop-slot.catalog.weapon-card .wep-bond-desc {
  font-size: 8.5px;
  line-height: 1.4;
  color: #a8b2bd;
}

.shop-slot.catalog.weapon-card .wep-focus {
  font-size: 8.5px;
  color: #9aa3ad;
}

.shop-slot.catalog.weapon-card .wep-cost {
  width: 100%;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.25;
  margin: 0;
  padding-top: 2px;
  flex-shrink: 0;
  text-align: center;
}

/* 终极/专属/羁绊卡：继续加长 + 羁绊独立信息块 */
.shop-slot.catalog.weapon-card.weapon-card-rich {
  min-height: 196px;
  padding: 7px 5px 9px;
  gap: 5px;
}

.shop-slot.catalog.weapon-card.weapon-card-rich .name {
  font-size: 10.5px;
  line-height: 1.35;
  padding: 0 3px 2px;
}

.shop-slot.catalog.weapon-card.weapon-card-rich .wep-stats {
  gap: 4px;
}

.shop-slot.catalog.weapon-card.weapon-card-rich .wep-line {
  font-size: 9px;
  line-height: 1.4;
}

.shop-slot.catalog.weapon-card .wep-bond-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  margin-top: 1px;
  padding: 4px 4px 5px;
  border-radius: 5px;
  background: rgba(100, 160, 220, 0.1);
  border: 1px solid rgba(159, 208, 255, 0.22);
  box-sizing: border-box;
}

.shop-slot.catalog.weapon-card .wep-bond-box .wep-bond {
  font-size: 9px;
  line-height: 1.35;
}

.shop-slot.catalog.weapon-card .wep-bond-box .wep-bond-desc {
  font-size: 8.5px;
  line-height: 1.45;
  color: #b7c2cc;
}

/* 当前选中英雄无法佩戴：灰色调区分 */
.shop-slot.catalog.weapon-card.incompatible {
  filter: grayscale(1) brightness(0.72);
  opacity: 0.55;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(20, 24, 30, 0.55);
}

.shop-slot.catalog.weapon-card.incompatible .name,
.shop-slot.catalog.weapon-card.incompatible .wep-line,
.shop-slot.catalog.weapon-card.incompatible .wep-cost,
.shop-slot.catalog.weapon-card.incompatible .cost {
  color: #8b939c !important;
}

.shop-slot.catalog .shop-portrait-frame {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.shop-slot.catalog .item-icon,
.shop-slot.catalog .item-icon-img,
.shop-slot.catalog .shop-portrait {
  width: 36px;
  height: 36px;
  grid-row: auto;
  margin: 0;
  object-fit: contain;
  image-rendering: pixelated;
  transform-origin: center center;
}

.shop-slot.catalog .shop-portrait-frame .shop-portrait {
  background: transparent;
  border-radius: 0;
}

.shop-slot.catalog .item-icon-img {
  object-fit: contain;
  image-rendering: pixelated;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
}

.shop-slot.catalog .shop-tags {
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
}

.shop-slot.catalog .shop-tags .tag {
  font-size: 8px;
  padding: 1px 3px;
}

.shop-slot.catalog .name {
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.shop-slot.catalog .meta {
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.shop-slot.cant-afford {
  opacity: 0.55;
}

.shop-slot.cant-afford .cost {
  color: #ff8a7a;
}

.shop-slot .item-icon {
  width: 36px;
  height: 36px;
  grid-row: 1 / span 3;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  background: rgba(126, 200, 255, 0.14);
  color: #9fd0ff;
}

.shop-slot.kind-weapon .item-icon {
  background: rgba(224, 177, 58, 0.16);
  color: #e0b13a;
}

.shop-slot.kind-consumable .item-icon {
  background: rgba(63, 173, 103, 0.16);
  color: #6fd48f;
}


.unit-panel {
  position: absolute;
  left: 10px;
  top: 42px;
  max-width: calc(100% - 90px);
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(8, 12, 18, 0.88);
  border: 1px solid rgba(224, 177, 58, 0.45);
  pointer-events: none;
  z-index: 2;
}

.unit-panel.hidden {
  display: none;
}

.unit-panel-title {
  font-size: 13px;
  font-weight: 800;
  color: #f4f6f8;
  margin-bottom: 4px;
}

.unit-panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 5px;
}

.unit-panel-stats {
  font-size: 11px;
  color: #c5ced8;
  line-height: 1.35;
}

/* 选中英雄头顶 · 3 宫格武器包（格子≈英雄尺寸一半） */
.weapon-bag {
  --slot-size: 28px;
  --slot-gap: 3px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: auto;
  padding: 2px;
  border-radius: 6px;
  background: rgba(8, 12, 18, 0.72);
  border: 1px solid rgba(224, 177, 58, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  transform: translate(-50%, -100%);
}

.weapon-bag.hidden {
  display: none !important;
}

.weapon-bag-slots {
  display: grid;
  grid-template-columns: repeat(3, var(--slot-size));
  gap: var(--slot-gap);
}

.weapon-bag-slot {
  position: relative;
  width: var(--slot-size);
  height: var(--slot-size);
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 5px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  padding: 2px;
  cursor: default;
  color: #c5ced8;
}

.weapon-bag-slot.empty {
  border-style: dashed;
}

.weapon-bag-slot.filled {
  border-style: solid;
  border-color: rgba(224, 177, 58, 0.55);
  background: rgba(224, 177, 58, 0.12);
  cursor: pointer;
}

.weapon-bag-slot.filled:active {
  background: rgba(210, 80, 64, 0.25);
  border-color: rgba(210, 80, 64, 0.7);
}

.weapon-bag-remove {
  position: absolute;
  right: 0;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 0 4px 0 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffb4ac;
  font-size: 10px;
  line-height: 12px;
  text-align: center;
  font-weight: 700;
  pointer-events: none;
}

.weapon-bag-empty {
  font-size: calc(var(--slot-size) * 0.42);
  font-weight: 300;
  color: rgba(200, 210, 220, 0.4);
  line-height: 1;
}

.weapon-bag-icon {
  width: 86%;
  height: 86%;
  object-fit: contain;
  image-rendering: pixelated;
}

.weapon-bag-icon-text {
  font-size: calc(var(--slot-size) * 0.38);
  font-weight: 800;
  color: #e0b13a;
}

.weapon-bag-name {
  display: none;
}

.shop-slot {
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 5px;
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 6px;
  row-gap: 1px;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.shop-portrait {
  width: 36px;
  height: 36px;
  grid-row: 1 / span 3;
  object-fit: contain;
  image-rendering: pixelated;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
}

.shop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.tag {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.08);
  color: #c8d0d8;
}

.tag-atk {
  background: rgba(126, 200, 255, 0.18);
  color: #9fd0ff;
}

.tag-role {
  background: rgba(224, 177, 58, 0.16);
  color: #e0b13a;
}

.chrome.bottom {
  border-top: 1px solid var(--line);
  padding: 7px 8px 8px;
  display: grid;
  gap: 5px;
}

.shop-slot.empty {
  opacity: 0.4;
  cursor: default;
}

.shop-slot .name {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-slot .meta {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.15;
}

.shop-slot .cost {
  color: var(--accent);
  font-weight: 800;
}

.rarity-common {
  border-color: #9aa3ad;
}
.rarity-uncommon {
  border-color: #3fad67;
}
.rarity-rare {
  border-color: #4f86e0;
}

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

.actions button {
  padding: 5px 2px;
  font-size: 10px;
  border-radius: 7px;
  min-width: 0;
}

.actions button.primary {
  font-size: 10px;
}

#btnSell:not(:disabled) {
  border-color: rgba(210, 80, 64, 0.55);
  color: #ffb4ac;
}

.actions .btn-exit {
  border-color: rgba(210, 80, 64, 0.4);
  color: #ffb4ac;
  background: rgba(210, 80, 64, 0.12);
  font-weight: 700;
}

button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 8px;
  padding: 7px 3px;
  font-size: 11px;
  cursor: pointer;
}

button.primary {
  background: rgba(224, 177, 58, 0.22);
  border-color: rgba(224, 177, 58, 0.55);
  font-weight: 800;
}

button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

.tip {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
}

.ad-fab {
  position: absolute;
  right: 10px;
  /* 贴在战场右下角（商店上方），避免被底栏挡住或挤出屏幕 */
  bottom: 108px;
  z-index: 20;
  width: 78px;
  height: 78px;
  border-radius: 18px;
  border: 2px solid #f0d078;
  background: linear-gradient(160deg, #f0c75a 0%, #c4861e 55%, #8a5a12 100%);
  color: #1a1208;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  padding: 8px 4px 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), 0 0 0 3px rgba(224, 177, 58, 0.35);
  pointer-events: auto;
}

.ad-fab-icon {
  font-size: 14px;
  line-height: 1;
}

.ad-fab-text {
  font-size: 13px;
  letter-spacing: 0.04em;
}

.ad-fab-sub {
  font-size: 10px;
  opacity: 0.85;
  font-weight: 800;
}

.ad-bar {
  background: rgba(224, 177, 58, 0.28) !important;
  border-color: rgba(224, 177, 58, 0.7) !important;
  color: #f5e6b8 !important;
  font-weight: 800;
}

.ad-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.86);
  display: grid;
  place-items: center;
}

.ad-overlay.hidden {
  display: none !important;
}

.ad-card {
  width: min(72%, 240px);
  min-height: 280px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #1a2230;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px;
}

.ad-card-title {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 0.25em;
  color: #f2f5f8;
}

.ad-card-hint {
  font-size: 12px;
  color: var(--muted);
}

.ad-countdown {
  position: absolute;
  top: 14px;
  right: 16px;
  min-width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 2px solid rgba(224, 177, 58, 0.65);
  background: rgba(0, 0, 0, 0.75);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  z-index: 31;
}

#toast {
  position: absolute;
  left: 50%;
  bottom: 118px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
  z-index: 5;
  white-space: nowrap;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
}

#toast.show {
  opacity: 1;
}

#overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: center;
  z-index: 6;
}

#overlay.hidden {
  display: none;
}

.panel {
  width: min(86%, 280px);
  background: #151b24;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  display: grid;
  gap: 10px;
}

.panel h2 {
  margin: 0;
}

.panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.panel button {
  width: 100%;
  padding: 12px;
  background: rgba(224, 177, 58, 0.18);
  border-color: rgba(224, 177, 58, 0.45);
}

.panel-secondary {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

.panel-secondary.hidden {
  display: none !important;
}

.title-screen {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  align-items: end;
  justify-items: stretch;
  background: #0a0d12 url("../assets/maps/lobby.webp?v=maps40") center / cover no-repeat;
  /* 标题与难度选择整体上移约 30% 屏高 */
  padding: 0 16px calc(28px + 30vh);
}

.title-screen.hidden {
  display: none !important;
}

.title-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 10, 16, 0.15) 0%,
    rgba(6, 10, 16, 0.35) 40%,
    rgba(6, 10, 16, 0.82) 68%,
    rgba(6, 10, 16, 0.92) 100%
  );
  pointer-events: none;
}

.title-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  text-align: center;
  transform: translateY(0);
}

.title-brand {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #f3e6c4;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

.title-sub {
  margin: 0 0 6px;
  font-size: 13px;
  color: rgba(230, 220, 200, 0.78);
}

.title-diffs {
  display: grid;
  gap: 8px;
}

.title-diff {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(224, 177, 58, 0.35);
  background: rgba(18, 24, 32, 0.82);
  color: #f0e6d0;
  cursor: pointer;
  text-align: left;
}

.title-diff:active {
  transform: scale(0.98);
}

.title-diff .diff-label {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.title-diff .diff-map {
  font-size: 12px;
  color: rgba(200, 210, 220, 0.75);
}

.title-diff.hell {
  border-color: rgba(220, 90, 70, 0.45);
  background: rgba(40, 16, 14, 0.85);
}
