/* Vyrnfall public site: layout. Colours, type, buttons and panels come from vyrnfall-ui.css. */

:root { --top-h: 76px; }
html { scroll-padding-top: calc(var(--top-h) + 20px); }
body { position: relative; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }
section { scroll-margin-top: calc(var(--top-h) + 20px); }
.section { padding-block: var(--s-8); }
.section > .wrap > h2, .section__h { font-size: var(--h2); color: var(--ink); }
.section__lead { margin-top: 12px; max-width: 62ch; color: var(--muted); font-size: 18px; }
.section__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; font: 700 13px/1 var(--font-title); letter-spacing: 0.14em; text-transform: uppercase; color: var(--crimson-hi); }
.section__head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
main > .vf-rule { margin-block: -5px; position: relative; z-index: 1; }
.section__eyebrow::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: var(--crimson-hi); box-shadow: 0 0 10px var(--crimson); }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)) ; border-block: 1px solid var(--line); }
.start { background: var(--bg-2) var(--grain); border-block: 1px solid var(--line); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; padding: 10px 14px; background: var(--violet); color: var(--gold-ink); font-weight: 700; border-radius: var(--radius-sm); }
.skip:focus { top: 12px; color: var(--gold-ink); }

/* Every page but the homepage opens under a band of the fortress sky, fading into the stone. */
body:not(.home)::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 440px; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgb(11 8 15 / 0.35) 0%, rgb(11 8 15 / 0.72) 55%, var(--bg) 100%),
    url("assets/brand/fortress-band.webp") 50% 30% / cover no-repeat;
}

/* ---- header: nav balanced around the wordmark ---- */
.top {
  position: sticky; top: 0; z-index: 40; height: var(--top-h);
  background: rgb(11 8 15 / 0.94);
  border-bottom: 1px solid var(--line-hi);
  box-shadow: 0 1px 0 #000, 0 10px 24px rgb(0 0 0 / 0.5);
  transition: background-color var(--slow), border-color var(--slow), box-shadow var(--slow);
}
.top::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 1px; background: linear-gradient(90deg, transparent, var(--crimson) 30%, var(--amethyst) 70%, transparent); opacity: 0.8; }
.home .top:not([data-scrolled]) { background: linear-gradient(180deg, rgb(11 8 15 / 0.82), rgb(11 8 15 / 0)); border-bottom-color: transparent; box-shadow: none; }
.home .top:not([data-scrolled])::after { opacity: 0; }
.top__bar { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 18px; }
.top__side { display: flex; align-items: center; gap: 4px; min-width: 0; }
.top__side--left { justify-content: flex-end; }
.top__logo { position: relative; z-index: 1; display: block; align-self: start; margin-top: 6px; filter: drop-shadow(0 6px 14px rgb(0 0 0 / 0.7)); transition: transform var(--fast); }
.top__logo img { width: 264px; height: 88px; }
.top__logo:hover { transform: translateY(1px) scale(1.02); }
.top__link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px;
  font: 700 14px/1 var(--font-title); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  color: var(--ink); text-decoration: none; background: none; border: 0; border-radius: var(--radius-sm); cursor: pointer;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.8);
}
.top__link:hover, .top__link[aria-expanded="true"] { color: var(--violet-hi); background: rgb(131 61 206 / 0.16); }
.top__link[aria-current="page"], .top__link[data-current] { color: var(--violet-hi); box-shadow: inset 0 -2px 0 var(--violet); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.top__caret { width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.top__drop { position: relative; }
.top__menu { position: absolute; left: 0; top: calc(100% + 8px); min-width: 250px; margin: 0; padding: 8px; list-style: none; background: var(--surface); border: 1px solid var(--line-hi); border-top: 2px solid var(--amethyst); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.top__menu a { display: block; padding: 10px 12px; border-radius: 4px; color: var(--ink); font-weight: 600; text-decoration: none; }
.top__menu a span { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.top__menu a:hover, .top__menu a:focus-visible { background: var(--surface-2); color: var(--violet-hi); }
.top__play { margin-left: auto; }
.top__toggle { display: none; }
.top__crest { display: none; }

@media (max-width: 1180px) {
  :root { --top-h: 62px; }
  .top__bar { grid-template-columns: auto 1fr auto auto; gap: 10px; }
  .top__side { display: none; }
  .top__logo { align-self: center; margin: 0; order: 2; justify-self: start; }
  .top__logo img { width: 150px; height: 50px; }
  .top__crest { display: block; order: 1; }
  .top__crest img { width: 40px; height: 40px; }
  .top__play { order: 3; display: inline-flex; min-height: 44px; padding-inline: 16px; }
  .top__toggle { order: 4; display: inline-flex; gap: 8px; min-height: 44px; padding-inline: 14px; font-weight: 700; }
}
@media (min-width: 1181px) { .top__play--bar { display: none; } }
@media (max-width: 420px) {
  .top__crest { display: none; }
  .top__logo img { width: 126px; height: 42px; }
  .top__play { padding-inline: 12px; font-size: 15px; }
  .top__toggle .vf-icon { display: none; }
}

/* The phone and tablet menu: a drawer from the right, a real dialog so focus stays inside it. */
.drawer { width: min(100%, 380px); height: 100%; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; border-left: 1px solid var(--metal); background: var(--bg-2) var(--grain); color: var(--ink); overflow-y: auto; }
.drawer::backdrop { background: rgb(5 3 8 / 0.78); }
.drawer__head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--bg); border-bottom: 1px solid var(--line-hi); }
.drawer__head img { width: 132px; height: 44px; }
.drawer__body { padding: 16px 16px 32px; display: grid; gap: 22px; }
.drawer__actions { display: grid; gap: 10px; }
.drawer__group h2 { font: 700 12px/1 var(--font-title); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); padding: 0 8px 8px; border-bottom: 1px solid var(--line); }
.drawer__group ul { margin: 6px 0 0; padding: 0; list-style: none; }
.drawer__group a { display: flex; align-items: center; min-height: 48px; padding: 8px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; font-size: 18px; text-decoration: none; }
.drawer__group a:hover { background: var(--surface-2); color: var(--violet-hi); }
.drawer__group a[aria-current="page"] { color: var(--violet-hi); box-shadow: inset 3px 0 0 var(--violet); background: var(--surface); }

/* ---- homepage: the opening scene ---- */
.scene {
  position: relative; isolation: isolate; margin-top: calc(-1 * var(--top-h));
  min-height: min(100svh, 940px); display: grid; align-items: center;
  padding: calc(var(--top-h) + 20px) 0 36px; overflow: hidden; text-align: center;
  background: var(--bg);
}
.scene__art { position: absolute; inset: 0; z-index: -2; }
.scene__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
/* Light and shade over the artwork: a pool of dark behind the words, the edges left clear. */
.scene::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 55% at 50% 52%, rgb(11 8 15 / 0.78) 0%, rgb(11 8 15 / 0.45) 55%, transparent 100%),
  linear-gradient(180deg, rgb(11 8 15 / 0.5) 0%, transparent 22%, transparent 62%, var(--bg) 100%); }
/* Mist that drifts across the valley floor, and a few embers rising from the braziers. Both stop
   when the scene is off screen (site.js) and never move for a visitor who asked for less motion. */
