:root {
  color-scheme: dark;
  --ink: #f5efe4;
  --muted: #b7b0a2;
  --line: rgba(245, 239, 228, 0.16);
  --line-strong: rgba(245, 239, 228, 0.28);
  --gold: #d7a94d;
  --ember: #c34e33;
  --teal: #2fb4a8;
  --green: #5da76f;
  --violet: #7d74c8;
  --black: #080807;
  --panel: rgba(20, 20, 18, 0.82);
  --paper: #e9ddc6;
  --paper-ink: #211913;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--black);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(47, 180, 168, 0.16), transparent 32rem),
    linear-gradient(130deg, #070706 0%, #14100d 44%, #071512 100%);
}

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

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 7, 0.88);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-mark {
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid var(--gold);
  transform: rotate(45deg);
}

.brand-name {
  font-family: Georgia, Times New Roman, serif;
  font-size: clamp(1.45rem, 4vw, 2.3rem);
  letter-spacing: 0;
}

.brand-note {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.nav a,
.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.nav a:hover,
.button:hover {
  border-color: rgba(215, 169, 77, 0.7);
  background: rgba(215, 169, 77, 0.12);
}

.button.primary {
  border-color: rgba(215, 169, 77, 0.75);
  background: #b67d28;
  color: #130f0a;
  font-weight: 800;
}

.button.danger {
  border-color: rgba(195, 78, 51, 0.75);
  background: rgba(195, 78, 51, 0.17);
}

.button.ghost {
  background: transparent;
}

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.5rem 5vw 4.5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  min-height: calc(100vh - 68px);
}

.hero.compact {
  min-height: auto;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, Times New Roman, serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  margin-top: 0.5rem;
  font-size: clamp(3.1rem, 10vw, 8rem);
  line-height: 0.88;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
}

h3 {
  font-size: 1.35rem;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.lead {
  max-width: 62ch;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.media-stage {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.media-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-stage.contain img {
  object-fit: contain;
  padding: 1rem;
}

.section {
  padding: clamp(3rem, 7vw, 6rem) 5vw;
  border-top: 1px solid var(--line);
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

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

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

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

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

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

.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.card.pad {
  padding: 1rem;
}

.card h3 {
  margin-bottom: 0.45rem;
}

.card p {
  margin: 0;
}

.preview-card {
  display: grid;
  grid-template-rows: 220px auto;
  overflow: hidden;
  text-decoration: none;
}

.preview-card .preview-art {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: #0b0b0a;
}

.preview-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.preview-art .preview-label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(245, 239, 228, 0.25);
  border-radius: 5px;
  background: rgba(8, 8, 7, 0.75);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.preview-copy {
  padding: 1rem;
}

.stat-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.84rem;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: start;
}

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

.list-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  min-height: 72px;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.list-row img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
}

.list-row strong,
.timeline strong {
  display: block;
}

.list-row span,
.timeline span {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer {
  padding: 2rem 5vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(8, 8, 7, 0.82);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
}

.mockup-index {
  background:
    linear-gradient(rgba(8, 8, 7, 0.84), rgba(8, 8, 7, 0.92)),
    url("assets/season-duel.jpg") center / cover fixed;
}

.mockup-index .hero {
  min-height: auto;
  padding: 3rem 0 1.5rem;
}

.citadel {
  background:
    linear-gradient(90deg, rgba(8, 8, 7, 0.96) 0%, rgba(8, 8, 7, 0.82) 48%, rgba(8, 8, 7, 0.45) 100%),
    url("assets/hero-citadel-gate.jpg") center / cover fixed;
}

.citadel .hero {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
}

.citadel-frame {
  min-height: 640px;
  border: 1px solid rgba(215, 169, 77, 0.38);
  background:
    linear-gradient(180deg, rgba(8, 8, 7, 0.15), rgba(8, 8, 7, 0.7)),
    url("assets/codex-fighter.jpg") center bottom / cover no-repeat;
}

.codex {
  background:
    linear-gradient(120deg, rgba(7, 12, 12, 0.96), rgba(19, 12, 9, 0.94)),
    url("assets/codex-hall.jpg") center / cover fixed;
}

.codex-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.5rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem 5vw 4rem;
}

.side-rail {
  position: sticky;
  top: 88px;
  align-self: start;
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.72);
}

.side-rail a {
  padding: 0.75rem;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
}

.side-rail a.active,
.side-rail a:hover {
  color: var(--ink);
  background: rgba(47, 180, 168, 0.12);
}

.codex-main {
  display: grid;
  gap: 1rem;
}

.codex-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(260px, 0.45fr);
  gap: 1rem;
  align-items: center;
  min-height: 340px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.codex-feature img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.arena {
  background:
    linear-gradient(180deg, rgba(8, 8, 7, 0.8), rgba(8, 8, 7, 0.96)),
    url("assets/season-duel.jpg") center / cover fixed;
}

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

.dashboard-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 1rem;
}

