/* ==========================================================================
   A9 · 纯任天堂广场与闯关专项布局
   - 广场随阶段变化焦点卡 / 任天堂 24H 印章簿 / 紧凑个人身份栏 / 图鉴与金库
   - 彻底移除旧版圆形星轨罗盘样式
   ========================================================================== */

/* --------------------------------------------------------------------------
   一、广场首屏：随轮次阶段变化的任天堂主卡 (.city-hub-stage)
   -------------------------------------------------------------------------- */
.wv-hero.game-city {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.diorama-stage {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--interactive-shadow);
  padding: 14px 15px 13px;
  overflow: hidden;
}

.diorama-stage::before { display: none; }

.diorama-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

.city-hub-stage {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.35s ease, border-color 0.3s ease;
}

/* 高频主卡状态指示：纯平底面 + 顶部 4px 任天堂语义色条（零渐变零发光） */
.city-hub-stage {
  background: var(--card-bg);
  border-top: 4px solid var(--nt-red);
}
.city-hub-stage[data-mood="warmup"],
.city-hub-stage[data-mood="participation"],
.city-hub-stage[data-mood="matchpoint"] {
  border-top-color: var(--nt-gold);
}
.city-hub-stage[data-mood="pass"] {
  border-top-color: var(--nt-green);
}
.city-hub-stage[data-mood="burn"] {
  border-top-color: var(--nt-rose);
}

.city-hub-stage > *:not(.diorama-svg) {
  position: relative;
  z-index: 2;
}

.city-hub-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.city-round-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.city-cd-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-tray);
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}

.diorama-kicker {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.10em;
  color: var(--ink-muted);
}

/* 中央唯一焦点数字区 */
.city-focus-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 0;
}

.city-focus-copy {
  min-width: 0;
  flex: 1;
}

.city-focus-val {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: clamp(28px, 8vw, 34px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
}

.focus-accent-green { color: var(--nt-green); }
.focus-accent-gold  { color: var(--nt-gold-ink); }
.focus-accent-rose  { color: var(--nt-rose); }
.focus-slash { color: var(--ink-muted); margin: 0 3px; font-weight: 700; }
.focus-denom { color: var(--ink-soft); font-size: 0.72em; }
.focus-unit {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink-soft);
  margin-left: 2px;
}

.city-focus-sub {
  margin: 5px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  line-height: 1.4;
}

.city-hub-emblem {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  filter: var(--paper-cut-shadow);
}

/* 24 格实体进度轨 + 第 16 格金色达标旗帜 */
.city-slot-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 12px 10px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--surface-shadow);
  transition: transform 0.12s var(--ease-spring), border-color 0.2s ease;
}

.city-slot-strip.is-matchpoint {
  border-color: var(--gold-border);
  box-shadow: 0 0 0 2px var(--nt-gold-soft), var(--surface-shadow);
}

.city-slot-strip:active {
  transform: translateY(1.5px);
}

.city-slot-dots {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 3px;
  align-items: center;
}

.slot-dot {
  position: relative;
  display: block;
  height: 12px;
  border-radius: 4px;
  background: var(--paper-tray-deep);
  transition: transform 0.16s var(--ease-spring);
}

.slot-dot.pass {
  background: var(--nt-green);
  box-shadow: 0 1.5px 0 var(--nt-green-edge);
}
.slot-dot.miss {
  background: var(--nt-rose);
  box-shadow: 0 1.5px 0 var(--nt-rose-edge);
}
.slot-dot.active {
  background: var(--nt-blue);
  box-shadow: 0 0 0 2px var(--nt-blue-soft), 0 1.5px 0 var(--nt-blue-edge);
  transform: scaleY(1.16);
}
.slot-dot.pending,
.slot-dot.unknown {
  background: var(--paper-tray);
  border: 1px dashed rgba(147, 137, 129, 0.45);
}

/* 第 16 格立体金色达标旗帜 */
.slot-dot.threshold::before {
  content: '16';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 4px;
  height: 13px;
  line-height: 13px;
  border-radius: 4px 4px 4px 1px;
  background: var(--nt-gold);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 900;
  font-style: normal;
  box-shadow: 0 1.5px 0 var(--nt-gold-edge);
  z-index: 3;
}

