:root {
  --gold: #ffd700;
  --gold-dark: #ffa500;
  --pink: #ff1493;
  --purple: #800080;
  --blue: #4cc9f0;
  --bg-deep: #1a1a2e;
  --jade: #2b2b2b;
  --white: #fdfdfd;
  --white-dim: rgba(253, 253, 253, 0.72);
  --card: rgba(43, 43, 43, 0.72);
  --card-border: rgba(255, 215, 0, 0.18);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 8%, rgba(128, 0, 128, 0.35), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(255, 20, 147, 0.22), transparent 30%),
    linear-gradient(180deg, #120f1f 0%, var(--bg-deep) 38%, #0f1424 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

.ambient-glow,
.lane-dust {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
}

.ambient-glow {
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 215, 0, 0.12), transparent 42%),
    radial-gradient(circle at 80% 70%, rgba(76, 201, 240, 0.08), transparent 35%);
}

.lane-dust {
  opacity: 0.35;
  background-image:
    radial-gradient(rgba(255, 215, 0, 0.35) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent, black 20%, black 80%, transparent);
  animation: dustDrift 18s linear infinite;
}

@keyframes dustDrift {
  from { transform: translateY(0); }
  to { transform: translateY(28px); }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  background: rgba(26, 26, 46, 0.72);
  border-bottom: 1px solid rgba(255, 215, 0, 0.12);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 900;
  font-size: 1.05rem;
}

.nav-brand img {
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(255, 215, 0, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: var(--white-dim);
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(128, 0, 128, 0.28);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 12px;
  background: rgba(43, 43, 43, 0.65);
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--gold);
  border-radius: 2px;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 32px) 20px 64px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-bg-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 15, 31, 0.94) 0%, rgba(18, 15, 31, 0.72) 48%, rgba(18, 15, 31, 0.35) 100%),
    linear-gradient(180deg, rgba(26, 26, 46, 0.35), rgba(26, 26, 46, 0.92));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

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

h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 900;
}

.title-gradient {
  background: linear-gradient(90deg, var(--gold), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 8px 24px rgba(128, 0, 128, 0.35));
}

.tagline {
  margin: 12px 0 0;
  color: var(--blue);
  font-weight: 700;
  font-size: 1.05rem;
}

.lead {
  margin: 18px 0 0;
  max-width: 34rem;
  color: var(--white-dim);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

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

.btn-gold {
  color: #1a1200;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  box-shadow: 0 12px 28px rgba(255, 215, 0, 0.28);
}

.btn-gold:hover {
  color: #1a1200;
  box-shadow: 0 16px 34px rgba(255, 215, 0, 0.38);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 215, 0, 0.28);
  background: rgba(43, 43, 43, 0.55);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(43, 43, 43, 0.58);
  border: 1px solid rgba(255, 215, 0, 0.14);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-stage {
  position: relative;
  min-height: 420px;
}

.hero-logo {
  width: min(100%, 360px);
  margin: 0 auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
  animation: logoPulse 4.5s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
}

.hero-units {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.float-unit {
  position: absolute;
  width: auto;
  height: 72px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.unit-a { top: 8%; left: 0; animation: floatA 5s ease-in-out infinite; }
.unit-b { top: 18%; right: 4%; height: 88px; animation: floatB 6.2s ease-in-out infinite; }
.unit-c { bottom: 34%; left: 8%; height: 96px; animation: floatC 5.6s ease-in-out infinite; }
.unit-d { bottom: 28%; right: 0; animation: floatD 4.8s ease-in-out infinite; }

@keyframes floatA {
  0%, 100% { transform: translate(0, 0) rotate(-4deg); }
  50% { transform: translate(8px, -12px) rotate(2deg); }
}

@keyframes floatB {
  0%, 100% { transform: translate(0, 0) rotate(3deg); }
  50% { transform: translate(-10px, 10px) rotate(-2deg); }
}

@keyframes floatC {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(12px, -8px); }
}

@keyframes floatD {
  0%, 100% { transform: translate(0, 0) rotate(-2deg); }
  50% { transform: translate(-8px, -10px) rotate(3deg); }
}

.hero-battle {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 10px;
}

.camp-side,
.fort-side {
  width: min(100%, 150px);
}

.lane-line {
  width: 100%;
  max-width: 120px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--pink), #c0392b);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.45);
  margin-bottom: 28px;
  animation: lanePulse 2.4s ease-in-out infinite;
}

@keyframes lanePulse {
  0%, 100% { opacity: 0.75; transform: scaleX(1); }
  50% { opacity: 1; transform: scaleX(1.08); }
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 20px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-top: 8px;
}

.section-head p {
  margin: 14px 0 0;
  color: var(--white-dim);
  line-height: 1.65;
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, border-color 0.25s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 20, 147, 0.35);
}

