:root {
  color-scheme: dark;
  --ink: #f3ead7;
  --muted: #aeb8c8;
  --blue: #56b7ff;
  --blue-deep: #102a4a;
  --gold: #e5b95b;
  --gold-soft: #f4d78a;
  --red: #d66666;
  --green: #58c79b;
  --bg: #080b12;
  --panel: #111827;
  --panel-2: #162035;
  --line: rgba(244, 215, 138, 0.22);
  --shadow: rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(86, 183, 255, 0.2), transparent 31rem),
    linear-gradient(180deg, #080b12 0%, #0d1220 42%, #080b12 100%);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(229, 185, 91, 0.18);
  background: rgba(8, 11, 18, 0.88);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 800;
  color: var(--gold-soft);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  box-shadow: 0 0 22px rgba(86, 183, 255, 0.26);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.4rem);
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-soft);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.65fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  min-height: calc(100vh - 72px);
  padding: clamp(3.5rem, 7vw, 6rem) 5vw 3rem;
  border-bottom: 1px solid rgba(86, 183, 255, 0.18);
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.3rem, 8vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

h3 {
  margin-bottom: 0.65rem;
  color: var(--gold-soft);
  font-size: 1.1rem;
}

.lede {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.32rem);
  line-height: 1.65;
}

.hero-actions,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.78rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #14100a;
  box-shadow: 0 14px 35px rgba(229, 185, 91, 0.18);
}

.button.secondary {
  border: 1px solid rgba(86, 183, 255, 0.4);
  color: var(--ink);
  background: rgba(86, 183, 255, 0.08);
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
}

.hero-art img {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  max-height: 70vh;
  filter: drop-shadow(0 0 28px rgba(86, 183, 255, 0.36));
}

.rune-ring {
  position: absolute;
  width: min(92%, 30rem);
  aspect-ratio: 1;
  border: 1px solid rgba(86, 183, 255, 0.36);
  border-radius: 50%;
  box-shadow: inset 0 0 70px rgba(86, 183, 255, 0.08), 0 0 42px rgba(229, 185, 91, 0.12);
}

.quick-grid,
.matrix,
.card-grid,
.tier-grid,
.build-grid,
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.quick-grid {
  padding: 1rem 5vw 4rem;
  margin-top: -2rem;
}

.feature,
.matrix article,
.character-card,
.tier-card,
.build-card,
.team-card,
.guide-panel,
.database-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(22, 32, 53, 0.92), rgba(13, 18, 32, 0.96));
  box-shadow: 0 18px 38px var(--shadow);
}

.feature {
  min-height: 150px;
  padding: 1.15rem;
  text-decoration: none;
}

.feature span {
  display: block;
  margin-bottom: 1.1rem;
  color: var(--gold-soft);
  font-weight: 900;
}

.feature strong {
  display: block;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.content-band,
.spotlight,
.page-shell {
  padding: clamp(3rem, 7vw, 5.5rem) 5vw;
}

.content-band {
  background: rgba(255, 255, 255, 0.025);
}

.section-heading {
  max-width: 980px;
  margin-bottom: 1.6rem;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

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

.matrix article,
.guide-panel,
.database-card {
  padding: 1.3rem;
}


.matrix p,
.character-card p,
.tier-card p,
.build-card p,
.team-card p,
.guide-panel p,
.database-card p {
  color: var(--muted);
  line-height: 1.58;
}

.matrix a,
.character-card a,
.database-card a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.facts-grid,
.answer-grid,
.roadmap-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

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

.fact-card,
.answer-card,
.roadmap-card,
.faq-card,
.status-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(10, 15, 27, 0.98));
  padding: 1.15rem;
  box-shadow: 0 18px 38px var(--shadow);
}

.fact-card span,
.status-card span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fact-card strong,
.status-card strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.answer-card p,
.roadmap-card p,
.faq-card p,
.status-card p {
  color: var(--muted);
  line-height: 1.58;
}

.answer-card h3,
.roadmap-card h3,
.faq-card h3 {
  margin-bottom: 0.45rem;
}

.section-stack {
  display: grid;
  gap: 1rem;
}

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