.slot-dot.threshold::after {
  content: '';
  position: absolute;
  top: -4px;
  bottom: -3px;
  right: -2px;
  width: 2px;
  border-radius: 99px;
  background: var(--nt-gold);
  opacity: 0.92;
}

.city-price-inline {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
}

.city-price-inline b {
  color: var(--ink);
  font-size: 12px;
}

.city-price-inline .sparkline-svg {
  width: 58px;
  height: 20px;
}

/* 参与/预热阶段双价格凹槽 */
.city-price-strip {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  gap: 8px;
}

.city-price-cell {
  padding: 9px 11px;
  border-radius: 13px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.city-price-cell strong {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
}

.city-price-cell.live {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.city-price-live-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.city-price-cell .sparkline-svg {
  width: 60px;
  height: 22px;
}

/* 任天堂正红实体主行动按钮 */
.game-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 47px;
  padding: 10px 16px;
  border-radius: 15px;
  background: var(--nt-red);
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 900;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.34),
    0 4px 0 var(--nt-red-edge),
    0 8px 16px rgba(230, 0, 18, 0.22);
  transition: transform 0.11s var(--ease-spring), box-shadow 0.11s ease;
}

.game-play:active {
  transform: translateY(3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 0 var(--nt-red-edge);
}

/* 奖池与规则底部摘要行（增强核心奖池可读对比度） */
.city-pool-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--card-border);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-soft);
}

/* L1 四宫格任天堂矢量服务入口 */
.game-gates {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.game-gates a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 9px 4px 9px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--ink);
  box-shadow: var(--card-shadow-sm);
  transition: transform 0.13s var(--ease-spring), box-shadow 0.13s ease;
}

.game-gates a:active {
  transform: translateY(2px);
  box-shadow: 0 0.5px 0 var(--card-thickness);
}

.game-gates .nt-gate-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-tray);
  border: 1.5px solid var(--card-border);
  margin-bottom: 3px;
}
.game-gates a:nth-child(1) .nt-gate-icon-wrap { background: var(--nt-red-soft); border-color: rgba(230, 0, 18, 0.20); }
.game-gates a:nth-child(2) .nt-gate-icon-wrap { background: var(--nt-gold-soft); border-color: rgba(240, 174, 20, 0.28); }
.game-gates a:nth-child(3) .nt-gate-icon-wrap { background: var(--nt-blue-soft); border-color: rgba(37, 116, 232, 0.22); }
.game-gates a:nth-child(4) .nt-gate-icon-wrap { background: var(--nt-green-soft); border-color: rgba(18, 168, 93, 0.22); }

.game-gates span {
  font-size: 11.5px;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
}

.game-gates small {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.15;
}

/* 第二浏览层：24H 预言速览卡与双格生态卡 */
.city-pred-card {
  padding: 12px 14px;
}

.city-pred-title {
  font-size: 13.5px;
  font-weight: 900;
  color: var(--ink);
}

.city-pred-go {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--nt-blue);
  white-space: nowrap;
}

.city-pred-desc {
  margin: 6px 0 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.45;
}

.city-pred-bar-wrap { margin-top: 8px; }

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

.city-meta-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 12px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow-sm);
  transition: transform 0.12s var(--ease-spring), box-shadow 0.12s ease;
}

.city-meta-tile:active {
  transform: translateY(2px);
  box-shadow: 0 0.5px 0 var(--card-thickness);
}

.city-meta-tile small {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-muted);
}

.city-meta-tile strong {
  font-family: var(--font-mono);
  font-size: 15.5px;
  font-weight: 900;
  color: var(--ink);
}

.city-meta-tile span {
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--nt-blue);
}

/* --------------------------------------------------------------------------
   二、我的顶部极简头像栏 (.profile-identity-bar：仅钱包地址 + GRAM 余额)
   -------------------------------------------------------------------------- */
.profile-identity-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--surface-shadow);
  min-height: 82px;
}

.identity-thumb {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: var(--paper-tray);
  border: 1.5px solid var(--card-border);
  box-shadow: 0 2.5px 0 var(--card-thickness);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  perspective: 600px;
}

[data-theme="dark"] .identity-thumb {
  background: var(--paper-tray);
  border-color: rgba(255, 255, 255, 0.14);
}

.identity-base {
  position: absolute;
  bottom: 4px;
  width: 42px;
  height: 6px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 1.5px 0 var(--card-thickness);
}

