: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;
  --epic-header-height: 74px;
  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-nav a.is-active,
.epic-text-link:hover {
  border-color: var(--epic-edge);
  color: var(--epic-ink);
  background: rgba(199, 147, 73, 0.1);
}

.epic-nav a.is-active {
  border-color: rgba(226, 174, 86, 0.86);
  color: #fff2c8;
  background: rgba(199, 147, 73, 0.14);
  box-shadow: inset 0 0 0 1px rgba(226, 174, 86, 0.22);
}

.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.08) 0%, rgba(5, 6, 6, 0.18) 46%, rgba(5, 6, 6, 0.94) 100%),
    linear-gradient(90deg, rgba(5, 6, 6, 0.62) 0%, rgba(5, 6, 6, 0.08) 50%, rgba(5, 6, 6, 0.62) 100%),
    url("assets/hero-runescar-logo.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-hero-copy-logo {
  max-width: 680px;
}

.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: #f3dfb8;
  font-size: clamp(1rem, 2vw, 1.16rem);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.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;
  align-items: stretch;
}

.epic-feature-strip article,
.epic-feature-strip .feature-cta,
.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 .feature-cta {
  display: grid;
  place-items: center;
  min-height: 82px;
  padding: 0.95rem 1rem;
  color: inherit;
  text-align: center;
  text-decoration: none;
  border-color: rgba(226, 174, 86, 0.78);
  background:
    linear-gradient(180deg, rgba(119, 22, 14, 0.34), rgba(5, 6, 6, 0.82)),
    var(--epic-panel);
  box-shadow:
    inset 0 0 0 1px rgba(255, 232, 177, 0.06),
    0 0 24px rgba(212, 71, 47, 0.18);
}

.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-feature-strip .feature-cta b {
  display: inline-flex;
  margin-top: 0.38rem;
  padding: 0.22rem 0.5rem;
  border: 1px solid rgba(226, 174, 86, 0.5);
  border-radius: 4px;
  color: #fff2c8;
  background: rgba(226, 174, 86, 0.12);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.epic-feature-strip .feature-cta:hover,
.epic-feature-strip .feature-cta:focus-visible {
  border-color: rgba(247, 216, 144, 0.96);
  background:
    linear-gradient(180deg, rgba(149, 31, 20, 0.42), rgba(5, 6, 6, 0.74)),
    rgba(226, 174, 86, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 232, 177, 0.12),
    0 0 30px rgba(226, 174, 86, 0.22);
}

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

.epic-band-tight {
  padding-top: clamp(2.1rem, 4.2vw, 3.5rem);
  padding-bottom: clamp(2.2rem, 4.5vw, 3.7rem);
  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-band-tight .epic-section-head,
.epic-band-tight .epic-codex-grid {
  max-width: 1120px;
}

.epic-band-tight h2 {
  font-size: clamp(2.4rem, 4.5vw, 4.6rem);
}

.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(4, minmax(0, 1fr));
  gap: 0.7rem;
  max-width: 1180px;
  margin: 0 auto;
}

.epic-tile {
  min-height: 188px;
  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: 15rem;
  margin-top: 0.3rem;
  font-size: 1.08rem;
}

.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");
}

.socials-tile {
  background-image: linear-gradient(rgba(5, 6, 6, 0.18), rgba(5, 6, 6, 0.72)), url("assets/news-arena-max.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;
  }
}

/* RuneScar release site refresh */
html {
  scroll-behavior: smooth;
}

.epic-header {
  min-height: 74px;
}

.epic-hero {
  min-height: clamp(680px, 92vh, 980px);
  padding-top: 7rem;
  background-position: center;
}

.epic-hero-copy-logo {
  align-self: end;
  margin-bottom: 82px;
}

.store-actions {
  margin-top: 0;
}

.epic-hero-copy-logo .store-actions {
  transform: none;
}

.store-button {
  gap: 0.65rem;
  min-width: 172px;
  padding-left: 1rem;
  padding-right: 1rem;
}

