:root {
  --bg-page: radial-gradient(120% 120% at 20% 0%, #1e1b4b 0%, #090f26 38%, #040818 100%);
  --bg-screen: linear-gradient(185deg, #070b1c 0%, #111a3a 100%);
  --bg-top: linear-gradient(190deg, #080b1a 0%, #1b1450 60%, #09213d 100%);
  --panel: #0a1022;
  --panel-2: #0f172a;
  --stroke: #263655;
  --text-main: #f8fafc;
  --text-sub: #93c5fd;
  --text-muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --green: #10b981;
  --warning: #f59e0b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
}

body {
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
}

button,
input {
  font-family: inherit;
}

.workspace {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.phone-shell {
  width: min(402px, calc(100vw - 20px));
  height: min(874px, calc(100vh - 20px));
  min-height: 500px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid #1f2a48;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  background: var(--bg-screen);
  position: relative;
  display: flex;
  flex-direction: column;
}

.screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-screen);
  overflow: hidden;
  position: relative;
}

.screen-top {
  min-height: 68px;
  background: var(--bg-top);
  padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(38, 54, 85, 0.7);
}

.screen-top.compact {
  min-height: 52px;
  padding: 8px 12px 6px;
}

.top-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  margin: 0;
}

.top-sub {
  margin-top: 4px;
  color: var(--text-sub);
  font-size: 11px;
  font-weight: 500;
}

.main-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 14px;
  scrollbar-width: thin;
  scrollbar-color: #1d4ed8 transparent;
}

.main-scroll::-webkit-scrollbar {
  width: 6px;
}

.main-scroll::-webkit-scrollbar-thumb {
  background: #1d4ed8;
  border-radius: 8px;
}

.panel {
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--stroke);
}

.login-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.login-hero {
  padding: 18px 16px 12px;
  background: var(--bg-top);
  border-bottom: 1px solid var(--stroke);
}

.login-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-card {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-label {
  font-size: 12px;
  color: #cbd5e1;
}

.form-input {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #050c1f;
  color: #e2e8f0;
  padding: 0 10px;
  font-size: 14px;
}

.btn {
  border: 0;
  border-radius: 12px;
  color: #ecfdf5;
  font-size: 13px;
  font-weight: 700;
  height: 36px;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-login {
  background: linear-gradient(90deg, #22d3ee 0%, #2563eb 100%);
}

.btn-ghost {
  background: #0f172a;
  border: 1px solid #334155;
  color: #e2e8f0;
}

.note {
  padding: 10px 12px;
  border-radius: 10px;
  background: #0a1022;
  border: 1px solid #263655;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.4;
}

.battle-head-row {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.coin-chip {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: #fbbf24;
  font-weight: 800;
  font-size: 16px;
}

.coin-chip .icon {
  font-size: 18px;
}

.stage-wrap {
  flex: 1;
  height: auto;
  border-radius: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 0;
  position: relative;
  overflow: visible;
}

.stage-btn,
.stage-tag {
  border: 0;
  border-radius: 8px;
  height: 26px;
  padding: 0 10px;
  background: rgba(15, 23, 42, 0.6);
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.stage-tag-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: visible;
}

.stage-tag-wrap.guide-target {
  z-index: 3;
}

.stage-btn {
  width: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 41, 59, 0.6);
  color: #e2e8f0;
}

.stage-tag.unlocked {
  background: rgba(30, 58, 95, 0.8);
  color: #93c5fd;
  border: 1px solid #334155;
}

.stage-tag.unlocked.new-unlocked {
  animation: newUnlockPulse 1.5s ease-in-out infinite;
  border-color: #22d3ee;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.5);
}

.unlock-guide-arrow {
  position: absolute;
  left: 50%;
  top: -19px;
  transform: translateX(-50%);
  font-size: 16px;
  line-height: 1;
  color: #fef08a;
  text-shadow: 0 0 8px rgba(250, 204, 21, 0.8), 0 0 16px rgba(251, 146, 60, 0.7);
  pointer-events: none;
  animation: guideArrowMove 0.8s ease-in-out infinite alternate;
}

@keyframes newUnlockPulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.5);
    border-color: #22d3ee;
  }
  50% {
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.8);
    border-color: #67e8f9;
    background: rgba(34, 211, 238, 0.3);
  }
}

@keyframes guideArrowMove {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  100% {
    transform: translateX(-50%) translateY(7px);
  }
}