.scene__mist { position: absolute; inset: auto -20% 0 -20%; height: 46%; z-index: -1; pointer-events: none; opacity: 0.55;
  background: radial-gradient(40% 60% at 22% 70%, rgb(201 35 69 / 0.22), transparent 70%), radial-gradient(45% 60% at 78% 66%, rgb(131 61 206 / 0.26), transparent 70%);
  animation: mist 22s ease-in-out infinite alternate; }
@keyframes mist { to { transform: translateX(6%); } }
.scene__embers { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(2px 2px at 6% 82%, #ff9a6a, transparent), radial-gradient(1.5px 1.5px at 11% 64%, #ffc27a, transparent),
    radial-gradient(2px 2px at 17% 90%, #ff7a5a, transparent), radial-gradient(1.5px 1.5px at 86% 78%, #d9a8ff, transparent),
    radial-gradient(2px 2px at 92% 60%, #c58bff, transparent), radial-gradient(1.5px 1.5px at 96% 88%, #e2bcff, transparent);
  animation: embers 9s linear infinite; }
@keyframes embers { from { transform: translateY(0); opacity: 0.75; } to { transform: translateY(-110px); opacity: 0; } }
.scene[data-paused] .scene__mist, .scene[data-paused] .scene__embers { animation-play-state: paused; }
/* The wordmark gives way first on a short screen, so the headline and both buttons stay in view. */
.scene__mark { width: min(84vw, 640px, 96svh - 300px); min-width: min(84vw, 300px); height: auto; margin-inline: auto; filter: drop-shadow(0 14px 30px rgb(0 0 0 / 0.75)); }
.scene h1 { margin-top: 2px; font-size: clamp(26px, 3.2vw, 42px); color: var(--ink); text-shadow: 0 2px 14px rgb(0 0 0 / 0.9); }
.scene__lead { margin: 14px auto 0; max-width: 54ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink); text-shadow: 0 1px 8px rgb(0 0 0 / 0.95); }
.scene__lead strong { color: #ffd0d8; font-weight: 600; }
.scene__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 28px; }
.scene__sub { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px; margin-top: 24px; font-size: 16px; color: var(--muted); text-shadow: 0 1px 6px #000; }
.scene__sub strong { color: var(--ink); font-weight: 600; }
.scene__sub a { font-weight: 600; }

/* live status: an iron strip under the actions. The dot's shape changes with the state, not only its colour. */
.status {
  width: min(100%, 720px); margin: 26px auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 26px; min-height: 48px; padding: 8px 22px;
  font-size: 16px; color: var(--muted);
  background: rgb(15 10 20 / 0.86); border: 1px solid var(--line-hi); border-radius: 999px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05), 0 10px 26px rgb(0 0 0 / 0.5);
}
.status__item { display: inline-flex; align-items: center; gap: 8px; }
.status__item strong { color: var(--ink); font-weight: 600; }
.status__note { color: var(--muted); font-size: 14px; }
.status__dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--muted); }
.status[data-state="online"] .status__dot { border: 0; background: var(--good); box-shadow: 0 0 10px var(--good); }
.status[data-state="offline"] .status__dot { border: 0; border-radius: 2px; background: var(--bad); }
@media (max-width: 760px) {
  .scene { min-height: 0; padding: calc(var(--top-h) + 28px) 0 32px; }
  .scene__art img { object-position: 50% 30%; }
  .scene::before { background: linear-gradient(180deg, rgb(11 8 15 / 0.2) 0%, rgb(11 8 15 / 0.42) 38%, rgb(11 8 15 / 0.8) 72%, var(--bg) 100%); }
  .scene__mark { width: min(84vw, 420px); }
  .scene__actions { gap: 20px; }
  .scene__actions .vf-btn { width: 100%; }
  .status { border-radius: var(--radius); }
  .scene__embers { display: none; }
}

/* ---- homepage: the gameplay showcase ---- */
.show { margin-top: 28px; }
.show__panels { margin-top: 16px; }
.show__panel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--metal); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line-hi), var(--shadow); }
.show__panel + .show__panel { margin-top: 24px; }
/* With scripts on, the three panels share one cell: the tallest sets the height, so changing tab never moves the page. */
.show[data-ready] .show__panels { display: grid; }
.show[data-ready] .show__panel { grid-area: 1 / 1; margin-top: 0; }
.show[data-ready] .show__panel[data-off] { visibility: hidden; }
.show__panel img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
#show-combat img { object-position: 50% 35%; }
.show__words { position: absolute; inset: auto 0 0 0; padding: 110px 32px 26px; background: linear-gradient(180deg, transparent, rgb(11 8 15 / 0.86) 42%, rgb(11 8 15 / 0.97)); }
.show__words h3 { font-size: clamp(24px, 2.8vw, 34px); color: #fff; }
.show__words p { margin-top: 10px; max-width: 62ch; color: var(--ink); }
.show__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.show__facts li { padding: 4px 12px; border: 1px solid var(--line-hi); border-radius: 999px; background: rgb(11 8 15 / 0.7); font: 600 14px/1.5 var(--font-text); color: var(--ink); }
.show__more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-weight: 600; }
.show__more::after { content: "→"; margin-left: 8px; }
@media (max-width: 900px) {
  .show__panel { grid-template-rows: auto 1fr; }
  .show__panel img { aspect-ratio: 16 / 9; }
  .show__words { position: static; padding: 18px 18px 14px; background: var(--surface); }
  .show .vf-tab { flex: 1 1 0; padding-inline: 6px; }
  .show .vf-tabs { flex-wrap: nowrap; }
}