.store-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  filter: drop-shadow(0 1px 0 #000);
}

.store-google::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid #e8f0ff;
}

.store-google::after {
  content: "";
  position: absolute;
  left: 4px;
  width: 11px;
  height: 11px;
  background:
    linear-gradient(135deg, #20c56f 0 48%, transparent 49%),
    linear-gradient(45deg, #f5cd44 0 48%, transparent 49%),
    linear-gradient(225deg, #4a8df6 0 48%, transparent 49%),
    linear-gradient(315deg, #ec4b3d 0 48%, transparent 49%);
  transform: rotate(45deg);
}

.store-apple::before {
  content: "";
  width: 17px;
  height: 19px;
  border-radius: 48% 48% 55% 55%;
  background: #f5efe4;
  box-shadow: 5px -10px 0 -6px #f5efe4;
}

.store-windows {
  grid-template-columns: repeat(2, 9px);
  grid-template-rows: repeat(2, 9px);
  gap: 2px;
}

.store-windows i {
  display: block;
  width: 9px;
  height: 9px;
  background: #72d9ff;
}

.epic-feature-strip article {
  display: grid;
  place-items: center;
  min-height: 82px;
  text-align: center;
}

.epic-navigation-grid {
  align-items: stretch;
}

.epic-navigation-grid .epic-tile {
  color: var(--epic-ink);
  transition: transform 160ms ease, border-color 160ms ease, filter 160ms ease;
}

.epic-navigation-grid .epic-tile:hover {
  border-color: rgba(226, 174, 86, 0.72);
  filter: brightness(1.08);
  transform: translateY(-2px);
}

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

.season-preview {
  min-height: 480px;
  padding-block: clamp(2.75rem, 6vw, 5.5rem);
  background-image:
    linear-gradient(90deg, rgba(5, 6, 6, 0.96), rgba(5, 6, 6, 0.58), rgba(5, 6, 6, 0.9)),
    url("assets/season-duel.jpg");
}

.season-preview > div {
  width: min(1480px, 100%);
  max-width: none;
}

.season-preview-inner {
  display: grid;
  grid-template-columns: minmax(610px, 0.92fr) minmax(500px, 620px);
  gap: clamp(3rem, 5vw, 6rem);
  align-items: start;
}

.season-preview-copy {
  max-width: 780px;
}

.season-preview-copy h2 {
  font-size: clamp(3.2rem, 5vw, 5rem);
  white-space: nowrap;
}

.season-preview-copy p {
  max-width: 44rem;
}

.season-preview-copy .epic-main-button {
  margin-top: 0.75rem;
}

.season-ladder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.season-ladder-card {
  display: grid;
  align-content: start;
  gap: 0.36rem;
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  background: rgba(5, 8, 8, 0.78);
  transform: translateX(clamp(2rem, 3.5vw, 4.25rem));
}

.season-ladder-card h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  line-height: 0.98;
}

.season-ladder-card .epic-text-link {
  min-height: 32px;
  padding: 0.45rem 0.55rem;
  font-size: 0.72rem;
  white-space: nowrap;
}

.season-ladder-card p {
  margin: 0;
  font-size: 0.82rem;
}

.season-ladder-card .ladder-list {
  gap: 0.18rem;
}

.season-ladder-card .ladder-row {
  min-height: 30px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  padding: 0.26rem 0.5rem;
  font-size: 0.78rem;
}

.season-ladder-card .ladder-row span:last-child {
  display: none;
}

.season-ladder-mobile-button {
  display: none;
}

.ladder-list {
  display: grid;
  gap: 0.35rem;
}

.ladder-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  min-height: 42px;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(199, 147, 73, 0.12);
  border-radius: 5px;
  color: var(--epic-muted);
  background: rgba(255, 255, 255, 0.025);
}

.ladder-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--epic-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ladder-row b {
  color: #ffe4a8;
}

.ladder-row span:last-child {
  grid-column: 2 / span 2;
  color: rgba(187, 169, 133, 0.78);
  font-size: 0.82rem;
}

.ladder-row-empty {
  opacity: 0.72;
}

.ladder-row.is-target {
  border-color: rgba(226, 174, 86, 0.82);
  background:
    radial-gradient(circle at 8% 50%, rgba(215, 169, 77, 0.18), transparent 12rem),
    rgba(47, 180, 168, 0.09);
}

.compact-cta {
  justify-self: start;
  min-width: 168px;
  min-height: 42px;
  margin-top: 0.35rem;
  font-size: 0.82rem;
}

.epic-preview-block {
  display: grid;
  align-items: center;
  min-height: 520px;
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--epic-edge-soft);
  background-color: #050606;
  background-position: center;
  background-size: cover;
}

.epic-preview-block > div {
  max-width: 640px;
}

.epic-preview-block p {
  max-width: 46rem;
  color: #e9d4a6;
  font-size: 1.04rem;
}

.lore-preview {
  background-image:
    linear-gradient(90deg, rgba(5, 6, 6, 0.96), rgba(5, 6, 6, 0.56), rgba(5, 6, 6, 0.9)),
    url("assets/world-panorama.jpg");
}

.items-preview {
  background-image:
    linear-gradient(90deg, rgba(5, 6, 6, 0.96), rgba(5, 6, 6, 0.58), rgba(5, 6, 6, 0.86)),
    url("assets/codex-armory.jpg");
}

.fighters-preview {
  background-image:
    linear-gradient(90deg, rgba(5, 6, 6, 0.96), rgba(5, 6, 6, 0.48), rgba(5, 6, 6, 0.9)),
    url("assets/codex-fighter.jpg");
}

.polls-preview {
  background-image:
    linear-gradient(90deg, rgba(5, 6, 6, 0.96), rgba(5, 6, 6, 0.52), rgba(5, 6, 6, 0.88)),
    url("assets/world-map.jpg");
}

.patch-preview {
  background-image:
    linear-gradient(90deg, rgba(5, 6, 6, 0.96), rgba(5, 6, 6, 0.52), rgba(5, 6, 6, 0.9)),
    url("assets/news-update.jpg");
}

.privacy-preview {
  background-image:
    linear-gradient(90deg, rgba(5, 6, 6, 0.96), rgba(5, 6, 6, 0.58), rgba(5, 6, 6, 0.9)),
    url("assets/privacy-vault.jpg");
}

.detail-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(5, 6, 6, 0.9), rgba(5, 6, 6, 0.96)),
    url("assets/codex-hall.jpg") center top / cover fixed no-repeat;
}

