/* ============================================================
   Gram Hero · fx.css 全站动效 & 场景头图（视觉焕新 v2）
   ============================================================ */

/* ---------- 震屏 ---------- */
.fx-shake { animation: fx-shake 0.32s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes fx-shake {
  10%, 90% { transform: translate(calc(var(--shake-amp, 5px) * -0.4), 0); }
  20%, 80% { transform: translate(calc(var(--shake-amp, 5px) * 0.6), calc(var(--shake-amp, 5px) * 0.3)); }
  30%, 50%, 70% { transform: translate(calc(var(--shake-amp, 5px) * -1), calc(var(--shake-amp, 5px) * -0.4)); }
  40%, 60% { transform: translate(var(--shake-amp, 5px), calc(var(--shake-amp, 5px) * 0.4)); }
}

/* ---------- 庆祝冲击环 ---------- */
.fx-ring {
  position: fixed;
  z-index: 117;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border: 2px solid #ffe9ad;
  border-radius: 50%;
  pointer-events: none;
  animation: fx-ring 0.65s cubic-bezier(0.1, 0.7, 0.3, 1) forwards;
}
@keyframes fx-ring {
  to { transform: scale(26); opacity: 0; border-width: 1px; }
}

/* ---------- 流星 ---------- */
.fx-star {
  position: absolute;
  width: 110px; height: 1.5px;
  background: linear-gradient(90deg, rgba(255, 246, 216, 0.95), transparent);
  border-radius: 2px;
  transform: rotate(var(--ang, 24deg));
  transform-origin: left center;
  filter: drop-shadow(0 0 4px rgba(255, 233, 173, 0.8));
  animation: fx-star 1.5s ease-out forwards;
  pointer-events: none;
}
@keyframes fx-star {
  0% { opacity: 0; translate: 0 0; }
  12% { opacity: 0.9; }
  100% { opacity: 0; translate: 240px 110px; }
}

/* ---------- 路由切换：面板错落入场（仅 .enter 期间生效） ---------- */
.screen.enter > * { animation: fx-rise 0.42s cubic-bezier(0.2, 0.9, 0.3, 1) backwards; }
.screen.enter > *:nth-child(1) { animation-delay: 0ms; }
.screen.enter > *:nth-child(2) { animation-delay: 45ms; }
.screen.enter > *:nth-child(3) { animation-delay: 90ms; }
.screen.enter > *:nth-child(4) { animation-delay: 135ms; }
.screen.enter > *:nth-child(5) { animation-delay: 180ms; }
.screen.enter > *:nth-child(6) { animation-delay: 225ms; }
.screen.enter > *:nth-child(n+7) { animation-delay: 260ms; }
@keyframes fx-rise {
  from { opacity: 0; transform: translateY(14px); }
}

/* ---------- 稀有度边框体系（金/红：双层描边 + 角旗标，替代扫光） ---------- */
.item-cell.rb-gold, .sgrid-item.rb-gold {
  border: 1px solid rgba(232, 193, 90, 0.85) !important;
  box-shadow:
    inset 0 0 0 1px rgba(90, 66, 16, 0.9),
    inset 0 0 12px rgba(232, 193, 90, 0.12),
    0 0 8px rgba(232, 193, 90, 0.18);
  animation: none;
}
.item-cell.rb-red, .sgrid-item.rb-red {
  border: 1px solid rgba(255, 105, 92, 0.85) !important;
  box-shadow:
    inset 0 0 0 1px rgba(96, 26, 20, 0.9),
    inset 0 0 12px rgba(255, 93, 82, 0.14),
    0 0 8px rgba(255, 93, 82, 0.2);
  animation: none;
}
/* 保留空间网格的入场弹出动画（去掉的是常驻呼吸闪烁） */
.sgrid-item.rb-gold, .sgrid-item.rb-red { animation: sgrid-pop 0.3s cubic-bezier(0.2, 1.4, 0.4, 1) backwards; }
/* 右上角稀有度旗标 */
.item-cell.rb-gold::after, .sgrid-item.rb-gold::after,
.item-cell.rb-red::after, .sgrid-item.rb-red::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: linear-gradient(225deg, #ffe9ad 0%, #e8c15a 46%, transparent 52%);
  pointer-events: none;
}
.item-cell.rb-red::after, .sgrid-item.rb-red::after {
  background: linear-gradient(225deg, #ffb0a6 0%, #ff5d52 46%, transparent 52%);
}
/* 悬停时辉光增强（点睛，不常驻闪烁） */
.item-cell.rb-gold:hover, .sgrid-item.rb-gold:hover { box-shadow: inset 0 0 0 1px rgba(90, 66, 16, 0.9), 0 0 16px rgba(232, 193, 90, 0.45); }
.item-cell.rb-red:hover, .sgrid-item.rb-red:hover { box-shadow: inset 0 0 0 1px rgba(96, 26, 20, 0.9), 0 0 16px rgba(255, 93, 82, 0.5); }
/* 不支持 @property 的浏览器兜底：旋转整个伪元素 */
@supports not (background: conic-gradient(from var(--sweep, 0deg), red, blue)) {
  .item-cell.rb-gold::after, .item-cell.rb-red::after,
  .sgrid-item.rb-gold::after, .sgrid-item.rb-red::after {
    animation: fx-sweep-rot 3.4s linear infinite;
  }
  @keyframes fx-sweep-rot { to { transform: rotate(360deg); } }
}

/* ---------- 场景头图（消灭死黑） ---------- */
.screen-hero {
  position: relative;
  height: 148px;
  margin: -2px 0 -2px;
  border-radius: var(--radius);
  border: 1px solid rgba(232, 193, 90, 0.22);
  background-size: cover;
  background-position: center 38%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 0 60px rgba(3, 6, 10, 0.35);
  flex-shrink: 0;
}
@keyframes fx-hero-drift {
  from { transform: scale(1.02); }
  to { transform: scale(1.1) translateX(-1.2%); }
}
.screen-hero .hero-title {
  position: absolute;
  z-index: 1;
  left: 18px;
  bottom: 12px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #f5e6bd;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 0 26px rgba(232, 193, 90, 0.3);
}
.screen-hero .hero-title::after {
  content: "";
  display: block;
  width: 150px;
  height: 2px;
  margin-top: 6px;
  background: linear-gradient(90deg, var(--gold), transparent);
  box-shadow: 0 0 8px rgba(232, 193, 90, 0.5);
}
.screen-hero .hero-sub {
  position: absolute;
  z-index: 1;
  left: 20px;
  bottom: 52px;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: rgba(233, 237, 243, 0.72);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}
/* 头图内飘尘 */
.screen-hero .hero-mote {
  position: absolute;
  bottom: -6px;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe9ad, rgba(232, 193, 90, 0.1) 70%, transparent);
  animation: emberFloat linear infinite;
  opacity: 0;
}
/* 带头图后隐藏紧随其后的文字标题，避免重复 */
.screen-hero + .screen-title { display: none; }

@media (max-width: 900px) {
  .screen-hero { height: 104px; }
  .screen-hero .hero-title { font-size: 19px; left: 14px; bottom: 10px; }
  .screen-hero .hero-sub { display: none; }
}

/* ---------- 登录页 · 动态英雄场景 ---------- */
.login-wrap { position: relative; overflow: hidden; background: #04070d !important; }
.login-scene { position: absolute; inset: 0; pointer-events: none; }
.login-scene .ls-art {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center 34%;
  animation: fx-login-kenburns 34s ease-in-out infinite alternate;
  transition: transform 0.3s ease-out;
}
@keyframes fx-login-kenburns {
  from { scale: 1.03; }
  to { scale: 1.12; }
}
.login-scene .ls-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, transparent 0%, rgba(4, 7, 12, 0.5) 66%, rgba(3, 5, 10, 0.88) 100%),
    linear-gradient(rgba(4, 7, 12, 0.42), rgba(4, 7, 12, 0.78));
}
.login-scene .ember { position: absolute; bottom: -10px; width: var(--sz, 3px); height: var(--sz, 3px);
  background: radial-gradient(circle, #ffe9ad, rgba(232, 193, 90, 0.15) 70%, transparent);
  border-radius: 50%; animation: emberFloat linear infinite; opacity: 0; }
.login-card { position: relative; z-index: 1; }
.login-card h1 {
  filter: drop-shadow(0 0 18px rgba(232, 193, 90, 0.35));
  animation: fx-logo-float 5s ease-in-out infinite;
}
@keyframes fx-logo-float { 50% { transform: translateY(-4px); } }
.login-card .sub { text-shadow: 0 0 14px rgba(127, 212, 193, 0.4); }

/* 进入按钮呼吸光晕 */
.login-card .btn-gold.btn-lg {
  animation: fx-cta-breathe 2.8s ease-in-out infinite;
}
@keyframes fx-cta-breathe {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 240, 190, 0.45), inset 0 -2px 4px rgba(60, 42, 8, 0.6), 0 3px 10px rgba(232, 193, 90, 0.22); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 240, 190, 0.45), inset 0 -2px 4px rgba(60, 42, 8, 0.6), 0 0 26px rgba(232, 193, 90, 0.5); }
}

/* ---------- 全站底图呼吸 + 更通透的夜色 ---------- */
.game-bg-shade {
  background:
    radial-gradient(ellipse at 50% 18%, transparent 0%, rgba(4, 7, 13, 0.5) 66%, rgba(3, 5, 10, 0.88) 100%),
    linear-gradient(rgba(5, 8, 14, 0.6), rgba(4, 6, 11, 0.8)) !important;
  animation: fx-night-pulse 9s ease-in-out infinite;
}
@keyframes fx-night-pulse { 50% { opacity: 0.92; } }

/* ---------- 按钮按压强化 ---------- */
.btn:active:not(:disabled) { transform: translateY(1px) scale(0.965); }
.btn-gold:active:not(:disabled) {
  box-shadow: inset 0 2px 8px rgba(50, 34, 6, 0.7), 0 1px 4px rgba(232, 193, 90, 0.15);
}

/* ---------- 图形化 Logo ---------- */
.logo-moon { display: inline-flex; line-height: 0; filter: drop-shadow(0 0 8px rgba(232, 193, 90, 0.45)); }
.logo-moon svg { animation: fx-moon-glow 4s ease-in-out infinite; }
@keyframes fx-moon-glow { 50% { filter: brightness(1.25); } }
.nav-logo { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 17px !important; letter-spacing: 0.04em !important; }
.login-card h1 { display: flex; align-items: center; justify-content: center; gap: 10px; }

