* /* ================= RESET ================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #08090f;
  color: #f4f4f4;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.narrow {
  width: min(760px, 100%);
}

/* ================= GLOBAL ANIMATIONS ================= */
@keyframes fadeDrop {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes pulseGlowBlue {
  0%,
  100% {
    box-shadow: 0 0 18px rgba(77, 163, 255, 0.18);
  }
  50% {
    box-shadow: 0 0 30px rgba(77, 163, 255, 0.34);
  }
}

@keyframes pulseGlowPurple {
  0%,
  100% {
    box-shadow: 0 0 18px rgba(162, 0, 255, 0.18);
  }
  50% {
    box-shadow: 0 0 30px rgba(162, 0, 255, 0.34);
  }
}

@keyframes pulseGlowGold {
  0%,
  100% {
    box-shadow: 0 0 18px rgba(255, 174, 0, 0.16);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 174, 0, 0.28);
  }
}

@keyframes textGlowBlue {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(77, 163, 255, 0.18);
  }
  50% {
    text-shadow: 0 0 22px rgba(77, 163, 255, 0.38);
  }
}

@keyframes textGlowPurple {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(162, 0, 255, 0.18);
  }
  50% {
    text-shadow: 0 0 22px rgba(162, 0, 255, 0.38);
  }
}

@keyframes floatUpDown {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes shimmerLine {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    transform: translateX(220%);
    opacity: 0;
  }
}

@keyframes heroZoom {
  0% {
    background-size: 103%;
  }
  100% {
    background-size: 108%;
  }
}

@keyframes panelGlow {
  0%,
  100% {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow: 0 20px 48px rgba(77, 163, 255, 0.1);
  }
}

/* ================= NAVBAR ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 8, 18, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.logo {
  color: #ffffff;
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(77, 163, 255, 0.12);
  transition: 0.25s ease;
}

.logo:hover {
  color: #9cc7ff;
  text-shadow: 0 0 22px rgba(77, 163, 255, 0.35);
  transform: scale(1.03);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav > a,
.dropbtn {
  position: relative;
  background: none;
  border: none;
  color: #e2e8f7;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  padding: 8px 0;
  transition: color 0.25s ease, text-shadow 0.25s ease, transform 0.2s ease;
}

.main-nav > a::after,
.dropbtn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #5aaaff, #9b5cff);
  transition: width 0.25s ease;
}

.main-nav > a:hover,
.dropbtn:hover {
  color: #ffffff;
  text-shadow: 0 0 16px rgba(77, 163, 255, 0.2);
  transform: translateY(-1px);
}

.main-nav > a:hover::after,
.dropdown:hover .dropbtn::after {
  width: 100%;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: rgba(10, 14, 24, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  z-index: 999;
}

.dropdown-content a {
  display: block;
  padding: 14px 18px;
  color: #e6ecff;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.dropdown-content a:hover {
  background: linear-gradient(
    90deg,
    rgba(77, 163, 255, 0.14),
    rgba(155, 92, 255, 0.1)
  );
  color: #ffffff;
  padding-left: 24px;
}

.dropdown:hover .dropdown-content {
  display: block;
  animation: fadeDrop 0.18s ease;
}

/* ================= HERO ================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.82)),
    url("/images/cover.png") center 15% / 105% no-repeat;
  position: relative;
  overflow: hidden;
  animation: heroZoom 12s ease-in-out infinite alternate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(77, 163, 255, 0.12), transparent 22%),
    radial-gradient(circle at 80% 25%, rgba(162, 0, 255, 0.1), transparent 22%),
    radial-gradient(circle at 70% 80%, rgba(255, 174, 0, 0.06), transparent 18%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 90px 0;
}

.eyebrow {
  color: #9cc7ff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  animation: textGlowBlue 3s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1.02;
  margin: 0 0 18px;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.4);
}

.hero h1 span {
  display: block;
  color: #c9dfff;
  animation: textGlowBlue 3.5s ease-in-out infinite;
}

.hero-text {
  max-width: 700px;
  font-size: 1.1rem;
  color: #dddddd;
  margin-bottom: 28px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px) scale(1.01);
}

.btn-primary {
  background: #4da3ff;
  color: #08101d;
  box-shadow: 0 0 18px rgba(77, 163, 255, 0.18);
  animation: pulseGlowBlue 3s ease-in-out infinite;
}

.btn-primary:hover {
  background: #7abfff;
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
}

/* ================= SECTIONS ================= */
.section {
  padding: 70px 0;
}