.identity-thumb .wv-person {
  position: relative;
  z-index: 2;
  height: 54px;
  width: auto;
  object-fit: contain;
  filter: var(--standee-filter);
  cursor: pointer;
}

.identity-thumb.series-activity {
  padding: 0;
  overflow: hidden;
  background: var(--paper-tray);
}

.identity-thumb.series-activity .wv-person {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  filter: none;
}

.identity-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.identity-addr-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.identity-addr {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.identity-gram {
  font-size: 17px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.identity-gallery-link {
  align-self: center;
}

/* 实体胶囊角标按钮 */
.peel-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 14px 5px 10px;
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--ink);
  border: 1px solid var(--card-border);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2.5px 0 var(--card-thickness);
  transition: transform 0.13s var(--ease-spring);
}

.peel-badge::after { display: none; }

.peel-badge:active { transform: translateY(1.5px); box-shadow: none; }

/* --------------------------------------------------------------------------
   三、身份图鉴舞台（压缩高度让 3×3 缩略图更易选）
   -------------------------------------------------------------------------- */
.edition-art {
  position: relative;
  z-index: 2;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 6px;
  perspective: 800px;
}

.gallery-compact-art {
  width: 100%;
  height: 146px;
}

.standee-slot {
  position: absolute;
  bottom: 2px;
  width: 114px;
  height: 14px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  box-shadow: 0 3px 0 var(--card-thickness), 0 6px 12px rgba(20, 22, 30, 0.12);
}

.standee-slot::after {
  content: '';
  position: absolute;
  left: 22%;
  right: 22%;
  top: 50%;
  height: 3px;
  border-radius: 99px;
  background: var(--card-thickness);
  transform: translateY(-50%);
}

.wv-gallery-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 14px 14px 14px;
  border-radius: 22px;
  border: 1.5px solid var(--card-border);
  border-top: 4px solid var(--nt-red);
  background: var(--card-bg);
  box-shadow: var(--interactive-shadow);
  overflow: visible;
}

.wv-gallery-hero.series-wealth {
  border-top-color: var(--nt-gold);
}

.wv-gallery-hero .wv-person {
  position: relative;
  z-index: 2;
  height: 176px;
  width: auto;
  object-fit: contain;
  filter: var(--standee-filter);
  cursor: pointer;
}

.wv-gallery-hero .wv-person.is-locked-preview {
  filter: grayscale(0.45) brightness(0.92) var(--standee-filter);
}

.wv-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.wv-copy h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.2;
}

.wv-copy p {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-muted);
}

.gallery-action-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid var(--card-border);
}

.gallery-action-bar .btn {
  flex: 1 1 0;
  min-height: 38px;
  padding: 6px 8px;
  font-size: 12px;
  white-space: nowrap;
}

.wv-missing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  padding: 14px 18px;
  border-radius: 15px;
  border: 1.5px dashed var(--card-thickness);
  background: var(--paper-tray);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 800;
}

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

.wv-gallery a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px 7px;
  border-radius: 15px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  box-shadow: var(--card-shadow-sm);
  transition: transform 0.13s var(--ease-spring), border-color 0.13s ease, background 0.15s ease;
}

.wv-gallery a.is-locked {
  background: var(--paper-tray);
  border: 1.5px dashed var(--card-thickness);
  box-shadow: inset 0 1px 4px rgba(20, 22, 30, 0.06);
}

.wv-gallery a.is-locked img {
  filter: grayscale(1) brightness(0.45) contrast(0.75) opacity(0.36);
}

[data-theme="dark"] .wv-gallery a.is-locked img {
  filter: grayscale(1) brightness(0.55) contrast(0.75) opacity(0.32);
}

.gallery-slot-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  height: 16px;
  padding: 0 5px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 800;
  line-height: 16px;
  background: var(--nt-green-soft);
  color: var(--nt-green);
}

.wv-gallery a.is-locked .gallery-slot-badge {
  background: var(--card-bg);
  color: var(--ink-muted);
  border: 1px solid var(--card-border);
}

.wv-gallery a[aria-current="true"] {
  border: 2px solid var(--nt-blue);
  background: var(--nt-blue-soft);
  color: var(--ink);
  transform: translateY(-2px);
}

.wv-gallery img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: var(--standee-filter);
}

.wv-gallery b {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   四、奖励宝库：三阶解锁卡 & 概念水晶预览 (.wv-steps / .crystal-preview)
   -------------------------------------------------------------------------- */
.wv-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.wv-steps article {
  padding: 10px 6px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--paper-tray);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
}