/* ---------- PK 技能栏 SVG 图标着色 ---------- */
.skill-cell .skill-ico .svgi { color: #dfe9f5; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)); }
.skill-cell[data-skill="skill"] .skill-ico .svgi { color: #8fd8ff; }
.skill-cell[data-skill="dash"] .skill-ico .svgi { color: #ffe08a; }
.skill-cell[data-skill="red"] .skill-ico .svgi { color: #ff8a76; }
.skill-cell[data-skill="blue"] .skill-ico .svgi { color: #7db8ff; }
.skill-cell:active .skill-ico .svgi { transform: scale(0.86); }
.skill-cell .skill-ico .svgi { transition: transform 0.1s ease; }

/* ---------- 加载过场：场景渐显 + 进度微光 ---------- */
.boot-splash { position: relative; overflow: hidden; }
.boot-bg {
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center 30%;
  opacity: 0;
  animation: fx-boot-reveal 2.2s ease 0.15s forwards, fx-login-kenburns 30s ease-in-out infinite alternate;
}
@keyframes fx-boot-reveal { to { opacity: 1; } }
.boot-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 34%, transparent 0%, rgba(4, 7, 12, 0.55) 62%, rgba(3, 5, 10, 0.92) 100%),
    linear-gradient(rgba(4, 7, 12, 0.5), rgba(4, 7, 12, 0.8));
}
.boot-splash .boot-logo, .boot-splash .boot-sub, .boot-splash .boot-bar { position: relative; z-index: 1; }
.boot-splash .boot-logo { filter: drop-shadow(0 0 18px rgba(232, 193, 90, 0.35)); }
.boot-bar {
  width: 210px;
  height: 4px;
  margin-top: 16px;
  border-radius: 99px;
  border: 1px solid rgba(232, 193, 90, 0.35);
  background: rgba(6, 10, 18, 0.7);
  overflow: hidden;
}
.boot-bar > i {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--gold), #fff2cf, var(--gold), transparent);
  animation: fx-boot-scan 1.3s ease-in-out infinite;
}
@keyframes fx-boot-scan {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(310%); }
}

/* ---------- 远征大厅：舞台画框 & 路线卡 ---------- */
.console-stage {
  border: 1px solid rgba(232, 193, 90, 0.28) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), inset 0 0 70px rgba(3, 6, 12, 0.35), inset 0 1px 0 rgba(255, 240, 190, 0.12);
}
.route-card { border-color: rgba(70, 100, 140, 0.4); }
.route-card:hover { border-color: rgba(232, 193, 90, 0.45); }
.route-card.active { border-color: rgba(232, 193, 90, 0.75) !important; }
.hall-entry { transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.hall-entry:hover { transform: translateY(-2px); border-color: rgba(232, 193, 90, 0.5); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); }
.hall-entry:hover .hall-entry-ico { color: var(--gold); }
.hall-entry-ico { transition: color 0.15s ease; }

/* ---------- 结算横幅：胜利光芒 ---------- */
.settle-banner { position: relative; overflow: hidden; }
.settle-banner.win::before {
  content: "";
  position: absolute;
  inset: -160% -30%;
  background: repeating-conic-gradient(
    from 0deg at 50% 50%,
    rgba(232, 193, 90, 0.14) 0 7deg,
    transparent 7deg 18deg
  );
  animation: fx-rays 14s linear infinite;
  pointer-events: none;
}
@keyframes fx-rays { to { transform: rotate(360deg); } }
.settle-banner.win::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 246, 216, 0.25), transparent);
  transform: skewX(-20deg);
  animation: fx-banner-shine 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes fx-banner-shine { 55%, 100% { left: 130%; } }

/* ---------- 大号金色按钮统一呼吸光晕 ---------- */
.btn-gold.btn-lg:not(:disabled) { animation: fx-cta-breathe 2.8s ease-in-out infinite; }

/* ---------- 弹窗鎏金角饰（与面板同语言） ---------- */
.modal { position: relative; }
.modal::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 14px;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30'><path d='M3 17 V7 Q3 3 7 3 H17' fill='none' stroke='%23bf9b46' stroke-width='1.8'/><circle cx='6' cy='6' r='1.5' fill='%23e8c15a'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30'><path d='M13 27 H23 Q27 27 27 23 V13' fill='none' stroke='%23bf9b46' stroke-width='1.8'/><circle cx='24' cy='24' r='1.5' fill='%23e8c15a'/></svg>");
  background-repeat: no-repeat;
  background-position: top left, bottom right;
  opacity: 0.85;
}

/* ---------- 战报：稀有事件左侧色条 ---------- */
.battle-log .ev { padding-left: 9px; border-left: 2px solid transparent; }
.battle-log .ev.kill { border-left-color: rgba(255, 181, 159, 0.5); }
.battle-log .ev.loot { border-left-color: rgba(94, 203, 132, 0.55); }
.battle-log .ev.safe { border-left-color: rgba(232, 193, 90, 0.65); background: linear-gradient(90deg, rgba(232, 193, 90, 0.07), transparent 60%); }
.battle-log .ev.fail { border-left-color: rgba(255, 114, 89, 0.7); }
.battle-log .ev.success { border-left-color: rgba(232, 193, 90, 0.8); background: linear-gradient(90deg, rgba(232, 193, 90, 0.1), transparent 60%); }

/* ---------- 移动端舞台：KPI 上移收拢，不遮挡角色 ---------- */
@media (max-width: 900px) {
  .stage-overlay { justify-content: flex-start; gap: 6px; padding: 8px 10px; }
  .stage-kpis { flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
  .stage-kpi {
    padding: 1px 7px;
    font-size: 11px;
    background: rgba(5, 9, 14, 0.55);
    border-color: transparent;
  }
  /* 第一枚（路线名）与选择器重复，隐藏 */
  .stage-kpi:first-child { display: none; }
  .stage-status, .stage-timer { font-size: 12px; padding: 3px 9px; }
}

/* ---------- 移动端底部导航：玻璃化 + 选中辉光 ---------- */
@media (max-width: 900px) {
  .tabbar {
    background: linear-gradient(180deg, rgba(9, 13, 22, 0.86), rgba(6, 9, 16, 0.94)) !important;
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(232, 193, 90, 0.18) !important;
    box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.45);
  }
  .tabbar .tb-item { position: relative; }
  .tabbar .tb-item.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 26%;
    right: 26%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    box-shadow: 0 0 10px rgba(232, 193, 90, 0.6);
  }
}

/* ---------- 月夜剪影立绘 & SVG 货币 ---------- */
.ld-hero.silhouette { width: 176px; height: 226px; image-rendering: auto; }
.ld-hero.silhouette svg { width: 100%; height: 100%; }
.ldh-ember { animation: ldh-float 5s ease-in-out infinite; }
.ldh-ember.d2 { animation-delay: -1.8s; }
.ldh-ember.d3 { animation-delay: -3.4s; }
@keyframes ldh-float {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(-14px); opacity: 0.25; }
}
.cur-svg { display: block; line-height: 0; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); }
@media (max-width: 900px) {
  .ld-hero.silhouette { width: 108px; height: 138px; }
  .cur-svg svg { width: 15px; height: 15px; }
}

/* ---------- 顶栏 v2：头像 + 精简信息 ---------- */
.topbar .who-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  background: none;
  border: none;
  padding: 2px 6px 2px 2px;
  cursor: pointer;
  border-radius: 99px;
  transition: background 0.15s ease;
}
.who-btn:hover { background: rgba(232, 193, 90, 0.08); }
.who-btn .avatar { display: inline-flex; line-height: 0; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)); }
.who-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.who-meta .name { font-weight: 700; font-size: 14px; line-height: 1.15; color: var(--text); }
.who-meta .lv-chip {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  padding: 0 7px;
  border-radius: 99px;
  border: 1px solid rgba(232, 193, 90, 0.4);
  background: rgba(232, 193, 90, 0.1);
  line-height: 1.5;
}
.profile-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.profile-hero .avatar { filter: drop-shadow(0 0 14px rgba(232, 193, 90, 0.3)); }
.profile-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 4px; }

/* ---------- 大厅功能坞 v2：鎏金图标坞（图标 + 微标签 + 角标） ---------- */
.hall-bar { display: flex; gap: 12px; flex-wrap: wrap; }
.hall-entry {
  position: relative;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border-radius: 14px !important;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 !important;
  background:
    linear-gradient(180deg, rgba(255, 236, 170, 0.07), transparent 45%),
    linear-gradient(180deg, rgba(32, 46, 70, 0.9), rgba(12, 18, 30, 0.95)) !important;
  border: 1px solid rgba(232, 193, 90, 0.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 190, 0.14),
    inset 0 -6px 12px rgba(3, 6, 12, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.45);
  color: var(--text-dim);
  cursor: pointer;
}
.hall-entry::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 11px;
  border: 1px solid rgba(232, 193, 90, 0.1);
  pointer-events: none;
}
.hall-entry:hover, .hall-entry:active {
  color: var(--gold);
  border-color: rgba(232, 193, 90, 0.65) !important;
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 190, 0.2),
    0 6px 16px rgba(0, 0, 0, 0.5),
    0 0 14px rgba(232, 193, 90, 0.22);
}
.hall-entry .hall-entry-ico { line-height: 0; }
.hall-entry .hall-entry-name {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: inherit;
  max-width: 56px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hall-entry .hall-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 99px;
  background: linear-gradient(180deg, #ff8a76, #d84a37);
  border: 1px solid rgba(255, 200, 190, 0.5);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* ---------- 路线卡 v2：风险色点 + 图标信息行 + 锁定徽章 ---------- */
.r-name { display: flex; align-items: center; gap: 7px; }
.risk-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.risk-dot.low { background: var(--primary-bright); box-shadow: 0 0 6px rgba(94, 203, 132, 0.7); }
.risk-dot.medium { background: var(--info); box-shadow: 0 0 6px rgba(88, 166, 255, 0.7); }
.risk-dot.high { background: #ffb054; box-shadow: 0 0 6px rgba(255, 176, 84, 0.7); }
.risk-dot.extreme { background: var(--danger-bright); box-shadow: 0 0 6px rgba(255, 114, 89, 0.8); }
.r-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.r-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 99px;
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(10, 16, 26, 0.55);
  border: 1px solid rgba(70, 100, 140, 0.3);
  font-variant-numeric: tabular-nums;
}
.r-stat .svgi { color: var(--gold); opacity: 0.8; }
.r-stat.free { color: var(--primary-bright); border-color: rgba(94, 203, 132, 0.35); }
.route-card { position: relative; }
.lock-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  color: #ffd9d0;
  background: rgba(30, 10, 8, 0.8);
  border: 1px solid rgba(255, 114, 89, 0.45);
  backdrop-filter: blur(3px);
}
.route-card.locked .r-meta { opacity: 0.55; }

/* ---------- 容量条图标 ---------- */
.cap-box .cb-head { display: flex; align-items: center; justify-content: space-between; }
.cap-box .cb-ico { color: var(--gold); opacity: 0.75; line-height: 0; }

/* ---------- 移动端底部导航：纯图标游戏化（加大触区 + 选中光斑） ---------- */
@media (max-width: 900px) {
  .tabbar { padding: 4px 2px calc(6px + var(--safe-bottom)) !important; }
  .tabbar .tb-item {
    flex-direction: column;
    gap: 3px;
    padding: 8px 0 7px;
    position: relative;
  }
  /* 评审 G3：恢复文字标签（图标+标签垂直排，11px 常显；390px 下 5 项每项约 78px 宽，足够） */
  .tabbar .tb-name {
    display: block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-faint);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tabbar .tb-item.active .tb-name { color: var(--gold); }
  .tabbar .tb-item .ico { font-size: 0; }
  .tabbar .tb-item .ico svg { width: 24px; height: 24px; }
  .tabbar .tb-item.active { color: var(--gold); }
  .tabbar .tb-item.active::after {
    content: "";
    position: absolute;
    inset: 6px 12%;
    border-radius: 12px;
    background: radial-gradient(ellipse at 50% 40%, rgba(232, 193, 90, 0.16), transparent 72%);
    pointer-events: none;
  }
  .tabbar .tb-item.active .ico {
    filter: drop-shadow(0 0 9px rgba(232, 193, 90, 0.75));
    transform: translateY(-1px) scale(1.14);
  }
  /* 移动端功能坞：6 枚等分 */
  .hall-bar { gap: 8px; }
  .hall-entry { width: calc((100% - 40px) / 6); min-width: 50px; height: 56px; }
}

/* ---------- 结算弹窗 v2：徽记 + 金字横幅 + 战绩图标 + 战利品弹入 ---------- */
.settle-body { position: relative; }
.settle-crest {
  display: flex;
  justify-content: center;
  margin: 2px 0 6px;
  color: var(--danger-bright);
  filter: drop-shadow(0 0 12px rgba(232, 193, 90, 0.5));
  animation: fx-crest-pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1);
}
@keyframes fx-crest-pop { from { transform: scale(0.3); opacity: 0; } }
.settle-banner {
  font-size: 22px !important;
  letter-spacing: 0.18em;
}
.settle-banner.win {
  background:
    linear-gradient(180deg, rgba(232, 193, 90, 0.12), rgba(232, 193, 90, 0.03)) !important;
  color: transparent !important;
  background-clip: border-box;
}
.settle-banner.win {
  -webkit-text-fill-color: transparent;
}
.settle-banner.win, .settle-banner.lose { position: relative; }
.settle-banner.win::selection { -webkit-text-fill-color: initial; }
.settle-banner.win {
  background-image: linear-gradient(180deg, #fff2cf 20%, #e8c15a 55%, #a37f2a 90%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  border: none !important;
  text-shadow: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 18px rgba(232, 193, 90, 0.35));
}
.settle-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 13px;
  border-radius: 99px;
  background: rgba(16, 24, 38, 0.8);
  border: 1px solid rgba(70, 100, 140, 0.4);
  font-size: 13px;
  color: var(--text-dim);
}
.settle-stat .svgi { color: var(--gold); opacity: 0.85; }
.settle-stat b { color: var(--text); }
.settle-loot-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 10px 0 6px;
}
.settle-items .item-cell {
  animation: fx-loot-pop 0.4s cubic-bezier(0.2, 1.5, 0.4, 1) backwards;
  animation-delay: calc(60ms * var(--i, 0) + 0.15s);
}
@keyframes fx-loot-pop {
  from { opacity: 0; transform: scale(0.4) translateY(10px); }
}

