:root {
  --bg: #0f172a;
  --panel: #1e293b;
  --ink: #111827;
  --accent: #fbbf24;
  --danger: #ef4444;
  --ok: #22c55e;
  --content-top: calc(10px + env(safe-area-inset-top, 0px));
}

.app-root {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #0f172a;
  color: #f8fafc;
  overscroll-behavior: none;
}

.screen {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
  padding: 12px 12px calc(18px + env(safe-area-inset-bottom, 0px)) 12px;
  padding-top: var(--content-top, calc(10px + env(safe-area-inset-top, 0px)));
}

.screen[hidden],
.modal[hidden],
[hidden] {
  display: none !important;
}

.desktop-only {
  display: none !important;
}

.mobile-only {
  display: block;
}

.icon-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 10px;
  border: 2.5px solid #111827;
  background: #fffbeb;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: transform 0.12s ease, background 0.12s ease;
}

.icon-btn:hover {
  background: #fef3c7;
}

.icon-btn:active {
  transform: translateY(1px);
}

.btn-kbd {
  font-size: 10px;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.14);
  border: 1px solid rgba(15, 23, 42, 0.25);
  border-radius: 5px;
  padding: 0 4px;
  line-height: 1.3;
}

kbd {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 5px;
  background: #0f172a;
  color: #fbbf24;
  border: 1px solid #475569;
}

.hud-mini-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 4px;
  object-fit: contain;
}

.gold-pill {
  display: inline-flex;
  align-items: center;
}

.sc-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-right: 10px;
  background: #0f172a;
  border: 2px solid #475569;
  border-radius: 10px;
  padding: 3px;
  flex-shrink: 0;
}

.ws-img {
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto 4px auto;
  object-fit: contain;
}

.up-img {
  display: block;
  width: 52px;
  height: 52px;
  margin: 0 auto 8px auto;
  object-fit: contain;
}

.btn-primary,
.btn-secondary,
.btn-outline,
.btn-ghost {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  text-align: center;
  border: 3px solid #111827;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn-primary {
  background: #fbbf24;
  color: #111827;
  box-shadow: 0 4px 0 #111827;
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.04);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #111827;
}

.btn-primary:disabled {
  background: #94a3b8;
  color: #1e293b;
  opacity: 0.85;
  cursor: not-allowed;
}

.btn-secondary {
  background: #38bdf8;
  color: #0f172a;
  box-shadow: 0 3px 0 #111827;
}

.btn-secondary:hover:not(:disabled) {
  filter: brightness(1.06);
}

.btn-outline {
  background: #ffffff;
  color: #111827;
  border: 2.5px solid #111827;
  font-size: 13px;
  padding: 9px 10px;
  box-shadow: 0 2px 0 #111827;
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.08);
  color: #475569;
  border: 2px dashed #94a3b8;
  font-size: 13px;
  font-weight: 800;
}

.modal .btn-ghost {
  color: #475569;
  border-color: #94a3b8;
}

/* ==================== 首页 ==================== */
.home-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background:
    radial-gradient(circle at 18% 12%, rgba(251, 191, 36, 0.12), transparent 42%),
    radial-gradient(circle at 82% 88%, rgba(56, 189, 248, 0.14), transparent 46%),
    linear-gradient(160deg, #0b1120 0%, #0f172a 55%, #172036 100%);
}

.home-topbar {
  width: 100%;
  max-width: 1120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.studio-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.92);
  border: 2px solid #475569;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.studio-back-link:hover {
  border-color: #fbbf24;
  color: #fbbf24;
  background: rgba(15, 23, 42, 0.98);
}

.studio-link-full {
  display: none;
}

.studio-link-short {
  display: inline;
}

.home-top-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.rank-top-btn {
  background: #fbbf24;
  color: #111827;
  padding: 0 10px;
}

.home-hero-shell {
  width: 100%;
  max-width: 440px;
  background: #fffbeb;
  color: #111827;
  border: 4px solid #111827;
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 8px 0 #111827;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: auto 0;
}

