:root {
  color-scheme: dark;
  font-family: "STKaiti", "KaiTi", "Noto Serif SC", "Songti SC", serif;
  --card-width: clamp(104px, calc((96vw - 230px) / 6), 180px);
  --gold: #ffd36f;
  --gold-bright: #fff1b2;
  --ink: #07183e;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; overflow: hidden; }
button { font: inherit; }
body { background: #071843; color: #fff7da; }

.select-screen {
  position: relative;
  isolation: isolate;
  width: 100vw;
  height: 100svh;
  min-height: 320px;
  overflow: hidden;
  background: #0a2d7a url("./assets/background.webp") center / cover no-repeat;
  animation: screen-reveal 720ms ease-out both;
}

.select-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(1, 12, 55, .28), transparent 24%, transparent 70%, rgba(8, 25, 72, .18)),
    radial-gradient(ellipse at 50% 42%, rgba(80, 160, 255, .15), transparent 56%);
}

.ambient { position: absolute; inset: 0; pointer-events: none; }
.ambient-stars {
  opacity: .78;
  background-image:
    radial-gradient(circle at 12% 18%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 27% 10%, #b9ddff 0 1.3px, transparent 2.4px),
    radial-gradient(circle at 71% 17%, #fff8ce 0 1px, transparent 2px),
    radial-gradient(circle at 84% 27%, #fff 0 1.3px, transparent 2.5px),
    radial-gradient(circle at 57% 8%, #96caff 0 1px, transparent 2px);
  animation: star-breathe 3.8s ease-in-out infinite alternate;
}
.ambient-glow {
  background:
    radial-gradient(circle at 9% 34%, rgba(255, 199, 88, .16), transparent 8%),
    radial-gradient(circle at 91% 34%, rgba(255, 199, 88, .16), transparent 8%);
  animation: lantern-glow 2.6s ease-in-out infinite alternate;
}

.title-plaque {
  position: absolute;
  z-index: 5;
  top: clamp(8px, 2.5vh, 24px);
  left: 50%;
  width: clamp(360px, 46vw, 680px);
  height: clamp(86px, 17vh, 154px);
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  filter: drop-shadow(0 9px 12px rgba(0, 8, 38, .56));
  animation: plaque-arrive 680ms cubic-bezier(.19, .88, .22, 1.18) both;
}
.title-plaque::before,
.title-plaque::after {
  content: "";
  position: absolute;
  clip-path: polygon(7% 15%, 39% 15%, 43% 2%, 50% 10%, 57% 2%, 61% 15%, 93% 15%, 100% 50%, 93% 85%, 61% 85%, 57% 98%, 50% 90%, 43% 98%, 39% 85%, 7% 85%, 0 50%);
}
.title-plaque::before {
  inset: 0;
  background: linear-gradient(180deg, #fff2a7 0%, #e99e28 26%, #8d4d09 55%, #ffd979 79%, #744005 100%);
  box-shadow: inset 0 0 0 2px #fff3b6;
}
.title-plaque::after {
  inset: 7px 11px;
  background:
    linear-gradient(180deg, rgba(56, 128, 238, .38), transparent 25%),
    linear-gradient(135deg, #123f9d, #071f67 56%, #0c347f);
  box-shadow: inset 0 0 20px rgba(2, 7, 40, .9), inset 0 0 0 2px rgba(141, 201, 255, .48);
}
.title-plaque h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  padding-top: .05em;
  color: #ffe889;
  -webkit-text-fill-color: #ffe889;
  font-family: "STKaiti", "KaiTi", "Noto Serif SC", serif;
  font-size: clamp(38px, 5vw, 78px);
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  text-shadow:
    0 0 4px rgba(255, 255, 210, .9),
    0 0 14px rgba(255, 218, 80, .75),
    0 0 36px rgba(255, 190, 40, .45),
    0 2px 0 rgba(100, 50, 2, .8),
    0 4px 8px rgba(0, 0, 0, .75);
}
.plaque-gem {
  position: absolute;
  z-index: 3;
  top: -1%;
  left: 50%;
  width: clamp(18px, 2.4vw, 34px);
  aspect-ratio: 1;
  transform: translate(-50%, -18%) rotate(45deg);
  border: 3px solid #ffe28b;
  background: linear-gradient(135deg, #99f4ff, #078dd9 48%, #06449d);
  box-shadow: 0 0 0 4px #b36e14, 0 0 18px #66dfff;
}

.roster-stage {
  position: absolute;
  z-index: 3;
  top: clamp(84px, 20vh, 165px);
  bottom: clamp(47px, 11vh, 92px);
  left: 50%;
  width: min(98vw, 1430px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: clamp(34px, 4.8vw, 68px) 1fr clamp(34px, 4.8vw, 68px);
  align-items: center;
  gap: clamp(4px, .7vw, 12px);
}
.cards-window { min-width: 0; overflow: visible; touch-action: pan-y; }
.cards-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, .9vw, 15px);
  min-width: 0;
}

.hero-card {
  --accent: #e6b957;
  --deep: #60440d;
  --glow: rgba(255, 215, 111, .8);
  position: relative;
  flex: 0 0 var(--card-width);
  width: var(--card-width);
  aspect-ratio: .485;
  max-height: 62vh;
  min-height: 214px;
  padding: 0;
  overflow: visible;
  border: none;
  border-radius: clamp(10px, 1vw, 18px);
  color: white;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .22), transparent 18%),
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--accent) 55%, white), var(--deep) 72%);
  box-shadow:
    0 0 0 1.5px #3a1800,
    0 0 0 3.5px #f5c840,
    0 0 0 5px #7a3d06,
    0 0 0 6.5px rgba(255, 240, 160, .25),
    inset 0 0 0 1.5px rgba(255, 232, 145, .52),
    inset 0 0 0 3.5px rgba(60, 28, 2, .42),
    inset 0 2px 4px rgba(255, 255, 255, .18),
    inset 0 -2px 4px rgba(0, 0, 0, .38),
    0 10px 20px rgba(1, 11, 47, .5);
  cursor: pointer;
  outline: none;
  transform-origin: 50% 82%;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}
