/* ============================================================
   牌局增强：对手手牌数 / 限定技文字 + 男女声同步
   ============================================================ */

/* 对手剩余手牌 */
.dueler-name { min-width: 0; }
.hand-peek {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 19px;
  padding: 0 6px 0 3px;
  border-radius: 99px;
  border: 1px solid rgba(218, 178, 108, .5);
  background: linear-gradient(180deg, rgba(45, 28, 16, .94), rgba(16, 9, 6, .96));
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 232, 183, .12);
  color: #f4dfb4;
  line-height: 1;
  white-space: nowrap;
}
.side-enemy .hand-peek { border-color: rgba(209, 144, 112, .48); }
.hand-peek .mp-icon {
  width: 13px;
  height: 13px;
  color: #e8c77f;
  flex: 0 0 auto;
}
.side-enemy .hand-peek .mp-icon { color: #ffb29a; }
.hand-peek b {
  min-width: 8px;
  text-align: center;
  font-size: 10.5px;
  font-weight: 800;
  font-family: Georgia, 'Times New Roman', serif;
  color: #fff2d3;
}

/* 限定技卡面文字与男女声 */
.lb-skill .lb-desc {
  margin: 4px 2px 0;
  font-size: 10px;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: .2px;
  color: #d8c5a4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}
.lb-voice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: 100%;
  margin: 6px auto 0;
  padding: 3px 9px 3px 4px;
  border-radius: 99px;
  border: 1px solid rgba(137, 174, 255, .4);
  background: linear-gradient(180deg, rgba(19, 24, 45, .9), rgba(8, 8, 14, .92));
  color: #dbe9ff;
  font-size: 9.5px;
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.lb-voice.is-female {
  border-color: rgba(214, 146, 255, .48);
  background: linear-gradient(180deg, rgba(46, 20, 60, .92), rgba(18, 8, 24, .92));
  color: #f6dcff;
  box-shadow: 0 0 12px rgba(195, 98, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.lb-voice.is-male {
  box-shadow: 0 0 12px rgba(94, 154, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.lbv-gender {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 15px;
  padding: 0 5px;
  border-radius: 99px;
  background: linear-gradient(180deg, #8fc0ff, #3f72b8);
  color: #0e223d;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .4px;
}
.lb-voice.is-female .lbv-gender {
  background: linear-gradient(180deg, #f1b4ff, #9a4bc0);
  color: #2e0b3d;
}
.lb-voice b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: .3px;
}
.lb-voice em {
  font-style: normal;
  opacity: .8;
  letter-spacing: 1px;
}

/* 台词字幕增加男女声标签 */
.voice-line p { flex: 1; min-width: 0; }
.voice-line .vl-gender {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 16px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .3px;
}
.voice-line .vl-gender.is-male {
  color: #ddecff;
  background: linear-gradient(180deg, #2b5d9d, #17365e);
  border: 1px solid rgba(133, 183, 255, .38);
}
.voice-line .vl-gender.is-female {
  color: #ffe4fb;
  background: linear-gradient(180deg, #7c3f88, #4d2055);
  border: 1px solid rgba(220, 151, 255, .4);
}
.voice-line .vl-skill {
  display: block;
  margin-bottom: 1px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .4px;
  color: #e8c77f;
}

.hand-peek.is-empty {
  opacity: .58;
  filter: saturate(.7);
}

/* 旧内核兜底：fixed 全屏层 */
.limit-burst {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.lb-void,
.lb-flash,
.lb-storm,
.lb-particles,
.lb-shock,
.lb-art,
.lb-sweep {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* 旧内核没有 aspect-ratio 时给限定技卡面一个高度 */
.lb-card { height: 62vh; }
@supports (aspect-ratio: 1 / 1) {
  .lb-card { height: auto; }
}

/* 旧内核没有 min() 时给限定技卡面一个宽度 */
.lb-card { width: 286px; max-width: 74vw; }
@media (max-height: 700px) {
  .lb-card { width: 240px; max-width: 62vw; }
}

.hand-peek {
  height: 22px;
  padding: 0 7px 0 4px;
  gap: 3px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .4), 0 0 9px rgba(232, 199, 127, .14), inset 0 1px 0 rgba(255, 232, 183, .14);
}
.hand-peek .mp-icon { width: 15px; height: 15px; }
.hand-peek b { font-size: 12px; }

.lb-hero.is-face,
.lb-clone.is-face {
  top: -8%;
  bottom: 0;
  height: auto;
  background-position: center 18%;
}

.lb-quote {
  margin: 4px 4px 0;
  font-size: 9.5px;
  line-height: 1.4;
  color: #b9a78d;
  text-align: center;
  letter-spacing: .2px;
}

@keyframes handBump {
  0% { transform: scale(.92); }
  55% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.hand-peek.is-bump { animation: handBump .45s ease; }

@media (max-width: 360px) {
  .hand-peek { height: 20px; padding: 0 5px 0 3px; gap: 2px; }
  .hand-peek .mp-icon { width: 13px; height: 13px; }
  .hand-peek b { font-size: 11px; }
}