/* ---------- 通行证紧凑化 ---------- */
/* 头部卡收窄：等级环 72px + 单排布局，整卡高度较旧版（112px 环 + 三行文案）降 40%+ */
.season-hero-inner { padding: 8px 14px !important; gap: 12px !important; }
.season-hero .season-ring { width: 72px; height: 72px; }
.season-hero .season-ring-lv { font-size: 19px; }
.season-hero .season-ring-lv small { font-size: 10px; }
.season-hero .season-name { font-size: 17px; }
.mission-row { padding: 9px 13px !important; }
.mission-row .ms-desc { font-size: 12px; opacity: 0.8; }
.mission-row .ms-rw { font-size: 11px; padding: 1px 7px; }
.sn2-chip .sn2-chip-label { display: inline-flex; align-items: center; gap: 4px; justify-content: center; }
.sn2-chip .cur-svg svg { width: 14px; height: 14px; }
.sn2-mark { line-height: 0; }
@media (max-width: 900px) {
  .season-hero-inner { padding: 8px 10px !important; gap: 10px !important; }
  .mission-row .ms-desc { display: none; } /* 手机端只留任务名+进度，说明进 title */
  .sn2 { min-width: 84px; }
  .sn2-chip { min-height: 52px; }
}

/* ---------- 排行榜 TG 头像（名人堂/撤离榜行首 24px 圆形） ---------- */
.lb-ava { flex: 0 0 auto; line-height: 0; }
.lb-ava img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; display: block; border: 1.5px solid rgba(232, 193, 90, 0.5); }

/* ---------- 公会会长金色 Leader 称号徽章 ---------- */
.leader-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #1c1503;
  background: linear-gradient(180deg, #ffe9ad, #e8c15a 55%, #b78f2e);
  border: 1px solid rgba(255, 233, 173, 0.85);
  box-shadow: 0 0 8px rgba(232, 193, 90, 0.4);
  line-height: 1.5;
}
.leader-badge .svgi { line-height: 0; }

/* ---------- 创世展廊卡片定宽（名字长短不再影响布局） ---------- */
.genesis-card { width: 118px; flex: 0 0 118px; }
.genesis-card .genesis-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding: 0 6px;
  text-align: center;
}

/* ---------- 收藏卡对齐：名字单行省略，卡片定高 ---------- */
.hall-card .cc-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding: 0 6px;
}
.hall-card .cc-sub { white-space: nowrap; }

/* ---------- 赛季轨道标签：图标化防溢出 ---------- */
.season-track-labels.compact { width: 44px; flex: 0 0 44px; }
.season-track-labels.compact .stl,
.season-track-labels.compact .stl-lv {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.season-track-labels.compact .stl.premium { color: var(--gold); }
.season-track-labels.compact .stl.free { color: var(--text-dim); }

/* ---------- TG 头像图 ---------- */
.avatar-img img {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(232, 193, 90, 0.65);
  box-shadow: 0 0 10px rgba(232, 193, 90, 0.25);
  display: block;
}

/* ---------- 高清立绘（GPT） ---------- */
.ld-hero.portrait {
  position: relative;
  width: 190px;
  height: 240px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  image-rendering: auto;
}
.ld-hero.portrait img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 18px rgba(232, 193, 90, 0.14));
  position: relative;
  z-index: 1;
}
.ld-hero-glow {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(232, 193, 90, 0.35), transparent 70%);
}
@media (max-width: 900px) {
  .ld-hero.portrait { width: 120px; height: 152px; }
}

/* ---------- 后台微件 ---------- */
.adm-thumb {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 6px;
  border: 1px solid var(--line-soft);
  background: rgba(10, 16, 26, 0.6);
  overflow: hidden;
}
.adm-thumb img, .adm-thumb > div { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; }

/* ---------- PK 大厅一屏化（手机端） ---------- */
@media (max-width: 900px) {
  .pvp-stats { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 6px !important; }
  .pvp-stats .stat-tile { padding: 8px 10px !important; }
  .pvp-stats .st-label { font-size: 11px; }
  .pvp-stats .st-value { font-size: 16px !important; }
  .match-panel .panel-body { padding: 14px !important; }
  .match-radar { transform: scale(0.8); margin: -8px 0; }
}

/* ---------- 对局内手感反馈 ---------- */
.hurt-veil {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(ellipse at center, transparent 46%, rgba(200, 30, 20, 0.42) 100%);
  animation: hurt-fade 0.5s ease-out forwards;
}
@keyframes hurt-fade { from { opacity: 1; } to { opacity: 0; } }
.kill-flash {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(ellipse at center, rgba(255, 233, 173, 0.18), transparent 65%);
  animation: hurt-fade 0.6s ease-out forwards;
}

/* ---------- 对局内手机 HUD：拇指友好 ---------- */
@media (max-width: 900px) {
  .skill-cell { width: 56px !important; height: 56px !important; border-radius: 14px; }
  .skill-cell .skill-key { display: none; }
  .skill-cell .skill-ico .svgi svg { width: 26px; height: 26px; }
  .skillbar { gap: 8px !important; right: 8px !important; bottom: calc(10px + var(--safe-bottom)) !important; }
  .vjoy { width: 116px !important; height: 116px !important; left: 10px !important; bottom: calc(14px + var(--safe-bottom)) !important; }
  .vjoy .vjoy-knob { width: 52px !important; height: 52px !important; }
  .pvp-hp { height: 16px !important; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(0, 0, 0, 0.6); }
}