.cards-track:not(.has-rendered) .hero-card {
  animation: card-arrive 600ms cubic-bezier(.2, .9, .22, 1.08) both;
  animation-delay: var(--delay);
}
.cards-track.has-rendered.is-shifting .hero-card {
  animation: card-refresh 260ms cubic-bezier(.2, .82, .28, 1) both;
  animation-delay: calc(var(--delay) * .25);
}
.hero-card::before {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 5px;
  pointer-events: none;
  border-radius: calc(clamp(10px, 1vw, 18px) - 4px);
  background:
    linear-gradient(180deg,
      rgba(255, 250, 200, .18) 0%,
      transparent 30%,
      transparent 70%,
      rgba(0, 0, 0, .18) 100%);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 252, 210, .72),
    inset 0 -1px 0 rgba(0, 0, 0, .5),
    inset 1px 0 0 rgba(255, 245, 170, .28),
    inset -1px 0 0 rgba(255, 245, 170, .28),
    inset 0 0 18px rgba(0, 8, 40, .28);
}
.hero-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -6px;
  opacity: 0;
  border: 2px solid #fff2ab;
  border-radius: inherit;
  box-shadow: 0 0 9px #fff6c3, 0 0 24px var(--glow), 0 0 45px var(--glow);
  transition: opacity 180ms ease;
}
.hero-card:hover { transform: translateY(-5px); filter: saturate(1.08) brightness(1.04); }
.hero-card:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #268cff, 0 8px 14px rgba(1, 11, 47, .44); }
.hero-card.is-selected {
  z-index: 4;
  transform: translateY(-10px) scale(1.025);
  filter: saturate(1.12) brightness(1.08);
  box-shadow:
    0 0 0 1.5px #3a1800,
    0 0 0 3.5px #ffe070,
    0 0 0 5px #7a3d06,
    0 0 0 6.5px rgba(255, 248, 180, .35),
    inset 0 0 0 1.5px rgba(255, 248, 180, .65),
    inset 0 0 0 3.5px rgba(60, 28, 2, .32),
    inset 0 2px 4px rgba(255, 255, 255, .22),
    inset 0 -2px 4px rgba(0, 0, 0, .3),
    0 10px 22px rgba(1, 11, 47, .6),
    0 0 16px rgba(255, 230, 100, .55),
    0 0 42px var(--glow);
}
.hero-card.is-selected::after { opacity: 1; animation: selected-pulse 1.7s ease-in-out infinite alternate; }
.card-crown {
  position: absolute;
  z-index: 8;
  top: 0;
  left: 50%;
  width: clamp(13px, 1.25vw, 21px);
  aspect-ratio: 1;
  transform: translate(-50%, -57%) rotate(45deg);
  border: none;
  background: linear-gradient(135deg, #fff5c0 0%, var(--accent) 40%, color-mix(in srgb, var(--accent) 70%, black) 100%);
  box-shadow:
    0 0 0 1px #3a1800,
    0 0 0 2.5px #f5c840,
    0 0 0 3.5px #7a3d06,
    0 0 10px var(--glow);
}
.card-shimmer {
  position: absolute;
  z-index: 7;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.card-shimmer::after {
  content: "";
  position: absolute;
  top: -10%;
  left: -90%;
  width: 35%;
  height: 120%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
}
.hero-card.is-selected .card-shimmer::after { animation: card-shine 2.35s ease-in-out infinite; }
.portrait-field {
  position: absolute;
  inset: 3% 0 0;
  overflow: hidden;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 38% 80%, rgba(255,255,255,.22), transparent 44%),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 40%);
}
.portrait-field img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 30, .45));
  transition: transform 210ms ease;
}
.hero-card:hover .portrait-field img,
.hero-card.is-selected .portrait-field img { transform: scale(1.04); }
.nameplate {
  position: absolute;
  z-index: 6;
  inset: auto 2px 2px;
  height: 19%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, .5vw, 9px);
  border-top: none;
  border-radius: 0 0 calc(clamp(10px, 1vw, 18px) - 3px) calc(clamp(10px, 1vw, 18px) - 3px);
  background:
    linear-gradient(180deg,
      transparent 0%,
      color-mix(in srgb, var(--deep) 72%, transparent) 28%,
      color-mix(in srgb, var(--deep) 92%, transparent) 100%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 180, .28),
    inset 0 0 12px rgba(0, 0, 0, .25);
}
.nameplate strong {
  font-size: clamp(16px, 2vw, 31px);
  font-weight: 900;
  letter-spacing: .08em;
  color: #fff7da;
  -webkit-text-fill-color: #fff7da;
  text-shadow:
    0 0 3px rgba(255, 255, 220, .7),
    0 0 10px var(--glow),
    0 0 24px var(--glow),
    0 2px 4px rgba(0, 0, 0, .9);
}
.attribute-icon {
  width: clamp(25px, 3vw, 44px);
  height: clamp(25px, 3vw, 44px);
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.7));
}