.unlock-fx-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 56%;
  pointer-events: none;
  z-index: 7;
  overflow: hidden;
  background:
    radial-gradient(72% 62% at 50% 20%, rgba(14, 165, 233, 0.35) 0%, rgba(34, 211, 238, 0.15) 35%, rgba(8, 16, 34, 0) 82%),
    linear-gradient(180deg, rgba(6, 10, 24, 0.84) 0%, rgba(6, 10, 24, 0.4) 52%, rgba(6, 10, 24, 0) 100%);
  animation: unlockFxFade 1.9s ease-out forwards;
}

.unlock-fx-burst {
  position: absolute;
  left: 50%;
  top: 36%;
  width: 0;
  height: 0;
}

.unlock-fx-particle {
  position: absolute;
  left: -2px;
  top: -2px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffffff 0%, #67e8f9 45%, rgba(34, 211, 238, 0) 100%);
  box-shadow: 0 0 10px rgba(125, 211, 252, 0.9);
  transform: rotate(var(--unlock-angle)) translateX(0);
  opacity: 0;
  animation: unlockParticleFly 0.8s ease-out var(--unlock-delay) forwards;
}

.unlock-fx-ring {
  position: absolute;
  left: 50%;
  top: 35%;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(125, 211, 252, 0.85);
  opacity: 0;
}

.unlock-fx-ring.ring-a {
  animation: unlockRingExpand 0.95s ease-out 0.02s forwards;
}

.unlock-fx-ring.ring-b {
  border-color: rgba(251, 191, 36, 0.75);
  animation: unlockRingExpand 1.05s ease-out 0.16s forwards;
}

.unlock-fx-ring.ring-c {
  border-color: rgba(59, 130, 246, 0.72);
  animation: unlockRingExpand 1.15s ease-out 0.3s forwards;
}

.unlock-fx-banner {
  position: absolute;
  left: 50%;
  top: 24%;
  transform: translateX(-50%);
  min-width: 220px;
  text-align: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(103, 232, 249, 0.75);
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.95) 0%, rgba(30, 58, 138, 0.82) 55%, rgba(56, 189, 248, 0.52) 100%);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.45), inset 0 0 16px rgba(255, 255, 255, 0.08);
  animation: unlockBannerPop 0.72s cubic-bezier(0.2, 0.9, 0.25, 1.15) 0.06s both;
}

.unlock-fx-title {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 1px;
  color: #ecfeff;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.9), 0 0 22px rgba(59, 130, 246, 0.72);
}

.unlock-fx-sub {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #fef9c3;
  text-shadow: 0 0 6px rgba(234, 179, 8, 0.55);
}

@keyframes unlockFxFade {
  0% {
    opacity: 0;
  }
  14% {
    opacity: 1;
  }
  76% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes unlockParticleFly {
  0% {
    opacity: 0;
    transform: rotate(var(--unlock-angle)) translateX(0) scale(0.5);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(var(--unlock-angle)) translateX(116px) scale(1.3);
  }
}

@keyframes unlockRingExpand {
  0% {
    opacity: 0.86;
    transform: translate(-50%, -50%) scale(0.2);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(11.4);
  }
}

@keyframes unlockBannerPop {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.62);
  }
  60% {
    opacity: 1;
    transform: translateX(-50%) scale(1.06);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

.stage-tag.active {
  background: linear-gradient(90deg, #22d3ee 0%, #2563eb 100%);
  color: #f8fafc;
  border: 0;
}

.stage-tag.locked {
  opacity: 0.5;
  color: #475569;
}

.stage-tag.vip {
  color: #fbbf24;
}

.battle-card {
  background: linear-gradient(180deg, #070b1c 0%, #1e1b4b 50%, #082f49 100%);
  border-radius: 20px;
  border: 1px solid #334155;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.battle-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
}

.battle-label {
  color: #e0e7ff;
}

.battle-hp-text {
  color: #67e8f9;
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 8px;
  background: #111827;
  border: 1px solid #1f2937;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #22d3ee 0%, #38bdf8 100%);
}

.arena-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  position: relative;
}

.team-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 3;
}

.hero-mini {
  position: relative;
  height: 62px;
  border-radius: 10px;
  background: #0a1022;
  border: 1px solid #334155;
  display: flex;
  overflow: hidden;
}

.hero-mini.recruitable {
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.45), 0 0 12px rgba(245, 158, 11, 0.28);
}

.hero-recruit-tip {
  position: static;
  min-width: 52px;
  height: 16px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f97316 0%, #f59e0b 100%);
  color: #fff7ed;
  font-size: 9px;
  line-height: 16px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.hero-recruit-tip:active {
  transform: translateY(1px);
}

.hero-mini-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
}

.hero-mini.mage {
  border-color: #3b82f6;
}

.hero-mini.mage.casting {
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.38), 0 0 16px rgba(59, 130, 246, 0.55);
}

.hero-mini.warrior {
  border-color: #22d3ee;
  transform-origin: right center;
  will-change: transform;
}