/* ---- homepage: latest updates. Three cards with whole pictures; one column on a phone. ---- */
.cards { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card-news { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--edge); color: var(--muted); text-decoration: none; transition: border-color var(--fast), transform var(--fast); }
.card-news:hover { border-color: var(--amethyst); color: var(--muted); transform: translateY(-2px); }
.card-news__art { position: relative; display: block; aspect-ratio: 16 / 7; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--line-hi); }
.card-news__art img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--slow) var(--ease); }
.card-news:hover .card-news__art img { transform: scale(1.03); }
/* An update with no picture of its own (a post written by staff) gets the crest on amethyst: an emblem, not a screenshot. */
.card-news__art--crest { background: radial-gradient(70% 120% at 50% 0%, rgb(131 61 206 / 0.45), transparent 70%), url("assets/brand/shield-160.webp") 50% 50% / 72px no-repeat, linear-gradient(135deg, var(--crimson-deep), var(--amethyst-deep)); }
.card-news__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 18px; flex: 1; }
.card-news__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 600 14px/1.4 var(--font-text); color: var(--muted); }
.card-news__meta time { color: var(--crimson-hi); }
.card-news h3 { font-size: 20px; color: var(--ink); }
.card-news p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-news__more { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--violet); }
.card-news__more::after { content: " →"; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* ---- new players: three steps beside the square, the starter kit laid out below like an inventory ---- */
.start__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; margin-top: 32px; align-items: center; }
.start__view { margin: 0; }
.start__view > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 60% 50%; border-radius: var(--radius); border: 1px solid var(--metal); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--line-hi); }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 24px; counter-reset: step; }
.steps > li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 4px 16px; counter-increment: step; }
.steps > li::before, .buy__words::before {
  content: counter(step); grid-row: 1 / span 2; width: 46px; height: 46px; display: grid; place-items: center;
  font: 700 20px/1 var(--font-title); color: #fff; background: linear-gradient(180deg, #3a2060, var(--amethyst-deep));
  border: 1px solid var(--amethyst); border-radius: var(--radius-sm); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.15);
}
.steps h3 { font-size: var(--h3); color: var(--ink); align-self: center; }
.steps p { grid-column: 2; color: var(--muted); }
.steps p strong { color: var(--ink); font-weight: 600; }
.kit { margin-top: 36px; padding: 22px 24px; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 18px 32px; align-items: start; background: linear-gradient(180deg, rgb(131 61 206 / 0.1), transparent 120px), var(--surface); border: 1px solid var(--line-hi); border-top-color: var(--amethyst); border-radius: var(--radius); box-shadow: var(--edge); }
.kit__head h3 { font-size: 22px; color: var(--violet-hi); }
.kit__head p { margin-top: 6px; color: var(--muted); }
.kit__list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px; }
.kit__list li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 5px 10px 5px 5px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); font-weight: 600; font-size: 16px; }
/* Each picture is cut from the inventory of the game itself, on the inventory brown. */
.kit__list img { flex: none; width: 36px; height: 32px; image-rendering: pixelated; background: #3b3226; border: 1px solid #1c1711; border-radius: 3px; }
.kit__more { grid-column: 2; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) {
  .start__grid { grid-template-columns: 1fr; gap: 26px; }
  .start__view { order: -1; }
  .kit { grid-template-columns: 1fr; padding: 18px 16px; }
  .kit__more { grid-column: 1; }
  .kit__more .vf-btn { flex: 1 1 100%; }
}
@media (max-width: 420px) { .kit__list { grid-template-columns: 1fr 1fr; } .kit__list li { font-size: 15px; gap: 7px; padding-right: 6px; } }

/* ---- rankings beside membership ---- */
.duo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; margin-top: 30px; align-items: start; }
.duo .ledger { margin-top: 0; }
.offer { display: grid; gap: 14px; padding: 26px; background: radial-gradient(120% 70% at 100% 0%, rgb(201 35 69 / 0.2), transparent 60%), radial-gradient(120% 70% at 0% 100%, rgb(131 61 206 / 0.22), transparent 60%), var(--surface); }
.offer__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.offer__price strong { font: 700 clamp(30px, 3.4vw, 42px)/1 var(--font-title); color: #fff; }
.offer__price span { color: var(--muted); }
.offer h3 { font-size: 24px; color: var(--violet-hi); }
.offer__head { display: flex; align-items: center; gap: 10px; }
.offer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.offer li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; }
.offer li .vf-icon { width: 34px; height: 34px; padding: 7px; color: var(--violet-hi); background: linear-gradient(180deg, #3a2060, var(--amethyst-deep)); border: 1px solid var(--amethyst); border-radius: var(--radius-sm); }
.offer .vf-btn { justify-self: start; }
.offer__shop { display: grid; gap: 10px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line-hi); }
.offer__shop h3 { font-size: 19px; }
.offer__shop .vf-icon { width: 24px; height: 24px; color: var(--ember); flex: none; }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } }

/* ---- hiscores: the ledger ---- */
.ledger { margin-top: 30px; padding: 0; overflow: hidden; }
.ledger table { width: 100%; border-collapse: collapse; }
.ledger caption { text-align: left; padding: 16px 20px; font: 700 20px/1.2 var(--font-title); color: var(--ink); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgb(201 35 69 / 0.16), rgb(131 61 206 / 0.12) 60%, transparent); }
.ledger th, .ledger td { padding: 11px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.ledger th { font: 600 13px/1.2 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); }
.ledger tbody tr:last-child td { border-bottom: 0; }
.ledger tbody tr:nth-child(even):not(.ledger__empty) { background: rgb(255 255 255 / 0.018); }
.ledger td.rank { width: 76px; font: 700 17px/1 var(--font-text); color: var(--muted); }
.ledger td.name { font-weight: 600; }
.ledger tr[data-place="1"] td.rank { color: var(--ember); }
.ledger tr[data-place="2"] td.rank { color: #d9d4de; }
.ledger tr[data-place="3"] td.rank { color: #d89a6a; }
.ledger tr[data-place="1"] td.name { color: #fff; }
.ledger tr[data-place="1"] { box-shadow: inset 3px 0 0 var(--crimson-hi); }
.ledger .num { text-align: right; }
.ledger td.num { color: var(--ink); }
.ledger td.xp { color: var(--muted); }
.ledger__empty td { padding: 34px 20px; color: var(--muted); text-align: center; }
.ledger__empty .vf-btn { margin-top: 12px; }
.ledger__note { margin-top: 12px; font-size: 15px; color: var(--muted); }
.ledger__ai { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid var(--line-hi); border-radius: 3px; font: 700 11px/1.4 var(--font-text); letter-spacing: 0.08em; color: var(--muted); vertical-align: 1px; }
.ledger__badge { display: inline-block; width: 14px; height: 13px; object-fit: none; margin-right: 7px; vertical-align: -1px; image-rendering: pixelated; }
@media (max-width: 560px) {
  .ledger th, .ledger td { padding: 10px 12px; }
  .ledger td.rank { width: 46px; }
  .ledger .xp { display: none; }
}

/* ---- questions ---- */
.faq { margin: 34px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; }
.faq > div { padding-block: 20px; border-top: 1px solid var(--line); }
.faq dt { font: 700 19px/1.3 var(--font-title); color: var(--ink); }
.faq dd { margin: 8px 0 0; color: var(--muted); }
.faq dd strong { color: var(--ink); font-weight: 600; }
.faq dd a { font-weight: 600; }
.faq ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 2px; }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; } }

