:root {
  color-scheme: dark;
  --ink: #f2fbff;
  --soft: #b8dfff;
  --blue: #64d9ff;
  --deep: #061323;
  --panel: rgba(8, 20, 38, 0.9);
  --edge: rgba(158, 228, 255, 0.52);
  --gold: #ffe28a;
  --orange: #ffb34d;
  --red: #ff5968;
  --green: #6fe68b;
  --app-vw: 100vw;
  --app-vh: 100vh;
  --app-safe-vw: var(--app-vw);
  --app-safe-vh: var(--app-vh);
}

@supports (height: 100dvh) {
  :root {
    --app-vw: 100dvw;
    --app-vh: 100dvh;
  }
}

@supports (height: 100svh) {
  :root {
    --app-safe-vw: min(var(--app-vw), 100svw);
    --app-safe-vh: min(var(--app-vh), 100svh);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #050b16;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

button {
  font: inherit;
}

.game-shell {
  width: min(960px, 100vw);
  aspect-ratio: 16 / 9;
  max-height: 100vh;
  padding: 0;
  border: 1px solid #152941;
  background: #000;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.62);
}

.classic-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(244, 198, 82, 0.22), transparent 11%),
    radial-gradient(ellipse at 50% 42%, rgba(78, 185, 255, 0.12), transparent 32%),
    linear-gradient(180deg, #695b4c 0%, #40344d 42%, #1a1830 78%, #07101d 100%);
}

.classic-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.38), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.38)),
    radial-gradient(circle at 28% 46%, rgba(90, 208, 255, 0.13), transparent 24%),
    radial-gradient(circle at 73% 47%, rgba(129, 90, 255, 0.12), transparent 24%);
  pointer-events: none;
}

.top-hud {
  position: absolute;
  z-index: 5;
  top: 5px;
  left: 6px;
  right: 6px;
  display: grid;
  grid-template-columns: 225px 1fr 225px;
  align-items: start;
  pointer-events: none;
}

.fighter-card {
  min-height: 66px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 6px;
  padding: 5px 7px;
  border: 1px solid rgba(151, 233, 255, 0.55);
  border-radius: 999px 12px 12px 999px;
  background:
    linear-gradient(180deg, rgba(35, 87, 159, 0.78), rgba(7, 19, 44, 0.9)),
    rgba(10, 24, 45, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 2px 12px rgba(0, 0, 0, 0.45);
}

.fighter-card.is-enemy {
  justify-self: end;
  grid-template-columns: 1fr 52px;
  border-radius: 12px 999px 999px 12px;
}

.fighter-card.is-enemy .avatar {
  order: 2;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(163, 244, 255, 0.95);
  background:
    linear-gradient(145deg, rgba(129, 245, 255, 0.62), rgba(19, 63, 154, 0.7));
  box-shadow: 0 0 14px rgba(97, 221, 255, 0.75);
  overflow: hidden;
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.fighter-name-row {
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  overflow: hidden;
}

.fighter-name {
  min-width: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fighter-title {
  color: #fffd63;
  font-size: 10px;
  white-space: nowrap;
}

.bar-group {
  display: grid;
  gap: 2px;
}

.bar-line {
  display: grid;
  grid-template-columns: 18px 1fr 55px;
  align-items: center;
  gap: 4px;
  color: #d9f6ff;
  font-size: 10px;
  line-height: 1;
}

.bar-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
}

.hp-fill {
  background: linear-gradient(90deg, #e31b42, #ff9b55);
}

.mp-fill {
  background: linear-gradient(90deg, #3c8dff, #58f2ff);
}

.fp-fill {
  background: linear-gradient(90deg, #f5d94e, #ff9b1f);
}

.status-row {
  display: flex;
  min-height: 16px;
  margin-top: 3px;
  gap: 3px;
  flex-wrap: wrap;
}

.stat-chip-row {
  display: flex;
  gap: 3px;
  margin-top: 2px;
  color: #dffbff;
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
}

.stat-chip-row span {
  padding: 1px 3px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.28);
}

.status-pill {
  height: 15px;
  padding: 1px 5px;
  border-radius: 999px;
  border: 1px solid rgba(204, 244, 255, 0.38);
  background: rgba(5, 14, 27, 0.55);
  color: #d7fbff;
  font-size: 10px;
  line-height: 12px;
}

.round-medallion {
  justify-self: center;
  width: 116px;
  height: 82px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 223, 129, 0.58), rgba(77, 49, 24, 0.12) 45%, transparent 65%);
  text-shadow: 0 3px 10px #000;
}

.round-medallion span {
  color: #fff3a8;
  font-size: 12px;
  font-weight: 700;
}

.round-medallion strong {
  color: #fff1b2;
  font-size: 42px;
  line-height: 0.85;
}

.battlefield {
  position: absolute;
  inset: 0 0 108px 0;
  display: grid;
  grid-template-columns: 1fr 92px 1fr;
  align-items: center;
  padding: 65px 44px 20px;
}

.arena-side {
  position: relative;
  height: 100%;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.magic-ring {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 250px;
  height: 96px;
  transform: translateX(-50%);
  border: 3px solid rgba(88, 127, 255, 0.55);
  border-radius: 50%;
  box-shadow:
    inset 0 0 24px rgba(85, 183, 255, 0.32),
    0 0 18px rgba(65, 119, 255, 0.36);
}

.magic-ring::before,
.magic-ring::after {
  content: "";
  position: absolute;
  inset: 14px 26px;
  border: 1px solid rgba(107, 202, 255, 0.45);
  border-radius: 50%;
}

.magic-ring::after {
  inset: 30px 72px;
}

.mage-figure,
.pet-sprite {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 10px 13px rgba(0, 0, 0, 0.5));
}

.mage-figure {
  width: 178px;
  height: 228px;
  display: grid;
  place-items: center;
  animation: mageIdle 2.8s ease-in-out infinite;
}

.mage-figure::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 12px;
  width: 82px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(39, 194, 255, 0.34), rgba(39, 194, 255, 0.12) 46%, transparent 72%);
  filter: blur(2px);
  animation: floatShadow 2.8s ease-in-out infinite;
}

.mage-sprite {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 34px;
  width: auto;
  height: 198px;
  transform: translateX(-50%) scaleX(-1);
  transform-origin: 50% 88%;
  filter: drop-shadow(0 0 8px rgba(104, 232, 255, 0.45));
  user-select: none;
  pointer-events: none;
}

.enemy-figure .mage-sprite {
  transform: translateX(-50%);
}

.enemy-figure .male-sequence-sprite {
  bottom: 20px;
  height: 238px;
}

.player-figure .female-sequence-sprite {
  bottom: 20px;
  height: 238px;
}

.enemy-figure .male-sequence-sprite.is-sequence-action,
.enemy-figure .male-sequence-sprite.is-defeat-sequence,
.player-figure .female-sequence-sprite.is-sequence-action,
.player-figure .female-sequence-sprite.is-defeat-sequence {
  bottom: 20px;
  height: 238px;
}

.ribbon-trail {
  position: absolute;
  z-index: 1;
  top: 82px;
  width: 72px;
  height: 134px;
  pointer-events: none;
  opacity: 0.92;
  filter: drop-shadow(0 0 5px rgba(171, 241, 255, 0.56));
  animation: ribbonDrift 3.4s ease-in-out infinite;
}

.ribbon-trail,
.waist-ice {
  display: none;
}

.ribbon-trail::before,
.ribbon-trail::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(185, 249, 255, 0.72), rgba(255, 255, 255, 0.96) 36%, rgba(223, 248, 255, 0.88) 72%);
}

.ribbon-trail::before {
  inset: 0 auto auto 25px;
  width: 13px;
  height: 128px;
  transform: rotate(19deg);
}

.ribbon-trail::after {
  inset: 62px auto auto 15px;
  width: 11px;
  height: 72px;
  transform: rotate(-18deg);
  opacity: 0.72;
}

.ribbon-left {
  left: 6px;
  transform: rotate(18deg);
}

.ribbon-right {
  right: 4px;
  transform: scaleX(-1) rotate(16deg);
  animation-delay: -1.1s;
}

.waist-ice {
  position: absolute;
  left: 50%;
  top: 112px;
  width: 154px;
  height: 54px;
  transform: translateX(-50%) rotate(-8deg);
  pointer-events: none;
  animation: waistOrbit 2.2s ease-in-out infinite;
}

.waist-ice-back {
  z-index: 2;
  opacity: 0.72;
}

.waist-ice-front {
  z-index: 5;
  top: 119px;
  opacity: 0.96;
  animation-delay: -0.28s;
}

.waist-ice i {
  position: absolute;
  width: 21px;
  height: 9px;
  border: 1px solid rgba(234, 255, 255, 0.95);
  clip-path: polygon(0 50%, 28% 0, 100% 21%, 75% 76%, 24% 100%);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(119, 234, 255, 0.94) 48%, rgba(25, 143, 208, 0.92));
  box-shadow: 0 0 8px rgba(106, 236, 255, 0.7);
  animation: shardBob 1.65s ease-in-out infinite;
}

.waist-ice-back i:nth-child(1) { left: 9px; top: 23px; transform: rotate(-15deg) scale(0.76); animation-delay: -0.1s; }
.waist-ice-back i:nth-child(2) { left: 34px; top: 13px; transform: rotate(8deg) scale(0.58); animation-delay: -0.4s; }
.waist-ice-back i:nth-child(3) { left: 66px; top: 8px; transform: rotate(-6deg) scale(0.72); animation-delay: -0.75s; }
.waist-ice-back i:nth-child(4) { right: 34px; top: 13px; transform: rotate(12deg) scale(0.56); animation-delay: -1.05s; }
.waist-ice-back i:nth-child(5) { right: 8px; top: 23px; transform: rotate(19deg) scale(0.78); animation-delay: -1.35s; }

.waist-ice-front i:nth-child(1) { left: 0; top: 22px; transform: rotate(13deg) scale(0.82); animation-delay: -0.22s; }
.waist-ice-front i:nth-child(2) { left: 22px; top: 30px; transform: rotate(-7deg) scale(0.64); animation-delay: -0.52s; }
.waist-ice-front i:nth-child(3) { left: 49px; top: 33px; transform: rotate(5deg) scale(0.86); animation-delay: -0.82s; }
.waist-ice-front i:nth-child(4) { right: 51px; top: 34px; transform: rotate(-2deg) scale(0.9); animation-delay: -1.12s; }
.waist-ice-front i:nth-child(5) { right: 26px; top: 30px; transform: rotate(7deg) scale(0.66); animation-delay: -1.42s; }
.waist-ice-front i:nth-child(6) { right: 2px; top: 22px; transform: rotate(-14deg) scale(0.82); animation-delay: -1.7s; }

.freeze-cage {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 34px;
  width: 188px;
  height: 182px;
  transform: translateX(-50%);
  display: none;
  pointer-events: none;
  background: none;
  filter: drop-shadow(0 0 8px rgba(138, 239, 255, 0.52));
}

.freeze-cage::before,
.freeze-cage::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 122px;
  height: 146px;
  transform: translateX(-50%);
  border-radius: 44% 44% 40% 40%;
  opacity: 0.76;
  display: none;
}

.freeze-cage::before {
  top: 12px;
  border-left: 2px solid rgba(225, 255, 255, 0.54);
  border-right: 2px solid rgba(111, 225, 255, 0.5);
  background:
    linear-gradient(112deg, transparent 0 16%, rgba(255, 255, 255, 0.34) 17% 19%, transparent 20% 43%, rgba(255, 255, 255, 0.28) 44% 46%, transparent 47%),
    linear-gradient(76deg, transparent 0 30%, rgba(151, 237, 255, 0.32) 31% 33%, transparent 34% 72%, rgba(255, 255, 255, 0.22) 73% 75%, transparent 76%),
    radial-gradient(ellipse at 50% 24%, rgba(218, 255, 255, 0.22), rgba(73, 203, 255, 0.12) 50%, transparent 72%);
}

