/* ========================================
   FxxK it - Pixel Art Retro Game Style
   一个精心设计的像素复古游戏界面
======================================== */

/* 像素字体 */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
  /* 主色调 - 复古紫 */
  --purple-darkest: #1a0a2a;
  --purple-dark: #2a1a4a;
  --purple-main: #6b4a9e;
  --purple-light: #8b6ab8;
  --purple-bright: #a88bd4;

  /* 强调色 */
  --pink-hot: #ff4081;
  --pink-light: #ff80ab;
  --cyan-neon: #00e5ff;
  --gold: #ffd700;
  --gold-dark: #b8860b;

  /* 按钮色 - 鲜艳像素风 */
  --btn-1: #ffb74d; /* 橙黄 */
  --btn-2: #ffd54f; /* 金黄 */
  --btn-3: #81c784; /* 翠绿 */
  --btn-4: #e57373; /* 珊瑚红 */

  /* 状态色 */
  --hp-high: #4caf50;
  --hp-mid: #ffb300;
  --hp-low: #f44336;
  --heart-full: #ff1744;
  --heart-empty: #4a2a5a;

  /* 文字 */
  --text-white: #ffffff;
  --text-cream: #fff8e1;
  --text-shadow: #1a0a2a;

  /* 像素边框 */
  --border-width: 4px;
  --pixel-shadow: 4px 4px 0 rgba(0,0,0,0.4);
}

/* ========================================
   重置和基础
======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
  /* 禁用双指缩放 */
  touch-action: pan-x pan-y;
  -ms-touch-action: pan-x pan-y;
}

body {
  font-family: 'Press Start 2P', 'Courier New', monospace;
  background: var(--purple-darkest);
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  /* 修复中英文混排基线对齐问题 */
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  vertical-align: baseline;
}

/* 中英文混排基线对齐优化 */
* {
  /* 统一所有元素的基线对齐方式 */
  vertical-align: baseline;
}

/* 针对内联元素的基线对齐修复 */
span, a, button, input, label {
  vertical-align: middle;
  /* 使用子像素渲染改善文字显示 */
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
}

/* ========================================
   像素砖墙背景 + 霓虹氛围
======================================== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    /* 霓虹光晕 */
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(138,43,226,0.3) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(255,64,129,0.2) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0,229,255,0.2) 0%, transparent 50%),
    /* 砖墙纹理 */
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 23px,
      rgba(0,0,0,0.4) 23px,
      rgba(0,0,0,0.4) 25px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 48px,
      rgba(0,0,0,0.2) 48px,
      rgba(0,0,0,0.2) 50px
    );
  background-color: #2a1a3a;
}

/* CRT 扫描线 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.1) 0px,
    rgba(0,0,0,0.1) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.3;
}

/* ========================================
   主容器
======================================== */
.app {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
  min-height: 100vh;
  position: relative;
}

/* ========================================
   顶部标题栏
======================================== */
.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.brand {
  text-align: left;
  flex-shrink: 1;
  min-width: 0;
}

.brand__title {
  font-size: clamp(24px, 6vw, 36px);
  color: var(--gold);
  text-shadow:
    3px 3px 0 var(--gold-dark),
    5px 5px 0 rgba(0,0,0,0.5),
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000,
    2px 2px 0 #000;
  letter-spacing: 2px;
  white-space: nowrap;
  animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from { filter: brightness(1); }
  to { filter: brightness(1.2); }
}

.brand__sub {
  font-size: 10px;
  color: var(--pink-light);
  margin-top: 8px;
  letter-spacing: 1px;
}

.topbar__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
  max-width: 280px;
}

/* ========================================
   钱包信息卡片
======================================== */
.wallet {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: linear-gradient(180deg, var(--purple-main) 0%, var(--purple-dark) 100%);
  border: 3px solid var(--purple-bright);
  box-shadow:
    inset 2px 2px 0 var(--purple-light),
    inset -2px -2px 0 var(--purple-dark),
    3px 3px 0 rgba(0,0,0,0.4);
}

.wallet__item {
  text-align: center;
}

.wallet__label {
  font-size: 9px;
  color: var(--pink-light);
  margin-bottom: 4px;
}

.wallet__value {
  font-size: 10px;
  color: var(--gold);
}

.wallet__divider {
  width: 3px;
  height: 28px;
  background: linear-gradient(180deg, var(--purple-bright), var(--pink-hot), var(--purple-bright));
}

