:root {
  color-scheme: dark;
  --bg: #06111f;
  --panel: rgba(12, 31, 52, 0.92);
  --panel-soft: rgba(19, 52, 82, 0.84);
  --ice: #8ee8ff;
  --ice-strong: #d9fbff;
  --gold: #ffd166;
  --danger: #ff5c7a;
  --ok: #54f2b2;
  --text: #f5fbff;
  --muted: #a9c2d3;
  --border: rgba(165, 232, 255, 0.22);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(142, 232, 255, 0.18), transparent 32rem),
    linear-gradient(145deg, #06111f 0%, #09253b 48%, #081727 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.frost-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(5, 17, 31, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--ice-strong);
  font-weight: 900;
  text-decoration: none;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-nav a,
.section-title a,
.share-button {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 0.78rem;
  color: var(--ice-strong);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
}

.boss-shell,
.ranking-page,
.dashboard-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 1rem;
}

.world-boss-page {
  width: min(1100px, 100%);
  display: grid;
  gap: 1rem;
}

.frost-card {
  border: 1px solid rgba(142, 232, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(15, 42, 68, 0.7), rgba(4, 14, 28, 0.64)),
    rgba(8, 24, 43, 0.72);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34), inset 0 0 24px rgba(142, 232, 255, 0.045);
  backdrop-filter: blur(14px);
}

.boss-cinematic {
  position: relative;
  display: grid;
  gap: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(142, 232, 255, 0.28);
  border-radius: 8px;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(3, 13, 26, 0.06), rgba(3, 10, 20, 0.38) 42%, rgba(3, 10, 20, 0.92) 100%),
    radial-gradient(circle at 50% 18%, rgba(164, 239, 255, 0.28), transparent 20rem),
    radial-gradient(circle at 50% 66%, rgba(0, 128, 255, 0.18), transparent 23rem),
    linear-gradient(145deg, #071527 0%, #0b2b48 48%, #030912 100%);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5), inset 0 0 70px rgba(142, 232, 255, 0.08);
  isolation: isolate;
}

.boss-cinematic::before,
.boss-cinematic::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.boss-cinematic::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(101, 211, 255, 0.15), transparent 18%, transparent 82%, rgba(101, 211, 255, 0.16)),
    radial-gradient(circle at 10% 92%, rgba(135, 225, 255, 0.22), transparent 12rem),
    radial-gradient(circle at 92% 90%, rgba(30, 152, 255, 0.18), transparent 14rem);
}

.boss-cinematic::after {
  left: -10%;
  right: -10%;
  bottom: -2px;
  height: clamp(90px, 18vw, 190px);
  background:
    linear-gradient(135deg, transparent 0 20%, rgba(171, 238, 255, 0.2) 21% 22%, transparent 23% 100%),
    linear-gradient(225deg, transparent 0 28%, rgba(171, 238, 255, 0.18) 29% 31%, transparent 32% 100%),
    linear-gradient(180deg, transparent, rgba(5, 20, 38, 0.98));
}

.cinematic-topline {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: flex-start;
}

.world-boss-label {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid rgba(142, 232, 255, 0.42);
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  color: var(--ice-strong);
  background: rgba(2, 12, 25, 0.68);
  box-shadow: 0 0 24px rgba(142, 232, 255, 0.2);
  font-size: 0.82rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
}

.world-boss-label::before {
  content: "♛";
  margin-right: 0.45rem;
  color: var(--ice);
}

.boss-art-stage {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: clamp(340px, 44vw, 580px);
  place-items: center;
  margin-top: -0.85rem;
}

.boss-art-stage::before {
  content: "";
  position: absolute;
  width: min(74vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142, 232, 255, 0.28), rgba(22, 121, 204, 0.16) 45%, transparent 70%);
  filter: blur(4px);
  animation: ice-glow-pulse 3.8s ease-in-out infinite;
}

.ice-boss-art {
  position: relative;
  z-index: 2;
  width: min(1040px, 118vw);
  max-width: none;
  height: clamp(360px, 74vw, 660px);
  border-radius: 8px;
  object-fit: cover;
  object-position: center 34%;
  filter:
    drop-shadow(0 0 24px rgba(142, 232, 255, 0.48))
    drop-shadow(0 30px 60px rgba(0, 0, 0, 0.46));
  animation: ice-boss-float 5.8s ease-in-out infinite, ice-boss-glow 3.6s ease-in-out infinite;
}

/* The portrait ice-roc-boss.webp is for compact cards; this wide asset is tuned for the /boss cinematic hero. */
.ice-boss-hero-image {
  width: 100%;
  max-width: min(1120px, 100%);
  height: clamp(340px, 44vw, 580px);
  border-radius: 28px;
  object-fit: cover;
  object-position: center center;
}

.boss-cinematic .snow-layer {
  z-index: 5;
  opacity: 0.82;
}

.world-boss-copy {
  position: relative;
  z-index: 4;
  max-width: 780px;
  margin: -3.9rem auto 0;
  text-align: center;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.84);
}

.world-boss-copy h1,
.ice-boss-title {
  color: #effcff;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.9;
  font-weight: 1000;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-shadow:
    0 0 12px rgba(217, 251, 255, 0.9),
    0 0 36px rgba(62, 191, 255, 0.8),
    0 8px 0 rgba(16, 61, 103, 0.7),
    0 16px 34px rgba(0, 0, 0, 0.9);
}

.world-boss-copy p:not(.eyebrow) {
  width: min(690px, 100%);
  margin: 0.55rem auto 0;
  color: #eaf9ff;
  font-size: clamp(0.96rem, 2.6vw, 1.12rem);
  font-weight: 900;
}

.world-boss-hp {
  position: relative;
  z-index: 4;
  width: min(900px, 100%);
  margin: -0.15rem auto 0;
  padding: 0.85rem;
}

.world-boss-hp .hp-track {
  height: 18px;
  border: 1px solid rgba(217, 251, 255, 0.32);
  background: rgba(2, 12, 25, 0.68);
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.42), 0 0 18px rgba(142, 232, 255, 0.2);
}

.hp-fill {
  position: relative;
  overflow: hidden;
}

.hp-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
  animation: hp-shine 2.2s ease-in-out infinite;
}