.freeze-cage::after {
  top: 15px;
  border-radius: 50%;
  border: 1px solid rgba(210, 255, 255, 0.36);
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.22) 19px 21px, transparent 22px 34px);
  transform: translateX(-50%) scaleX(0.76);
  opacity: 0.46;
}

.freeze-ring {
  display: none;
  position: absolute;
  left: 50%;
  width: 132px;
  height: 31px;
  transform: translateX(-50%);
  border: 2px solid rgba(222, 255, 255, 0.74);
  border-radius: 50%;
  box-shadow:
    inset 0 0 10px rgba(130, 235, 255, 0.38),
    0 0 14px rgba(139, 240, 255, 0.62);
}

.freeze-ring::before,
.freeze-ring::after {
  content: "";
  position: absolute;
  inset: 6px 22px;
  border: 1px solid rgba(229, 255, 255, 0.48);
  border-radius: 50%;
}

.freeze-ring.top {
  top: 8px;
  animation: freezeRingTop 2.4s ease-in-out infinite;
}

.freeze-ring.bottom {
  bottom: 7px;
  animation: freezeRingBottom 2.4s ease-in-out infinite;
}

.freeze-cage i {
  display: none;
  position: absolute;
  z-index: 2;
  top: 38px;
  width: 28px;
  height: 116px;
  clip-path: polygon(50% 0, 88% 13%, 73% 86%, 50% 100%, 26% 86%, 12% 13%);
  border: 1px solid rgba(239, 255, 255, 0.88);
  background:
    linear-gradient(102deg, rgba(255, 255, 255, 0.92), rgba(136, 239, 255, 0.92) 42%, rgba(39, 143, 210, 0.7)),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.28), 0 0 11px rgba(105, 230, 255, 0.7);
  opacity: 0.86;
  animation: freezeIcicle 2.1s ease-in-out infinite;
}

.freeze-cage i:nth-of-type(1) { left: 19px; top: 47px; height: 92px; transform: rotate(-9deg) scaleX(0.86); animation-delay: -0.1s; }
.freeze-cage i:nth-of-type(2) { left: 43px; top: 34px; height: 124px; transform: rotate(4deg); animation-delay: -0.36s; }
.freeze-cage i:nth-of-type(3) { left: 70px; top: 29px; height: 134px; transform: scaleX(1.08); animation-delay: -0.72s; }
.freeze-cage i:nth-of-type(4) { right: 43px; top: 34px; height: 124px; transform: rotate(-4deg); animation-delay: -1.08s; }
.freeze-cage i:nth-of-type(5) { right: 19px; top: 47px; height: 92px; transform: rotate(9deg) scaleX(0.86); animation-delay: -1.44s; }

.nameplate {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  min-width: 96px;
  padding: 3px 7px;
  border: 1px solid rgba(175, 239, 255, 0.62);
  border-radius: 999px;
  background: rgba(7, 20, 39, 0.86);
  color: #ddfbff;
  font-size: 12px;
  text-align: center;
}

.pet-sprite {
  width: 128px;
  max-height: 132px;
  object-fit: contain;
  border: 0;
  mix-blend-mode: normal;
  animation: petFloat 3.1s ease-in-out infinite, petGlow 2.7s ease-in-out infinite;
}

.player-pet {
  transform: scaleX(-1);
  animation-name: petFloatEnemy, petGlow;
}

.enemy-pet {
  transform: none;
  animation-name: petFloat, petGlow;
}

.pet-sequence-sprite {
  width: 142px;
  max-height: 150px;
}

.pet-sequence-sprite.is-pet-action {
  width: 150px;
}

.impact-layer {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 50%;
  width: 230px;
  height: 210px;
  transform: translate(-50%, -52%);
  pointer-events: none;
}

.damage-pop,
.status-pop {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  color: #fff8cf;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow:
    0 2px 0 #7c2300,
    0 0 8px rgba(255, 58, 0, 0.82),
    0 0 14px rgba(255, 238, 123, 0.7);
  animation: damageRise 920ms ease-out forwards;
}

.damage-pop.is-miss {
  color: #d8eeff;
  text-shadow: 0 2px 0 #1f4770, 0 0 10px rgba(129, 220, 255, 0.9);
}

.status-pop {
  top: 30%;
  color: #bff8ff;
  font-size: 20px;
  text-shadow: 0 2px 0 #194a80, 0 0 12px rgba(122, 232, 255, 0.95);
}

.cast-label {
  position: absolute;
  left: 50%;
  top: 17%;
  min-width: 72px;
  transform: translateX(-50%);
  padding: 3px 8px;
  border: 1px solid rgba(194, 247, 255, 0.76);
  border-radius: 999px;
  background: rgba(5, 23, 48, 0.74);
  color: #fff9b9;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 6px #000;
  animation: castLabelRise 760ms ease-out forwards;
}

.skill-effect {
  position: absolute;
  z-index: 24;
  width: 62px;
  height: 62px;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.4);
  opacity: 0;
  animation: skillTravel 920ms cubic-bezier(0.16, 0.72, 0.18, 1) forwards;
}

.skill-effect b,
.skill-effect em {
  position: absolute;
  left: 50%;
  top: -28px;
  min-width: 74px;
  transform: translateX(-50%);
  color: #fff7b6;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 6px #000, 0 0 8px rgba(101, 222, 255, 0.7);
  white-space: nowrap;
}

.skill-effect em {
  top: 52px;
  color: #aef9ff;
  font-style: normal;
  font-size: 11px;
}

.skill-effect::before,
.skill-effect::after,
.skill-effect i {
  content: "";
  position: absolute;
  display: block;
}

.skill-effect::before {
  inset: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.94), rgba(87, 227, 255, 0.72) 36%, rgba(0, 97, 205, 0.12) 72%, transparent 73%);
  box-shadow: 0 0 18px rgba(93, 236, 255, 0.86);
}

.skill-effect::after {
  left: 50%;
  top: 50%;
  width: 116px;
  height: 18px;
  transform: translate(-50%, -50%) rotate(-10deg);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(171, 246, 255, 0.84), transparent);
  filter: blur(1px);
}

.skill-effect.from-right::after {
  transform: translate(-50%, -50%) rotate(10deg);
}

.skill-effect i {
  width: 24px;
  height: 12px;
  clip-path: polygon(0 50%, 28% 0, 100% 22%, 76% 78%, 25% 100%);
  border: 1px solid rgba(237, 255, 255, 0.9);
  background: linear-gradient(135deg, #fff, #8df5ff 48%, #1d96d7);
  box-shadow: 0 0 10px rgba(116, 239, 255, 0.85);
  animation: shardScatter 920ms ease-out forwards;
}

.skill-effect i:nth-of-type(1) { left: -10px; top: 18px; rotate: -14deg; }
.skill-effect i:nth-of-type(2) { right: -10px; top: 16px; rotate: 18deg; animation-delay: 60ms; }
.skill-effect i:nth-of-type(3) { left: 16px; bottom: -8px; rotate: 38deg; animation-delay: 120ms; }
.skill-effect i:nth-of-type(4) { right: 14px; bottom: -6px; rotate: -28deg; animation-delay: 180ms; }

.skill-effect.waterfall {
  width: 72px;
  height: 86px;
}

.skill-effect.waterfall::before {
  inset: 0 17px;
  border-radius: 26px 26px 46px 46px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(92, 229, 255, 0.92), rgba(24, 121, 229, 0.32));
}

.skill-effect.ice-tornado {
  width: 84px;
  height: 94px;
}

.skill-effect.ice-tornado::before {
  inset: 8px 4px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(ellipse at 50% 52%, transparent 0 9px, rgba(221, 255, 255, 0.82) 10px 13px, transparent 14px 22px),
    radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(106, 226, 255, 0.62) 42%, rgba(33, 135, 216, 0.18) 70%, transparent 73%);
  box-shadow: 0 0 18px rgba(116, 239, 255, 0.78);
}

.skill-effect.ice-tornado::after {
  width: 90px;
  height: 44px;
  background: linear-gradient(90deg, transparent, rgba(220, 255, 255, 0.88), transparent);
  filter: blur(1px);
}

.skill-effect.water-bubble::before {
  inset: 3px;
  border: 2px solid rgba(215, 255, 255, 0.85);
  background: radial-gradient(circle at 34% 28%, #fff, rgba(133, 242, 255, 0.88) 38%, rgba(30, 143, 223, 0.44) 72%, transparent 73%);
}

.skill-effect.arcane-storm::before,
.skill-effect.arcane-burst::before {
  border-radius: 18px 50% 18px 50%;
  background: radial-gradient(circle, #fff, rgba(170, 116, 255, 0.9) 36%, rgba(74, 12, 187, 0.32) 70%, transparent);
  box-shadow: 0 0 20px rgba(162, 102, 255, 0.96);
}

.skill-effect.arcane-storm::after,
.skill-effect.arcane-burst::after {
  height: 5px;
  background: linear-gradient(90deg, transparent, #f3e9ff, #7a5cff, transparent);
  box-shadow: 0 -10px 0 rgba(154, 116, 255, 0.44), 0 10px 0 rgba(82, 223, 255, 0.38);
}

.skill-effect.ice-cannon::before,
.skill-effect.shatter-ice::before,
.skill-effect.ice::before {
  inset: 4px 15px;
  border-radius: 8px 22px 8px 22px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #fff, #a6fbff 42%, #2ba6df 75%);
}

.skill-effect.pet-moon::before,
.skill-effect.pet-ice::before {
  inset: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, rgba(112, 244, 255, 0.82) 36%, rgba(124, 103, 255, 0.26) 68%, transparent);
}

.cangqiong-charge {
  position: absolute;
  z-index: 23;
  width: 96px;
  height: 72px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: cangqiongCharge 980ms ease-out forwards;
}

.cangqiong-charge b {
  position: absolute;
  left: 50%;
  top: -22px;
  transform: translateX(-50%);
  color: #fff5a6;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  text-shadow: 0 2px 6px #000, 0 0 10px rgba(137, 239, 255, 0.86);
}

.cangqiong-charge::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 24px;
  transform: translate(-50%, -50%) rotate(-10deg);
  border: 1px solid rgba(176, 247, 255, 0.62);
  border-radius: 50%;
  box-shadow: inset 0 0 10px rgba(102, 232, 255, 0.22), 0 0 12px rgba(104, 235, 255, 0.34);
}

.cangqiong-charge.from-right::before {
  transform: translate(-50%, -50%) rotate(10deg);
}

.cangqiong-charge span {
  position: absolute;
  left: 41px;
  top: 24px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 26%, #fff, rgba(119, 238, 255, 0.92) 44%, rgba(24, 115, 211, 0.42) 76%, transparent);
  box-shadow: 0 0 18px rgba(119, 238, 255, 0.86);
  animation: cangqiongOrb 980ms ease-out forwards;
}

.cangqiong-charge i {
  position: absolute;
  width: 14px;
  height: 7px;
  clip-path: polygon(0 50%, 30% 0, 100% 22%, 74% 78%, 24% 100%);
  border: 1px solid rgba(237, 255, 255, 0.88);
  background: linear-gradient(135deg, #fff, #9bf7ff 48%, #1e9bd8);
  box-shadow: 0 0 9px rgba(112, 238, 255, 0.78);
}

.cangqiong-charge i:nth-of-type(1) {
  left: 12px;
  top: 30px;
  rotate: -18deg;
  animation: cangqiongShardLoop 980ms ease-out forwards;
}

.cangqiong-charge i:nth-of-type(2) {
  right: 12px;
  top: 52px;
  rotate: 18deg;
  animation: cangqiongShardLoop 980ms ease-out 90ms forwards;
}

.cangqiong-spell {
  position: absolute;
  z-index: 24;
  width: 150px;
  height: 330px;
  transform: translate(-50%, -61%);
  pointer-events: none;
}

.cangqiong-spell::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 150px;
  height: 335px;
  transform: translateX(-50%) scale(0.9, 0.12);
  transform-origin: 50% 95%;
  opacity: 0;
  background: url("assets/effects/cangqiong-column.webp") center / contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(142, 240, 255, 0.54));
  animation: cangqiongBitmapColumn 1080ms ease-out forwards;
}