/* ---------- 赛季奖励竖排列表 ---------- */
.sn3-list { max-height: 520px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 4px; }
.sn3-row {
  display: grid;
  grid-template-columns: 40px 1fr 1fr;
  gap: 8px;
  align-items: stretch;
}
.sn3-row.sn3-head { position: sticky; top: 0; z-index: 2; background: rgba(10, 15, 24, 0.95); padding: 4px 0; }
.sn3-track-label { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--text-dim); }
.sn3-track-label.premium { color: var(--gold); }
.sn3-lv {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--text-faint);
  border-radius: 8px;
  background: rgba(16, 24, 38, 0.6);
}
.sn3-row.reached .sn3-lv { color: var(--gold); background: rgba(232, 193, 90, 0.1); }
.sn3-row.current .sn3-lv { background: linear-gradient(180deg, #a37f2a, #6b5117); color: #fff2cf; box-shadow: 0 0 10px rgba(232, 193, 90, 0.4); }
.sn3-row .sn2-chip { min-height: 46px; width: 100%; flex-direction: row; justify-content: flex-start; gap: 8px; padding: 4px 10px; }
.sn3-row .sn2-chip .sn2-chip-label { flex-direction: row; align-items: center; gap: 6px; text-align: left; }
.sn3-thumb { position: relative; width: 24px; height: 24px; flex: 0 0 auto; display: inline-block; }
.sn3-thumb img, .sn3-thumb > div { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: contain; }

/* ---------- 主城 2.0 · 全景场景 ---------- */
/* （本段为同步事故后的等价重建：场景容器 + 背景原画层） */
.city-scene {
  position: relative;
  min-height: min(78vh, 720px);
  /* v20：去掉黑色背景框（背景/圆角/裁切），建筑直接落在全局背景上 */
  border-radius: 0;
  overflow: visible;
  isolation: isolate;
  background: none;
}
/* 背景原画层：整幅城景 + 缓慢 KenBurns 呼吸 */
.city-art {
  position: absolute;
  inset: -4%;
  z-index: 0;
  background-size: cover;
  background-position: center 38%;
  animation: fx-login-kenburns 44s ease-in-out infinite alternate;
}
/* 中景明暗：拉开背景与热点的层次 */
.city-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, transparent 0%, rgba(4, 7, 13, 0.35) 70%, rgba(3, 5, 10, 0.7) 100%),
    linear-gradient(180deg, rgba(4, 7, 12, 0.35), transparent 30%, rgba(4, 7, 13, 0.55) 96%);
}
/* ---------- Polish5 · 物品详情弹窗按钮区：手机端两列不溢出 ---------- */
/* 网格轨道 1fr 默认 min-width:auto，长文案按钮会把右列顶出弹窗 → minmax(0,1fr) 收紧 */
.detail-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.modal-body .detail-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.modal-body .detail-actions .btn {
  min-width: 0;
  max-width: 100%;
  padding-left: 10px;
  padding-right: 10px;
  display: block; /* inline-flex 下裸文本节点无法省略号，block 后按钮原生垂直居中仍在 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 整行主按钮（btn-block）跨满两列，不再被压成半宽 */
.detail-actions > .btn-block { grid-column: 1 / -1; }
/* 前景雾气（历史损坏区重建）：底部两团缓慢漂移的冷雾，承托建筑落地感 */
.city-fog { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.city-fog::before,
.city-fog::after {
  content: "";
  position: absolute;
  bottom: -8%;
  width: 68%;
  height: 34%;
  background: radial-gradient(ellipse at 50% 100%, rgba(150, 180, 220, 0.10), transparent 70%);
  filter: blur(10px);
  animation: city-fog-drift 26s ease-in-out infinite alternate;
}
.city-fog::before { left: -18%; }
.city-fog::after { right: -20%; animation-delay: -13s; animation-duration: 32s; }
@keyframes city-fog-drift {
  from { transform: translateX(0); opacity: 0.75; }
  to { transform: translateX(9%); opacity: 1; }
}
/* 场景内萤火粒子（复用全局 ember 视觉，升腾高度限制在场景内） */
.city-ember {
  position: absolute;
  bottom: -6px;
  z-index: 1;
  width: var(--sz, 2px);
  height: var(--sz, 2px);
  background: radial-gradient(circle, #ffe9ad, rgba(232, 193, 90, 0.15) 70%, transparent);
  border-radius: 50%;
  animation: city-ember-rise linear infinite;
  opacity: 0;
  pointer-events: none;
}
@keyframes city-ember-rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 0.8; }
  62% { opacity: 0.4; }
  100% { transform: translate(26px, -78vh) ; opacity: 0; }
}
.city-title {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #f5e6bd;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 0 22px rgba(232, 193, 90, 0.3);
  pointer-events: none;
}
/* 角落小入口（邀请好友/设置/后台） */
.city-minis { position: absolute; z-index: 4; top: 12px; right: 12px; display: flex; gap: 8px; }
.city-mini {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--text-dim);
  background: linear-gradient(180deg, rgba(32, 46, 70, 0.88), rgba(12, 18, 30, 0.94));
  border: 1px solid rgba(232, 193, 90, 0.3);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.city-mini:hover { color: var(--gold); border-color: rgba(232, 193, 90, 0.65); transform: translateY(-2px); }
/* GPT 鎏金徽章版：图标本身已带徽章底盘，去掉按钮自身的底色边框 */
.city-mini.has-art { background: none; border: none; box-shadow: none; padding: 0; }
.city-mini-img { width: 40px; height: 40px; display: block; filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.55)); }
.city-mini.has-art:hover .city-mini-img { filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 8px rgba(232, 193, 90, 0.5)); }
/* 建筑热点：桌面端绝对定位，错落布点 */
.city-spots { position: absolute; inset: 0; z-index: 2; }
.city-spot {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
/* 8 建筑错落布点（桌面）：对齐 GPT 全景底图自带建筑位——
   上排 远征门/锻造/任务板/信鸦塔，下排 公会/活动帐/使馆/名人堂（cover 裁切下为近似对位） */
.city-pos-expedition { left: 24%; top: 36%; }
.city-pos-crafting { left: 46%; top: 33%; }
.city-pos-missions { left: 64%; top: 35%; }
.city-pos-mail { left: 83%; top: 28%; }
.city-pos-guild { left: 15%; top: 67%; }
.city-pos-season { left: 40%; top: 70%; }
.city-pos-referral { left: 63%; top: 68%; }
.city-pos-leaderboard { left: 86%; top: 68%; }
/* 发光图标圆盘：不再整体上下浮动（避免遮挡倒计时/红点角标），改由底座光晕呼吸提供生命感 */
.city-spot-ico {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e9edf3;
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 236, 170, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(34, 48, 72, 0.92), rgba(11, 17, 28, 0.96));
  border: 1px solid rgba(232, 193, 90, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 190, 0.18),
    0 6px 16px rgba(0, 0, 0, 0.55),
    0 0 16px rgba(232, 193, 90, 0.16);
  transition: box-shadow 0.18s ease, color 0.15s ease, border-color 0.15s ease;
}
/* 台座光晕呼吸（取代整体浮动）：明暗 + 微缩放，相位由 --ph 错开 */
.city-spot-glow {
  animation: city-glow-breathe 5.4s ease-in-out infinite;
  animation-delay: var(--ph, 0s);
}
@keyframes city-glow-breathe {
  0%, 100% { opacity: 0.72; transform: translate(-50%, 0) scaleX(0.94); }
  50% { opacity: 1; transform: translate(-50%, 0) scaleX(1.05); }
}
/* 发光台座：椭圆光盘 + 细环 + 倒影光斑。CITY2 改为 bottom 锚定贴建筑脚下——
   名牌(~22px)+间距(7px) 之上即建筑底边，img 原画与回退 SVG 圆盘两种形态都自动落地 */
.city-spot { --base-w: 84px; }
.city-spot-main { --base-w: 116px; }
.city-spot-glow {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: var(--base-w);
  height: calc(var(--base-w) * 0.3);
  transform: translate(-50%, 0);
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 224, 150, 0.4), rgba(232, 193, 90, 0.14) 52%, transparent 74%);
  filter: blur(1px);
}
/* 建筑脚下的暗色接地椭圆（在光晕之下），配合原画 drop-shadow 消除"悬浮感" */
.city-spot::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 27px;
  width: 70%;
  height: 15px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(2, 4, 8, 0.55), transparent 72%);
  filter: blur(3px);
  pointer-events: none;
}
.city-spot-glow::before {
  content: "";
  position: absolute;
  inset: 22% 8%;
  border-radius: 50%;
  border: 1px solid rgba(232, 193, 90, 0.4);
  box-shadow: 0 0 10px rgba(232, 193, 90, 0.3);
}
.city-spot-glow::after { /* 台座下方的倒影光柱 */
  content: "";
  position: absolute;
  left: 50%;
  top: 88%;
  width: 34%;
  height: 130%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(232, 193, 90, 0.22), transparent 80%);
  filter: blur(3px);
}
.city-spot-ico { position: relative; z-index: 1; }
/* 建筑原画（GPT 套图）：等高对齐让脚线一致，悬停轻微放大 + 辉光 */
.city-spot-art {
  position: relative;
  z-index: 1;
  height: 88px;
  width: auto;
  max-width: 136px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 12px rgba(232, 193, 90, 0.12));
  transition: transform 0.18s ease, filter 0.18s ease;
  transform-origin: 50% 100%;
}
/* 远征之门：主视觉 110px + 金光呼吸（含固定接地暗影，避免关键帧覆盖丢失） */
.city-spot-main .city-spot-art {
  height: 110px;
  max-width: 168px;
  animation: city-bld-breathe 2.8s ease-in-out infinite;
}
@keyframes city-bld-breathe {
  0%, 100% { filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 8px rgba(232, 193, 90, 0.25)); }
  50% { filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 18px rgba(255, 220, 130, 0.55)); }
}
.city-spot:hover .city-spot-art, .city-spot:active .city-spot-art {
  transform: scale(1.06);
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 20px rgba(255, 220, 130, 0.5));
  animation: none;
}
/* 主入口「远征」放大强调 + 呼吸金光 */
.city-pos-expedition .city-spot-ico {
  width: 76px;
  height: 76px;
  border-color: rgba(232, 193, 90, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 190, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.6),
    0 0 26px rgba(232, 193, 90, 0.28);
  animation: city-breathe 2.8s ease-in-out infinite;
}
@keyframes city-breathe {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(232, 193, 90, 0.25)); }
  50% { filter: drop-shadow(0 0 14px rgba(255, 220, 130, 0.6)); }
}
.city-spot:hover .city-spot-ico, .city-spot:active .city-spot-ico {
  color: var(--gold);
  border-color: rgba(232, 193, 90, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 190, 0.24),
    0 10px 22px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(232, 193, 90, 0.5);
}
/* 名字牌匾：金边 + 顶部高光 + 两侧菱形饰钉 */
.city-spot-name {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #f0e2bd;
  background: linear-gradient(180deg, rgba(30, 40, 60, 0.94), rgba(8, 12, 20, 0.96));
  border: 1px solid rgba(232, 193, 90, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 190, 0.22),
    inset 0 0 0 1px rgba(10, 14, 22, 0.8),
    0 2px 8px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}
.city-spot-name::before, .city-spot-name::after {
  content: "";
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #ffe9ad, #b78f2e);
  transform: rotate(45deg);
  opacity: 0.85;
}
.city-spot-main .city-spot-name { font-size: 13px; color: #ffe9ad; border-color: rgba(232, 193, 90, 0.7); }
.city-spot:hover .city-spot-name { color: var(--gold); border-color: rgba(232, 193, 90, 0.8); }
/* 统一红点体系：主城内所有未读/可领角标共用 .city-badge */
.city-badge {
  position: absolute;
  top: 0;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ff7365, #d92f23);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 9px;
  border: 1.5px solid rgba(16, 8, 8, 0.85);
  box-shadow: 0 0 8px rgba(255, 93, 82, 0.45), 0 2px 5px rgba(0, 0, 0, 0.4);
}
.city-timer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0c1220;
  background: linear-gradient(180deg, #ffe9ad, #d8ab3f);
  border: 1px solid rgba(255, 246, 216, 0.7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 12px rgba(232, 193, 90, 0.45);
  white-space: nowrap;
  pointer-events: none;
}
/* （左侧活动入口列 city-acts 已随功能移除：充值走顶栏，邀请=使馆建筑，钥匙=信鸦驿站） */
/* 顶栏与主城融合：底边渐隐过渡，去硬分割线 */
.topbar {
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.9), rgba(8, 12, 20, 0.42) 72%, rgba(8, 12, 20, 0.06)) !important;
  border-bottom: 1px solid transparent !important;
  box-shadow: none !important;
}
/* 手机端：保留同一场景等比缩放（不降级网格），位置微调保证 380px 不重叠可点 */
@media (max-width: 900px) {
  .city-scene { min-height: min(68vh, 560px); }
  .city-spot-ico { width: 50px; height: 50px; }
  .city-pos-expedition .city-spot-ico { width: 64px; height: 64px; }
  .city-spot-art { height: 64px; max-width: 100px; }
  .city-spot-main .city-spot-art { height: 82px; max-width: 126px; }
  .city-spot { --base-w: 70px; padding: 5px; }
  .city-spot-main { --base-w: 94px; }
  .city-spot-glow { bottom: 18px; }
  .city-spot::before { bottom: 22px; height: 12px; }
  /* 评审 H1：建筑标签统一 12px/600，主路径「远征之门」13px 区分主级 */
  .city-spot-name { font-size: 12px; font-weight: 600; padding: 2px 8px; gap: 4px; }
  .city-spot-main .city-spot-name { font-size: 13px; }
  /* 380px 手机：8 建筑三行错落（上 3 / 中 2 / 下 3），已实测互不重叠、角标不被切 */
  .city-pos-referral { left: 18%; top: 24%; }
  .city-pos-guild { left: 50%; top: 27%; }
  .city-pos-season { left: 82%; top: 24%; }
  .city-pos-expedition { left: 28%; top: 52%; }
  .city-pos-missions { left: 73%; top: 50%; }
  .city-pos-leaderboard { left: 18%; top: 78%; }
  .city-pos-crafting { left: 50%; top: 80%; }
  .city-pos-mail { left: 82%; top: 78%; }
  .city-title { font-size: 15px; }
  .city-timer { top: -10px; }
}