/* ========================================
   顶部按钮
======================================== */
.topbar__buttons {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

.chip {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  padding: 6px 10px;
  border: 3px solid;
  cursor: pointer;
  transition: all 0.1s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.chip:hover {
  transform: translateY(-2px);
}

.chip:active {
  transform: translateY(2px);
}

.chip--ghost {
  background: linear-gradient(180deg, var(--purple-main) 0%, var(--purple-dark) 100%);
  border-color: var(--purple-bright);
  color: var(--text-white);
  box-shadow:
    inset 2px 2px 0 var(--purple-light),
    inset -2px -2px 0 #1a0a2a,
    3px 3px 0 rgba(0,0,0,0.4);
}

.chip--hot {
  background: linear-gradient(180deg, var(--pink-hot) 0%, #c2185b 100%);
  border-color: var(--pink-light);
  color: var(--text-white);
  box-shadow:
    inset 2px 2px 0 #ff80ab,
    inset -2px -2px 0 #880e4f,
    3px 3px 0 rgba(0,0,0,0.4),
    0 0 20px rgba(255,64,129,0.4);
  animation: hotPulse 1.5s ease-in-out infinite;
}

@keyframes hotPulse {
  0%, 100% { box-shadow: inset 2px 2px 0 #ff80ab, inset -2px -2px 0 #880e4f, 3px 3px 0 rgba(0,0,0,0.4), 0 0 10px rgba(255,64,129,0.3); }
  50% { box-shadow: inset 2px 2px 0 #ff80ab, inset -2px -2px 0 #880e4f, 3px 3px 0 rgba(0,0,0,0.4), 0 0 25px rgba(255,64,129,0.6); }
}

.chip__icon {
  font-size: 10px;
}

/* ========================================
   跑马灯
======================================== */
.ticker {
  margin-bottom: 12px;
}

.ticker__frame {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #1a0a1a 0%, #0a0010 100%);
  border: 3px solid #ff1744;
  box-shadow:
    inset 0 0 20px rgba(255,23,68,0.3),
    0 0 15px rgba(255,23,68,0.4),
    var(--pixel-shadow);
}

.ticker__dot {
  width: 10px;
  height: 10px;
  background: #ff1744;
  box-shadow: 0 0 10px #ff1744, 0 0 20px #ff1744;
  animation: dotBlink 1s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.ticker__viewport {
  overflow: hidden;
  flex: 1;
}

.ticker__track {
  display: inline-block;
  white-space: nowrap;
  font-size: 14px;
  color: #ff8a80;
  text-shadow: 0 0 10px rgba(255,138,128,0.5);
  animation: tickerMove 25s linear infinite;
}

@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ========================================
   主面板
======================================== */
.panel {
  background: linear-gradient(180deg, var(--purple-main) 0%, var(--purple-dark) 100%);
  border: var(--border-width) solid var(--purple-bright);
  padding: 14px;
  box-shadow:
    inset 3px 3px 0 var(--purple-light),
    inset -3px -3px 0 #1a0a2a,
    6px 6px 0 rgba(0,0,0,0.5),
    0 0 30px rgba(138,43,226,0.3);
}

.panel__header {
  text-align: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--purple-bright);
}

.panel__title {
  font-size: clamp(12px, 4vw, 18px);
  color: var(--gold);
  text-shadow:
    3px 3px 0 var(--gold-dark),
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
}

.panel__hint {
  font-size: 12px;
  color: var(--pink-light);
  margin-top: 8px;
  opacity: 0.8;
}

/* ========================================
   英雄列表
======================================== */
.heroList {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ========================================
   英雄卡片 - 核心设计
======================================== */
.heroCard {
  position: relative;
  background: linear-gradient(180deg, var(--purple-main) 0%, #4a2a6a 100%);
  border: var(--border-width) solid var(--purple-bright);
  padding: 12px;
  box-shadow:
    inset 3px 3px 0 var(--purple-light),
    inset -3px -3px 0 #2a1a3a,
    5px 5px 0 rgba(0,0,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.heroCard:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 3px 3px 0 var(--purple-light),
    inset -3px -3px 0 #2a1a3a,
    5px 7px 0 rgba(0,0,0,0.4),
    0 0 30px rgba(138,43,226,0.4);
}

.heroCard--cleared {
  border-color: var(--gold);
  box-shadow:
    inset 3px 3px 0 var(--purple-light),
    inset -3px -3px 0 #2a1a3a,
    5px 5px 0 rgba(0,0,0,0.4),
    0 0 20px rgba(255,215,0,0.3);
}

.heroCard--hit {
  animation: hitShake 0.2s ease-out;
}

.heroCard--coming {
  opacity: 0.7;
}

.heroCard--coming .heroCard__body {
  filter: grayscale(0.3);
}

.heroCard--coming .actBtn {
  opacity: 0.4;
  cursor: not-allowed;
}

@keyframes hitShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* 卡片装饰角 */
.heroCard__corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 3px solid var(--cyan-neon);
  opacity: 0.6;
}

.heroCard__corner--tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.heroCard__corner--tr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.heroCard__corner--bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.heroCard__corner--br { bottom: -2px; right: -2px; border-left: none; border-top: none; }

/* 卡片头部 */
.heroCard__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--purple-bright);
}

.heroCard__title {
  font-size: clamp(10px, 3vw, 14px);
  color: var(--cyan-neon);
  text-shadow:
    2px 2px 0 #006064,
    0 0 10px rgba(0,229,255,0.5);
}

.heroCard__badge {
  font-size: 12px;
  color: var(--gold);
  background: rgba(255,215,0,0.2);
  padding: 3px 6px;
  border: 2px solid var(--gold);
}

/* 卡片主体 */
.heroCard__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 主内容区（图片+按钮） */
.heroCard__main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 顶部区域 */
.heroCard__top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* ========================================
   头像
======================================== */
.avatar {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  border: 3px solid var(--purple-bright);
  background: var(--purple-dark);
}

.avatar__frame {
  position: absolute;
  inset: -4px;
  border: 2px solid var(--pink-hot);
  opacity: 0.6;
  pointer-events: none;
}

/* ========================================
   状态栏
======================================== */
.heroCard__status {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* 心形血量 */
.hearts {
  display: flex;
  gap: 4px;
  font-size: 14px;
}

.heart {
  text-shadow: 1px 1px 0 #000;
  transition: transform 0.2s;
}

.heart--full {
  color: var(--heart-full);
  animation: heartBeat 1s ease-in-out infinite;
}

.heart--empty {
  color: var(--heart-empty);
}

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

/* HP 条 */
.meter {
  width: 100%;
}

.meter__bar {
  position: relative;
  width: 100%;
  height: 14px;
  background: #1a0a1a;
  border: 2px solid #000;
  overflow: hidden;
  box-shadow: inset 2px 2px 0 rgba(0,0,0,0.5);
}

.meter__fill {
  height: 100%;
  background: linear-gradient(180deg, #ff6b6b 0%, #ee5a5a 50%, #cc4444 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.3);
  transition: width 0.3s ease;
  position: relative;
}

.meter__shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shineMove 2s linear infinite;
}

@keyframes shineMove {
  from { transform: translateX(-100%); }
  to { transform: translateX(200%); }
}

.meter__value {
  font-size: 10px;
  margin-top: 3px;
  display: flex;
  gap: 2px;
}

.meter__hp {
  color: var(--cyan-neon);
}

.meter__sep {
  color: var(--purple-bright);
}

.meter__max {
  color: var(--pink-light);
}

/* ========================================
   角色展示区域
======================================== */
.heroDisplay {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(180deg, #0a0020 0%, #1a0a3a 50%, #2a1a4a 100%);
  border: 3px solid var(--purple-dark);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 8px;
}

/* 霓虹城市背景 */
.heroDisplay__bg {
  position: absolute;
  inset: 0;
  background:
    /* 建筑剪影 */
    linear-gradient(180deg, transparent 40%, rgba(20,10,40,0.8) 100%),
    /* 霓虹灯条 */
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 20px,
      rgba(255,64,129,0.15) 20px,
      rgba(255,64,129,0.15) 22px,
      transparent 22px,
      transparent 40px,
      rgba(0,229,255,0.1) 40px,
      rgba(0,229,255,0.1) 42px
    );
  animation: bgPan 20s linear infinite;
}

@keyframes bgPan {
  from { background-position: 0 0; }
  to { background-position: 100px 0; }
}

.heroDisplay__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  image-rendering: pixelated;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  transition: transform 0.1s ease-out;
}

.heroDisplay__img.img--flash {
  animation: imgFlash 0.15s ease-out;
}

@keyframes imgFlash {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.02); filter: brightness(1.3) saturate(1.2); }
  100% { transform: scale(1); filter: brightness(1); }
}

/* Coming Soon 占位符 */
.heroDisplay__placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.placeholder__icon {
  font-size: 64px;
  color: var(--purple-bright);
  text-shadow: 0 0 20px var(--purple-main);
  animation: placeholderPulse 2s ease-in-out infinite;
}

.placeholder__text {
  font-size: 12px;
  color: var(--pink-light);
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@keyframes placeholderPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Avatar 占位符 */
.avatar__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  border: 3px solid var(--purple-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--purple-bright);
}

.heroDisplay__name {
  font-size: 14px;
  color: var(--text-cream);
  text-shadow:
    2px 2px 0 #000,
    0 0 10px rgba(255,255,255,0.5);
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: rgba(0,0,0,0.6);
  padding: 4px 12px;
  border: 2px solid var(--purple-bright);
}

.heroDisplay__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.15) 0px,
    rgba(0,0,0,0.15) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 3;
}

/* ========================================
   动作按钮 - 图片按钮
======================================== */
.actGrid {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.actBtn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.actBtn:hover {
  transform: scale(1.08) translateY(-2px);
  filter: brightness(1.1);
}

.actBtn:active {
  transform: scale(0.95);
  animation: btnShake 0.15s ease-out;
}

@keyframes btnShake {
  0%, 100% { transform: scale(0.95) rotate(0deg); }
  25% { transform: scale(0.95) rotate(-5deg); }
  75% { transform: scale(0.95) rotate(5deg); }
}

.actBtn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none !important;
  filter: grayscale(0.8);
}

.actBtn__img {
  width: 72px;
  height: auto;
  display: block;
  image-rendering: pixelated;
  filter: drop-shadow(3px 3px 0 rgba(0,0,0,0.4));
  transition: filter 0.15s ease;
}

.actBtn:hover .actBtn__img {
  filter: drop-shadow(4px 4px 0 rgba(0,0,0,0.5)) drop-shadow(0 0 8px rgba(255,255,255,0.3));
}

/* ========================================
   未解锁遮罩
======================================== */
.heroOverlay {
  position: absolute;
  inset: 0;
  background: rgba(10,5,20,0.92);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.heroOverlay[hidden] {
  display: none;
}

.heroOverlay__content {
  text-align: center;
  padding: 20px;
}

.overlayIcon {
  font-size: 32px;
  margin-bottom: 10px;
  animation: lockBounce 2s ease-in-out infinite;
}

@keyframes lockBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.overlayTitle {
  font-size: 16px;
  color: var(--text-white);
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 8px;
}

.overlayHint {
  font-size: 10px;
  color: var(--pink-light);
  margin-bottom: 14px;
  max-width: 200px;
}

/* ========================================
   通用按钮
======================================== */
.btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  padding: 10px 16px;
  border: 3px solid;
  cursor: pointer;
  transition: all 0.1s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(2px);
}

.btn--hot {
  background: linear-gradient(180deg, var(--pink-hot) 0%, #c2185b 100%);
  border-color: var(--pink-light);
  color: var(--text-white);
  box-shadow:
    inset 2px 2px 0 #ff80ab,
    inset -2px -2px 0 #880e4f,
    3px 3px 0 rgba(0,0,0,0.4);
}

.btn--ghost {
  background: linear-gradient(180deg, var(--purple-main) 0%, var(--purple-dark) 100%);
  border-color: var(--purple-bright);
  color: var(--text-white);
  box-shadow:
    inset 2px 2px 0 var(--purple-light),
    inset -2px -2px 0 #1a0a2a,
    3px 3px 0 rgba(0,0,0,0.4);
}

/* ========================================
   更多提示
======================================== */
.moreHint {
  margin-top: 14px;
  padding: 12px;
  background: var(--purple-dark);
  border: 3px solid var(--purple-bright);
  text-align: center;
  font-size: 10px;
  color: var(--pink-light);
  box-shadow: var(--pixel-shadow);
}

.moreHint__icon {
  color: var(--cyan-neon);
  animation: iconBlink 1s ease-in-out infinite;
}

@keyframes iconBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ========================================
   Toast 提示
======================================== */
.toastHost {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--purple-dark);
  border: 3px solid;
  font-size: 10px;
  box-shadow: var(--pixel-shadow);
  animation: toastSlide 0.3s ease-out;
}

@keyframes toastSlide {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.toast--info {
  border-color: var(--cyan-neon);
  color: var(--cyan-neon);
}

.toast--success {
  border-color: var(--hp-high);
  color: var(--hp-high);
}

.toast--warning {
  border-color: var(--hp-mid);
  color: var(--hp-mid);
}

.toast--damage {
  border-color: var(--hp-low);
  color: var(--hp-low);
  animation: toastSlide 0.3s ease-out, damageShake 0.3s ease-out;
}

@keyframes damageShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.toast__icon::before {
  font-size: 12px;
}

.toast--info .toast__icon::before { content: "ℹ"; }
.toast--success .toast__icon::before { content: "★"; }
.toast--warning .toast__icon::before { content: "⚠"; }
.toast--damage .toast__icon::before { content: "💥"; }

/* ========================================
   Modal 弹窗
======================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
}

.modal[aria-hidden="false"] {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.2s ease-out;
}

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

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,5,20,0.9);
}

.modal__card {
  position: relative;
  width: min(90vw, 380px);
  background: linear-gradient(180deg, var(--purple-main) 0%, var(--purple-dark) 100%);
  border: var(--border-width) solid var(--pink-hot);
  padding: 14px;
  box-shadow:
    inset 3px 3px 0 var(--purple-light),
    inset -3px -3px 0 #1a0a2a,
    8px 8px 0 rgba(0,0,0,0.5),
    0 0 40px rgba(255,64,129,0.4);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(0,0,0,0.5);
  border: 2px solid var(--purple-bright);
  color: var(--text-white);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s;
  z-index: 10;
}

.modal__close:hover {
  background: var(--pink-hot);
  border-color: var(--pink-light);
  transform: scale(1.1);
}

/* ========================================
   Mint 弹窗 - 勋章展示
======================================== */
.modal__card--mint {
  width: min(92vw, 340px);
  padding: 20px 16px;
  text-align: center;
  background: linear-gradient(180deg, #1a0a3a 0%, #0a0020 50%, #1a0a2a 100%);
  border-color: var(--cyan-neon);
  box-shadow:
    inset 0 0 30px rgba(0,229,255,0.1),
    8px 8px 0 rgba(0,0,0,0.5),
    0 0 60px rgba(0,229,255,0.3);
}

/* 勋章展示区 */
.mintShowcase {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 16px;
}

.mintShowcase__glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(0,229,255,0.4) 0%, rgba(255,215,0,0.2) 40%, transparent 70%);
  animation: glowPulse 2s ease-in-out infinite;
  border-radius: 50%;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.mintShowcase__medal {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  animation: medalFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255,215,0,0.5));
  z-index: 2;
}