.cangqiong-spell::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 241px;
  width: 124px;
  height: 33px;
  transform: translateX(-50%) scale(0.35);
  transform-origin: 50% 50%;
  opacity: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse, rgba(255, 255, 255, 0.92), rgba(172, 234, 255, 0.78) 38%, rgba(91, 181, 235, 0.28) 68%, transparent 72%);
  filter: blur(0.2px) drop-shadow(0 0 10px rgba(178, 248, 255, 0.65));
  animation: cangqiongBitmapSplash 1080ms ease-out forwards;
}

.cangqiong-ground {
  position: absolute;
  left: 50%;
  top: 242px;
  width: 132px;
  height: 35px;
  transform: translateX(-50%) scale(0.3);
  border-radius: 50%;
  border: 2px solid rgba(229, 255, 255, 0.86);
  opacity: 0;
  box-shadow:
    inset 0 0 14px rgba(154, 230, 255, 0.45),
    0 0 16px rgba(153, 231, 255, 0.72);
  animation: cangqiongGroundRing 1080ms ease-out forwards;
}

.cangqiong-hit-flash {
  position: absolute;
  left: 50%;
  top: 55px;
  width: 82px;
  height: 204px;
  transform: translateX(-50%);
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.68) 42%, rgba(255, 255, 255, 0.18), transparent);
  filter: blur(5px);
  animation: cangqiongColumnFlash 1080ms ease-out forwards;
}

.cangqiong-spell b {
  position: absolute;
  left: 50%;
  top: 4px;
  transform: translateX(-50%);
  color: #fff5a6;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  opacity: 0;
  text-shadow: 0 2px 6px #000, 0 0 10px rgba(137, 239, 255, 0.86);
  animation: cangqiongName 980ms ease-out forwards;
}

.sky-rune {
  display: none;
  position: absolute;
  left: 50%;
  top: 20px;
  width: 92px;
  height: 22px;
  transform: translateX(-50%);
  border: 1px solid rgba(211, 255, 255, 0.72);
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.5), rgba(111, 229, 255, 0.16) 58%, transparent 60%);
  box-shadow: inset 0 0 10px rgba(129, 240, 255, 0.28), 0 0 13px rgba(101, 225, 255, 0.46);
  animation: cangqiongRune 1040ms ease-out forwards;
}

.sky-rune::before,
.sky-rune::after {
  content: "";
  position: absolute;
  inset: 5px 16px;
  border: 1px solid rgba(180, 246, 255, 0.52);
  border-radius: 50%;
}

.sky-rune::after {
  display: none;
}

.waterfall-strand {
  display: none;
  position: absolute;
  top: 38px;
  width: 28px;
  height: 178px;
  opacity: 0;
  border-radius: 8px 8px 14px 14px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.94) 38%, rgba(103, 226, 255, 0.94) 60%, rgba(26, 127, 213, 0.26)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.52) 0 9px, rgba(62, 196, 255, 0.12) 9px 21px);
  filter: blur(0.2px) drop-shadow(0 0 9px rgba(104, 232, 255, 0.72));
  animation: cangqiongFall 980ms ease-in forwards;
}

.strand-a {
  left: 50px;
  width: 20px;
  opacity: 0;
  animation-delay: 210ms;
}

.strand-b {
  left: 64px;
  width: 32px;
  height: 188px;
  animation-delay: 270ms;
}

.strand-c {
  left: 88px;
  width: 20px;
  animation-delay: 330ms;
}

.waterfall-splash {
  display: none;
  position: absolute;
  left: 50%;
  top: 197px;
  width: 108px;
  height: 31px;
  transform: translateX(-50%) scale(0.24);
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.88), rgba(106, 230, 255, 0.72) 34%, rgba(51, 150, 225, 0.2) 66%, transparent 68%);
  box-shadow: 0 0 22px rgba(119, 235, 255, 0.8);
  animation: cangqiongSplash 980ms ease-out forwards;
}

.fall-flash {
  display: none;
  position: absolute;
  left: 50%;
  top: 54px;
  width: 78px;
  height: 166px;
  transform: translateX(-50%);
  opacity: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.86) 46%, rgba(255, 255, 255, 0));
  filter: blur(5px);
  animation: cangqiongCoreFlash 980ms ease-out forwards;
}

.cangqiong-spell i {
  display: none;
  position: absolute;
  top: 194px;
  width: 18px;
  height: 9px;
  clip-path: polygon(0 50%, 28% 0, 100% 20%, 76% 78%, 24% 100%);
  border: 1px solid rgba(237, 255, 255, 0.9);
  background: linear-gradient(135deg, #fff, #8df5ff 48%, #1d96d7);
  box-shadow: 0 0 10px rgba(116, 239, 255, 0.85);
  opacity: 0;
  animation: cangqiongImpactShard 980ms ease-out forwards;
}

.cangqiong-spell i:nth-of-type(1) { left: 24px; rotate: -18deg; animation-delay: 570ms; }
.cangqiong-spell i:nth-of-type(2) { left: 52px; top: 218px; rotate: 14deg; animation-delay: 620ms; }
.cangqiong-spell i:nth-of-type(3) { right: 47px; top: 216px; rotate: -7deg; animation-delay: 600ms; }
.cangqiong-spell i:nth-of-type(4) { right: 24px; rotate: 22deg; animation-delay: 650ms; }

.self-effect {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 9;
  width: 138px;
  height: 96px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: selfPulse 860ms ease-out forwards;
}

.self-effect b {
  position: absolute;
  left: 50%;
  top: -9px;
  transform: translateX(-50%);
  color: #fff7b5;
  font-size: 14px;
  font-weight: 900;
  text-shadow: 0 2px 6px #000, 0 0 8px rgba(129, 238, 255, 0.8);
  white-space: nowrap;
}

.self-effect::before {
  content: "";
  position: absolute;
  inset: 18px 10px;
  border: 2px solid rgba(162, 244, 255, 0.76);
  border-radius: 50%;
  box-shadow: inset 0 0 20px rgba(95, 230, 255, 0.35), 0 0 20px rgba(102, 232, 255, 0.46);
}

.self-effect.frost-armor::before,
.self-effect.ice-shield::before {
  background: radial-gradient(ellipse, rgba(212, 255, 255, 0.22), rgba(79, 194, 255, 0.08) 62%, transparent 63%);
}

.self-effect.pet-aura::before {
  border-color: rgba(255, 251, 163, 0.8);
  box-shadow: inset 0 0 18px rgba(255, 244, 126, 0.34), 0 0 20px rgba(127, 246, 255, 0.46);
}

.freeze-burst {
  position: absolute;
  left: 50%;
  top: 44%;
  z-index: 12;
  width: 154px;
  height: 148px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.freeze-burst::before,
.freeze-burst::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0;
}

.freeze-burst::before {
  width: 126px;
  height: 36px;
  border: 2px solid rgba(226, 255, 255, 0.9);
  box-shadow: 0 0 18px rgba(124, 237, 255, 0.86), inset 0 0 12px rgba(255, 255, 255, 0.44);
  animation: freezeBurstRing 880ms ease-out forwards;
}

.freeze-burst::after {
  width: 104px;
  height: 104px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.92), rgba(117, 233, 255, 0.55) 40%, transparent 68%);
  animation: freezeBurstFlash 620ms ease-out forwards;
}

.freeze-burst i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 12px;
  clip-path: polygon(0 50%, 28% 0, 100% 20%, 74% 78%, 24% 100%);
  border: 1px solid rgba(238, 255, 255, 0.9);
  background: linear-gradient(135deg, #fff, #8ff5ff 48%, #229bd9);
  box-shadow: 0 0 10px rgba(116, 239, 255, 0.82);
  opacity: 0;
  animation: freezeBurstShard 880ms ease-out forwards;
}

.freeze-burst i:nth-child(1) { --x: -64px; --y: -34px; rotate: -16deg; }
.freeze-burst i:nth-child(2) { --x: -42px; --y: 30px; rotate: 22deg; animation-delay: 40ms; }
.freeze-burst i:nth-child(3) { --x: -8px; --y: -58px; rotate: 8deg; animation-delay: 70ms; }
.freeze-burst i:nth-child(4) { --x: 30px; --y: 42px; rotate: -30deg; animation-delay: 90ms; }
.freeze-burst i:nth-child(5) { --x: 58px; --y: -24px; rotate: 18deg; animation-delay: 120ms; }
.freeze-burst i:nth-child(6) { --x: 66px; --y: 22px; rotate: -8deg; animation-delay: 150ms; }

.defeat-bubbles {
  position: absolute;
  z-index: 12;
  left: 50%;
  top: 49%;
  width: 160px;
  height: 190px;
  transform: translate(-50%, -52%);
  pointer-events: none;
}

.defeat-bubbles::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 84px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(230, 255, 255, 0.62), rgba(113, 215, 255, 0.24) 54%, transparent 72%);
  animation: defeatMist 1500ms ease-out forwards;
}

.defeat-bubbles i {
  position: absolute;
  left: 50%;
  bottom: 42px;
  width: var(--s);
  height: var(--s);
  border: 1px solid rgba(224, 255, 255, 0.82);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 25%, rgba(255, 255, 255, 0.9), rgba(140, 230, 255, 0.52) 42%, rgba(54, 154, 220, 0.12) 72%, transparent);
  box-shadow: 0 0 9px rgba(126, 232, 255, 0.58);
  opacity: 0;
  animation: defeatBubble 1450ms ease-out forwards;
}

.defeat-bubbles i:nth-child(1) { --s: 14px; --x: -54px; --rise: -128px; animation-delay: 20ms; }
.defeat-bubbles i:nth-child(2) { --s: 9px; --x: -31px; --rise: -158px; animation-delay: 120ms; }
.defeat-bubbles i:nth-child(3) { --s: 18px; --x: -12px; --rise: -136px; animation-delay: 70ms; }
.defeat-bubbles i:nth-child(4) { --s: 11px; --x: 11px; --rise: -172px; animation-delay: 180ms; }
.defeat-bubbles i:nth-child(5) { --s: 16px; --x: 35px; --rise: -143px; animation-delay: 40ms; }
.defeat-bubbles i:nth-child(6) { --s: 8px; --x: 54px; --rise: -164px; animation-delay: 220ms; }
.defeat-bubbles i:nth-child(7) { --s: 12px; --x: -7px; --rise: -195px; animation-delay: 280ms; }
.defeat-bubbles i:nth-child(8) { --s: 7px; --x: 24px; --rise: -202px; animation-delay: 330ms; }

.arena-side.is-casting .mage-sprite {
  animation: castLean 720ms ease-out;
}

.arena-left.is-casting .mage-sprite {
  animation-name: castLeanLeft;
}

.arena-right.is-casting .mage-sprite {
  animation-name: castLeanRight;
}

.arena-side.is-casting .magic-ring {
  animation: ringCast 720ms ease-out;
}

.arena-side.is-cangqiong-casting .mage-sprite {
  animation: cangqiongCastLean 1120ms ease-out;
}

.arena-left.is-cangqiong-casting .mage-sprite {
  animation-name: cangqiongCastLeft;
}

.arena-right.is-cangqiong-casting .mage-sprite {
  animation-name: cangqiongCastRight;
}

.arena-side.is-cangqiong-casting .mage-figure {
  animation: casterFloatLock 1120ms ease-out, mageIdle 2.8s ease-in-out infinite 1120ms;
}