.detail-shell {
  max-width: 1240px;
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  padding: 8.5rem clamp(1rem, 4vw, 4rem) 4rem;
}

.detail-hero {
  max-width: 880px;
  margin-bottom: 1.5rem;
}

.detail-hero h1 {
  max-width: 14ch;
  margin: 0.2rem 0 0;
  font-size: clamp(3.4rem, 9vw, 7.2rem);
}

.detail-hero p {
  max-width: 58rem;
  color: #e6d2a8;
  font-size: 1.06rem;
}

.story-panel,
.role-grid article,
.poll-card,
.patch-list article,
.shop-filters,
.shop-card,
.prompt-panel {
  border: 1px solid var(--epic-edge-soft);
  border-radius: 7px;
  background: rgba(5, 8, 7, 0.84);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.story-panel {
  display: grid;
  gap: 0.8rem;
  margin: 1rem 0;
  padding: 1.2rem;
}

.story-panel h2 {
  max-width: 44rem;
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  line-height: 1;
}

.story-panel p {
  margin: 0;
  color: #dac69d;
}

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

.story-aside {
  align-self: start;
}

.shop-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1rem;
}

.shop-filters {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.shop-filters div {
  display: grid;
  gap: 0.45rem;
}

.shop-filters strong {
  color: #d8b36a;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.filter-pill {
  min-height: 34px;
  border: 1px solid var(--epic-edge-soft);
  border-radius: 5px;
  color: var(--epic-muted);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.filter-pill.is-active,
.filter-pill:hover {
  border-color: rgba(226, 174, 86, 0.72);
  color: #fff2c8;
  background: rgba(199, 147, 73, 0.12);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.85rem;
}

.shop-card {
  overflow: hidden;
}

.shop-art {
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 1rem;
  background:
    radial-gradient(circle at 50% 35%, rgba(215, 169, 77, 0.12), transparent 14rem),
    rgba(0, 0, 0, 0.38);
}

.image-zoom-trigger {
  position: relative;
  width: 100%;
  border: 0;
  color: inherit;
  cursor: zoom-in;
}

.image-zoom-trigger:focus-visible {
  outline: 2px solid rgba(226, 174, 86, 0.86);
  outline-offset: -4px;
}

.shop-art img {
  width: 100%;
  max-height: 230px;
  object-fit: contain;
}

.image-zoom-label {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  padding: 0.28rem 0.48rem;
  border: 1px solid rgba(226, 174, 86, 0.46);
  border-radius: 3px;
  color: #fff1c2;
  background: rgba(5, 4, 3, 0.78);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.image-zoom-trigger:hover .image-zoom-label,
.image-zoom-trigger:focus-visible .image-zoom-label {
  opacity: 1;
  transform: translateY(0);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.image-lightbox.is-open {
  display: grid;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(6px);
}

.image-lightbox-panel {
  position: relative;
  display: grid;
  gap: 0.75rem;
  width: min(760px, 100%);
  max-height: 92vh;
  padding: clamp(0.8rem, 2vw, 1.2rem);
  border: 1px solid rgba(226, 174, 86, 0.48);
  background:
    radial-gradient(circle at 50% 22%, rgba(226, 174, 86, 0.12), transparent 20rem),
    rgba(5, 4, 3, 0.96);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.72);
}

.image-lightbox-img {
  display: block;
  width: 100%;
  max-height: calc(92vh - 7rem);
  object-fit: contain;
  background: rgba(0, 0, 0, 0.45);
}

.image-lightbox-title {
  color: #fff1c2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-weight: 900;
  text-align: center;
}

.image-lightbox-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 1;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(226, 174, 86, 0.48);
  border-radius: 3px;
  color: #fff1c2;
  background: rgba(5, 4, 3, 0.86);
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.has-lightbox {
  overflow: hidden;
}

.skin-art {
  min-height: 360px;
}

.skin-art img {
  max-height: 350px;
}

.shop-copy {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
}

.shop-copy p {
  margin: 0;
  color: #cdb98f;
}

.stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.stat-chips span {
  padding: 0.25rem 0.45rem;
  border: 1px solid rgba(199, 147, 73, 0.18);
  border-radius: 999px;
  color: #ecd198;
  background: rgba(199, 147, 73, 0.08);
  font-size: 0.78rem;
}

.shop-price {
  color: #f7d890;
  font-weight: 900;
  text-transform: uppercase;
}

/* 2026-05-27 polish pass: cleaner CTAs, fixed header spacing, shop-like item cards. */
.epic:not(.detail-page) main {
  padding-top: var(--epic-header-height);
}

section[id] {
  scroll-margin-top: calc(var(--epic-header-height) + 18px);
}

.epic:not(.detail-page) .epic-hero {
  min-height: calc(clamp(680px, 92vh, 980px) - var(--epic-header-height));
  padding-top: 4.25rem;
}

.epic-main-button {
  border-radius: 4px;
}

.epic-main-button::before,
.epic-main-button::after {
  display: none !important;
}

.store-actions {
  gap: 0.8rem;
}

.store-button {
  min-width: 176px;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 0.95rem;
}

.epic-hero-copy-logo .store-button {
  border-color: rgba(226, 174, 86, 0.84);
  color: #fff2c8;
  background:
    linear-gradient(90deg, rgba(14, 20, 18, 0.96), rgba(31, 43, 34, 0.96), rgba(14, 20, 18, 0.96));
}

.socials-preview {
  background-image:
    linear-gradient(90deg, rgba(5, 6, 6, 0.96), rgba(5, 6, 6, 0.5), rgba(5, 6, 6, 0.9)),
    url("assets/news-arena-max.jpg");
}

.socials-actions {
  justify-content: flex-start;
  max-width: 760px;
  margin-top: 1.35rem;
}

.social-button {
  min-width: 142px;
}

.social-logo svg {
  width: 22px;
  height: 22px;
}

.store-logo {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  color: #fff4d8;
  flex: 0 0 auto;
}

.store-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.store-logo-text {
  border: 1px solid rgba(247, 216, 144, 0.76);
  border-radius: 4px;
  color: #ffffff;
  background: linear-gradient(135deg, #1d7c62, #0a2d36);
  font-weight: 900;
  line-height: 1;
}

.cross-platform-card {
  display: grid;
  gap: 0.55rem;
  align-content: center;
  text-align: center;
}

.launch-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
}

.launch-status {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  row-gap: 0.45rem;
  min-height: 54px;
  padding: 0.42rem 0.5rem;
  border: 1px solid rgba(226, 174, 86, 0.52);
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(14, 20, 18, 0.96), rgba(31, 43, 34, 0.96), rgba(14, 20, 18, 0.96));
  opacity: 0.96;
  cursor: default;
}

.launch-status[aria-disabled="true"] {
  pointer-events: none;
}

.launch-copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
  text-align: left;
  line-height: 1;
}

.launch-copy span {
  margin-top: 0;
  color: #fff2c8;
  font-size: clamp(0.62rem, 0.8vw, 0.76rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.launch-copy b {
  color: #f7d890;
  font-size: clamp(0.52rem, 0.68vw, 0.62rem);
  letter-spacing: 0;
  text-transform: uppercase;
}

.launch-meter {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border: 1px solid rgba(226, 174, 86, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
}

.launch-meter i {
  display: block;
  width: var(--launch-progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, #2fb4a8, #e2ae56);
  box-shadow: 0 0 12px rgba(226, 174, 86, 0.36);
}

.detail-support-grid .epic-main-button,
.epic-support-grid .epic-main-button {
  justify-self: center;
}

.shop-card {
  display: grid;
  grid-template-rows: 236px minmax(286px, 1fr);
  min-height: 542px;
}

.shop-copy {
  min-height: 286px;
  grid-template-rows: auto auto auto auto 1fr auto;
}

.item-card {
  grid-template-rows: 236px minmax(318px, 1fr);
  min-height: 554px;
}

.item-card .shop-copy {
  min-height: 318px;
  grid-template-rows: auto 1fr auto;
}

.fighter-card {
  grid-template-rows: 190px 1fr;
  height: 430px;
  min-height: 430px;
}

#skinsGrid {
  align-items: start;
  grid-auto-rows: 430px;
}

.fighter-card .skin-art {
  min-height: 0;
  height: 190px;
  padding: 0.55rem;
}

.fighter-card .skin-art img {
  max-height: 178px;
}

.fighter-card .shop-copy {
  min-height: 0;
  grid-template-rows: auto auto minmax(3.8rem, auto) auto;
  gap: 0.36rem;
  padding: 0.65rem 0.9rem 0.7rem;
}

.fighter-card h3 {
  line-height: 1.05;
}

.fighter-card .stat-chips {
  margin-top: -0.1rem;
}

.skin-lore {
  align-self: start;
  margin: 0;
  color: #dac69d;
  line-height: 1.3;
}

.skin-price {
  align-self: end;
  color: #ffe0a0;
}

.shop-stat-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.shop-stat-list div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: baseline;
}

.shop-stat-list dt {
  color: #d8b36a;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.shop-stat-list dd {
  margin: 0;
  color: #ead7a8;
}

.shop-lines {
  display: grid;
  gap: 0.15rem;
}

.shop-lines span {
  display: block;
}

.shop-price {
  align-self: end;
  margin-top: auto;
  padding-top: 0.45rem;
}

.role-grid,
.poll-grid,
.patch-list,
.detail-support-grid {
  display: grid;
  gap: 0.85rem;
}

.role-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.role-grid article,
.poll-card,
.patch-list article {
  padding: 1rem;
}

.role-grid p,
.poll-card p,
.patch-list p {
  margin-bottom: 0;
  color: #cdb98f;
}

.poll-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1160px;
}

.poll-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  min-height: 0;
}

.poll-copy {
  display: grid;
  align-content: start;
  gap: 0.65rem;
}

.poll-card h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.15rem);
  line-height: 0.96;
  overflow-wrap: normal;
}