.feature-art {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(26, 26, 46, 0.8);
}

.feature-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.feature-card:hover .feature-art img {
  transform: scale(1.05);
}

.feature-body {
  padding: 20px;
}

.feature-body h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.feature-body p {
  margin: 0;
  color: var(--white-dim);
  line-height: 1.6;
}

.ability-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.ability-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: rgba(128, 0, 128, 0.22);
  border: 1px solid rgba(255, 215, 0, 0.16);
  font-weight: 800;
}

.ability-chip img {
  width: 34px;
  height: 34px;
}

.chieftain-chip img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.arena-banner {
  position: relative;
  margin-top: 34px;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  min-height: 260px;
  border: 1px solid rgba(255, 215, 0, 0.18);
  box-shadow: var(--shadow);
}

.arena-bg {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.arena-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(180deg, transparent 20%, rgba(18, 15, 31, 0.92));
}

.arena-overlay h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.arena-overlay p {
  margin: 10px 0 0;
  max-width: 560px;
  color: var(--white-dim);
  line-height: 1.6;
}

.legal-updated {
  color: var(--blue) !important;
  font-size: 0.92rem !important;
}

.legal-card,
.support-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.legal-card h3,
.support-card h3 {
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 1.15rem;
}

.legal-card h3:first-of-type,
.support-card h3:first-of-type {
  margin-top: 0;
}

.legal-card p,
.legal-card li,
.support-card p,
.support-card dd {
  color: var(--white-dim);
  line-height: 1.65;
}

.legal-card ul {
  margin: 0;
  padding-left: 20px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.howto-list {
  margin: 0;
  padding-left: 20px;
  color: var(--white-dim);
  line-height: 1.7;
}

.howto-list li + li {
  margin-top: 10px;
}

.faq div + div {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.faq dt {
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}

.faq dd {
  margin: 0;
}

.contact-card {
  text-align: center;
}

.contact-art {
  width: 120px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
}

.contact-meta {
  margin-top: 16px !important;
  font-size: 0.86rem;
  opacity: 0.75;
}

.site-footer {
  border-top: 1px solid rgba(255, 215, 0, 0.12);
  padding: 28px 20px 36px;
  background: rgba(15, 20, 36, 0.85);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.footer-inner img {
  border-radius: 12px;
}

.footer-inner p {
  margin: 4px 0 0;
  color: var(--white-dim);
  font-size: 0.92rem;
}

.footer-inner nav {
  margin-left: auto;
  display: flex;
  gap: 16px;
}

.footer-inner nav a {
  color: var(--white-dim);
  font-weight: 700;
}

.copyright {
  max-width: 1180px;
  margin: 18px auto 0;
  text-align: center;
  color: rgba(253, 253, 253, 0.45);
  font-size: 0.86rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-content,
  .feature-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 360px;
    margin-top: 12px;
  }

  .footer-inner nav {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(var(--header-h) - 6px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 18px;
    background: rgba(26, 26, 46, 0.96);
    border: 1px solid rgba(255, 215, 0, 0.16);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-bottom: 48px;
  }

  .hero-battle {
    position: relative;
    margin-top: 24px;
  }

  .float-unit {
    height: 56px;
  }

  .unit-b { height: 68px; }
  .unit-c { height: 72px; }
}