.section h2 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 12px;
}

.section-intro {
  color: #cfcfcf;
  max-width: 700px;
  margin-bottom: 30px;
}

.page-banner {
  padding: 80px 0 50px;
  background: linear-gradient(180deg, #121729, #090c15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-banner h1 {
  margin: 0 0 10px;
  font-size: 2.7rem;
}

.page-banner p {
  margin: 0;
  color: #cfd8e6;
}

/* ================= CARDS ================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  background: #141927;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 24px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
}

.card:hover::before {
  animation: shimmerLine 1s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 163, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.role {
  color: #8dbfff;
  font-weight: bold;
}

.card-link {
  color: #8dbfff;
  font-weight: bold;
}

.card-link:hover {
  color: #c8e1ff;
}

/* ================= SIMPLE CHARACTER LAYOUT ================= */
.character-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 40px;
  align-items: start;
}

.character-image img {
  width: 100%;
  border-radius: 16px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.character-info h2,
.character-info h3 {
  margin-top: 0;
}

.character-info h3 {
  margin-top: 24px;
  color: #8dbfff;
}

/* ================= ELITE CHARACTER PAGES ================= */
.character-hero {
  position: relative;
  padding: 110px 0 70px;
  background:
    radial-gradient(circle at top right, rgba(77, 163, 255, 0.18), transparent 28%),
    radial-gradient(circle at top left, rgba(140, 0, 255, 0.14), transparent 30%),
    linear-gradient(180deg, #0a0f1d 0%, #090c15 45%, #06070d 100%);
  overflow: hidden;
}

.character-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    url("/images/cover.png") center top / cover no-repeat;
  opacity: 0.14;
  pointer-events: none;
}

.character-shell {
  position: relative;
  z-index: 1;
}

.character-top {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 42px;
  align-items: center;
}

.character-portrait-wrap {
  position: relative;
  animation: floatUpDown 4s ease-in-out infinite;
}

.character-portrait-wrap::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(77, 163, 255, 0.45), rgba(140, 0, 255, 0.12));
  filter: blur(18px);
  opacity: 0.9;
}

.character-portrait {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.character-portrait img {
  width: 100%;
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.character-portrait:hover img {
  transform: scale(1.03);
}

.character-meta h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.96;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.character-subtitle {
  font-size: 1.2rem;
  color: #c9d8f0;
  margin-bottom: 18px;
}

.faction-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.badge:hover {
  transform: translateY(-2px);
}

.badge-heaven {
  background: rgba(90, 170, 255, 0.15);
  color: #9ed0ff;
  box-shadow: 0 0 24px rgba(77, 163, 255, 0.18);
  animation: pulseGlowBlue 3s ease-in-out infinite;
}

.badge-abyss {
  background: rgba(163, 38, 255, 0.16);
  color: #d6aaff;
  box-shadow: 0 0 24px rgba(140, 0, 255, 0.2);
  animation: pulseGlowPurple 3s ease-in-out infinite;
}

.badge-ancient {
  background: rgba(255, 174, 0, 0.14);
  color: #ffd37b;
  box-shadow: 0 0 24px rgba(255, 174, 0, 0.16);
  animation: pulseGlowGold 3s ease-in-out infinite;
}

.power-rank {
  display: inline-block;
  margin-bottom: 20px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5ff;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.power-rank:hover {
  transform: translateY(-2px);
}

.character-intro {
  max-width: 760px;
  color: #d7ddeb;
  font-size: 1.08rem;
  margin-bottom: 26px;
}

.character-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.character-panel-section {
  padding: 26px 0 80px;
  background: #070a12;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.elite-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(19, 24, 39, 0.95), rgba(9, 12, 21, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease;
  animation: panelGlow 4.5s ease-in-out infinite;
}

.elite-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 163, 255, 0.18);
}

.elite-panel h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.4rem;
}

.lore-text {
  color: #d1d8e6;
}