.world-boss-hp .hp-fill {
  background: linear-gradient(90deg, #5ee9ff, #9af7ff 48%, #d9fbff);
  box-shadow: 0 0 22px rgba(94, 233, 255, 0.75);
}

.world-boss-hp .hp-total {
  color: var(--ice-strong);
  text-align: center;
  font-size: clamp(1rem, 4vw, 1.3rem);
  font-weight: 1000;
}

.boss-info-grid,
.boss-stat-grid,
.reward-row {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 0.75rem;
}

.boss-info-card,
.boss-stat-card,
.reward-card {
  display: grid;
  min-height: 78px;
  align-items: center;
  justify-items: center;
  gap: 0.35rem;
  padding: 0.7rem;
  text-align: center;
}

.boss-info-card {
  grid-template-columns: auto minmax(0, 1fr);
  justify-items: start;
  text-align: left;
}

.boss-info-card > span,
.boss-stat-card > span,
.reward-card > span {
  font-size: 1.65rem;
  filter: drop-shadow(0 0 12px rgba(142, 232, 255, 0.5));
}

.boss-info-card p,
.boss-stat-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.boss-info-card strong,
.boss-stat-card strong,
.reward-card strong {
  color: var(--ice-strong);
  font-size: 1.05rem;
  font-weight: 1000;
}

.boss-stat-card strong {
  color: #74eaff;
  font-size: clamp(1.08rem, 5vw, 1.45rem);
}

.boss-stat-card small {
  color: var(--gold);
  font-weight: 1000;
}

.section-divider-title {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--ice-strong);
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-divider-title::before,
.section-divider-title::after {
  content: "";
  width: min(120px, 18vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(142, 232, 255, 0.62));
}

.section-divider-title::after {
  background: linear-gradient(90deg, rgba(142, 232, 255, 0.62), transparent);
}

.reward-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 0.7rem;
}

.reward-card {
  min-height: 70px;
  background: rgba(2, 12, 25, 0.45);
}

.boss-cinematic-cta {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 0.7rem;
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 1rem;
  border-color: rgba(142, 232, 255, 0.45);
  text-align: center;
  box-shadow: 0 0 34px rgba(142, 232, 255, 0.22), inset 0 0 28px rgba(142, 232, 255, 0.05);
}

.boss-cinematic-cta h2 {
  color: var(--ice-strong);
  font-size: clamp(1.35rem, 5.5vw, 2rem);
}

.boss-cinematic-cta p {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.boss-cinematic-cta .attack-button {
  width: min(390px, 100%);
  margin: 0 auto;
}

.boss-simulator {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.simulator-title {
  margin-bottom: 0;
}

.simulator-form-card,
.public-attack-card.simulator-form-card {
  width: min(820px, 100%);
  margin: 0 auto;
  border-color: rgba(142, 232, 255, 0.26);
}

.boss-simulator .battle-stage {
  width: min(820px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(142, 232, 255, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(142, 232, 255, 0.18), transparent 22rem),
    rgba(2, 12, 25, 0.42);
}

.boss-art-stage.boss-roar .boss-roar-text {
  animation: boss-roar-text 1.45s ease forwards;
}

.boss-art-stage.boss-hit::after,
.boss-art-stage.boss-critical-hit::after {
  content: "";
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 45%;
  width: 64px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(217, 251, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 0 32px rgba(142, 232, 255, 0.92), inset 0 0 24px rgba(217, 251, 255, 0.45);
  animation: impact-ring 850ms ease-out forwards;
  pointer-events: none;
}

.boss-art-stage.boss-critical-hit::after {
  width: 92px;
  border-color: rgba(255, 209, 102, 0.95);
  box-shadow: 0 0 44px rgba(255, 209, 102, 0.95), 0 0 80px rgba(255, 92, 122, 0.42);
}

.ice-boss-art.boss-hit {
  animation: boss-hit-shake 720ms ease both;
  filter: brightness(1.28) drop-shadow(0 0 34px rgba(217, 251, 255, 0.84));
}

.ice-boss-art.boss-critical-hit {
  animation: boss-critical-shake 1.15s ease both;
  filter: brightness(1.55) saturate(1.2) drop-shadow(0 0 46px rgba(255, 209, 102, 0.92));
}

@keyframes ice-boss-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-14px) scale(1.012);
  }
}

@keyframes ice-boss-glow {
  0%,
  100% {
    filter:
      drop-shadow(0 0 20px rgba(142, 232, 255, 0.42))
      drop-shadow(0 30px 60px rgba(0, 0, 0, 0.46));
  }
  50% {
    filter:
      drop-shadow(0 0 38px rgba(142, 232, 255, 0.72))
      drop-shadow(0 32px 70px rgba(0, 0, 0, 0.5));
  }
}

@keyframes ice-glow-pulse {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.92;
    transform: scale(1.05);
  }
}

@keyframes hp-shine {
  0% {
    transform: translateX(-120%);
  }
  58%,
  100% {
    transform: translateX(120%);
  }
}

.flash-wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 1rem 1rem 0;
}

.flash-message,
.alert-card {
  border: 1px solid rgba(142, 232, 255, 0.28);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  color: var(--ice-strong);
  background: rgba(142, 232, 255, 0.09);
  font-weight: 900;
}

.flash-message {
  margin: 0;
}

.arena {
  display: grid;
  gap: 1rem;
}

.arena-landing {
  max-width: 780px;
  margin: 0 auto;
}

.boss-cta-card {
  display: grid;
  gap: 0.85rem;
  width: min(780px, 100%);
  margin: 1rem auto 0;
  padding: 1.05rem;
  overflow: hidden;
  border: 1px solid rgba(142, 232, 255, 0.3);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0%, rgba(142, 232, 255, 0.18), transparent 16rem),
    radial-gradient(circle at 92% 24%, rgba(255, 209, 102, 0.14), transparent 13rem),
    var(--panel);
  box-shadow: var(--shadow);
  text-align: center;
}

.boss-cta-card h2 {
  color: var(--ice-strong);
  font-size: clamp(1.55rem, 8vw, 2.55rem);
}

.boss-cta-card p {
  width: min(40rem, 100%);
  margin: 0 auto;
  color: var(--muted);
  font-weight: 800;
}

.boss-cta-card small {
  width: min(42rem, 100%);
  margin: 0 auto;
  color: #ffeab2;
  font-weight: 800;
}

.public-attack-card {
  width: min(780px, 100%);
  margin: 1rem auto 0;
}

.cta-actions {
  display: grid;
  gap: 0.65rem;
  width: min(420px, 100%);
  margin: 0.25rem auto 0;
}

.boss-panel,
.stat-card,
.result-card,
.ranking-preview,
.table-wrap,
.dashboard-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.boss-panel {
  position: relative;
  overflow: hidden;
}

.boss-card {
  padding: 1.25rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--ice);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  line-height: 1.08;
}

.boss-card h1 {
  margin-top: 0.45rem;
  font-size: clamp(2rem, 12vw, 4.8rem);
}