.arena-side.is-cangqiong-casting .magic-ring {
  animation: cangqiongRing 1120ms ease-out;
}

.arena-side.is-pet-casting .pet-sprite {
  animation: petCast 680ms ease-out, petGlow 2.7s ease-in-out infinite;
}

.arena-left.is-pet-casting .pet-sprite {
  animation: petCastEnemy 680ms ease-out, petGlow 2.7s ease-in-out infinite;
}

.arena-side.is-hit .mage-figure {
  animation: hitShake 430ms ease-out, mageIdle 2.8s ease-in-out infinite;
}

.arena-left.is-hit .mage-figure {
  animation-name: hitShakeLeft, mageIdle;
}

.arena-right.is-hit .mage-figure {
  animation-name: hitShakeRight, mageIdle;
}

.arena-side.is-water-crushed .mage-figure {
  animation: waterCrushed 780ms ease-out, mageIdle 2.8s ease-in-out infinite;
}

.arena-left.is-water-crushed .mage-figure {
  animation-name: waterCrushedLeft, mageIdle;
}

.arena-right.is-water-crushed .mage-figure {
  animation-name: waterCrushedRight, mageIdle;
}

.arena-side.is-dodging .mage-figure {
  animation: dodgeSlide 420ms ease-out, mageIdle 2.8s ease-in-out infinite;
}

.arena-side.is-frozen-lock .magic-ring {
  animation: freezeLock 620ms ease-out;
}

.arena-side.is-frozen .mage-sprite {
  filter:
    drop-shadow(0 0 10px rgba(164, 244, 255, 0.95))
    saturate(1.15)
    brightness(1.08);
}

.arena-side.is-frozen .freeze-cage {
  display: block;
  animation: freezeCageAppear 420ms ease-out both, freezePulse 2.2s ease-in-out infinite 420ms;
}

.arena-side.is-frozen .freeze-cage::before,
.arena-side.is-frozen .freeze-cage::after,
.arena-side.is-frozen .freeze-ring,
.arena-side.is-frozen .freeze-cage i {
  display: block;
}

.arena-side.is-freeze-impact .mage-figure {
  animation: freezeHit 820ms ease-out, mageIdle 2.8s ease-in-out infinite;
}

.arena-side.is-defeated .mage-figure {
  animation: bubbleVanish 1500ms ease-out forwards;
}

.arena-side.is-defeated .nameplate,
.arena-side.is-defeated .magic-ring {
  animation: defeatedFade 1500ms ease-out forwards;
}

.center-badge {
  z-index: 3;
  align-self: center;
  justify-self: center;
  min-width: 78px;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 224, 128, 0.65);
  background: rgba(6, 18, 34, 0.82);
  color: #fff0a5;
  font-size: 15px;
  font-weight: 800;
  text-shadow: 0 2px 8px #000;
}

.command-deck {
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  bottom: 0;
  height: 116px;
  display: grid;
  grid-template-columns: 300px 1fr 156px;
  gap: 7px;
  padding: 6px 8px 7px;
  background: linear-gradient(180deg, rgba(5, 8, 15, 0.1), rgba(2, 5, 12, 0.92) 24%);
}

.battle-log {
  border: 1px solid rgba(127, 192, 255, 0.48);
  border-radius: 8px;
  background: rgba(8, 14, 26, 0.88);
  overflow: hidden;
}

.chat-tabs {
  height: 23px;
  display: flex;
  align-items: end;
  gap: 4px;
  padding: 3px 8px 0;
}

.chat-tabs span {
  min-width: 46px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(#d8f7ff, #74a7ce);
  color: #174266;
  font-size: 12px;
  font-weight: 700;
}

.log-lines {
  height: 84px;
  overflow: auto;
  padding: 4px 8px 8px;
  color: #eefbff;
  font-size: 12px;
  line-height: 1.34;
}

.log-lines p {
  margin: 0 0 2px;
}

.hand-zone {
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-rows: 20px 1fr;
  gap: 3px;
}

.selection-strip {
  min-width: 0;
  height: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}

.empty-selection,
.selected-chip {
  font-size: 12px;
  color: #bee9ff;
}

.selected-chip {
  max-width: 128px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(169, 234, 255, 0.38);
  background: rgba(38, 113, 163, 0.38);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hand {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(74px, 1fr));
  gap: 7px;
}

.card {
  position: relative;
  min-width: 0;
  height: 86px;
  border: 2px solid rgba(116, 146, 255, 0.62);
  border-radius: 5px;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #0a1222;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.52);
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
  filter: saturate(1.08) contrast(1.02);
}

.card:active:not(.is-locked):not(.is-spent) {
  transform: translateY(-3px) scale(0.96);
}

.card:hover:not(.is-locked):not(.is-spent) {
  transform: translateY(-5px);
  filter: saturate(1.16) contrast(1.04) brightness(1.09);
}

.card.is-unavailable:not(.is-selected):not(.is-spent) {
  border-color: rgba(185, 98, 118, 0.72);
  filter: saturate(0.86) brightness(0.92);
}

.card.card-magic {
  border-color: #728fff;
}

.card.card-skill {
  border-color: #ff6b84;
}

.card.card-combo {
  border-color: #78e678;
}

.card.is-selected {
  transform: translateY(-10px);
  border-color: #ffe18b;
  box-shadow: 0 0 0 2px rgba(255, 225, 139, 0.34), 0 0 18px rgba(255, 225, 139, 0.36);
}

.hand.is-resolving .card.is-locked {
  cursor: default;
  opacity: 1;
  filter: saturate(1.08) contrast(1.02);
}

.card.is-spent {
  pointer-events: none;
  border-color: rgba(210, 218, 230, 0.72);
  box-shadow: 0 0 0 1px rgba(229, 237, 255, 0.18), 0 0 13px rgba(190, 214, 232, 0.24);
  animation: cardSpend 360ms ease-out forwards;
}

.card-detail {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: 96px;
  width: 238px;
  min-height: 148px;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 9px;
  padding: 8px;
  border: 2px solid rgba(179, 226, 255, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(32, 88, 145, 0.95), rgba(9, 24, 56, 0.97)),
    radial-gradient(circle at 50% 0, rgba(159, 247, 255, 0.35), transparent 60%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.62), inset 0 0 16px rgba(145, 230, 255, 0.22);
  color: #effcff;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px) scale(0.95);
  transition: opacity 120ms ease, transform 120ms ease;
}

.card-detail.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.card-flyer {
  position: absolute;
  z-index: 26;
  width: 76px;
  height: 96px;
  border: 2px solid rgba(171, 221, 255, 0.88);
  border-radius: 7px;
  overflow: hidden;
  background: #101b38;
  box-shadow: 0 0 16px rgba(121, 219, 255, 0.58);
  pointer-events: none;
}

.card-flyer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-flyer span {
  position: absolute;
  left: 3px;
  right: 3px;
  top: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 1px 5px #000;
}

.card-intro-card {
  animation: cardIntroFlight var(--card-intro-flight, 860ms) cubic-bezier(0.18, 0.72, 0.18, 1) forwards;
  transform-origin: 50% 50%;
}

.card-intro-card::before,
.card-intro-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.card-intro-card::before {
  inset: -15px;
  border-radius: 50%;
  border: 2px solid rgba(187, 244, 255, 0.78);
  opacity: 0;
  box-shadow: inset 0 0 16px rgba(117, 237, 255, 0.35), 0 0 22px rgba(113, 230, 255, 0.56);
  animation: cardCenterSeal var(--card-intro-flight, 860ms) ease-out forwards;
}

.card-intro-card::after {
  inset: -32px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.96), rgba(118, 239, 255, 0.65) 32%, rgba(82, 156, 255, 0.24) 58%, transparent 64%),
    conic-gradient(from 20deg, transparent, rgba(255, 255, 255, 0.55), transparent 18%, rgba(112, 238, 255, 0.46), transparent 36%);
  opacity: 0;
  mix-blend-mode: screen;
  animation: cardCenterBurst var(--card-intro-flight, 860ms) ease-out forwards;
}

.card-flyer.from-player {
  left: 43%;
  bottom: 120px;
  animation: flyCardPlayer 820ms ease-in forwards;
}

.card-flyer.from-enemy {
  right: 43%;
  bottom: 120px;
  animation: flyCardEnemy 820ms ease-in forwards;
}

.detail-card-face {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  border: 2px solid rgba(128, 204, 255, 0.85);
  background: #09132c;
}

.detail-card-face img {
  width: 100%;
  height: 100%;
  min-height: 124px;
  object-fit: contain;
  background: #09132c;
}

.detail-card-face span {
  position: absolute;
  right: 3px;
  top: 3px;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(16, 31, 78, 0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.detail-card-copy strong {
  display: block;
  color: #fff8ba;
  font-size: 17px;
  line-height: 1.1;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.detail-card-copy em {
  display: inline-block;
  margin: 4px 0 5px;
  color: #9cefff;
  font-style: normal;
  font-size: 12px;
}

.detail-card-copy p {
  margin: 0 0 7px;
  color: #e8f9ff;
  font-size: 12px;
  line-height: 1.32;
}

.detail-card-copy dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 0;
}

.detail-card-copy div {
  padding: 3px 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.28);
}

.detail-card-copy dt {
  color: #9fdfff;
  font-size: 10px;
}

.detail-card-copy dd {
  margin: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.card-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: saturate(1.12) contrast(1.05);
  transition: opacity 120ms ease, filter 120ms ease;
}

.card-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 4px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.68));
}

.card.is-spent .card-art {
  opacity: 0.52;
  filter: grayscale(1) brightness(0.62) contrast(0.95);
}

.card.is-spent .card-overlay {
  background: linear-gradient(180deg, rgba(38, 42, 48, 0.14), rgba(10, 11, 14, 0.78));
}

.card-name {
  min-height: 24px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 1px 5px #000;
  overflow-wrap: anywhere;
}

.card-level {
  position: absolute;
  top: 3px;
  right: 4px;
  z-index: 2;
  min-width: 24px;
  padding: 1px 3px;
  border-radius: 3px;
  background: rgba(18, 37, 86, 0.86);
  color: #ecf7ff;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 1px 4px #000;
}

.card-cost {
  display: flex;
  gap: 3px;
}

.cost-tag {
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.card-power {
  position: absolute;
  right: 4px;
  bottom: 24px;
  min-width: 30px;
  padding: 2px 4px;
  border-radius: 5px;
  background: #ffe15d;
  color: #1d1b0b;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.action-panel {
  position: relative;
  height: 100%;
}

.primary-action,
.secondary-action {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  text-shadow: 0 1px 5px #000;
  cursor: pointer;
  overflow: hidden;
}

.primary-action:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  background: radial-gradient(circle at 34% 25%, #ffffff, #bfc5ca 42%, #59626d 72%, #2f3440);
}

.cost-preview {
  display: none;
}

.primary-action {
  position: absolute;
  left: 15px;
  bottom: 22px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 25%, #ffffff, #ffe593 40%, #ef9e2a 70%, #7a4415);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 0 16px rgba(255, 197, 77, 0.36), inset 0 2px 0 rgba(255, 255, 255, 0.42);
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
}

.primary-action:not(:disabled):hover,
.secondary-action:hover,
.round-tool:hover {
  filter: brightness(1.13);
  box-shadow: 0 0 16px rgba(255, 229, 146, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.42);
}

.primary-action:active:not(:disabled),
.secondary-action:active,
.round-tool:active {
  transform: scale(0.94);
  filter: brightness(1.15);
}

.primary-action.is-clicked,
.secondary-action.is-clicked,
.round-tool.is-clicked,
.card.is-clicked:not(.is-spent) {
  filter: brightness(1.22);
}

.primary-action.is-clicked::after,
.secondary-action.is-clicked::after,
.round-tool.is-clicked::after,
.card.is-clicked::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.74), transparent 62%);
  animation: buttonRipple 260ms ease-out forwards;
  pointer-events: none;
}