@keyframes medalFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

.mintShowcase__sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: sparkleAnim 1.5s ease-in-out infinite;
}

.sparkle:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 15%; right: 5%; animation-delay: 0.3s; }
.sparkle:nth-child(3) { bottom: 20%; left: 5%; animation-delay: 0.6s; }
.sparkle:nth-child(4) { bottom: 10%; right: 10%; animation-delay: 0.9s; }

@keyframes sparkleAnim {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* 勋章信息 */
.mintInfo {
  margin-bottom: 16px;
}

.mintInfo__title {
  font-size: 18px;
  color: var(--gold);
  text-shadow:
    3px 3px 0 var(--gold-dark),
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.mintInfo__rarity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.rarity__star {
  color: var(--cyan-neon);
  font-size: 14px;
  text-shadow: 0 0 10px var(--cyan-neon);
  animation: starTwinkle 1s ease-in-out infinite;
}

.rarity__star:nth-child(2) { animation-delay: 0.2s; }
.rarity__star:nth-child(3) { animation-delay: 0.4s; }

@keyframes starTwinkle {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.rarity__text {
  font-size: 10px;
  color: var(--pink-light);
  margin-left: 6px;
}

/* 统计信息 */
.mintStats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  background: rgba(0,0,0,0.3);
  border: 2px solid var(--purple-bright);
  margin-bottom: 14px;
}

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

.mintStats__icon {
  font-size: 20px;
}

.mintStats__data {
  text-align: left;
}

.mintStats__value {
  font-size: 14px;
  color: var(--cyan-neon);
  text-shadow: 0 0 10px rgba(0,229,255,0.5);
}

.mintStats__label {
  font-size: 8px;
  color: var(--pink-light);
  opacity: 0.8;
}

.mintStats__divider {
  width: 2px;
  height: 30px;
  background: linear-gradient(180deg, transparent, var(--purple-bright), transparent);
}

/* 特权列表 */
.mintPerks {
  background: rgba(106,43,226,0.2);
  border: 2px solid var(--purple-bright);
  padding: 12px;
  margin-bottom: 16px;
}

.mintPerks__title {
  font-size: 11px;
  color: var(--gold);
  margin-bottom: 10px;
  text-shadow: 1px 1px 0 #000;
}

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

.mintPerks__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-cream);
}