/* ---------- 充值弹窗：桌面列表行 / 手机两列卡片网格 ---------- */
.shop-tiers { display: flex; flex-direction: column; gap: 8px; }
.shop-tier {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(22, 32, 50, 0.7), rgba(11, 17, 28, 0.85));
  border: 1px solid rgba(70, 100, 140, 0.35);
  transition: border-color 0.15s ease;
}
.shop-tier:hover { border-color: rgba(232, 193, 90, 0.5); }
.shop-tier .st-ico { flex: 0 0 auto; line-height: 0; }
.shop-tier .st-main { flex: 1; min-width: 0; }
.shop-tier .st-amount { font-weight: 800; font-size: 15px; }
.shop-tier .st-price { font-size: 13px; color: var(--text-dim); }
.shop-tier .st-bonus { flex: 0 0 auto; }
.shop-tier .st-pay { display: flex; gap: 6px; flex: 0 0 auto; }
@media (max-width: 900px) {
  .shop-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .shop-tier {
    flex-direction: column;
    gap: 6px;
    padding: 14px 10px 10px;
    text-align: center;
    background:
      linear-gradient(180deg, rgba(255, 236, 170, 0.06), transparent 40%),
      linear-gradient(180deg, rgba(22, 32, 50, 0.75), rgba(11, 17, 28, 0.9));
  }
  .shop-tier .st-main { display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .shop-tier .st-amount { font-size: 17px; }
  .shop-tier .st-price { font-size: 13px; }
  /* 赠送角标：贴卡片右上角 */
  .shop-tier .st-bonus {
    position: absolute;
    top: -8px;
    right: -4px;
    font-size: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  }
  /* 两个支付按钮竖排铺满 */
  .shop-tier .st-pay { flex-direction: column; width: 100%; gap: 6px; margin-top: 4px; }
  .shop-tier .st-pay .btn { width: 100%; justify-content: center; }
}

/* ---------- 远征弹窗：远征中地图卡禁用态（半透明 + 不可点指针，toast 拦截仍生效） ---------- */
.route-card.no-switch {
  opacity: 0.45;
  cursor: not-allowed;
  filter: saturate(0.55);
}
.route-card.no-switch:hover { border-color: rgba(70, 100, 140, 0.4); }

/* ---------- 名人堂 · 资产榜弹窗 ---------- */
.lb-list { gap: 6px; max-height: min(60vh, 520px); overflow-y: auto; padding-right: 2px; }
.lb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(18, 27, 42, 0.72), rgba(10, 16, 26, 0.85));
  border: 1px solid rgba(70, 100, 140, 0.3);
}
.lb-row.lb-top { border-color: rgba(232, 193, 90, 0.4); background: linear-gradient(90deg, rgba(232, 193, 90, 0.08), rgba(10, 16, 26, 0.85) 55%); }
.lb-rank {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  background: rgba(16, 24, 38, 0.8);
  border: 1px solid rgba(70, 100, 140, 0.4);
}
/* 前三名奖牌徽章：金 / 银 / 铜 */
.lb-rank.r1 { color: #3a2405; background: linear-gradient(180deg, #ffe9ad, #d8a63c); border-color: rgba(255, 246, 216, 0.85); box-shadow: 0 0 12px rgba(232, 193, 90, 0.55); }
.lb-rank.r2 { color: #1d2430; background: linear-gradient(180deg, #eef3f8, #9fb0c4); border-color: rgba(240, 246, 252, 0.8); box-shadow: 0 0 10px rgba(190, 208, 226, 0.4); }
.lb-rank.r3 { color: #2e1608; background: linear-gradient(180deg, #e8b98a, #a96b34); border-color: rgba(244, 214, 178, 0.8); box-shadow: 0 0 10px rgba(200, 132, 66, 0.4); }
.lb-who { flex: 1; min-width: 0; }
.lb-name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-assets { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; flex: 0 0 auto; }

/* ---------- 底部主菜单 v3：雕面质感（金发丝线 + 分隔微光 + 台座光斑 + 立体图标） ---------- */
@media (max-width: 900px) {
  .tabbar {
    position: relative;
    background:
      linear-gradient(180deg, rgba(255, 236, 170, 0.05), transparent 30%),
      linear-gradient(180deg, rgba(13, 19, 31, 0.97), rgba(5, 8, 14, 0.99)) !important;
    border-top: 1px solid rgba(232, 193, 90, 0.3) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 240, 190, 0.1),
      inset 0 -12px 20px rgba(2, 4, 8, 0.5),
      0 -8px 26px rgba(0, 0, 0, 0.55) !important;
  }
  /* 顶部金发丝线：横贯整条导航，中亮边隐 */
  .tabbar::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 4%;
    right: 4%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 233, 173, 0.5) 50%, transparent);
    pointer-events: none;
  }
  /* 每项之间的分隔微光（细竖线，上下渐隐） */
  .tabbar .tb-item + .tb-item {
    border-left: 1px solid transparent;
    border-image: linear-gradient(180deg, transparent 18%, rgba(232, 193, 90, 0.16) 50%, transparent 82%) 1;
  }
  /* 选中项：浮起的金色台座光斑（底部椭圆光盘） */
  .tabbar .tb-item.active::after {
    content: "";
    position: absolute;
    inset: auto 16% 2px 16%;
    top: auto;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 82%, rgba(232, 193, 90, 0.4), rgba(232, 193, 90, 0.1) 52%, transparent 76%);
    filter: blur(1px);
    pointer-events: none;
  }
  /* 图标微立体：常态落影，选中浮起 + 金辉 */
  .tabbar .tb-item .ico { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.55)); }
  .tabbar .tb-item.active .ico {
    transform: translateY(-3px) scale(1.16);
    filter: drop-shadow(0 0 9px rgba(232, 193, 90, 0.8)) drop-shadow(0 3px 3px rgba(0, 0, 0, 0.6));
  }
  /* 子页归属高亮（远征）：弱化版光斑，示意"当前在主城分支" */
  .tabbar .tb-item.active.sub .ico { filter: drop-shadow(0 0 5px rgba(232, 193, 90, 0.4)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.55)); transform: translateY(-1px) scale(1.05); }
  .tabbar .tb-item.active.sub::after { opacity: 0.45; }
}
/* 桌面侧栏 nav-rail：同语言微调（顶部金发丝线 + 选中台座辉光） */
.nav-rail {
  background:
    linear-gradient(180deg, rgba(255, 236, 170, 0.04), transparent 120px),
    linear-gradient(180deg, rgba(20, 30, 48, 0.5), transparent 140px),
    var(--panel-strong) !important;
  border-right: 1px solid rgba(232, 193, 90, 0.18) !important;
  box-shadow: inset -1px 0 0 rgba(255, 240, 190, 0.04), 6px 0 22px rgba(0, 0, 0, 0.3);
}
.nav-rail .nav-item.active {
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 190, 0.12),
    inset 0 0 18px rgba(232, 193, 90, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.35);
}
.nav-rail .nav-item.active .ico .svgi { filter: drop-shadow(0 0 6px rgba(232, 193, 90, 0.6)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5)); }

/* ---------- 赛季箱子：扩容箱彩蛋卡 ---------- */
.genesis-card.bonus { position: relative; overflow: visible; }
.bonus-tag {
  position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  z-index: 2; padding: 1px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
  color: #1a1206; background: linear-gradient(180deg, #ffe9ad, #d8a63f);
  border: 1px solid rgba(255, 240, 190, 0.6);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45), 0 0 10px rgba(232, 193, 90, 0.35);
  white-space: nowrap;
}

/* ---------- 页面切换 loading（弱网过渡） ---------- */
.route-veil {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: rgba(5, 8, 14, 0.45); backdrop-filter: blur(2px);
  opacity: 1; transition: opacity 0.25s ease; pointer-events: none;
}
.route-veil.out { opacity: 0; }
.rv-spin {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(232, 193, 90, 0.18);
  border-top-color: rgba(232, 193, 90, 0.85);
  animation: rv-rot 0.8s linear infinite;
  box-shadow: 0 0 14px rgba(232, 193, 90, 0.15);
}
.rv-txt { font-size: 13px; color: rgba(226, 234, 248, 0.75); letter-spacing: 1px; }
@keyframes rv-rot { to { transform: rotate(360deg); } }