.hero-mini.warrior.attacking {
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.34), 0 0 14px rgba(6, 182, 212, 0.55);
  animation: warriorLunge 0.32s cubic-bezier(0.16, 0.84, 0.24, 1.05) 1;
}

.hero-mini.doctor {
  border-color: #22c55e;
}

.hero-mini.doctor.healing {
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.34), 0 0 14px rgba(34, 197, 94, 0.55);
}

.hero-mini.locked {
  border-color: #475569;
  opacity: 0.7;
}

.hero-mini-portrait.locked {
  filter: grayscale(100%) brightness(0.5);
}

.hero-mini-info {
  flex: 1;
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.hero-mini-name {
  color: #e2e8f0;
  font-size: 8px;
  font-weight: 700;
}

.hero-mini-sub {
  color: #93c5fd;
  font-size: 8px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-mini-btn {
  width: 42px;
  height: 16px;
  border-radius: 8px;
  border: 0;
  color: #ecfeff;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.hero-mini-btn.mage,
.hero-mini-btn.warrior {
  background: linear-gradient(90deg, #22d3ee, #3b82f6);
}

.hero-mini-btn.doctor {
  background: linear-gradient(90deg, #22c55e, #14b8a6);
}

.hero-mini-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.hero-mini-portrait {
  width: 54px;
  background-size: cover;
  background-position: center;
}

.hero-mini-portrait.casting {
  animation: mageCastPulse 0.45s ease-out 2;
}

.hero-mini-portrait.healing {
  animation: doctorHealPulse 0.5s ease-out 2;
}

.hero-mini-portrait.attacking {
  animation: warriorAttackPulse 0.32s cubic-bezier(0.16, 0.84, 0.24, 1.05) 1;
}

.warrior-portrait-wrap {
  width: 54px;
  display: flex;
  background: #020617;
}

.stamina-track-v {
  width: 4px;
  margin: 4px 3px;
  border-radius: 2px;
  border: 1px solid #0f766e;
  background: #042f2e;
  display: flex;
  align-items: flex-end;
}

.stamina-fill-v {
  width: 100%;
  background: linear-gradient(180deg, #22d3ee 0%, #0ea5e9 100%);
  border-radius: 2px;
}

/* 战士休息状态 */
.hero-mini.warrior.resting {
  opacity: 0.6;
}

.hero-mini.warrior.resting .hero-mini-sub {
  color: #f59e0b;
  animation: pulse-rest 1.5s ease-in-out infinite;
}

.hero-mini-portrait.resting {
  filter: grayscale(0.5);
}

@keyframes pulse-rest {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes mageCastPulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(59, 130, 246, 0));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.9));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(59, 130, 246, 0));
  }
}

@keyframes doctorHealPulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(34, 197, 94, 0));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.85));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(34, 197, 94, 0));
  }
}

@keyframes warriorAttackPulse {
  0% {
    transform: translateX(0) rotate(0deg) scale(1);
  }
  38% {
    transform: translateX(10px) rotate(-6deg) scale(1.06);
  }
  58% {
    transform: translateX(8px) rotate(2deg) scale(1.03);
  }
  100% {
    transform: translateX(0) rotate(0deg) scale(1);
  }
}

@keyframes warriorLunge {
  0% {
    transform: translateX(0) scale(1);
  }
  42% {
    transform: translateX(16px) scale(1.02);
  }
  62% {
    transform: translateX(13px) scale(1.01);
  }
  100% {
    transform: translateX(0) scale(1);
  }
}

.battle-fx-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.spell-orb-fx {
  position: absolute;
  width: 18px;
  height: 18px;
  left: var(--orb-start-x, 0px);
  top: var(--orb-start-y, 0px);
  margin-left: -9px;
  margin-top: -9px;
  opacity: 0;
  animation: spellOrbFly var(--fx-duration, 420ms) linear forwards;
  animation-delay: var(--fx-delay, 0ms);
}