.perk__icon {
  font-size: 16px;
}

.perk__text {
  text-align: left;
}

/* Mint 按钮 */
.mintActions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn--mint {
  width: 100%;
  padding: 14px 20px;
  font-size: 14px;
  background: linear-gradient(180deg, #00e5ff 0%, #00b8d4 50%, #0097a7 100%);
  border: 3px solid #80deea;
  color: #000;
  font-weight: bold;
  box-shadow:
    inset 2px 2px 0 #b2ebf2,
    inset -2px -2px 0 #006064,
    4px 4px 0 rgba(0,0,0,0.4),
    0 0 30px rgba(0,229,255,0.5);
  animation: mintBtnGlow 2s ease-in-out infinite;
}

.btn--mint:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 2px 2px 0 #b2ebf2,
    inset -2px -2px 0 #006064,
    4px 6px 0 rgba(0,0,0,0.4),
    0 0 50px rgba(0,229,255,0.7);
}

.btn--mint:active {
  transform: translateY(2px);
}

.btn--mint:disabled {
  background: linear-gradient(180deg, #4caf50 0%, #388e3c 100%);
  border-color: #81c784;
  box-shadow:
    inset 2px 2px 0 #a5d6a7,
    inset -2px -2px 0 #1b5e20,
    4px 4px 0 rgba(0,0,0,0.4);
  animation: none;
  cursor: default;
}

@keyframes mintBtnGlow {
  0%, 100% { box-shadow: inset 2px 2px 0 #b2ebf2, inset -2px -2px 0 #006064, 4px 4px 0 rgba(0,0,0,0.4), 0 0 20px rgba(0,229,255,0.4); }
  50% { box-shadow: inset 2px 2px 0 #b2ebf2, inset -2px -2px 0 #006064, 4px 4px 0 rgba(0,0,0,0.4), 0 0 40px rgba(0,229,255,0.7); }
}

.btn__icon {
  margin-right: 6px;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 10px;
}

/* ========================================
   PC 端布局优化
======================================== */
@media (min-width: 561px) {
  /* 英雄卡片纵向布局：顶部状态栏 + 下方图片按钮并排 */
  .heroCard__body {
    flex-direction: column;
    gap: 12px;
  }

  /* 顶部状态栏横跨全宽 */
  .heroCard__top {
    width: 100%;
  }

  /* 主内容区：图片和按钮并排 */
  .heroCard__main {
    flex-direction: row;
    align-items: stretch;
    gap: 16px;
  }

  .heroDisplay {
    flex: 1;
    aspect-ratio: 4/5;
    min-width: 0;
  }

  /* 右侧：按钮竖排 */
  .actGrid {
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
    width: auto;
  }

  .actBtn__img {
    width: 90px;
  }
}

/* ========================================
   响应式 - 移动端
======================================== */
@media (max-width: 560px) {
  .app {
    padding: 8px;
  }

  .topbar {
    gap: 8px;
  }

  .brand__title {
    font-size: 20px;
    letter-spacing: 1px;
  }

  .brand__sub {
    font-size: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .topbar__right {
    gap: 6px;
    max-width: 160px;
  }

  .wallet {
    padding: 4px 6px;
    gap: 6px;
  }

  .wallet__label {
    font-size: 6px;
  }

  .wallet__value {
    font-size: 8px;
  }

  .wallet__divider {
    width: 2px;
    height: 20px;
  }

  .topbar__buttons {
    gap: 4px;
  }

  .chip {
    font-size: 7px;
    padding: 4px 6px;
  }

  .chip__icon {
    font-size: 8px;
  }

  .ticker__track {
    font-size: 10px;
  }

  .panel {
    padding: 10px;
  }

  .panel__title {
    font-size: 14px;
  }

  .panel__hint {
    font-size: 10px;
  }

  .heroCard {
    padding: 10px;
  }

  .heroCard__title {
    font-size: 12px;
  }

  /* 移动端按钮横排 */
  .actGrid {
    flex-wrap: wrap;
    gap: 6px;
  }

  .actBtn__img {
    width: 60px;
  }

  /* Mint 弹窗移动端 */
  .modal__card--mint {
    padding: 16px 12px;
  }

  .mintShowcase {
    width: 130px;
    height: 130px;
    margin-bottom: 12px;
  }

  .mintInfo__title {
    font-size: 14px;
  }

  .rarity__star {
    font-size: 12px;
  }

  .rarity__text {
    font-size: 9px;
  }

  .mintStats {
    gap: 8px;
    padding: 10px 8px;
  }

  .mintStats__icon {
    font-size: 16px;
  }

  .mintStats__value {
    font-size: 12px;
  }

  .mintStats__label {
    font-size: 7px;
  }

  .mintStats__divider {
    height: 24px;
  }

  .mintPerks {
    padding: 10px;
  }

  .mintPerks__title {
    font-size: 10px;
  }

  .mintPerks__item {
    font-size: 10px;
  }

  .perk__icon {
    font-size: 14px;
  }

  .btn--mint {
    padding: 12px 16px;
    font-size: 12px;
  }
}

/* ========================================
   减少动画（无障碍）
======================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   Boss卡片样式（扩展heroCard）
======================================== */
.bossCard {
  position: relative;
  background: linear-gradient(180deg, var(--purple-main) 0%, #4a2a6a 100%);
  border: var(--border-width) solid var(--purple-bright);
  padding: 12px;
  box-shadow:
    inset 3px 3px 0 var(--purple-light),
    inset -3px -3px 0 #2a1a3a,
    5px 5px 0 rgba(0,0,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.bossCard:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 3px 3px 0 var(--purple-light),
    inset -3px -3px 0 #2a1a3a,
    5px 7px 0 rgba(0,0,0,0.4),
    0 0 30px rgba(138,43,226,0.4);
}

.bossCard--defeated {
  border-color: var(--gold);
  box-shadow:
    inset 3px 3px 0 var(--purple-light),
    inset -3px -3px 0 #2a1a3a,
    5px 5px 0 rgba(0,0,0,0.4),
    0 0 20px rgba(255,215,0,0.3);
}

.bossCard--defeated .bossDisplay__img {
  filter: grayscale(0.3) brightness(0.8);
}

.bossCard--locked {
  opacity: 0.6;
}

.bossCard--hit {
  animation: hitShake 0.3s ease-out;
}

/* Boss卡片装饰角 */
.bossCard__corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 3px solid var(--cyan-neon);
  opacity: 0.6;
}

.bossCard__corner--tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.bossCard__corner--tr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.bossCard__corner--bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.bossCard__corner--br { bottom: -2px; right: -2px; border-left: none; border-top: none; }

/* Boss卡片头部 */
.bossCard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--purple-bright);
}

.bossCard__title {
  font-size: clamp(10px, 3vw, 14px);
  color: var(--cyan-neon);
  text-shadow:
    2px 2px 0 #006064,
    0 0 10px rgba(0,229,255,0.5);
}

.bossCard__difficulty {
  font-size: 10px;
  color: var(--pink-light);
}

.bossCard__badge {
  font-size: 10px;
  color: var(--gold);
  background: rgba(255,215,0,0.2);
  padding: 3px 6px;
  border: 2px solid var(--gold);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 5px rgba(255,215,0,0.3); }
  50% { box-shadow: 0 0 15px rgba(255,215,0,0.6); }
}

/* Boss卡片主体 */
.bossCard__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.bossCard__threshold {
  font-size: 11px;
  color: var(--gold);
  text-align: center;
  padding: 4px 8px;
  background: rgba(255,215,0,0.1);
  border: 2px solid var(--gold-dark);
}

.bossCard__status {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bossCard__main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Boss展示区域 */
.bossDisplay {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(180deg, #0a0020 0%, #1a0a3a 50%, #2a1a4a 100%);
  border: 3px solid var(--purple-dark);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 8px;
}

.bossDisplay__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(20,10,40,0.8) 100%),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 20px,
      rgba(255,64,129,0.15) 20px,
      rgba(255,64,129,0.15) 22px,
      transparent 22px,
      transparent 40px,
      rgba(0,229,255,0.1) 40px,
      rgba(0,229,255,0.1) 42px
    );
  animation: bgPan 20s linear infinite;
}

.bossDisplay__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  image-rendering: pixelated;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  transition: transform 0.1s ease-out;
}

