/* Level Ten home page. Plain CSS, no build step. Other pages use site.css. */

@font-face {
  font-family: "Cinzel";
  src: url("/fonts/Cinzel.woff2") format("woff2"), url("/fonts/Cinzel.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya";
  src: url("/fonts/Alegreya.woff2") format("woff2"), url("/fonts/Alegreya.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --bg: #120d12;
  --bg-rgb: 18, 13, 18;
  --panel: #1a131a;
  --deep: #0b080b;
  --shot-bg: #0f0b0f;
  --head: #f6ead6;
  --ink: #f3e7d3;
  --soft: #e8dcc6;
  --body: #d9cbb4;
  --dim: #c9b8a0;
  --faint: #9d8c78;
  --gold: #f0c04a;
  --gold-hi: #ffd77a;
  --gold-card: #c9a24a;
  --ember: #ff7a2f;
  --ember-hi: #ff9550;
  --on-ember: #1a0c05;
  --ok: #8fd16a;
  --line: rgba(240, 214, 170, 0.1);
  --line-2: rgba(240, 214, 170, 0.16);
  --line-3: rgba(240, 214, 170, 0.22);
  --maxw: 1320px;
  --gutter: clamp(16px, 3vw, 32px);
  --head-h: 68px;
  --font-title: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Alegreya", Georgia, "Times New Roman", serif;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; }
h1, h2, h3, p, figure { margin: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  background: var(--gold);
  color: var(--on-ember);
  padding: 10px 16px;
  font-weight: 700;
}
.skip-link:focus { top: 10px; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ------------------------------------------------------------ type */

.title { font-family: var(--font-title); font-weight: 700; color: var(--head); }
.h-xl { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.02; text-wrap: balance; }
.h-lg { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; text-wrap: balance; }
.caps {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker::after { content: ""; height: 1px; width: 48px; background: currentColor; opacity: 0.6; }
.kicker-muted { color: var(--dim); }
.lead { font-size: 20px; line-height: 1.55; color: var(--body); max-width: 26em; text-wrap: pretty; }
.shadowed { text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85); }

.sec-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 20px 40px;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 18px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-ember { background: var(--ember); color: var(--on-ember); }
.btn-ember:hover { background: var(--ember-hi); color: var(--on-ember); }
.btn-ghost {
  border: 1.5px solid rgba(243, 231, 211, 0.55);
  background: rgba(var(--bg-rgb), 0.45);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); color: #fff; }
.btn-lg { min-height: 60px; padding: 0 30px; font-size: 16px; letter-spacing: 0.1em; }
.btn-lg.btn-ghost { padding: 0 26px; font-size: 15px; }
.btn-ember.btn-lg { box-shadow: 0 12px 32px rgba(255, 106, 20, 0.3); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------ header */

.lt-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(var(--bg-rgb), 0.92);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(10px)) {
  .lt-header { background: rgba(var(--bg-rgb), 0.84); backdrop-filter: blur(10px); }
}
.lt-header-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--head-h);
}
.lt-brand { display: flex; flex-shrink: 0; }
.lt-brand img { height: 34px; width: auto; }
.lt-nav { display: flex; gap: 4px; align-items: center; }
.lt-nav a {
  padding: 8px 12px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.lt-nav a:hover { color: var(--gold); }
.lt-header-end { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.lv-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  font-family: var(--font-title);
  font-weight: 700;
}
.lv-meter-tag { font-size: 12px; letter-spacing: 0.16em; color: var(--dim); }
.lv-meter-num { font-size: 15px; color: var(--gold); min-width: 22px; text-align: right; font-variant-numeric: tabular-nums; }
.lv-meter-bar { position: relative; width: 64px; height: 4px; background: rgba(240, 214, 170, 0.14); overflow: hidden; }
.lv-meter-fill { position: absolute; inset: 0 auto 0 0; width: 10%; background: var(--gold); transition: width 0.3s; }

.auth-link {
  padding: 8px 4px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.auth-link:hover { color: var(--gold); }
.auth-user {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  padding: 4px 12px 4px 4px;
  border: 1px solid rgba(240, 214, 170, 0.2);
  border-radius: 999px;
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}
.auth-user img { width: 28px; height: 28px; flex-shrink: 0; }
.auth-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.menu-toggle {
  min-height: 42px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid rgba(240, 214, 170, 0.3);
  color: var(--ink);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  cursor: pointer;
}
.lt-menu {
  display: flex;
  flex-direction: column;
  padding: 8px var(--gutter) 20px;
  border-top: 1px solid var(--line);
}
.lt-menu[hidden] { display: none; }
.lt-menu a {
  padding: 14px 0;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.lt-menu a:last-child { border-bottom: 0; color: var(--gold); }

.wide-only { display: none; }
@media (min-width: 980px) {
  .wide-only { display: flex; }
  .narrow-only, .lt-menu { display: none !important; }
}
@media (max-width: 420px) {
  .lt-header-bar { gap: 12px; }
  .lt-header-end { gap: 8px; }
  .lt-header-end .btn-ember { padding: 0 12px; }
}

/* ------------------------------------------------------------ full-bleed sections with art */

.bleed {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.bleed-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bleed-art img { width: 100%; height: 100%; object-fit: cover; object-position: inherit; }
.bleed-shade { position: absolute; inset: 0; z-index: -1; }

/* ------------------------------------------------------------ hero */

.hero {
  min-height: min(92vh, 900px);
  display: grid;
  align-content: center;
  padding: clamp(48px, 8vw, 96px) 0 72px;
}
.hero .bleed-art { object-position: 62% 40%; }
.hero .bleed-shade {
  background:
    linear-gradient(90deg, rgba(var(--bg-rgb), 0.92) 0%, rgba(var(--bg-rgb), 0.7) 30%, rgba(var(--bg-rgb), 0) 58%),
    linear-gradient(180deg, rgba(var(--bg-rgb), 0.35) 0%, rgba(var(--bg-rgb), 0) 25%, rgba(var(--bg-rgb), 0) 70%, var(--bg) 100%);
}
@media (max-width: 759px) {
  .hero { align-content: start; }
  .hero .bleed-art { object-position: 50% 100%; }
  .hero .bleed-shade {
    background: linear-gradient(180deg, rgba(var(--bg-rgb), 0.75) 0%, rgba(var(--bg-rgb), 0.55) 45%, rgba(var(--bg-rgb), 0.1) 70%, var(--bg) 100%);
  }
}
.hero-copy { max-width: 560px; }
.hero-logo {
  width: min(420px, 80%);
  margin: 0 0 28px -6px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.8));
}
.hero h1 {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  text-wrap: balance;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
}
.hero-lede {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--soft);
  margin-bottom: 32px;
  max-width: 30em;
  text-wrap: pretty;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
}
.hero .btn-row { margin-bottom: 18px; }
.hero-note { margin-bottom: 28px; font-size: 16px; color: var(--dim); text-shadow: 0 1px 6px #000; }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(var(--bg-rgb), 0.7);
  border: 1px solid var(--line-2);
  font-size: 16px;
  color: var(--ink);
}
.pulse {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ok);
  animation: lt-pulse 2s infinite;
}
[data-state="loading"] .pulse { background: var(--faint); animation: none; }
[data-state="down"] .pulse { background: #7a6a55; animation: none; }
@keyframes lt-pulse {
  0% { box-shadow: 0 0 0 0 rgba(143, 209, 106, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(143, 209, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(143, 209, 106, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
}

/* ------------------------------------------------------------ levels I-IV */

.round-sec { padding: clamp(64px, 8vw, 112px) 0 clamp(32px, 4vw, 48px); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
}
.card-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.card-art > img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: clamp(20px, 2.4vw, 28px); }
.card-title { display: flex; align-items: baseline; gap: 14px; }
.card-num { font-family: var(--font-title); font-weight: 700; font-size: 13px; letter-spacing: 0.2em; color: var(--gold); }
.card h3 { font-size: 26px; line-height: 1.1; }
.card-body > p { font-size: 18px; color: var(--body); text-wrap: pretty; }
.card-body > p.card-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--faint);
}

/* little stacks of real card art on each feature image */
.fan { position: absolute; right: 16px; bottom: -10px; display: flex; align-items: flex-end; }
.fan img {
  width: 58px;
  aspect-ratio: 408 / 522;
  object-fit: cover;
  border-radius: 5px;
  border: 2px solid var(--gold-card);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6);
}
.fan img:nth-child(1) { transform: rotate(-8deg) translate(10px, 4px); }
.fan img:nth-child(2) { position: relative; z-index: 1; border-color: var(--gold); transform: translateY(-4px); }
.fan img:nth-child(3) { transform: rotate(8deg) translate(-10px, 4px); }
.door-row { position: absolute; right: 16px; bottom: 10px; display: flex; gap: 6px; align-items: flex-end; }
.door-row img { width: 38px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.7)); }
.coins { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 10px; align-items: flex-end; }
.coin {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold-card);
  box-shadow: 0 0 0 3px var(--bg), 0 10px 24px rgba(0, 0, 0, 0.6);
  background: var(--panel);
}
.coin img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.32); }
.coin-legendary { border-color: #ffd54f; box-shadow: 0 0 0 3px var(--bg), 0 10px 24px rgba(0, 0, 0, 0.6), 0 0 22px rgba(255, 200, 80, 0.55); }

/* ------------------------------------------------------------ screenshots */

.shots-sec { padding: clamp(56px, 7vw, 96px) 0; }
.shots-sec .sec-head { gap: 16px 40px; margin-bottom: clamp(24px, 3vw, 36px); }
.shots-hint { font-size: 16px; color: var(--faint); }
.shot-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line-2);
  background: var(--shot-bg);
  cursor: zoom-in;
  transition: border-color 0.15s;
}
.shot-btn:hover { border-color: rgba(240, 192, 74, 0.6); }
.shot-btn img { width: 100%; aspect-ratio: 1774 / 998; object-fit: cover; }
.shot figcaption { padding-top: 10px; font-size: 16px; line-height: 1.45; color: var(--dim); }
.shot-big figcaption { padding-top: 12px; font-size: 17px; }
.shot figcaption strong { display: block; margin-bottom: 4px; font-family: var(--font-title); font-weight: 700; font-size: 18px; color: var(--head); }
.shot-main { display: flex; flex-wrap: wrap; gap: clamp(16px, 2vw, 24px); }
.shot-big { flex: 2 1 600px; min-width: 0; }
.shot-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: clamp(16px, 2vw, 24px); }
.shots-only { margin: clamp(32px, 4vw, 48px) 0 16px; }
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(16px, 2vw, 24px);
}