.boss-copy {
  max-width: 36rem;
  margin: 0.75rem auto 1.2rem;
  color: var(--muted);
}

.boss-stage {
  position: relative;
  width: min(360px, 90vw, 100%);
  height: clamp(320px, 72vw, 380px);
  margin: 0.75rem auto 0;
  overflow: hidden;
  border: 1px solid rgba(217, 251, 255, 0.26);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 30%, rgba(217, 251, 255, 0.22), transparent 32%),
    radial-gradient(circle at 50% 78%, rgba(20, 113, 156, 0.34), transparent 38%),
    linear-gradient(180deg, rgba(5, 18, 33, 0.2), rgba(2, 8, 17, 0.72));
  box-shadow: inset 0 0 40px rgba(142, 232, 255, 0.1), 0 18px 54px rgba(0, 0, 0, 0.3);
  isolation: isolate;
}

.snow-layer,
.boss-aura,
.boss-shadow,
.boss-roar-text {
  pointer-events: none;
}

.snow-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
}

.snow-layer span {
  position: absolute;
  top: -18px;
  left: var(--snow-left);
  width: var(--snow-size);
  height: var(--snow-size);
  border-radius: 50%;
  background: rgba(217, 251, 255, 0.88);
  box-shadow: 0 0 10px rgba(142, 232, 255, 0.7);
  opacity: 0.84;
  animation: snow-fall var(--snow-duration) linear infinite;
  animation-delay: var(--snow-delay);
}

.boss-aura {
  position: absolute;
  z-index: 1;
  inset: 12%;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, transparent, rgba(142, 232, 255, 0.24), transparent, rgba(217, 251, 255, 0.2), transparent),
    radial-gradient(circle, rgba(217, 251, 255, 0.16), rgba(51, 158, 205, 0.08) 44%, transparent 68%);
  filter: blur(1px);
  animation: aura-spin 16s linear infinite, aura-pulse 4.5s ease-in-out infinite;
}

.boss-shadow {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 38px;
  width: 58%;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 4, 12, 0.62);
  filter: blur(10px);
  transform: translateX(-50%);
  animation: shadow-pulse 3.4s ease-in-out infinite;
}

.boss-creature {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 54px;
  width: min(245px, 68vw);
  height: 260px;
  transform: translateX(-50%);
  transform-origin: 50% 86%;
  animation: boss-float 3.4s ease-in-out infinite, boss-breathe 2.7s ease-in-out infinite;
}

.boss-creature::before,
.boss-creature::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 38px;
  height: 82px;
  top: 38px;
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, #dffcff, #71d8fb 46%, #1b5d80);
  box-shadow: inset 0 -8px 14px rgba(4, 17, 31, 0.38), 0 0 22px rgba(142, 232, 255, 0.25);
}

.boss-creature::before {
  left: 18px;
  transform: rotate(-26deg);
}

.boss-creature::after {
  right: 18px;
  transform: rotate(26deg);
}

.boss-horns {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 2px;
  width: 172px;
  height: 86px;
  transform: translateX(-50%);
}

.boss-horns::before,
.boss-horns::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 72px;
  height: 72px;
  border-top: 14px solid #dffcff;
  border-left: 14px solid #aaf3ff;
  border-radius: 70% 0 0 0;
  filter: drop-shadow(0 0 10px rgba(217, 251, 255, 0.5));
}

.boss-horns::before {
  left: 0;
  transform: rotate(-18deg);
}

.boss-horns::after {
  right: 0;
  transform: scaleX(-1) rotate(-18deg);
}