.power-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.power-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.power-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.16);
}

.power-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.85;
  pointer-events: none;
}

.power-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.power-card p {
  margin: 0;
  color: #d2d9e8;
  font-size: 0.95rem;
}

.power-heaven::before {
  background: radial-gradient(circle at top left, rgba(77, 163, 255, 0.23), transparent 60%);
}

.power-heaven:hover {
  box-shadow: 0 0 24px rgba(77, 163, 255, 0.16);
}

.power-abyss::before {
  background: radial-gradient(circle at top left, rgba(162, 0, 255, 0.26), transparent 60%);
}

.power-abyss:hover {
  box-shadow: 0 0 24px rgba(162, 0, 255, 0.18);
}

.power-ancient::before {
  background: radial-gradient(circle at top left, rgba(255, 174, 0, 0.22), transparent 60%);
}

.power-ancient:hover {
  box-shadow: 0 0 24px rgba(255, 174, 0, 0.16);
}

.stats-list {
  display: grid;
  gap: 12px;
}

.stat-row {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 14px 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-row:hover {
  transform: translateX(4px);
  border-color: rgba(77, 163, 255, 0.18);
}

.stat-label {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a4c3;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 1rem;
  color: #f0f4ff;
  font-weight: 700;
}

.quote-box {
  margin-top: 20px;
  padding: 18px;
  border-left: 3px solid rgba(77, 163, 255, 0.55);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  color: #dbe5f7;
  font-style: italic;
}

.heaven-glow .character-meta h1,
.heaven-glow .power-rank {
  animation: textGlowBlue 3.4s ease-in-out infinite;
}

.abyss-glow .character-meta h1,
.abyss-glow .power-rank {
  animation: textGlowPurple 3.4s ease-in-out infinite;
}

.ancient-glow .character-meta h1,
.ancient-glow .power-rank {
  animation: textGlowBlue 3.4s ease-in-out infinite;
}

/* ================= FOOTER ================= */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  background: #070910;
  color: #bfbfbf;
  font-size: 0.95rem;
  text-align: center;
}

/* ================= MOBILE ================= */
@media (max-width: 980px) {
  .character-top,
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .character-portrait-wrap {
    max-width: 520px;
  }
}

@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    gap: 14px;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .dropdown-content {
    left: 50%;
    transform: translateX(-50%);
    min-width: 190px;
  }

  .character-layout {
    grid-template-columns: 1fr;
  }

  .character-image {
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .logo {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }

  .main-nav {
    gap: 12px;
  }

  .main-nav > a,
  .dropbtn {
    font-size: 0.95rem;
  }

  .hero {
    background:
      linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.82)),
      url("/images/cover.png") center top / cover no-repeat;
  }

  .hero-content {
    padding: 70px 0;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 4rem);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .power-grid {
    grid-template-columns: 1fr;
  }

  .character-hero {
    padding-top: 90px;
  }

  .character-meta h1 {
    font-size: clamp(2.2rem, 12vw, 3.8rem);
  }
}
.heaven-glow-card:hover {
  box-shadow: 0 0 28px rgba(77, 163, 255, 0.16), 0 18px 40px rgba(0, 0, 0, 0.3);
}

.abyss-glow-card:hover {
  box-shadow: 0 0 28px rgba(162, 0, 255, 0.18), 0 18px 40px rgba(0, 0, 0, 0.3);
}

.ancient-glow-card:hover {
  box-shadow: 0 0 28px rgba(255, 174, 0, 0.16), 0 18px 40px rgba(0, 0, 0, 0.3);
}
/* ===== CINEMATIC CHARACTER TEMPLATE ===== */

.character-page {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(77, 163, 255, 0.14), transparent 24%),
    radial-gradient(circle at top left, rgba(162, 0, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #0a0f1d 0%, #090c15 45%, #06070d 100%);
  overflow: hidden;
}

.character-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.03), rgba(255,255,255,0)),
    url("/images/cover.png") center top / cover no-repeat;
  opacity: 0.10;
  pointer-events: none;
}

.character-page-inner {
  position: relative;
  z-index: 1;
  padding: 110px 0 80px;
}

.character-cinematic-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 38px;
  align-items: start;
}