/* ---------- 仓库：主仓/扩容箱切换条 ---------- */
.box-strip {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.box-strip::-webkit-scrollbar { display: none; }
/* 纯图标切换：无底无框，仅激活项亮金色下划线+微放大 */
.bs-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 6px 7px; border-radius: 8px; cursor: pointer;
  font-size: 13px; color: rgba(220, 230, 246, 0.85);
  background: none; border: none;
  white-space: nowrap; max-width: 46vw;
  border-bottom: 2px solid transparent;
  opacity: 0.72; transition: opacity 0.15s ease, transform 0.15s ease;
}
.bs-chip > span { overflow: hidden; text-overflow: ellipsis; }
.bs-chip.active {
  opacity: 1; transform: scale(1.08);
  border-bottom-color: rgba(232, 193, 90, 0.8);
}
.bs-chip:hover { opacity: 1; }
.bs-ico { display: inline-flex; align-items: center; font-size: 16px; }
/* 纯图标模式：chip 变方块，箱子图标带品质描边 */
.bs-chip { padding: 6px 9px; }
.bs-box {
  width: 30px; height: 30px; position: relative; display: inline-flex;
  border-radius: 6px; overflow: hidden;
}
.bs-box img { width: 100%; height: 100%; object-fit: contain; }
.bs-box.rb-blue { box-shadow: inset 0 0 0 1.5px #3f7fd6; }
.bs-box.rb-purple { box-shadow: inset 0 0 0 1.5px #8f5fd8; }
.bs-box.rb-gold { box-shadow: inset 0 0 0 1.5px #d8a63f; }
.bs-box.rb-red { box-shadow: inset 0 0 0 1.5px #d85454; }
/* 手机端 9 列视图：网格自身不再横向滚动 */
.sgrid-scroll.mobile-pack { overflow-x: hidden; }

/* ---------- 邀请规则卡片（? 弹窗） ---------- */
.rule-card {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 11px 13px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(26, 36, 58, 0.55), rgba(14, 20, 34, 0.65));
  border: 1px solid rgba(160, 190, 235, 0.10);
}
.rule-ico {
  flex: 0 0 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, rgba(232, 193, 90, 0.16), rgba(20, 28, 46, 0.9));
  border: 1px solid rgba(232, 193, 90, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 240, 190, 0.08);
}
.rule-title { font-weight: 700; font-size: 14px; color: #f2e7c8; letter-spacing: 0.2px; }
.rule-desc { font-size: 13px; line-height: 1.65; color: rgba(214, 226, 244, 0.72); }

/* ---------- v13：动态风险五档（无危/低危/中危/高危/极危） ---------- */
/* 档位由客户端按装备评分实时计算（catalog.js dynamicRiskTier，与服务器同公式） */
.risk-dot.none { background: #35e0c2; box-shadow: 0 0 6px rgba(53, 224, 194, 0.75); }
.risk-chip-none {
  color: #8ff5e2; background: rgba(53, 224, 194, 0.12);
  border: 1px solid rgba(53, 224, 194, 0.45);
}
.risk-chip-low {
  color: #a5e8bc; background: rgba(94, 203, 132, 0.12);
  border: 1px solid rgba(94, 203, 132, 0.45);
}
.risk-chip-medium {
  color: #a9cdf5; background: rgba(88, 166, 255, 0.12);
  border: 1px solid rgba(88, 166, 255, 0.45);
}
.risk-chip-high {
  color: #ffd39a; background: rgba(255, 176, 84, 0.12);
  border: 1px solid rgba(255, 176, 84, 0.5);
}
.risk-chip-extreme {
  color: #ffb0a0; background: rgba(255, 114, 89, 0.14);
  border: 1px solid rgba(255, 114, 89, 0.55);
}

/* ---------- v13：战报「已放入保险箱」行（金色左边框） ---------- */
.battle-log .ev.safebox {
  border-left: 3px solid #e8c15a;
  padding-left: 8px;
  color: #f2e0a8;
  background: linear-gradient(90deg, rgba(232, 193, 90, 0.10), transparent 65%);
}

/* ---------- v13：任务板分组标题 + 活动任务「前往」按钮 ---------- */
.ms-group-head {
  display: flex; align-items: center;
  margin: 10px 2px 2px; font-size: 13px; font-weight: 800;
  letter-spacing: 1px; color: rgba(232, 214, 160, 0.9);
}
.ms-group-head::after {
  content: ""; flex: 1; margin-left: 10px; height: 1px;
  background: linear-gradient(90deg, rgba(232, 193, 90, 0.3), transparent);
}
.ms-goto { margin-top: 6px; align-self: flex-start; }

/* ---------- v14：收藏室 · 星髓/月辉/系列共鸣 ---------- */
/* 我的月辉格上的共鸣加成小标 */
.stat-tile { position: relative; }
.sm-bonus-tag {
  margin-top: 2px; font-size: 11px; font-weight: 700;
  color: #aef0ff; text-shadow: 0 0 8px rgba(140, 220, 255, 0.5);
}

/* 汲取按钮：可领取时的呼吸辉光（仪式感） */
.sm-claimbox { position: relative; }
.claim-ritual { animation: sm-claim-breathe 2.2s ease-in-out infinite; }
@keyframes sm-claim-breathe {
  0%, 100% { box-shadow: 0 0 0 rgba(140, 220, 255, 0); }
  50% { box-shadow: 0 0 16px rgba(140, 220, 255, 0.45), 0 0 34px rgba(140, 220, 255, 0.16); }
}
/* 汲取成功迸出的星髓光尘 */
.sm-spark {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: #bff2ff; box-shadow: 0 0 8px rgba(140, 220, 255, 0.9);
  pointer-events: none; z-index: 3;
  animation: sm-spark-fly 0.95s ease-out forwards;
}
@keyframes sm-spark-fly {
  from { transform: translate(0, 0) scale(1); opacity: 1; }
  to { transform: translate(var(--dx, 0), var(--dy, -80px)) scale(0.2); opacity: 0; }
}

/* 系列共鸣进度卡 */
.cset-title { display: flex; align-items: center; gap: 8px; }
.cset-total { margin-left: auto; font-size: 12px; font-weight: 700; color: rgba(214, 226, 244, 0.5); }
.cset-total.on { color: #aef0ff; text-shadow: 0 0 8px rgba(140, 220, 255, 0.45); }
.cset-row {
  padding: 9px 11px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(24, 34, 54, 0.55), rgba(13, 19, 32, 0.65));
  border: 1px solid rgba(160, 190, 235, 0.12);
}
.cset-row.gold { border-color: rgba(232, 193, 90, 0.22); }
.cset-row.red { border-color: rgba(255, 114, 89, 0.22); }
.cset-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cset-name { font-weight: 700; font-size: 13px; letter-spacing: 0.3px; }
.cset-count { font-size: 12px; color: rgba(214, 226, 244, 0.6); }
.cset-bar { height: 6px; border-radius: 3px; background: rgba(140, 180, 235, 0.12); overflow: hidden; }
.cset-bar i {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #7fd8ff, #aef0ff);
  box-shadow: 0 0 8px rgba(140, 220, 255, 0.5);
  transition: width 0.5s ease;
}
.cset-row.gold .cset-bar i {
  background: linear-gradient(90deg, #e8c15a, #ffe9ad);
  box-shadow: 0 0 8px rgba(232, 193, 90, 0.5);
}
.cset-miles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.cset-chip {
  font-size: 12px; padding: 2px 8px; border-radius: 999px;
  color: rgba(214, 226, 244, 0.55);
  background: rgba(150, 190, 235, 0.05);
  border: 1px solid rgba(150, 190, 235, 0.18);
  white-space: nowrap;
}
.cset-chip.on {
  color: #bff2ff; background: rgba(140, 220, 255, 0.12);
  border-color: rgba(140, 220, 255, 0.55);
  box-shadow: 0 0 6px rgba(140, 220, 255, 0.25);
}

/* 星髓用途占位卡 */
.sm-use {
  display: flex; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(24, 34, 54, 0.45), rgba(13, 19, 32, 0.55));
  border: 1px dashed rgba(140, 220, 255, 0.22);
}
.sm-use-ico {
  flex: 0 0 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #aef0ff;
  background: radial-gradient(circle at 35% 30%, rgba(140, 220, 255, 0.16), rgba(20, 28, 46, 0.9));
  border: 1px solid rgba(140, 220, 255, 0.25);
}
.sm-soon {
  flex: 0 0 auto; font-size: 11px;
  color: #8fd8f5; background: rgba(140, 220, 255, 0.1);
  border: 1px solid rgba(140, 220, 255, 0.3);
}

/* 手机端（~380px）：里程碑芯片收紧，标题行不换行溢出 */
@media (max-width: 420px) {
  .cset-miles { gap: 4px; }
  .cset-chip { font-size: 11px; padding: 2px 6px; }
  .cset-total { font-size: 11px; }
  .cset-title .btn-sm { padding: 2px 8px; }
  .sm-use { padding: 9px 10px; }
}

/* v14 动效降级（与下方全站降级块并行，避免改动既有内容） */
@media (prefers-reduced-motion: reduce) {
  .claim-ritual, .sm-spark { animation: none !important; }
}

/* ---------- 邀请页 v3：保险箱奖励可视化 + 我的奖励轨道（380px 手机端优先） ---------- */
/* 里程碑/奖励轨道行允许换行：奖励胶囊（含 22px 箱子图标）变宽时折行不溢出 */
.ref-ms-row { flex-wrap: wrap; row-gap: 4px; }
/* 保险箱奖励胶囊：小箱子图标 + 短名 + 天数徽标 */
.ref-reward.ref-reward-box { padding: 2px 8px 2px 4px; gap: 5px; }
.ref-box-ico {
  position: relative; /* iconNode 图集裁切用 absolute 定位，必须有定位父级 */
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(150, 190, 235, 0.08);
}
.ref-box-ico img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ref-box-days {
  font-size: 11px;
  line-height: 1.4;
  padding: 1px 5px;
  border-radius: 6px;
  color: #ecdfae;
  background: rgba(232, 193, 90, 0.14);
  border: 1px solid rgba(232, 193, 90, 0.3);
  white-space: nowrap;
}
/* 我的奖励轨道：未达成档位灰态 */
.ref-row-dim { opacity: 0.55; }

/* ---------- v17：邮件详情弹窗（任务 9，380px 手机端优先） ---------- */
.mail-note {
  padding: 10px 12px; border-radius: 10px;
  font-size: 13px; line-height: 1.75;
  color: rgba(226, 236, 250, 0.88);
  background: linear-gradient(180deg, rgba(26, 36, 58, 0.5), rgba(14, 20, 34, 0.6));
  border: 1px solid rgba(160, 190, 235, 0.12);
  white-space: pre-wrap; /* 后台公告完整展示，保留换行不截断 */
  word-break: break-word;
}
.mail-cur-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 9px;
  background: rgba(150, 190, 235, 0.06);
  border: 1px solid rgba(150, 190, 235, 0.14);
}
.mail-cur-ico { display: inline-flex; align-items: center; line-height: 0; }
.mail-item-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
}
.mail-item-cell { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mail-item-cell .item-cell { width: 100%; aspect-ratio: 1; position: relative; }

/* ---------- v17：PK 入场门槛对照（任务 11） ---------- */
.pvp-req-list { display: flex; flex-direction: column; gap: 5px; text-align: left; }
.pvp-req-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; padding: 2px 0;
}
.pvp-req-row.ok { color: #6fd18a; }
.pvp-req-row.bad { color: #ff7259; }
.pvp-req-mark { flex: 0 0 16px; font-weight: 900; text-align: center; }

/* ---------- v17：后台市场分组 + 风控日志键值行（任务 18/19） ---------- */
.mkt-group-head { align-items: center; gap: 8px; }
.mkt-group-head.open {
  background: rgba(232, 193, 90, 0.05);
  border-color: rgba(232, 193, 90, 0.22);
}
.mkt-caret { flex: 0 0 14px; color: rgba(232, 193, 90, 0.8); font-size: 12px; }
.mkt-orders {
  margin: 0 0 6px 14px; padding-left: 8px;
  border-left: 2px solid rgba(232, 193, 90, 0.18);
}
.mkt-order { padding-top: 6px; padding-bottom: 6px; }
.audit-kv {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 12px; line-height: 1.5; min-width: 0;
}
.audit-kv-k { flex: 0 0 auto; color: rgba(214, 226, 244, 0.5); }
.audit-kv-v {
  min-width: 0; color: rgba(226, 236, 250, 0.85);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 手机端（~380px）：市场组头/订单行收紧，键值行允许换行阅读 */
@media (max-width: 420px) {
  .mkt-orders { margin-left: 6px; padding-left: 6px; }
  .mkt-order .adm-cell.faint { display: none; } /* 时间列窄屏隐藏，保价格/卖家/操作 */
  .audit-kv-v { white-space: normal; }
}

/* ---------- v18：角色页 / 月下擂台建筑 / 远征行前检查单 / 任务板标签 / 仓库扩容箱面板 ---------- */
/* 主城 9 建筑布点：新增 PK 入口「月下擂台」。
   BUGFIX：桌面下排 5 建筑的覆盖规则必须锁在 min-width 里——
   之前裸写在文件后部，级联优先级盖过了手机端 @media 布点，导致手机上全部堆叠 */
@media (min-width: 901px) {
  .city-pos-pvp { left: 50%; top: 69%; }
  .city-pos-guild { left: 12%; top: 67%; }
  .city-pos-season { left: 31%; top: 70%; }
  .city-pos-referral { left: 69%; top: 68%; }
  .city-pos-leaderboard { left: 88%; top: 68%; }
}
@media (max-width: 900px) {
  /* ---- 手机端主城专属排版 v22 ----
     纵向节奏：3 行错落（上 3 / 中 2+主门 / 下 4），行距拉开供角标与名牌呼吸；
     场景加高、建筑放大一档，主门（远征）居中偏左成为视觉锚点 */
  .city-scene { min-height: min(76vh, 640px); }
  .city-spot-art { height: 72px; max-width: 112px; }
  .city-spot-main .city-spot-art { height: 96px; max-width: 140px; }
  .city-pos-referral { left: 17%; top: 19%; }
  .city-pos-guild { left: 50%; top: 22%; }
  .city-pos-season { left: 83%; top: 19%; }
  .city-pos-expedition { left: 30%; top: 47%; }
  .city-pos-missions { left: 75%; top: 45%; }
  .city-pos-leaderboard { left: 13%; top: 77%; }
  .city-pos-crafting { left: 38%; top: 80%; }
  .city-pos-pvp { left: 62%; top: 80%; }
  .city-pos-mail { left: 87%; top: 77%; }
}

/* 角色页布局：手机单列（380px 优先），桌面左卡右装备两列 */
.ch-layout { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
.ch-layout > * { min-width: 0; }
@media (min-width: 900px) { .ch-layout { grid-template-columns: 400px 1fr; } }
.ch-hero { display: flex; gap: 14px; align-items: center; padding: 14px 14px 10px; }
.ch-name {
  font-size: 18px; font-weight: 800;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ch-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 12px 12px; }
.ch-stat {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 10px; min-width: 0;
  background: rgba(150, 190, 235, 0.06);
  border: 1px solid rgba(150, 190, 235, 0.14);
}
.ch-stat .cs-ico { flex: 0 0 auto; line-height: 0; }
.ch-stat .cs-label { font-size: 11px; color: var(--text-faint); }
.ch-stat .cs-val {
  font-weight: 800; font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 穿戴装备槽位行（点击卸下/切换，与仓库旧装备栏同手感） */
.ch-slot-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; cursor: pointer;
  border-bottom: 1px dashed rgba(150, 180, 220, 0.12);
  transition: background 0.14s ease;
}
.ch-slot-row:hover { background: rgba(45, 68, 100, 0.18); }
.ch-slot-cell { width: 46px; flex: 0 0 46px; }
.ch-slot-meta { flex: 1; min-width: 0; }
.ch-slot-name { font-size: 12px; color: var(--text-faint); }
.ch-slot-item {
  font-size: 14px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ch-slot-gs { flex: 0 0 auto; font-size: 13px; }
.ch-gs-total { text-align: center; padding: 12px; font-size: 13px; color: var(--text-dim); }
.ch-gs-total b { color: var(--moon); font-size: 22px; font-family: var(--mono); margin-left: 4px; }
.ch-record { padding: 12px; }

/* 远征行前检查单：未达标逐行 ✓/✗ 对照，全达标折叠为一行绿色通行条 */
.exp-check {
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px 10px; border-radius: 10px;
  background: rgba(150, 190, 235, 0.05);
  border: 1px solid rgba(150, 190, 235, 0.16);
}
.exp-check.pass {
  flex-direction: row; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: #6fd18a;
  background: rgba(111, 209, 138, 0.07);
  border-color: rgba(111, 209, 138, 0.3);
}
.exp-req-row { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 1px 0; }
.exp-req-row.ok { color: #6fd18a; }
.exp-req-row.bad { color: #ff7259; }
.exp-req-mark { flex: 0 0 14px; font-weight: 900; text-align: center; }

/* 任务板标签（复用 season.js 的 .tabs 视觉）：标签内可领取数角标 */
.ms-tabs { max-width: 520px; margin-bottom: 4px; }
.ms-tab-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; padding: 0 4px; margin-left: 5px;
  border-radius: 8px; font-size: 10px; font-weight: 800; color: #fff;
  background: linear-gradient(180deg, #ff7365, #d92f23);
  box-shadow: 0 0 6px rgba(255, 93, 82, 0.35);
}

/* 仓库左列扩容箱精简面板：手机端隐藏（顶部 box-strip 已可切换/安装，箱内「取下」在容量行） */
@media (max-width: 900px) {
  .wh-box-panel { display: none; }
}

/* 仓库顶部过渡入口（v18 首周）：低调 ghost 按钮，指向角色页穿戴装备区 */
.wh-migrate-tip { margin: -4px 0 10px; }
.wh-migrate-tip .btn { color: var(--text-faint); font-size: 12px; padding: 3px 10px; }
.wh-migrate-tip .btn:hover { color: var(--text-dim); }

/* ---------- 星髓质押（v19）：三层收益面板，380px 手机优先 ---------- */
.stk-panel .stk-total {
  margin-left: auto; margin-right: 8px;
  font-size: 12px; font-weight: 800; color: var(--moon, #9fd8ff);
}
.stk-balances { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stk-io { display: flex; align-items: center; gap: 8px; min-width: 0; }
.stk-io .stk-input {
  flex: 1; min-width: 0; height: 38px; padding: 0 10px;
  border-radius: 10px; font-size: 14px; font-family: var(--mono);
  background: rgba(150, 190, 235, 0.06);
  border: 1px solid rgba(150, 190, 235, 0.2);
  color: inherit;
}
.stk-io .stk-input:focus { outline: none; border-color: rgba(140, 220, 255, 0.5); }
.stk-io .stk-max { flex: 0 0 auto; padding: 4px 10px; }
.stk-io .btn { flex: 0 0 auto; }
.stk-cd {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #ffb46a;
}
.stk-cd b { font-size: 13px; }
.stk-cd.free { color: var(--text-faint); }
/* 三层收益卡：手机单列，≥760px 三列 */
.stk-cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 760px) { .stk-cards { grid-template-columns: 1fr 1fr 1fr; } }
.stk-card {
  display: flex; flex-direction: column; gap: 7px;
  padding: 11px 12px; border-radius: 12px; min-width: 0;
  background: rgba(150, 190, 235, 0.05);
  border: 1px solid rgba(150, 190, 235, 0.16);
}
.stk-card-title { font-size: 13px; font-weight: 800; color: #cfe6ff; letter-spacing: 0.2px; }
.stk-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.stk-row-label { font-size: 12px; color: var(--text-faint); flex: 0 0 auto; }
.stk-row-val {
  font-size: 13px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.stk-note { font-size: 12px; line-height: 1.55; color: var(--text-faint); }
/* 档位进度条（复用 cset-chip 里程碑芯片视觉） */
.stk-tier-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.stk-tier-badge { color: var(--moon, #9fd8ff); font-weight: 800; }
.stk-tier-bar {
  height: 8px; border-radius: 4px; overflow: hidden;
  background: rgba(150, 190, 235, 0.1);
  border: 1px solid rgba(150, 190, 235, 0.16);
}
.stk-tier-bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, #4aa8d8, #9fe8ff);
  box-shadow: 0 0 8px rgba(140, 220, 255, 0.45);
  transition: width 0.4s ease;
}
.stk-tier-chips { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 420px) {
  /* 380px 手机：操作行两段换行，按钮不被压瘪 */
  .stk-io { flex-wrap: wrap; }
  .stk-io .stk-input { flex: 1 1 100%; }
  .stk-io .btn { flex: 1 1 auto; }
}

/* ---------- v21：收藏室分页 / 藏品图鉴灰显 / 角色页立绘+属性面板 / 角色头图兜底 ---------- */
/* 收藏室页签条：舞台+汲取按钮常驻，四页签切换（380px 手机优先，.tabs 自带横向滚动） */
.coll-tabs { max-width: 520px; margin: 2px 0 0; }
.coll-page { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
/* 藏品图鉴 · 未收录占位卡：图标灰度+压暗，名字转灰，去掉悬浮抬升 */
.hall-card.hall-locked { cursor: default; }
.hall-card.hall-locked:hover { transform: none; box-shadow: none; }
.hall-card.hall-locked .hall-card-icon { filter: grayscale(1) brightness(0.45); }
.hall-card.hall-locked .hall-card-pedestal { opacity: 0.35; }
.hall-card.hall-locked .cc-name { color: var(--text-faint); }
.hall-card.hall-locked .cc-sub { color: rgba(150, 170, 200, 0.45); }
/* 角色页立绘：角色卡上方居中，复用配装页 .ld-hero.portrait 视觉；手机端收窄 */
.ch-figure { display: flex; justify-content: center; padding: 14px 0 0; }
.ch-figure .ld-hero.portrait { width: 150px; height: 190px; }
.ch-figure .ld-hero.portrait.noart {
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 50% 82%, rgba(232, 193, 90, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(28, 44, 71, 0.5), rgba(10, 18, 31, 0.65));
  border: 1px dashed rgba(150, 190, 235, 0.18);
}
@media (max-width: 900px) {
  .ch-figure .ld-hero.portrait { width: 112px; height: 142px; }
}
/* 角色页属性面板：生命/攻击/防御/移速 2×2 网格（380px 手机两列不溢出） */
.ch-attrs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px 12px 8px; }
.ch-attr {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 10px; border-radius: 10px; min-width: 0;
  background: rgba(150, 190, 235, 0.06);
  border: 1px solid rgba(150, 190, 235, 0.14);
}
.ch-attr .ca-label { font-size: 11px; color: var(--text-faint); }
.ch-attr .ca-val { font-size: 16px; font-weight: 800; }
.ch-attr .ca-sub {
  font-size: 11px; color: var(--text-faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 场景头图兜底：头图（如 banner_character.png）尚未产出/加载失败时容器渐变打底，避免死黑空白 */
.screen-hero {
  background-color: #0a1322;
  background-image: linear-gradient(180deg, rgba(30, 48, 76, 0.85), rgba(7, 12, 21, 0.95));
}

/* ---------- 顶栏手机端 v23：结构化两行（上=角色，下=三货币等分），不再毛边换行 ---------- */
@media (max-width: 520px) {
  .topbar { flex-wrap: wrap; row-gap: 4px; padding: 8px 10px; padding-top: calc(8px + var(--safe-top)); gap: 8px; }
  .topbar .who { flex: 1 1 100%; min-width: 0; }
  .topbar .spacer { display: none; }
  .topbar .currency {
    flex: 1 1 0; min-width: 0; justify-content: center;
    padding: 3px 6px; font-size: 12px;
  }
  .topbar .currency .num { overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- 图标视觉体积统一：保险箱原画边距小于其他装备，收一圈 ---------- */
.item-cell img[src*="/safe_box"],
.ld-slot-cell img[src*="/safe_box"],
.chr-slot .item-cell img[src*="/safe_box"] {
  inset: 20% !important;
  width: 60% !important;
  height: 60% !important;
}

/* ---------- 角色页 v23：RPG 纸娃娃布局 ---------- */
.chr-panel { padding-bottom: 4px; }
.chr-head { display: flex; gap: 10px; align-items: center; padding: 12px 14px 4px; }
.chr-xp { margin: 6px 14px 2px; }
.chr-doll {
  display: grid; grid-template-columns: 64px 1fr 64px;
  gap: 8px; align-items: center; justify-items: center;
  padding: 10px 12px 4px;
}
.chr-col { display: flex; flex-direction: column; gap: 10px; }
.chr-slot { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; }
.chr-slot .item-cell { width: 56px; height: 56px; }
.chr-empty {
  display: flex; align-items: center; justify-content: center;
  border-style: dashed !important; opacity: 0.55;
}
.chr-slot-name { font-size: 11px; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chr-center { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.chr-center .ld-hero.portrait { width: 150px; height: 190px; }
.chr-gs {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(58, 46, 22, 0.8), rgba(26, 20, 10, 0.85));
  border: 1px solid rgba(232, 193, 90, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 240, 190, 0.12), 0 0 12px rgba(232, 193, 90, 0.15);
}
.chr-gs-label { font-size: 11px; color: rgba(240, 228, 196, 0.75); letter-spacing: 1px; }
.chr-gs-val { font-size: 16px; font-weight: 800; color: #ffe9ad; }
@media (min-width: 760px) {
  .chr-doll { grid-template-columns: 84px 1fr 84px; max-width: 560px; margin: 0 auto; }
  .chr-slot .item-cell { width: 64px; height: 64px; }
  .chr-center .ld-hero.portrait { width: 190px; height: 240px; }
}

/* ---------- v24 验收整改（UI_REVIEW_MOBILE）---------- */
/* G6：横向滚动容器统一「未完暗示」——右缘 28px 渐隐 + scroll-snap
   覆盖：市场分类 chips / 锻造配方横条 / 赛季 genesis-strip / 收藏室 hall-subtabs / 仓库 box-strip */
@media (max-width: 900px) {
  .recipe-list, .genesis-strip, .box-strip {
    scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
  }
  .recipe-list > *, .genesis-strip > *, .box-strip > * { scroll-snap-align: start; }
}
/* chips/页签在 ≤720px 才切成横滑（app.css），渐隐随之启用，避免可换行区间出现右缘假渐隐 */
@media (max-width: 720px) {
  .cat-chips, .tabs.hall-subtabs {
    scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
  }
  .cat-chips > *, .tabs.hall-subtabs > * { scroll-snap-align: start; }
}

/* W1/W3：破坏性操作降权——ghost 红描边按钮（回收 / 一键售出） */
.btn-danger-ghost {
  background: transparent;
  border: 1px solid rgba(255, 114, 89, 0.55);
  color: var(--danger-bright, #ff7259);
}
.btn-danger-ghost:hover {
  background: rgba(255, 114, 89, 0.1);
  border-color: rgba(255, 114, 89, 0.8);
}
.btn-danger-ghost:active { background: rgba(255, 114, 89, 0.18); }

/* G4：顶栏月钻充值 pill——手机端 ≥32px 高，月钻 pill 伪元素扩到 ≥44px 命中区 */
@media (max-width: 900px) {
  .topbar .currency { min-height: 32px; }
  .topbar .currency.yb { position: relative; }
  .topbar .currency.yb::after { content: ""; position: absolute; inset: -6px 0; }
}

/* E2：配装确认弹窗——滚动区底部留 96px，保险箱行/「装备价值」不再被 sticky 底栏压住 */
@media (max-width: 760px) {
  .modal-body .loadout { padding-bottom: 96px; }
  .modal-body .detail-actions {
    background: linear-gradient(180deg, transparent, var(--panel, #0d1626) 26%);
  }
}

/* ---------- 封测 CDK 门禁页（v25）：复用登录页月夜场景，卡片同级质感 ---------- */
.cdk-card { text-align: initial; }
.cdk-card .sub { margin-bottom: 16px; }
/* 「封测资格验证」徽标：鎏金描边胶囊，居中，与登录 CTA 同一金色体系 */
.cdk-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 0 auto 10px;
  padding: 5px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold, #e8c15a);
  border: 1px solid rgba(232, 193, 90, 0.45);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(232, 193, 90, 0.14), rgba(232, 193, 90, 0.04));
  box-shadow: 0 0 18px rgba(232, 193, 90, 0.18), inset 0 1px 0 rgba(255, 240, 190, 0.18);
  animation: fx-cdk-badge-glow 3.2s ease-in-out infinite;
}
.cdk-badge::before, .cdk-badge::after {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 193, 90, 0.6));
}
.cdk-badge::after { background: linear-gradient(270deg, transparent, rgba(232, 193, 90, 0.6)); }
@keyframes fx-cdk-badge-glow { 50% { box-shadow: 0 0 26px rgba(232, 193, 90, 0.32), inset 0 1px 0 rgba(255, 240, 190, 0.18); } }
.cdk-note {
  text-align: center;
  color: var(--text-dim, #9db1c7);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 18px;
  text-shadow: 0 0 12px rgba(127, 212, 193, 0.25);
}
/* 资格码输入：居中等宽大字 + 聚焦月辉 */
.cdk-input {
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.cdk-input::placeholder { letter-spacing: 0.16em; opacity: 0.35; }
.cdk-input:focus { box-shadow: 0 0 0 2px rgba(232, 193, 90, 0.15), 0 0 22px rgba(232, 193, 90, 0.2); }
.cdk-logout { margin-top: 10px; opacity: 0.75; }
.cdk-logout:hover { opacity: 1; }
/* 手机 390px：卡片贴边距更紧凑，输入字号不缩（避免 iOS 聚焦缩放） */
@media (max-width: 480px) {
  .cdk-card { padding: 26px 20px 22px; }
  .cdk-badge { font-size: 13px; padding: 4px 12px; }
  .cdk-note { font-size: 12px; margin-bottom: 14px; }
}

/* 后台 CDK 标签：明文列表弹窗（一行一个，等宽可全选） */
.cdk-code-box {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  white-space: pre;
}

/* ---------- 英文态防溢出 v26（v27 修订） ---------- */
/* 1) 全站页签行（.tabs）：英文标签更长时允许横滚。
   v27：渐隐遮罩只在真正溢出时启用（fx.js 置 data-hscroll="1"），
   否则不滚动的条最后一项右缘会被常驻遮罩"吃掉"（封测反馈：Boxes 页签发灰）；
   吸附从 proximity 改 mandatory，避免松手停在半个页签的位置 */
.tabs {
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs .tab { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; }
/* 2) 市场分类 chips 行同规则（若 v24 已加则此处幂等加固） */
.cat-chips {
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chips .btn { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; }
/* 溢出时才渐隐（且滚到底后由 data-hscroll="end" 关闭右缘渐隐） */
.tabs[data-hscroll="1"], .cat-chips[data-hscroll="1"] {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent);
}
/* 3) 主城建筑名牌：兜底钳制（配合 JS 英文短名双保险） */
.city-spot-name {
  max-width: 108px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .city-spot-name { max-width: 88px; }
}

/* ---------- 后台节能（v29）：切后台/锁屏暂停一切 CSS 动画（fx.js 挂类） ---------- */
html.fx-paused *, html.fx-paused *::before, html.fx-paused *::after {
  animation-play-state: paused !important;
}

/* ---------- 手机端功耗降配（v29 发烫治理）：触屏设备关掉常驻大面积动效 ---------- */
@media (pointer: coarse) {
  /* 全屏背景 KenBurns 漂移：整屏图层持续合成 + filter，是发热大户——手机端改静态 */
  .game-bg-art { animation: none; transform: scale(1.04); }
  /* 顶栏毛玻璃：下方萤火持续上飘时 backdrop-filter 每帧重算——手机端改实底 */
  .topbar { backdrop-filter: none !important; background: linear-gradient(180deg, rgba(8,12,20,0.96), rgba(8,12,20,0.88)) !important; }
  /* 萤火减量：只留前 6 颗（登录页留 10），其余隐藏 */
  .game-bg .ember:nth-child(n+9) { display: none; }
  .login-scene .ember:nth-child(n+13) { display: none; }
}

/* ---------- 降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  .screen.enter > *, .screen-hero::before, .login-scene .ls-art,
  .item-cell.rb-gold::after, .item-cell.rb-red::after,
  .sgrid-item.rb-gold::after, .sgrid-item.rb-red::after,
  .city-art, .city-spot-ico, .city-spot-art, .city-spot-glow, .city-ember, .city-fog::before, .city-fog::after,
  .login-card h1, .login-card .btn-gold.btn-lg, .game-bg-shade, .cdk-badge { animation: none !important; }
}

/* ---------- 邀请页 v2：紧凑邀请码/链接行 + 图标化里程碑奖励 ---------- */
/* 邀请码行与邀请链接行完全对齐：同宽同高同样式，两行排列 */
.ref-copy-rows { display: flex; flex-direction: column; gap: 8px; }
.ref-copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 10px 0 12px;
  background: rgba(150, 190, 235, 0.06);
  border: 1px solid rgba(150, 190, 235, 0.16);
  border-radius: 10px;
  min-width: 0;
}
.ref-copy-row .ref-label { flex: 0 0 78px; font-size: 12px; }
.ref-copy-row .ref-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
}
.ref-copy-row .btn { flex: 0 0 auto; }
/* 里程碑奖励小胶囊：货币/券/箱图标 + 数值（完整说明在 title 悬浮提示） */
.ref-rewards { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ref-reward {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(150, 190, 235, 0.07);
  border: 1px solid rgba(150, 190, 235, 0.14);
  font-size: 12px;
  white-space: nowrap;
}
.ref-reward .svgi, .ref-reward .cur-svg { line-height: 0; display: inline-flex; }

/* ---------- Polish5：主城设置角标加大 / PK 限时开放卡 + 门槛红字 ---------- */
/* 主城角落小入口做大一号 + 更亮的边框底色，齿轮图标清晰可辨 */
.city-mini {
  width: 44px;
  height: 44px;
  color: #ecdfae;
  border: 1px solid rgba(232, 193, 90, 0.55);
  background: linear-gradient(180deg, rgba(46, 62, 92, 0.94), rgba(14, 20, 33, 0.96));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 240, 190, 0.12);
}
/* PK 未开放倒计时卡 */
.pvp-closed-card { border-color: rgba(232, 193, 90, 0.28); }
.pvp-closed-card .panel-body { text-align: center; }
/* PK 入场门槛不足红字说明 */
.pvp-req-warn {
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  color: var(--danger-bright);
  background: rgba(255, 93, 82, 0.07);
  border: 1px solid rgba(255, 93, 82, 0.22);
  border-radius: 10px;
  padding: 8px 10px;
}