.poll-card p {
  max-width: 28rem;
}

.poll-total {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.25rem;
  padding: 0.42rem 0.58rem;
  border: 1px solid rgba(226, 174, 86, 0.34);
  border-radius: 4px;
  color: #f7d890;
  background: rgba(5, 6, 6, 0.64);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.poll-options {
  display: grid;
  gap: 0.7rem;
}

.poll-card button[data-option] {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 0.75rem;
  align-items: center;
  min-height: 58px;
  padding: 0.65rem 0.75rem;
  overflow: hidden;
  border: 1px solid var(--epic-edge-soft);
  border-radius: 5px;
  color: var(--epic-muted);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.poll-card button[data-option] span,
.poll-card button[data-option] b,
.poll-card button[data-option] i {
  position: relative;
  z-index: 1;
}

.poll-card button[data-option] b {
  color: #fff2c8;
  font-size: 0.92rem;
}

.poll-card button[data-option] i {
  grid-column: 1 / -1;
  color: #cdb98f;
  font-size: 0.78rem;
  font-style: normal;
}

.poll-card button[data-option] em {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--poll-percent, 0%);
  background:
    linear-gradient(90deg, rgba(47, 180, 168, 0.28), rgba(226, 174, 86, 0.22));
  transition: width 180ms ease;
}

.poll-card button[data-option].is-active,
.poll-card button[data-option]:hover {
  border-color: rgba(226, 174, 86, 0.72);
  color: #fff2c8;
  background: rgba(47, 180, 168, 0.12);
}

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

.patch-list article > span {
  display: inline-flex;
  color: #f7d890;
  font-size: 0.88rem;
  font-weight: 800;
}

.patch-list h2 {
  max-width: 44rem;
  margin: 0.35rem 0 0;
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  line-height: 1;
}

.patch-list ul {
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
  color: #dac69d;
  line-height: 1.65;
}

.detail-support-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.detail-support-grid article {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: start;
  min-height: 0;
}

.detail-support-grid article p {
  margin: 0;
}

.detail-support-grid .epic-main-button {
  align-self: end;
  margin-top: 0.75rem;
}

.beta-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(420px, 52vw, 640px);
  margin-bottom: 1rem;
  padding: clamp(2rem, 6vw, 4.5rem);
  overflow: hidden;
  border: 1px solid rgba(226, 174, 86, 0.26);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(5, 6, 6, 0.92) 0%, rgba(5, 6, 6, 0.52) 48%, rgba(5, 6, 6, 0.08) 100%),
    linear-gradient(180deg, rgba(5, 6, 6, 0.1) 0%, rgba(5, 6, 6, 0.82) 100%),
    url("assets/tester.jpg") center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 232, 177, 0.035);
}