/* ---- the closing scene ---- */
.closing { position: relative; isolation: isolate; padding: 84px 0; text-align: center; overflow: hidden; border-top: 1px solid var(--line-hi); }
.closing::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("assets/brand/fortress-band.webp") 50% 62% / cover no-repeat; }
.closing::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 50% 50%, rgb(11 8 15 / 0.82), rgb(11 8 15 / 0.5) 70%, rgb(11 8 15 / 0.3)), linear-gradient(180deg, var(--bg), transparent 30%, transparent 70%, var(--bg)); }
.closing img { width: 96px; height: 96px; margin: 0 auto 14px; filter: drop-shadow(0 10px 24px rgb(0 0 0 / 0.8)); }
.closing h2 { font-size: var(--h2); color: #fff; text-shadow: 0 2px 14px #000; }
.closing p { margin: 12px auto 0; max-width: 48ch; font-size: 18px; color: var(--ink); text-shadow: 0 1px 8px #000; }
.closing .scene__actions { margin-top: 30px; }
@media (max-width: 560px) { .closing { padding: 72px 0; } .closing .vf-btn { width: 100%; } .section { padding-block: 52px; } }

/* ---- footer ---- */
.foot { background: var(--bg) var(--grain); border-top: 1px solid var(--line-hi); padding-block: 48px 28px; position: relative; }
.foot::before { content: ""; position: absolute; inset: -1px 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--crimson) 30%, var(--amethyst) 70%, transparent); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot__brand img { width: 220px; height: 73px; }
.foot__brand p { margin-top: 12px; max-width: 32ch; color: var(--muted); font-size: 15px; }
.foot__col h2 { font: 700 13px/1 var(--font-title); letter-spacing: 0.2em; text-transform: uppercase; color: var(--violet-hi); }
.foot__col ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.foot__col a { display: inline-block; padding-block: 6px; color: var(--ink); text-decoration: none; }
.foot__col a:hover { color: var(--violet-hi); text-decoration: underline; }
.foot__legal { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot__brand { grid-column: 1 / -1; } }

/* ---- a page that opens with words beside a picture (membership) ---- */
.hero { padding-block: 52px 60px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.hero h1 { font-size: var(--h1); color: #fff; text-shadow: 0 2px 16px rgb(0 0 0 / 0.8); }
.hero__lead { margin-top: 18px; font-size: 20px; line-height: 1.5; color: var(--ink); max-width: 44ch; }
.hero__lead strong { color: var(--violet-hi); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 18px; padding: 10px 18px; border: 1px solid var(--amethyst); border-radius: var(--radius-sm); background: rgb(46 22 80 / 0.7); }
.price strong { font: 700 28px/1 var(--font-title); color: #fff; }
.price span { color: var(--violet-hi); font-weight: 600; }
/* Crops of the game's own interface: shown at their pixel grid, never smoothed. */
.shot { margin: 0; }
.shot img { display: block; max-width: 100%; height: auto; image-rendering: pixelated; border: 1px solid var(--line-hi); border-radius: var(--radius-sm); }
.shot--panel { justify-self: center; padding: 18px; background: var(--bg) var(--grain); }
.shot--panel img { border: 0; border-radius: 0; width: min(100%, 376px); }
.shot--stack { display: grid; gap: 12px; }
.perks { margin: 34px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 16px; }
.perks > li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--edge); }
.perks .vf-icon { width: 48px; height: 48px; padding: 11px; color: var(--violet-hi); background: linear-gradient(180deg, #3a2060, var(--amethyst-deep)); border: 1px solid var(--amethyst); border-radius: var(--radius-sm); }
.perks h3 { font-size: 19px; color: var(--ink); }
.perks p { margin-top: 6px; color: var(--muted); }
.perks p strong { color: var(--ink); font-weight: 600; }
.buy { margin: 36px 0 0; padding: 0; list-style: none; display: grid; counter-reset: step; }
.buy > li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px; align-items: center; padding-block: 28px; border-top: 1px solid var(--line); counter-increment: step; }
.buy > li:last-child { border-bottom: 1px solid var(--line); }
.buy__words { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 4px 16px; }
.buy h3 { font-size: 22px; color: var(--ink); align-self: center; }
.buy p { grid-column: 2; color: var(--muted); max-width: 52ch; }
.buy p strong { color: var(--ink); font-weight: 600; }
.buy .shot img { margin-inline: auto; width: min(100%, 520px); }
.buy > li:first-child .shot img { width: min(100%, 376px); }
.buy .shot--stack img:last-child { width: min(100%, 448px); }
@media (max-width: 900px) {
  .hero { padding-top: 32px; }
  .hero__grid { grid-template-columns: 1fr; gap: 26px; }
  .hero__grid .shot--panel { width: min(100%, 420px); }
  .hero__actions .vf-btn { flex: 1 1 100%; }
  .buy > li { grid-template-columns: 1fr; gap: 18px; }
}

/* ---- pages that open with a title (hiscores, news, help) ---- */
.page-top { padding-top: 56px; }
.page-top h1, .doc__body h1 { font-size: var(--h1); color: #fff; text-shadow: 0 2px 16px rgb(0 0 0 / 0.8); }
.page-top .section__lead { color: var(--ink); text-shadow: 0 1px 8px rgb(0 0 0 / 0.8); }

/* ---- hiscores page: skill picker beside the ledger ---- */
.hs { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 24px; margin-top: 34px; align-items: start; }
.hs .ledger { margin-top: 0; }
.hs__side { display: grid; gap: 14px; }
.hs__skills { display: grid; gap: 2px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--edge); }
.hs__skill { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 5px 8px; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--muted); font-weight: 600; text-decoration: none; }
.hs__icon { flex: none; object-fit: contain; image-rendering: pixelated; }
.hs__skill .hs__icon { box-sizing: content-box; padding: 5px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.hs__skill:hover { color: var(--ink); background: var(--surface-2); }
.hs__skill[aria-current] { color: #fff; background: linear-gradient(90deg, rgb(131 61 206 / 0.4), rgb(131 61 206 / 0.08)); border-color: var(--amethyst); box-shadow: inset 3px 0 0 var(--violet); }
.hs__skill[aria-current] .hs__icon { border-color: var(--violet); }
.ledger caption .hs__icon { display: inline-block; vertical-align: middle; margin: -4px 12px 0 0; }
.hs__pick { display: none; }
.hs__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; margin-bottom: 14px; }
.hs__tools .vf-tab { min-height: 40px; padding: 7px 14px; font-size: 13px; }
.hs__updated { font-size: 15px; color: var(--muted); }
.hs__rules { margin-top: 14px; font-size: 15px; color: var(--muted); max-width: 80ch; }
@media (max-width: 900px) {
  .hs { grid-template-columns: 1fr; gap: 16px; }
  .hs__skills { display: none; }
  .hs__pick { display: grid; }
}

/* ---- news: dated entries ---- */
.posts { margin-top: 34px; display: grid; gap: 18px; }
.post { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--edge); overflow: hidden; scroll-margin-top: calc(var(--top-h) + 20px); }
.post > time { position: relative; display: flex; align-items: flex-end; padding: 18px 20px; font: 700 15px/1.4 var(--font-title); letter-spacing: 0.06em; color: #fff; text-shadow: 0 1px 6px #000; background: linear-gradient(180deg, rgb(11 8 15 / 0.2), rgb(11 8 15 / 0.85)), url("assets/brand/fortress-band.webp") var(--crop, 6%) 40% / auto 240% no-repeat var(--bg-2); border-right: 1px solid var(--line-hi); }
.post:nth-child(3n + 2) > time { --crop: 60%; }
.post:nth-child(3n) > time { --crop: 96%; }
/* An entry with a picture: the whole picture at the head of a wider date column, the date under it. */
.post[data-art] { grid-template-columns: 300px minmax(0, 1fr); }
.post[data-art] > time { align-items: flex-start; padding-top: 150px; text-shadow: none; color: var(--ink); background: var(--art) 50% 0 / 100% auto no-repeat var(--bg-2); }
.post[data-art="starter-path"] { --art: url("assets/news/starter-path.jpg"); }
.post[data-art="gold-star"] { --art: url("assets/news/gold-star.jpg"); }
.post[data-art="membership"] { --art: url("assets/news/membership.jpg"); }
.post[data-art="crest"] { --art: radial-gradient(70% 131px at 50% 0%, rgb(131 61 206 / 0.45), transparent 70%); }
.post[data-art="crest"] > time { background: url("assets/brand/shield-160.webp") 50% 30px / 72px no-repeat, linear-gradient(135deg, var(--crimson-deep), var(--amethyst-deep)) 0 0 / 100% 131px no-repeat, var(--bg-2); }
@media (max-width: 760px) {
  .post[data-art] { grid-template-columns: 1fr; }
  .post[data-art] > time { padding-top: calc(43.7% + 12px); }
  .post[data-art="crest"] > time { padding-top: 18px; background: var(--bg-2); }
}
.post > div { padding: 22px 26px 26px; min-width: 0; }
.post h2 { font-size: 25px; color: var(--ink); }
.post p, .post ul { margin-top: 12px; color: var(--muted); max-width: 70ch; }
.post ul { padding-left: 20px; display: grid; gap: 3px; }
.post strong { color: var(--ink); font-weight: 600; }
.post a { font-weight: 600; }
.post:target { border-color: var(--amethyst); box-shadow: var(--edge), var(--glow-violet); }
@media (max-width: 760px) { .post { grid-template-columns: 1fr; } .post > time { min-height: 64px; border-right: 0; border-bottom: 1px solid var(--line-hi); } .post > div { padding: 18px 18px 22px; } }

/* ---- help: the index ---- */
.help-cards { margin: 34px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.help-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--edge); color: var(--muted); text-decoration: none; transition: border-color var(--fast), transform var(--fast); }
.help-card:hover { border-color: var(--amethyst); color: var(--muted); transform: translateY(-2px); }
.help-card .vf-icon { width: 48px; height: 48px; padding: 11px; color: var(--violet-hi); background: linear-gradient(180deg, #3a2060, var(--amethyst-deep)); border: 1px solid var(--amethyst); border-radius: var(--radius-sm); }
.help-card strong { display: block; font: 700 20px/1.25 var(--font-title); color: var(--ink); }
.help-card span span { display: block; margin-top: 6px; }
.help-quick { margin-top: 28px; }
.help-quick h2 { font-size: 22px; color: var(--violet-hi); }
.help-quick ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 4px 28px; }
.help-quick a { display: inline-block; padding-block: 6px; font-weight: 600; }

/* ---- help: a guide. The guides on the left, the guide itself on the right ---- */
.doc { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 48px; padding-block: 44px 72px; align-items: start; }
.doc__side { position: sticky; top: calc(var(--top-h) + 20px); padding: 14px; background: rgb(21 16 28 / 0.9); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--edge); }
.doc__side-h { font: 700 13px/1 var(--font-title); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding: 4px 8px 0; }
.doc__side ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.doc__side a { display: block; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--muted); text-decoration: none; font-weight: 600; }
.doc__side a:hover { color: var(--ink); background: var(--surface-2); }
.doc__side a[aria-current] { color: #fff; background: linear-gradient(90deg, rgb(131 61 206 / 0.4), rgb(131 61 206 / 0.08)); box-shadow: inset 3px 0 0 var(--violet); }
.doc__body { max-width: var(--page-narrow); min-width: 0; }
.doc__crumb { font-size: 15px; color: var(--muted); }
.doc__crumb a { font-weight: 600; }
.doc__body h1 { margin-top: 8px; font-size: clamp(32px, 4.2vw, 50px); }
.doc__lead { margin-top: 12px; font-size: 19px; color: var(--ink); max-width: 60ch; }
.doc__toc { margin-top: 26px; padding: 18px 20px; border: 1px solid var(--line-hi); border-top: 2px solid var(--amethyst); border-radius: var(--radius); background: var(--surface); }
.doc__toc summary { cursor: pointer; font: 700 13px/1.4 var(--font-title); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.doc__toc ol { margin: 12px 0 0; padding-left: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 4px 28px; }
.doc__toc a { font-weight: 600; }
.doc__body section { margin-top: 48px; scroll-margin-top: calc(var(--top-h) + 24px); }
.doc__body h2 { font-size: 28px; color: var(--ink); padding-bottom: 10px; border-bottom: 1px solid var(--line-hi); }
.doc__body h3 { margin-top: 26px; font-size: 20px; color: var(--violet-hi); }
.doc__body p, .doc__body section > ul, .doc__body section > ol { margin-top: 14px; }
.doc__body p, .doc__body li { color: var(--muted); max-width: 72ch; }
.doc__body strong { color: var(--ink); font-weight: 600; }
.doc__body section > ul { padding-left: 22px; display: grid; gap: 7px; }
.doc__steps { padding-left: 0; list-style: none; counter-reset: docstep; display: grid; gap: 10px; }
.doc__steps > li { position: relative; padding-left: 44px; min-height: 30px; counter-increment: docstep; }
.doc__steps > li::before { content: counter(docstep); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; display: grid; place-items: center; font: 700 15px/1 var(--font-text); color: #fff; background: linear-gradient(180deg, #3a2060, var(--amethyst-deep)); border: 1px solid var(--amethyst); border-radius: var(--radius-sm); }
.doc__body kbd { overflow-wrap: anywhere; white-space: normal; }
.doc__fig { margin: 20px 0 0; }
.doc__fig img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line-hi); border-radius: var(--radius-sm); }
.doc__fig img[src$=".png"] { image-rendering: pixelated; }
.doc__fig--small img { max-width: min(100%, 400px); }
.doc__fig--tall img { max-width: min(100%, 420px); }
.doc__fig figcaption { margin-top: 8px; font-size: 15px; color: var(--muted); }
/* A screenshot that opens larger: the whole picture is the button. */
.zoom { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; border-radius: var(--radius-sm); max-width: 100%; }
.zoom::after { content: "Enlarge"; position: absolute; right: 8px; bottom: 8px; padding: 3px 10px; border-radius: 999px; background: rgb(11 8 15 / 0.85); border: 1px solid var(--line-hi); font: 600 13px/1.5 var(--font-text); color: var(--ink); opacity: 0; transition: opacity var(--fast); }
.zoom:hover::after, .zoom:focus-visible::after { opacity: 1; }
.zoom:hover img { border-color: var(--amethyst); }
.doc__grid { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 14px; }
.doc__grid .doc__fig { margin: 0; }
.doc__note { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line-hi); border-radius: var(--radius-sm); background: var(--bg-2); color: var(--muted); max-width: 72ch; }
.doc__note strong { color: var(--violet-hi); }
.doc__note--warn { border-left-color: var(--warn); }
.doc__note--warn strong { color: var(--warn); }
.doc__table { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line-hi); border-radius: var(--radius-sm); background: var(--surface); }
.doc__table table { width: 100%; border-collapse: collapse; min-width: 460px; }
.doc__table th, .doc__table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--muted); }
.doc__table thead th { font: 600 13px/1.2 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; background: var(--bg-2); white-space: nowrap; }
.doc__table tbody th { color: var(--ink); font-weight: 600; width: 30%; }
.doc__table tbody tr:last-child th, .doc__table tbody tr:last-child td { border-bottom: 0; }
.doc__table--num tbody th { width: auto; }
.doc__table--half { max-width: 420px; }
.doc__table--half table { min-width: 0; }
.doc__next { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 600; }
.doc__menu { display: none; }
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 0; padding-block: 20px 52px; }
  /* On a phone the list of guides folds into one line above the article. */
  .doc__side { position: static; order: -1; margin-bottom: 20px; padding: 0; }
  .doc__menu { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 10px 14px; background: none; border: 0; color: var(--ink); font: 700 14px/1 var(--font-title); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; }
  .doc__menu::after { content: ""; width: 9px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
  .doc__menu[aria-expanded="true"]::after { transform: rotate(-135deg); }
  .doc__side .doc__side-h { display: none; }
  .doc__side ul { margin: 0; padding: 0 8px 10px; }
  .doc__side[data-collapsed] ul { display: none; }
  .doc__side a { padding-block: 11px; }
  .doc__body section { margin-top: 38px; }
  .doc__body h2 { font-size: 24px; }
}
@media (max-width: 560px) {
  /* On a phone a table becomes a list of blocks: the first cell is the heading of each. */
  .doc__table:not(.doc__table--num) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .doc__table:not(.doc__table--num) table, .doc__table:not(.doc__table--num) tbody, .doc__table:not(.doc__table--num) tr, .doc__table:not(.doc__table--num) th, .doc__table:not(.doc__table--num) td { display: block; width: auto; min-width: 0; }
  .doc__table:not(.doc__table--num) tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .doc__table:not(.doc__table--num) tr:last-child { border-bottom: 0; }
  .doc__table:not(.doc__table--num) tbody th, .doc__table:not(.doc__table--num) td { padding: 0; border: 0; }
  .doc__table:not(.doc__table--num) td { margin-top: 5px; }
  .doc__table:not(.doc__table--num) td:empty { display: none; }
  .doc__table--num table { min-width: 0; }
  .doc__table--num th, .doc__table--num td { padding: 9px 10px; }
}

