/* Trove Prisons. Direction: a blackstone prison sunk into an abyss. Soul blue (info, links, live), ember orange
   (the one action: copy / buy), infernal red (depth, PvP). Notched block corners instead of rounded cards.
   Mobile first; one signature motion (embers rising behind the hero), off with prefers-reduced-motion. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo/archivo-var-wdth-latin.woff2") format("woff2");
  font-weight: 800;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson";
  src: url("../fonts/atkinson-hyperlegible/atkinson-hyperlegible-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson";
  src: url("../fonts/atkinson-hyperlegible/atkinson-hyperlegible-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --abyss: #07090d;
  --deep: #0b0f15;
  --surface: #11161e;
  --surface-2: #171e28;
  --line: #263142;
  --line-strong: #364459;
  --text: #edf1f6;
  --muted: #a3afc0;
  --dim: #7d8a9d;
  --soul: #3fd0ff;
  --soul-ink: #04161d;
  --soul-glow: rgba(63, 208, 255, .22);
  --ember: #ff8a2a;
  --ember-hot: #ffa452;
  --ember-ink: #1c0c00;
  --infernal: #ff4d55;
  --gold: #f2c14e;
  --ok: #4ade80;
  --display: "Archivo", "Arial Narrow", Impact, sans-serif;
  --body: "Atkinson", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --wrap: 1180px;
  --gutter: 16px;
  --notch: 10px;
  --radius: 4px;
  --header-h: 64px;
}
@media (min-width: 768px) { :root { --gutter: 28px; --notch: 14px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--abyss);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--soul); text-underline-offset: .18em; }
a:hover { color: #8be3ff; }
code {
  font-family: var(--mono);
  font-size: .9em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: .08em .38em;
  border-radius: 3px;
  color: #d9f4ff;
  overflow-wrap: anywhere;
}
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; font-stretch: 88%; line-height: 1.05; margin: 0 0 .5em; letter-spacing: .005em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 9vw, 4.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--soul); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--soul); color: var(--soul-ink); }
.visually-hidden { position: absolute !important; left: 0; top: 0; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--soul); color: var(--soul-ink); padding: 10px 16px; font-weight: 700; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

.eyebrow {
  font-family: var(--display); font-stretch: 110%; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--soul); margin: 0 0 .7em; display: flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 18px; height: 3px; background: currentColor; }
.lede { font-size: 1.15rem; color: #cfd8e4; max-width: 60ch; }

/* ---------- buttons (min 44px tall) */
.btn {
  --bg: var(--surface-2); --fg: var(--text); --bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.25em;
  font: 800 .95rem/1 var(--display); font-stretch: 105%; letter-spacing: .04em; text-transform: uppercase;
  color: var(--fg); background: var(--bg); border: 2px solid var(--bd); text-decoration: none; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)));
  transition: transform .12s ease, background-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { color: var(--fg); filter: brightness(1.08); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn .ico { width: 1.2em; height: 1.2em; }
.btn-sm { min-height: 44px; padding: .55em .95em; font-size: .82rem; }
.btn-ember { --bg: var(--ember); --fg: var(--ember-ink); --bd: var(--ember); }
.btn-ember:hover { --bg: var(--ember-hot); }
.btn-soul { --bg: var(--soul); --fg: var(--soul-ink); --bd: var(--soul); }
.btn-ghost { --bg: transparent; --fg: var(--text); --bd: var(--line-strong); }
.btn-ghost:hover { --bd: var(--soul); --fg: #fff; }
.btn-soon { --bg: transparent; --fg: var(--dim); --bd: var(--line); cursor: default; }
.btn-soon:hover { filter: none; }
.btn.is-copied { --bg: var(--ok); --bd: var(--ok); --fg: #04140a; }
.text-link { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 9, 13, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand img { width: 40px; height: 40px; }
.brand-word { font: 800 1.05rem/0.95 var(--display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .04em; display: flex; flex-direction: column; }
.brand-word span { color: var(--soul); font-size: .78em; letter-spacing: .16em; }
.nav-toggle {
  margin-left: auto; order: 3; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 12px;
  background: transparent; color: var(--text); border: 2px solid var(--line-strong); font: 800 .8rem var(--display); text-transform: uppercase; letter-spacing: .08em; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
.header-play { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-play .status-pill { display: none; }
.site-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--deep); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 18px;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 4px; color: var(--text); text-decoration: none; font: 800 1.1rem var(--display); font-stretch: 100%; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); }
.site-nav a[aria-current="page"] { color: var(--soul); }
.site-nav a:hover { color: var(--soul); }
.site-nav .nav-discord { gap: 10px; border-bottom: 0; color: var(--soul); }
@media (max-width: 420px) { .header-play .btn span { display: none; } .header-play .btn { padding: .55em .8em; } }
@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex !important; position: static; background: none; border: 0; padding: 0; align-items: center; gap: 4px; margin-left: 12px; overflow: visible; max-height: none; }
  .site-nav ul { display: flex; gap: 2px; }
  .site-nav a { min-height: 44px; padding: 0 10px; font-size: .86rem; border: 0; position: relative; }
  .site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 3px; background: var(--soul); }
  .site-nav .nav-discord { display: none; }
  .header-play { margin-left: auto; }
  .header-play .status-pill { display: inline-flex; }
}

/* ---------- live status pill */
.status-pill { display: inline-flex; align-items: center; gap: .5em; font: 700 .9rem/1.2 var(--body); color: var(--muted); white-space: nowrap; }
.status-dot { width: 10px; height: 10px; background: var(--dim); flex: none; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.status-pill.is-online { color: #c9f7d9; }
.status-pill.is-online .status-dot { background: var(--ok); box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pulse 2.4s ease-out infinite; clip-path: none; border-radius: 50%; }
.status-pill.is-offline { color: #ffc2c5; }
.status-pill.is-offline .status-dot { background: var(--infernal); }
.status-pill.is-checking .status-dot { background: var(--soul); animation: blink 1.2s ease-in-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); } 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- hero */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 9, 13, .55) 0%, rgba(7, 9, 13, .78) 45%, var(--abyss) 100%),
    linear-gradient(90deg, rgba(7, 9, 13, .7), rgba(7, 9, 13, 0) 70%);
}
.hero-inner { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 44px; }
.hero h1 { margin-bottom: .35em; text-shadow: 0 2px 24px rgba(0, 0, 0, .6); }
.hero h1 em { font-style: normal; color: var(--infernal); }
.hero .lede { text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; align-items: center; min-height: min(78vh, 720px); padding-top: 56px; padding-bottom: 72px; }
  .hero::before { background: linear-gradient(90deg, rgba(7, 9, 13, .92) 0%, rgba(7, 9, 13, .6) 46%, rgba(7, 9, 13, .2) 100%), linear-gradient(180deg, rgba(7, 9, 13, 0) 60%, var(--abyss) 100%); }
}