.home-hero-media {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.studio-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.studio-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: #0f172a;
  color: #fbbf24;
  font-size: 11px;
  font-weight: 900;
}

.version-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
}

.cover-frame {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid #111827;
  background: #0f172a;
}

.cover-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 175px;
  object-fit: cover;
}

.home-boss-progress {
  background: #0f172a;
  color: #f8fafc;
  border: 2.5px solid #111827;
  border-radius: 12px;
  padding: 8px 10px;
}

.hbp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 5px;
}

.hbp-title {
  color: #e2e8f0;
}

.hbp-count {
  color: #fbbf24;
}

.hbp-bar {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #1e293b;
  overflow: hidden;
  margin-bottom: 6px;
}

.hbp-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #fbbf24, #22c55e);
  transition: width 0.3s ease;
}

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

.hbp-pip {
  font-size: 9px;
  font-weight: 900;
  text-align: center;
  padding: 2px 0;
  border-radius: 5px;
  background: #1e293b;
  color: #64748b;
  border: 1px solid #334155;
}

.hbp-pip.lit {
  background: #14532d;
  color: #86efac;
  border-color: #22c55e;
}

.hbp-pip.killed {
  background: #78350f;
  color: #fde047;
  border-color: #fbbf24;
}

.home-hero-panel {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-kicker {
  display: inline-block;
  align-self: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
}

.home-title {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.home-sub {
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  line-height: 1.45;
}

.home-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.home-tag {
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
  background: #fde68a;
  border: 1.5px solid #d97706;
  border-radius: 999px;
  padding: 2px 8px;
}

.home-record {
  font-size: 12px;
  font-weight: 800;
  color: #92400e;
  background: #fef3c7;
  border: 2px solid #f59e0b;
  border-radius: 10px;
  padding: 6px 10px;
}

.home-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-sub-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pc-controls-bar {
  display: none;
}

.boot-status {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

/* ==================== 开场爽文漫画 ==================== */
.cutscene-view {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #090d16;
}

.cs-inner {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cs-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cs-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 999px;
  border: 2px solid #111827;
}

.cs-skip {
  background: rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.cs-stage {
  position: relative;
  width: 100%;
  border-radius: 18px;
  border: 4px solid #fbbf24;
  overflow: hidden;
  background: #111827;
}

.cs-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 44vh;
  object-fit: cover;
}

.fx-shake .cs-stage { animation: csShake 0.45s ease-out; }
.fx-awaken .cs-stage { animation: csAwaken 0.55s ease-out; }
.fx-zoom .cs-img { animation: csZoom 4.8s ease-out forwards; }

@keyframes csShake {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-8px, 5px); }
  40% { transform: translate(8px, -5px); }
  60% { transform: translate(-5px, 3px); }
  100% { transform: translate(0, 0); }
}

@keyframes csAwaken {
  0% { transform: scale(0.92); filter: brightness(1.8); }
  100% { transform: scale(1); filter: brightness(1); }
}

@keyframes csZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.cs-bubbles {
  position: absolute;
  top: 10px;
  right: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}

.cs-bubble {
  background: #fbbf24;
  color: #111827;
  border: 2px solid #111827;
  border-radius: 10px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 900;
  animation: popIn 0.35s ease-out both;
}

@keyframes popIn {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.cs-story-box {
  width: 100%;
  background: #1e293b;
  border: 3px solid #475569;
  border-radius: 16px;
  padding: 14px;
}

.cs-title {
  font-size: 20px;
  font-weight: 900;
  color: #fbbf24;
  margin-bottom: 6px;
}

.cs-line {
  font-size: 14px;
  line-height: 1.55;
  color: #e2e8f0;
}

.cs-bottom {
  width: 100%;
}

.cs-dots {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.cs-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #475569;
  margin: 0 5px;
}

.cs-dot.active {
  width: 24px;
  border-radius: 6px;
  background: #fbbf24;
}

/* ==================== 选角页面 ==================== */
.select-view {
  background: radial-gradient(circle at top, #1e293b 0%, #0b1120 75%);
}

.select-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.select-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.select-header h2 {
  font-size: 20px;
  font-weight: 900;
  color: #fbbf24;
}

.select-tip {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 700;
  margin-top: 2px;
}

.mini-btn {
  padding: 6px 12px;
  border-radius: 10px;
  border: 2px solid #475569;
  background: #1e293b;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.mini-btn:hover {
  border-color: #fbbf24;
}

/* 手机端默认 2 列触控卡片 */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 10px 8px;
  border-radius: 16px;
  border: 3px solid #334155;
  background: #1e293b;
  color: #f8fafc;
  cursor: pointer;
  gap: 6px;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.hero-card:hover {
  border-color: #64748b;
}

.hero-card.selected {
  border-color: #fbbf24;
  background: #272f45;
  box-shadow: 0 0 0 2px #fbbf24, 0 8px 20px rgba(251, 191, 36, 0.18);
}

.hero-avatar {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: #0f172a;
  border: 2px solid #475569;
  object-fit: contain;
}

.hero-info {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-name {
  font-size: 13.5px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
}

.hero-sub {
  display: block;
  font-size: 11px;
  color: #fbbf24;
  font-weight: 800;
  margin-top: 2px;
}

.hero-weapons-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin: 2px 0;
}

.hero-wp-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #0f172a;
  border: 1px solid #475569;
  border-radius: 7px;
  padding: 2px 5px;
  font-size: 10px;
  font-weight: 800;
  color: #e2e8f0;
}

.hero-wp-chip img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.hero-perk {
  font-size: 11px;
  color: #86efac;
  line-height: 1.35;
}

.hero-weak {
  font-size: 11px;
  color: #fca5a5;
  line-height: 1.35;
}

.select-footer {
  max-width: 520px;
  width: 100%;
  margin: 2px auto 0 auto;
}

/* ==================== 战斗竞技场 ==================== */
.arena-view {
  padding: 0;
  overflow: hidden;
  touch-action: none;
  background: #090d16;
}

.arena-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.hud-top {
  position: absolute;
  top: var(--content-top, 10px);
  right: 10px;
  left: 10px;
  max-width: 1360px;
  margin: 0 auto;
  pointer-events: none;
  z-index: 10;
}

.hud-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.hud-bars {
  flex: 1 1 0;
  min-width: 108px;
  max-width: 240px;
}

.bar-box {
  position: relative;
  height: 18px;
  border-radius: 8px;
  border: 2px solid #111827;
  background: rgba(15, 23, 42, 0.88);
  overflow: hidden;
  margin-bottom: 4px;
}

.bar-box.xp {
  height: 8px;
}

.bar-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  transition: width 0.12s linear;
}

.bar-fill.hp { background: linear-gradient(90deg, #dc2626, #ef4444); }
.bar-fill.xp { background: linear-gradient(90deg, #0ea5e9, #38bdf8); }

.bar-txt {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
  font-size: 11px;
  line-height: 14px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 1px 2px #000000;
}

.hud-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.hud-pill {
  background: rgba(15, 23, 42, 0.88);
  border: 1.5px solid #475569;
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 900;
}

.kills-pill {
  border-color: #38bdf8;
  color: #bae6fd;
}

.hud-center {
  flex: 0 0 auto;
  max-width: 128px;
  text-align: center;
  background: rgba(15, 23, 42, 0.86);
  border: 2.5px solid #fbbf24;
  border-radius: 12px;
  padding: 3px 8px;
}

.hud-wave {
  font-size: 10.5px;
  font-weight: 900;
  color: #fbbf24;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-timer {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.1;
}

.hud-timer.urgent {
  color: #f87171;
  animation: timerPulse 0.7s ease-in-out infinite;
}

@keyframes timerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.hud-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: auto;
  flex-shrink: 0;
}

.hud-boss-wrap {
  max-width: 360px;
  margin: 6px auto 0 auto;
  background: rgba(15, 23, 42, 0.92);
  border: 2.5px solid #ef4444;
  border-radius: 10px;
  padding: 4px 8px;
}

.hud-boss-name {
  font-size: 12px;
  font-weight: 900;
  color: #fca5a5;
  text-align: center;
  margin-bottom: 3px;
}

.bar-box.boss {
  height: 12px;
  margin-bottom: 0;
}

.bar-fill.boss {
  background: linear-gradient(90deg, #dc2626, #f97316);
}

.boss-banner {
  position: absolute;
  top: 40%;
  right: 16px;
  left: 16px;
  max-width: 480px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.96), rgba(69, 10, 10, 0.96));
  border: 4px solid #fbbf24;
  border-radius: 18px;
  padding: 14px 16px;
  text-align: center;
  z-index: 20;
  pointer-events: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  animation: bossBannerIn 0.35s cubic-bezier(0.2, 1.2, 0.4, 1) both;
}

@keyframes bossBannerIn {
  0% { transform: scale(0.75) translateY(-14px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.boss-banner-alert {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #fca5a5;
  margin-bottom: 3px;
}

.boss-banner-name {
  font-size: 19px;
  font-weight: 900;
  color: #fbbf24;
  margin-bottom: 4px;
}

.boss-banner-quote {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.tutorial-banner {
  position: absolute;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  right: 12px;
  max-width: 560px;
  margin: 0 auto;
  background: rgba(14, 116, 144, 0.94);
  color: #ffffff;
  border: 2.5px solid #38bdf8;
  border-radius: 14px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  z-index: 16;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

/* 桌面端底部 6 槽武器栏（默认隐藏，>= 900px 启用） */
.arena-weapon-bar {
  display: none;
}

.arena-bottom-hint {
  position: absolute;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  max-width: calc(100vw - 134px);
  font-size: 11px;
  font-weight: 800;
  color: rgba(248, 250, 252, 0.78);
  background: rgba(15, 23, 42, 0.7);
  padding: 5px 10px;
  border-radius: 999px;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-btn {
  position: absolute;
  right: 14px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  min-width: 102px;
  height: 50px;
  padding: 0 10px;
  border-radius: 16px;
  border: 3px solid #111827;
  background: #38bdf8;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 4px 0 #111827;
  z-index: 15;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.dash-icon,
.btn-mini-img {
  width: 22px;
  height: 22px;
  margin-right: 5px;
  object-fit: contain;
}

.btn-icon-flex {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-btn.cooling {
  background: #475569;
  color: #cbd5e1;
}

/* ==================== 顶部 1F~10F Boss 剪影通关路径条 ==================== */
.boss-roadmap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.88);
  border: 2px solid #475569;
  border-radius: 12px;
  padding: 4px 6px;
  margin: 0 auto 6px auto;
  pointer-events: auto;
}

.boss-roadmap.shop-rm {
  max-width: 920px;
  margin: 0 auto 10px auto;
}

.rm-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 9.5%;
  text-align: center;
}

.rm-avatar-wrap {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #475569;
  background: #1e293b;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rm-node.unlocked .rm-avatar-wrap {
  border-color: #22c55e;
  background: #052e16;
}

.rm-node.current .rm-avatar-wrap {
  border-color: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.85);
  transform: scale(1.14);
}

.rm-avatar {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.rm-avatar.silhouette {
  filter: brightness(0) contrast(1.25);
  opacity: 0.88;
}

.rm-crown {
  position: absolute;
  right: 0;
  bottom: -1px;
  font-size: 9px;
  line-height: 1;
  color: #fbbf24;
  text-shadow: 0 1px 2px #000000;
}

.rm-floor {
  font-size: 9px;
  font-weight: 900;
  color: #94a3b8;
  margin-top: 2px;
}

.rm-node.unlocked .rm-floor { color: #86efac; }
.rm-node.current .rm-floor { color: #fbbf24; }

/* ==================== 电梯商店 ==================== */
.shop-view {
  background: radial-gradient(circle at top, #1e293b 0%, #0b1120 80%);
}

.shop-shell {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
}

.shop-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.shop-header h2 {
  font-size: 17px;
  font-weight: 900;
  color: #fbbf24;
}

.shop-head-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shop-gold {
  display: inline-flex;
  align-items: center;
  background: #fef3c7;
  color: #92400e;
  border: 2px solid #f59e0b;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 900;
}

.shop-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.ss-pill {
  font-size: 11px;
  font-weight: 800;
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  padding: 2px 7px;
  border-radius: 6px;
}

.ss-pill.pos {
  border-color: #22c55e;
  color: #86efac;
}

.shop-section-title {
  margin: 10px 0 6px 0;
  font-size: 13px;
  font-weight: 900;
  color: #cbd5e1;
}

.shop-offers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.shop-card {
  background: #1e293b;
  border: 3px solid #475569;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.shop-card.bought {
  opacity: 0.45;
}

.sc-top {
  display: flex;
  align-items: center;
}

.sc-meta {
  flex: 1;
  min-width: 0;
}

.sc-name {
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 2px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.sc-stats {
  font-size: 11px;
  font-weight: 800;
  color: #93c5fd;
  margin-bottom: 2px;
}

.tier-pill {
  display: inline-block;
  font-size: 10.5px;
  color: #0f172a;
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 900;
}

.merge-badge {
  display: inline-block;
  font-size: 10.5px;
  background: #22c55e;
  color: #052e16;
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 900;
}

.sc-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
}

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

.btn-lock,
.btn-buy {
  padding: 6px 12px;
  border-radius: 10px;
  border: 2px solid #111827;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.btn-lock {
  background: #334155;
  color: #f8fafc;
}

.btn-lock.active {
  background: #f59e0b;
  color: #111827;
}

.btn-buy {
  background: #fbbf24;
  color: #111827;
}

.shop-weapons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.weapon-slot {
  background: #1e293b;
  border: 2.5px solid #475569;
  border-radius: 12px;
  padding: 8px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 108px;
}

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

.ws-name {
  font-size: 11.5px;
  font-weight: 900;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-tier {
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 4px;
}

.ws-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.ws-merge {
  background: #22c55e;
  color: #052e16;
  border: 1.5px solid #111827;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 10.5px;
  font-weight: 900;
  cursor: pointer;
}

.ws-sell {
  background: #334155;
  color: #fde047;
  border: 1px solid #64748b;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
}

.ws-keep { font-size: 11px; color: #94a3b8; }
.ws-empty { font-size: 12px; color: #94a3b8; padding: 14px 0; }

.shop-synergies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.syn-chip {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  background: #1e293b;
  color: #94a3b8;
  border: 1.5px solid #334155;
}

.syn-chip.active {
  background: #14532d;
  color: #86efac;
  border-color: #22c55e;
}

.shop-footer {
  display: flex;
  gap: 10px;
}

/* ==================== 弹窗层 ==================== */
.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  background: rgba(2, 6, 23, 0.84);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow-y: auto;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  max-height: 90dvh;
  overflow-y: auto;
  background: #fffbeb;
  color: #111827;
  border: 4px solid #111827;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 10px 0 #111827;
}

.modal-tag {
  display: inline-block;
  background: #ef4444;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.modal-title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 12px;
  line-height: 1.45;
}

/* 升级/宝箱抽卡 */
.upgrade-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.chest-grid {
  grid-template-columns: 1fr;
}

.upgrade-card {
  width: 100%;
  background: #ffffff;
  border: 3px solid #111827;
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.upgrade-card:hover {
  background: #fef9c3;
  transform: translateY(-2px);
  box-shadow: 0 4px 0 #111827;
}

.up-name { font-size: 14px; font-weight: 900; color: #111827; margin-bottom: 4px; }
.up-desc { font-size: 12px; font-weight: 700; color: #15803d; line-height: 1.35; }

/* 暂停与设置弹窗 */
.pause-columns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.pause-panel {
  background: #ffffff;
  border: 2.5px solid #111827;
  border-radius: 14px;
  padding: 12px;
}

.pause-panel-title {
  font-size: 14px;
  font-weight: 900;
  color: #111827;
  margin-bottom: 10px;
}

.setting-row {
  margin-bottom: 10px;
}

.setting-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 4px;
}

.setting-val {
  color: #b45309;
  font-weight: 900;
}

.vol-slider {
  width: 100%;
  accent-color: #f59e0b;
  cursor: pointer;
}

.setting-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.toggle-pill {
  flex: 1 1 110px;
  padding: 7px 8px;
  border-radius: 10px;
  border: 2px solid #111827;
  background: #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.toggle-pill.active {
  background: #dcfce7;
  color: #166534;
  border-color: #16a34a;
}

.controls-guide-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #334155;
  line-height: 1.45;
}

.pause-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Web 原生除颤续命 */
.revive-card {
  border-color: #ef4444;
  box-shadow: 0 8px 0 #111827, 0 0 28px rgba(239, 68, 68, 0.35);
}

.revive-prog-wrap {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  border: 2px solid #111827;
  overflow: hidden;
  margin-bottom: 8px;
}

.revive-prog-fill {
  height: 100%;
  width: 65%;
  background: linear-gradient(90deg, #f97316, #ef4444);
  transition: width 0.25s ease;
}

.revive-perk {
  background: #fef3c7;
  border: 2.5px solid #f59e0b;
  border-radius: 12px;
  padding: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #78350f;
  margin-bottom: 10px;
}

.revive-guide-box {
  background: #ffffff;
  border: 2.5px solid #111827;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
}

.revive-ecg-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.ecg-heart {
  font-size: 20px;
  animation: heartBeat 0.65s ease-in-out infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.24); }
}

.ecg-track {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  border: 1.5px solid #111827;
  overflow: hidden;
}

.ecg-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ef4444, #22c55e);
  transition: width 0.08s linear;
}

.ecg-status {
  font-size: 11.5px;
  font-weight: 900;
  color: #dc2626;
}

.revive-follow-btn.is-locked {
  background: #cbd5e1;
  color: #334155;
  box-shadow: 0 3px 0 #334155;
}

.revive-follow-btn.is-ready {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  box-shadow: 0 4px 0 #111827;
  animation: reviveReadyPulse 1.1s ease-in-out infinite;
}

@keyframes reviveReadyPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.revive-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 属性面板 */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin-bottom: 12px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
}

/* 战报结算弹窗 */
.result-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.poster-img {
  display: block;
  width: 100%;
  max-height: 38vh;
  object-fit: contain;
  border-radius: 12px;
  border: 3px solid #111827;
  background: #0f172a;
}

.copy-wrap {
  background: #f1f5f9;
  border: 2px solid #94a3b8;
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 10px;
}

.copy-tip { font-size: 11px; color: #475569; margin-bottom: 4px; }
.copy-box {
  font-size: 12px;
  color: #0f172a;
  user-select: text;
  word-break: break-all;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-bottom-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.res-score-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  border: 2px solid #f59e0b;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 6px;
}

/* 排行榜弹窗 */
.rank-card {
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
}

.rank-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.nickname-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 2px solid #111827;
  border-radius: 12px;
  padding: 6px 8px;
  margin-bottom: 8px;
}

.nick-label {
  font-size: 11.5px;
  font-weight: 900;
  color: #334155;
  white-space: nowrap;
}

.nick-input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
  background: #f8fafc;
  user-select: text;
}

.nick-save-btn {
  padding: 5px 10px;
  border-radius: 8px;
  border: 2px solid #111827;
  background: #fbbf24;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.rank-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.rank-tab {
  flex: 1;
  padding: 7px 6px;
  border-radius: 10px;
  border: 2px solid #111827;
  background: #e2e8f0;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.rank-tab.active {
  background: #fbbf24;
  color: #111827;
}

.rank-sub-tip {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 5px 8px;
  margin-bottom: 8px;
}

.rank-list {
  max-height: 36dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  margin-bottom: 8px;
  padding: 4px 6px;
}

.rank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 6px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
  gap: 6px;
}

.rank-row:last-child { border-bottom: none; }
.rank-row.me { background: #fef3c7; border-radius: 8px; }

.rank-no {
  width: 34px;
  font-weight: 900;
  color: #475569;
  flex-shrink: 0;
}
.rank-no.top1 { color: #d97706; }
.rank-no.top2 { color: #64748b; }
.rank-no.top3 { color: #b45309; }

.rank-nick {
  flex: 1;
  min-width: 0;
  font-weight: 800;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-meta {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  flex-shrink: 0;
}

.rank-val {
  font-weight: 900;
  color: #dc2626;
  flex-shrink: 0;
}

.rank-empty {
  text-align: center;
  padding: 24px 10px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

.rank-my-summary {
  background: #1e293b;
  color: #fbbf24;
  border: 2px solid #111827;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 10px;
  text-align: center;
}

.toast {
  position: fixed;
  bottom: 126px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(15, 23, 42, 0.95);
  color: #fbbf24;
  border: 2px solid #fbbf24;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  z-index: 95;
  transition: opacity 0.2s, transform 0.2s;
  max-width: 88vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==================== PC 大屏旗舰双端适配 (>= 900px) ==================== */
@media (min-width: 900px) {
  :root {
    --content-top: 14px;
  }

  .desktop-only {
    display: inline-flex !important;
  }

  div.desktop-only,
  .shop-sidebar-card.desktop-only {
    display: block !important;
  }

  .mobile-only {
    display: none !important;
  }

  .studio-link-full {
    display: inline;
  }

  .studio-link-short {
    display: none;
  }

  .screen {
    padding: 16px 28px 24px 28px;
  }

  .arena-view {
    padding: 0;
  }

  .arena-canvas {
    cursor: crosshair;
  }

  /* 桌面首页双栏 Hero */
  .home-view {
    justify-content: center;
    padding: 16px 32px;
  }

  .home-topbar {
    margin-bottom: 14px;
  }

  .home-hero-shell {
    max-width: 1120px;
    padding: 24px 28px;
    border-radius: 24px;
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    margin: 0;
  }

  .cover-frame {
    box-shadow: 0 8px 0 #111827;
  }

  .cover-img {
    max-height: 470px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }

  .home-hero-panel {
    text-align: left;
    gap: 12px;
  }

  .home-kicker {
    align-self: flex-start;
    font-size: 12px;
  }

  .home-title {
    font-size: 46px;
  }

  .home-sub {
    font-size: 15px;
  }

  .home-tags {
    justify-content: flex-start;
    gap: 8px;
  }

  .home-tag {
    font-size: 12px;
    padding: 4px 10px;
  }

  .home-record {
    font-size: 13px;
    padding: 8px 12px;
  }

  .home-actions {
    gap: 10px;
  }

  .pc-controls-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
  }

  .pc-key-chip {
    font-size: 11.5px;
    font-weight: 800;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 6px;
  }

  /* 桌面开场漫画 */
  .cs-inner {
    max-width: 820px;
  }

  .cs-img {
    max-height: 52vh;
  }

  /* 桌面选人：4 列宽卡片 */
  .select-view {
    display: flex;
    align-items: center;
  }

  .select-header h2 {
    font-size: 26px;
  }

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

  .hero-card {
    padding: 16px 14px;
    gap: 10px;
  }

  .hero-avatar {
    width: 112px;
    height: 112px;
  }

  .hero-name {
    font-size: 16px;
  }

  .hero-sub {
    font-size: 12px;
  }

  .hero-perk,
  .hero-weak {
    font-size: 12px;
  }

  /* 桌面主战斗 HUD & 底部 6 槽武器栏 */
  .hud-top {
    top: 12px;
    left: 24px;
    right: 24px;
  }

  .boss-roadmap {
    max-width: 820px;
    padding: 5px 10px;
  }

  .rm-avatar-wrap {
    width: 32px;
    height: 32px;
  }

  .rm-avatar {
    width: 28px;
    height: 28px;
  }

  .rm-floor {
    font-size: 10px;
  }

  .hud-bars {
    max-width: 280px;
  }

  .hud-center {
    max-width: 280px;
    min-width: 200px;
    padding: 5px 16px;
  }

  .hud-wave {
    font-size: 13px;
  }

  .hud-timer {
    font-size: 22px;
  }

  .hud-tools {
    gap: 8px;
  }

  .icon-btn {
    height: 38px;
    min-width: 40px;
    padding: 0 11px;
    font-size: 13px;
  }

  .tutorial-banner {
    bottom: 108px;
    font-size: 13px;
  }

  .arena-weapon-bar {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    max-width: calc(100vw - 32px);
  }

  .awb-main {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.90);
    border: 2.5px solid #475569;
    border-radius: 14px;
    padding: 6px 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  }

  .awb-slots {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .awb-slot {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    border: 2.5px solid #475569;
    background: #1e293b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.1s ease;
  }

  .awb-slot.empty {
    border-style: dashed;
    opacity: 0.45;
  }

  .awb-slot.firing {
    transform: scale(1.08);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.65);
  }

  .awb-slot img {
    width: 34px;
    height: 34px;
    object-fit: contain;
  }

  .awb-tier-badge {
    position: absolute;
    bottom: 1px;
    right: 2px;
    font-size: 9px;
    font-weight: 900;
    padding: 0 4px;
    border-radius: 4px;
    color: #0f172a;
    line-height: 1.3;
  }

  .awb-count-badge {
    position: absolute;
    top: 1px;
    left: 2px;
    font-size: 9px;
    font-weight: 900;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.85);
    border-radius: 4px;
    padding: 0 3px;
  }

  .awb-dash-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #0ea5e9;
    color: #0f172a;
    border: 2px solid #111827;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
  }

  .awb-dash-pill.cooling {
    background: #334155;
    color: #cbd5e1;
  }

  .awb-dash-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
  }

  .awb-keys {
    font-size: 11px;
    font-weight: 800;
    color: rgba(226, 232, 240, 0.82);
    background: rgba(15, 23, 42, 0.72);
    padding: 2px 12px;
    border-radius: 999px;
    white-space: nowrap;
  }

  /* 桌面双栏商店 */
  .shop-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
  }

  .shop-offers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .shop-weapons {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .shop-sidebar {
    position: sticky;
    top: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .shop-sidebar-card {
    background: #1e293b;
    border: 3px solid #475569;
    border-radius: 16px;
    padding: 12px 14px;
  }

  .shop-sidebar-title {
    font-size: 14px;
    font-weight: 900;
    color: #fbbf24;
    margin-bottom: 10px;
  }

  .shop-live-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .sls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 5px 8px;
    font-size: 12px;
    transition: border-color 0.2s, background 0.2s;
  }

  .sls-row span {
    color: #94a3b8;
    font-weight: 700;
  }

  .sls-row strong {
    color: #f8fafc;
    font-weight: 900;
  }

  .sls-row.pos strong {
    color: #86efac;
  }

  .sls-row.bump-up {
    border-color: #22c55e;
    background: rgba(20, 83, 45, 0.55);
  }

  .sls-row.bump-down {
    border-color: #ef4444;
    background: rgba(127, 29, 29, 0.55);
  }

  .shop-footer {
    flex-direction: column;
  }

  /* 桌面弹窗宽大面板 */
  .modal-wide-cards {
    max-width: 820px;
    padding: 22px;
  }

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

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

  .modal-pause-card {
    max-width: 780px;
    padding: 22px;
  }

  .pause-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .pause-actions {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 10px;
  }

  .modal-stats-card {
    max-width: 720px;
    padding: 22px;
  }

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

  .revive-card {
    max-width: 640px;
    padding: 22px;
  }

  .rank-card {
    max-width: 760px;
    padding: 22px;
  }

  .modal-result-card {
    max-width: 840px;
    padding: 22px;
  }

  .result-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
  }

  .poster-img {
    max-height: 64vh;
  }
}

@media (min-width: 1180px) {
  .shop-offers {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .shop-card .sc-top {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .shop-card .sc-img {
    margin-right: 0;
    width: 58px;
    height: 58px;
  }

  .shop-card .sc-name {
    justify-content: center;
  }

  .shop-card .sc-actions {
    justify-content: center;
  }
}