.secondary-action {
  position: absolute;
  right: 4px;
  bottom: 2px;
  width: 52px;
  height: 25px;
  border-radius: 999px;
  background: linear-gradient(#a9b7c5, #4c5869);
  font-size: 11px;
}

.round-tool {
  position: absolute;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: radial-gradient(circle at 34% 26%, #ffffff, #c8ced5 46%, #606b78 78%, #303641);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-shadow: 0 1px 5px #000;
  cursor: pointer;
}

.item-action {
  right: 2px;
  top: 2px;
}

.pet-action {
  right: 2px;
  top: 43px;
}

.skip-action {
  right: 45px;
  top: 71px;
}

.bgm-toggle {
  position: absolute;
  z-index: 40;
  right: 10px;
  bottom: 124px;
  width: 42px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: radial-gradient(circle at 34% 26%, #ffffff, #c8ced5 46%, #606b78 78%, #303641);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 1px 5px #000;
  cursor: pointer;
}

.bgm-toggle.is-on {
  background: radial-gradient(circle at 34% 26%, #ffffff, #dff8ff 42%, #31a8df 74%, #125681);
  box-shadow: 0 0 15px rgba(88, 220, 255, 0.46), inset 0 2px 0 rgba(255, 255, 255, 0.56);
}

.toast {
  color: #ffe083;
}

@media (max-width: 760px) {
  html,
  body {
    width: var(--app-vw);
    height: var(--app-safe-vh);
    min-height: var(--app-safe-vh);
  }

  body {
    overflow: hidden;
    place-items: center;
    padding: 0;
  }

  .game-shell {
    width: min(var(--app-safe-vw), calc(var(--app-safe-vh) * 16 / 9));
    height: min(var(--app-safe-vh), calc(var(--app-safe-vw) * 9 / 16));
    min-width: 0;
    max-height: none;
    aspect-ratio: auto;
    border: 0;
    box-shadow: none;
  }
}

.mobile-rotate-tip {
  display: none;
}

@media (max-width: 920px) and (orientation: landscape) {
  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  body {
    padding: 0;
    place-items: center;
    touch-action: manipulation;
  }

  .game-shell {
    width: min(calc(var(--app-safe-vw) - 12px), calc((var(--app-safe-vh) - 12px) * 16 / 9));
    height: min(calc(var(--app-safe-vh) - 12px), calc((var(--app-safe-vw) - 12px) * 9 / 16));
    max-height: none;
    aspect-ratio: auto;
    border: 0;
    box-shadow: none;
  }
}

@media (orientation: landscape) and (max-height: 760px) {
  html,
  body {
    width: var(--app-vw);
    height: var(--app-safe-vh);
    min-height: var(--app-safe-vh);
    overflow: hidden;
  }

  body {
    padding: 0;
    place-items: center;
    touch-action: manipulation;
  }

  .game-shell {
    width: min(calc(var(--app-safe-vw) - 18px), calc((var(--app-safe-vh) - 18px) * 16 / 9));
    height: min(calc(var(--app-safe-vh) - 18px), calc((var(--app-safe-vw) - 18px) * 9 / 16));
    min-width: 0;
    max-height: none;
    aspect-ratio: auto;
    border: 0;
    box-shadow: none;
  }

  .top-hud {
    top: 3px;
    left: 5px;
    right: 5px;
    grid-template-columns: minmax(118px, 24%) 1fr minmax(118px, 24%);
  }

  .fighter-card {
    min-height: 42px;
    grid-template-columns: 31px minmax(0, 1fr);
    gap: 3px;
    padding: 3px 5px;
  }

  .fighter-card.is-enemy {
    grid-template-columns: minmax(0, 1fr) 31px;
  }

  .fighter-stats {
    min-width: 0;
  }

  .avatar {
    width: 31px;
    height: 31px;
    border-width: 1px;
  }

  .fighter-name-row {
    height: 11px;
  }

  .fighter-name {
    font-size: 8px;
  }

  .fighter-title {
    display: none;
  }

  .bar-line {
    grid-template-columns: 12px minmax(42px, 1fr) 34px;
    gap: 2px;
    font-size: 7px;
  }

  .bar-line > span:last-child {
    display: block;
    min-width: 0;
    overflow: hidden;
    font-size: 6px;
    white-space: nowrap;
  }

  .bar-track {
    height: 4px;
    min-width: 42px;
  }

  .status-row,
  .stat-chip-row {
    display: none;
  }

  .round-medallion {
    width: 82px;
    height: 58px;
  }

  .round-medallion span {
    font-size: 10px;
  }

  .round-medallion strong {
    font-size: 34px;
  }

  .battlefield {
    inset: 0 0 108px 0;
    grid-template-columns: 1fr 62px 1fr;
    padding: 42px 22px 10px;
  }

  .arena-side {
    min-height: 0;
    align-items: flex-end;
    gap: 6px;
    padding-bottom: 8px;
  }

  .mage-figure {
    z-index: 4;
    width: 130px;
    height: 166px;
  }

  .pet-sprite {
    z-index: 3;
    width: 98px;
    max-height: 104px;
    margin-bottom: 18px;
  }

  .player-pet {
    margin-left: -26px;
  }

  .enemy-pet {
    margin-right: -26px;
  }

  .enemy-figure .male-sequence-sprite,
  .player-figure .female-sequence-sprite,
  .enemy-figure .male-sequence-sprite.is-sequence-action,
  .enemy-figure .male-sequence-sprite.is-defeat-sequence,
  .player-figure .female-sequence-sprite.is-sequence-action,
  .player-figure .female-sequence-sprite.is-defeat-sequence {
    bottom: 12px;
    height: 174px;
  }

  .magic-ring {
    bottom: 4px;
    width: 170px;
    height: 64px;
    border-width: 2px;
  }

  .nameplate {
    bottom: 0;
    min-width: 74px;
    padding: 2px 6px;
    font-size: 10px;
  }

  .command-deck {
    height: 110px;
    grid-template-columns: minmax(132px, 23%) minmax(0, 1fr) 82px;
    gap: 4px;
    padding: 5px 5px 6px;
  }

  .battle-log {
    border-radius: 7px;
  }

  .chat-tabs {
    height: 21px;
    padding: 2px 6px 0;
  }

  .chat-tabs span {
    min-width: 42px;
    height: 19px;
    font-size: 11px;
  }

  .log-lines {
    height: 76px;
    padding: 4px 7px 7px;
    font-size: 10px;
    line-height: 1.3;
  }

  .hand-zone {
    grid-template-rows: 18px 1fr;
    gap: 2px;
  }

  .selection-strip {
    height: 18px;
  }

  .empty-selection,
  .selected-chip {
    font-size: 10px;
  }

  .selected-chip {
    max-width: 96px;
    padding: 1px 5px;
  }

  .hand {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
  }

  .card {
    height: 86px;
    border-width: 1px;
    border-radius: 4px;
  }

  .card-overlay {
    padding: 3px;
  }

  .card-name {
    min-height: 20px;
    font-size: 10px;
  }

  .card-level {
    min-width: 20px;
    font-size: 9px;
  }

  .cost-tag {
    padding: 1px 3px;
    font-size: 9px;
  }

  .card-power {
    right: 3px;
    bottom: 21px;
    min-width: 24px;
    font-size: 10px;
  }

  .primary-action {
    left: 1px;
    bottom: 22px;
    width: 56px;
    height: 56px;
    font-size: 14px;
  }

  .round-tool {
    width: 34px;
    height: 34px;
    font-size: 11px;
  }

  .item-action {
    right: 1px;
    top: 1px;
  }

  .pet-action {
    right: 1px;
    top: 37px;
  }

  .skip-action {
    right: 35px;
    top: 66px;
  }

  .secondary-action {
    right: 1px;
    bottom: 0;
    width: 46px;
    height: 23px;
    font-size: 10px;
  }

  .bgm-toggle {
    right: 8px;
    bottom: 108px;
    width: 38px;
    height: 29px;
    font-size: 9px;
  }
}

@media (orientation: landscape) and (max-height: 360px) {
  .top-hud {
    grid-template-columns: minmax(108px, 23%) 1fr minmax(108px, 23%);
  }

  .fighter-card {
    min-height: 36px;
    grid-template-columns: 27px 1fr;
    padding: 3px 5px;
  }

  .fighter-card.is-enemy {
    grid-template-columns: 1fr 27px;
  }

  .avatar {
    width: 27px;
    height: 27px;
  }

  .fighter-name-row {
    height: 12px;
  }

  .fighter-name {
    font-size: 8px;
  }

  .fighter-title,
  .status-row,
  .stat-chip-row {
    display: none;
  }

  .bar-line {
    grid-template-columns: 13px 1fr 37px;
    font-size: 7px;
  }

  .bar-line > span:last-child {
    display: none;
  }

  .bar-track {
    height: 5px;
  }

  .round-medallion {
    height: 48px;
  }

  .round-medallion strong {
    font-size: 30px;
  }

  .battlefield {
    padding-top: 34px;
  }

  .mage-figure {
    width: 112px;
    height: 138px;
  }

  .enemy-figure .male-sequence-sprite,
  .player-figure .female-sequence-sprite,
  .enemy-figure .male-sequence-sprite.is-sequence-action,
  .enemy-figure .male-sequence-sprite.is-defeat-sequence,
  .player-figure .female-sequence-sprite.is-sequence-action,
  .player-figure .female-sequence-sprite.is-defeat-sequence {
    height: 146px;
  }

  .pet-sprite {
    width: 86px;
    max-height: 90px;
  }
}

@media (max-width: 920px) and (orientation: portrait) {
  .mobile-rotate-tip {
    position: fixed;
    z-index: 300;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 28px;
    background:
      radial-gradient(circle at 50% 32%, rgba(82, 211, 255, 0.2), transparent 38%),
      rgba(3, 9, 18, 0.86);
    color: #f2fbff;
    text-align: center;
  }

  .mobile-rotate-tip div {
    width: min(300px, 80vw);
    padding: 18px 16px 16px;
    border: 1px solid rgba(151, 233, 255, 0.55);
    border-radius: 10px;
    background: rgba(7, 19, 38, 0.92);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.48);
  }

  .mobile-rotate-tip strong,
  .mobile-rotate-tip span {
    display: block;
  }

  .mobile-rotate-tip strong {
    font-size: 18px;
    line-height: 1.35;
    color: #fff3a8;
  }

  .mobile-rotate-tip span {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #b8dfff;
  }
}

@keyframes mageIdle {
  0%, 100% { transform: translateY(-14px) scaleY(1); }
  50% { transform: translateY(-25px) scaleY(1.012); }
}

@keyframes floatShadow {
  0%, 100% { opacity: 0.34; scale: 0.86; }
  50% { opacity: 0.18; scale: 0.72; }
}

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

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

@keyframes petGlow {
  0%, 100% { filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.46)) drop-shadow(0 0 5px rgba(112, 236, 255, 0.36)); }
  50% { filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 15px rgba(122, 242, 255, 0.78)); }
}

@keyframes ribbonDrift {
  0%, 100% { translate: 0 0; opacity: 0.82; }
  50% { translate: 0 -5px; opacity: 0.98; }
}

@keyframes waistOrbit {
  0%, 100% { translate: 0 0; filter: drop-shadow(0 0 4px rgba(89, 223, 255, 0.58)); }
  50% { translate: 0 -4px; filter: drop-shadow(0 0 10px rgba(146, 247, 255, 0.92)); }
}

@keyframes shardBob {
  0%, 100% { translate: 0 0; opacity: 0.78; }
  50% { translate: 0 -5px; opacity: 1; }
}