.boss-head {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 44px;
  width: 150px;
  height: 126px;
  transform: translateX(-50%);
  border-radius: 42% 42% 36% 36%;
  background:
    radial-gradient(circle at 36% 36%, rgba(255, 255, 255, 0.36), transparent 9%),
    radial-gradient(circle at 64% 36%, rgba(255, 255, 255, 0.28), transparent 9%),
    linear-gradient(150deg, #93edff, #1f78a6 48%, #0b2d4a 100%);
  box-shadow: inset 0 -20px 28px rgba(1, 9, 19, 0.42), inset 0 12px 20px rgba(255, 255, 255, 0.18), 0 0 34px rgba(142, 232, 255, 0.24);
}

.boss-head::before,
.boss-head::after {
  content: "";
  position: absolute;
  top: 26px;
  width: 42px;
  height: 12px;
  border-radius: 999px;
  background: rgba(3, 13, 24, 0.5);
}

.boss-head::before {
  left: 20px;
  transform: rotate(13deg);
}

.boss-head::after {
  right: 20px;
  transform: rotate(-13deg);
}

.boss-eye {
  position: absolute;
  z-index: 2;
  top: 48px;
  width: 24px;
  height: 18px;
  border-radius: 999px;
  background: #efffff;
  box-shadow: 0 0 10px #d9fbff, 0 0 24px rgba(99, 235, 255, 0.92);
  animation: eye-pulse 1.8s ease-in-out infinite;
  transition: height 120ms ease, transform 120ms ease;
}

.boss-eye-left {
  left: 34px;
}

.boss-eye-right {
  right: 34px;
}

.boss-mouth {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 58px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 0 0 999px 999px;
  background: #03111e;
  box-shadow: inset 0 6px 0 rgba(255, 255, 255, 0.12);
}

.boss-body {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 16px;
  width: 174px;
  height: 142px;
  transform: translateX(-50%);
  border-radius: 48% 48% 32% 32%;
  background:
    linear-gradient(90deg, transparent 0 15%, rgba(255, 255, 255, 0.16) 16% 18%, transparent 19% 81%, rgba(255, 255, 255, 0.13) 82% 84%, transparent 85%),
    linear-gradient(160deg, #61cff3, #155c88 54%, #081f37 100%);
  box-shadow: inset 0 -24px 34px rgba(0, 7, 16, 0.52), 0 0 38px rgba(52, 185, 232, 0.2);
}

.boss-core {
  position: absolute;
  left: 50%;
  top: 38px;
  width: 58px;
  height: 58px;
  transform: translateX(-50%) rotate(45deg);
  border: 2px solid rgba(217, 251, 255, 0.86);
  border-radius: 8px;
  background: radial-gradient(circle, #ffffff 0 10%, #bdf7ff 24%, #24b6e6 58%, #0a4164 100%);
  box-shadow: 0 0 24px rgba(217, 251, 255, 0.85), inset 0 0 18px rgba(255, 255, 255, 0.48);
  animation: core-pulse 1.7s ease-in-out infinite;
}

.boss-arm {
  position: absolute;
  z-index: 2;
  top: 128px;
  width: 64px;
  height: 126px;
  border-radius: 999px 999px 22px 22px;
  background: linear-gradient(180deg, #77dcfb, #15577e 62%, #071d33);
  box-shadow: inset 0 -18px 20px rgba(0, 7, 16, 0.42), 0 0 20px rgba(142, 232, 255, 0.18);
}

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

.boss-arm-right {
  right: 6px;
  transform: rotate(-18deg);
}

.boss-roar-text {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 22px;
  width: min(92%, 310px);
  padding: 0.55rem 0.8rem;
  transform: translateX(-50%) scale(0.86);
  border: 1px solid rgba(255, 209, 102, 0.5);
  border-radius: 999px;
  opacity: 0;
  color: #fff4c6;
  background: rgba(5, 18, 33, 0.78);
  font-size: clamp(0.88rem, 4vw, 1.15rem);
  font-weight: 1000;
  text-align: center;
  text-shadow: 0 0 16px rgba(255, 209, 102, 0.75);
}

.boss-blink .boss-eye {
  height: 4px;
  transform: translateY(7px);
  box-shadow: 0 0 4px rgba(217, 251, 255, 0.45);
}

.boss-stage.boss-roar .boss-roar-text {
  animation: boss-roar-text 1.45s ease forwards;
}

.boss-stage.boss-roar .boss-creature {
  animation: boss-roar 1.05s ease both;
}

.boss-stage.boss-hit::before,
.boss-stage.boss-critical-hit::before {
  content: "";
  position: absolute;
  z-index: 6;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 50% 44%, rgba(217, 251, 255, 0.72), transparent 34%);
  animation: flash 520ms ease;
  pointer-events: none;
}

.boss-stage.boss-critical-hit::before {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.86), transparent 24%),
    radial-gradient(circle at 50% 46%, rgba(255, 209, 102, 0.62), transparent 42%),
    radial-gradient(circle at 50% 52%, rgba(255, 92, 122, 0.38), transparent 56%);
  animation: flash 900ms ease;
}

.boss-stage.boss-hit::after,
.boss-stage.boss-critical-hit::after {
  content: "";
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 43%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid rgba(217, 251, 255, 0.9);
  box-shadow: 0 0 26px rgba(142, 232, 255, 0.9), inset 0 0 20px rgba(217, 251, 255, 0.45);
  animation: impact-ring 850ms ease-out forwards;
  pointer-events: none;
}

.boss-stage.boss-critical-hit::after {
  width: 70px;
  height: 70px;
  border-color: rgba(255, 209, 102, 0.95);
  box-shadow: 0 0 40px rgba(255, 209, 102, 0.95), 0 0 72px rgba(255, 92, 122, 0.48);
  animation: boss-critical-impact 1.2s ease-out forwards;
}

.boss-stage.boss-critical-hit .boss-roar-text {
  animation: boss-roar-text 1.2s ease forwards;
  border-color: rgba(255, 209, 102, 0.78);
  color: #ffe39a;
  text-shadow: 0 0 18px rgba(255, 209, 102, 0.95), 0 0 28px rgba(255, 92, 122, 0.5);
}

.boss-creature.boss-hit {
  animation: boss-hit-shake 720ms ease both;
  filter: brightness(1.45) drop-shadow(0 0 24px rgba(217, 251, 255, 0.82));
}

.boss-creature.boss-critical-hit {
  animation: boss-critical-shake 1.15s ease both;
  filter: brightness(1.85) saturate(1.25) drop-shadow(0 0 34px rgba(255, 209, 102, 0.9));
}

.hp-wrap {
  text-align: left;
}

.hp-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ice-strong);
  font-weight: 900;
}

.hp-track {
  height: 16px;
  margin-top: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.hp-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--danger), var(--gold), var(--ok));
  transition: width 800ms ease;
}

.hp-total {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.battle-stage {
  position: relative;
  min-height: 120px;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.16));
}

.troop-line {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  transition: transform 520ms ease;
}

.troop-card {
  width: 58px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-soft);
  font-size: 1.8rem;
}

.battle-stage.is-attacking .troop-line {
  transform: translateY(-32px) scale(1.06);
}

.boss-card.is-shaking {
  animation: bossShake 420ms linear 2;
}

.impact-flash {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(217, 251, 255, 0.86);
  pointer-events: none;
}

.impact-flash.is-visible {
  animation: flash 360ms ease;
}

.damage-pop {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%) scale(0.75);
  opacity: 0;
  color: var(--gold);
  font-size: clamp(2rem, 12vw, 4rem);
  font-weight: 1000;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  pointer-events: none;
}

.damage-pop.is-visible {
  animation: damagePop 1.25s ease forwards;
}

.stat-card {
  padding: 1rem;
}

.form-heading {
  margin-bottom: 1rem;
}

