/* Thornvale website, in the style of the game's HUD (two flanks, design 2c): warm dark-brown
   panels with a bronze inset line and gold corner brackets, gold diamond labels, the gold
   diamond "T" crest and a letter-spaced gold THORNVALE wordmark. Palatino for names, headlines
   and text, Verdana capitals for small labels: the same system fonts the game uses, so nothing
   to download. One deliberate dark look. Built by scripts/site/build.ts. */

:root {
  --iron-0: #0d0b09;
  --iron-1: #14110e;
  --iron-2: #1d1915;
  --iron-3: #2b2621;
  --iron-4: #36302a;
  --line: #4a4034;
  --line-hi: #5d5246;
  --bronze-d: #5a4a30;
  --bronze: #8a7340;
  --bronze-l: #c9a24a;
  --gold: #e8c26a;
  --gold-l: #ffe9a8;
  --bone: #e8dfcc;
  --bone-l: #f5eedd;
  --muted: #a99d86;
  --ember: #c9a24a;
  --ember-l: #e8c26a;
  --ember-hi: #ffe9a8;
  --blood: #a8231c;
  --blood-l: #e05a3a;
  --mana: #4b7fd0;
  --black: 'Palatino Linotype', 'Book Antiqua', Palatino, 'URW Palladio L', Georgia, serif;
  --fell: 'Palatino Linotype', 'Book Antiqua', Palatino, 'URW Palladio L', Georgia, serif;
  --serif: 'Palatino Linotype', 'Book Antiqua', Palatino, 'URW Palladio L', Georgia, serif;
  --label: Verdana, Tahoma, system-ui, sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --gold-line: linear-gradient(#c9a24a, #c9a24a);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--iron-0); }
body {
  margin: 0;
  background: var(--iron-2);
  color: var(--bone);
  font: 400 18px/1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--ember-l); text-underline-offset: 3px; }
a:hover { color: var(--ember-hi); }
:focus-visible { outline: 3px solid var(--ember-hi); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.faint { color: var(--muted); }
.small { font-size: 15px; }
.center { text-align: center; }
.sel { user-select: all; color: var(--bone); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ember); color: #fff; padding: 8px 14px; font-family: var(--fell); }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ iron plates, kickers, buttons */

.plate {
  position: relative;
  background:
    var(--gold-line) 5px 5px / 14px 2px no-repeat, var(--gold-line) 5px 5px / 2px 14px no-repeat,
    var(--gold-line) calc(100% - 5px) 5px / 14px 2px no-repeat, var(--gold-line) calc(100% - 5px) 5px / 2px 14px no-repeat,
    var(--gold-line) 5px calc(100% - 5px) / 14px 2px no-repeat, var(--gold-line) 5px calc(100% - 5px) / 2px 14px no-repeat,
    var(--gold-line) calc(100% - 5px) calc(100% - 5px) / 14px 2px no-repeat, var(--gold-line) calc(100% - 5px) calc(100% - 5px) / 2px 14px no-repeat,
    linear-gradient(180deg, #2e2823, #25201b);
  border: 1px solid var(--iron-0);
  box-shadow: inset 0 0 0 1px var(--line), 0 0 0 1px #0d0b09, 0 14px 36px rgba(0, 0, 0, 0.45);
}

.kicker {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font: 700 13px/1.2 var(--label); letter-spacing: 0.18em; text-transform: uppercase; color: #d4ad55;
}
.kicker::before, .kicker::after { content: ''; flex: 1; max-width: 90px; height: 1px; background: linear-gradient(90deg, transparent, var(--bronze)); }
.kicker::after { transform: scaleX(-1); }
.kicker > span { display: inline-flex; align-items: center; gap: 10px; }
.kicker > span::before, .kicker > span::after { content: ''; width: 6px; height: 6px; background: var(--bronze-l); transform: rotate(45deg); flex: none; }
.kicker.left { justify-content: flex-start; }
.kicker.left::before { display: none; }
span.kicker { display: inline-flex; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 10px 22px;
  font: small-caps 19px/1 var(--fell); letter-spacing: 0.5px; text-decoration: none; cursor: pointer;
  color: #1d1915;
  background: linear-gradient(180deg, #f6dc8e 0%, #e0b85a 45%, #b48a34 100%);
  border: 1px solid #0d0b09;
  box-shadow: inset 0 1px 0 #fff3c4, inset 0 -2px 0 #7a5a20, 0 0 0 1px #8a6a2a, 0 6px 18px rgba(232, 194, 106, 0.22);
  text-shadow: 0 1px 0 rgba(255, 240, 200, 0.6);
  font-weight: 700;
  transition: box-shadow 0.2s, transform 0.1s, filter 0.2s;
}
.btn:hover { color: #0d0b09; filter: brightness(1.08); box-shadow: inset 0 1px 0 #fff3c4, inset 0 -2px 0 #7a5a20, 0 0 0 1px #c9a24a, 0 0 28px rgba(255, 210, 120, 0.4); }
.btn:active { transform: translateY(1px); }
.btn.iron, .btn.ghost {
  color: var(--bone);
  background: linear-gradient(180deg, #3e362e, #2b2621);
  border-color: var(--iron-0);
  box-shadow: inset 1px 1px 0 #6a5e50, inset -1px -1px 0 #120f0c, 0 0 0 1px var(--bronze-d);
  font-weight: 400;
  text-shadow: 0 1px 0 #000;
}
.btn.iron:hover, .btn.ghost:hover { color: var(--gold-l); box-shadow: inset 0 1px 0 #6b5a44, inset 0 -2px 0 #0e0b09, 0 0 0 1px var(--bronze-l), 0 0 22px rgba(200, 150, 62, 0.25); }
.btn.big { min-height: 58px; padding: 14px 32px; font-size: 23px; }
.btn.sq { width: 44px; min-height: 44px; padding: 0; font: 24px/1 var(--serif); }
.btn svg { flex: none; }
.btns, .cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btns { justify-content: flex-start; margin-top: 8px; }
.link { font-family: var(--fell); font-size: 19px; color: var(--ember-l); }

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

.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: linear-gradient(180deg, rgba(15, 12, 10, 0.97), rgba(15, 12, 10, 0.92));
  border-bottom: 2px solid var(--iron-0);
  box-shadow: 0 1px 0 var(--bronze-d), 0 8px 24px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
}
body::before { content: ''; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--iron-1); z-index: 31; }
.top-in {
  max-width: 1360px; margin: 0 auto; min-height: 66px;
  padding-left: var(--gutter); padding-right: var(--gutter-r);
  display: flex; align-items: center; gap: 22px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand span { font: 700 22px/1 var(--black); color: var(--gold); letter-spacing: 0.22em; text-transform: uppercase; text-shadow: 0 2px 0 #000; }
.brand:hover span { color: var(--gold-l); }
.nav { display: flex; gap: 4px; flex: 1; min-width: 0; }
.nav a {
  font: small-caps 17px/1 var(--fell); font-variant: small-caps; letter-spacing: 0.06em; color: var(--bone); text-decoration: none; padding: 10px 10px; position: relative; white-space: nowrap;
}
.nav a:hover { color: var(--gold-l); }
.nav a[aria-current] { color: var(--ember-l); }
.nav a[aria-current]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; background: var(--ember); box-shadow: 0 0 8px var(--ember); }
.realm { display: inline-flex; align-items: center; gap: 8px; font: small-caps 16px/1 var(--fell); color: var(--muted); white-space: nowrap; }
.realm i { width: 9px; height: 9px; transform: rotate(45deg); background: var(--muted); flex: none; }
.realm.up i { background: #6fcf5a; box-shadow: 0 0 10px #6fcf5a; animation: pulse 2s infinite; }
.realm.up { color: var(--bone); }
.realm.down i { background: var(--ember); }
.top .btn { min-height: 42px; padding: 8px 18px; font-size: 18px; }
@keyframes pulse { 50% { opacity: 0.45; } }

@media (max-width: 1180px) { .realm { display: none; } }
@media (max-width: 900px) {
  .top-in { flex-wrap: wrap; gap: 6px 14px; padding-block: 8px 0; }
  .brand span { font-size: 19px; }
  .top .btn { margin-left: auto; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; margin-inline: -6px; padding-bottom: 2px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 10px 9px 12px; font-size: 17px; }
}

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

.hero {
  position: relative; overflow: hidden;
  min-height: min(100svh, 980px);
  display: grid; place-items: center;
  padding: 80px var(--gutter-r) 110px var(--gutter);
  isolation: isolate;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; filter: saturate(0.85) contrast(1.05); }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(10, 8, 7, 0.35), rgba(10, 8, 7, 0.88) 75%),
    linear-gradient(180deg, rgba(10, 8, 7, 0.5), rgba(10, 8, 7, 0.15) 30%, rgba(22, 19, 15, 1) 100%);
}
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 30% at 50% 100%, rgba(201, 162, 74, 0.28), transparent 70%); pointer-events: none; }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-in { max-width: 980px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.hero-crest { filter: drop-shadow(0 0 18px rgba(201, 162, 74, 0.55)) drop-shadow(0 4px 0 #000); animation: rise 1.2s both; }
.mega {
  font: 700 clamp(40px, 11.5vw, 150px)/0.95 var(--black);
  letter-spacing: 0.16em; text-transform: uppercase; margin-right: -0.16em;
  background: linear-gradient(180deg, #fff3c4 0%, #f0cf7a 40%, #c9a24a 70%, #7a5a20 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #000) drop-shadow(0 0 26px rgba(201, 162, 74, 0.5));
  animation: rise 1.2s 0.1s both, glow 4s 1.3s ease-in-out infinite;
  padding-bottom: 0.06em;
}
.mega.small { font-size: clamp(38px, 6.4vw, 84px); line-height: 1.05; letter-spacing: 0.06em; margin-right: 0; text-transform: none; }
@keyframes glow { 50% { filter: drop-shadow(0 4px 0 #000) drop-shadow(0 0 40px rgba(255, 200, 110, 0.75)); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.motto { font: clamp(22px, 3vw, 32px)/1.2 var(--fell); color: var(--ember-l); letter-spacing: 1px; text-shadow: 0 2px 6px #000; animation: rise 1.2s 0.25s both; }
.hero-lede { max-width: 640px; font-size: clamp(18px, 2vw, 21px); color: var(--bone-l); text-shadow: 0 2px 8px #000; animation: rise 1.2s 0.35s both; }
.hero .cta { margin-top: 10px; animation: rise 1.2s 0.45s both; }
.gate { margin-top: 26px; padding: 18px 26px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; animation: rise 1.2s 0.6s both; max-width: 100%; }
.gate-k { font: small-caps 18px/1.2 var(--fell); color: var(--gold); letter-spacing: 1px; }
.gate-note { font-size: 15px; color: var(--muted); }
.clock { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.clock div {
  min-width: 86px; padding: 10px 8px 8px; text-align: center;
  background: var(--iron-0); border: 1px solid var(--line); box-shadow: inset 2px 2px 0 #000, inset -1px -1px 0 #2a231c;
}
.clock b { display: block; font: 700 46px/1 var(--black); color: var(--bone-l); font-variant-numeric: tabular-nums; text-shadow: 0 0 14px rgba(201, 162, 74, 0.5); }
.clock span { font: small-caps 14px/1 var(--fell); color: var(--muted); letter-spacing: 1px; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; width: 30px; height: 46px; margin-left: -15px; border: 2px solid var(--bronze); border-radius: 15px; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; background: var(--ember-l); border-radius: 2px; animation: cue 1.8s infinite; }
@keyframes cue { 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ------------------------------------------------------------ ticker */

.ticker { background: linear-gradient(180deg, #2b2621, #1d1915); border-block: 1px solid #0d0b09; box-shadow: inset 0 1px 0 #5a4a30, inset 0 -1px 0 #5a4a30; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; animation: tick 60s linear infinite; }
.ticker span { white-space: nowrap; display: inline-flex; align-items: center; gap: 22px; padding: 15px 22px 15px 0; font: 700 14px/1 var(--label); text-transform: uppercase; color: var(--gold); letter-spacing: 0.14em; }
.ticker span::after { content: ''; width: 8px; height: 8px; background: var(--ember); transform: rotate(45deg); box-shadow: 0 0 10px var(--ember); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ sections */

.sec { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.sec.tight { padding-block: 40px 90px; }
.sec-dark { background: var(--iron-1); border-block: 1px solid var(--iron-0); box-shadow: inset 0 1px 0 var(--bronze-d), inset 0 -1px 0 var(--bronze-d); }
.sec-blood { background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(168, 35, 28, 0.2), transparent 70%), var(--iron-2); }
.sec-in { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.sec-in.narrow { max-width: 900px; }
.sec-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head.left { align-items: flex-start; text-align: left; margin-bottom: 26px; }
.sec-head h2, .band h1 { font: 700 clamp(46px, 6vw, 76px)/0.95 var(--black); color: var(--bone-l); text-shadow: 0 3px 0 #000; }
.lede { max-width: 680px; font-size: 20px; color: var(--bone); }
.sec-head .lede { color: var(--muted); }

/* vocations */
.paths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.path { padding: 30px 24px 26px; display: flex; flex-direction: column; gap: 12px; text-align: center; align-items: center; transition: transform 0.25s, box-shadow 0.25s; }
.path:hover { transform: translateY(-6px); box-shadow: inset 0 1px 0 var(--line-hi), 0 0 0 1px var(--bronze-l), 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(201, 162, 74, 0.18); }
.emblem { width: 104px; height: 104px; display: grid; place-items: center; color: var(--gold); transform: rotate(45deg); border: 2px solid var(--bronze); background: var(--iron-0); box-shadow: 0 0 0 3px var(--iron-0), 0 0 0 4px var(--bronze-d); margin: 10px 0 14px; }
.emblem svg { transform: rotate(-45deg); }
.path:hover .emblem { color: var(--ember-hi); box-shadow: 0 0 0 3px var(--iron-0), 0 0 0 4px var(--bronze-l), 0 0 30px rgba(201, 162, 74, 0.5); }
.path h3 { font: 700 44px/1 var(--black); color: var(--gold); }
.path-line { font: italic 17px/1.4 var(--serif); color: var(--ember-l); }
.path p:not(.path-line) { font-size: 16px; color: var(--muted); }
.stats { width: 100%; margin: 6px 0 0; display: grid; gap: 7px; border-top: 1px solid var(--line); padding-top: 14px; }
.stats div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.stats dt { font: small-caps 15px/1 var(--fell); color: var(--muted); }
.stats dd { margin: 0; }
.pips {
  display: block; width: 100px; height: 11px;
  background: linear-gradient(90deg, var(--ember) calc(var(--v) * 20%), #2e261f 0);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 16px, transparent 16px 21px);
  mask: repeating-linear-gradient(90deg, #000 0 16px, transparent 16px 21px);
}

/* world */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.facts { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.facts li { display: flex; align-items: baseline; gap: 14px; color: var(--muted); font-size: 17px; }
.facts b { font: 700 40px/1 var(--black); color: var(--ember-l); min-width: 56px; }
.map-frame { display: block; padding: 12px; transform: rotate(1.2deg); transition: transform 0.4s; }
.map-frame:hover { transform: rotate(0deg) scale(1.01); }
.map-frame img { width: 100%; height: auto; border: 1px solid var(--iron-0); }
.pins { position: absolute; inset: 12px; pointer-events: none; }
.pin { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; padding: 0; color: inherit; }
.pin i { width: 10px; height: 10px; transform: rotate(45deg); background: var(--ember); border: 1px solid #2a0f05; box-shadow: 0 0 10px var(--ember-hi); }
.pin b { font: small-caps 13px/1 var(--fell); color: var(--bone-l); text-shadow: 0 1px 2px #000, 0 0 6px #000; white-space: nowrap; }

/* songs */
.songs { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.songs.wide { grid-template-columns: 1fr; max-width: 860px; margin-inline: auto; }
.song { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 18px; text-align: left; color: var(--bone); font: inherit; cursor: pointer; }
.song:hover { box-shadow: inset 0 1px 0 var(--line-hi), 0 0 0 1px var(--bronze-l), 0 14px 36px rgba(0, 0, 0, 0.45); }
.song-play { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--bronze-l); display: grid; place-items: center; background: var(--iron-0); }
.song-play::before { content: ''; border-left: 13px solid var(--gold); border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
.song[aria-pressed="true"] .song-play { border-color: var(--ember); box-shadow: 0 0 16px rgba(201, 162, 74, 0.6); }
.song[aria-pressed="true"] .song-play::before { border: 0; margin: 0; width: 13px; height: 15px; background: linear-gradient(90deg, var(--ember-hi) 0 35%, transparent 35% 65%, var(--ember-hi) 65%); }
.song-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.song-txt b { font: 700 26px/1.05 var(--black); color: var(--gold); }
.song[aria-pressed="true"] .song-txt b { color: var(--ember-hi); }
.song-txt span { font: small-caps 15px/1.3 var(--fell); color: var(--bone); }
.song-txt small { font-size: 14px; color: var(--muted); line-height: 1.35; }
.num { font: 700 26px/1 var(--black); color: var(--bronze); width: 34px; }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 22px; opacity: 0; }
.eq i { width: 4px; height: 30%; background: var(--ember); }
.song[aria-pressed="true"] .eq { opacity: 1; }
.song[aria-pressed="true"] .eq i { animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.3s !important; }
.eq i:nth-child(3) { animation-delay: -0.6s !important; }
.eq i:nth-child(4) { animation-delay: -0.15s !important; }
@keyframes eq { 50% { height: 100%; } }

/* bestiary */
.beasts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 36px; }
.beasts.all { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); align-items: start; }
.beast { padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 12px; --tier: var(--muted); }
.beast header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.beast h3 { font: 700 32px/1 var(--black); color: var(--bone-l); }
.tier { flex: none; font: small-caps 14px/1 var(--fell); color: var(--tier); border: 1px solid currentColor; padding: 5px 9px 4px; letter-spacing: 1px; }
.t-easy { --tier: #b7c79a; }
.t-fair { --tier: var(--bronze-l); }
.t-tough { --tier: var(--ember-l); }
.t-deadly { --tier: var(--blood-l); }
.t-legendary { --tier: #ffcf6a; }
.t-legendary h3 { color: var(--gold-l); text-shadow: 0 0 18px rgba(255, 180, 80, 0.35); }
.t-legendary .tier { box-shadow: 0 0 12px rgba(255, 190, 90, 0.35); }
.nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 10px 0; border-block: 1px solid var(--line); }
.nums div { display: flex; flex-direction: column; gap: 2px; }
.nums dt { font: small-caps 13px/1 var(--fell); color: var(--muted); letter-spacing: 0.5px; }
.nums dd { margin: 0; font: 700 19px/1.1 var(--serif); color: var(--bone-l); font-variant-numeric: tabular-nums; }
.res, .abil, .loot { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.res li { display: inline-flex; align-items: center; gap: 5px; }
.res small, .abil small, .loot small { font-size: 13px; color: var(--muted); }
.abil { flex-direction: column; gap: 4px; font-size: 15px; }
.el { display: inline-block; font: small-caps 13px/1 var(--fell); padding: 4px 7px 3px; border: 1px solid; letter-spacing: 0.5px; }
.el-fire { color: #ff9a5a; border-color: #7a3216; background: rgba(201, 162, 74, 0.12); }
.el-energy { color: #c9a2ff; border-color: #50347a; background: rgba(150, 100, 230, 0.12); }
.el-ice { color: #9fd8f2; border-color: #2c5a72; background: rgba(120, 190, 230, 0.12); }
.el-earth { color: #a9d06a; border-color: #44602a; background: rgba(120, 170, 70, 0.12); }
.el-death { color: #c6a8d0; border-color: #4e3a58; background: rgba(120, 80, 140, 0.14); }
.el-holy { color: #f6dc8c; border-color: #7a6430; background: rgba(240, 210, 130, 0.1); }
.el-physical, .el-life, .el-drown, .el-poison { color: var(--bone); border-color: var(--line); }
.beast details summary { cursor: pointer; font: small-caps 16px/1.4 var(--fell); color: var(--ember-l); }
.loot { flex-direction: column; gap: 3px; margin-top: 6px; font-size: 15px; }
.r-uncommon { color: #8fd17a; }
.r-rare { color: #7fb2ff; }
.r-legendary { color: #ffb84d; }
.filters { padding: 20px 22px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px 18px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font: small-caps 15px/1 var(--fell); color: var(--muted); }
input, select { font: 17px var(--serif); color: var(--bone-l); background: var(--iron-0); border: 1px solid var(--line); box-shadow: inset 2px 2px 0 #000; padding: 10px 12px; min-height: 46px; width: 100%; }
.tiers { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tiers legend { font: small-caps 15px var(--fell); color: var(--muted); float: left; margin-right: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; min-height: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 13px 8px; font: small-caps 16px/1 var(--fell); color: var(--muted); border: 1px solid var(--line); background: var(--iron-0); }
.chip input:checked + span { color: #ffe9a8; background: #4f4126; border-color: #c9a24a; }
.chip input:focus-visible + span { outline: 3px solid var(--ember-hi); outline-offset: 2px; }
.count { font: small-caps 17px var(--fell); color: var(--muted); margin-bottom: 14px; }
.beast[hidden] { display: none; }

/* features */
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feat { padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; }
.feat svg { color: var(--ember-l); margin-bottom: 4px; }
.feat h3 { font: 700 32px/1 var(--black); color: var(--gold); }
.feat p { font-size: 16px; color: var(--muted); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shot { margin: 0; padding: 8px; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; transition: transform 0.6s; }
.shot:hover img { transform: scale(1.04); }
.shot figcaption { position: absolute; left: 20px; bottom: 16px; font: small-caps 20px var(--fell); color: var(--bone-l); text-shadow: 0 2px 6px #000; }
.shot-big { grid-column: 1 / -1; cursor: pointer; border: 0; font: inherit; color: inherit; }
.shot-big img { aspect-ratio: 21 / 9; object-position: 50% 80%; }
.shot-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; font: small-caps 24px var(--fell); color: #1d1915; font-weight: 700; background: linear-gradient(180deg, #f6dc8e, #c9a24a); border: 1px solid #0d0b09; box-shadow: 0 0 0 1px #8a6a2a, 0 0 40px rgba(232, 194, 106, 0.45); }

/* news + hall */
.duo { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
.news-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; padding: 14px; text-decoration: none; color: var(--bone); align-items: center; }
.news-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.news-card > div { display: flex; flex-direction: column; gap: 10px; padding: 10px 10px 10px 0; }
.news-card h2, .news-card h3 { font: 700 36px/1 var(--black); color: var(--gold); }
.news-card p { color: var(--muted); font-size: 16px; }
.news-card:hover h2, .news-card:hover h3 { color: var(--gold-l); }
.hall { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 30px; text-decoration: none; color: var(--bone); background: radial-gradient(ellipse at 50% 0%, rgba(201, 162, 74, 0.2), transparent 70%), linear-gradient(180deg, #221c17, #16120e); }
.hall h3 { font: 700 40px/1 var(--black); color: var(--gold); }
.hall p { color: var(--muted); font-size: 16px; }

/* final call */
.final, .lost { position: relative; overflow: hidden; isolation: isolate; padding: clamp(90px, 12vw, 160px) var(--gutter-r) clamp(90px, 12vw, 160px) var(--gutter); text-align: center; background: radial-gradient(ellipse 70% 80% at 50% 110%, rgba(201, 162, 74, 0.38), transparent 70%), radial-gradient(ellipse 50% 40% at 50% 100%, rgba(168, 35, 28, 0.35), transparent 70%), var(--iron-1); border-top: 1px solid var(--bronze-d); }
.final-in, .lost-in { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.final .lede, .lost .lede { color: var(--bone); }
.lost { min-height: 70vh; display: grid; place-items: center; }

/* inner page band */
.band { position: relative; padding: clamp(56px, 8vw, 96px) var(--gutter-r) clamp(36px, 5vw, 56px) var(--gutter); text-align: center; background: linear-gradient(180deg, rgba(10, 8, 7, 0.82), var(--iron-2)), url(/media/atlas-small.jpg) center 30% / cover; border-bottom: 1px solid var(--iron-0); }
.band-in { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.band .lede { color: var(--bone); }

/* documents (guide, FAQ, rules, privacy, news posts) */
.doc-sec { padding-top: clamp(40px, 6vw, 70px); }
.doc { max-width: 860px; margin: 0 auto; padding: clamp(28px, 5vw, 56px); }
.doc > div, .doc > article { display: flex; flex-direction: column; gap: 16px; }
.doc h1 { font: 700 clamp(44px, 6vw, 68px)/1 var(--black); color: var(--bone-l); text-shadow: 0 3px 0 #000; }
.doc h2 { font: small-caps 26px/1.2 var(--fell); color: var(--ember-l); margin-top: 22px; padding-bottom: 8px; border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.doc .kicker { justify-content: flex-start; }
.doc .kicker::before { display: none; }
.doc ol, .doc ul { margin: 0; padding-left: 24px; display: grid; gap: 8px; }
.doc li::marker { color: var(--bronze-l); }
.doc b, .doc strong { color: var(--bone-l); }
.doc .faint a { color: var(--muted); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; background: var(--iron-0); border: 1px solid var(--line); box-shadow: inset 2px 2px 0 #000; }
.toc a { font: small-caps 16px/1 var(--fell); color: var(--bone); text-decoration: none; padding: 9px 12px 8px; border: 1px solid var(--line); background: var(--iron-3); }
.toc a:hover { color: var(--ember-hi); border-color: var(--ember); }
.keys { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0; border: 1px solid var(--line); }
.keys dt, .keys dd { padding: 10px 14px; border-bottom: 1px solid var(--line); margin: 0; }
.keys dt { font: small-caps 16px var(--fell); color: var(--gold); background: var(--iron-0); }
.keys dd { font-size: 16px; color: var(--bone); }
.doc details { border: 1px solid var(--line); background: var(--iron-0); padding: 0 18px; }
.doc details[open] { padding-bottom: 16px; }
.doc summary { cursor: pointer; font: small-caps 20px/1.3 var(--fell); color: var(--bone-l); padding: 16px 0; list-style-position: outside; }
.doc summary::marker { color: var(--ember); }
.doc details p + p { margin-top: 10px; }
.article-img { width: 100%; height: auto; border: 1px solid var(--iron-0); box-shadow: 0 0 0 1px var(--line); }

/* highscores */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 30px; }
.chip-btn { font: small-caps 18px/1 var(--fell); color: var(--muted); background: var(--iron-0); border: 1px solid var(--line); padding: 12px 18px 11px; cursor: pointer; min-height: 44px; }
.chip-btn:hover { color: var(--bone-l); }
.chip-btn.on { color: #ffe9a8; background: #4f4126; border-color: #c9a24a; }
.podium { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
.podium:empty { display: none; }
.podium li { padding: 22px 12px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.podium .place { font: 700 48px/1 var(--black); color: var(--bronze-l); }
.podium .who { font: 700 30px/1 var(--black); color: var(--bone-l); overflow-wrap: anywhere; }
.podium .what { font: small-caps 15px var(--fell); color: var(--muted); }
.podium li:nth-child(1) { order: 2; padding-top: 40px; box-shadow: inset 0 1px 0 var(--line-hi), 0 0 0 1px var(--bronze-l), 0 0 40px rgba(255, 190, 90, 0.2); }
.podium li:nth-child(1) .place { color: #ffcf6a; font-size: 60px; }
.podium li:nth-child(2) { order: 1; }
.podium li:nth-child(3) { order: 3; }
.table { overflow-x: auto; padding: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 17px; }
th { font: small-caps 16px var(--fell); color: var(--ember-l); text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--bronze-d); }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
tbody tr:nth-child(odd) td { background: rgba(10, 8, 7, 0.35); }
td:nth-child(2) { color: var(--bone-l); font-weight: 600; }
td:last-child, th:last-child { text-align: right; }

/* atlas */
.atlas { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.atlas-view { height: min(78vh, 880px); overflow: hidden; padding: 0; cursor: grab; touch-action: none; user-select: none; }
.atlas-view.grab { cursor: grabbing; }
.atlas-zoom { position: absolute; left: 0; top: 0; width: 1280px; height: 1600px; transform-origin: 0 0; will-change: transform; }
.atlas-zoom img { width: 100%; height: 100%; }
.atlas-zoom .pins { inset: 0; pointer-events: auto; }
.atlas-zoom .pin { cursor: pointer; }
.atlas-zoom .pin b { font-size: 17px; }
.atlas-zoom .pin.on i { background: #ffcf6a; box-shadow: 0 0 16px #ffcf6a; }
.atlas-tools { position: absolute; right: 14px; top: 14px; display: flex; flex-direction: column; gap: 8px; z-index: 2; }
.atlas-side { padding: 20px; display: flex; flex-direction: column; gap: 12px; max-height: min(78vh, 880px); overflow: auto; }
.side-h { font: small-caps 22px var(--fell); color: var(--ember-l); }
.towns { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.towns button { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; background: var(--iron-0); border: 1px solid var(--line); color: var(--bone); cursor: pointer; font: inherit; }
.towns button:hover, .towns button.on { border-color: var(--ember); }
.towns b { font: 700 24px/1 var(--black); color: var(--gold); }
.towns span { font-size: 14px; color: var(--muted); line-height: 1.3; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border: 1px solid #000; }

/* footer */
.foot { background: var(--iron-0); border-top: 1px solid var(--bronze-d); padding: 56px var(--gutter-r) 40px var(--gutter); }
.foot-in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 30px; }
.foot-brand { display: flex; flex-direction: column; gap: 12px; }
.foot-brand p { font-size: 15px; color: var(--muted); max-width: 40ch; }
.foot-col { display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.foot-col h2 { font: small-caps 18px var(--fell); color: var(--ember-l); margin-bottom: 4px; }
.foot-col a { color: var(--bone); text-decoration: none; }
.foot-col a:hover { color: var(--gold-l); }

/* trailer */
.trailer { padding: 0; border: 1px solid var(--iron-0); background: #000; width: min(1100px, 94vw); box-shadow: 0 0 0 2px var(--bronze-d), 0 30px 80px rgba(0, 0, 0, 0.8); }
.trailer::backdrop { background: rgba(5, 4, 3, 0.86); }
.trailer video { width: 100%; }
.trailer .x { position: absolute; right: 8px; top: 8px; z-index: 2; width: 44px; height: 44px; font: 30px/1 var(--serif); color: var(--bone-l); background: rgba(10, 8, 7, 0.8); border: 1px solid var(--line); cursor: pointer; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s, transform 0.8s; }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ narrower screens */

@media (max-width: 1100px) {
  .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .beasts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas { grid-template-columns: 1fr; }
  .atlas-side { max-height: none; }
  .towns { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 820px) {
  body { font-size: 17px; }
  .split, .duo { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .shot-big img { aspect-ratio: 16 / 9; }
  .news-card { grid-template-columns: 1fr; }
  .news-card > div { padding: 0 6px 6px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .field:first-child { grid-column: 1 / -1; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .map-frame { transform: none; }
}
@media (max-width: 600px) {
  .paths, .beasts, .feats { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .clock div { min-width: 68px; }
  .clock b { font-size: 36px; }
  .gate { padding: 16px 12px 14px; }
  .btn.big { width: 100%; }
  .cta { width: 100%; }
  .podium { grid-template-columns: 1fr; }
  .podium li { order: 0 !important; }
  .keys { grid-template-columns: 1fr; }
  .keys dt { border-bottom: 0; padding-bottom: 4px; }
  .pins b { display: none; }
  .atlas-zoom .pin b { display: block; }
  .ticker span { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .ticker { white-space: normal; }
  .ticker-track { flex-wrap: wrap; justify-content: center; }
  .ticker-track span:nth-child(n + 11) { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ Store and founders
   Store page (/store/, site/store.js), hall of founders (/founders/, site/founders.js) and the
   founder strip on the home page. Same tokens as above: square corners, gold diamonds. */

button.btn { font-family: var(--fell); }
.btn[disabled], .btn[disabled]:hover {
  cursor: not-allowed; filter: none; transform: none;
  color: var(--muted); text-shadow: none; font-weight: 400;
  background: linear-gradient(180deg, #2b2621, #221d19);
  box-shadow: inset 1px 1px 0 #3e362e, inset -1px -1px 0 #120f0c, 0 0 0 1px var(--line);
}
.linkish { font: inherit; color: var(--ember-l); background: none; border: 0; padding: 6px 0; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish:hover { color: var(--ember-hi); }

/* status and thank-you notices */
.notice { display: flex; flex-direction: column; gap: 4px; padding: 16px 26px 15px; max-width: 720px; text-align: center; font-size: 16px; color: var(--bone); }
.notice b { font: small-caps 19px/1.25 var(--fell); color: var(--gold); letter-spacing: 0.5px; }
.notice.test b { color: var(--gold-l); }
.notice.test { box-shadow: inset 0 0 0 1px var(--bronze-l), 0 0 0 1px #0d0b09, 0 14px 36px rgba(0, 0, 0, 0.45); }
.notice.ok { margin: 0 auto 20px; }
.notice[hidden] { display: none; }
.band .notice { margin-top: 10px; }

/* account and "before you buy" */
.store-account { padding-top: 48px; }
.store-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; align-items: stretch; }
.store-panel { padding: clamp(22px, 4vw, 32px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.store-panel h2 { font: small-caps 28px/1.15 var(--fell); color: var(--ember-l); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.store-panel h3 { font: 700 24px/1.1 var(--black); color: var(--gold); }
.store-panel p, .store-panel li { font-size: 17px; }
.store-panel.warm { background:
    var(--gold-line) 5px 5px / 14px 2px no-repeat, var(--gold-line) 5px 5px / 2px 14px no-repeat,
    var(--gold-line) calc(100% - 5px) 5px / 14px 2px no-repeat, var(--gold-line) calc(100% - 5px) 5px / 2px 14px no-repeat,
    var(--gold-line) 5px calc(100% - 5px) / 14px 2px no-repeat, var(--gold-line) 5px calc(100% - 5px) / 2px 14px no-repeat,
    var(--gold-line) calc(100% - 5px) calc(100% - 5px) / 14px 2px no-repeat, var(--gold-line) calc(100% - 5px) calc(100% - 5px) / 2px 14px no-repeat,
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(201, 162, 74, 0.12), transparent 70%), linear-gradient(180deg, #2e2823, #25201b); }
.store-panel .kicker { margin-bottom: -4px; }
.store-form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.form-row .field { flex: 1 1 200px; min-width: 0; }
.form-row .btn { flex: none; }
input:focus-visible, select:focus-visible { outline: 3px solid var(--ember-hi); outline-offset: 2px; border-color: var(--bronze-l); }
.msg { font-size: 16px; color: var(--bone); }
.msg:empty { display: none; }
.msg.bad { color: var(--blood-l); }
.msg.ok { color: var(--gold-l); }
.acct { margin: 0; display: grid; border: 1px solid var(--line); background: var(--iron-0); box-shadow: inset 2px 2px 0 #000; }
.acct div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.acct div:last-child { border-bottom: 0; }
.acct dt { font: small-caps 16px/1.5 var(--fell); color: var(--muted); }
.acct dd { margin: 0; font-size: 17px; color: var(--bone-l); overflow-wrap: anywhere; }
.acct .gold dd { color: var(--gold); font-weight: 700; }
.acct-part { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.acct-out { margin-top: auto; }

.consent { position: relative; display: flex; gap: 14px; align-items: flex-start; cursor: pointer; padding: 16px 18px; font-size: 17px; color: var(--bone-l); background: var(--iron-0); border: 1px solid var(--line); box-shadow: inset 2px 2px 0 #000; transition: border-color 0.2s, box-shadow 0.2s; }
.consent input { appearance: none; -webkit-appearance: none; flex: none; width: 26px; height: 26px; min-height: 0; margin: 1px 0 0; padding: 0; cursor: pointer; display: grid; place-items: center; background: #1a1714; border: 1px solid var(--bronze); box-shadow: inset 2px 2px 0 #0d0b09; }
.consent input::before { content: ''; width: 11px; height: 11px; transform: rotate(45deg) scale(0); background: var(--gold); box-shadow: 0 0 8px rgba(232, 194, 106, 0.6); transition: transform 0.15s; }
.consent input:checked { border-color: var(--bronze-l); }
.consent input:checked::before { transform: rotate(45deg) scale(1); }
.consent.attention { border-color: var(--blood-l); box-shadow: inset 2px 2px 0 #000, 0 0 0 2px rgba(224, 90, 58, 0.45); }

/* pack cards */
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 20px; align-items: stretch; padding-top: 14px; }
.packs.premium { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pack { padding: 34px 26px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pack h3 { font: 700 40px/1 var(--black); color: var(--gold); }
.packs.premium .pack h3 { font-size: 34px; }
.pack-lead { font: italic 17px/1.45 var(--serif); color: var(--ember-l); }
.left-n { font-style: normal; font-weight: 700; color: var(--gold-l); }
.pack.featured { box-shadow: inset 0 0 0 1px var(--bronze-l), 0 0 0 1px #0d0b09, 0 0 0 2px var(--bronze-d), 0 18px 46px rgba(0, 0, 0, 0.55), 0 0 40px rgba(201, 162, 74, 0.14); }
.pack-legend { background:
    var(--gold-line) 5px 5px / 14px 2px no-repeat, var(--gold-line) 5px 5px / 2px 14px no-repeat,
    var(--gold-line) calc(100% - 5px) 5px / 14px 2px no-repeat, var(--gold-line) calc(100% - 5px) 5px / 2px 14px no-repeat,
    var(--gold-line) 5px calc(100% - 5px) / 14px 2px no-repeat, var(--gold-line) 5px calc(100% - 5px) / 2px 14px no-repeat,
    var(--gold-line) calc(100% - 5px) calc(100% - 5px) / 14px 2px no-repeat, var(--gold-line) calc(100% - 5px) calc(100% - 5px) / 2px 14px no-repeat,
    radial-gradient(ellipse 90% 45% at 50% 0%, rgba(168, 35, 28, 0.22), transparent 75%), linear-gradient(180deg, #2e2823, #25201b); }
.pack-legend h3 { color: var(--gold-l); text-shadow: 0 0 18px rgba(255, 190, 90, 0.3); }
.pack.owned .pack-foot .btn { color: var(--gold-l); }
.badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 6px 12px 5px; font: 700 11px/1 var(--label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-l); background: #4f4126; border: 1px solid var(--bronze-l); box-shadow: 0 0 0 1px #0d0b09; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font: 700 44px/1 var(--black); color: var(--bone-l); font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 #000; }
.price small { font: 400 15px/1.3 var(--serif); color: var(--muted); text-shadow: none; }
.save { font: 700 12px/1 var(--label); letter-spacing: 0.14em; text-transform: uppercase; color: #d4ad55; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 16px; color: var(--muted); }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px; background: var(--bronze-l); transform: rotate(45deg); }
.ticks b { color: var(--bone-l); }
.pack-foot { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.pack-foot .btn { width: 100%; text-align: center; line-height: 1.15; }
.pack-note { font-size: 15px; color: var(--muted); text-align: center; }
.pack-note:empty { display: none; }
.store-after { max-width: 860px; margin: 30px auto 0; text-align: center; }

/* free and premium */
.compare-box { margin-bottom: 20px; }
.compare { min-width: 560px; }
.compare th, .compare td { vertical-align: top; text-align: left; }
.compare thead th:last-child { color: var(--gold); }
.compare tbody th { font: 700 17px/1.4 var(--serif); color: var(--bone-l); width: 34%; padding: 11px 14px; border-bottom: 1px solid var(--line); text-transform: none; }
.compare td { color: var(--muted); }
.compare td:nth-child(2) { color: var(--muted); font-weight: 400; }
.compare td:last-child { color: var(--bone-l); text-align: left; }
.compare tbody tr:nth-child(odd) th { background: rgba(10, 8, 7, 0.35); }
.compare tr.same td, .compare tr.same td:last-child { color: var(--muted); }
.town-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.town-chips li { padding: 8px 12px 7px; font: small-caps 16px/1 var(--fell); color: var(--bone); border: 1px solid var(--line); background: var(--iron-0); }
.town-chips.prem li { color: var(--gold); border-color: var(--bronze); }

/* home page founder strip */
.promo { margin-top: 20px; padding: 24px 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; text-decoration: none; color: var(--bone); }
.promo-txt { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.promo h3 { font: 700 32px/1.05 var(--black); color: var(--gold); }
.promo p:not(.kicker) { font-size: 16px; color: var(--muted); }
.promo:hover h3 { color: var(--gold-l); }
.promo:hover .btn { color: var(--gold-l); box-shadow: inset 0 1px 0 #6b5a44, inset 0 -2px 0 #0e0b09, 0 0 0 1px var(--bronze-l); }

/* hall of founders */
.roll { display: flex; flex-direction: column; gap: 40px; margin-bottom: 30px; }
.roll-group { display: flex; flex-direction: column; gap: 16px; }
.roll-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding-bottom: 10px; border-bottom: 1px solid var(--bronze-d); }
.roll-head h2 { font: 700 clamp(34px, 5vw, 48px)/1 var(--black); color: var(--bone-l); text-shadow: 0 3px 0 #000; }
.roll-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.roll-list li { display: flex; align-items: baseline; gap: 12px; min-width: 0; padding: 12px 16px; background: var(--iron-0); border: 1px solid var(--line); box-shadow: inset 2px 2px 0 #000; }
.roll-list b { font: 700 20px/1.2 var(--black); color: var(--bone-l); overflow-wrap: anywhere; }
.roll-list .no { flex: none; font: 700 13px/1 var(--label); letter-spacing: 0.1em; color: #d4ad55; font-variant-numeric: tabular-nums; }
.roll-legend .roll-list li { border-color: var(--bronze); background: linear-gradient(180deg, #2a221a, #16120e); }
.roll-legend .roll-list b { color: var(--gold); }
.roll-empty { padding: clamp(30px, 6vw, 54px) 24px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.roll-empty .lede { color: var(--bone); }
.roll-note { max-width: 680px; margin: 0 auto; }

@media (max-width: 1100px) {
  .packs { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .packs.premium { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
}
@media (max-width: 600px) {
  .packs.premium { grid-template-columns: minmax(0, 1fr); }
  .pack { padding: 30px 18px 20px; }
  .pack h3 { font-size: 34px; }
  .price { font-size: 38px; }
  .notice { padding: 14px 16px; }
  .acct div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .form-row .btn { width: 100%; }
  .promo { padding: 22px 18px; }
  .promo .btn { width: 100%; }
  .badge { letter-spacing: 0.1em; }
}
@media (prefers-reduced-motion: reduce) {
  .consent input::before { transition: none; }
}

/* store: soundtrack downloads for Warden and Legend founders */
.tracks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 2px 18px; }
.tracks a { display: flex; align-items: baseline; gap: 10px; min-height: 44px; padding: 10px 0; text-decoration: none; }
.tracks span { flex: none; font: 700 12px/1 var(--label); letter-spacing: 0.1em; color: var(--bronze-l); font-variant-numeric: tabular-nums; }
.tracks b { font: 700 18px/1.2 var(--black); color: var(--gold); }
.tracks a:hover b { color: var(--gold-l); text-decoration: underline; text-underline-offset: 3px; }

/* header with the Store link: tighter between tablet and wide desktop so the nav never overflows */
@media (max-width: 1260px) { .realm { display: none; } }
@media (min-width: 901px) and (max-width: 1260px) {
  .top-in { gap: 14px; }
  .nav a { padding-inline: 7px; font-size: 16px; }
  .nav a[aria-current]::after { left: 7px; right: 7px; }
}
@media (min-width: 901px) and (max-width: 1000px) {
  .nav a { padding-inline: 5px; }
  .nav a[aria-current]::after { left: 5px; right: 5px; }
}
/* very narrow phones (360 px): keep the wordmark and Play button on one row */
@media (max-width: 380px) {
  .brand span { font-size: 17px; letter-spacing: 0.16em; }
  .top .btn { padding-inline: 12px; font-size: 17px; }
}

/* ------------------------------------------------------------ opening news sign-up */
.notify { width: 100%; max-width: 520px; margin: 4px auto 0; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.notify-k { font: 700 12px/1.2 var(--label); letter-spacing: 0.16em; text-transform: uppercase; color: #d4ad55; text-align: center; }
.notify-row { display: flex; gap: 8px; }
.notify-row input { flex: 1; min-width: 0; }
.notify-row .btn { flex: none; min-height: 46px; }
.notify-ok { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.notify-ok input { width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: #c9a24a; padding: 0; box-shadow: none; }
.notify-msg { min-height: 1.2em; font-size: 15px; text-align: center; color: #ff8a7a; }
.notify-msg:empty { display: none; }
.notify-msg.ok { color: #9fe07a; }
.notify.done .notify-row, .notify.done .notify-ok { display: none; }
.final .notify { margin-top: 26px; }
@media (max-width: 480px) { .notify-row { flex-direction: column; } }

/* ------------------------------------------------------------ press kit */
.press { display: flex; flex-direction: column; gap: 18px; }
.press-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; align-items: start; }
.press-box { padding: 24px 26px; display: flex; flex-direction: column; gap: 12px; }
.press-box p { font-size: 17px; }
.facts-list { margin: 0; display: grid; gap: 10px; }
.facts-list div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.facts-list dt { font: 700 11px/1.6 var(--label); letter-spacing: 0.12em; text-transform: uppercase; color: #d4ad55; }
.facts-list dd { margin: 0; font-size: 16px; }
.press-list { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-size: 16px; }
.press-list li::marker { color: var(--bronze-l); }
.press-trailer { padding: 8px; }
.press-trailer video { width: 100%; }
.press-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.press-shots .shot img { aspect-ratio: 16 / 9; }
.press-logo { padding: 24px; display: flex; gap: 26px; align-items: center; }
.press-logo p + p { margin-top: 10px; }
@media (max-width: 900px) { .press-cols, .press-shots { grid-template-columns: 1fr; } .press-logo { flex-direction: column; text-align: center; } }