.wv-steps article.current {
  border: 2px solid var(--nt-gold-edge);
  background: var(--nt-gold-soft);
  color: var(--ink);
}

.wv-steps small {
  display: block;
  font-size: 10px;
  color: var(--ink-muted);
}

.wv-steps strong {
  display: block;
  margin: 3px 0 2px;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
}

.wv-steps article.current strong { color: var(--nt-gold-ink); }

.wv-steps p {
  margin: 3px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
}

.crystal-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.crystal-preview figure {
  margin: 0;
  padding: 10px 4px;
  border-radius: 14px;
  background: var(--paper-tray);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.crystal-preview img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: var(--paper-cut-shadow);
}

.crystal-preview figcaption {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-soft);
}

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

.wv-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 13px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: var(--card-shadow-sm);
}

/* --------------------------------------------------------------------------
   五、任天堂 24H 印章簿 (.wv-tower / .stamp-logbook / .star-reading)
   -------------------------------------------------------------------------- */
.wv-tower {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 15px 15px;
  box-shadow: var(--surface-shadow);
}

.wv-tower > small, .stamp-logbook header small {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.wv-tower > h2 {
  margin: 2px 0 8px;
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
}

.wv-tower > p {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* 静态 24 格（liveRound 使用） */
.wv-windows:not(.stamp-board) {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0;
}

.wv-windows:not(.stamp-board) span {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 10px;
  background: var(--paper-tray);
  color: var(--ink-muted);
  border: 1px dashed rgba(147, 137, 129, 0.4);
  font-size: 10px;
  font-weight: 800;
}

.wv-windows:not(.stamp-board) span i { font-style: normal; font-size: 11px; line-height: 1; }
.wv-windows:not(.stamp-board) span b { font-family: var(--font-mono); font-size: 10px; line-height: 1; }

.wv-windows:not(.stamp-board) span[data-state="pass"] {
  background: var(--nt-green-soft);
  border: 1.5px solid rgba(45, 160, 105, 0.30);
  color: var(--nt-green);
}
.wv-windows:not(.stamp-board) span[data-state="miss"] {
  background: var(--nt-rose-soft);
  border: 1.5px solid rgba(217, 72, 96, 0.28);
  color: var(--nt-rose);
}
.wv-windows:not(.stamp-board) span[data-state="active"] {
  border-radius: 12px;
  background: var(--nt-blue);
  border: 1.5px solid #FFFFFF;
  color: #FFFFFF;
}

/* 交互式 4×6 任天堂大号集章速选板 (#/observation/records) */
.stamp-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0 8px;
}

.stamp-pad {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 10px;
  border: 1.5px solid transparent;
  background: var(--paper-tray);
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  transition: transform 0.12s var(--ease-spring);
}

.stamp-pad[data-slot="16"]::after {
  content: '★';
  position: absolute;
  top: -4px;
  right: -3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--nt-gold);
  color: #FFFFFF;
  font-size: 9px;
  line-height: 15px;
  text-align: center;
  box-shadow: 0 1.5px 0 var(--nt-gold-edge);
  z-index: 3;
}

.stamp-pad:active { transform: scale(0.93); }
.stamp-pad em { font-style: normal; font-size: 11px; font-weight: 900; line-height: 1; }
.stamp-pad span { font-family: var(--font-mono); font-size: 10px; font-weight: 800; line-height: 1; }

.stamp-pad[data-state="pass"] {
  background: var(--nt-green-soft);
  color: var(--nt-green);
  border-color: rgba(45, 160, 105, 0.30);
  box-shadow: inset 0 0 0 2px rgba(45, 160, 105, 0.14), 0 2px 0 rgba(45, 160, 105, 0.22);
}

.stamp-pad[data-state="miss"] {
  background: var(--nt-rose-soft);
  color: var(--nt-rose);
  border-color: rgba(217, 72, 96, 0.28);
  box-shadow: inset 0 0 0 2px rgba(217, 72, 96, 0.12), 0 2px 0 rgba(217, 72, 96, 0.18);
}

.stamp-pad[data-state="active"] {
  border-radius: 13px;
  background: var(--nt-blue);
  color: #FFFFFF;
  border-color: #FFFFFF;
  box-shadow: 0 3px 0 var(--nt-blue-edge);
}