.scoreboard {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 8, 7, 0.72);
}

.score-row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.2rem;
  border-bottom: 1px solid var(--line);
}

.poll {
  display: grid;
  gap: 0.8rem;
}

.poll-option {
  display: grid;
  gap: 0.4rem;
}

.bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--teal));
}

.scroll {
  color: var(--paper-ink);
  background:
    linear-gradient(rgba(233, 221, 198, 0.9), rgba(233, 221, 198, 0.95)),
    url("assets/world-map.jpg") center / cover fixed;
}

.scroll .topbar {
  color: var(--ink);
  background: rgba(24, 17, 13, 0.9);
}

.scroll p,
.scroll .muted {
  color: rgba(33, 25, 19, 0.74);
}

.scroll .hero {
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
}

.scroll h1,
.scroll h2,
.scroll h3 {
  color: var(--paper-ink);
}

.scroll .card {
  border-color: rgba(33, 25, 19, 0.18);
  background: rgba(255, 249, 235, 0.62);
}

.scroll .section {
  border-top-color: rgba(33, 25, 19, 0.2);
}

.scroll-art {
  min-height: 560px;
  border: 1px solid rgba(33, 25, 19, 0.25);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(233, 221, 198, 0.08), rgba(33, 25, 19, 0.28)),
    url("assets/codex-armory.jpg") center / cover no-repeat;
}

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

.timeline-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(33, 25, 19, 0.2);
}

.utility-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.asset-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.asset-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 920px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .citadel .hero,
  .scroll .hero,
  .split-band,
  .dashboard-band,
  .codex-feature,
  .codex-shell {
    grid-template-columns: 1fr;
  }

  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
  }

  .media-stage,
  .citadel-frame,
  .scroll-art {
    min-height: 420px;
  }

  .side-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav a,
  .button,
  button.button {
    width: 100%;
  }

  .brand-note {
    display: none;
  }

  .list-row {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .list-row .pill {
    grid-column: 2;
    justify-self: start;
  }

  .timeline-row {
    grid-template-columns: 1fr;
  }

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

.epic {
  --epic-ink: #f4e8cf;
  --epic-muted: #bba985;
  --epic-deep: #050606;
  --epic-panel: rgba(8, 12, 11, 0.86);
  --epic-edge: rgba(199, 147, 73, 0.42);
  --epic-edge-soft: rgba(199, 147, 73, 0.18);
  --epic-red: #b3472f;
  --epic-teal: #0c4c48;
  color: var(--epic-ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(199, 147, 73, 0.14), transparent 32rem),
    linear-gradient(180deg, #040505 0%, #0b0f0e 48%, #040505 100%);
}

.epic a {
  text-decoration: none;
}

.epic-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
  padding: 0.75rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--epic-edge-soft);
  background: linear-gradient(180deg, rgba(5, 6, 6, 0.94), rgba(5, 6, 6, 0.68));
  backdrop-filter: blur(12px);
}

.epic-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--epic-ink);
}

.epic-lockup img {
  width: 54px;
  height: 54px;
  border: 1px solid var(--epic-edge);
  border-radius: 6px;
  object-fit: cover;
}

.epic-lockup span {
  font-family: Georgia, Times New Roman, serif;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  color: var(--epic-ink);
  text-shadow: 0 2px 0 #000, 0 0 22px rgba(199, 147, 73, 0.24);
}

.epic-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.epic-nav a,
.epic-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--epic-muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.epic-nav a:hover,
.epic-text-link:hover {
  border-color: var(--epic-edge);
  color: var(--epic-ink);
  background: rgba(199, 147, 73, 0.1);
}

.epic-nav .epic-play {
  min-width: 120px;
  border-color: rgba(199, 147, 73, 0.72);
  color: #fff1c7;
  background:
    linear-gradient(90deg, rgba(6, 32, 31, 0.96), rgba(19, 79, 74, 0.96), rgba(6, 32, 31, 0.96));
}

.epic-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100vh;
  padding: 8.5rem clamp(1rem, 4vw, 4rem) 2rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 6, 6, 0.16) 0%, rgba(5, 6, 6, 0.36) 38%, rgba(5, 6, 6, 0.96) 100%),
    linear-gradient(90deg, rgba(5, 6, 6, 0.96) 0%, rgba(5, 6, 6, 0.42) 52%, rgba(5, 6, 6, 0.88) 100%),
    url("assets/hero-citadel-gate.jpg") center / cover no-repeat;
}