@keyframes castLean {
  0% { translate: 0 0; filter: drop-shadow(0 0 8px rgba(104, 232, 255, 0.45)); }
  35% { translate: 11px -5px; filter: drop-shadow(0 0 18px rgba(151, 246, 255, 0.9)); }
  100% { translate: 0 0; filter: drop-shadow(0 0 8px rgba(104, 232, 255, 0.45)); }
}

@keyframes castLeanLeft {
  0%, 100% { translate: 0 0; rotate: 0deg; filter: drop-shadow(0 0 8px rgba(104, 232, 255, 0.45)); }
  30% { translate: 14px -8px; rotate: -2deg; filter: drop-shadow(0 0 18px rgba(151, 246, 255, 0.9)); }
  58% { translate: 5px -4px; rotate: 1deg; }
}

@keyframes castLeanRight {
  0%, 100% { translate: 0 0; rotate: 0deg; filter: drop-shadow(0 0 8px rgba(104, 232, 255, 0.45)); }
  30% { translate: -14px -8px; rotate: 2deg; filter: drop-shadow(0 0 18px rgba(151, 246, 255, 0.9)); }
  58% { translate: -5px -4px; rotate: -1deg; }
}

@keyframes ringCast {
  0% { scale: 1; opacity: 0.88; }
  36% { scale: 1.08; opacity: 1; box-shadow: inset 0 0 28px rgba(167, 247, 255, 0.48), 0 0 30px rgba(97, 226, 255, 0.7); }
  100% { scale: 1; opacity: 0.88; }
}

@keyframes cangqiongCastLean {
  0% { translate: 0 0; filter: drop-shadow(0 0 8px rgba(104, 232, 255, 0.45)); }
  18% { translate: -3px -4px; rotate: -1deg; filter: drop-shadow(0 0 17px rgba(171, 248, 255, 0.9)); }
  42% { translate: 8px -12px; rotate: 2deg; filter: drop-shadow(0 0 24px rgba(195, 253, 255, 0.98)); }
  76% { translate: 4px -5px; rotate: -1deg; }
  100% { translate: 0 0; filter: drop-shadow(0 0 8px rgba(104, 232, 255, 0.45)); }
}

@keyframes cangqiongCastLeft {
  0%, 100% { translate: 0 0; rotate: 0deg; filter: drop-shadow(0 0 8px rgba(104, 232, 255, 0.45)); }
  16% { translate: 5px -5px; rotate: -1deg; filter: drop-shadow(0 0 16px rgba(171, 248, 255, 0.86)); }
  42% { translate: 18px -16px; rotate: -3deg; filter: drop-shadow(0 0 24px rgba(195, 253, 255, 0.98)); }
  72% { translate: 8px -8px; rotate: 1deg; }
}

@keyframes cangqiongCastRight {
  0%, 100% { translate: 0 0; rotate: 0deg; filter: drop-shadow(0 0 8px rgba(104, 232, 255, 0.45)); }
  16% { translate: -5px -5px; rotate: 1deg; filter: drop-shadow(0 0 16px rgba(171, 248, 255, 0.86)); }
  42% { translate: -18px -16px; rotate: 3deg; filter: drop-shadow(0 0 24px rgba(195, 253, 255, 0.98)); }
  72% { translate: -8px -8px; rotate: -1deg; }
}

@keyframes casterFloatLock {
  0% { translate: 0 -14px; }
  18% { translate: 0 -19px; }
  46% { translate: 0 -28px; filter: brightness(1.22); }
  78% { translate: 0 -18px; }
  100% { translate: 0 -14px; filter: none; }
}

@keyframes cangqiongRing {
  0% { scale: 1; opacity: 0.86; }
  24% { scale: 1.06; opacity: 1; }
  54% { scale: 0.94; box-shadow: inset 0 0 36px rgba(216, 255, 255, 0.62), 0 0 34px rgba(108, 235, 255, 0.88); }
  100% { scale: 1; opacity: 0.86; }
}

@keyframes petCast {
  0% { translate: 0 0; }
  32% { translate: 13px -9px; filter: drop-shadow(0 0 18px rgba(186, 255, 255, 0.96)); }
  100% { translate: 0 0; }
}

@keyframes petCastEnemy {
  0% { transform: scaleX(-1) translateY(0); }
  32% { transform: scaleX(-1) translate(-13px, -9px); filter: drop-shadow(0 0 18px rgba(186, 255, 255, 0.96)); }
  100% { transform: scaleX(-1) translateY(0); }
}

@keyframes hitShake {
  0%, 100% { translate: 0 0; }
  18% { translate: -12px -3px; filter: brightness(1.35) drop-shadow(0 0 16px rgba(255, 255, 255, 0.55)); }
  43% { translate: 8px 2px; }
  68% { translate: -4px 0; }
}

@keyframes hitShakeLeft {
  0%, 100% { translate: 0 0; rotate: 0deg; filter: none; }
  17% { translate: -15px -4px; rotate: -2deg; filter: brightness(1.42) drop-shadow(0 0 16px rgba(255, 255, 255, 0.58)); }
  43% { translate: 7px 3px; rotate: 1deg; }
  70% { translate: -5px 0; rotate: 0deg; }
}

@keyframes hitShakeRight {
  0%, 100% { translate: 0 0; rotate: 0deg; filter: none; }
  17% { translate: 15px -4px; rotate: 2deg; filter: brightness(1.42) drop-shadow(0 0 16px rgba(255, 255, 255, 0.58)); }
  43% { translate: -7px 3px; rotate: -1deg; }
  70% { translate: 5px 0; rotate: 0deg; }
}

@keyframes waterCrushed {
  0%, 100% { translate: 0 0; filter: none; }
  16% { translate: 0 -12px; filter: brightness(1.45) drop-shadow(0 0 18px rgba(215, 255, 255, 0.68)); }
  34% { translate: -9px 10px; }
  55% { translate: 8px 4px; filter: brightness(1.18) drop-shadow(0 0 13px rgba(107, 228, 255, 0.6)); }
  76% { translate: -3px 0; }
}

@keyframes waterCrushedLeft {
  0%, 100% { translate: 0 0; scale: 1; filter: none; }
  12% { translate: 0 -14px; scale: 1.02 0.98; filter: brightness(1.48) drop-shadow(0 0 18px rgba(215, 255, 255, 0.68)); }
  32% { translate: -10px 13px; scale: 0.98 1.02; }
  56% { translate: 6px 5px; filter: brightness(1.18) drop-shadow(0 0 13px rgba(107, 228, 255, 0.6)); }
  76% { translate: -3px 0; }
}

@keyframes waterCrushedRight {
  0%, 100% { translate: 0 0; scale: 1; filter: none; }
  12% { translate: 0 -14px; scale: 1.02 0.98; filter: brightness(1.48) drop-shadow(0 0 18px rgba(215, 255, 255, 0.68)); }
  32% { translate: 10px 13px; scale: 0.98 1.02; }
  56% { translate: -6px 5px; filter: brightness(1.18) drop-shadow(0 0 13px rgba(107, 228, 255, 0.6)); }
  76% { translate: 3px 0; }
}

@keyframes dodgeSlide {
  0%, 100% { translate: 0 0; opacity: 1; }
  38% { translate: 28px -6px; opacity: 0.72; }
  70% { translate: -6px 1px; opacity: 0.94; }
}

@keyframes freezeLock {
  0% { box-shadow: inset 0 0 24px rgba(85, 183, 255, 0.32), 0 0 18px rgba(65, 119, 255, 0.36); }
  45% { box-shadow: inset 0 0 30px rgba(205, 255, 255, 0.62), 0 0 32px rgba(119, 238, 255, 0.86); }
  100% { box-shadow: inset 0 0 24px rgba(85, 183, 255, 0.32), 0 0 18px rgba(65, 119, 255, 0.36); }
}

@keyframes freezePulse {
  0%, 100% { opacity: 0.48; scale: 1; }
  50% { opacity: 0.75; scale: 1.04; }
}

@keyframes freezeCageAppear {
  0% { opacity: 0; scale: 0.54 0.42; filter: brightness(2) drop-shadow(0 0 18px rgba(255, 255, 255, 0.92)); }
  58% { opacity: 0.98; scale: 1.08 1.04; }
  100% { opacity: 0.76; scale: 1; }
}

@keyframes freezeRingTop {
  0%, 100% { transform: translateX(-50%) rotate(0deg); opacity: 0.82; }
  50% { transform: translateX(-50%) rotate(6deg); opacity: 1; }
}

@keyframes freezeRingBottom {
  0%, 100% { transform: translateX(-50%) rotate(0deg); opacity: 0.78; }
  50% { transform: translateX(-50%) rotate(-6deg); opacity: 0.96; }
}

@keyframes freezeIcicle {
  0%, 100% { opacity: 0.78; filter: brightness(1); }
  50% { opacity: 0.98; filter: brightness(1.28); }
}

@keyframes freezeHit {
  0%, 100% { translate: 0 0; filter: none; }
  16% { translate: 0 -7px; filter: brightness(1.8) drop-shadow(0 0 22px rgba(209, 255, 255, 0.9)); }
  38% { translate: -6px 2px; }
  60% { translate: 5px 0; }
}

@keyframes freezeBurstRing {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.28) rotate(-12deg); }
  24% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.38) rotate(18deg); }
}

@keyframes freezeBurstFlash {
  0% { opacity: 0; scale: 0.34; }
  28% { opacity: 0.82; scale: 1; }
  100% { opacity: 0; scale: 1.32; }
}

@keyframes freezeBurstShard {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.28); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.08); }
}

@keyframes bubbleVanish {
  0% { opacity: 1; translate: 0 0; scale: 1; filter: brightness(1); }
  25% { opacity: 0.82; translate: 0 -8px; scale: 0.96; filter: brightness(1.55) saturate(0.82); }
  62% { opacity: 0.28; translate: 0 -22px; scale: 0.78; filter: brightness(1.8) blur(0.8px); }
  100% { opacity: 0; translate: 0 -34px; scale: 0.52; filter: brightness(2) blur(2px); }
}

@keyframes defeatedFade {
  0%, 22% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes defeatMist {
  0% { opacity: 0; scale: 0.42; }
  18% { opacity: 0.78; scale: 0.82; }
  100% { opacity: 0; scale: 1.45; }
}

@keyframes defeatBubble {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.38);
  }
  16% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), var(--rise)) scale(1.18);
  }
}

@keyframes damageRise {
  0% {
    opacity: 0;
    transform: translate(calc(-50% + var(--damage-x, 0px)), calc(-50% + 18px)) scale(0.72);
  }
  16% {
    opacity: 1;
    transform: translate(calc(-50% + var(--damage-x, 0px)), -50%) scale(1.22);
  }
  44% {
    opacity: 1;
    transform: translate(calc(-50% + var(--damage-x, 0px)), calc(-50% - 10px)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--damage-x, 0px)), calc(-50% + var(--damage-rise, -64px))) scale(0.92);
  }
}

@keyframes castLabelRise {
  0% { opacity: 0; translate: 0 8px; scale: 0.88; }
  18% { opacity: 1; translate: 0 0; scale: 1; }
  100% { opacity: 0; translate: 0 -28px; scale: 0.96; }
}

@keyframes skillTravel {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.28) rotate(-8deg);
    filter: brightness(1);
  }
  16% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.76) rotate(0deg);
  }
  72% {
    opacity: 1;
    filter: brightness(1.35);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.38) rotate(12deg);
    filter: brightness(1.9);
  }
}

@keyframes shardScatter {
  0% { opacity: 0; translate: 0 0; scale: 0.42; }
  24% { opacity: 1; }
  100% { opacity: 0; translate: 18px -16px; scale: 1.1; }
}

@keyframes selfPulse {
  0% { opacity: 0; scale: 0.72; }
  24% { opacity: 1; scale: 1; }
  100% { opacity: 0; scale: 1.25; }
}