label {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  color: var(--ice-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(165, 232, 255, 0.25);
  border-radius: 8px;
  padding: 0.72rem 0.8rem;
  background: rgba(2, 11, 21, 0.72);
  color: var(--text);
  font: inherit;
}

input:focus,
select:focus {
  outline: 2px solid rgba(142, 232, 255, 0.56);
  outline-offset: 2px;
}

.two-cols,
.hero-fields {
  display: grid;
  gap: 0.1rem;
}

.attack-button {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  color: #07111d;
  background: linear-gradient(135deg, #d9fbff, #62d9ff 52%, #ffd166);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(98, 217, 255, 0.22);
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #07111d;
  text-decoration: none;
}

.attack-button:disabled {
  cursor: wait;
  filter: grayscale(0.4);
  opacity: 0.72;
}

.attack-status,
.form-error {
  min-height: 1.35rem;
  margin: 0.75rem 0;
  color: var(--gold);
  font-weight: 800;
}

.form-error {
  color: #ff9bb0;
}

.result-card {
  margin-top: 1rem;
  padding: 1.2rem;
  text-align: center;
}

.result-card.is-hidden {
  display: none;
}

.result-card h2 {
  color: var(--gold);
  font-size: clamp(2rem, 11vw, 4rem);
}

.critical-text {
  min-height: 1.4rem;
  margin: 0 0 0.35rem;
  color: var(--danger);
  font-weight: 1000;
}

.share-button {
  display: inline-flex;
  justify-content: center;
  margin-top: 0.7rem;
  background: rgba(84, 242, 178, 0.14);
  color: #aefbdc;
}

.saved-build-card {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.9rem;
  border: 1px solid rgba(142, 232, 255, 0.3);
  border-radius: 8px;
  background: rgba(142, 232, 255, 0.08);
}

.saved-build-card p,
.saved-build-card span {
  margin: 0;
}

.saved-build-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.saved-profile-card {
  gap: 0.85rem;
}

.saved-profile-head,
.form-heading-player {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.saved-profile-summary {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.saved-profile-summary div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(165, 232, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.saved-profile-summary dt,
.saved-profile-summary dd {
  margin: 0;
}

.saved-profile-summary dt {
  color: var(--muted);
}

.saved-profile-summary dd {
  color: var(--ice-strong);
  font-weight: 900;
  text-align: right;
}

.missing-checklist {
  display: grid;
  gap: 0.6rem;
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: 8px;
  padding: 0.75rem;
  background: rgba(255, 209, 102, 0.08);
}

.missing-checklist p {
  margin: 0;
  color: #ffeab2;
  font-weight: 900;
}

.missing-checklist [data-missing-items] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.missing-item {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(255, 209, 102, 0.34);
  border-radius: 999px;
  padding: 0.36rem 0.68rem;
  color: #ffeab2;
  background: rgba(255, 209, 102, 0.1);
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.manual-field {
  display: none;
}

.is-manual-mode .manual-field {
  display: grid;
}

.simulation-fields[hidden] {
  display: none;
}

.completion-warning {
  margin: 0.8rem 0;
  border: 1px solid rgba(255, 209, 102, 0.3);
  border-radius: 8px;
  padding: 0.75rem;
  color: #ffeab2;
  background: rgba(255, 209, 102, 0.08);
  font-weight: 900;
}

.completion-warning[hidden] {
  display: none;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  color: var(--ice-strong);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.danger-button {
  color: #ffd2dc;
  background: rgba(255, 92, 122, 0.12);
}

.dashboard-shell {
  padding-top: 1.25rem;
}

.dashboard-grid,
.hero-grid,
.dashboard-actions {
  display: grid;
  gap: 1rem;
}

.dashboard-card {
  padding: 1rem;
}

.dashboard-card h2,
.dashboard-card h3 {
  margin: 0;
}

.profile-facts,
.gear-list,
.combat-stat-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.profile-facts div,
.gear-list div,
.combat-stat-list div,
.stat-grid div,
.compact-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.68rem;
  border: 1px solid rgba(165, 232, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

dt,
dd {
  margin: 0;
}

dt,
.stat-grid span {
  color: var(--muted);
}

dd,
.stat-grid strong {
  color: var(--ice-strong);
  font-weight: 900;
  text-align: right;
}

.stat-grid {
  display: grid;
  gap: 0.65rem;
}

.compact-list {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 0.8rem 0 0;
  list-style: none;
}

.dashboard-actions {
  margin-top: 1rem;
}

.combat-stats-card {
  align-content: start;
  gap: 0.85rem;
}

.combat-stats-card .small-button {
  width: fit-content;
}

.combat-stat-list {
  margin: 0.85rem 0;
}

.combat-stat-list div {
  align-items: center;
}

.combat-stat-list dt {
  font-size: 0.88rem;
}

.formation-cta-card {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  border-color: rgba(255, 209, 102, 0.26);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 209, 102, 0.12), transparent 16rem),
    var(--panel);
}

.formation-cta-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.danger-zone-card {
  border-color: rgba(255, 92, 122, 0.32);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 92, 122, 0.16), transparent 15rem),
    var(--panel);
}

.danger-zone-card h2 {
  color: #ffd2dc;
}

.danger-zone-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.account-danger-card {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.governor-header-card {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
  border-color: rgba(142, 232, 255, 0.34);
  background:
    radial-gradient(circle at 12% 0%, rgba(142, 232, 255, 0.18), transparent 17rem),
    radial-gradient(circle at 90% 15%, rgba(255, 209, 102, 0.1), transparent 15rem),
    var(--panel);
}

.governor-identity {
  display: grid;
  gap: 0.9rem;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.governor-title h1 {
  font-size: clamp(2rem, 10vw, 3.8rem);
  color: var(--ice-strong);
}

.profile-avatar-large {
  width: 96px;
  border-color: rgba(217, 251, 255, 0.64);
  box-shadow: 0 0 36px rgba(142, 232, 255, 0.34), 0 0 0 4px rgba(142, 232, 255, 0.08);
}

.governor-badges,
.governor-stats-strip,
.profile-checklist,
.governor-equipment-grid,
.governor-equipment-edit-grid,
.form-actions {
  display: grid;
  gap: 0.65rem;
}

.governor-badges {
  margin-top: 0.75rem;
}

.rpg-badge {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(142, 232, 255, 0.32);
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  color: var(--ice-strong);
  background: rgba(142, 232, 255, 0.1);
  font-size: 0.84rem;
  font-weight: 1000;
}

.verified-badge {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 0.45rem;
  border: 1px solid rgba(255, 209, 102, 0.52);
  border-radius: 999px;
  padding: 0.24rem 0.58rem;
  color: #ffeab2;
  background: rgba(255, 209, 102, 0.14);
  font-size: 0.78rem;
  font-weight: 1000;
  text-shadow: none;
}

.verified-rpg-badge {
  border-color: rgba(255, 209, 102, 0.5);
  color: #ffeab2;
  background: rgba(255, 209, 102, 0.13);
}

.governor-stats-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.governor-stats-strip div {
  border: 1px solid rgba(165, 232, 255, 0.16);
  border-radius: 8px;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}

.governor-stats-strip dt {
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.governor-stats-strip dd {
  margin-top: 0.2rem;
  text-align: center;
  font-size: 1.08rem;
}

.profile-progress-card {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.progress-head,
.card-title-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.progress-head strong {
  color: var(--gold);
  font-size: 1.8rem;
  line-height: 1;
}

.profile-progress-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.profile-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2fd9ff, #54f2b2 58%, #ffd166);
  box-shadow: 0 0 18px rgba(142, 232, 255, 0.4);
}

.profile-progress-text {
  margin: 0;
  color: var(--ice-strong);
  font-weight: 1000;
}

.profile-checklist {
  padding: 0;
  margin: 0;
  list-style: none;
}

.profile-checklist li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid rgba(165, 232, 255, 0.14);
  border-radius: 8px;
  padding: 0.68rem;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ice-strong);
  font-weight: 900;
}

.profile-checklist li.is-missing {
  border-color: rgba(255, 209, 102, 0.3);
  background: rgba(255, 209, 102, 0.08);
}

.profile-checklist a {
  color: #ffeab2;
  font-size: 0.84rem;
  font-weight: 1000;
}

.card-title-row {
  margin-bottom: 0.85rem;
}

.card-action {
  width: fit-content;
  margin-top: 0.85rem;
}

.governor-equipment-card {
  border-color: rgba(142, 232, 255, 0.28);
}

.governor-slot-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  border: 1px solid rgba(165, 232, 255, 0.16);
  border-radius: 8px;
  padding: 0.72rem;
  background: rgba(255, 255, 255, 0.045);
}

.governor-slot-card.is-filled {
  border-color: rgba(255, 209, 102, 0.32);
  background: rgba(255, 209, 102, 0.07);
}

.governor-slot-icon {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(142, 232, 255, 0.24);
  border-radius: 8px;
  background: rgba(2, 11, 21, 0.5);
  font-size: 1.35rem;
}

.governor-slot-card strong {
  color: var(--ice-strong);
}

.governor-slot-card p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.governor-equipment-form {
  max-width: 980px;
}

.governor-equipment-edit-card {
  min-width: 0;
  border: 1px solid rgba(165, 232, 255, 0.18);
  border-radius: 8px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.045);
}

.governor-equipment-edit-card legend {
  padding: 0 0.35rem;
  color: var(--ice-strong);
  font-weight: 1000;
}

.governor-equipment-fields,
.governor-gem-fields {
  display: grid;
  gap: 0.75rem;
}

.form-actions {
  margin-top: 1rem;
}

.verification-card {
  display: grid;
  gap: 0.8rem;
  border-color: rgba(255, 209, 102, 0.28);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 209, 102, 0.12), transparent 15rem),
    var(--panel);
}

.verification-card p,
.verification-upload-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.warning-status {
  border-color: rgba(255, 209, 102, 0.38);
  color: #ffeab2;
  background: rgba(255, 209, 102, 0.12);
}

.verification-rejected,
.verification-current-status,
.reviewer-notes {
  display: grid;
  gap: 0.25rem;
  border: 1px solid rgba(255, 92, 122, 0.28);
  border-radius: 8px;
  padding: 0.75rem;
  color: #ffd2dc;
  background: rgba(255, 92, 122, 0.1);
  font-weight: 800;
}

.verification-current-status {
  border-color: rgba(142, 232, 255, 0.24);
  color: var(--ice-strong);
  background: rgba(142, 232, 255, 0.08);
}

.verification-admin-list {
  display: grid;
  gap: 1rem;
}

.admin-verification-card {
  display: grid;
  gap: 1rem;
}

.admin-verification-image {
  overflow: hidden;
  border: 1px solid rgba(165, 232, 255, 0.2);
  border-radius: 8px;
  background: rgba(2, 11, 21, 0.62);
}

.admin-verification-image img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: contain;
}