.bossDisplay__img.img--flash {
  animation: imgFlash 0.15s ease-out;
}

.bossDisplay__placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.bossDisplay__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.15) 0px,
    rgba(0,0,0,0.15) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 3;
}

/* Boss遮罩 */
.bossOverlay {
  position: absolute;
  inset: 0;
  background: rgba(10,5,20,0.92);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.bossOverlay__content {
  text-align: center;
  padding: 20px;
}

/* ========================================
   血条闪烁效果
======================================== */
.meter__fill--flash {
  animation: meterFlash 0.3s ease-out;
}

@keyframes meterFlash {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.8) saturate(1.5); box-shadow: 0 0 10px var(--hp-low); }
  100% { filter: brightness(1); }
}

/* ========================================
   冷却按钮状态
======================================== */
.actBtn--cooldown {
  position: relative;
  opacity: 0.5;
  cursor: not-allowed;
}

.actBtn--cooldown::after {
  content: attr(data-cooldown);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--text-white);
  text-shadow: 2px 2px 0 #000, 0 0 10px rgba(0,0,0,0.8);
  z-index: 5;
}

.actBtn--cooldown .actBtn__img {
  filter: grayscale(0.8) brightness(0.5);
}

/* ========================================
   钱包市值高亮
======================================== */
.wallet__value--highlight {
  color: var(--cyan-neon);
  text-shadow: 0 0 10px rgba(0,229,255,0.5);
  animation: valueGlow 2s ease-in-out infinite;
}