@keyframes buttonRipple {
  0% { opacity: 0.62; transform: scale(0.2); }
  100% { opacity: 0; transform: scale(1.65); }
}

@keyframes cangqiongCharge {
  0% { opacity: 0; scale: 0.74; filter: brightness(0.9); }
  22% { opacity: 1; scale: 1; }
  58% { opacity: 1; scale: 1.06; filter: brightness(1.35); }
  100% { opacity: 0; scale: 1.22; filter: brightness(1.9); }
}

@keyframes cangqiongOrb {
  0% { transform: translate(0, 16px) scale(0.42); opacity: 0; }
  30% { transform: translate(0, 0) scale(1); opacity: 1; }
  74% { transform: translate(0, -8px) scale(1.14); opacity: 1; }
  100% { transform: translate(0, -18px) scale(0.4); opacity: 0; }
}

@keyframes cangqiongShardLoop {
  0% { opacity: 0; translate: 0 10px; }
  26% { opacity: 1; translate: 0 0; }
  74% { opacity: 1; translate: 8px -8px; }
  100% { opacity: 0; translate: 18px -18px; }
}

@keyframes cangqiongName {
  0% { opacity: 0; translate: 0 8px; scale: 0.88; }
  20% { opacity: 1; translate: 0 0; scale: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; translate: 0 -18px; scale: 0.96; }
}

@keyframes cangqiongBitmapColumn {
  0%, 21% { opacity: 0; transform: translateX(-50%) translateY(-58px) scale(0.82, 0.18); filter: brightness(1.02) drop-shadow(0 0 5px rgba(142, 240, 255, 0.32)); }
  34% { opacity: 0.95; transform: translateX(-50%) translateY(-12px) scale(0.92, 0.98); filter: brightness(1.22) drop-shadow(0 0 10px rgba(185, 250, 255, 0.74)); }
  58% { opacity: 1; transform: translateX(-50%) translateY(0) scale(0.94, 1.03); filter: brightness(1.04) drop-shadow(0 0 9px rgba(142, 240, 255, 0.62)); }
  82% { opacity: 0.92; transform: translateX(-50%) translateY(2px) scale(0.93, 0.98); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px) scale(0.96, 0.78); filter: brightness(1.32) drop-shadow(0 0 7px rgba(255, 255, 255, 0.52)); }
}

@keyframes cangqiongBitmapSplash {
  0%, 30% { opacity: 0; transform: translateX(-50%) scale(0.28); }
  43% { opacity: 0.88; transform: translateX(-50%) scale(0.92); }
  76% { opacity: 0.72; transform: translateX(-50%) scale(1.12); }
  100% { opacity: 0; transform: translateX(-50%) scale(1.34); }
}

@keyframes cangqiongGroundRing {
  0%, 25% { opacity: 0; transform: translateX(-50%) scale(0.28); }
  39% { opacity: 0.94; transform: translateX(-50%) scale(0.95); }
  76% { opacity: 0.72; transform: translateX(-50%) scale(1.08); }
  100% { opacity: 0; transform: translateX(-50%) scale(1.26); }
}

@keyframes cangqiongColumnFlash {
  0%, 29% { opacity: 0; scale: 0.72 0.22; }
  38% { opacity: 0.72; scale: 1 0.92; }
  62% { opacity: 0.28; scale: 0.92 1; }
  100% { opacity: 0; scale: 1.05 0.82; }
}

@keyframes cangqiongRune {
  0% { opacity: 0; scale: 0.48; rotate: -8deg; }
  18% { opacity: 0.9; scale: 0.82; }
  42% { opacity: 1; scale: 1; rotate: 0deg; }
  78% { opacity: 0.86; scale: 1.08; }
  100% { opacity: 0; scale: 1.2; }
}

@keyframes cangqiongFall {
  0% { opacity: 0; transform: translateY(-58px) scaleY(0.08); }
  34% { opacity: 0; transform: translateY(-58px) scaleY(0.08); }
  46% { opacity: 0.95; transform: translateY(-30px) scaleY(0.8); }
  67% { opacity: 1; transform: translateY(2px) scaleY(1.08); }
  100% { opacity: 0; transform: translateY(24px) scaleY(0.72); }
}

@keyframes cangqiongSplash {
  0%, 58% { opacity: 0; transform: translateX(-50%) scale(0.18); }
  70% { opacity: 0.92; transform: translateX(-50%) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) scale(1.24); }
}

@keyframes cangqiongCoreFlash {
  0%, 50% { opacity: 0; scale: 0.72 0.2; }
  60% { opacity: 0.78; scale: 1 1; }
  76% { opacity: 0.46; scale: 0.88 1.04; }
  100% { opacity: 0; scale: 1.12 0.8; }
}

@keyframes cangqiongImpactShard {
  0% { opacity: 0; translate: 0 0; scale: 0.4; }
  12% { opacity: 1; }
  100% { opacity: 0; translate: 24px -26px; scale: 1.18; }
}

@keyframes bitmapEffectLabel {
  0% { opacity: 0; translate: 0 10px; scale: 0.9; }
  20% { opacity: 1; translate: 0 0; scale: 1; }
  72% { opacity: 1; }
  100% { opacity: 0; translate: 0 -18px; scale: 0.96; }
}

@keyframes cardSpend {
  0% {
    opacity: 1;
    transform: translateY(-10px) scale(1);
    filter: saturate(1.1) contrast(1.02) brightness(1.05);
  }
  100% {
    opacity: 0.62;
    transform: translateY(0) scale(0.98);
    filter: grayscale(0.88) saturate(0.22) contrast(0.92) brightness(0.58);
  }
}

@keyframes cardIntroFlight {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.58) rotate(var(--start-rotate));
    filter: brightness(0.85);
  }
  12% {
    opacity: 1;
  }
  56% {
    opacity: 1;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.06) rotate(0deg);
    filter: brightness(1.08) drop-shadow(0 0 10px rgba(113, 232, 255, 0.7));
  }
  76% {
    opacity: 1;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1) rotate(0deg);
    filter: brightness(1.38) drop-shadow(0 0 18px rgba(183, 249, 255, 0.9));
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.82) rotate(0deg);
    filter: brightness(2) drop-shadow(0 0 20px rgba(255, 255, 255, 0.9));
  }
}

@keyframes cardCenterSeal {
  0%, 48% { opacity: 0; transform: scale(0.36) rotate(-18deg); }
  62% { opacity: 0.88; transform: scale(0.9) rotate(0deg); }
  100% { opacity: 0; transform: scale(1.38) rotate(32deg); }
}

@keyframes cardCenterBurst {
  0%, 58% { opacity: 0; transform: scale(0.18); }
  70% { opacity: 0.82; transform: scale(0.72); }
  100% { opacity: 0; transform: scale(1.48); }
}

@keyframes flyCardPlayer {
  0% { opacity: 0; transform: translate(0, 0) scale(0.74) rotate(-8deg); }
  18% { opacity: 1; transform: translate(8px, -40px) scale(1) rotate(4deg); }
  72% { opacity: 1; transform: translate(188px, -172px) scale(0.88) rotate(18deg); }
  100% { opacity: 0; transform: translate(238px, -190px) scale(0.62) rotate(28deg); }
}

@keyframes flyCardEnemy {
  0% { opacity: 0; transform: translate(0, 0) scale(0.74) rotate(8deg); }
  18% { opacity: 1; transform: translate(-8px, -40px) scale(1) rotate(-4deg); }
  72% { opacity: 1; transform: translate(-188px, -172px) scale(0.88) rotate(-18deg); }
  100% { opacity: 0; transform: translate(-238px, -190px) scale(0.62) rotate(-28deg); }
}

.center-card-preview {
  position: absolute;
  z-index: 58;
  width: 118px;
  height: 154px;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(205, 242, 255, 0.96);
  border-radius: 8px;
  overflow: hidden;
  background: #101b38;
  box-shadow:
    0 0 0 2px rgba(84, 184, 255, 0.44),
    0 0 24px rgba(146, 237, 255, 0.9),
    0 0 54px rgba(28, 139, 255, 0.45);
  pointer-events: none;
  animation: centerCardOriginal var(--center-card-life, 760ms) ease-out forwards;
}

.center-card-preview::before,
.center-card-preview::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.center-card-preview::before {
  inset: -32px;
  border-radius: 50%;
  border: 3px solid rgba(192, 245, 255, 0.76);
  box-shadow:
    inset 0 0 18px rgba(119, 235, 255, 0.36),
    0 0 30px rgba(127, 233, 255, 0.66);
  animation: centerCardRingOriginal var(--center-card-life, 760ms) ease-out forwards;
}

.center-card-preview::after {
  left: 50%;
  top: 50%;
  width: 190px;
  height: 30px;
  transform: translate(-50%, -50%) rotate(-10deg);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.92), rgba(141, 239, 255, 0.86), transparent);
  filter: blur(1px);
  mix-blend-mode: screen;
  animation: centerCardFlashOriginal var(--center-card-life, 760ms) ease-out forwards;
}

.center-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.center-card-preview span {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 5px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 5px #13265c, 0 0 7px rgba(255, 255, 255, 0.75);
}

.ultimate-cutin {
  position: absolute;
  z-index: 62;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  animation: ultimateFadeOriginal 980ms ease-out forwards;
}

.ultimate-fullscreen {
  position: absolute;
  z-index: 2;
  inset: -10px -18px;
  width: calc(100% + 36px);
  height: calc(100% + 20px);
  object-fit: cover;
  object-position: center;
  filter:
    brightness(1.08)
    drop-shadow(0 0 14px rgba(207, 250, 255, 0.72))
    drop-shadow(0 14px 24px rgba(0, 0, 0, 0.54));
  animation: ultimateFullscreenRightOriginal 980ms ease-out forwards;
}

.ultimate-cutin.from-left .ultimate-fullscreen {
  animation-name: ultimateFullscreenLeftOriginal;
}

.ultimate-cutin::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(80, 215, 255, 0.15), rgba(2, 10, 26, 0.72) 74%),
    linear-gradient(90deg, rgba(3, 8, 22, 0.94), rgba(3, 8, 22, 0.15) 44%, rgba(3, 8, 22, 0.72));
}

.ultimate-speed-lines {
  position: absolute;
  left: -8%;
  right: -8%;
  top: 18%;
  bottom: 21%;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.1) 0 2px, transparent 2px 11px),
    linear-gradient(90deg, #14206a 0%, #3155d8 18%, #56dff7 45%, #255ed5 72%, #171054 100%);
  box-shadow:
    inset 0 28px 45px rgba(0, 0, 0, 0.32),
    inset 0 -24px 40px rgba(0, 0, 0, 0.35);
  animation: ultimateRushOriginal 980ms linear forwards;
}

.ultimate-speed-lines::before {
  content: "";
  position: absolute;
  inset: -28px 0;
  background:
    radial-gradient(ellipse at 78% 50%, rgba(255, 255, 255, 0.72), transparent 20%),
    repeating-linear-gradient(165deg, transparent 0 28px, rgba(255, 255, 255, 0.22) 28px 32px, transparent 32px 64px);
  mix-blend-mode: screen;
  opacity: 0.75;
}

.ultimate-caster {
  position: absolute;
  z-index: 2;
  right: -76px;
  bottom: -10px;
  width: 640px;
  max-height: 460px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.62))
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.6));
  animation: ultimateCasterRightOriginal 980ms ease-out forwards;
}

.ultimate-cutin.from-left .ultimate-caster {
  right: auto;
  left: -72px;
  transform: scaleX(-1);
  animation-name: ultimateCasterLeftOriginal;
}