.admin-verification-content,
.admin-verification-actions {
  display: grid;
  gap: 0.85rem;
}

.extracted-facts {
  border-top: 1px solid rgba(165, 232, 255, 0.14);
  padding-top: 0.85rem;
}

.admin-verification-actions form {
  display: grid;
  gap: 0.65rem;
}

.approve-button {
  border-color: rgba(84, 242, 178, 0.36);
  color: #aefbdc;
  background: rgba(84, 242, 178, 0.12);
}

.combat-stats-form-grid {
  display: grid;
  gap: 0.75rem;
}

.form-card {
  max-width: 760px;
}

.account-shell {
  max-width: 860px;
}

.account-card {
  position: relative;
  overflow: hidden;
}

.account-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 0%, rgba(142, 232, 255, 0.14), transparent 18rem),
    radial-gradient(circle at 90% 20%, rgba(255, 209, 102, 0.1), transparent 14rem);
  pointer-events: none;
}

.account-card > * {
  position: relative;
}

.account-subtitle {
  margin: 0 0 1rem;
  color: var(--muted);
  font-weight: 800;
}

.status-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(84, 242, 178, 0.34);
  border-radius: 999px;
  padding: 0.32rem 0.68rem;
  color: #aefbdc;
  background: rgba(84, 242, 178, 0.12);
  font-size: 0.82rem;
  font-weight: 1000;
}

.player-preview-card {
  display: grid;
  gap: 1rem;
}

.player-preview-head {
  display: grid;
  gap: 0.9rem;
}

.player-avatar {
  width: 118px;
  aspect-ratio: 1;
  border: 1px solid rgba(142, 232, 255, 0.44);
  border-radius: 8px;
  object-fit: cover;
  background: rgba(2, 11, 21, 0.72);
  box-shadow: 0 0 28px rgba(142, 232, 255, 0.22);
}

.player-avatar-fallback {
  display: grid;
  place-items: center;
  color: var(--ice-strong);
  font-size: 3rem;
  font-weight: 1000;
  text-shadow: 0 0 18px rgba(142, 232, 255, 0.42);
}

.player-badges {
  justify-content: flex-start;
  margin-top: 0.55rem;
}

.account-warning,
.linked-player-summary {
  margin: 0;
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: 8px;
  padding: 0.85rem;
  color: #ffeab2;
  background: rgba(255, 209, 102, 0.08);
  font-weight: 800;
}

.linked-player-summary {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.linked-player-summary p,
.linked-player-summary small {
  margin: 0;
}

.linked-player-summary small {
  color: var(--muted);
}

.account-actions {
  display: grid;
  gap: 0.65rem;
}

.account-actions form {
  margin: 0;
}

.checkbox-row {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-weight: 800;
}

.checkbox-row input {
  width: auto;
  min-height: auto;
}

.login-helper {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
  color: var(--muted);
}

.login-helper p {
  margin: 0;
}

.login-helper a {
  color: var(--ice-strong);
  font-weight: 900;
}

.disabled-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  font-weight: 900;
  opacity: 0.68;
}

.field-error {
  color: #ff9bb0;
  font-size: 0.82rem;
}

.form-section-title {
  margin: 1rem 0 0.75rem;
  font-size: 1.1rem;
}

.form-helper {
  margin: -0.35rem 0 0.9rem;
  color: var(--muted);
}

.rarity-rare {
  --hero-rarity-color: #62d9ff;
  --hero-rarity-bg: rgba(98, 217, 255, 0.14);
  --hero-rarity-shadow: rgba(98, 217, 255, 0.34);
}

.rarity-epic {
  --hero-rarity-color: #c79cff;
  --hero-rarity-bg: rgba(188, 120, 255, 0.16);
  --hero-rarity-shadow: rgba(188, 120, 255, 0.38);
}

.rarity-legendary {
  --hero-rarity-color: #ffd166;
  --hero-rarity-bg: rgba(255, 174, 66, 0.17);
  --hero-rarity-shadow: rgba(255, 174, 66, 0.42);
}

