/* Chronicles of Eldmoor · marketing site
   The game's own identity: Pixelify Sans and Silkscreen (SIL OFL, self-hosted), brass on violet night, pixel frames.
   One theme (dark, like the game). One accent (brass). Shapes: controls have 4 px stepped pixel corners; panels and
   pictures are square with the game's brass double frame; only drawn devices (phones) are rounded.
   Layers: nav 50 · language suggestion 55 · skip link 100 · lightbox in the top layer (dialog). */

@font-face { font-family: 'Pixelify Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/pixelify-sans-latin-v2.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Pixelify Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/pixelify-sans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/atkinson-400-latin.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/atkinson-700-latin.woff2) format('woff2'); }
@font-face { font-family: 'Silkscreen'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/silkscreen-400-latin-v2.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC; }

:root {
  color-scheme: dark;
  --night: #07050b; --night-2: #0d0914; --ink: #0b0810; --panel: #1d1728; --panel-2: #272036; --line: #3d3350;
  --brass: #d6a64e; --brass-hi: #f2cf7a; --brass-lo: #8f6a2c; --brass-deep: #6b4a1c; --gold: #ffd24a;
  --text: #efe8da; --muted: #b6acc6; --dim: #8d82a0; --good: #74dc6a; --bad: #ff8f7f;
  --f-ui: 'Pixelify Sans', 'Trebuchet MS', system-ui, sans-serif;
  --f-read: 'Atkinson Hyperlegible', system-ui, sans-serif;   /* long reading (the privacy notice, the FAQ answers): the game's Readable font */
  --f-label: 'Silkscreen', 'Lucida Console', ui-monospace, monospace;
  --wrap: 1240px; --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --notch: polygon(4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px), 0 4px, 4px 4px);
  --frame: 0 0 0 2px var(--ink), 0 0 0 4px var(--brass-lo), 0 0 0 6px var(--ink);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sec: clamp(4.5rem, 3rem + 6vw, 8.5rem);
}
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; overflow-x: hidden; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--night); color: var(--text); font: 400 1.125rem/1.62 var(--f-ui); -webkit-font-smoothing: antialiased; }
img, video, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brass-hi); text-underline-offset: .2em; text-decoration-thickness: 2px; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 700; letter-spacing: .01em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.4rem); color: var(--brass-hi); text-shadow: 0 3px 0 var(--ink); }
h3 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); }
p { margin: 0; }
p + p { margin-top: 1em; }
.lead { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.35rem); color: var(--text); }
.muted { color: var(--muted); }
.label { font: 400 .78rem/1.3 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
::selection { background: var(--brass); color: var(--ink); }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; background: var(--gold); color: var(--ink); font-weight: 700; }
.skip:focus { top: 1rem; }