.character-poster {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    linear-gradient(135deg, #111827, #0b1020);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  min-height: 560px;
}

.character-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(77,163,255,0.10), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
}

.poster-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.poster-placeholder-box {
  width: 82%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,0.22);
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.03);
}

.poster-placeholder-text {
  color: #dbe7ff;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.poster-coming-soon {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.58);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.character-copy h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.96;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.character-subrole {
  font-size: 1.18rem;
  color: #c8d8f2;
  margin-bottom: 18px;
}

.faction-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.faction-badge,
.power-badge {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.12);
}

.faction-heaven {
  background: rgba(77,163,255,0.14);
  color: #9ed0ff;
  box-shadow: 0 0 22px rgba(77,163,255,0.16);
}

.faction-abyss {
  background: rgba(162,0,255,0.14);
  color: #d6aaff;
  box-shadow: 0 0 22px rgba(162,0,255,0.18);
}

.faction-ancient {
  background: rgba(255,174,0,0.12);
  color: #ffd37b;
  box-shadow: 0 0 22px rgba(255,174,0,0.15);
}

.power-badge {
  background: rgba(255,255,255,0.04);
  color: #eef4ff;
}

.character-lead {
  max-width: 760px;
  color: #d7ddeb;
  font-size: 1.06rem;
  margin-bottom: 26px;
}

.character-panels {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  margin-top: 28px;
}

.cinematic-panel {
  background: linear-gradient(180deg, rgba(19,24,39,0.95), rgba(9,12,21,0.98));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}

.cinematic-panel h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.power-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.power-item {
  border-radius: 16px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

.power-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.power-item p {
  margin: 0;
  color: #d3dbea;
  font-size: 0.94rem;
}

.profile-list {
  display: grid;
  gap: 12px;
}

.profile-row {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 14px 16px;
}

.profile-label {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a4c3;
  margin-bottom: 6px;
}

.profile-value {
  font-size: 1rem;
  color: #f0f4ff;
  font-weight: 700;
}

.quote-panel {
  margin-top: 18px;
  padding: 18px;
  border-left: 3px solid rgba(77,163,255,0.5);
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  color: #dbe5f7;
  font-style: italic;
}

.heaven-theme h1,
.heaven-theme .power-badge {
  text-shadow: 0 0 18px rgba(77,163,255,0.25);
}

.abyss-theme h1,
.abyss-theme .power-badge {
  text-shadow: 0 0 18px rgba(162,0,255,0.28);
}

.ancient-theme h1,
.ancient-theme .power-badge {
  text-shadow: 0 0 18px rgba(255,174,0,0.22);
}

@media (max-width: 980px) {
  .character-cinematic-grid,
  .character-panels {
    grid-template-columns: 1fr;
  }

  .character-poster {
    max-width: 520px;
  }
}

@media (max-width: 640px) {
  .character-page-inner {
    padding-top: 90px;
  }

  .power-list {
    grid-template-columns: 1fr;
  }

  .character-copy h1 {
    font-size: clamp(2.2rem, 12vw, 3.8rem);
  }
}
/* ================= LEGENDARY CHARACTER PAGES ================= */

.legend-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(77, 163, 255, 0.10), transparent 25%),
    radial-gradient(circle at top left, rgba(162, 0, 255, 0.10), transparent 28%),
    linear-gradient(180deg, #070b14 0%, #090d17 45%, #05070c 100%);
}

.legend-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.03), rgba(255,255,255,0)),
    url("/images/cover.png") center top / cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.legend-heaven::after,
.legend-abyss::after,
.legend-ancient::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
}

.legend-heaven::after {
  background: radial-gradient(circle at 20% 20%, rgba(77,163,255,0.18), transparent 22%);
}

.legend-abyss::after {
  background: radial-gradient(circle at 80% 20%, rgba(162,0,255,0.20), transparent 24%);
}

.legend-ancient::after {
  background: radial-gradient(circle at 50% 15%, rgba(255,174,0,0.16), transparent 22%);
}

.legend-shell {
  position: relative;
  z-index: 1;
  padding: 110px 0 80px;
}

.legend-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 34px;
  align-items: start;
}