.hero-profile-preview {
  display: grid;
  gap: 0.9rem;
  margin: 0 0 1rem;
  padding: 0.9rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--hero-rarity-color, var(--ice)) 48%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--hero-rarity-bg, rgba(142, 232, 255, 0.08)), rgba(4, 15, 28, 0.74)),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 28px rgba(217, 251, 255, 0.05), 0 16px 36px rgba(0, 0, 0, 0.18);
}

.hero-portrait-frame {
  position: relative;
  width: min(148px, 52vw);
  aspect-ratio: 1;
  justify-self: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--hero-rarity-color, var(--ice)) 62%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(217, 251, 255, 0.12), rgba(5, 18, 33, 0.88)),
    var(--hero-rarity-bg, rgba(142, 232, 255, 0.08));
  box-shadow: 0 0 24px var(--hero-rarity-shadow, rgba(142, 232, 255, 0.24)), inset 0 0 22px rgba(255, 255, 255, 0.06);
}

.hero-portrait-frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(217, 251, 255, 0.18);
  border-radius: 6px;
  pointer-events: none;
}

.hero-portrait-img {
  position: absolute;
  z-index: 2;
  inset: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  border-radius: 6px;
  object-fit: cover;
}

.is-hidden {
  display: none !important;
}

.hero-avatar-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ice-strong);
  text-align: center;
}

.hero-avatar-fallback span {
  display: grid;
  place-items: center;
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--hero-rarity-color, var(--ice)) 55%, transparent);
  border-radius: 50%;
  background: rgba(2, 11, 21, 0.56);
  font-size: clamp(2.4rem, 16vw, 4.1rem);
  font-weight: 1000;
  text-shadow: 0 0 18px var(--hero-rarity-shadow, rgba(142, 232, 255, 0.34));
}

.hero-avatar-fallback small {
  position: absolute;
  right: 0.6rem;
  bottom: 0.52rem;
  font-size: 1.4rem;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.42));
}

.hero-profile-copy {
  display: grid;
  align-content: center;
  gap: 0.55rem;
  min-width: 0;
  text-align: center;
}

.hero-profile-copy h2,
.hero-card-title h3 {
  color: var(--ice-strong);
  overflow-wrap: anywhere;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(165, 232, 255, 0.2);
  border-radius: 999px;
  padding: 0.32rem 0.62rem;
  color: var(--ice-strong);
  background: rgba(255, 255, 255, 0.065);
  font-size: 0.82rem;
  font-weight: 900;
}

.hero-badge.rarity-badge {
  border-color: color-mix(in srgb, var(--hero-rarity-color, var(--ice)) 58%, transparent);
  color: var(--hero-rarity-color, var(--ice-strong));
  background: var(--hero-rarity-bg, rgba(217, 251, 255, 0.08));
}

.hero-profile-stars {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  justify-self: center;
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-shadow: 0 0 16px rgba(255, 209, 102, 0.22);
}

.auto-info-card {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(142, 232, 255, 0.22);
  border-radius: 8px;
  background: rgba(142, 232, 255, 0.075);
}