.locked-card {
  --deep: #40391f;
  --accent: #c7a45b;
  --glow: rgba(220, 185, 104, .35);
  overflow: hidden;
  cursor: not-allowed;
  background: linear-gradient(150deg, #57513e, #28271e 70%);
  filter: saturate(.55);
}
.locked-card:hover { transform: none; filter: saturate(.55) brightness(1.06); }
.locked-figure {
  position: absolute;
  inset: 6% 2% 19%;
  opacity: .22;
  background: url("./assets/characters/yaoling-chibi.webp") center bottom / 120% auto no-repeat;
  filter: grayscale(1) brightness(.12) sepia(.4);
}
.lock-glyph {
  position: absolute;
  z-index: 4;
  top: 47%; left: 50%;
  width: clamp(42px, 5vw, 72px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 2px solid #efd58f;
  border-radius: 50%;
  background: rgba(24, 26, 24, .52);
  box-shadow: 0 0 15px rgba(255, 221, 140, .2);
}
.lock-glyph::before {
  content: "";
  position: absolute;
  left: 27%; top: 20%;
  width: 46%; height: 38%;
  border: clamp(3px, .4vw, 5px) solid #f5dfaa;
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
}
.lock-glyph i {
  position: absolute;
  left: 25%; top: 44%;
  width: 50%; height: 34%;
  border-radius: 4px;
  background: #f5dfaa;
}
.lock-glyph i::after {
  content: "";
  position: absolute;
  left: 50%; top: 32%;
  width: 5px; height: 12px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: #5c512f;
}
.locked-label {
  position: absolute;
  z-index: 5;
  left: 0; right: 0; bottom: 8%;
  font-size: clamp(15px, 1.85vw, 27px);
  font-weight: 900;
  letter-spacing: .08em;
  color: #f7e7b9;
  text-shadow: 0 2px 4px #000;
}

.carousel-arrow {
  position: relative;
  width: 100%;
  height: clamp(58px, 10vh, 94px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 4px 4px rgba(0, 10, 49, .6));
  transition: transform 150ms ease, filter 150ms ease;
}
.carousel-arrow span {
  position: absolute;
  inset: 10% 15%;
  background: linear-gradient(90deg, #c57714, #fff0a2 50%, #f1ad2d);
  clip-path: polygon(100% 0, 39% 50%, 100% 100%, 72% 100%, 10% 50%, 72% 0);
}
.carousel-arrow-right span { transform: scaleX(-1); }
.carousel-arrow:hover { transform: scale(1.09); filter: drop-shadow(0 0 9px #ffdf78); }
.carousel-arrow:active { transform: scale(.94); }
.carousel-arrow:focus-visible { outline: 3px solid white; outline-offset: 3px; border-radius: 8px; }

.pager {
  position: absolute;
  z-index: 5;
  left: 50%; bottom: clamp(20px, 5.5vh, 51px);
  transform: translateX(-50%);
  display: flex;
  gap: clamp(8px, 1vw, 15px);
}
.pager-dot {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.pager-dot::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(12px, 1.4vw, 20px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  background: rgba(5, 27, 78, .72);
  box-shadow: inset 0 1px 4px rgba(0,0,0,.48);
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}
.pager-dot:hover::before { transform: translate(-50%, -50%) scale(1.2); }
.pager-dot:focus-visible { outline: 2px solid white; outline-offset: -2px; border-radius: 50%; }
.pager-dot.is-current::before { background: #ffd852; box-shadow: 0 0 0 2px #fff0a0, 0 0 12px #ffc93e; }
.interaction-hint {
  position: absolute;
  z-index: 5;
  left: 50%; bottom: clamp(3px, 1vh, 10px);
  max-width: 66vw;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(242, 250, 255, .83);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(10px, 1vw, 14px);
  font-weight: 700;
  letter-spacing: .08em;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(4, 21, 66, .35);
  text-align: center;
  text-shadow: 0 2px 4px #00153d;
}
.interaction-hint.is-pulsing { animation: hint-pulse 650ms ease-out; }
.skill-cutin {
  --cutin-color: #4abaff;
  --cutin-glow: rgba(74,187,255,.9);
  position: fixed;
  z-index: 100;
  inset: 0;
  visibility: hidden;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}
.skill-cutin.is-active { visibility: visible; opacity: 1; pointer-events: auto; }
.cutin-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(1,4,20,.985), rgba(4,17,55,.95) 52%, rgba(1,4,20,.98));
  opacity: 0;
}
.skill-cutin.is-active .cutin-backdrop { animation: cutin-backdrop 240ms ease-out both; }
.cutin-rays {
  position: absolute;
  inset: -30%;
  opacity: 0;
  background: repeating-conic-gradient(from 250deg at 45% 52%, transparent 0 5deg, color-mix(in srgb, var(--cutin-color) 42%, transparent) 6deg 7deg, transparent 8deg 13deg);
  filter: blur(1px);
}
.skill-cutin.is-active .cutin-rays { animation: cutin-rays 900ms ease-out 80ms both; }
.cutin-character {
  position: absolute;
  z-index: 3;
  left: 4%; bottom: -2%;
  width: min(78vw, 1300px);
  height: 96vh;
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 0 14px var(--cutin-glow)) drop-shadow(18px 8px 22px rgba(0,0,0,.7));
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 84%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 84%, transparent 100%);
  opacity: 0;
  transform: translateX(-65vw) skewX(-6deg) scale(.92);
}
.skill-cutin.is-active .cutin-character { animation: cutin-character 1.5s cubic-bezier(.17,.82,.24,1) 70ms both; }
.cutin-copy {
  position: absolute;
  z-index: 5;
  right: 7%; top: 22%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  opacity: 0;
  transform: translateX(80px);
  text-align: right;
  filter: drop-shadow(0 5px 6px rgba(0,0,0,.75));
}
.skill-cutin.is-active .cutin-copy { animation: cutin-copy 520ms ease-out 320ms both; }
.cutin-kicker {
  padding: .35em 1em;
  border: 1px solid color-mix(in srgb, var(--cutin-color) 80%, white);
  color: #fff4c8;
  background: rgba(4,16,52,.76);
  font-family: "PingFang SC", sans-serif;
  font-size: clamp(12px, 1.35vw, 21px);
  font-weight: 800;
  letter-spacing: .24em;
}
.cutin-copy strong {
  color: white;
  -webkit-text-fill-color: white;
  font-size: clamp(56px, 9vw, 150px);
  line-height: 1.02;
  letter-spacing: .08em;
  -webkit-text-stroke: 2px color-mix(in srgb, var(--cutin-color) 65%, #061238);
  text-shadow: 0 0 8px white, 0 0 25px var(--cutin-color), 0 6px 0 rgba(4,15,57,.8);
}
.cutin-rule { width: min(38vw, 520px); height: 5px; background: linear-gradient(90deg, transparent, var(--cutin-color), #fff8cf); box-shadow: 0 0 12px var(--cutin-glow); }
.cutin-slash {
  position: absolute;
  z-index: 4;
  width: 130vw;
  height: 6px;
  left: -15vw;
  top: 50%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, white 28%, var(--cutin-color) 50%, white 72%, transparent);
  box-shadow: 0 0 12px white, 0 0 32px var(--cutin-glow);
}
.cutin-slash-a { --slash-angle: -12deg; transform: rotate(var(--slash-angle)); }
.cutin-slash-b { --slash-angle: 9deg; transform: rotate(var(--slash-angle)); }
.skill-cutin.is-active .cutin-slash-a { animation: slash-flash 520ms ease-out 120ms both; }
.skill-cutin.is-active .cutin-slash-b { animation: slash-flash 480ms ease-out 260ms both; }
.skill-cutin.is-exiting { opacity: 0; transition: opacity 250ms ease; }

@keyframes screen-reveal { from { opacity: 0; filter: brightness(.6); } to { opacity: 1; filter: brightness(1); } }
@keyframes plaque-arrive { from { opacity: 0; transform: translate(-50%, -34px) scale(.91); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
@keyframes card-arrive { from { opacity: 0; transform: translateY(42px) scale(.91); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes card-refresh { from { opacity: .38; transform: translateX(18px) scale(.98); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes selected-pulse { from { opacity: .7; } to { opacity: 1; } }
@keyframes card-shine { 0%, 45% { left: -90%; } 68%, 100% { left: 150%; } }
@keyframes star-breathe { from { opacity: .48; } to { opacity: .92; } }
@keyframes lantern-glow { from { opacity: .55; } to { opacity: 1; } }
@keyframes hint-pulse { 0% { color: white; transform: translateX(-50%) scale(.96); } 45% { color: #ffe08a; transform: translateX(-50%) scale(1.04); } 100% { transform: translateX(-50%) scale(1); } }
@keyframes cutin-backdrop { from { opacity: 0; } to { opacity: 1; } }
@keyframes cutin-rays { 0% { opacity: 0; transform: scale(.6) rotate(-8deg); } 35% { opacity: .68; } 100% { opacity: .18; transform: scale(1.18) rotate(3deg); } }
@keyframes cutin-character { 0% { opacity: 0; transform: translateX(-65vw) skewX(-6deg) scale(.92); } 18% { opacity: 1; } 47% { transform: translateX(3vw) skewX(1deg) scale(1.04); } 62%, 100% { opacity: 1; transform: translateX(0) skewX(0) scale(1); } }
@keyframes cutin-copy { from { opacity: 0; transform: translateX(80px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slash-flash { 0% { opacity: 0; transform: translateX(-45vw) rotate(var(--slash-angle)) scaleX(.4); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateX(45vw) rotate(var(--slash-angle)) scaleX(1.1); } }

@media (max-height: 470px) {
  :root { --card-width: clamp(94px, calc((100vw - 148px) / 6), 132px); }
  .title-plaque { top: 7px; width: clamp(300px, 42vw, 400px); height: 68px; }
  .title-plaque::after { inset: 5px 8px; }
  .title-plaque h1 { font-size: clamp(29px, 4.3vw, 40px); }
  .plaque-gem { top: 0; width: 18px; border-width: 2px; transform: translate(-50%, 0) rotate(45deg); }
  .roster-stage { top: 76px; bottom: 40px; grid-template-columns: 44px 1fr 44px; gap: 2px; }
  .hero-card { min-height: 0; max-height: calc(100svh - 122px); }
  .cards-track { gap: clamp(6px, .8vw, 9px); }
  .hero-card.is-selected { transform: translateY(-5px) scale(1.02); }
  .nameplate { min-height: 30px; }
  .nameplate strong { font-size: clamp(15px, 1.95vw, 18px); }
  .attribute-icon { width: clamp(24px, 2.9vw, 30px); height: clamp(24px, 2.9vw, 30px); }
  .locked-label { font-size: clamp(12px, 1.5vw, 16px); }
  .pager { bottom: 14px; gap: 5px; }
  .pager-dot::before { width: 14px; }
  .interaction-hint { bottom: 2px; max-width: 80vw; padding: 1px 8px; font-size: 10px; }
}

@media (orientation: portrait) {
  .select-screen::after {
    content: "请横屏查看选将画面";
    position: absolute;
    z-index: 90;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffe5a1;
    background: rgba(4, 13, 42, .92);
    font-size: 7vw;
    font-weight: 900;
    letter-spacing: .08em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
