/* ============ 替身卡 ============ */
.stand-card {
  display: none;
  padding: 18px;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  max-width: 720px;
  margin: 0 auto;
}
.stand-card.show { display: flex; animation: cardIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes cardIn {
  from { opacity: 0; transform: scale(0.85) rotateY(15deg); }
  to { opacity: 1; transform: scale(1) rotateY(0); }
}
.stand-card.wu:not(.has-img) {
  background-color: var(--wu-black);
  border: 4px solid var(--wu-red);
  clip-path: polygon(2% 0%, 98% 1%, 100% 99%, 1% 100%);
}
.stand-card.wen:not(.has-img) {
  background-color: var(--wen-blue-dark);
  border: 1px solid var(--wen-silver);
  border-radius: 16px;
  box-shadow: 0 0 50px rgba(30, 144, 255, 0.3), inset 0 0 30px rgba(30, 144, 255, 0.1);
}

.portrait-slot {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mute);
  font-size: 11px;
  letter-spacing: 3px;
  font-family: ui-monospace, monospace;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.portrait-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  animation: portraitIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes portraitIn {
  from { opacity: 0; transform: scale(0.95); filter: blur(8px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}
.stand-card.wu .portrait-slot { border: 2px dashed var(--wu-red); }
.stand-card.wen .portrait-slot { border: 1px dashed var(--wen-silver); border-radius: 8px; }

/* 替身名 - 卡片最显眼标题 */
.stand-name-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0 4px;
  position: relative;
  z-index: 1;
}
.stand-name-prefix {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 4px;
  opacity: 0.7;
}
.stand-name-text {
  font-family: 'Cinzel', 'Bebas Neue', serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 2px;
  flex: 1;
}
.stand-card.wu .stand-name-prefix { color: var(--wu-gold); }
.stand-card.wu .stand-name-text {
  color: var(--text-light);
  text-shadow: 2px 2px 0 var(--wu-red), 4px 4px 0 var(--wu-red-dark);
}
.stand-card.wen .stand-name-prefix { color: var(--wen-silver); opacity: 0.6; }
.stand-card.wen .stand-name-text {
  color: var(--wen-silver);
  text-shadow: 0 0 12px rgba(192, 216, 255, 0.6);
  font-style: italic;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 10px;
  position: relative;
  z-index: 1;
}
.stand-card.wu .card-header { border-bottom: 2px solid var(--wu-red); }
.stand-card.wen .card-header { border-bottom: 1px solid rgba(192, 216, 255, 0.4); }
.card-name { font-size: 17px; font-weight: 900; letter-spacing: 1px; }
.card-author { font-size: 12px; color: var(--text-dim); margin-top: 4px; letter-spacing: 1px; }
.card-rank {
  font-size: 32px; font-weight: 900;
  font-family: 'Bebas Neue', monospace;
  text-align: right;
  text-shadow: 2px 2px 0 #000;
}
.stand-card.wu .card-rank { color: var(--wu-gold); }
.stand-card.wen .card-rank { color: var(--wen-silver); font-family: 'Cinzel', serif; }
.card-rank-label { font-size: 10px; color: var(--text-mute); letter-spacing: 3px; font-family: 'Bebas Neue', sans-serif; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  position: relative;
  z-index: 1;
}
.card-cell {
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  animation: cellFlip 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}
.card-cell:nth-child(1) { animation-delay: 0.1s; }
.card-cell:nth-child(2) { animation-delay: 0.2s; }
.card-cell:nth-child(3) { animation-delay: 0.3s; }
.card-cell:nth-child(4) { animation-delay: 0.4s; }
.card-cell:nth-child(5) { animation-delay: 0.5s; }
.card-cell:nth-child(6) { animation-delay: 0.6s; }
@keyframes cellFlip {
  from { opacity: 0; transform: rotateY(90deg); }
  to { opacity: 1; transform: rotateY(0); }
}
.stand-card.wu .card-cell { border-left: 3px solid var(--wu-red); }
.stand-card.wen .card-cell { border-radius: 6px; border: 1px solid rgba(192, 216, 255, 0.2); }

.card-cell-label { font-size: 10px; color: var(--text-mute); letter-spacing: 2px; font-weight: 900; }
.card-cell-grade { font-size: 26px; font-weight: 900; font-family: 'Bebas Neue', monospace; text-shadow: 2px 2px 0 #000; }

.card-foot {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
  padding-top: 8px;
  font-style: italic;
  position: relative;
  z-index: 1;
}
.stand-card.wu .card-foot { border-top: 1px dashed var(--wu-red); }
.stand-card.wen .card-foot { border-top: 1px dashed rgba(192, 216, 255, 0.3); }