.epic-hero::after {
  display: none;
  content: "";
}

.epic-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto 5.7rem;
  text-align: center;
}

.epic-crest {
  width: clamp(86px, 12vw, 138px);
  height: clamp(86px, 12vw, 138px);
  margin: 0 auto 0.6rem;
  border: 1px solid var(--epic-edge);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 40px rgba(199, 147, 73, 0.2);
}

.epic-kicker {
  display: block;
  color: #d8b36a;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.epic h1,
.epic h2,
.epic h3 {
  font-family: Georgia, Times New Roman, serif;
  color: var(--epic-ink);
  letter-spacing: 0;
}

.epic h1 {
  margin: 0.1rem 0 0;
  font-size: clamp(4.2rem, 13vw, 10rem);
  line-height: 0.85;
  text-shadow: 0 3px 0 #090604, 0 0 30px rgba(199, 147, 73, 0.32);
}

.epic h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 0.88;
}

.epic h3 {
  margin: 0;
  font-size: 1.35rem;
}

.epic p {
  color: var(--epic-muted);
}

.epic-hero-copy p {
  max-width: 52rem;
  margin: 0.7rem auto 0;
  color: #d9c7a4;
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.epic-actions,
.epic-compliance-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.epic-main-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 172px;
  min-height: 50px;
  padding: 0.75rem 1.35rem;
  border: 1px solid rgba(226, 174, 86, 0.84);
  border-radius: 4px;
  color: #fff2c8;
  background:
    linear-gradient(90deg, rgba(7, 22, 21, 0.96), rgba(18, 86, 78, 0.96), rgba(7, 22, 21, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(4, 5, 5, 0.92),
    inset 0 0 22px rgba(215, 169, 77, 0.18),
    0 8px 30px rgba(0, 0, 0, 0.3);
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #000;
}

.epic-main-button::before,
.epic-main-button::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(226, 174, 86, 0.9);
  background: rgba(5, 42, 39, 0.95);
  transform: translateY(-50%) rotate(45deg);
}

.epic-main-button::before {
  left: -7px;
}

.epic-main-button::after {
  right: -7px;
}

.epic-main-button.secondary {
  min-width: 138px;
  border-color: rgba(199, 147, 73, 0.66);
  color: #f5e4bd;
  background:
    linear-gradient(90deg, rgba(14, 20, 18, 0.96), rgba(31, 43, 34, 0.96), rgba(14, 20, 18, 0.96));
}

.epic-compliance-row {
  margin-top: 0.8rem;
}

.epic-compliance-row a {
  min-height: 36px;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--epic-edge-soft);
  border-radius: 4px;
  color: var(--epic-muted);
  background: rgba(5, 6, 6, 0.58);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.epic-feature-strip {
  position: absolute;
  left: clamp(1rem, 4vw, 4rem);
  right: clamp(1rem, 4vw, 4rem);
  bottom: 1.2rem;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.epic-feature-strip article,
.epic-board,
.epic-poll,
.epic-support-grid article,
.epic-news-grid article,
.epic-map {
  border: 1px solid var(--epic-edge-soft);
  border-radius: 7px;
  background: var(--epic-panel);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.epic-feature-strip article {
  min-height: 76px;
  padding: 0.95rem 1rem;
}

.epic-feature-strip strong,
.epic-feature-strip span {
  display: block;
}

.epic-feature-strip strong {
  color: var(--epic-ink);
  text-transform: uppercase;
}

.epic-feature-strip span {
  margin-top: 0.2rem;
  color: var(--epic-muted);
  font-size: 0.92rem;
}

.epic-band,
.epic-news,
.epic-lore {
  padding: clamp(3rem, 7vw, 6.5rem) clamp(1rem, 4vw, 4rem);
}

.epic-band-tight {
  background:
    linear-gradient(rgba(5, 6, 6, 0.88), rgba(5, 6, 6, 0.94)),
    url("assets/codex-hall.jpg") center / cover no-repeat;
}

.epic-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto 1.25rem;
}

.epic-codex-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 1180px;
  margin: 0 auto;
}

.epic-tile {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid var(--epic-edge-soft);
  border-radius: 7px;
  background-color: rgba(8, 12, 11, 0.82);
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 -120px 90px rgba(5, 6, 6, 0.9);
}

.epic-tile span {
  color: #d8b36a;
  font-weight: 900;
  text-transform: uppercase;
}

.epic-tile h3 {
  max-width: 17rem;
  margin-top: 0.3rem;
  font-size: 1.35rem;
}

.lore-tile {
  background-image: linear-gradient(rgba(5, 6, 6, 0.18), rgba(5, 6, 6, 0.7)), url("assets/codex-lore-desk.jpg");
}

.items-tile {
  background-image: linear-gradient(rgba(5, 6, 6, 0.18), rgba(5, 6, 6, 0.72)), url("assets/codex-armory.jpg");
}

.classes-tile {
  background-image: linear-gradient(rgba(5, 6, 6, 0.18), rgba(5, 6, 6, 0.72)), url("assets/codex-fighter.jpg");
}

.polls-tile {
  background-image: linear-gradient(rgba(5, 6, 6, 0.18), rgba(5, 6, 6, 0.72)), url("assets/world-map.jpg");
}

.patch-tile {
  background-image: linear-gradient(rgba(5, 6, 6, 0.18), rgba(5, 6, 6, 0.72)), url("assets/news-update.jpg");
}

.privacy-tile {
  background-image: linear-gradient(rgba(5, 6, 6, 0.18), rgba(5, 6, 6, 0.72)), url("assets/privacy-vault.jpg");
}

.epic-arena-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.55fr) minmax(260px, 0.55fr);
  gap: 0.9rem;
  max-width: 1180px;
  margin: 0 auto;
}