.stamp-pad[data-state="pending"],
.stamp-pad[data-state="unknown"] {
  border: 1px dashed rgba(147, 137, 129, 0.45);
}

.stamp-pad[aria-pressed="true"] {
  outline: 2.5px solid var(--nt-blue);
  outline-offset: 2px;
  transform: translateY(-2px);
  z-index: 2;
}

.star-key {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
}

.star-key i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}
.key-pass { background: var(--nt-green); }
.key-miss { background: var(--nt-rose); }
.key-active { background: var(--nt-blue); border-radius: 2px; }
.key-pending { background: var(--card-thickness); }

/* 固定高度单段判定明细卡（切格零跳动） */
.star-reading {
  min-height: 174px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 14px 15px;
  box-shadow: var(--surface-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

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

.star-reading header img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.star-reading header div {
  flex: 1;
  min-width: 0;
}

.star-reading header small {
  font-size: 10px;
  font-weight: 800;
  color: var(--ink-muted);
}

.star-reading header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
}

.star-reading dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.star-reading dl div {
  padding: 8px 6px;
  border-radius: 12px;
  background: var(--paper-tray);
  text-align: center;
}

.star-reading dt {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-muted);
}

.star-reading dd {
  margin: 3px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  word-break: break-all;
}

.stamp-explain {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--card-border);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   六、荣誉排行 Top 3 成员立牌领奖台 (.wv-podium)
   -------------------------------------------------------------------------- */
.wv-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  padding: 12px 10px 0;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--surface-shadow);
  overflow: hidden;
}

.wv-podium > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 4px 11px;
  border-radius: 15px 15px 0 0;
  background: var(--paper-tray);
}

.wv-podium .rank-1 {
  background: var(--nt-gold-soft);
  padding-top: 14px;
  padding-bottom: 16px;
  border: 1px solid var(--gold-border);
  border-bottom: 0;
}

.wv-podium img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: var(--paper-cut-shadow);
}

.wv-podium .rank-1 img {
  width: 72px;
  height: 72px;
}

.wv-podium b {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
}

.wv-podium small {
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-soft);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   七、阶段三：广场每日集章卡 (.handbook-stamp-card)
   -------------------------------------------------------------------------- */
.handbook-stamp-card {
  position: relative;
}

.handbook-stamp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.handbook-stamp-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 13px;
  border: 1.5px dashed var(--card-border-strong, var(--card-border));
  background: var(--paper-tray);
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  transition: transform 0.14s var(--ease-spring), border-color 0.14s ease, background 0.14s ease;
}

.handbook-stamp-cell:active {
  transform: translateY(1.5px);
}

.handbook-stamp-cell.stamped {
  border-style: solid;
  border-color: var(--emerald-border, rgba(45, 160, 105, 0.36));
  background: var(--nt-green-soft, rgba(45, 160, 105, 0.09));
}

.handbook-seal {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px dashed var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 900;
  color: var(--ink-soft);
  background: var(--card-bg);
}

.handbook-stamp-cell.stamped .handbook-seal {
  border: 2px solid var(--nt-green, #2DA069);
  background: var(--nt-green, #2DA069);
  color: #FFFFFF;
  transform: none;
  box-shadow: 0 2px 0 rgba(25, 110, 70, 0.28);
}

.handbook-task-name {
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.handbook-task-meta {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ink-muted);
  line-height: 1.15;
}

.handbook-stamp-cell.stamped .handbook-task-meta {
  color: var(--nt-green, #2DA069);
}

.handbook-ach-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--card-border);
}

.handbook-ach-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  border: 1px dashed var(--card-border);
  background: var(--paper-tray);
  color: var(--ink-muted);
}