.spell-orb-core,
.spell-orb-glow {
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.spell-orb-core {
  background: radial-gradient(circle at 35% 35%, #dbeafe 0%, #93c5fd 28%, #3b82f6 62%, rgba(30, 64, 175, 0) 100%);
  box-shadow: 0 0 18px rgba(96, 165, 250, 0.9), 0 0 6px rgba(191, 219, 254, 0.95);
}

.spell-orb-glow {
  transform: scale(1.7);
  background: radial-gradient(circle, rgba(191, 219, 254, 0.52) 0%, rgba(96, 165, 250, 0.18) 58%, rgba(59, 130, 246, 0) 100%);
}

.battle-fx-item {
  position: absolute;
  min-width: 84px;
  text-align: center;
  transform: translateY(0);
  opacity: 0;
  animation-name: battleFxFloat;
  animation-duration: var(--fx-duration, 1100ms);
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
  animation-delay: var(--fx-delay, 0ms);
}

@keyframes spellOrbFly {
  0% {
    left: var(--orb-start-x, 0px);
    top: var(--orb-start-y, 0px);
    opacity: 0;
    transform: scale(0.56);
  }
  12% {
    opacity: 1;
    transform: scale(1.02);
  }
  78% {
    opacity: 1;
    transform: scale(0.92);
  }
  100% {
    left: var(--orb-end-x, 0px);
    top: var(--orb-end-y, 0px);
    opacity: 0;
    transform: scale(0.38);
  }
}

.battle-fx-item.target-enemy {
  right: 14px;
  top: calc(40px + var(--fx-offset, 0px));
}

.battle-fx-item.target-warrior {
  left: 72px;
  top: calc(52px + var(--fx-offset, 0px));
}

.battle-fx-item .fx-value {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.4px;
  line-height: 1;
  text-shadow: 0 0 8px rgba(2, 6, 23, 0.95), 0 1px 2px rgba(2, 6, 23, 0.9);
}

.battle-fx-item .fx-label {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(2, 6, 23, 0.9);
}

.battle-fx-item.type-mage-cast .fx-value {
  color: #60a5fa;
}

.battle-fx-item.type-mage-cast .fx-label {
  color: #bfdbfe;
}

.battle-fx-item.type-doctor-heal .fx-value,
.battle-fx-item.type-warrior-recover .fx-value {
  color: #4ade80;
}

.battle-fx-item.type-doctor-heal .fx-label,
.battle-fx-item.type-warrior-recover .fx-label {
  color: #bbf7d0;
}

.battle-fx-item.type-warrior-attack .fx-value {
  color: #22d3ee;
}

.battle-fx-item.type-warrior-attack .fx-label {
  color: #a5f3fc;
}

.battle-fx-item.type-warrior-rest .fx-value {
  color: #fbbf24;
}

.battle-fx-item.type-warrior-rest .fx-label {
  color: #fde68a;
}

@keyframes battleFxFloat {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.9);
  }
  15% {
    opacity: 1;
    transform: translateY(0) scale(1.03);
  }
  75% {
    opacity: 1;
    transform: translateY(-18px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-30px) scale(0.97);
  }
}

.enemy-right {
  width: 142px;
  border-radius: 10px;
  background: #0a1022;
  border: 1px solid #334155;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.enemy-portrait {
  flex: 1;
  min-height: 86px;
  background-size: cover;
  background-position: center;
  transform-origin: 52% 68%;
}

.enemy-right.enemy-defeated {
  border-color: #f97316;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.65), 0 0 14px rgba(249, 115, 22, 0.45);
}

.enemy-portrait.defeated {
  animation: enemyDefeatCollapse var(--enemy-defeat-duration, 1040ms) linear forwards;
  animation-delay: var(--enemy-defeat-delay, 0ms);
  filter: saturate(1.15);
}

.enemy-portrait.warrior-hit {
  animation: enemyHitShake 0.22s cubic-bezier(0.2, 0.9, 0.2, 1) 1;
}

.enemy-portrait.mage-hit {
  animation: enemyMageHitImpact 0.28s cubic-bezier(0.18, 0.82, 0.26, 1.02) 1;
}

@keyframes enemyDefeatCollapse {
  0% {
    transform: scale(1) rotate(0deg);
    filter: saturate(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(0.1) rotate(680deg);
    filter: saturate(0.45) blur(0.4px);
    opacity: 0;
  }
}

@keyframes enemyHitShake {
  0% {
    transform: translateX(0) scale(1);
  }
  16% {
    transform: translateX(-8px) scale(0.985);
  }
  34% {
    transform: translateX(5px) scale(1);
  }
  52% {
    transform: translateX(-4px) scale(0.993);
  }
  72% {
    transform: translateX(2px) scale(1);
  }
  100% {
    transform: translateX(0) scale(1);
  }
}

@keyframes enemyMageHitImpact {
  0% {
    transform: translateX(0) scale(1);
    filter: brightness(1) saturate(1);
  }
  24% {
    transform: translateX(4px) scale(1.025);
    filter: brightness(1.28) saturate(1.34) drop-shadow(0 0 8px rgba(96, 165, 250, 0.72));
  }
  56% {
    transform: translateX(-6px) scale(0.995);
    filter: brightness(1.12) saturate(1.18) drop-shadow(0 0 5px rgba(59, 130, 246, 0.55));
  }
  100% {
    transform: translateX(0) scale(1);
    filter: brightness(1) saturate(1);
  }
}


.enemy-info {
  flex-shrink: 0;
  border-top: 1px solid #334155;
  padding: 4px 8px;
  text-align: center;
}

.enemy-name {
  color: #e2e8f0;
  font-size: 8px;
  font-weight: 700;
}

.enemy-timer {
  color: #f8fafc;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.question-card {
  margin-top: 10px;
  border-radius: 20px;
  background: #0a1022;
  border: 1px solid #263655;
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  position: relative;
}

#battle-feedback-slot {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.question-title {
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 700;
}