@keyframes valueGlow {
  0%, 100% { text-shadow: 0 0 5px rgba(0,229,255,0.3); }
  50% { text-shadow: 0 0 15px rgba(0,229,255,0.7); }
}

/* ========================================
   面板副标题
======================================== */
.panel__subtitle {
  font-size: 10px;
  color: var(--pink-light);
  margin-top: 6px;
  opacity: 0.8;
}

/* ========================================
   PC端Boss卡片布局
======================================== */
@media (min-width: 561px) {
  .bossCard__body {
    flex-direction: column;
    gap: 12px;
  }

  .bossCard__top {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .bossCard__threshold {
    flex-shrink: 0;
  }

  .bossCard__status {
    flex: 1;
  }

  .bossCard__main {
    flex-direction: row;
    align-items: stretch;
    gap: 16px;
  }

  .bossDisplay {
    flex: 1;
    min-width: 0;
  }

  .bossCard .actGrid {
    flex-direction: column;
    justify-content: center;
    width: auto;
  }

  .bossCard .actBtn__img {
    width: 100px;
  }
}

/* ========================================
   移动端Boss卡片布局
======================================== */
@media (max-width: 560px) {
  .bossCard__head {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .bossCard__difficulty {
    font-size: 8px;
  }

  .bossCard__threshold {
    font-size: 9px;
  }

  .bossCard .actGrid {
    justify-content: center;
  }

  .bossCard .actBtn__img {
    width: 80px;
  }
}

/* ========================================
   MINT 区域样式
======================================== */
.mintPanel {
  background: linear-gradient(180deg, rgba(0,229,255,0.1) 0%, rgba(138,43,226,0.2) 100%);
  border: 3px solid var(--cyan-neon);
  margin: 0 auto 16px;
  max-width: 900px;
  box-shadow:
    inset 0 0 20px rgba(0,229,255,0.1),
    0 0 30px rgba(0,229,255,0.2),
    4px 4px 0 rgba(0,0,0,0.4);
}

.mintPanel__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
}

.mintPanel__left {
  flex-shrink: 0;
}

.mintPanel__title {
  font-size: 18px;
  color: var(--cyan-neon);
  text-shadow:
    2px 2px 0 #006064,
    0 0 15px rgba(0,229,255,0.6);
  margin-bottom: 8px;
}

.mintPanel__rules {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mintRule {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
}

.mintRule__label {
  color: var(--pink-light);
  min-width: 40px;
}

.mintRule__value {
  color: var(--text-cream);
}

.mintPanel__center {
  flex: 1;
  max-width: 300px;
}

.mintProgress {
  margin-bottom: 8px;
}

.mintProgress__bar {
  height: 20px;
  background: rgba(0,0,0,0.4);
  border: 2px solid var(--purple-bright);
  position: relative;
  overflow: hidden;
}

.mintProgress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan-neon) 0%, var(--pink-hot) 100%);
  transition: width 0.5s ease;
  box-shadow: 0 0 10px var(--cyan-neon);
}