.handbook-ach-pill.owned {
  border-style: solid;
  border-color: var(--nt-gold-edge, rgba(217, 138, 28, 0.45));
  background: var(--nt-gold-soft, rgba(243, 184, 44, 0.16));
  color: var(--nt-gold-ink, #8C5700);
}

/* --------------------------------------------------------------------------
   八、第一刀：待提现金库条、2.0x 早鸟条、老赢家锁仓护盾、红警模式与集章折叠降权
   -------------------------------------------------------------------------- */
.vault-unlock-banner {
  border: 2px solid var(--nt-gold-edge, #D98A1C);
  background: var(--card-bg);
  box-shadow: 0 3.5px 0 rgba(184, 115, 16, 0.24), var(--surface-shadow);
}

.vault-two-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
}

.vault-step {
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.vault-step.done {
  background: var(--nt-green-soft, rgba(45, 160, 105, 0.14));
  color: var(--nt-green, #2DA069);
  border: 1px solid rgba(45, 160, 105, 0.35);
}

.vault-step.next {
  background: var(--nt-gold-soft, rgba(243, 184, 44, 0.22));
  color: var(--nt-gold-ink, #8C5700);
  border: 1px solid var(--nt-gold-edge, rgba(217, 138, 28, 0.45));
}

.vault-step-line {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: var(--nt-green);
}

.early-bird-banner {
  padding: 11px 13px;
  border-radius: 16px;
  border: 1.5px solid var(--nt-gold-edge, rgba(217, 138, 28, 0.55));
  background: var(--nt-gold-soft);
  box-shadow: var(--card-shadow-sm);
}

.early-bird-cd {
  font-size: 14px;
  font-weight: 900;
  color: var(--nt-red, #E60012);
  white-space: nowrap;
}

.veteran-shield-card {
  border: 1.5px solid var(--card-border-strong, var(--card-border));
}

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

.shield-col {
  padding: 10px 9px;
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.shield-col.pass {
  background: var(--nt-green-soft, rgba(45, 160, 105, 0.10));
  border: 1.5px solid rgba(45, 160, 105, 0.30);
}

.shield-col.burn {
  background: var(--nt-rose-soft, rgba(217, 72, 96, 0.10));
  border: 1.5px solid rgba(217, 72, 96, 0.30);
}

.shield-col small {
  font-size: 10px;
  font-weight: 800;
  color: var(--ink-soft);
}

.shield-col strong {
  font-size: 15px;
  font-weight: 900;
  word-break: break-all;
}

.shield-col span {
  font-size: 10px;
  color: var(--ink-muted);
}

.alert-red-mode {
  border: 2px solid var(--nt-rose, #D94860) !important;
  box-shadow: 0 0 0 3px rgba(217, 72, 96, 0.14), var(--surface-shadow) !important;
}

.pred-versus-bar {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.handbook-collapse {
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  padding: 11px 14px;
}

.handbook-collapse-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
}

.handbook-collapse-summary::-webkit-details-marker {
  display: none;
}

.handbook-collapse-body {
  margin-top: 10px;
}

.handbook-collapse-body .handbook-stamp-card {
  border: 0;
  box-shadow: none;
  padding: 0;
  background: transparent;
}

.identity-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.identity-name-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
  background: var(--nt-red-soft);
  color: var(--nt-red);
  border: 1px solid rgba(230, 0, 18, 0.20);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 148px;
}

.identity-name-pill.series-wealth {
  background: var(--nt-gold-soft);
  color: var(--nt-gold-ink);
  border-color: rgba(217, 138, 28, 0.36);
}

.gallery-series-tabs .seg-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.seg-tab-count {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(20, 22, 30, 0.08);
  color: inherit;
}

[data-theme="dark"] .seg-tab-count {
  background: rgba(255, 255, 255, 0.12);
}

.gallery-series-tabs .seg-tab.active .seg-tab-count {
  background: rgba(255, 255, 255, 0.22);
}

/* --------------------------------------------------------------------------
   九、Boxheads 双轨收集册 & 1 对 1 精装卡背 3D 翻卡舞台
   -------------------------------------------------------------------------- */
.boxhead-stage-meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.boxhead-flip-scene {
  position: relative;
  width: 100%;
  height: 224px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  -webkit-perspective: 1000px;
  cursor: pointer;
  margin: 2px 0;
}

.boxhead-flip-card {
  position: relative;
  width: 212px;
  height: 220px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.boxhead-flip-card.is-flipped {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.boxhead-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: opacity 0.2s ease;
}

.boxhead-face.front {
  transform: rotateY(0deg) translateZ(1px);
  -webkit-transform: rotateY(0deg) translateZ(1px);
  opacity: 1;
}

.boxhead-stage-aura {
  position: absolute;
  width: 186px;
  height: 186px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 0, 18, 0.12) 0%, rgba(230, 0, 18, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.boxhead-face.front.series-wealth .boxhead-stage-aura {
  background: radial-gradient(circle, rgba(240, 174, 20, 0.20) 0%, rgba(240, 174, 20, 0) 70%);
}

.boxhead-flip-card.is-flipped .boxhead-face.front {
  opacity: 0;
  pointer-events: none;
}

.boxhead-face.front.series-activity .wv-person {
  position: relative;
  z-index: 2;
  width: 192px;
  height: 192px;
  border-radius: 22px;
  object-fit: cover;
  border: 2px solid var(--card-border);
  box-shadow: 0 4px 0 var(--card-thickness), 0 12px 24px rgba(20, 22, 30, 0.14);
  filter: none;
}

.boxhead-face.front.series-wealth .wv-person {
  position: relative;
  z-index: 2;
  width: 192px;
  height: 192px;
  object-fit: contain;
  filter: var(--standee-filter);
}

.boxhead-face.back {
  transform: rotateY(180deg) translateZ(1px);
  -webkit-transform: rotateY(180deg) translateZ(1px);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
}

.boxhead-flip-card.is-flipped .boxhead-face.back {
  opacity: 1;
  pointer-events: auto;
}

.boxhead-card-img {
  max-width: 212px;
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(14, 16, 24, 0.24);
}

.boxhead-flip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--card-border);
  background: var(--card-bg);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2.5px 0 var(--card-thickness);
  transition: transform 0.12s var(--ease-spring), border-color 0.15s ease;
}

.boxhead-flip-btn:active {
  transform: translateY(1.5px);
  box-shadow: 0 1px 0 var(--card-thickness);
}

.boxhead-flip-btn[aria-pressed="true"] {
  border-color: var(--nt-red);
  background: var(--nt-red-soft);
  color: var(--nt-red);
}

.gallery-trait-line {
  margin: 2px 0 0;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
}

.gallery-voice-pill {
  margin: 4px 0 0;
  padding: 5px 11px;
  border-radius: 12px;
  background: var(--paper-tray);
  border: 1px solid var(--card-border);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  line-height: 1.4;
}

.gallery-unlock-panel {
  width: 100%;
  padding: 10px 11px;
  border-radius: 14px;
  background: var(--paper-tray);
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.gallery-unlock-panel.is-done {
  background: var(--nt-green-soft);
  border-color: rgba(18, 168, 93, 0.28);
}

.gallery-unlock-label {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}

.gallery-unlock-stat {
  font-size: 11px;
  font-weight: 900;
  color: var(--ink-soft);
  white-space: nowrap;
}

.gallery-unlock-panel.is-done .gallery-unlock-stat {
  color: var(--nt-green);
}

.gallery-progress-track {
  height: 6px;
  background: var(--card-bg);
}

.gallery-progress-track .progress-fill.is-gold {
  background: var(--nt-gold);
}

.gallery-unlock-foot {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-muted);
  gap: 8px;
}

.gallery-unlock-cta {
  font-size: 11px;
  font-weight: 900;
  color: var(--nt-red);
  white-space: nowrap;
}

/* 5 种宝箱迷你计数条 */
.chest-tally-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.chest-tally-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 7px 4px;
  border-radius: 13px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--card-shadow-sm);
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.chest-tally-pill.is-target {
  border: 1.5px solid var(--nt-red);
  background: var(--nt-red-soft);
}

.chest-tally-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-muted);
}

.chest-tally-pill.tone-bronze .chest-tally-dot { background: #C87D4B; }
.chest-tally-pill.tone-silver .chest-tally-dot { background: #8E9BAE; }
.chest-tally-pill.tone-gold .chest-tally-dot { background: #E6A817; }
.chest-tally-pill.tone-platinum .chest-tally-dot { background: #5B8DEE; }
.chest-tally-pill.tone-diamond .chest-tally-dot { background: #9B6BFF; }

.chest-tally-name {
  font-size: 10px;
  font-weight: 800;
  color: var(--ink-soft);
  line-height: 1.1;
}

.chest-tally-pill b {
  font-size: 12.5px;
  font-weight: 900;
  color: var(--ink-muted);
  line-height: 1.1;
}

.chest-tally-pill.has-any b {
  color: var(--ink);
}

.gallery-slot-num {
  position: absolute;
  top: 5px;
  left: 6px;
  font-size: 9px;
  font-weight: 800;
  color: var(--ink-muted);
  line-height: 16px;
}

.gallery-slot-req {
  margin-top: 2px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--paper-tray);
  font-size: 9.5px;
  font-weight: 800;
  color: var(--ink-muted);
  line-height: 1.35;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wv-gallery a[aria-current="true"] .gallery-slot-req {
  background: var(--card-bg);
  color: var(--nt-blue);
}

.wv-gallery.series-activity img {
  border-radius: 13px;
  object-fit: cover;
  filter: none;
  box-shadow: 0 3px 8px rgba(22, 24, 34, 0.10);
}

.wv-gallery.series-wealth img {
  object-fit: contain;
  filter: var(--standee-filter);
}

@media (prefers-reduced-motion: reduce) {
  .boxhead-flip-card {
    transition: none;
  }
}


/* --------------------------------------------------------------------------
   十、任天堂第一方代码化实体卡带/收藏卡组件（告别 AI 乱码卡背，支持双语与亮暗主题）
   -------------------------------------------------------------------------- */
.nt-cartridge-back {
  width: 204px;
  height: 212px;
  border-radius: 18px;
  border: 2px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: 0 5px 0 var(--card-thickness), 0 12px 24px rgba(14, 16, 24, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.nt-cartridge-back.is-wealth {
  background: #1A1C24;
  border-color: #3A3D4D;
  color: #F5F6FA;
  box-shadow: 0 5px 0 #0B0C10, 0 12px 24px rgba(0, 0, 0, 0.36);
}
.nt-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  background: var(--nt-red);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.nt-cartridge-back.is-wealth .nt-cart-header {
  background: #F0AE14;
  color: #171920;
}
.nt-cart-body {
  flex: 1;
  padding: 10px 11px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nt-cart-title {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--ink);
}
.nt-cartridge-back.is-wealth .nt-cart-title { color: #FFFFFF; }
.nt-cart-trait {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-soft);
  line-height: 1.35;
}
.nt-cartridge-back.is-wealth .nt-cart-trait { color: #B8BCC9; }
.nt-cart-unlock {
  margin-top: auto;
  padding: 6px 7px;
  border-radius: 8px;
  background: var(--paper-tray);
  font-size: 10px;
  font-weight: 800;
  color: var(--nt-green);
  line-height: 1.35;
}
.nt-cartridge-back.is-wealth .nt-cart-unlock {
  background: rgba(240, 174, 20, 0.14);
  color: #FFD97A;
}
.nt-cart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-top: 1px solid var(--card-border);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  color: var(--ink-muted);
}
.nt-cartridge-back.is-wealth .nt-cart-footer {
  border-top-color: #2E3140;
  color: #828799;
}

/* --------------------------------------------------------------------------
   十一、深度精修：暗夜模式矢量图标高对比托盘 & 首屏 3D 徽章容器
   -------------------------------------------------------------------------- */
[data-theme="dark"] .game-gates a:nth-child(1) .nt-gate-icon-wrap { background: rgba(240, 34, 50, 0.24); border-color: rgba(240, 34, 50, 0.42); }
[data-theme="dark"] .game-gates a:nth-child(2) .nt-gate-icon-wrap { background: rgba(245, 190, 58, 0.22); border-color: rgba(245, 190, 58, 0.40); }
[data-theme="dark"] .game-gates a:nth-child(3) .nt-gate-icon-wrap { background: rgba(88, 164, 245, 0.22); border-color: rgba(88, 164, 245, 0.40); }
[data-theme="dark"] .game-gates a:nth-child(4) .nt-gate-icon-wrap { background: rgba(34, 199, 118, 0.22); border-color: rgba(34, 199, 118, 0.40); }

[data-theme="dark"] .nt-gate-svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.city-hub-emblem {
  width: 62px;
  height: 62px;
  padding: 5px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  box-shadow: 0 3px 0 var(--card-thickness);
  object-fit: contain;
  flex-shrink: 0;
  filter: none;
}

.handbook-seal {
  border-radius: 9px;
}

.handbook-stamp-cell {
  border-style: solid;
  border-width: 1.5px;
}

/* 极窄屏 320px–374px 排版加固 */
@media (max-width: 374px) {
  .city-hub-top {
    flex-wrap: wrap;
    gap: 5px;
  }
  .city-round-pill,
  .city-cd-badge {
    font-size: 10.5px;
    padding: 3px 8px;
  }
  .game-gates {
    gap: 6px;
  }
  .game-gates small {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