.legend-poster {
  position: relative;
  min-height: 560px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    linear-gradient(135deg, #131a2b, #0b1020);
  box-shadow: 0 24px 70px rgba(0,0,0,0.45);
}

.legend-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.05), transparent 42%);
}

.legend-poster-wrap {
  position: relative;
}

.legend-poster-wrap.heaven-glow::after,
.legend-poster-wrap.abyss-glow::after,
.legend-poster-wrap.ancient-glow::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 28px;
  filter: blur(18px);
  z-index: -1;
  opacity: 0.85;
}

.legend-poster-wrap.heaven-glow::after {
  background: linear-gradient(135deg, rgba(77,163,255,0.35), rgba(77,163,255,0.05));
}

.legend-poster-wrap.abyss-glow::after {
  background: linear-gradient(135deg, rgba(162,0,255,0.35), rgba(162,0,255,0.05));
}

.legend-poster-wrap.ancient-glow::after {
  background: linear-gradient(135deg, rgba(255,174,0,0.32), rgba(255,174,0,0.05));
}

.legend-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.legend-placeholder-box {
  width: 82%;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.03);
}

.legend-placeholder-text {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
  color: #dce8ff;
}

.legend-coming-soon {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(0,0,0,0.58);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.legend-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.legend-heaven .legend-copy h1 {
  text-shadow: 0 0 20px rgba(77,163,255,0.20);
}

.legend-abyss .legend-copy h1 {
  text-shadow: 0 0 20px rgba(162,0,255,0.22);
}

.legend-ancient .legend-copy h1 {
  text-shadow: 0 0 20px rgba(255,174,0,0.18);
}

.legend-role {
  font-size: 1.18rem;
  color: #c8d7f2;
  margin-bottom: 18px;
}

.legend-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.legend-badge,
.legend-tier {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255,255,255,0.12);
}

.legend-badge.heaven {
  background: rgba(77,163,255,0.14);
  color: #9ed0ff;
  box-shadow: 0 0 20px rgba(77,163,255,0.14);
}

.legend-badge.abyss {
  background: rgba(162,0,255,0.14);
  color: #d6aaff;
  box-shadow: 0 0 20px rgba(162,0,255,0.16);
}

.legend-badge.ancient {
  background: rgba(255,174,0,0.12);
  color: #ffd37b;
  box-shadow: 0 0 20px rgba(255,174,0,0.14);
}

.legend-tier {
  background: rgba(255,255,255,0.04);
  color: #eef4ff;
}

.legend-lead {
  max-width: 760px;
  color: #d6deee;
  font-size: 1.05rem;
  margin-bottom: 26px;
}

.legend-panels {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  margin-top: 24px;
}

.legend-panel {
  background: linear-gradient(180deg, rgba(19,24,39,0.95), rgba(9,12,21,0.98));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.legend-panel h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.legend-power-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.legend-power-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.legend-power-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.legend-power-card p {
  margin: 0;
  color: #d2dbea;
  font-size: 0.94rem;
}

.legend-profile {
  display: grid;
  gap: 12px;
}

.legend-row {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 14px 16px;
}

.legend-label {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a4c3;
  margin-bottom: 6px;
}

.legend-value {
  font-size: 1rem;
  color: #f0f4ff;
  font-weight: 700;
}

.legend-quote {
  margin-top: 18px;
  padding: 18px;
  border-left: 3px solid rgba(77,163,255,0.5);
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  color: #dbe5f7;
  font-style: italic;
}

.legend-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

@media (max-width: 980px) {
  .legend-grid,
  .legend-panels {
    grid-template-columns: 1fr;
  }

  .legend-poster {
    max-width: 520px;
  }
}

@media (max-width: 640px) {
  .legend-shell {
    padding-top: 90px;
  }

  .legend-copy h1 {
    font-size: clamp(2.2rem, 12vw, 3.8rem);
  }

  .legend-power-grid {
    grid-template-columns: 1fr;
  }
}
.legend-image {
  width: 100%;
  border-radius: 16px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.legend-image:hover {
  transform: scale(1.05);
  box-shadow: 
    0 0 20px rgba(0, 170, 255, 0.4),
    0 0 60px rgba(0, 170, 255, 0.6);
}