.mintProgress__text {
  font-size: 11px;
  color: var(--text-cream);
  text-align: center;
  margin-top: 4px;
}

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

.mintPanel__right {
  flex-shrink: 0;
}

.mintBtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 24px;
  background: linear-gradient(180deg, var(--cyan-neon) 0%, #00b8d4 100%);
  border: 3px solid #80deea;
  color: #000;
  font-family: 'Press Start 2P', monospace;
  cursor: pointer;
  box-shadow:
    inset 2px 2px 0 #b2ebf2,
    inset -2px -2px 0 #006064,
    4px 4px 0 rgba(0,0,0,0.4),
    0 0 20px rgba(0,229,255,0.4);
  transition: all 0.15s ease;
  animation: mintBtnPulse 2s ease-in-out infinite;
}

.mintBtn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow:
    inset 2px 2px 0 #b2ebf2,
    inset -2px -2px 0 #006064,
    4px 6px 0 rgba(0,0,0,0.4),
    0 0 40px rgba(0,229,255,0.6);
}

.mintBtn:active:not(:disabled) {
  transform: translateY(2px);
}

.mintBtn:disabled {
  background: linear-gradient(180deg, #616161 0%, #424242 100%);
  border-color: #757575;
  cursor: not-allowed;
  animation: none;
  box-shadow:
    inset 2px 2px 0 #9e9e9e,
    inset -2px -2px 0 #212121,
    4px 4px 0 rgba(0,0,0,0.4);
}

@keyframes mintBtnPulse {
  0%, 100% { box-shadow: inset 2px 2px 0 #b2ebf2, inset -2px -2px 0 #006064, 4px 4px 0 rgba(0,0,0,0.4), 0 0 15px rgba(0,229,255,0.3); }
  50% { box-shadow: inset 2px 2px 0 #b2ebf2, inset -2px -2px 0 #006064, 4px 4px 0 rgba(0,0,0,0.4), 0 0 30px rgba(0,229,255,0.6); }
}

.mintBtn__text {
  font-size: 14px;
  font-weight: bold;
}

.mintBtn__price {
  font-size: 9px;
  opacity: 0.8;
}

/* MINT 成功状态 */
.mintBtn--success {
  background: linear-gradient(180deg, #4caf50 0%, #388e3c 100%);
  border-color: #81c784;
  animation: none;
}

/* MINT 售罄状态 */
.mintBtn--soldout {
  background: linear-gradient(180deg, #f44336 0%, #c62828 100%);
  border-color: #ef9a9a;
}

/* MINT 加载状态 */
.mintBtn--loading {
  pointer-events: none;
  opacity: 0.8;
}

.mintBtn--loading .mintBtn__text {
  animation: mintPulse 1s ease-in-out infinite;
}

@keyframes mintPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ========================================
   MINT 区域响应式
======================================== */
@media (max-width: 700px) {
  .mintPanel__inner {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }

  .mintPanel__left {
    text-align: center;
  }

  .mintPanel__title {
    font-size: 14px;
  }

  .mintPanel__rules {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
  }

  .mintRule {
    font-size: 9px;
  }

  .mintPanel__center {
    width: 100%;
    max-width: none;
  }

  .mintProgress__bar {
    height: 16px;
  }

  .mintProgress__text {
    font-size: 10px;
  }

  .mintBtn {
    padding: 10px 20px;
  }

  .mintBtn__text {
    font-size: 12px;
  }

  .mintBtn__price {
    font-size: 8px;
  }
}

@media (max-width: 400px) {
  .mintPanel__rules {
    flex-direction: column;
    gap: 4px;
  }

  .mintRule {
    justify-content: center;
  }
}