.beta-hero .detail-hero {
  max-width: 720px;
  margin: 0;
}

.beta-hero .detail-hero h1 {
  max-width: 10ch;
}

.beta-hero .detail-hero p {
  max-width: 44rem;
}

.beta-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: end;
}

.beta-badges img {
  width: 100%;
  max-height: 290px;
  object-fit: contain;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.62));
}

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

.beta-panel {
  padding: 1rem;
  border: 1px solid var(--epic-edge-soft);
  border-radius: 6px;
  background: rgba(5, 6, 6, 0.74);
  box-shadow: inset 0 0 0 1px rgba(255, 232, 177, 0.025);
}

.beta-panel h2 {
  margin: 0.25rem 0 0.65rem;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1;
}

.beta-panel p,
.beta-checklist {
  color: #dac69d;
  line-height: 1.55;
}

.beta-checklist {
  margin: 0;
  padding-left: 1.1rem;
}

.beta-signup {
  display: grid;
  gap: 0.72rem;
}

.beta-signup label {
  display: grid;
  gap: 0.28rem;
  color: #f7d890;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.beta-signup input,
.beta-signup select,
.beta-signup textarea {
  width: 100%;
  border: 1px solid rgba(226, 174, 86, 0.46);
  border-radius: 4px;
  color: #fff2c8;
  background: rgba(0, 0, 0, 0.58);
  font: inherit;
  text-transform: none;
}

.beta-signup input,
.beta-signup select {
  min-height: 44px;
  padding: 0 0.7rem;
}

.beta-signup textarea {
  min-height: 86px;
  padding: 0.62rem 0.7rem;
  resize: vertical;
}

.beta-hidden {
  position: absolute;
  left: -9999px;
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  color: #6df08b;
  font-size: 0.9rem;
}

.form-status.is-error {
  color: #ff9a82;
}

.beta-prompt-panel {
  margin-top: 0.85rem;
}

.prompt-panel p strong {
  color: #f7d890;
}

.leaderboard-card {
  padding: 0.85rem;
}

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

.ladder-list-full .ladder-row {
  grid-template-columns: 74px minmax(160px, 1fr) 120px 120px;
  min-height: 52px;
}

.ladder-list-full .ladder-row span:last-child {
  grid-column: auto;
  text-align: right;
}

@media (max-width: 1040px) {
  .season-preview-inner {
    grid-template-columns: 1fr;
  }

  .season-ladder-card {
    max-width: 560px;
    transform: none;
  }

  .epic-hero {
    min-height: 740px;
  }

  .epic-hero-copy-logo {
    margin-bottom: 1rem;
  }

  .epic-hero-copy-logo .store-actions {
    transform: none;
  }

  .season-layout,
  .shop-layout,
  .story-grid,
  .role-grid,
  .poll-grid,
  .poll-card,
  .beta-layout,
  .detail-support-grid {
    grid-template-columns: 1fr;
  }

  .beta-badges {
    max-width: 520px;
  }

  .poll-card h2,
  .poll-card p,
  .poll-options {
    grid-column: 1;
  }

  .shop-filters {
    position: static;
  }
}

@media (max-width: 620px) {
  .store-button {
    min-width: 0;
  }

  .store-actions {
    grid-template-columns: 1fr;
  }

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

  .launch-status {
    width: min(100%, 360px);
    justify-self: center;
  }

  .beta-hero {
    min-height: 540px;
    padding: 2rem 1.2rem;
    background-position: 58% center;
  }

  .epic-preview-block {
    min-height: 420px;
  }

  .ladder-row,
  .ladder-list-full .ladder-row {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .ladder-row b,
  .ladder-row span:last-child,
  .ladder-list-full .ladder-row span:last-child {
    grid-column: 2;
    text-align: left;
  }

  .season-preview {
    padding-inline: 1rem;
  }

  .season-preview-copy h2 {
    white-space: normal;
  }

  .season-copy-ladder-button,
  .season-ladder-card .epic-text-link {
    display: none;
  }

  .season-ladder-card {
    max-width: 100%;
    max-height: none;
    overflow: visible;
  }

  .season-ladder-card .ladder-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    min-height: 34px;
    padding: 0.32rem 0.5rem;
    font-size: 0.8rem;
  }

  .season-ladder-card .ladder-row b {
    grid-column: auto;
    text-align: right;
  }

  .season-ladder-card .ladder-row span:last-child {
    display: none;
  }

  .season-ladder-mobile-button {
    display: inline-flex;
    justify-self: center;
    width: calc(100% - 1rem);
    max-width: 360px;
    margin-top: 0.65rem;
  }

  .detail-shell {
    padding-top: 3rem;
  }

  .detail-hero h1 {
    font-size: clamp(3rem, 17vw, 4.8rem);
  }
}