.ultimate-cutin span {
  position: absolute;
  z-index: 3;
  right: 42px;
  bottom: 118px;
  padding: 5px 16px;
  border-radius: 999px;
  border: 1px solid rgba(223, 255, 255, 0.72);
  background: rgba(9, 30, 91, 0.62);
  color: #fff7b8;
  font-size: 23px;
  font-weight: 900;
  text-shadow: 0 2px 5px #000, 0 0 12px rgba(109, 231, 255, 0.94);
  animation: ultimateLabelOriginal 980ms ease-out forwards;
}

.ultimate-cutin.from-left span {
  right: auto;
  left: 42px;
}

.cangqiong-spell {
  z-index: 50;
  width: 156px;
  height: 372px;
  transform: translate(-50%, -65%);
}

.bitmap-effect {
  position: absolute;
  z-index: 55;
  pointer-events: none;
  transform: translate(-50%, -62%);
  filter:
    drop-shadow(0 0 10px rgba(222, 255, 255, 0.82))
    drop-shadow(0 0 22px rgba(92, 202, 255, 0.55));
}

.bitmap-effect.from-right {
  transform: translate(-50%, -62%) scaleX(-1);
}

.bitmap-effect img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cangqiong-bitmap {
  width: 188px;
  height: 318px;
}

.suibing-bitmap {
  width: 238px;
  height: 188px;
  transform: translate(-50%, -55%);
  filter:
    brightness(1.08)
    drop-shadow(0 0 9px rgba(229, 255, 255, 0.9))
    drop-shadow(0 0 20px rgba(88, 211, 255, 0.55));
}

.suibing-bitmap.from-right {
  transform: translate(-50%, -55%) scaleX(-1);
}

.hanbingpao-bitmap {
  z-index: 58;
  width: 378px;
  height: 294px;
  transform: translate(-50%, -58%);
  filter:
    brightness(1.12)
    drop-shadow(0 0 12px rgba(233, 255, 255, 0.82))
    drop-shadow(0 0 28px rgba(88, 195, 255, 0.62));
}

.hanbingpao-bitmap.from-right {
  transform: translate(-50%, -58%) scaleX(-1);
}

.chaoyashuipao-bitmap {
  z-index: 57;
  width: 330px;
  height: 270px;
  transform: translate(-50%, -58%);
  filter:
    brightness(1.08)
    drop-shadow(0 0 10px rgba(225, 255, 255, 0.86))
    drop-shadow(0 0 24px rgba(75, 205, 255, 0.62));
}

.chaoyashuipao-bitmap.from-right {
  transform: translate(-50%, -58%) scaleX(-1);
}

.zidian-bitmap {
  z-index: 58;
  width: 300px;
  height: 250px;
  transform: translate(-50%, -58%);
  filter:
    brightness(1.12)
    drop-shadow(0 0 12px rgba(255, 207, 255, 0.9))
    drop-shadow(0 0 28px rgba(216, 72, 255, 0.58));
}

.zidian-bitmap.from-right {
  transform: translate(-50%, -58%) scaleX(-1);
}

.nengliangbaopo-bitmap {
  z-index: 58;
  width: 390px;
  height: 330px;
  transform: translate(-50%, -58%);
  filter:
    brightness(1.08)
    drop-shadow(0 0 12px rgba(255, 221, 255, 0.78))
    drop-shadow(0 0 28px rgba(206, 102, 255, 0.48));
}

.nengliangbaopo-bitmap.from-right {
  transform: translate(-50%, -58%) scaleX(-1);
}

.shuijingzhen-bitmap {
  z-index: 58;
  width: 370px;
  height: 370px;
  transform: translate(-50%, -56%);
  filter:
    brightness(1.08)
    drop-shadow(0 0 12px rgba(229, 255, 255, 0.86))
    drop-shadow(0 0 28px rgba(72, 198, 255, 0.58));
}

.shuijingzhen-bitmap.from-right {
  transform: translate(-50%, -56%) scaleX(-1);
}

.bitmap-effect-label {
  position: absolute;
  z-index: 60;
  transform: translate(-50%, -50%);
  pointer-events: none;
  color: #fff7b6;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 2px 6px #061126, 0 0 12px rgba(137, 239, 255, 0.9);
  animation: bitmapEffectLabel 1120ms ease-out forwards;
}

.bitmap-effect-label b,
.bitmap-effect-label em {
  display: block;
  white-space: nowrap;
}

.bitmap-effect-label em {
  margin-top: 3px;
  color: #aef9ff;
  font-size: 11px;
  font-style: normal;
}

.cangqiong-spell::before {
  top: 3px;
  width: 128px;
  height: 360px;
  transform-origin: 50% 90%;
  filter:
    brightness(1.08)
    drop-shadow(0 0 8px rgba(221, 255, 255, 0.72))
    drop-shadow(0 0 18px rgba(111, 216, 255, 0.54));
  animation: cangqiongColumnOriginal var(--cangqiong-life, 1320ms) ease-out forwards;
}

.cangqiong-ground {
  top: 298px;
  width: 154px;
  height: 42px;
  border-width: 3px;
  background:
    radial-gradient(ellipse, rgba(255, 255, 255, 0.88), rgba(168, 231, 255, 0.42) 44%, transparent 70%);
  animation: cangqiongGroundOriginal var(--cangqiong-life, 1320ms) ease-out forwards;
}

.cangqiong-top-disc {
  position: absolute;
  left: 50%;
  top: 27px;
  width: 134px;
  height: 29px;
  transform: translateX(-50%) scale(0.35);
  border-radius: 50%;
  border: 2px solid rgba(231, 255, 255, 0.78);
  opacity: 0;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.7), rgba(183, 237, 255, 0.28) 52%, transparent 68%);
  box-shadow: 0 0 18px rgba(184, 246, 255, 0.82);
  animation: cangqiongTopOriginal var(--cangqiong-life, 1320ms) ease-out forwards;
}

.cangqiong-water-line {
  position: absolute;
  left: 50%;
  top: 22px;
  width: 4px;
  height: 306px;
  transform: translateX(-50%) scaleY(0.1);
  transform-origin: 50% 100%;
  opacity: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #eafdff 18%, #8fe6ff 84%, rgba(255, 255, 255, 0));
  box-shadow: 0 0 12px rgba(185, 248, 255, 0.92);
  animation: cangqiongLineOriginal var(--cangqiong-life, 1320ms) ease-out forwards;
}

.cangqiong-hit-flash {
  top: 52px;
  width: 94px;
  height: 244px;
  animation: cangqiongFlashOriginal var(--cangqiong-life, 1320ms) ease-out forwards;
}

.arena-side.is-cangqiong-casting .mage-sprite {
  animation-duration: 1500ms;
}

.damage-pop {
  color: #fff3b0;
  font-size: 31px;
  font-family: "Arial Black", "Microsoft YaHei", sans-serif;
  text-shadow:
    -2px -2px 0 #7a3400,
    2px -2px 0 #7a3400,
    -2px 2px 0 #7a3400,
    2px 2px 0 #7a3400,
    0 3px 0 #5a2100,
    0 0 10px rgba(255, 91, 0, 0.82),
    0 0 17px rgba(255, 239, 121, 0.82);
  animation-duration: var(--damage-life, 1080ms);
}

@keyframes centerCardOriginal {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.46) rotate(-6deg); filter: brightness(0.86); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.08) rotate(0deg); filter: brightness(1.1); }
  64% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); filter: brightness(1.02); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.72) rotate(0deg); filter: brightness(2); }
}

@keyframes centerCardRingOriginal {
  0% { opacity: 0; transform: scale(0.32) rotate(-28deg); }
  24% { opacity: 0.9; transform: scale(0.82) rotate(0deg); }
  100% { opacity: 0; transform: scale(1.36) rotate(42deg); }
}

@keyframes centerCardFlashOriginal {
  0%, 48% { opacity: 0; transform: translate(-50%, -50%) rotate(-10deg) scaleX(0.22); }
  63% { opacity: 0.96; transform: translate(-50%, -50%) rotate(-10deg) scaleX(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(-10deg) scaleX(1.18); }
}

@keyframes ultimateFadeOriginal {
  0% { opacity: 0; }
  10%, 82% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes ultimateRushOriginal {
  0% { transform: translateX(12%); filter: brightness(0.9); }
  100% { transform: translateX(-8%); filter: brightness(1.24); }
}

@keyframes ultimateFullscreenRightOriginal {
  0% { opacity: 0; transform: translateX(70px) scale(1.08); }
  16% { opacity: 1; transform: translateX(0) scale(1.02); }
  72% { opacity: 1; transform: translateX(-18px) scale(1); }
  100% { opacity: 0; transform: translateX(-92px) scale(0.98); }
}

@keyframes ultimateFullscreenLeftOriginal {
  0% { opacity: 0; transform: translateX(-70px) scaleX(-1) scale(1.08); }
  16% { opacity: 1; transform: translateX(0) scaleX(-1) scale(1.02); }
  72% { opacity: 1; transform: translateX(18px) scaleX(-1) scale(1); }
  100% { opacity: 0; transform: translateX(92px) scaleX(-1) scale(0.98); }
}

@keyframes ultimateCasterRightOriginal {
  0% { opacity: 0; transform: translateX(140px) scale(0.92); }
  16% { opacity: 1; transform: translateX(12px) scale(1.02); }
  72% { opacity: 1; transform: translateX(-12px) scale(1); }
  100% { opacity: 0; transform: translateX(-84px) scale(0.96); }
}

@keyframes ultimateCasterLeftOriginal {
  0% { opacity: 0; transform: translateX(-140px) scaleX(-1) scale(0.92); }
  16% { opacity: 1; transform: translateX(-12px) scaleX(-1) scale(1.02); }
  72% { opacity: 1; transform: translateX(12px) scaleX(-1) scale(1); }
  100% { opacity: 0; transform: translateX(84px) scaleX(-1) scale(0.96); }
}

@keyframes ultimateLabelOriginal {
  0%, 18% { opacity: 0; transform: translateY(12px) scale(0.92); }
  36%, 76% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-10px) scale(0.96); }
}

@keyframes cangqiongColumnOriginal {
  0%, 24% { opacity: 0; transform: translateX(-50%) translateY(-96px) scale(0.72, 0.08); }
  34% { opacity: 0.96; transform: translateX(-50%) translateY(-18px) scale(0.9, 0.86); }
  48%, 70% { opacity: 1; transform: translateX(-50%) translateY(0) scale(0.96, 1.04); }
  84% { opacity: 0.74; transform: translateX(-50%) translateY(8px) scale(0.66, 0.92); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px) scale(0.24, 0.9); }
}

@keyframes cangqiongGroundOriginal {
  0%, 15% { opacity: 0; transform: translateX(-50%) scale(0.18); filter: brightness(1); }
  25% { opacity: 0.95; transform: translateX(-50%) scale(1); filter: brightness(1.25); }
  72% { opacity: 0.82; transform: translateX(-50%) scale(1.16); }
  100% { opacity: 0; transform: translateX(-50%) scale(1.38); filter: brightness(1.5); }
}

@keyframes cangqiongTopOriginal {
  0%, 22% { opacity: 0; transform: translateX(-50%) scale(0.32); }
  36% { opacity: 0.86; transform: translateX(-50%) scale(1); }
  78% { opacity: 0.7; transform: translateX(-50%) scale(1.08); }
  100% { opacity: 0; transform: translateX(-50%) scale(1.2); }
}

@keyframes cangqiongLineOriginal {
  0%, 70% { opacity: 0; transform: translateX(-50%) scaleY(0.1); }
  82% { opacity: 0.96; transform: translateX(-50%) scaleY(1); }
  100% { opacity: 0; transform: translateX(-50%) scaleY(0.25); }
}

@keyframes cangqiongFlashOriginal {
  0%, 26% { opacity: 0; scale: 0.58 0.16; }
  38% { opacity: 0.72; scale: 1 1; }
  58% { opacity: 0.36; scale: 0.84 1.08; }
  100% { opacity: 0; scale: 0.5 0.88; }
}