/* ------------------------------------------------------------ online */

.online { padding: clamp(80px, 10vw, 150px) 0; }
.online .bleed-art { object-position: 50% 40%; }
.online .bleed-shade {
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(var(--bg-rgb), 0.55) 20%, rgba(var(--bg-rgb), 0.55) 60%, rgba(var(--bg-rgb), 0.95) 88%, var(--bg) 100%),
    linear-gradient(90deg, rgba(var(--bg-rgb), 0.85), rgba(var(--bg-rgb), 0.2) 60%);
}
.online-row { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 64px); }
.online-copy { flex: 1 1 460px; min-width: 0; }
.online-copy h2 { margin-bottom: 18px; }
.online-copy .lead { color: var(--soft); max-width: 31em; margin-bottom: 40px; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9); }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 1px;
  max-width: 820px;
  margin: 0;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}
.stat { background: rgba(var(--bg-rgb), 0.82); padding: 22px clamp(16px, 2vw, 24px); }
.stat dt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.stat dd {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(34px, 3.4vw, 44px);
  line-height: 1;
  color: var(--head);
  font-variant-numeric: tabular-nums;
}
.stat:first-child dd { color: var(--gold); }
.stats-note { margin-top: 12px; font-size: 15px; color: var(--faint); }
.online-shot { flex: 1 1 460px; min-width: 0; }
.online-shot .shot-btn { border-color: var(--line-3); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6); }
.online-shot .shot-btn img { aspect-ratio: 1200 / 880; }
.online-shot figcaption { text-shadow: 0 1px 6px #000; }

/* ------------------------------------------------------------ heroes */

.heroes-sec { padding: clamp(72px, 9vw, 128px) 0; }
.picker { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); align-items: center; }
.picker-portrait { flex: 0 1 380px; min-width: 0; margin: 0 auto; }
.portrait-ring { position: relative; width: min(100% - 32px, 300px); aspect-ratio: 1; margin: 16px auto; }
.portrait-ring::before {
  content: "";
  position: absolute;
  inset: -16px;
  border: 1px solid rgba(240, 192, 74, 0.5);
  border-radius: 50%;
}
.portrait-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 80px rgba(255, 122, 47, 0.15);
}
.picker-info { flex: 1 1 420px; min-width: 0; }
.picker-info h3 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { padding: 4px 12px; border: 1px solid rgba(240, 192, 74, 0.5); font-size: 15px; color: var(--gold); }
.chip-muted { border-color: var(--line-3); color: var(--dim); }
.chip[hidden] { display: none; }
.power-name { margin-bottom: 8px; font-size: 15px; letter-spacing: 0.18em; color: var(--ember-hi); }
.power-desc { max-width: 26em; margin-bottom: 36px; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.45; color: var(--ink); text-wrap: pretty; }
.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 10px 8px;
  max-width: 680px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-pick {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.hero-pick img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(240, 214, 170, 0.18);
  filter: saturate(0.55) brightness(0.75);
  transition: filter 0.15s, border-color 0.15s;
}
.hero-pick span {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.hero-pick:hover img { filter: none; }
.hero-pick[aria-pressed="true"] img { border-color: var(--gold); filter: none; }
.hero-pick[aria-pressed="true"] span { color: var(--gold); }

/* ------------------------------------------------------------ old hinge */

.hinge-sec { padding: clamp(24px, 4vw, 48px) 0 clamp(72px, 9vw, 120px); }
.hinge-sec .wrap { max-width: 1180px; }
.parchment {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(36px, 5vw, 64px) clamp(28px, 5vw, 72px);
  background: #d9bf8f url("/img/home/bg_parchment_texture.webp") center / 100% 100% no-repeat;
  color: #3d2814;
}
.parchment > img {
  flex: 0 0 auto;
  width: clamp(160px, 20vw, 240px);
  margin: -20px auto;
  filter: drop-shadow(0 18px 24px rgba(60, 30, 10, 0.45));
}
.parchment-copy { flex: 1 1 380px; min-width: 0; }
.parchment .kicker { color: #7a3a12; margin-bottom: 14px; }
.parchment .kicker::after { display: none; }
.parchment h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; margin-bottom: 14px; color: #2a1a0e; text-wrap: balance; }
.parchment p { font-size: 20px; max-width: 30em; margin-bottom: 24px; text-wrap: pretty; }
.btn-ink { min-height: 52px; padding: 0 24px; font-size: 14px; background: #2a1a0e; color: var(--head); }
.btn-ink:hover { background: #4a2c14; color: #fff; }
.parchment :focus-visible { outline-color: #2a1a0e; }

/* ------------------------------------------------------------ monsters */

.monsters-sec { padding: 0 0 clamp(72px, 9vw, 128px); }
.monsters-sec .sec-head { gap: 24px; margin-bottom: clamp(28px, 3vw, 44px); }
.monsters-sec .wrap > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ------------------------------------------------------------ ladder + what's new */

.ladder-sec {
  padding: clamp(72px, 9vw, 120px) 0;
  background: var(--panel);
  border-block: 1px solid var(--line);
}
.ladder-sec .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(40px, 6vw, 88px);
}
.ladder-sec h2 { margin-bottom: 28px; }
.ladder { margin: 0; padding: 0; list-style: none; }
.ladder li {
  display: grid;
  grid-template-columns: 36px 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.ladder-rank { font-family: var(--font-title); font-weight: 700; font-size: 20px; color: var(--faint); }
.ladder li:nth-child(1) .ladder-rank { color: var(--gold); }
.ladder li:nth-child(2) .ladder-rank { color: #d9dfe6; }
.ladder li:nth-child(3) .ladder-rank { color: #e0a06a; }
.ladder-face { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--bg); }
.ladder-name { min-width: 0; }
.ladder-name a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  font-size: 19px;
  color: var(--head);
  text-decoration: none;
}
.ladder-name a:hover { color: var(--gold); }
.ladder-tier { font-family: var(--font-title); font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tier, var(--dim)); }
.ladder-tier[data-tier="Peasant"] { --tier: #b5a283; }
.ladder-tier[data-tier="Squire"] { --tier: #d99a5b; }
.ladder-tier[data-tier="Knight"] { --tier: #b9cde0; }
.ladder-tier[data-tier="Champion"] { --tier: #ffd54f; }
.ladder-tier[data-tier="Warlord"] { --tier: #ff7a52; }
.ladder-tier[data-tier="Legend"] { --tier: #d6a2ff; }
.ladder-mmr { font-family: var(--font-title); font-weight: 700; font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.ladder-empty { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; color: var(--dim); }
.ladder-sec .text-link { margin-top: 22px; }

.news-sub { margin: -20px 0 24px; font-size: 17px; color: var(--faint); }
.news { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.news li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 16px;
  align-items: baseline;
  font-size: 19px;
  color: var(--body);
}
.news li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--ember);
  transform: rotate(45deg) translateY(-2px);
}
.news strong { color: var(--head); }

/* ------------------------------------------------------------ boss + final CTA */

.boss { padding: clamp(96px, 12vw, 180px) 0; }
.boss .bleed-art { object-position: 50% 40%; }
.boss .bleed-shade {
  background:
    linear-gradient(270deg, rgba(var(--bg-rgb), 0.9) 0%, rgba(var(--bg-rgb), 0.6) 36%, rgba(var(--bg-rgb), 0) 65%),
    linear-gradient(180deg, var(--panel) 0%, rgba(var(--bg-rgb), 0) 18%, rgba(var(--bg-rgb), 0) 80%, var(--bg) 100%);
}
@media (max-width: 759px) {
  .boss .bleed-shade { background: linear-gradient(180deg, var(--panel) 0%, rgba(var(--bg-rgb), 0.55) 25%, rgba(var(--bg-rgb), 0.75) 100%); }
}
.boss .wrap { display: flex; justify-content: flex-end; }
.boss-copy { max-width: 500px; }
.boss-copy h2 { margin-bottom: 18px; }
.boss-copy .lead { color: var(--soft); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9); }

.cta { padding: clamp(96px, 12vw, 170px) 0; text-align: center; }
.cta .bleed-art { object-position: 50% 25%; }
.cta .bleed-shade {
  background:
    radial-gradient(ellipse 55% 60% at 50% 55%, rgba(var(--bg-rgb), 0.82), rgba(var(--bg-rgb), 0.35) 80%),
    linear-gradient(180deg, var(--bg) 0%, rgba(var(--bg-rgb), 0) 20%, rgba(var(--bg-rgb), 0) 80%, var(--deep) 100%);
}
.cta .wrap { max-width: 760px; }
.cta .kicker { justify-content: center; letter-spacing: 0.3em; margin-bottom: 18px; }
.cta .kicker::after { display: none; }
.cta h2 {
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  margin-bottom: 20px;
  color: #fff3dc;
  text-wrap: balance;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85);
}
.cta p { font-size: 21px; max-width: 28em; margin: 0 auto 36px; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.95); }
.cta .btn-row { justify-content: center; }
.cta .btn-ghost { border-color: rgba(243, 231, 211, 0.6); background: rgba(var(--bg-rgb), 0.5); }

/* ------------------------------------------------------------ footer */

.lt-footer { position: relative; background: var(--deep); }
.lt-footer > img { width: 100%; height: clamp(180px, 24vw, 360px); object-fit: cover; object-position: 50% 30%; }
/* fade the skyline into the footer so the link columns that overlap it stay readable */
.lt-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: clamp(180px, 24vw, 360px);
  background: linear-gradient(180deg, rgba(11, 8, 11, 0) 35%, rgba(11, 8, 11, 0.85) 82%, var(--deep) 100%);
}
.lt-footer .wrap { position: relative; margin-top: -60px; padding-bottom: 36px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.footer-brand { grid-column: span 2; max-width: 380px; min-width: 0; }
@media (max-width: 480px) { .footer-brand { grid-column: auto; } }
.footer-brand img { width: 170px; margin-bottom: 14px; }
.footer-brand p { font-size: 17px; color: var(--dim); }
.footer-col h2 { margin-bottom: 14px; font-family: var(--font-title); font-weight: 700; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: 17px; }
.footer-col a:hover { color: var(--gold); }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 20px;
  font-size: 15px;
  color: var(--faint);
}
.footer-base a { color: inherit; }
.footer-base a:hover { color: var(--gold); }

/* ------------------------------------------------------------ screenshot lightbox */

.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(12px, 3vw, 40px);
  border: 0;
  background: transparent;
  cursor: zoom-out;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(8, 5, 8, 0.92); backdrop-filter: blur(4px); }
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 2 * clamp(12px, 3vw, 40px));
  width: auto;
  height: auto;
  border: 1px solid var(--line-3);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}
.lightbox-close {
  position: fixed;
  top: 12px;
  right: 14px;
  padding: 8px 10px;
  background: none;
  border: 0;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--ink);
  cursor: pointer;
}
.lightbox-close:hover { color: var(--gold); }