.epic-season {
  min-height: 430px;
  padding: 1.4rem;
  border: 1px solid var(--epic-edge-soft);
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(5, 6, 6, 0.9), rgba(5, 6, 6, 0.32)),
    url("assets/season-duel.jpg") center / cover no-repeat;
}

.epic-season p {
  max-width: 26rem;
}

.epic-countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.3rem;
}

.epic-countdown span {
  min-width: 80px;
  padding: 0.6rem;
  border: 1px solid var(--epic-edge-soft);
  border-radius: 5px;
  background: rgba(5, 6, 6, 0.62);
  color: var(--epic-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.epic-countdown b {
  display: block;
  color: var(--epic-ink);
  font-size: 1.55rem;
}

.epic-board,
.epic-poll {
  padding: 1rem;
}

.epic-board p {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
}

.epic-season-clock {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--epic-edge-soft);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
}

.epic-season-clock span {
  color: var(--epic-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.epic-season-clock b {
  color: #f7d890;
  font-size: 1.15rem;
}

.epic-board ol {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.epic-board-link {
  justify-content: flex-start;
  margin-top: 0.75rem;
  padding-left: 0;
}

.epic-board li {
  color: var(--epic-muted);
}

.epic-board li span {
  display: inline-block;
  min-width: 8rem;
}

.epic-board li b {
  color: var(--epic-ink);
}

.epic-poll {
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.epic-poll label {
  display: flex;
  gap: 0.5rem;
  min-height: 36px;
  align-items: center;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--epic-edge-soft);
  border-radius: 5px;
  color: var(--epic-muted);
  background: rgba(255, 255, 255, 0.035);
}

.epic-news {
  background: #050606;
}

.epic-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 1180px;
  margin: 0 auto;
}

.epic-news-grid article {
  overflow: hidden;
}

.epic-news-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  opacity: 0.78;
}

.epic-news-grid span,
.epic-news-grid h3,
.epic-news-grid p {
  display: block;
  margin-left: 1rem;
  margin-right: 1rem;
}

.epic-news-grid span {
  margin-top: 1rem;
  color: #d8b36a;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.epic-news-grid h3 {
  margin-top: 0.35rem;
}

.epic-news-grid p {
  margin-bottom: 1rem;
}

.epic-lore {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  gap: 1rem;
  min-height: 680px;
  background:
    linear-gradient(90deg, rgba(5, 6, 6, 0.96) 0%, rgba(5, 6, 6, 0.62) 48%, rgba(5, 6, 6, 0.34) 100%),
    url("assets/world-panorama.jpg") center / cover no-repeat;
}

.epic-lore-copy {
  max-width: 620px;
  align-self: center;
}

.epic-chapters {
  grid-column: 1;
  align-self: end;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.epic-chapters article {
  min-height: 112px;
  padding: 0.85rem;
  border: 1px solid var(--epic-edge-soft);
  border-radius: 6px;
  background: rgba(5, 6, 6, 0.72);
}

.epic-chapters strong,
.epic-chapters span {
  display: block;
}

.epic-chapters strong {
  color: #d8b36a;
  font-family: Georgia, Times New Roman, serif;
  font-size: 1.6rem;
}

.epic-chapters span {
  margin-top: 0.2rem;
  color: var(--epic-muted);
}

.epic-map {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  min-height: 340px;
  padding: 1rem;
  background:
    linear-gradient(rgba(5, 6, 6, 0.5), rgba(5, 6, 6, 0.72)),
    url("assets/world-map.jpg") center / cover no-repeat;
}

.epic-support {
  background:
    linear-gradient(rgba(5, 6, 6, 0.92), rgba(5, 6, 6, 0.95)),
    url("assets/privacy-vault.jpg") center / cover no-repeat;
}

.epic-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 1180px;
  margin: 0 auto;
}

.epic-support-grid article {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1rem;
}

.epic-support-icon {
  display: inline-grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(226, 174, 86, 0.52);
  border-radius: 8px;
  color: #f7d890;
  background:
    radial-gradient(circle at 50% 42%, rgba(208, 74, 42, 0.42), transparent 35%),
    linear-gradient(145deg, rgba(16, 49, 45, 0.94), rgba(7, 9, 8, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 26px rgba(199, 77, 45, 0.18);
  font-family: Georgia, Times New Roman, serif;
  font-size: 1.7rem;
  font-weight: 900;
}

.epic-support-grid .epic-main-button {
  justify-self: start;
  min-width: 150px;
  min-height: 42px;
  margin-top: 0.2rem;
  font-size: 0.78rem;
}

.epic-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--epic-edge-soft);
  color: var(--epic-muted);
  background: #030404;
}

.epic-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.epic-footer a {
  color: var(--epic-muted);
}

.leaderboard-page {
  background:
    linear-gradient(rgba(5, 6, 6, 0.86), rgba(5, 6, 6, 0.94)),
    url("assets/season-duel.jpg") center top / cover fixed no-repeat;
}

.leaderboard-shell {
  max-width: 1180px;
  min-height: calc(100vh - 90px);
  margin: 0 auto;
  padding: 9rem clamp(1rem, 4vw, 4rem) 4rem;
}

.leaderboard-hero {
  max-width: 820px;
  margin-bottom: 1rem;
}

.leaderboard-hero h1 {
  max-width: none;
  margin: 0.25rem 0 0;
  font-size: clamp(3rem, 9vw, 7.5rem);
}

.leaderboard-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.leaderboard-meta span {
  min-height: 38px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--epic-edge-soft);
  border-radius: 5px;
  color: var(--epic-muted);
  background: rgba(5, 6, 6, 0.72);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.leaderboard-card {
  overflow: hidden;
  border: 1px solid var(--epic-edge-soft);
  border-radius: 7px;
  background: rgba(5, 6, 6, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.leaderboard-table-head,
.leaderboard-row {
  display: grid;
  grid-template-columns: 72px minmax(180px, 1fr) repeat(6, minmax(74px, 0.48fr));
  gap: 0.55rem;
  align-items: center;
  min-width: 860px;
}

.leaderboard-table-head {
  min-height: 52px;
  padding: 0 1rem;
  border-bottom: 1px solid var(--epic-edge-soft);
  color: #d8b36a;
  background: rgba(199, 147, 73, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.leaderboard-row {
  min-height: 54px;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(199, 147, 73, 0.12);
  color: var(--epic-muted);
}

.leaderboard-row strong,
.leaderboard-row b {
  color: var(--epic-ink);
}

.leaderboard-row b {
  font-size: 1.05rem;
}

@media (max-width: 1040px) {
  .epic-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .epic-nav {
    justify-content: flex-start;
  }

  .epic-hero {
    min-height: 860px;
    padding-top: 3rem;
  }

  .epic-feature-strip,
  .epic-codex-grid,
  .epic-arena-layout,
  .epic-news-grid,
  .epic-support-grid,
  .epic-lore {
    grid-template-columns: 1fr;
  }

  .epic-feature-strip {
    position: static;
    margin-top: 1rem;
  }

  .epic-hero-copy {
    margin-bottom: 0;
  }

  .epic-hero::after {
    display: none;
  }

  .epic-map,
  .epic-chapters {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  .epic-nav a,
  .epic-nav .epic-play,
  .epic-main-button {
    width: 100%;
  }

  .epic-actions,
  .epic-compliance-row {
    align-items: stretch;
    flex-direction: column;
  }

  .epic h1 {
    font-size: clamp(3.25rem, 19vw, 5rem);
  }

  .epic-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .epic-chapters {
    grid-template-columns: 1fr 1fr;
  }
}