.selected-hero-name {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.selected-hero-name strong {
  color: var(--ice-strong);
}

.auto-info-card dl {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.auto-info-card div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.info-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(142, 232, 255, 0.28);
  border-radius: 999px;
  padding: 0.32rem 0.65rem;
  color: var(--ice-strong);
  background: rgba(217, 251, 255, 0.08);
  font-weight: 900;
}

.stars-preview {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
}

.gear-form-grid {
  display: grid;
  gap: 0.85rem;
}

.gear-form-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid rgba(165, 232, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(142, 232, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(2, 11, 21, 0.34);
  box-shadow: inset 0 0 20px rgba(217, 251, 255, 0.035);
}

.gear-form-card h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 1rem;
}

.gear-icon {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  border: 1px solid rgba(142, 232, 255, 0.28);
  border-radius: 8px;
  background: rgba(142, 232, 255, 0.09);
  font-size: 1.18rem;
}

.gear-fields {
  display: grid;
  gap: 0.75rem;
}

.hero-group {
  margin-top: 1.2rem;
}

.hero-group h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.hero-card {
  display: grid;
  gap: 0.8rem;
}

.hero-card-visual {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
}

.hero-card .hero-portrait-frame {
  width: 86px;
  justify-self: start;
}

.hero-card .hero-avatar-fallback span {
  font-size: 2rem;
}

.hero-card .hero-avatar-fallback small {
  right: 0.42rem;
  bottom: 0.34rem;
  font-size: 1rem;
}

.hero-card-title {
  display: grid;
  gap: 0.42rem;
  min-width: 0;
}

.hero-card-title .hero-badge-row {
  justify-content: flex-start;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
}

.hero-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.hero-card-head strong {
  flex: 0 0 auto;
  color: var(--gold);
}

.exclusive-summary {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: right;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.card-actions form {
  margin: 0;
}

.ranking-preview {
  margin-top: 1rem;
  padding: 1rem;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-title-player,
.player-mini-profile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.dashboard-title-player h1 {
  overflow-wrap: anywhere;
}

.player-mini-profile {
  margin: 0.7rem 0;
  color: var(--ice-strong);
  font-size: 1.05rem;
}

.profile-avatar {
  flex: 0 0 auto;
  width: 72px;
  aspect-ratio: 1;
  border: 1px solid rgba(142, 232, 255, 0.48);
  border-radius: 50%;
  object-fit: cover;
  background:
    radial-gradient(circle at 40% 30%, rgba(217, 251, 255, 0.2), transparent 38%),
    rgba(2, 11, 21, 0.82);
  box-shadow: 0 0 24px rgba(142, 232, 255, 0.26), inset 0 0 18px rgba(255, 255, 255, 0.05);
}

.profile-avatar-small {
  width: 48px;
}

.profile-avatar-fallback {
  display: grid;
  place-items: center;
  color: var(--ice-strong);
  font-size: 1.7rem;
  font-weight: 1000;
  text-shadow: 0 0 16px rgba(142, 232, 255, 0.42);
}

.profile-avatar-small.profile-avatar-fallback {
  font-size: 1.2rem;
}

.section-title a {
  flex: 0 0 auto;
}

.ranking-list {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ranking-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem;
  border: 1px solid rgba(165, 232, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.rank-pos {
  color: var(--gold);
  font-weight: 1000;
}

.rank-name {
  min-width: 0;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

.ranking-page {
  padding-top: 1.25rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

th,
td {
  padding: 0.85rem;
  border-bottom: 1px solid rgba(165, 232, 255, 0.14);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ice-strong);
  font-size: 0.78rem;
  text-transform: uppercase;
}

td {
  color: #e8f6ff;
}

@keyframes boss-float {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

@keyframes boss-breathe {
  0%, 100% {
    scale: 1;
  }
  50% {
    scale: 1.025;
  }
}

@keyframes eye-pulse {
  0%, 100% {
    opacity: 0.84;
    box-shadow: 0 0 10px #d9fbff, 0 0 22px rgba(99, 235, 255, 0.74);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 16px #ffffff, 0 0 34px rgba(99, 235, 255, 1);
  }
}

@keyframes core-pulse {
  0%, 100% {
    filter: brightness(0.95);
    box-shadow: 0 0 20px rgba(217, 251, 255, 0.72), inset 0 0 16px rgba(255, 255, 255, 0.38);
  }
  50% {
    filter: brightness(1.35);
    box-shadow: 0 0 34px rgba(217, 251, 255, 1), 0 0 58px rgba(78, 218, 255, 0.38), inset 0 0 22px rgba(255, 255, 255, 0.6);
  }
}

@keyframes aura-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes aura-pulse {
  0%, 100% {
    opacity: 0.72;
    scale: 0.96;
  }
  50% {
    opacity: 1;
    scale: 1.05;
  }
}

@keyframes shadow-pulse {
  0%, 100% {
    opacity: 0.54;
    transform: translateX(-50%) scaleX(1);
  }
  50% {
    opacity: 0.34;
    transform: translateX(-50%) scaleX(0.84);
  }
}

@keyframes snow-fall {
  0% {
    transform: translate3d(0, -20px, 0);
    opacity: 0;
  }
  14% {
    opacity: 0.82;
  }
  100% {
    transform: translate3d(var(--snow-drift), 410px, 0);
    opacity: 0;
  }
}

@keyframes boss-hit-shake {
  0%, 100% {
    transform: translateX(-50%);
  }
  18% {
    transform: translateX(calc(-50% + 15px)) translateY(4px) rotate(2deg);
  }
  38% {
    transform: translateX(calc(-50% - 18px)) translateY(-2px) rotate(-2deg);
  }
  62% {
    transform: translateX(calc(-50% + 8px)) translateY(2px) rotate(1deg);
  }
}

@keyframes boss-critical-shake {
  0%, 100% {
    transform: translateX(-50%) scale(1);
  }
  14% {
    transform: translateX(calc(-50% + 24px)) translateY(6px) scale(1.05) rotate(3deg);
  }
  32% {
    transform: translateX(calc(-50% - 28px)) translateY(-5px) scale(0.98) rotate(-3deg);
  }
  52% {
    transform: translateX(calc(-50% + 18px)) translateY(3px) scale(1.04) rotate(2deg);
  }
  72% {
    transform: translateX(calc(-50% - 10px)) scale(1.01) rotate(-1deg);
  }
}

@keyframes impact-ring {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.35);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(4.1);
  }
}

@keyframes boss-critical-impact {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.25);
  }
  52% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(4.4);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(5.6);
  }
}

@keyframes boss-roar {
  0%, 100% {
    transform: translateX(-50%) scale(1);
  }
  20% {
    transform: translateX(-50%) scale(1.08) translateY(-8px);
  }
  36% {
    transform: translateX(calc(-50% - 10px)) scale(1.06) rotate(-1deg);
  }
  52% {
    transform: translateX(calc(-50% + 10px)) scale(1.06) rotate(1deg);
  }
  70% {
    transform: translateX(-50%) scale(1.03);
  }
}

@keyframes boss-roar-text {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.82);
  }
  20%, 72% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(0.9);
  }
}

@keyframes bossShake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px) rotate(-1deg);
  }
  50% {
    transform: translateX(8px) rotate(1deg);
  }
  75% {
    transform: translateX(-6px) rotate(-0.5deg);
  }
}

@keyframes flash {
  0%, 100% {
    opacity: 0;
  }
  36% {
    opacity: 1;
  }
}

@keyframes damagePop {
  0% {
    opacity: 0;
    transform: translate(-50%, 18px) scale(0.7);
  }
  22% {
    opacity: 1;
    transform: translate(-50%, -6px) scale(1.04);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -54px) scale(1);
  }
}

@media (max-width: 768px) {
  .ice-boss-hero-image {
    height: 360px;
    object-position: center top;
  }

  .world-boss-copy {
    margin-top: -2.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .boss-creature,
  .boss-aura,
  .boss-shadow,
  .boss-eye,
  .boss-core,
  .snow-layer span,
  .damage-pop.is-visible,
  .impact-flash.is-visible {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .snow-layer span {
    opacity: 0.2;
  }
}

@media (min-width: 720px) {
  .site-header {
    padding-inline: 1.5rem;
  }

  .boss-shell,
  .ranking-page,
  .dashboard-shell {
    padding: 1.5rem;
  }

  .arena {
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    align-items: start;
  }

  .arena-landing {
    grid-template-columns: minmax(0, 1fr);
  }

  .boss-cinematic {
    padding: 1.1rem;
  }

  .boss-info-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.9fr) minmax(0, 0.9fr);
  }

  .boss-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .reward-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .boss-cinematic-cta {
    padding: 1.15rem 1.6rem;
  }

  .cta-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .boss-card,
  .stat-card,
  .ranking-preview,
  .result-card {
    padding: 1.4rem;
  }

  .two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.75rem;
  }

  .player-preview-head {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .account-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .hero-profile-preview {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .hero-profile-copy {
    text-align: left;
  }

  .hero-profile-stars {
    justify-self: start;
  }

  .hero-profile-copy .hero-badge-row {
    justify-content: flex-start;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .governor-header-card {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr) auto;
    align-items: center;
  }

  .governor-identity {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }

  .governor-badges {
    display: flex;
    flex-wrap: wrap;
  }

  .profile-progress-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .profile-progress-card .progress-head,
  .profile-progress-card .profile-progress-track,
  .profile-progress-card .profile-progress-text,
  .profile-progress-card .profile-checklist {
    grid-column: 1 / -1;
  }

  .profile-checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .governor-equipment-grid,
  .governor-equipment-edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .governor-gem-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .form-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .admin-verification-card {
    grid-template-columns: minmax(280px, 0.45fr) minmax(0, 1fr);
    align-items: start;
  }

  .admin-verification-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .formation-cta-card {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
    align-items: center;
  }

  .account-danger-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .combat-stats-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gear-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gear-fields {
    grid-template-columns: 1fr 0.7fr;
  }
}