/* the signature motion: embers rising out of the abyss */
.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.embers i {
  position: absolute; bottom: -12px; width: 4px; height: 4px; background: var(--ember); opacity: 0;
  box-shadow: 0 0 8px 2px rgba(255, 138, 42, .55);
  animation: rise 9s linear infinite;
}
.embers i:nth-child(3n) { background: var(--soul); box-shadow: 0 0 8px 2px var(--soul-glow); width: 3px; height: 3px; }
.embers i:nth-child(1) { left: 6%; animation-delay: 0s; animation-duration: 10s; }
.embers i:nth-child(2) { left: 14%; animation-delay: 2.5s; }
.embers i:nth-child(3) { left: 22%; animation-delay: 5s; animation-duration: 12s; }
.embers i:nth-child(4) { left: 31%; animation-delay: 1.2s; animation-duration: 8s; }
.embers i:nth-child(5) { left: 39%; animation-delay: 6.5s; }
.embers i:nth-child(6) { left: 47%; animation-delay: 3.3s; animation-duration: 11s; }
.embers i:nth-child(7) { left: 55%; animation-delay: 7.7s; animation-duration: 9.5s; }
.embers i:nth-child(8) { left: 63%; animation-delay: .6s; animation-duration: 12.5s; }
.embers i:nth-child(9) { left: 71%; animation-delay: 4.4s; }
.embers i:nth-child(10) { left: 79%; animation-delay: 8.8s; animation-duration: 10.5s; }
.embers i:nth-child(11) { left: 86%; animation-delay: 2s; animation-duration: 8.5s; }
.embers i:nth-child(12) { left: 93%; animation-delay: 5.8s; }
.embers i:nth-child(13) { left: 10%; animation-delay: 9.5s; animation-duration: 13s; }
.embers i:nth-child(14) { left: 58%; animation-delay: 11s; animation-duration: 11.5s; }
@keyframes rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: .9; }
  60% { opacity: .55; }
  100% { transform: translate3d(28px, -78vh, 0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .embers { display: none; }
  .status-pill.is-online .status-dot, .status-pill.is-checking .status-dot { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- address card */
.address-card {
  position: relative; background: rgba(11, 15, 21, .9); border: 2px solid var(--line-strong); padding: 18px;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.address-card::before { content: ""; position: absolute; left: 0; top: 0; width: 64px; height: 4px; background: var(--soul); }
.address-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.address-card-top .eyebrow { margin: 0; }
.address-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.address-field { display: flex; flex-direction: column; min-width: 0; }
.field-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.address-value { background: none; border: 0; padding: 0; color: #fff; font: 800 clamp(1.35rem, 6.4vw, 2.1rem)/1.15 var(--display); font-stretch: 92%; letter-spacing: .01em; overflow-wrap: anywhere; }
.address-value.is-port { color: var(--ember); font-stretch: 110%; }
.address-card.is-big .address-value { font-size: clamp(1.45rem, 7vw, 2.35rem); }
.address-note { margin: 4px 0 0; font-size: .92rem; color: var(--muted); }
.address-row .btn { flex: none; }
@media (max-width: 480px) { .address-row .btn { width: 100%; } }

/* ---------- live strip */
.live-strip { background: var(--deep); border-bottom: 1px solid var(--line); }
.live-strip-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.live-item { padding: 16px 0; display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid var(--line); }
.live-item:nth-child(odd) { padding-right: 12px; }
.live-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); font-weight: 700; }
.live-value { font-weight: 700; }
@media (min-width: 768px) {
  .live-strip-inner { grid-template-columns: repeat(4, 1fr); }
  .live-item { border-bottom: 0; border-left: 1px solid var(--line); padding: 20px 20px; }
  .live-item:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- sections */
.section { padding: 56px 0; }
.section-tight { padding-top: 28px; padding-bottom: 64px; }
@media (min-width: 768px) { .section { padding: 72px 0; } }
.section-head { margin-bottom: 28px; max-width: 70ch; }
.section-head h2 { margin-bottom: .25em; }
.section-head.with-link { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: none; }
.section-sub { color: var(--muted); margin: .4em 0 0; }
.aside-note { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .95rem; margin-top: 22px; }
.aside-note .ico { color: var(--soul); margin-top: .2em; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); padding: 18px; }
.steps h3 { font-size: 1.15rem; margin-bottom: .3em; }
.steps p { margin: 0; color: #cdd6e2; }
.step-n { flex: none; width: 40px; height: 40px; display: grid; place-items: center; font: 800 1.25rem var(--display); color: var(--soul-ink); background: var(--soul); clip-path: polygon(0 0, 75% 0, 100% 25%, 100% 100%, 25% 100%, 0 75%); }
@media (min-width: 768px) { .steps:not(.is-long) { grid-template-columns: repeat(3, 1fr); } }

/* the descent: features as floors going down, each with its tier colour */
.floors { display: grid; gap: 0; border-top: 1px solid var(--line); }
.floor { --tc: var(--soul); display: grid; gap: 10px 32px; padding: 26px 0 26px 18px; border-bottom: 1px solid var(--line); position: relative; }
.floor::before { content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 4px; background: var(--tc); }
.floor.tier-ember { --tc: var(--ember); }
.floor.tier-abyss { --tc: #8b7dff; }
.floor.tier-infernal { --tc: var(--infernal); }
.floor-stat { display: flex; align-items: baseline; gap: 10px; }
.floor-stat strong { font: 800 clamp(2.4rem, 9vw, 3.6rem)/1 var(--display); font-stretch: 75%; color: var(--tc); }
.floor-stat span { color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .12em; }
.floor-body p { color: #cdd6e2; max-width: 62ch; }
@media (min-width: 860px) {
  .floor { grid-template-columns: 260px 1fr; padding-left: 28px; align-items: start; }
  .floor:nth-child(2) { margin-left: 4%; } .floor:nth-child(3) { margin-left: 8%; } .floor:nth-child(4) { margin-left: 12%; }
  .floor-stat { flex-direction: column; gap: 6px; }
}
.floors-more { margin-top: 26px; color: var(--muted); }

/* ---------- leaderboards */
.board-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .board-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .board-grid:not(.is-teaser) { grid-template-columns: repeat(3, 1fr); } }
.board { background: var(--surface); border: 1px solid var(--line); }
.board-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.board-head h3 { margin: 0; font-size: 1.15rem; }
.board-icon { color: var(--gold); display: grid; }
.board-note { font-size: .8rem; color: var(--dim); margin-left: auto; }
.board-group-tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); border: 1px solid var(--line-strong); padding: 2px 6px; }
.board-head h3 + .board-group-tag { margin-left: auto; }
.board-group-tag + .board-note { margin-left: 0; width: 100%; }
.board-grid.is-all { margin-top: 20px; }
.board-rows { list-style: none; margin: 0; padding: 6px 0; }
.board-rows li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 8px 16px; min-height: 44px; }
.board-rows li + li { border-top: 1px solid rgba(38, 49, 66, .6); }
.board-pos { font: 800 1rem var(--display); color: var(--dim); text-align: center; }
.board-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-value { font-family: var(--mono); font-size: .92rem; color: #d9e4f2; }
.is-top-1 .board-pos { color: var(--gold); } .is-top-2 .board-pos { color: #cfd8e4; } .is-top-3 .board-pos { color: #e09a5f; }
.is-top-1 { background: linear-gradient(90deg, rgba(242, 193, 78, .1), transparent 60%); }
.boards-updated { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.boards-updated .ico { color: var(--soul); margin-top: .2em; }
.boards-updated.is-stale .ico { color: var(--ember); }
.board-group { margin-top: 36px; }
.empty-state { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px dashed var(--line-strong); padding: 22px; }
.empty-state h3 { margin-bottom: .3em; }
.empty-state p { color: #cdd6e2; max-width: 64ch; }
.empty-icon { flex: none; width: 52px; height: 52px; display: grid; place-items: center; color: var(--gold); background: var(--surface-2); border: 1px solid var(--line); }
.empty-icon .ico { width: 26px; height: 26px; }
@media (max-width: 520px) { .empty-state { flex-direction: column; } }

/* ---------- store teaser */
.store-teaser { background: radial-gradient(ellipse at 80% 50%, rgba(255, 77, 85, .1), transparent 60%), var(--deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.store-teaser-inner { display: grid; gap: 30px; align-items: center; }
.store-teaser-copy p { color: #cdd6e2; max-width: 56ch; }
.emblem-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.emblem-row li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.emblem-row img { width: 100%; max-width: 104px; height: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .6)); }
.emblem-row span { max-width: 100%; overflow-wrap: anywhere; font: 800 clamp(.56rem, 2.4vw, .72rem) var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--c); }
@media (min-width: 960px) { .store-teaser-inner { grid-template-columns: 1fr 1fr; } .emblem-row li:nth-child(odd) { transform: translateY(14px); } }

/* ---------- CTA band */
.cta-band { background: linear-gradient(100deg, #0e2733 0%, #0b0f15 55%, #2a0e12 100%); border-top: 1px solid var(--line); }
.cta-band-inner { display: grid; gap: 18px; padding-top: 44px; padding-bottom: 44px; align-items: center; }
.cta-band h2 { margin-bottom: .2em; }
.cta-band p { color: #cdd6e2; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 860px) { .cta-band-inner { grid-template-columns: 1fr auto; } }

/* ---------- page hero (inner pages) */
.page-hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 85% 0%, rgba(63, 208, 255, .12), transparent 55%), radial-gradient(ellipse at 100% 100%, rgba(255, 77, 85, .1), transparent 50%), var(--deep); }
.page-hero-inner { padding-top: 40px; padding-bottom: 36px; }
.page-hero h1 { font-size: clamp(2.1rem, 7.5vw, 3.8rem); }
.page-hero .lede { margin-bottom: 0; }
.page-hero.has-art .page-hero-inner { padding-top: 64px; padding-bottom: 56px; }
.page-hero-art { position: absolute; inset: 0; z-index: -2; }
.page-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 40%; }
.page-hero.has-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 9, 13, .94) 0%, rgba(7, 9, 13, .75) 50%, rgba(7, 9, 13, .35) 100%), linear-gradient(180deg, transparent 50%, var(--abyss) 100%); }
@media (max-width: 700px) { .page-hero.has-art::before { background: linear-gradient(180deg, rgba(7, 9, 13, .6), rgba(7, 9, 13, .9) 70%, var(--abyss)); } }

/* ---------- notices */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line-strong); background: var(--surface); margin: 24px 0; }
.notice p { margin: 0; }
.notice .ico { margin-top: .2em; color: var(--soul); }
.notice-soon { border-color: rgba(63, 208, 255, .45); }
.notice-draft { border-color: rgba(255, 138, 42, .55); background: rgba(255, 138, 42, .08); }
.notice-draft .ico { color: var(--ember); }

/* ---------- store */
.store-layout { padding-bottom: 72px; }
.gamertag-panel { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); padding: 20px; margin: 24px 0; }
.gamertag-panel h2 { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; margin-bottom: .3em; }
.gamertag-panel h2 .ico { color: var(--soul); }
.gamertag-panel > * { min-width: 0; }
.gamertag-copy p { color: var(--muted); margin: 0; }
.gamertag-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.gamertag-input { display: flex; gap: 8px; }
.gamertag-input input, .cmd-search input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; font: 700 1.05rem var(--body); color: var(--text);
  background: var(--abyss); border: 2px solid var(--line-strong); border-radius: 0;
}
.gamertag-input input:focus, .cmd-search input:focus { border-color: var(--soul); outline: none; box-shadow: 0 0 0 3px var(--soul-glow); }
.gamertag-input input[aria-invalid="true"] { border-color: var(--infernal); }
.field-help { font-size: .88rem; color: var(--muted); margin: 6px 0 0; }
.field-help.is-error { color: #ffb3b7; }
.field-help.is-ok { color: #b8f5cb; }
@media (min-width: 860px) { .gamertag-panel { grid-template-columns: 1fr 1.1fr; align-items: center; } }
.chip-nav { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 0 8px; scrollbar-width: thin; }
.chip-nav a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 700; }
.chip-nav a:hover { border-color: var(--soul); color: #fff; }
.chip-nav img { width: 28px; height: 28px; }
.store-section { padding-top: 48px; }
.rank-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.rank-card > * { min-width: 0; }
@media (min-width: 560px) { .rank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 860px) { .rank-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1120px) { .rank-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.rank-card {
  --c: var(--soul); position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px 16px 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 14%, var(--surface)) 0%, var(--surface) 55%);
  border: 1px solid color-mix(in srgb, var(--c) 40%, var(--line));
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.rank-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); }
.rank-emblem { width: 132px; height: 132px; margin: 0 auto; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .55)); }
@media (max-width: 559px) { .rank-card { display: grid; grid-template-columns: 96px 1fr; align-items: center; } .rank-emblem { width: 96px; height: 96px; } .rank-card .btn { grid-column: 1 / -1; } }
.rank-tier { margin: 0; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.rank-name { margin: 0; font-size: 1.6rem; color: var(--c); text-transform: uppercase; font-stretch: 100%; }
.rank-price { margin: 2px 0 0; font: 800 1.35rem var(--display); }
.rank-price span { font: 400 .85rem var(--body); color: var(--muted); }
.rank-blurb { color: #cdd6e2; font-size: .95rem; margin: 4px 0 0; flex: 1; }
.rank-card .btn { margin-top: auto; width: 100%; font-size: .8rem; white-space: normal; padding-left: .7em; padding-right: .7em; }
.table-scroll { position: relative; margin-top: 28px; overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
.perk-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.perk-table caption { text-align: left; padding: 14px 16px; font: 800 1.15rem var(--display); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.perk-table th, .perk-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.perk-table thead th { font: 800 .85rem var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--c, var(--muted)); }
.perk-table tbody th { text-align: left; font-weight: 700; color: #dfe6ef; position: sticky; left: 0; background: var(--surface); min-width: 220px; }
.perk-table thead th:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); }
.perk-table .yes { color: var(--ok); display: inline-grid; }
.perk-table .no { color: var(--dim); }
.price-row td { font: 800 1rem var(--display); }
.fine-list, .check-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.fine-list li, .check-list li { display: flex; gap: 10px; align-items: flex-start; }
.fine-list .ico, .check-list .ico { color: var(--ok); margin-top: .25em; }
.fine-list { color: var(--muted); }
.sub-head { margin: 28px 0 12px; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-stretch: 105%; }
.cos-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .cos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .cos-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cos-card { --rc: #6fb7ff; display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--rc); }
.cos-card.rarity-epic { --rc: #c07bff; }
.cos-card.rarity-legendary { --rc: var(--gold); }
.cos-card.rarity-mythic { --rc: var(--infernal); }
.cos-top { display: flex; justify-content: space-between; align-items: center; }
.rarity { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--rc); }
.cos-price { font: 800 1.05rem var(--display); }
.cos-card h4 { font-size: 1.2rem; margin: 2px 0 0; }
.cos-card p { color: var(--muted); font-size: .94rem; flex: 1; margin: 0 0 8px; }
.cos-card .btn { width: 100%; }
.split-section { display: grid; gap: 18px; align-items: start; }
.split-icon { width: 120px; height: 120px; }
@media (min-width: 760px) { .split-section { grid-template-columns: 160px 1fr; } .split-icon { width: 160px; height: 160px; } }
.split-section p { color: #cdd6e2; max-width: 68ch; }
.pet-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .pet-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .pet-list { grid-template-columns: repeat(3, 1fr); } }
.pet-list li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); }
.pet-list .muted { width: 100%; font-size: .88rem; }
.pet-kinds { display: grid; gap: 12px; margin: 0 0 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .pet-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pet-kind { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--muted); }
.pet-kind-store { border-left-color: #6fb7ff; }
.pet-kind h3 { font-size: 1.05rem; margin: 0 0 4px; }
.pet-kind p { margin: 0; color: #cdd6e2; font-size: .95rem; }
.tag-store { display: inline-block; padding: 1px 7px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #0b1118; background: #6fb7ff; }
.pet-grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 8px; }
@media (min-width: 560px) { .pet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .pet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pet-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid #6fb7ff; }
.pet-card > * { min-width: 0; }
.pet-icon { width: 112px; height: 112px; margin: 0 auto 4px; image-rendering: pixelated; }
.pet-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pet-card h4 { font-size: 1.2rem; margin: 2px 0 0; }
.pet-mob { font-size: .85rem; font-weight: 400; color: var(--muted); margin-left: 6px; }
.pet-card p { color: var(--muted); font-size: .94rem; margin: 0; }
.pet-card .pet-fine { flex: 1; font-size: .84rem; margin-bottom: 8px; }
.pet-card .btn { width: 100%; }

/* dialog */
.buy-dialog { max-width: min(480px, calc(100vw - 32px)); width: 100%; padding: 0; border: 2px solid var(--line-strong); background: var(--deep); color: var(--text); }
.buy-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.buy-dialog form { padding: 22px; }
.buy-dialog h2 { font-size: 1.5rem; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* FAQ / details */
.faq-list { display: grid; gap: 10px; }
.faq-list details, .soon-list, .staff-cmds { background: var(--surface); border: 1px solid var(--line); }
.faq-list summary, .soon-list summary, .staff-cmds summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 52px; padding: 12px 16px; font-weight: 700; font-size: 1.05rem;
}
.faq-list summary::-webkit-details-marker, .soon-list summary::-webkit-details-marker, .staff-cmds summary::-webkit-details-marker { display: none; }
.faq-list summary::after, .soon-list summary::after, .staff-cmds summary::after { content: "+"; font: 800 1.4rem/1 var(--display); color: var(--soul); flex: none; }
details[open] > summary::after { content: "\2212"; }
.faq-list details p { padding: 0 16px 16px; margin: 0; color: #cdd6e2; }
.store-faq h2 { margin-bottom: .6em; }

/* ---------- features + commands */
.with-sidebar { display: grid; gap: 24px; }
.with-sidebar > *, .join-layout > *, .split-section > *, .store-teaser-inner > *, .hero-inner > * { min-width: 0; }
.side-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.side-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); color: var(--text); text-decoration: none; font-weight: 700; white-space: nowrap; background: var(--surface); }
.side-nav a:hover { border-color: var(--soul); }
@media (min-width: 960px) {
  .with-sidebar { grid-template-columns: 240px 1fr; gap: 48px; }
  .side-nav { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
  .side-nav ul { flex-direction: column; gap: 2px; overflow: visible; }
  .side-nav a { border: 0; border-left: 3px solid var(--line); background: none; white-space: normal; }
  .side-nav a:hover { border-left-color: var(--soul); color: var(--soul); }
}
.feature-cat { padding-top: 12px; margin-bottom: 40px; }
.feature-list { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .feature-list { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.feature-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.feature-item dt { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.feature-item dd { margin: 0; color: #c3cdda; }
.feature-item .how { display: block; margin-top: 4px; color: var(--soul); font-size: .9rem; }
.feature-item.is-soon dt::after { content: "Next update"; margin-left: 8px; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ember); }
.soon-list { margin-top: 16px; }
.soon-list .feature-list { padding: 0 16px 8px; border: 0; }

.cmd-search { max-width: 520px; margin-bottom: 18px; }
.cmd-search label { display: block; font-weight: 700; margin-bottom: 6px; }
.cmd-search input { width: 100%; }
.cmd-group { padding-top: 18px; }
.cmd-group h2 { font-size: 1.5rem; }
.cmd-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
@media (min-width: 860px) { .cmd-list { grid-template-columns: 1fr 1fr; } }
.cmd { background: var(--surface); border: 1px solid var(--line); padding: 14px 14px 12px 16px; }
.cmd-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.cmd-usage { background: none; border: 0; padding: 0; color: var(--soul); font-weight: 700; font-size: .98rem; flex: 1; min-width: 0; }
.cmd p { margin: 0; color: #c3cdda; font-size: .96rem; }
.copy-mini { flex: none; width: 44px; height: 44px; margin: -8px -8px -8px 0; display: grid; place-items: center; background: none; border: 0; color: var(--muted); cursor: pointer; }
.copy-mini:hover { color: var(--soul); }
.copy-mini.is-copied { color: var(--ok); }
.tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 3px 7px; border: 1px solid var(--line-strong); color: var(--muted); }
.tag-soon { color: var(--ember); border-color: rgba(255, 138, 42, .5); }
.cmd-list.is-compact { padding: 0 16px; }
.staff-cmds { margin-top: 32px; }
.cmd-empty { color: var(--muted); }

/* join, vote, rules, prose */
.join-layout { display: grid; gap: 40px; max-width: 860px; }
.info-block { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.join-layout .info-block { margin-top: 0; }
.info-block h2 { font-size: 1.6rem; }
.info-block p { color: #cdd6e2; }
.vote-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .vote-grid { grid-template-columns: 1fr 1fr; } }
.vote-card { background: var(--surface); border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.vote-card h2 { font-size: 1.4rem; margin: 0; }
.vote-card p { color: var(--muted); margin: 0 0 8px; }
.rules-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.rules-list li { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rule-n { flex: none; font: 800 2.2rem/1 var(--display); font-stretch: 75%; color: var(--infernal); width: 40px; }
.rules-list h2 { font-size: 1.3rem; margin: 0 0 .2em; }
.rules-list p { margin: 0; color: #cdd6e2; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose p, .prose li { color: #cdd6e2; }
.prose ul:not(.check-list) { padding-left: 1.2em; }
.prose ul:not(.check-list) li { margin-bottom: .4em; }
.center-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------- player guide */
.guide-sec { padding: 8px 0 40px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.guide-sec + .guide-sec { padding-top: 36px; }
.guide-sec h2 { font-size: clamp(1.6rem, 4.6vw, 2.3rem); }
.guide-lede { color: #cfd8e4; max-width: 68ch; font-size: 1.08rem; }
.guide-sec .steps { margin-top: 18px; }
.guide-stats { list-style: none; margin: 4px 0 22px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.guide-stats li { background: var(--surface); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.guide-stats strong { font: 800 clamp(1.5rem, 6vw, 2rem)/1 var(--display); font-stretch: 80%; color: var(--ember); overflow-wrap: anywhere; }
.guide-stats span { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
@media (min-width: 700px) { .guide-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.guide-sec:nth-of-type(3n+1) .guide-stats strong { color: var(--soul); }
.guide-sec:nth-of-type(3n+2) .guide-stats strong { color: var(--infernal); }
.guide-cmds { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; }
.guide-cmds .field-label { margin-right: 4px; }
.guide-cmds code { color: var(--soul); }
.guide .feature-item dd a { font-weight: 700; }
.guide .side-nav a { font-size: .95rem; }

/* ---------- server status */
.status-board {
  --sc: var(--dim); position: relative; display: grid; gap: 20px; padding: 22px 20px; margin-top: 8px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--sc) 14%, var(--surface)) 0%, var(--surface) 60%);
  border: 2px solid color-mix(in srgb, var(--sc) 45%, var(--line));
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.status-board.is-online { --sc: var(--ok); }
.status-board.is-offline { --sc: var(--infernal); }
.status-board.is-checking { --sc: var(--soul); }
.status-board-main { display: flex; gap: 18px; align-items: flex-start; }
.status-board-dot { flex: none; width: 22px; height: 22px; margin-top: 30px; background: var(--sc); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.status-board.is-online .status-board-dot { clip-path: none; border-radius: 50%; animation: pulse 2.4s ease-out infinite; }
.status-board-main .field-label { margin: 0; }
.status-board-state { margin: 2px 0 6px; font: 800 clamp(2.2rem, 10vw, 3.6rem)/1 var(--display); font-stretch: 85%; text-transform: uppercase; color: color-mix(in srgb, var(--sc) 70%, #fff); }
.status-board-note { margin: 0; color: #cdd6e2; max-width: 52ch; }
.status-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); }
.status-facts div { background: var(--deep); padding: 12px 14px; min-width: 0; }
.status-facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); font-weight: 700; }
.status-facts dd { margin: 4px 0 0; font: 800 1.2rem var(--display); font-stretch: 95%; overflow-wrap: anywhere; }
@media (min-width: 860px) { .status-board { grid-template-columns: 1fr minmax(0, 1.1fr); align-items: center; padding: 28px; } }
@media (prefers-reduced-motion: reduce) { .status-board.is-online .status-board-dot { animation: none; } }
.status-grid { display: grid; gap: 28px; margin-top: 32px; align-items: start; }
.status-grid > * { min-width: 0; }
.status-help h2 { font-size: 1.6rem; }
.status-help .check-list { margin-top: 8px; color: #cdd6e2; }
@media (min-width: 960px) { .status-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- beta applications */
.apply-grid { display: grid; gap: 28px; align-items: start; }
.apply-grid > * { min-width: 0; }
.apply-now h2, .apply-soon h2 { font-size: clamp(1.5rem, 4.4vw, 2rem); }
.apply-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }
.apply-soon { background: var(--surface); border: 1px dashed var(--line-strong); padding: 20px; }
.apply-soon p { color: #cdd6e2; }
.apply-flow { margin: 0 0 18px; padding-left: 1.3em; display: grid; gap: 6px; color: #cdd6e2; }
.apply-flow li::marker { color: var(--soul); font-weight: 700; }
.apply-soon .btn { width: 100%; white-space: normal; }
@media (min-width: 960px) { .apply-grid { grid-template-columns: 1.4fr 1fr; } .apply-soon { position: sticky; top: calc(var(--header-h) + 20px); } }
.reward-table { width: 100%; border-collapse: collapse; }
.reward-table th, .reward-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.reward-table thead th { font: 800 .85rem var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); }
.reward-table tbody th { font-weight: 700; color: #dfe6ef; }
.reward-table td { color: var(--gold); font-weight: 700; }
.apply .table-scroll { margin-top: 18px; }

/* ---------- footer */
.site-footer { background: var(--deep); border-top: 1px solid var(--line); padding-top: 44px; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand p { color: var(--muted); max-width: 36ch; margin: 14px 0; }
.footer-address { display: flex; gap: 24px; margin: 0; }
.footer-address dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); font-weight: 700; }
.footer-address dd { margin: 4px 0 0; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.footer-links h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); font-stretch: 110%; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; color: #d2dbe6; text-decoration: none; }
.footer-links a:hover { color: var(--soul); text-decoration: underline; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1fr 1.4fr; } .footer-links { grid-template-columns: repeat(3, 1fr); } }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 22px; padding-bottom: 28px; margin-top: 32px; border-top: 1px solid var(--line); color: var(--dim); font-size: .88rem; }
.footer-legal p { margin: 0; }

/* ---------- toast */
.toast {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 80; transform: translate(-50%, 140%);
  background: var(--ok); color: #04140a; font-weight: 700; padding: 12px 18px; max-width: calc(100vw - 32px);
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.2), visibility 0s .25s; pointer-events: none; visibility: hidden;
}
.toast.is-show { transform: translate(-50%, 0); visibility: visible; transition: transform .25s cubic-bezier(.2, .9, .3, 1.2); }
.toast.is-error { background: var(--infernal); color: #1a0204; }

@media print { .site-header, .embers, .cta-band, .toast { display: none; } body { background: #fff; color: #000; } }