/* ---------- buttons: brass plates with stepped corners (the fill is clipped, the focus ring is not) ---------- */
.btn { --fill: var(--panel-2); --hi: rgba(255, 255, 255, .1); --lo: rgba(0, 0, 0, .35); position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.35rem .8rem; border: 0; background: none; color: var(--text); font: 600 1.05rem/1.1 var(--f-ui); letter-spacing: .02em; text-decoration: none; text-shadow: 0 2px 0 var(--ink); white-space: nowrap; cursor: pointer; transition: transform .18s var(--ease), filter .18s; }
.btn::before, .btn::after { content: ''; position: absolute; clip-path: var(--notch); pointer-events: none; }
.btn::after { inset: -2px; z-index: -2; background: var(--ink); }
.btn::before { inset: 0; z-index: -1; background: var(--fill); box-shadow: inset 0 3px 0 var(--hi), inset 0 -4px 0 var(--lo); }
.btn:hover { filter: brightness(1.12); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:active::before { box-shadow: inset 0 4px 0 var(--lo); }
.btn--gold { --fill: var(--brass); --hi: rgba(255, 240, 200, .6); --lo: var(--brass-deep); color: #24170a; text-shadow: 0 1px 0 rgba(255, 240, 200, .55); }
.btn--gold:hover { color: #24170a; }
.btn--line { --fill: rgba(13, 9, 20, .72); --hi: rgba(242, 207, 122, .12); color: var(--brass-hi); }
.btn--line::after { background: var(--brass-lo); }
.btn--ghost { --fill: transparent; --hi: transparent; --lo: transparent; color: var(--muted); }
.btn--ghost::after { background: var(--line); }
.btn--big { min-height: 56px; padding: .9rem 1.7rem 1rem; font-size: 1.15rem; }
.btn--small { min-height: 40px; padding: .45rem .9rem .55rem; font-size: .95rem; }
.btn--wide { width: 100%; }
.btn--icon { width: 48px; padding: 0; }
.arrow { width: 12px; height: 12px; border: solid currentColor; border-width: 0 3px 3px 0; transform: rotate(-45deg); margin-left: -4px; }
.arrow--l { transform: rotate(135deg); margin: 0 -4px 0 0; }
.cross { position: relative; width: 18px; height: 18px; }
.cross::before, .cross::after { content: ''; position: absolute; left: 7px; top: -1px; width: 4px; height: 20px; background: currentColor; transform: rotate(45deg); }
.cross::after { transform: rotate(-45deg); }

/* ---------- navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav.is-solid { background: rgba(7, 5, 11, .88); box-shadow: 0 2px 0 var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (prefers-reduced-transparency: reduce) { .nav.is-solid { background: var(--night); backdrop-filter: none; } }
.nav__in { display: flex; align-items: center; gap: 1.5rem; height: 68px; padding-inline: var(--gutter); max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; }
.nav__brand { display: flex; align-items: center; gap: .6rem; color: var(--brass-hi); text-decoration: none; font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.nav__brand img { image-rendering: pixelated; box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--brass-lo); }
.nav__brand small { font: inherit; color: var(--text); font-weight: 500; }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: 1.02rem; padding-block: .4rem; }
.nav__links a:hover { color: var(--brass-hi); }
.nav__lang { font: 400 .8rem/1 var(--f-label); color: var(--text); text-decoration: none; padding: .55rem .6rem; box-shadow: inset 0 0 0 2px var(--line); }
.nav__lang:hover { box-shadow: inset 0 0 0 2px var(--brass-lo); color: var(--brass-hi); }
.nav__cta { min-height: 42px; padding: .5rem 1rem .6rem; font-size: .98rem; }
.nav__menu { display: none; width: 44px; height: 44px; margin-left: auto; padding: 11px 10px; border: 0; background: none; box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav__menu i { display: block; height: 3px; background: var(--brass-hi); }
@media (max-width: 1060px) {
  .nav__menu { display: flex; }
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: .5rem var(--gutter) 1.25rem; background: rgba(7, 5, 11, .97); box-shadow: 0 2px 0 var(--line); }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: .85rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .nav__lang { order: 3; }
  .nav__in { gap: .8rem; }
}
@media (max-width: 640px) { .nav__cta { display: none; } .nav__brand small { display: none; } .nav__links .nav__menu-cta { display: flex; margin-top: 1.1rem; color: #24170a; } }
/* the language suggestion: a slim strip under the header's row (part of the fixed header, so it never floats over the page's
   content, and it appears without moving anything) */
.suggest { background: var(--panel); box-shadow: 0 -2px 0 var(--line), 0 2px 0 var(--line); }
.suggest__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .4rem .8rem; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding: .4rem var(--gutter); }
.suggest p { margin-right: auto; color: var(--text); font-size: .98rem; }
.suggest .btn--small { min-height: 40px; }
/* phones: one row of two buttons (the sentence stays for screen readers), so the strip covers no more than its own height */
@media (max-width: 640px) { .suggest p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .suggest__in { flex-wrap: nowrap; padding-block: .35rem; } .suggest .btn--small { flex: 1 1 0; min-height: 40px; padding-inline: .4rem; font-size: .85rem; } }
.nav__menu-cta { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; align-items: end; min-height: 100vh; min-height: 100svh; padding: 8rem 0 clamp(4rem, 9vh, 7rem); overflow: hidden; background: #1a120c; }
.hero__media, .hero__media picture, .hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__poster, .hero__video { object-fit: cover; object-position: 50% 42%; image-rendering: pixelated; }   /* the 16:9 cut: the party and Kharax right of centre */
.hero__video { opacity: 0; transition: opacity 1.2s ease; }
.hero__video.is-playing { opacity: 1; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 5, 11, .96) 0%, rgba(7, 5, 11, .88) 34%, rgba(7, 5, 11, .45) 58%, rgba(7, 5, 11, .12) 80%), linear-gradient(0deg, var(--night) 0%, rgba(7, 5, 11, 0) 34%), linear-gradient(180deg, rgba(7, 5, 11, .7) 0%, rgba(7, 5, 11, 0) 22%); }
.hero__in { position: relative; display: grid; justify-items: start; gap: 1.4rem; }
.hero__note { margin: 0; font: 400 .82rem/1.4 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-shadow: 0 2px 0 var(--ink); }
.hero__sub { max-width: 34ch; font-size: clamp(1.15rem, 1.02rem + .6vw, 1.45rem); line-height: 1.5; text-shadow: 0 2px 0 var(--ink), 0 0 18px rgba(7, 5, 11, .9); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem 1.2rem; margin-top: .4rem; }
/* the Play button keeps its place until the realm answers (no layout shift when it appears) */
.hero__cta [data-play]:not(.is-on) { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) { .hero__cta [data-play].is-on { animation: rise .6s var(--ease) both; } }
.hero__pause { position: absolute; right: var(--gutter); bottom: 1.4rem; width: 44px; height: 44px; border: 0; background: rgba(7, 5, 11, .7); box-shadow: inset 0 0 0 2px var(--line); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.hero__pause i { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.hero__pause.is-paused i { width: 0; height: 0; border: solid transparent; border-width: 8px 0 8px 13px; border-left-color: currentColor; margin-left: 4px; }
@media (max-width: 760px) {
  .hero { align-items: end; padding-bottom: 3.2rem; }
  .hero__shade { background: linear-gradient(0deg, var(--night) 0%, rgba(7, 5, 11, .88) 42%, rgba(7, 5, 11, .25) 75%, rgba(7, 5, 11, .5) 100%); }
  .hero__poster, .hero__video { object-position: 62% 28%; }
}
/* phones held upright (the query of build.js HERO_PORT): the loop's square cut in a box under the header, the text below it, so
   the party and Kharax are never under the headline */
@media (max-width: 700px) and (max-aspect-ratio: 3/4) {
  .hero { display: block; min-height: 0; padding: 68px 0 2.8rem; }
  .hero__media { position: relative; inset: auto; height: max(42svh, 250px); }
  .hero__shade { inset: 68px 0 auto; height: max(42svh, 250px); background: linear-gradient(0deg, var(--night) 0%, rgba(7, 5, 11, 0) 30%); }
  .hero__poster, .hero__video { object-position: 50% 40%; }
  .hero__in { margin-top: -2rem; gap: 1.1rem; }
  .hero__pause { top: calc(68px + max(42svh, 250px) - 58px); bottom: auto; }
  .hero { background: var(--night); }
}
@media (max-width: 700px) and (max-aspect-ratio: 3/4) and (max-height: 700px) {   /* short phones: the button stays above the fold */
  .hero__media, .hero__shade { height: 200px; }
  .hero__poster, .hero__video { object-position: 50% 68%; }
  .hero__pause { top: calc(68px + 200px - 58px); }
  .hero__sub { font-size: 1rem; }
  .hero .logo { font-size: 3.4rem; }
}
.logo { margin: 0; text-transform: uppercase; font-weight: 700; font-size: clamp(4rem, 2.2rem + 8.4vw, 8.6rem); line-height: .92; letter-spacing: .02em; color: var(--brass-hi); text-shadow: 0 .035em 0 #b5822f, 0 .07em 0 var(--brass-deep), 0 .1em 0 var(--ink), .035em .035em 0 var(--ink), -.035em .035em 0 var(--ink), 0 0 .4em rgba(242, 207, 122, .3); }
.logo small { display: block; margin-bottom: .2em; font-size: .24em; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--text); text-shadow: 0 3px 0 var(--ink); }
.logo--small { font-size: 2.6rem; }
.logo--small small { font-size: .32em; letter-spacing: .26em; }
.status { display: inline-flex; align-items: center; gap: .65rem; padding: .5rem .85rem .5rem .75rem; background: rgba(13, 9, 20, .78); box-shadow: inset 0 0 0 2px var(--line); font: 400 .8rem/1.2 var(--f-label); letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.status__dot { width: 9px; height: 9px; background: var(--dim); box-shadow: 0 0 0 2px var(--ink); }
.status.is-open .status__dot { background: var(--good); box-shadow: 0 0 0 2px var(--ink), 0 0 10px rgba(116, 220, 106, .8); }
.status.is-beta .status__dot { background: var(--gold); box-shadow: 0 0 0 2px var(--ink), 0 0 10px rgba(255, 210, 74, .7); }
@media (prefers-reduced-motion: no-preference) {
  .status.is-open .status__dot, .status.is-beta .status__dot { animation: blink 2.4s steps(2) infinite; }
  .hero__in > * { animation: rise 1s var(--ease) both; }
  .hero__in > :nth-child(2) { animation-delay: .08s; } .hero__in > :nth-child(3) { animation-delay: .18s; } .hero__in > :nth-child(4) { animation-delay: .28s; }
}
@keyframes blink { 50% { opacity: .45; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* ---------- reveal on scroll (only with JavaScript, never for reduced motion) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- below the fold: rendered (and their sprite sheets fetched) only as they come near the screen ---------- */
.bond, .world, .heroes, .features, .map, .gallery, .devices, .fair, .faq { content-visibility: auto; contain-intrinsic-size: auto 1100px; }

/* ---------- frames ---------- */
.frame { margin: 0; background: var(--panel); box-shadow: var(--frame), 0 30px 60px -24px rgba(0, 0, 0, .75); }
.frame img { width: 100%; }

/* ---------- the Bond: the Echoes lead (pillar one). Dawn violet, the five aspect colours, the game's own sprites ---------- */
.bond { --death: #c08aff; --winter: #9fe8ff; --flame: #ff9a4a; --tide: #4ad8c0; --life: #9fe86a; position: relative; padding-block: var(--sec); background: radial-gradient(ellipse 45% 35% at 12% 8%, rgba(159, 232, 106, .1), transparent 70%), radial-gradient(ellipse 40% 30% at 92% 30%, rgba(192, 138, 255, .12), transparent 70%), radial-gradient(ellipse 60% 40% at 50% 100%, rgba(255, 154, 74, .08), transparent 70%), linear-gradient(180deg, var(--night) 0%, #120d22 55%, var(--night-2) 100%); }
.bond__top { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.bond__text { display: grid; gap: 1.2rem; max-width: 36rem; }
.bond__text > p:not(.label):not(.lead) { color: var(--muted); }
.bond__text .label { color: var(--life); }
.bond__art img { width: 100%; }
.bond__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.1rem; margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.bcell--rite { grid-column: span 4; grid-row: span 2; }
.bcell--aspects { grid-column: span 2; grid-row: span 2; }
.bcell--asc, .bcell--ward { grid-column: span 3; }
.bcell--legend { grid-column: span 3; }
.bcell--legend img { object-position: 50% 40%; }
.bcell--grim { grid-column: span 3; display: grid; grid-template-rows: 1fr auto; margin: 0; }
.bcell--grim picture { overflow: hidden; }
.bcell--grim img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.bcell--grim figcaption { padding: .8rem 1rem .9rem; color: var(--muted); font-size: .98rem; }
.bcell--rewards { grid-column: span 6; margin: 0; }
.bcell--rewards figcaption { padding: .8rem 1rem .9rem; color: var(--muted); font-size: .98rem; }
.bcell--rewards figcaption b { color: var(--text); }
.bcell--aspects { background: radial-gradient(circle at 80% 0%, rgba(159, 232, 106, .12), transparent 55%), var(--panel); }
.echoes { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .55rem; }
.asp { display: grid; grid-template-columns: 4.5rem 1fr; align-items: center; gap: .8rem; padding: .35rem .7rem .35rem .35rem; background: radial-gradient(ellipse 60% 80% at 15% 70%, color-mix(in srgb, var(--c) 22%, transparent), transparent 75%), #15101e; box-shadow: inset 0 0 0 2px var(--line), inset 4px 0 0 var(--c); }
.asp .spr { justify-self: center; }
.asp b { color: var(--c); font-size: 1.1rem; }
.asp--0 { --c: var(--death); } .asp--1 { --c: var(--winter); } .asp--2 { --c: var(--flame); } .asp--3 { --c: var(--tide); } .asp--4 { --c: var(--life); }
.ascent { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.ascent li { position: relative; display: grid; justify-items: center; align-content: end; gap: .25rem; min-height: 150px; padding: .4rem .3rem .7rem; text-align: center; background: radial-gradient(ellipse 50% 12% at 50% 66%, rgba(0, 0, 0, .55), transparent 70%), radial-gradient(ellipse 60% 55% at 50% 60%, rgba(159, 232, 106, calc(.08 + var(--k, 0) * .08)), transparent 72%), #15101e; box-shadow: inset 0 0 0 2px var(--line); }
.ascent li:nth-child(2) { --k: 1; } .ascent li:nth-child(3) { --k: 2; box-shadow: inset 0 0 0 2px var(--brass-lo); }
.ascent li + li::before { content: ''; position: absolute; left: -1.05rem; top: 50%; width: 10px; height: 10px; border: solid var(--brass); border-width: 0 3px 3px 0; transform: translateY(-50%) rotate(-45deg); }
.ascent b { font-size: 1.05rem; color: var(--text); }
.ascent small { font: 400 .72rem/1.2 var(--f-label); letter-spacing: .06em; text-transform: uppercase; color: var(--life); }
.stances { display: grid; gap: .55rem; margin: .6rem 0 0; }
.stance { display: grid; grid-template-columns: 6.6rem 1fr; gap: .8rem; align-items: baseline; padding: .6rem .8rem; background: #15101e; box-shadow: inset 0 0 0 2px var(--line); }
.stance dt { font-weight: 700; color: var(--c); }
.stance dd { margin: 0; color: var(--muted); font-size: 1rem; }
.stance--0 { --c: var(--winter); } .stance--1 { --c: var(--flame); } .stance--2 { --c: var(--life); }
.bond__sold { margin: clamp(2rem, 4vw, 3rem) auto 0; max-width: 52rem; padding: 1.1rem 1.4rem; text-align: center; color: var(--muted); background: linear-gradient(90deg, transparent, rgba(214, 166, 78, .12), transparent); box-shadow: 0 -2px 0 rgba(214, 166, 78, .35), 0 2px 0 rgba(214, 166, 78, .35); }
.bond__sold b { color: var(--brass-hi); font-weight: 700; }
.spr.spr--echo { --s: 2; --cx: 0; --cy: 0; --cb: 0; }   /* after .spr in specificity: Echo frames are trimmed already */

@media (prefers-reduced-motion: no-preference) {
  .spr--echo { animation: spr-idle 1.1s steps(var(--idle)) infinite; }
  .asp:hover .spr--echo, .ascent li:hover .spr--echo { background-position-y: calc((var(--cy) + var(--fh)) * var(--s) * -1px); animation: spr-walk .8s steps(var(--walk)) infinite; }
}
@media (max-width: 1060px) {
  .bond__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bcell--rite { grid-column: span 2; grid-row: auto; }
  .bcell--aspects, .bcell--asc, .bcell--ward, .bcell--legend, .bcell--grim { grid-column: span 1; grid-row: auto; }
  .bcell--rewards { grid-column: span 2; }
  .bcell--aspects { grid-column: span 2; }
  .bcell--aspects .echoes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bcell--aspects .asp { grid-template-columns: 1fr; justify-items: center; padding: .5rem .3rem .6rem; box-shadow: inset 0 0 0 2px var(--line), inset 0 4px 0 var(--c); }
}
@media (max-width: 900px) { .bond__top { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .bond__grid { grid-template-columns: minmax(0, 1fr); }
  .bond__grid > * { grid-column: auto !important; }
  .bcell--rite, .bcell--legend { min-height: 0; }
  .bcell--aspects .echoes { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .35rem; }
  .bcell--aspects .asp b { font-size: .9rem; }
  .bcell--aspects .spr.spr--echo { --s: 1; }
  .ascent { gap: 1rem; } .ascent li + li::before { left: -.8rem; } .ascent small { font-size: .58rem; letter-spacing: 0; } .ascent b { font-size: .95rem; }
}
@media (max-width: 480px) { .ascent .spr.spr--echo { --s: 1; } .ascent li { min-height: 118px; } }

/* ---------- the world ---------- */
.world { padding-block: var(--sec) calc(var(--sec) * .7); background: linear-gradient(180deg, var(--night), var(--night-2)); }
.world__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(2.5rem, 5vw, 5.5rem); align-items: center; }
.world__text { display: grid; gap: 1.2rem; max-width: 36rem; }
.world__text p { color: var(--muted); }
.world__text .lead { color: var(--text); }
.shards { list-style: none; margin: .4rem 0; padding: 0; display: grid; gap: .55rem; }
.shard { display: grid; grid-template-columns: 1.3rem 5.5rem 1fr; align-items: center; gap: .7rem; font-size: 1.02rem; }
.shard i { width: 12px; height: 12px; justify-self: center; transform: rotate(45deg); background: var(--c); box-shadow: 0 0 0 2px var(--ink), 0 0 14px var(--c); }
.shard b { color: var(--c); }
.shard span { color: var(--muted); }
.shard--0 { --c: #c08aff; } .shard--1 { --c: #9fe8ff; } .shard--2 { --c: #ff9a4a; } .shard--3 { --c: #4ad8c0; } .shard--4 { --c: #9fe86a; }
.world__art { position: relative; padding-bottom: 14%; }
.frame--a { width: 92%; margin-left: auto; }
.frame--b { position: absolute; left: 0; bottom: 0; width: 60%; }
.world__art img { image-rendering: pixelated; }
@media (max-width: 900px) { .world__grid { grid-template-columns: 1fr; } .world__art { order: -1; } }

/* ---------- heroes: classes and races, the game's own sprites ---------- */
.heroes { padding-block: var(--sec); background: radial-gradient(ellipse 60% 50% at 70% 40%, rgba(214, 166, 78, .08), transparent 70%), var(--night-2); }
.sec-head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: clamp(2.2rem, 4vw, 3.5rem); }
.sec-head p { color: var(--muted); font-size: 1.2rem; }
.classes { display: grid; grid-template-columns: minmax(230px, 290px) minmax(0, 1fr); gap: 1.5rem; align-items: stretch; }
.classes__tabs { display: grid; gap: .8rem; align-content: start; }
.ctab { display: flex; align-items: center; gap: .9rem; padding: .5rem 1rem .5rem .4rem; border: 0; background: var(--panel); box-shadow: inset 0 0 0 2px var(--line); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: background .2s, box-shadow .2s; }
.ctab b { display: block; font-size: 1.2rem; }
.ctab small { display: block; font-size: .92rem; color: var(--muted); }
.ctab:hover { background: var(--panel-2); }
.ctab[aria-selected="true"] { background: linear-gradient(90deg, rgba(214, 166, 78, .2), var(--panel-2)); box-shadow: inset 0 0 0 2px var(--brass), inset 6px 0 0 var(--brass); }
.ctab[aria-selected="true"] b { color: var(--brass-hi); }
.cpanel { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: center; padding: clamp(1.25rem, 3vw, 2.5rem); background: var(--panel); box-shadow: var(--frame); }
.js .cpanel[data-hidden] { display: none; }
.cpanel__stage { display: grid; place-items: end center; min-height: 300px; background: radial-gradient(ellipse 46% 9% at 50% 92%, rgba(0, 0, 0, .55), transparent 70%), radial-gradient(ellipse 60% 55% at 50% 70%, rgba(214, 166, 78, .2), transparent 70%), linear-gradient(180deg, #1a1426, #0e0a16); box-shadow: inset 0 0 0 2px var(--ink); padding-bottom: 6px; }
.cpanel__info { display: grid; gap: .8rem; }
.cpanel__info h3 { font-size: clamp(2rem, 1.6rem + 1.5vw, 2.8rem); color: var(--brass-hi); text-shadow: 0 3px 0 var(--ink); }
.cpanel__info > p { color: var(--muted); max-width: 46ch; }
.cpanel__info .note { font-size: .92rem; color: var(--dim); }
.rating { display: grid; grid-template-columns: max-content max-content; gap: .45rem 1.3rem; margin: .4rem 0 0; font-size: 1rem; }
.rating dt { color: var(--muted); }
.rating dd { margin: 0; display: flex; align-items: center; }
.pips { display: inline-flex; gap: 4px; }
.pips i { width: 18px; height: 10px; background: #120c16; box-shadow: 0 0 0 1px var(--ink), inset 0 0 0 1px var(--line); }
.pips i.on { background: var(--brass); box-shadow: 0 0 0 1px var(--ink), inset 0 2px 0 var(--brass-hi); }
.races__h { margin: clamp(3rem, 6vw, 4.5rem) 0 1.4rem; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); color: var(--brass-hi); }
.races { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.race { min-width: 0; display: grid; grid-template-rows: auto auto 1fr auto; gap: .5rem; padding: 0 1rem 1.2rem; background: var(--panel); box-shadow: inset 0 0 0 2px var(--line); }
.race .spr { justify-self: center; margin-top: -.25rem; }
.race h4 { font-size: 1.3rem; }
.race p { font-size: .98rem; color: var(--muted); line-height: 1.5; }
.race .race__trait { color: var(--gold); font-size: .95rem; margin: 0; }
@media (max-width: 900px) {
  .classes { grid-template-columns: 1fr; }
  .classes__tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; }
  .ctab { flex-direction: column; text-align: center; gap: .2rem; padding: .3rem .2rem .7rem; }
  .ctab small { display: none; }
  .ctab b { font-size: 1rem; }
  .cpanel { grid-template-columns: 1fr; }
}
/* class status and specializations */
.tag { display: inline-block; padding: .2rem .5rem; font: inherit; letter-spacing: .08em; color: var(--ink); background: var(--good); box-shadow: 0 0 0 2px var(--ink); vertical-align: 1px; }
.tag--soon { background: var(--muted); }
.tag--new { background: var(--gold); }
.spr--none { width: 28px; height: 28px; background: radial-gradient(circle at 50% 45%, var(--gold) 0 3px, transparent 4px), radial-gradient(circle, rgba(214, 166, 78, .35), transparent 70%); }
.cpanel { align-items: start; }
/* a shapeshifter's forms side by side, each named under its feet (the Druid: caster, bear, lynx) */
.cpanel__stage--forms { list-style: none; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; align-content: space-evenly; gap: 1.2rem 1.6rem; padding: 1.5rem .75rem 10px; }
.cpanel__stage--forms .form { display: grid; justify-items: center; gap: .45rem; }
.cpanel__stage--forms .spr--big { --s: 2; }
.cpanel__stage--forms small { font: 400 .74rem/1.2 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }
.cpanel--forms { grid-template-columns: minmax(0, 1fr); }   /* the forms in one row over the text */
.cpanel--forms .specs li { display: grid; grid-template-columns: 88px minmax(0, 1fr); }   /* forms of different widths: the names line up */
.cpanel--forms .specs .spr { justify-self: center; }
.cpanel--forms .cpanel__stage { min-height: 0; flex-wrap: nowrap; justify-content: space-evenly; padding: 1.75rem 1rem 12px; }
@media (max-width: 560px) { .cpanel__stage--forms .spr--big { --s: 1; } .cpanel--forms .cpanel__stage { padding: 1.25rem .5rem 10px; } .cpanel__stage--forms small { font-size: .66rem; } }
/* the Druid's Forms are wider frames: their own crop (content box of every frame of the strip) */
.spr.spr--druid-bear { --cx: 26; --cy: 26; --cb: 2; }
.spr.spr--druid-lynx { --cx: 24; --cy: 34; --cb: 4; }
.cpanel__info .label { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .7rem; }
.specs__h { margin: .5rem 0 0; font: 400 .78rem/1.3 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }
.specs { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.specs li { display: flex; gap: .7rem; align-items: center; padding: .55rem .8rem; background: var(--night-2); box-shadow: inset 0 0 0 2px var(--line); }
.specs b { color: var(--text); font-size: 1.08rem; }
.specs small { color: var(--brass); font-size: .9rem; }
.specs__d { display: block; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.specs--names { grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
.specs--names li { display: grid; padding: .5rem .7rem; }
.specs--names li small { display: block; margin-top: .15rem; }   /* the role on its own line in every card */
@media (max-width: 560px) { .classes__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ctab b { font-size: .92rem; } }
@media (max-width: 560px) { .races { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; } .race { padding: 0 .75rem 1rem; } .race .spr--mid { --s: 1; margin-top: .4rem; } .race p { font-size: .92rem; } }

/* sprites: one row per animation in the strip (idle, walk, attack); --cx/--cy crop the empty margin of a frame */
.spr { --s: 2; --cx: 14; --cy: 8; --cb: 6; display: block; width: calc((var(--fw) - 2 * var(--cx)) * var(--s) * 1px); height: calc((var(--fh) - var(--cy) - var(--cb)) * var(--s) * 1px); background-repeat: no-repeat; background-size: calc(var(--cols) * var(--fw) * var(--s) * 1px) calc(3 * var(--fh) * var(--s) * 1px); background-position: calc(var(--cx) * var(--s) * -1px) calc(var(--cy) * var(--s) * -1px); image-rendering: pixelated; }
.spr--big { --s: 3; }
.spr--mid { --s: 2; }
.spr--icon { --s: 1; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .spr--big, .spr--mid { animation: spr-idle 1s steps(var(--idle)) infinite; }
  .cpanel__stage:hover .spr--big { background-position-y: calc((var(--cy) + 2 * var(--fh)) * var(--s) * -1px); animation: spr-atk .7s steps(var(--atk)) infinite; }
  .race:hover .spr--mid { background-position-y: calc((var(--cy) + var(--fh)) * var(--s) * -1px); animation: spr-walk .8s steps(var(--walk)) infinite; }
}
@keyframes spr-idle { from { background-position-x: calc(var(--cx) * var(--s) * -1px); } to { background-position-x: calc((var(--cx) + var(--idle) * var(--fw)) * var(--s) * -1px); } }
@keyframes spr-walk { from { background-position-x: calc(var(--cx) * var(--s) * -1px); } to { background-position-x: calc((var(--cx) + var(--walk) * var(--fw)) * var(--s) * -1px); } }
@keyframes spr-atk { from { background-position-x: calc(var(--cx) * var(--s) * -1px); } to { background-position-x: calc((var(--cx) + var(--atk) * var(--fw)) * var(--s) * -1px); } }

/* ---------- features: a bento of real captures and the systems behind them ---------- */
.features { padding-block: var(--sec); }
.features h2 { max-width: 22ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(200px, auto); gap: 1.1rem; }
.cell { position: relative; display: grid; align-content: start; gap: .7rem; padding: clamp(1.3rem, 2.4vw, 1.9rem); background: var(--panel); box-shadow: inset 0 0 0 2px var(--line); overflow: hidden; }
.cell h3 { color: var(--brass-hi); text-shadow: 0 2px 0 var(--ink); }
.cell p { color: var(--muted); font-size: 1.02rem; line-height: 1.55; }
/* a picture card: the capture on top, its text on a panel below (never over the game's own interface), at every width */
.cell--img { grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; gap: 0; padding: 0; box-shadow: var(--frame); }
.cell--img picture { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.cell--dungeons picture { aspect-ratio: auto; min-height: 240px; }   /* (a tall cell beside the world's: it takes the height the row has) */
.cell--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cell--img:hover img { transform: scale(1.035); }
.cell__txt { position: relative; display: grid; gap: .5rem; padding: clamp(1.1rem, 2vw, 1.5rem) clamp(1.3rem, 2.4vw, 1.9rem) clamp(1.3rem, 2.4vw, 1.9rem); background: var(--panel); box-shadow: 0 -2px 0 var(--brass-lo); }
.cell__txt p { max-width: 60ch; }
.cell--world { grid-column: span 4; grid-row: span 2; }
.cell--dungeons { grid-column: span 2; grid-row: span 2; }
.cell--world img { object-position: 50% 45%; }
.cell--dungeons img { object-position: 50% 40%; }
.cell--story img { object-position: 72% 62%; }
.cell--mythic, .cell--pvp, .cell--league { grid-column: span 2; }
.cell--story { grid-column: span 3; grid-row: span 2; }
.cell--guilds, .cell--seasons { grid-column: span 3; }
.cell--pvp { background: linear-gradient(135deg, rgba(176, 56, 58, .22), transparent 60%), repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 8px, transparent 8px 16px), var(--panel); }
.cell--mythic { background: radial-gradient(circle at 85% 15%, rgba(198, 135, 255, .22), transparent 55%), var(--panel); }
.cell--seasons { background: radial-gradient(circle at 90% 90%, rgba(255, 210, 74, .14), transparent 55%), var(--panel); }
.chips, .tiers { list-style: none; margin: .3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { font: 400 .72rem/1 var(--f-label); text-transform: uppercase; letter-spacing: .05em; padding: .45rem .55rem; background: #c687ff; color: #160c22; box-shadow: 0 0 0 2px var(--ink); }
.chips li:nth-child(2) { background: #ff9a7a; } .chips li:nth-child(3) { background: #ffb03a; } .chips li:nth-child(4) { background: #c8a878; }
.tier { display: inline-flex; align-items: center; gap: .45rem; font-size: .95rem; color: var(--text); }
.tier i { width: 11px; height: 11px; transform: rotate(45deg); background: var(--c); box-shadow: 0 0 0 2px var(--ink); }
.tier--0 { --c: #c8844a; } .tier--1 { --c: #d8dce4; } .tier--2 { --c: #ffd24a; } .tier--3 { --c: #8fe0e0; } .tier--4 { --c: #8fc8ff; } .tier--5 { --c: #ff8ad8; }
@media (max-width: 1060px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell--world, .cell--story { grid-column: span 2; grid-row: auto; }
  .cell--dungeons { grid-column: span 2; grid-row: auto; }
  .cell--mythic, .cell--pvp, .cell--league, .cell--guilds, .cell--seasons { grid-column: span 1; }
  .cell--league { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > .cell { grid-column: auto; }
  .cell--img { min-height: 0; }
  .cell--img picture, .cell--dungeons picture { min-height: 0; aspect-ratio: 16 / 10; }
}

/* ---------- the map ---------- */
.map { padding-block: var(--sec); background: radial-gradient(ellipse 70% 60% at 60% 50%, rgba(31, 74, 104, .35), transparent 70%), var(--night-2); }
.map__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.map__text { display: grid; gap: 1.2rem; }
.map__text > p { color: var(--muted); }
.stats { display: grid; gap: 1.1rem; margin: .8rem 0 0; }
.stats div { display: grid; grid-template-columns: 5.2rem 1fr; align-items: baseline; gap: 1rem; padding-top: 1rem; border-top: 2px solid var(--line); }
.stats dt { font-size: 2.3rem; font-weight: 700; line-height: 1; color: var(--brass-hi); text-shadow: 0 3px 0 var(--ink); }
.stats dd { margin: 0; color: var(--muted); }
.map__img img { image-rendering: auto; }
@media (max-width: 900px) { .map__grid { grid-template-columns: minmax(0, 1fr); } }
/* a wide picture on a phone (the 16:5 map, the Grimoire's three rewards): shown tall enough to read and panned sideways */
.pan__hint { display: none; }
@media (max-width: 640px) {
  .pan { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--brass-lo) transparent; }
  .pan img { width: auto; max-width: none; height: 300px; }
  .bcell--rewards .pan img { height: 240px; }
  .pan__hint { display: block; padding: .55rem 1rem 0; font: 400 .72rem/1.3 var(--f-label); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
  .pan__hint::before { content: '\2194\00a0'; color: var(--brass); }
}

/* ---------- gallery ---------- */
.gallery { padding-block: var(--sec); overflow: hidden; }
.gallery__head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.gallery__head > div:first-child { display: grid; gap: 1rem; max-width: 40rem; }
.gallery__head p { color: var(--muted); }
.gallery__nav { display: flex; gap: .9rem; }
.shots { list-style: none; margin: 0; padding: 6px max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 1.5rem; display: grid; grid-auto-flow: column; grid-auto-columns: min(84vw, 720px); gap: 1.6rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); scrollbar-width: thin; scrollbar-color: var(--brass-lo) transparent; overscroll-behavior-x: contain; }
.shot { scroll-snap-align: start; display: grid; gap: .8rem; }
.shot button { display: block; padding: 0; border: 0; background: var(--panel); box-shadow: var(--frame); cursor: zoom-in; overflow: hidden; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .9s var(--ease); }
.shot button:hover img { transform: scale(1.03); }
.shot p { color: var(--muted); font-size: 1rem; }
.lightbox { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(5, 3, 10, .95); color: var(--text); }
.lightbox::backdrop { background: rgba(5, 3, 10, .7); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; gap: .8rem; justify-items: center; padding: 4.5rem 4.5rem 2rem; }
.lightbox img { max-width: min(92vw, 1600px); max-height: calc(100vh - 9rem); width: auto; height: auto; box-shadow: var(--frame); }
.lightbox figcaption { color: var(--muted); text-align: center; }
.lightbox__n { font: 400 .78rem var(--f-label); color: var(--dim); margin-left: .6rem; }
.lightbox .btn { position: absolute; }
.lightbox__prev { left: 1rem; top: 50%; } .lightbox__next { right: 1rem; top: 50%; } .lightbox__close { right: 1rem; top: 1rem; }
@media (max-width: 640px) { .lightbox figure { padding: 4rem .5rem 5rem; } .lightbox__prev, .lightbox__next { top: auto; bottom: 1rem; } .gallery__nav { display: none; } }

/* ---------- no download ---------- */
.devices { padding-block: calc(var(--sec) * .7) var(--sec); background: linear-gradient(180deg, var(--night), var(--night-2)); }
.devices__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.devices__art { position: relative; padding: 0 9% 12% 0; }
.phone { margin: 0; padding: 10px; background: #15101c; border-radius: 26px; box-shadow: 0 0 0 2px #2c2438, 0 0 0 4px var(--ink), 0 30px 60px -20px rgba(0, 0, 0, .8); }
.phone img { border-radius: 16px; width: 100%; }
.phone--port { position: absolute; right: 0; bottom: 0; width: 30%; padding: 7px; border-radius: 22px; }
.phone--port img { border-radius: 14px; }
.devices__text { display: grid; gap: 1.6rem; justify-items: start; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.points li { position: relative; padding-left: 1.8rem; color: var(--muted); }
.points li::before { content: ''; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; background: var(--brass); box-shadow: 0 0 0 2px var(--ink); }
.points b { color: var(--text); font-weight: 600; }
@media (max-width: 900px) { .devices__grid { grid-template-columns: 1fr; } }

/* ---------- fair play ---------- */
.fair { padding-block: var(--sec); background: radial-gradient(ellipse 50% 70% at 50% 0%, rgba(198, 135, 255, .1), transparent 70%), var(--night); }
.fair__in { display: grid; justify-items: center; text-align: center; gap: 1.3rem; }
.fair h2 { max-width: 18ch; font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4.2rem); }
.fair .lead { max-width: 44ch; color: var(--muted); }
.rules { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 2.5rem; max-width: 62rem; text-align: left; }
.rules li { display: grid; align-content: start; gap: .5rem; padding-top: 1.2rem; border-top: 4px solid var(--brass-lo); }
.rules h3 { color: var(--brass-hi); font-size: 1.35rem; }
.rules p { color: var(--muted); }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { padding-block: var(--sec); background: var(--night-2); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq h2 { position: sticky; top: 6.5rem; }
.faq__list details { border-bottom: 2px solid var(--line); }
.faq__list details:first-child { border-top: 2px solid var(--line); }
.faq__list summary { position: relative; display: block; padding: 1.25rem 3rem 1.25rem 0; font-size: 1.2rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::before, .faq__list summary::after { content: ''; position: absolute; right: .4rem; top: 50%; width: 16px; height: 4px; margin-top: -2px; background: var(--brass); }
.faq__list summary::after { transform: rotate(90deg); transition: transform .25s var(--ease); }
.faq__list details[open] summary::after { transform: rotate(0); }
.faq__list summary:hover { color: var(--brass-hi); }
.faq__list details p { padding: 0 2.5rem 1.4rem 0; color: var(--muted); font: 400 1.08rem/1.65 var(--f-read); }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; } .faq h2 { position: static; } }

/* ---------- join ---------- */
.join { padding-block: var(--sec) calc(var(--sec) * 1.1); background: radial-gradient(ellipse 60% 70% at 75% 50%, rgba(214, 166, 78, .12), transparent 70%), var(--night); }
.join__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.join__text { display: grid; gap: 1.3rem; }
.join__text .lead { color: var(--muted); max-width: 40ch; }
.community { display: grid; gap: .7rem; justify-items: start; margin-top: 1.4rem; padding-top: 1.6rem; border-top: 2px solid var(--line); }
.community h3 { font-size: 1.35rem; }
.community > p { color: var(--muted); }
.join__box { padding: clamp(1.4rem, 3vw, 2.4rem); }
.signup { display: grid; gap: .65rem; }
.signup > label:first-child { font: 400 .8rem/1.2 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--brass-hi); }
.signup input[type="email"] { width: 100%; min-height: 56px; padding: .8rem 1rem; border: 0; background: #120c16; color: var(--text); font: 400 1.15rem var(--f-ui); box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--line), inset 0 2px 0 rgba(0, 0, 0, .5); }
.signup input[type="email"]::placeholder { color: var(--dim); }
.signup input[type="email"]:focus { outline: none; box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--brass-hi), inset 0 2px 0 rgba(0, 0, 0, .5); }
.signup input[aria-invalid="true"] { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--bad); }
.hint { color: var(--muted); font-size: .95rem; margin-bottom: .6rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: grid; grid-template-columns: 26px 1fr; gap: .9rem; align-items: start; margin: .3rem 0 1rem; color: var(--muted); font-size: 1rem; line-height: 1.5; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 26px; height: 26px; margin: 0; background: #120c16; box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--brass-lo); cursor: pointer; display: grid; place-items: center; }
.check input:checked { background: var(--brass); }
.check input:checked::after { content: ''; width: 7px; height: 13px; margin-top: -3px; border: solid var(--ink); border-width: 0 4px 4px 0; transform: rotate(45deg); }
.check input:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
.msg { min-height: 1.6em; font-size: 1rem; }
.msg--err { color: var(--bad); }
.msg--note { color: var(--text); padding: .7rem .9rem; background: var(--night-2); box-shadow: inset 0 0 0 2px var(--brass-lo); }
.signup-ok { display: grid; gap: .9rem; justify-items: center; text-align: center; padding: 1rem 0; }
.signup-ok h3 { font-size: 2rem; color: var(--brass-hi); }
.signup-ok p { color: var(--muted); max-width: 36ch; }
.logo--seal { font-size: 3rem; line-height: 1; }
.signup-ok:focus { outline: none; }
@media (max-width: 900px) { .join__grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; background: var(--ink); box-shadow: inset 0 2px 0 var(--line); }
.foot__in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.foot__brand { display: grid; gap: 1rem; align-content: start; }
.foot__brand > p:last-child { color: var(--muted); max-width: 28ch; }
.foot h2 { font: 400 .78rem/1.2 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); text-shadow: none; margin: 0 0 .9rem; }
.foot h2 + ul + h2, .foot ul + h2 { margin-top: 1.6rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { color: var(--brass-hi); text-decoration: underline; }
.foot__note { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--dim); font-size: .92rem; }
@media (max-width: 900px) { .foot__in { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }

/* ---------- small pages (beta links, 404) ---------- */
.page__main { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 7rem var(--gutter) 4rem; background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(214, 166, 78, .12), transparent 70%), var(--night); }
.page__box { width: min(100%, 38rem); padding: clamp(1.6rem, 4vw, 2.8rem); display: grid; gap: 1.1rem; text-align: center; justify-items: center; }
.page__box h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); color: var(--brass-hi); text-shadow: 0 3px 0 var(--ink); }
.page__box > p:not(.logo) { color: var(--muted); }
.page__doc { width: min(100%, 46rem); text-align: left; justify-items: start; gap: .9rem; }
.page__doc h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem); margin-top: .8rem; }
.page__doc > p:not(.logo), .page__doc li { color: var(--text); font-family: var(--f-read); font-size: 1.06rem; line-height: 1.65; }
.page__doc .page__date { color: var(--dim); font-size: .95rem; margin-top: -.5rem; }
.page__doc .lead { color: var(--muted); }
.page--doc .page__main { place-items: start center; }
.page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: .6rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
  .cell--img:hover img, .shot button:hover img { transform: none; }
}

/* ---- hero sprites (generated by tools/build.js from assets/sprites/sprites.json) ---- */
.spr--warrior { --fw: 104; --fh: 100; --idle: 4; --walk: 8; --atk: 6; --cols: 8; background-image: url(/assets/sprites/warrior.png); }
.spr--ranger { --fw: 104; --fh: 100; --idle: 4; --walk: 8; --atk: 6; --cols: 8; background-image: url(/assets/sprites/ranger.png); }
.spr--mage { --fw: 104; --fh: 100; --idle: 4; --walk: 8; --atk: 6; --cols: 8; background-image: url(/assets/sprites/mage.png); }
.spr--priest { --fw: 104; --fh: 100; --idle: 4; --walk: 8; --atk: 6; --cols: 8; background-image: url(/assets/sprites/priest.png); }
.spr--race-human { --fw: 104; --fh: 100; --idle: 4; --walk: 8; --atk: 6; --cols: 8; background-image: url(/assets/sprites/race-human.png); }
.spr--race-elf { --fw: 104; --fh: 100; --idle: 4; --walk: 8; --atk: 6; --cols: 8; background-image: url(/assets/sprites/race-elf.png); }
.spr--race-dwarf { --fw: 104; --fh: 100; --idle: 4; --walk: 8; --atk: 6; --cols: 8; background-image: url(/assets/sprites/race-dwarf.png); }
.spr--race-orc { --fw: 104; --fh: 100; --idle: 4; --walk: 8; --atk: 6; --cols: 8; background-image: url(/assets/sprites/race-orc.png); }
.spr--race-draco { --fw: 104; --fh: 100; --idle: 4; --walk: 8; --atk: 6; --cols: 8; background-image: url(/assets/sprites/race-draco.png); }
.spr--echo-musgalho_1 { --fw: 44; --fh: 39; --idle: 8; --walk: 6; --atk: 4; --cols: 8; background-image: url(/assets/sprites/echo-musgalho_1.png); }
.spr--echo-musgalho_2 { --fw: 59; --fh: 44; --idle: 8; --walk: 6; --atk: 4; --cols: 8; background-image: url(/assets/sprites/echo-musgalho_2.png); }
.spr--echo-musgalho_3 { --fw: 67; --fh: 55; --idle: 8; --walk: 6; --atk: 4; --cols: 8; background-image: url(/assets/sprites/echo-musgalho_3.png); }
.spr--echo-ossinho_1 { --fw: 32; --fh: 33; --idle: 8; --walk: 6; --atk: 4; --cols: 8; background-image: url(/assets/sprites/echo-ossinho_1.png); }
.spr--echo-geadim_1 { --fw: 50; --fh: 34; --idle: 8; --walk: 6; --atk: 4; --cols: 8; background-image: url(/assets/sprites/echo-geadim_1.png); }
.spr--echo-pirilume_1 { --fw: 29; --fh: 28; --idle: 8; --walk: 6; --atk: 4; --cols: 8; background-image: url(/assets/sprites/echo-pirilume_1.png); }
.spr--echo-lodinho_1 { --fw: 35; --fh: 30; --idle: 8; --walk: 6; --atk: 4; --cols: 8; background-image: url(/assets/sprites/echo-lodinho_1.png); }
.spr--spec-warrior-bulwark { --fw: 104; --fh: 100; --idle: 4; --walk: 8; --atk: 6; --cols: 8; background-image: url(/assets/sprites/spec-warrior-bulwark.png); }
.spr--spec-warrior-berserker { --fw: 104; --fh: 100; --idle: 4; --walk: 8; --atk: 6; --cols: 8; background-image: url(/assets/sprites/spec-warrior-berserker.png); }
.spr--spec-warrior-vanguard { --fw: 104; --fh: 100; --idle: 4; --walk: 8; --atk: 6; --cols: 8; background-image: url(/assets/sprites/spec-warrior-vanguard.png); }
.spr--spec-ranger-marksman { --fw: 104; --fh: 100; --idle: 4; --walk: 8; --atk: 6; --cols: 8; background-image: url(/assets/sprites/spec-ranger-marksman.png); }
.spr--spec-ranger-trapper { --fw: 104; --fh: 100; --idle: 4; --walk: 8; --atk: 6; --cols: 8; background-image: url(/assets/sprites/spec-ranger-trapper.png); }
.spr--spec-ranger-skirmisher { --fw: 104; --fh: 100; --idle: 4; --walk: 8; --atk: 6; --cols: 8; background-image: url(/assets/sprites/spec-ranger-skirmisher.png); }
.spr--druid { --fw: 104; --fh: 100; --idle: 4; --walk: 8; --atk: 4; --cols: 8; background-image: url(/assets/sprites/druid.png); }
.spr--druid-bear { --fw: 140; --fh: 112; --idle: 4; --walk: 8; --atk: 6; --cols: 8; background-image: url(/assets/sprites/druid-bear.png); }
.spr--druid-lynx { --fw: 132; --fh: 102; --idle: 4; --walk: 8; --atk: 6; --cols: 8; background-image: url(/assets/sprites/druid-lynx.png); }