/* ---- downloads ---- */
.doc--single { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.doc--single .doc__body { width: 100%; max-width: 940px; }
.dl { margin-top: 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.dl__card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; border: 1px solid var(--line-hi); border-radius: var(--radius); background: var(--surface); box-shadow: var(--edge); }
.dl__card:first-child { border-color: var(--crimson); background: radial-gradient(120% 60% at 50% 0%, rgb(201 35 69 / 0.2), transparent 70%), var(--surface); }
.dl__card .dl__h { font-size: 24px; padding: 0; border: 0; color: #fff; }
.dl__card p { margin: 0; }
.dl__card .vf-btn { margin-top: auto; white-space: normal; text-align: center; }
.dl__more { font-size: 15px; }

/* ---- a page that could not be found, or a part that could not load ---- */
.lost { text-align: center; padding-block: 80px 110px; }
.lost img { width: 150px; height: 150px; margin: 0 auto 18px; filter: drop-shadow(0 10px 24px rgb(0 0 0 / 0.8)); }
.lost h1 { font-size: var(--h1); color: #fff; }
.lost p { margin: 14px auto 0; max-width: 50ch; color: var(--ink); font-size: 18px; }
.lost .scene__actions { margin-top: 30px; }

@media (prefers-reduced-motion: reduce) {
  .scene__mist { animation: none; }
  .scene__embers { display: none; }
  .top, .top__logo, .card-news, .card-news__art img, .help-card, .zoom::after { transition: none; }
  .card-news:hover .card-news__art img { transform: none; }
  .card-news:hover, .help-card:hover, .top__logo:hover { transform: none; }
}

/* The Game menu is a details element: no marker, and the list floats under the header. */
.top__drop > summary { list-style: none; }
.top__drop > summary::-webkit-details-marker { display: none; }
.top__drop[open] > summary { color: var(--violet-hi); background: rgb(131 61 206 / 0.16); }
/* On the homepage the scene carries the wordmark; the header's copy appears once the page scrolls. */
.home .top:not([data-scrolled]) .top__logo { opacity: 0; pointer-events: none; }
.top__logo { transition: opacity var(--slow), transform var(--fast); }
@media (min-width: 1181px) { .top__logo { align-self: center; margin-top: 0; } .top__logo img { width: 210px; height: 70px; } }
@media (max-width: 480px) { .show .vf-tab { font-size: 13px; letter-spacing: 0.03em; } }

/* ---- community: activity feed, seasons, profiles ---- */
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.subnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--muted); font-weight: 600; text-decoration: none; }
.subnav a:hover { color: var(--ink); background: var(--surface-2); }
.subnav a[aria-current] { color: #fff; border-color: var(--amethyst); background: linear-gradient(90deg, rgb(131 61 206 / 0.4), rgb(131 61 206 / 0.08)); }
.duo--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 34px; }
.duo--profile { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.community__h { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 16px; }
.community__h3 { margin: 26px 0 12px; font: 700 19px/1.3 var(--font-title); color: var(--ink); }
.community__block { margin-top: 56px; }
.community__block .feed { margin-top: 22px; }
.community__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); }
.community__list a { font-weight: 600; }
.feed { margin: 0; padding: 0; list-style: none; overflow: hidden; }
.feed__row { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; align-items: baseline; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.feed__row:last-child { border-bottom: 0; }
.feed__row:nth-child(even) { background: rgb(255 255 255 / 0.018); }
.feed__kind { font: 700 12px/1.4 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.feed__row[data-kind="first"] .feed__kind, .feed__row[data-kind="drop"] .feed__kind { color: var(--ember); }
.feed__row[data-kind="boss"] .feed__kind, .feed__row[data-kind="death"] .feed__kind { color: var(--crimson-hi); }
.feed__row[data-kind="level"] .feed__kind, .feed__row[data-kind="prestige"] .feed__kind { color: var(--violet); }
.feed__text { margin: 0; overflow-wrap: anywhere; }
.feed__text a { font-weight: 600; }
.feed__when { font-size: 15px; color: var(--muted); white-space: nowrap; }
.feed__empty { padding: 30px 20px; color: var(--muted); text-align: center; }
.feed--short .feed__row { padding: 10px 16px; grid-template-columns: 64px minmax(0, 1fr) auto; }
.feed--forum .feed__row, .feed--short.feed--forum .feed__row { grid-template-columns: minmax(0, 1fr) auto; }
.feed__by { display: block; margin-top: 2px; font-size: 15px; color: var(--muted); }
.ledger td.name a { color: inherit; text-decoration-color: var(--line-hi); text-underline-offset: 3px; }
.ledger td.name a:hover { color: #fff; text-decoration-color: var(--violet); }
.profile__back { margin-bottom: 10px; font-size: 15px; }
.profile__back a::before { content: "\2190\00a0"; }
.profile__badge { width: 14px; height: 13px; margin-right: 12px; vertical-align: 0.35em; transform: scale(1.6); transform-origin: left center; }
.profile__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 30px 0 0; }
.profile__fact { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--edge); }
.profile__fact dt { font: 600 13px/1.2 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.profile__fact dd { margin: 6px 0 0; font: 700 22px/1.1 var(--font-text); color: var(--ink); }
.profile__skill { display: inline-block; margin-right: 10px; vertical-align: -2px; }
.profile__side { display: grid; gap: 8px; align-content: start; }
@media (max-width: 900px) { .duo--even, .duo--profile { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .feed__row, .feed--short .feed__row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px; }
  .feed__kind { grid-column: 1 / -1; }
}
.show--stack .show__words h2 { font-size: clamp(24px, 2.8vw, 34px); color: #fff; }
.why__ask { margin-top: 56px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(120% 70% at 100% 0%, rgb(201 35 69 / 0.2), transparent 60%), radial-gradient(120% 70% at 0% 100%, rgb(131 61 206 / 0.22), transparent 60%), var(--surface); }
.why__ask h2 { font-size: clamp(24px, 2.8vw, 34px); }
.why__ask p { margin-top: 12px; max-width: 68ch; }
.why__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---- the season page ---- */
.season__clock { margin-top: 26px; padding: 20px 24px; background: radial-gradient(120% 90% at 100% 0%, rgb(201 35 69 / 0.2), transparent 60%), radial-gradient(120% 90% at 0% 100%, rgb(131 61 206 / 0.22), transparent 60%), var(--surface); }
.season__state { font: 700 clamp(22px, 2.6vw, 30px)/1.2 var(--font-text); color: #fff; }
.season__dates { margin-top: 4px; font-size: 15px; color: var(--muted); }
.season__track { height: 8px; margin-top: 16px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.season__track span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--crimson), var(--amethyst)); }
.season__gap, .duo .season__gap { margin-top: 34px; }
.season__card { padding: 20px 24px; }
.season__card h3 { font-size: 22px; color: var(--violet-hi); }
.season__card p { margin-top: 8px; }
.season__skills { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.season__skill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line-hi); border-radius: var(--radius-sm); background: var(--bg); font-weight: 600; }
.season__events, .season__tasks { margin: 0; padding: 0; list-style: none; overflow: hidden; }
.season__event { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: baseline; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.season__event:last-child, .season__task:last-child { border-bottom: 0; }
.season__event-date { font-size: 15px; color: var(--muted); }
.season__event-words { display: grid; gap: 2px; }
.season__event-words strong { color: var(--ink); }
.season__event-words span { color: var(--muted); }
.season__event-when { font: 600 15px/1.4 var(--font-text); color: var(--muted); white-space: nowrap; }
.season__event[data-state="running"] { background: rgb(131 61 206 / 0.18); }
.season__event[data-state="running"] .season__event-when { color: var(--ember); }
.season__event[data-state="over"] .season__event-words strong, .season__event[data-state="over"] .season__event-words span { color: var(--muted); }
.season__task { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 18px; padding: 13px 20px; border-bottom: 1px solid var(--line); font-weight: 600; }
.season__reward { font-weight: 400; color: var(--muted); }
.season__next { margin-top: 56px; padding: 26px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.season__next h2 { font-size: clamp(22px, 2.6vw, 30px); }
.season__next p:last-child { margin-top: 10px; color: var(--muted); max-width: 70ch; }
@media (max-width: 560px) {
  .season__event { grid-template-columns: minmax(0, 1fr) auto; padding: 12px; }
  .season__event-date { grid-column: 1 / -1; }
  .season__task { padding: 12px; }
}

/* ---- seasons: emblem, callout, prizes, and the home page panel ---- */
.season__head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 28px; }
.season__emblem-slot { width: 132px; }
.season__emblem-slot--small { width: 84px; }
.season__emblem { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 22px rgb(0 0 0 / 0.55)); }
.season__clock { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px 32px; align-items: center; }
.season__track { grid-column: 1 / -1; margin-top: 0; }
.season__callout { padding: 14px 18px; border: 1px solid var(--line-hi); border-radius: var(--radius-sm); background: rgb(11 8 15 / 0.55); }
.season__callout-label { font: 700 13px/1.2 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ember); }
.season__callout p + p { margin-top: 6px; }
.season__total { margin: -4px 0 14px; color: var(--muted); }
.season__total strong { font: 700 clamp(20px, 2.2vw, 26px)/1.2 var(--font-text); color: #fff; }
.season__prizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.season__prize { display: grid; gap: 4px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--edge); }
.season__prize strong { font: 700 clamp(20px, 2.2vw, 26px)/1.2 var(--font-text); color: #fff; }
.season__prize > span:last-child { color: var(--muted); }
.season__place { font: 700 15px/1.2 var(--font-title); letter-spacing: 0.06em; color: var(--muted); }
.season__prize[data-place="1"] { border-color: var(--ember); background: radial-gradient(120% 90% at 50% 0%, rgb(242 193 94 / 0.16), transparent 65%), var(--surface); }
.season__prize[data-place="1"] .season__place { color: var(--ember); }
.season__prize[data-place="2"] .season__place { color: #d9d4de; }
.season__prize[data-place="3"] .season__place { color: #d89a6a; }
.season__next { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px; }
/* What is happening now, under the hero: the season and, while one runs, the holiday event. Two
   compact panels side by side, so a visitor still reaches the game's features quickly. */
.now { padding: 26px 0 30px; border-block: 1px solid var(--line); background: var(--bg-2); }
.now[hidden], .season-live[hidden], .holiday[hidden] { display: none; }
.now__h { margin-bottom: 14px; font: 700 14px/1.2 var(--font-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.now__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.now__grid:has(> [data-now-item][hidden]) { grid-template-columns: minmax(0, 1fr); }
.season-live { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px; padding: 22px 24px; border: 1px solid var(--line-hi); border-radius: var(--radius); box-shadow: var(--edge); background: radial-gradient(90% 160% at 0% 50%, rgb(201 35 69 / 0.22), transparent 60%), radial-gradient(90% 160% at 100% 50%, rgb(131 61 206 / 0.2), transparent 60%), var(--surface); }
.season-live__emblem { width: 96px; }
.season-live__words h3 { font-size: clamp(22px, 2.4vw, 30px); color: #fff; }
.season-live__state { margin-top: 6px; color: var(--ink); }
.season-live__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 14px 0 16px; }
/* The holiday event keeps the site's dark ground and takes a frost edge and silver type of its own,
   so it reads as a different thing from the crimson season beside it. */
.holiday { --frost: #cfe6f5; --frost-lo: #7fa9c4; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid #5b7f99; border-radius: var(--radius); box-shadow: inset 0 1px 0 rgb(207 230 245 / 0.18), var(--edge); background: linear-gradient(180deg, rgb(127 169 196 / 0.16), transparent 55%), var(--surface); }
.holiday__art { display: block; aspect-ratio: 16 / 7; overflow: hidden; border-bottom: 1px solid #5b7f99; background: var(--bg); }
.holiday__art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.holiday__words { display: grid; gap: 8px; align-content: start; padding: 16px 20px 20px; }
.holiday__eyebrow { font: 700 13px/1.2 var(--font-text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--frost); }
.holiday__words h3 { font-size: clamp(20px, 2vw, 24px); color: #fff; }
.holiday__state { font-weight: 600; color: var(--frost); }
.holiday__words > p:not([class]) { color: var(--muted); }
.holiday .vf-btn { justify-self: start; margin-top: 4px; border-color: var(--frost-lo); }
.holiday .vf-btn:hover { border-color: var(--frost); color: #fff; }
.season-live__facts dt { font: 700 13px/1.2 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ember); }
.season-live__facts dd { margin: 4px 0 0; color: var(--muted); }
@media (max-width: 900px) {
  .season__clock { grid-template-columns: 1fr; }
  .now__grid { grid-template-columns: minmax(0, 1fr); }
  .holiday { grid-template-rows: none; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); }
  .holiday__art { aspect-ratio: auto; border-bottom: 0; border-right: 1px solid #5b7f99; }
}
@media (max-width: 560px) {
  .season__head { grid-template-columns: 1fr; gap: 14px; }
  .season__emblem-slot { width: 96px; }
  .season__prizes { grid-template-columns: 1fr; }
  .season-live { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .season-live__emblem { width: 72px; }
  .season-live__facts { grid-template-columns: 1fr; }
  .holiday { grid-template-columns: 1fr; }
  .holiday__art { aspect-ratio: 16 / 7; border-right: 0; border-bottom: 1px solid #5b7f99; }
  .season__next { grid-template-columns: 1fr; }
}

/* ---- news: the landing page, its rows, and an article's own page ---- */
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font: 600 14px/1.4 var(--font-text); color: var(--muted); }
.news-meta time { color: var(--muted); }
.news-label { display: inline-block; padding: 3px 10px; border: 1px solid var(--line-hi); border-radius: 999px; font: 700 12px/1.5 var(--font-text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet-hi); background: rgb(131 61 206 / 0.16); }
.news-label[data-weight="major"] { border-color: var(--crimson); color: #ffd9de; background: rgb(201 35 69 / 0.2); }
.news-label[data-weight="minor"] { color: var(--muted); background: transparent; }
.news-season { font-weight: 600; color: var(--muted); }
.news-season[data-state="live"] { color: var(--ember); }
.news-lead { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin-top: 30px; padding: 0; overflow: hidden; }
.news-lead__art { display: block; min-height: 100%; background: var(--bg-2); }
.news-lead__art img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-lead__words { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 32px 34px; }
.news-lead__words h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; }
.news-lead__words h2 a { color: #fff; text-decoration: none; }
.news-lead__words h2 a:hover { text-decoration: underline; text-decoration-color: var(--crimson-hi); text-underline-offset: 5px; }
.news-lead__words > p:not(.news-meta):not(.news-season) { color: var(--ink); max-width: 46ch; }
.news-lead__words .vf-btn { margin-top: 4px; }
.news-recent { margin-top: 56px; }
.news-recent > h2, .article__related > h2 { font-size: clamp(22px, 2.4vw, 28px); }
.news-rows { display: grid; gap: 14px; margin: 20px 0 0; padding: 0; list-style: none; }
.news-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--edge); overflow: hidden; }
.news-row[data-weight="minor"] { grid-template-columns: minmax(0, 1fr); background: transparent; box-shadow: none; }
.news-row__art { display: block; background: var(--bg-2); }
.news-row__art img { display: block; width: 100%; height: 100%; min-height: 124px; object-fit: cover; }
.news-row__words { display: grid; gap: 8px; align-content: center; padding: 18px 22px; }
.news-row[data-weight="minor"] .news-row__words { padding: 14px 22px; }
.news-row h3 { font-size: 21px; line-height: 1.25; }
.news-row[data-weight="minor"] h3 { font: 700 18px/1.3 var(--font-text); }
.news-row h3 a { color: var(--ink); text-decoration: none; }
.news-row h3 a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--violet); text-underline-offset: 4px; }
.news-row__words > p:last-child { color: var(--muted); max-width: 70ch; }
.news-art--crest { display: block; width: 100%; height: 100%; min-height: 124px; background: radial-gradient(70% 120% at 50% 0%, rgb(131 61 206 / 0.45), transparent 70%), url("assets/brand/shield-160.webp") 50% 50% / 84px no-repeat, linear-gradient(135deg, var(--crimson-deep), var(--amethyst-deep)); }
.news-lead__art .news-art--crest { min-height: 300px; background-size: auto, 150px, auto; }

.article__wrap { max-width: 860px; }
.article__back { font-size: 15px; }
.article__back a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.article__back a::before { content: "\2190\00a0"; }
.article__head { display: grid; gap: 14px; margin-top: 6px; }
.article__head h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.12; }
.article__intro { max-width: 62ch; font-size: 20px; line-height: 1.55; color: var(--ink); }
.article__hero { margin: 30px 0 0; border: 1px solid var(--line-hi); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.article__hero img { display: block; width: 100%; height: auto; }
.article__body { max-width: 68ch; margin-top: 34px; font-size: 18px; line-height: 1.7; color: var(--ink); }
.article__body > * + * { margin-top: 18px; }
.article__body h2 { margin-top: 44px; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; color: #fff; scroll-margin-top: calc(var(--top-h) + 20px); }
.article__body h2:first-child { margin-top: 0; }
.article__body ul { display: grid; gap: 10px; padding-left: 22px; }
.article__body li::marker { color: var(--crimson-hi); }
.article__body strong { color: #fff; }
.article__body code, .news-row code { padding: 2px 7px; border: 1px solid var(--line-hi); border-radius: var(--radius-sm); background: var(--bg); font: 600 0.9em/1.4 var(--font-mono); color: var(--violet-hi); white-space: nowrap; }
.article__note { padding: 18px 22px; border: 1px solid var(--amethyst); border-radius: var(--radius); background: rgb(131 61 206 / 0.14); }
.article__note strong { display: block; margin-bottom: 4px; font-size: 19px; }
.article__body h3 { font-size: 18px; color: var(--violet-hi); letter-spacing: 0.02em; }
/* A short table of facts at the top of an article. */
.article__glance { margin: 0; border: 1px solid var(--line-hi); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.article__glance > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 12px 18px; }
.article__glance > div + div { border-top: 1px solid var(--line); }
.article__glance dt { font: 700 14px/1.5 var(--font-text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ember); padding-top: 4px; }
.article__glance dd { margin: 0; font-size: 17px; line-height: 1.55; }
.article__steps { display: grid; gap: 12px; padding-left: 26px; }
.article__steps li::marker { color: var(--crimson-hi); font-weight: 700; }
.article__fig { margin-left: 0; margin-right: 0; border: 1px solid var(--line-hi); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.article__fig img { display: block; width: 100%; height: auto; }
.article__fig figcaption { padding: 10px 16px; font-size: 15px; line-height: 1.5; color: var(--muted); border-top: 1px solid var(--line); }
/* Things to buy: a real picture, a name and a price each, in rows that scan quickly. */
.rewards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rewards__group { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.rewards__group h3 { padding: 10px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.rewards__group ul { display: block; margin: 0; padding: 0; list-style: none; }
.reward { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 14px; font-size: 16px; line-height: 1.35; }
.reward + .reward { border-top: 1px solid var(--line); }
.reward img { width: 40px; height: 36px; image-rendering: pixelated; border-radius: 3px; }
.reward__name small { display: block; font-size: 14px; color: var(--muted); }
.reward__cost { white-space: nowrap; font-size: 15px; color: var(--muted); text-align: right; }
.reward__cost strong { color: var(--ember); font-size: 17px; }
.article__discuss { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; max-width: 68ch; margin-top: 34px; padding: 16px 20px; border: 1px solid var(--line-hi); border-radius: var(--radius); background: var(--surface); }
.article__discuss[hidden] { display: none; }
.article__discuss span { color: var(--muted); font-size: 16px; }
@media (max-width: 700px) {
  .rewards { grid-template-columns: minmax(0, 1fr); }
  .article__glance > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .article__glance dt { padding-top: 0; }
}
.article__related { margin-top: 64px; padding-top: 34px; border-top: 1px solid var(--line); }
#main, [id] { scroll-margin-top: calc(var(--top-h) + 16px); }
@media (max-width: 900px) {
  .news-lead { grid-template-columns: 1fr; }
  .news-lead__words { padding: 24px 22px 28px; }
}
@media (max-width: 560px) {
  .news-row { grid-template-columns: 1fr; }
  .news-row__art img { aspect-ratio: 16 / 7; min-height: 0; }
  .news-row__words { padding: 16px; }
  .article__intro { font-size: 18px; }
  .article__body { font-size: 17px; }
}