.question-word {
  color: #f8fafc;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
}

.question-phonetic {
  color: #60a5fa;
  font-size: 12px;
  font-weight: 600;
}

.question-prompt {
  color: #bfdbfe;
  font-size: 11px;
  font-weight: 600;
}

.option-btn {
  height: auto;
  min-height: 32px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  flex-shrink: 0;
}

.option-btn:hover {
  border-color: #38bdf8;
}

.option-btn.disabled {
  cursor: not-allowed;
}

.option-btn.correct {
  border-color: #34d399;
  background: #052e2b;
}

.option-btn.wrong {
  border-color: #f97316;
  background: #3b1d08;
}

.option-tag {
  width: 16px;
  color: #bfdbfe;
}

.feedback {
  margin-top: 6px;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 10px;
  line-height: 1.4;
  border: 1px solid #f97316;
  color: #fdba74;
  background: #3b1d08;
}

.feedback.correct {
  border-color: #34d399;
  color: #6ee7b7;
  background: #052e2b;
}

.feedback .title {
  font-weight: 700;
}

.correct-effect {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  z-index: 10;
  animation: effectSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.correct-effect.no-animate {
  animation: none;
}

.correct-effect.fade-out {
  animation: effectFadeOut 0.4s ease-out forwards;
}

.correct-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ecfdf5;
  font-size: 13px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.6), inset 0 1px 0 rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  gap: 4px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.correct-badge .icon {
  font-size: 14px;
}

.combo-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fffbeb;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.5), inset 0 1px 0 rgba(255,255,255,0.2);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  animation: comboPulse 0.6s ease-out;
}

.combo-badge.no-animate {
  animation: none;
}

@keyframes effectSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes effectFadeOut {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(20px) scale(0.9);
  }
}

@keyframes comboPulse {
  0% {
    transform: scale(1.3);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

.enemy-right {
  width: 142px;
  border-radius: 10px;
  background: #0a1022;
  border: 1px solid #334155;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.timeout-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 5;
  animation: overlayFadeIn 0.3s ease-out;
}

.timeout-overlay .fail-icon {
  font-size: 36px;
  animation: failShake 0.5s ease-out;
}

.timeout-overlay .fail-text {
  color: #f87171;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  line-height: 1.3;
}

.timeout-overlay .fail-sub {
  color: #94a3b8;
  font-size: 10px;
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes failShake {
  0%, 100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(8px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}

.inline-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.inline-btn {
  flex: 1;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #334155;
  color: #e2e8f0;
  background: #0f172a;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.inline-btn.primary {
  background: linear-gradient(90deg, #22d3ee 0%, #2563eb 100%);
  border: 0;
  color: #ecfeff;
}

.bottom-nav {
  height: 68px;
  min-height: 68px;
  flex-shrink: 0;
  padding: 8px 14px 14px;
  border-top: 1px solid #263655;
  background: #0a1022;
}

.nav-row {
  display: flex;
  gap: 8px;
}

.nav-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #263655;
  background: #0f172a;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.nav-notice-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.95), 0 0 8px rgba(239, 68, 68, 0.75);
}

.nav-btn.active {
  border-color: #38bdf8;
  background: linear-gradient(90deg, #22d3ee 0%, #3b82f6 100%);
  color: #f8fafc;
}

.hero-header-row {
  height: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.hero-coin-chip {
  margin-left: auto;
  min-width: 124px;
  justify-content: flex-end;
  text-align: right;
  font-size: 12px;
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0;
}

.hero-content {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.hero-active-top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 2px 0 6px;
  border-bottom: 1px solid #23324d;
  flex-shrink: 0;
}

.hero-active-slot {
  min-width: 0;
  padding: 0 6px;
}

.hero-active-slot + .hero-active-slot {
  border-left: 1px solid #334155;
}

.hero-lists-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: #1d4ed8 transparent;
}

.hero-lists-scroll::-webkit-scrollbar {
  width: 5px;
}

.hero-lists-scroll::-webkit-scrollbar-thumb {
  background: #1d4ed8;
  border-radius: 8px;
}

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

.hero-prof-col {
  background: transparent;
  padding: 4px 6px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.hero-prof-col + .hero-prof-col {
  border-left: 1px solid #334155;
}

.hero-prof-col.mage {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.12) 0%, rgba(2, 6, 23, 0) 45%);
}

.hero-prof-col.warrior {
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.12) 0%, rgba(2, 6, 23, 0) 45%);
}

.hero-prof-col.doctor {
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.12) 0%, rgba(2, 6, 23, 0) 45%);
}