.check-list li {
  border-left: 3px solid rgba(86, 183, 255, 0.55);
  padding-left: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

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

.comparison-table th,
.comparison-table td {
  padding: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  color: var(--gold-soft);
  background: rgba(229, 185, 91, 0.08);
}

.comparison-table td {
  color: var(--muted);
  line-height: 1.55;
}

.spotlight {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: center;
}

.character-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.character-strip a,
.tag,
.pill {
  border: 1px solid rgba(86, 183, 255, 0.28);
  border-radius: 999px;
  background: rgba(86, 183, 255, 0.08);
  color: var(--ink);
  text-decoration: none;
}

.character-strip a {
  padding: 0.8rem 1rem;
  font-weight: 800;
}

.site-footer {
  padding: clamp(3rem, 6vw, 5rem) 5vw 2rem;
  border-top: 1px solid rgba(229, 185, 91, 0.16);
  color: var(--muted);
  background:
    radial-gradient(circle at 12% 20%, rgba(86, 183, 255, 0.08), transparent 24rem),
    #070910;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(16rem, 1.35fr) repeat(4, minmax(9rem, 0.7fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
}

.footer-brand {
  max-width: 28rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.35rem;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-logo img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  box-shadow: 0 0 22px rgba(86, 183, 255, 0.22);
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.footer-column {
  display: grid;
  gap: 0.95rem;
}

.footer-column h2 {
  margin: 0 0 0.65rem;
  color: rgba(174, 184, 200, 0.72);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.35em;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-column a {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.35;
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--gold-soft);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1320px;
  margin: clamp(2rem, 5vw, 4rem) auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(86, 183, 255, 0.16);
  color: rgba(174, 184, 200, 0.72);
  font-size: 0.92rem;
}

.page-hero {
  padding: clamp(3.5rem, 7vw, 5rem) 5vw 2rem;
}

.page-hero h1 {
  max-width: 1120px;
  font-size: clamp(2.7rem, 6vw, 5.6rem);
}

.page-hero.has-panel {
  display: block;
  min-height: auto;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.page-hero.has-panel > div:first-child {
  max-width: 1120px;
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
  align-items: stretch;
  margin-top: clamp(1.5rem, 3vw, 2.4rem);
}

.mini-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.mini-stat-grid div {
  border: 1px solid rgba(86, 183, 255, 0.25);
  border-radius: 8px;
  background: rgba(86, 183, 255, 0.07);
  padding: 0.85rem;
}

.mini-stat-grid strong {
  display: block;
  color: var(--gold-soft);
  font-size: 1.35rem;
}

.mini-stat-grid span {
  color: var(--muted);
  font-size: 0.88rem;
}

.toolbar {
  align-items: center;
  margin-bottom: 1.4rem;
}

.search {
  min-width: min(100%, 22rem);
  min-height: 44px;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(86, 183, 255, 0.32);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.team-builder {
  display: grid;
  max-width: 1120px;
  grid-template-columns: minmax(15rem, 0.42fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(10, 15, 27, 0.98));
  padding: 1.15rem;
}

.team-builder label {
  color: var(--gold-soft);
  font-weight: 900;
}

.team-builder select {
  width: 100%;
  min-height: 44px;
  margin-top: 0.6rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(86, 183, 255, 0.32);
  border-radius: 6px;
  background: #111827;
  color: var(--ink);
}

.builder-result {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin-top: 0;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.builder-result ul {
  margin: 0.9rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}

.filter-button {
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: pointer;
}

.filter-button.active {
  border-color: var(--gold);
  color: #151007;
  background: var(--gold-soft);
}

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

.character-card,
.tier-card,
.build-card,
.team-card {
  min-height: 238px;
  padding: 1.15rem;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(86, 183, 255, 0.2), rgba(229, 185, 91, 0.16));
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 900;
}

.tier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-weight: 900;
}

.tier.s { background: var(--gold-soft); color: #151007; }
.tier.a { background: var(--blue); color: #07111d; }
.tier.b { background: var(--green); color: #06130f; }
.tier.c { background: var(--red); color: #190707; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.tag {
  padding: 0.35rem 0.58rem;
  font-size: 0.82rem;
  color: var(--muted);
}

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

.tier-row,
.build-row,
.team-row {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tier-row:first-child,
.build-row:first-child,
.team-row:first-child {
  border-top: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.25rem 0.65rem;
  font-weight: 800;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 1rem;
}

.guide-panel ol,
.guide-panel ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.8;
}

.database-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.article-body {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr);
  gap: 1rem;
}


.stat-list {
  display: grid;
  gap: 0.75rem;
}

.stat-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.65rem;
}

.stat-list dt {
  color: var(--muted);
}

.stat-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  text-align: right;
}

@media (max-width: 980px) {
  .hero,
  .spotlight,
  .guide-layout,
  .article-body,
  .page-hero.has-panel {
    grid-template-columns: 1fr;
  }

  .team-builder {
    grid-template-columns: 1fr;
  }

  .builder-result {
    grid-column: auto;
    grid-row: auto;
    margin-top: 1rem;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
  }

  .quick-grid,
  .card-grid,
  .database-grid,
  .facts-grid,
  .answer-grid,
  .roadmap-grid,
  .faq-grid,
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    min-height: 64px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 5vw;
    right: 5vw;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 11, 18, 0.98);
  }

  .site-nav.open {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .hero-art {
    max-width: 20rem;
    margin: 0 auto;
  }

  .quick-grid,
  .matrix,
  .card-grid,
  .tier-grid,
  .build-grid,
  .team-grid,
  .database-grid,
  .facts-grid,
  .answer-grid,
  .roadmap-grid,
  .faq-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .quick-grid {
    margin-top: 0;
  }

  .footer-bottom {
    display: grid;
  }
}