.hero-prof-head {
  padding: 2px 0;
}

.hero-prof-title {
  font-size: 11px;
  font-weight: 800;
  color: #e2e8f0;
  text-align: center;
}

.hero-prof-sub {
  margin-top: 1px;
  font-size: 8px;
  color: #7dd3fc;
  text-align: center;
}

.hero-prof-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-prof-block-title {
  font-size: 8px;
  font-weight: 700;
  color: #bfdbfe;
  letter-spacing: 0.2px;
}

.hero-prof-active,
.hero-prof-row {
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0f172a;
  padding: 4px 4px 5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.hero-prof-active.mage,
.hero-prof-row.mage {
  border-color: rgba(59, 130, 246, 0.75);
}

.hero-prof-active.warrior,
.hero-prof-row.warrior {
  border-color: rgba(34, 211, 238, 0.75);
}

.hero-prof-active.doctor,
.hero-prof-row.doctor {
  border-color: rgba(34, 197, 94, 0.75);
}

.hero-prof-active .name,
.hero-prof-row .name {
  color: #e2e8f0;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.2;
  min-height: 18px;
  min-width: 0;
  word-break: break-word;
}

.hero-prof-active .action,
.hero-prof-row .action {
  width: 100%;
  min-height: 28px;
  padding: 3px 4px;
  border: 0;
  border-radius: 7px;
  color: #ecfeff;
  font-size: 8px;
  line-height: 1.2;
  font-weight: 700;
  cursor: pointer;
  white-space: normal;
  word-break: break-word;
}

.hero-prof-active .action.mage,
.hero-prof-active .action.warrior,
.hero-prof-row .action.mage,
.hero-prof-row .action.warrior {
  background: linear-gradient(90deg, #22d3ee 0%, #2563eb 100%);
}

.hero-prof-active .action.doctor,
.hero-prof-row .action.doctor {
  background: linear-gradient(90deg, #22c55e 0%, #14b8a6 100%);
}

.hero-prof-active .action:disabled,
.hero-prof-row .action:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.hero-prof-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-prof-active .thumb,
.hero-prof-row .thumb {
  width: 100%;
  height: 54px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-prof-active .thumb-wrap,
.hero-prof-row .thumb-wrap {
  position: relative;
  width: 100%;
}

.hero-unowned-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 1px 5px;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.75);
  background: rgba(120, 53, 15, 0.86);
  color: #fef08a;
  font-size: 7px;
  font-weight: 700;
  line-height: 1.2;
  pointer-events: none;
}

.metric-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-line {
  display: flex;
  align-items: baseline;
  gap: 2px;
  min-width: 0;
  font-size: 7px;
  line-height: 1.25;
}

.metric-label {
  color: #93c5fd;
  flex-shrink: 0;
}

.metric-from,
.metric-arrow,
.metric-single {
  color: #cbd5e1;
}

.metric-to.up {
  color: #4ade80;
  font-weight: 700;
}

.metric-to.down {
  color: #f87171;
  font-weight: 700;
}

.metric-to.same {
  color: #cbd5e1;
}

.metric-note {
  color: #94a3b8;
  font-size: 7px;
  line-height: 1.25;
}

.hero-prof-empty {
  border-radius: 8px;
  border: 1px dashed #334155;
  color: #64748b;
  font-size: 8px;
  text-align: center;
  padding: 6px 4px;
}

.hero-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-section-head {
  border-radius: 10px;
  border: 1px solid #263655;
  background: #0a1022;
  padding: 8px 10px;
}

.hero-section-title {
  font-size: 14px;
  font-weight: 700;
}

.hero-section-sub {
  margin-top: 2px;
  color: #93c5fd;
  font-size: 10px;
}

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

.hero-card {
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0f172a;
  overflow: hidden;
}

.hero-card.mage {
  border-color: #3b82f6;
}

.hero-card.warrior {
  border-color: #22d3ee;
}

.hero-card.doctor {
  border-color: #22c55e;
}

.hero-card .portrait {
  width: 100%;
  height: 78px;
  background-size: cover;
  background-position: center;
}

.hero-card .body {
  padding: 4px 6px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-card .name {
  color: #e2e8f0;
  font-size: 8px;
  font-weight: 700;
}

.hero-card .attr {
  color: #93c5fd;
  font-size: 7px;
  line-height: 1.3;
}

.hero-card .action {
  margin-top: 2px;
  height: 16px;
  border: 0;
  border-radius: 8px;
  color: #ecfeff;
  font-size: 7px;
  font-weight: 700;
  cursor: pointer;
}

.hero-card .action.mage,
.hero-card .action.warrior {
  background: linear-gradient(90deg, #22d3ee 0%, #2563eb 100%);
}

.hero-card .action.doctor {
  background: linear-gradient(90deg, #22c55e 0%, #14b8a6 100%);
}

.hero-card .action:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.inactive-list {
  border-radius: 10px;
  border: 1px solid #263655;
  background: #0a1022;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-row {
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0f172a;
  min-height: 62px;
  display: flex;
  overflow: hidden;
}

.hero-row .info {
  flex: 1;
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.hero-row .info .name {
  color: #e2e8f0;
  font-size: 10px;
  font-weight: 700;
}

.hero-row .info .meta {
  color: #93c5fd;
  font-size: 8px;
}

.hero-row .info .action {
  width: 120px;
  height: 16px;
  border: 0;
  border-radius: 8px;
  color: #ecfeff;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.hero-row .info .action.mage,
.hero-row .info .action.warrior {
  background: linear-gradient(90deg, #22d3ee 0%, #2563eb 100%);
}

.hero-row .info .action.doctor {
  background: linear-gradient(90deg, #22c55e 0%, #14b8a6 100%);
}

.hero-row .thumb {
  width: 54px;
  background-size: cover;
  background-position: center;
}

.vip-content {
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vip-block {
  border-radius: 14px;
  border: 1px solid #263655;
  background: #0a1022;
  padding: 10px 12px;
}

.vip-plan {
  border-radius: 14px;
  border: 1px solid #334155;
  background: #0f172a;
  padding: 10px 12px;
  cursor: pointer;
}

.vip-plan.active {
  border-color: #38bdf8;
  background: linear-gradient(90deg, #2563eb 0%, #22d3ee 100%);
}

.vip-plan .title {
  font-size: 18px;
  font-weight: 700;
}

.vip-plan .desc {
  margin-top: 2px;
  color: #dbeafe;
  font-size: 12px;
}

.pay-btn {
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: #10b981;
  color: #ecfdf5;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.profile-content {
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-card {
  border-radius: 14px;
  border: 1px solid #263655;
  background: #0a1022;
  padding: 10px 12px;
}

.profile-name {
  font-size: 22px;
  font-weight: 700;
}

.profile-sub {
  margin-top: 2px;
  font-size: 11px;
  color: #93c5fd;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat-box {
  border-radius: 12px;
  border: 1px solid #334155;
  background: #0f172a;
  padding: 10px 8px;
  text-align: center;
  min-height: 82px;
}

.stat-box .label {
  font-size: 11px;
  color: #bfdbfe;
}

.stat-box .value {
  margin-top: 6px;
  font-size: 26px;
  font-weight: 800;
}

.stat-box.mastered .value {
  color: #e2e8f0;
}

.stat-box.new .value {
  color: #4ade80;
}

.stat-box.pending .value {
  color: #fb7185;
}

.profile-chart-wrap {
  margin-top: 8px;
}

.profile-chart {
  width: 100%;
  height: 136px;
  display: block;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(7, 11, 28, 0.75) 100%);
  border: none;
}

.profile-chart .grid line {
  stroke: rgba(148, 163, 184, 0.2);
  stroke-width: 1;
}

.profile-chart-axis {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
}

.profile-chart-legend {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #cbd5e1;
}

.profile-chart-legend-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.profile-chart-footnote {
  margin-top: 6px;
  font-size: 11px;
  color: #93c5fd;
}

.adjustment-list {
  margin-top: 10px;
  border-top: 1px solid #1f2c46;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.adjustment-row {
  display: grid;
  grid-template-columns: 48px 88px 1fr;
  gap: 6px;
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.3;
}

.adjustment-row span:last-child {
  grid-column: 2 / 4;
  color: #94a3b8;
}

.setting-row {
  height: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #e2e8f0;
  font-size: 12px;
  cursor: pointer;
}

.setting-row + .setting-row {
  margin-top: 8px;
}

.setting-row .value {
  color: #4ade80;
}

.setting-row .arrow {
  color: #64748b;
}

.explore-card {
  border-radius: 16px;
  border: 1px solid #263655;
  background: #0a1022;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.explore-progress {
  border-radius: 10px;
  padding: 8px;
  background: linear-gradient(90deg, #2563eb 0%, #22d3ee 100%);
}

.explore-progress .title {
  color: #eff6ff;
  font-size: 10px;
  font-weight: 700;
}

.explore-progress .value {
  margin-top: 2px;
  font-size: 36px;
  line-height: 1;
  font-weight: 800;
}

.explore-progress .hint {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  color: #dbeafe;
}

.explore-word {
  margin-top: 4px;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
}

.explore-prompt {
  color: #bfdbfe;
  font-size: 11px;
  font-weight: 600;
}

.option-btn.selected {
  border-color: #38bdf8;
  background: #172554;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(9, 15, 38, 0.95);
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 100;
}

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

.loading-layer {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 28, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
  z-index: 20;
}

.top-right-link {
  border: 1px solid #334155;
  border-radius: 8px;
  background: #0f172a;
  color: #bfdbfe;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

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

@media (max-width: 460px) {
  .workspace {
    padding: 8px;
  }

  .phone-shell {
    width: 100%;
    height: calc(100vh - 16px);
    border-radius: 18px;
  }

  .top-title,
  .hero-title {
    font-size: 30px;
  }

  .question-word,
  .explore-word {
    font-size: 38px;
  }
}

@media (max-height: 700px) {
  .screen-top.compact {
    min-height: 44px;
    padding: 6px 12px 4px;
  }

  .battle-head-row {
    height: 32px;
  }

  .hero-mini {
    height: 54px;
  }

  .hero-mini-portrait {
    width: 48px;
  }

  .warrior-portrait-wrap {
    width: 48px;
  }

  .enemy-right {
    width: 120px;
  }

  .enemy-portrait {
    min-height: 70px;
  }

  .enemy-timer {
    font-size: 28px;
  }

  .question-card {
    padding: 10px 10px 8px;
    gap: 4px;
  }

  .question-word {
    font-size: 32px;
  }

  .question-phonetic {
    font-size: 11px;
  }

  .option-btn {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 11px;
  }

  .bottom-nav {
    height: 56px;
    min-height: 56px;
    padding: 6px 12px 10px;
  }

  .nav-btn {
    height: 38px;
  }

  .hero-active-top {
    padding-bottom: 4px;
  }

  .hero-active-slot {
    padding: 0 4px;
  }

  .hero-prof-col {
    padding: 6px 5px;
    gap: 5px;
  }

  .hero-prof-active .name,
  .hero-prof-row .name {
    font-size: 8px;
  }

  .metric-line,
  .metric-note {
    font-size: 7px;
  }
}

@media (max-height: 600px) {
  .screen-top.compact {
    min-height: 38px;
    padding: 4px 10px 2px;
  }

  .battle-head-row {
    height: 28px;
  }

  .coin-chip {
    font-size: 14px;
  }

  .hero-mini {
    height: 48px;
  }

  .hero-mini-info {
    padding: 4px;
  }

  .hero-mini-name {
    font-size: 7px;
  }

  .hero-mini-sub {
    font-size: 7px;
  }

  .hero-mini-btn {
    height: 14px;
    font-size: 7px;
  }

  .hero-recruit-tip {
    min-width: 46px;
    height: 14px;
    line-height: 14px;
    font-size: 7px;
  }

  .hero-active-top {
    padding-bottom: 3px;
  }

  .hero-active-slot {
    padding: 0 3px;
  }

  .hero-prof-col {
    padding: 5px 4px;
    gap: 4px;
  }

  .hero-prof-title {
    font-size: 10px;
  }

  .hero-prof-sub,
  .hero-prof-block-title {
    font-size: 8px;
  }

  .hero-prof-active .name,
  .hero-prof-row .name {
    font-size: 7px;
    min-height: 16px;
  }

  .metric-line,
  .metric-note {
    font-size: 7px;
  }

  .hero-prof-active .action,
  .hero-prof-row .action {
    min-height: 24px;
    font-size: 7px;
  }

  .hero-prof-active .thumb,
  .hero-prof-row .thumb {
    height: 44px;
  }

  .enemy-right {
    width: 100px;
  }

  .enemy-portrait {
    min-height: 56px;
  }

  .enemy-timer {
    font-size: 24px;
  }

  .question-card {
    margin-top: 6px;
    padding: 8px 8px 6px;
    gap: 3px;
  }

  .question-title {
    font-size: 10px;
  }

  .question-word {
    font-size: 28px;
  }

  .question-phonetic {
    font-size: 10px;
  }

  .question-prompt {
    font-size: 10px;
  }

  .option-btn {
    min-height: 26px;
    padding: 3px 6px;
    font-size: 10px;
    border-radius: 8px;
  }

  .bottom-nav {
    height: 48px;
    min-height: 48px;
    padding: 4px 10px 8px;
  }

  .nav-btn {
    height: 32px;
    font-size: 11px;
  }
}
