/* Celestra MU, after the owner's cinematic guide: the characters carry the page, the interface stays quiet.
   Blue-black, ivory and matte gold, with one accent that follows the character on screen. No shine on surfaces.
   The stage behind everything is a film (js/stage.js). Nothing here may blur over it: backdrop-filter on a picture that
   moves every frame costs more than the whole video. */

@font-face { font-family: Cinzel; font-weight: 500; font-display: swap; src: url(/fonts/cinzel-500.woff2) format("woff2"); }
@font-face { font-family: Cormorant; font-weight: 500; font-display: swap; src: url(/fonts/cormorant-500.woff2) format("woff2"); }
@font-face { font-family: Cormorant; font-weight: 500; font-style: italic; font-display: swap; src: url(/fonts/cormorant-500i.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/fonts/inter-500.woff2) format("woff2"); }

:root {
    /* One unit that follows the smaller side of the window, so a short window shrinks the hero as a narrow one does. */
    --u: min(1vw, 1.75vh);
    --safe-l: env(safe-area-inset-left, 0px);
    --safe-r: env(safe-area-inset-right, 0px);
    --gutter: clamp(1rem, 3.2vw, 3.5rem);
    --head: 4.75rem;
    --bg: #080a10;
    --bg-rgb: 8 10 16;
    --card: rgb(14 17 26 / 78%);
    --card-solid: #0e111a;
    --raise: rgb(255 255 255 / 4%);
    --line: rgb(218 198 166 / 15%);
    --line-2: rgb(218 198 166 / 32%);
    --text: #d3d0ca;
    --strong: #f2eee5;
    --muted: #a2a1aa;
    --gold: #d4b17a;
    --gold-soft: #ead6b2;
    --gold-deep: #a9834e;
    --accent: #b49aef;
    --hp: #8f1a1e;
    --mp: #1c3fa8;
    --ok: #7dc79a;
    --warn: #e0b873;
    --bad: #e28c8c;
    --display: Cinzel, "Times New Roman", serif;
    --title: Cormorant, Georgia, "Times New Roman", serif;
    --body: Inter, "Segoe UI", system-ui, sans-serif;
    --radius: .25rem;
}

.c-elfa { --c: #b49aef; }
.c-caballero { --c: #d4b17a; }
.c-gladiador { --c: #ed8177; }
.c-mago { --c: #80c8ee; }
.c-senor { --c: #bea8df; }

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

/* Above full HD the whole interface grows with the window. The smaller side rules, so an ultrawide does not overscale.
   It starts from 100%, which keeps the size the visitor chose in the browser. */
html {
    font-size: clamp(100%, calc(100% + (min(100vw, 178vh) - 1920px) * .0042), 170%);
    background: var(--bg);
    scroll-behavior: smooth; scroll-padding-top: var(--head); -webkit-text-size-adjust: 100%;
    /* A dark site: native scrollbars, date pickers and dropdown lists follow it (Web Interface Guidelines, theming). */
    color-scheme: dark;
    -webkit-tap-highlight-color: rgb(212 177 122 / 18%);
}

body {
    display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh;
    margin: 0;
    color: var(--text);
    font: 400 .9375rem/1.7 var(--body);
    font-variant-numeric: lining-nums;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-soft); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: #0d0e14; }

h1, h2, h3 { font-family: var(--title); font-weight: 500; color: var(--strong); line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .9em; color: var(--gold-soft); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: .75rem; top: -3.75rem; z-index: 100; padding: .5em 1em; background: var(--gold); color: #111; }
.skip:focus { top: .75rem; }
.muted { color: var(--muted); }

.wrap { width: min(max(75rem, 88vw), 100% - 2 * var(--gutter) - var(--safe-l) - var(--safe-r)); margin-inline: auto; }
.wrap-narrow { width: min(51.25rem, 100% - 2 * var(--gutter) - var(--safe-l) - var(--safe-r)); }

.eyebrow { margin: 0 0 .9em; font: 500 .69rem/1.4 var(--body); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.eyebrow a { color: inherit; }

.frame { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }

.dot { display: inline-block; width: .4375rem; height: .4375rem; border-radius: 50%; background: var(--bad); flex: none; }
.dot.is-on { background: var(--ok); }

.test-ribbon { position: fixed; left: 50%; top: var(--head); z-index: 60; transform: translateX(-50%); width: max-content; max-width: 90vw; padding: .125em .875em; background: #4a3612; border-radius: var(--radius); color: #f2dfb6; font-size: .8rem; }

/* The stage. */

/* The film always covers the window. A wide window keeps the subject, who stands right of centre, and a standing one keeps the heads. */
.stage-poster, .stage-video {
    position: fixed; inset: 0; width: 100%; height: 100vh; height: 100lvh; max-width: none;
    object-fit: cover; object-position: 70% 36%;
}
.stage-poster { z-index: -3; }
.stage-video { z-index: -2; opacity: 0; transition: opacity 1.4s ease; pointer-events: none; }
.stage-video.is-on { opacity: 1; }
.stage-shade { position: fixed; inset: 0; z-index: -1; background: var(--bg); opacity: var(--shade, 0); transition: opacity .7s ease; pointer-events: none; }

@media (max-aspect-ratio: 11/10) {
    .stage-poster, .stage-video { object-position: 50% 18%; }
}

@media (min-aspect-ratio: 5/2) {
    .stage-poster, .stage-video { object-position: 70% 14%; }
}

/* Pages for reading: the character stands on the right, the words have the dark side of the window. */
.look-banner { --card: rgb(13 16 24 / 90%); }
.look-banner main::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgb(var(--bg-rgb) / 92%) 0%, rgb(var(--bg-rgb) / 74%) 34%, transparent 66%); }

/* Header. It floats over the art and gains a ground only once the page has moved. */

.head {
    position: fixed; inset: 0 0 auto; z-index: 50;
    display: flex; align-items: center; gap: 1.5rem;
    height: var(--head);
    padding: 0 calc(var(--gutter) + var(--safe-r)) 0 calc(var(--gutter) + var(--safe-l));
    border-bottom: 1px solid transparent;
    transition: background .35s, border-color .35s;
}
.head.is-solid, .menu-open .head, body:not(.look-hero) .head { background: rgb(var(--bg-rgb) / 92%); border-bottom-color: var(--line); }
/* Over the hero the bar stays open, with a soft shade so the links read on a bright frame of the film (taste-skill
   checker, 6 Nov 2026: 2.9:1 at the worst tenth). */
.look-hero .head:not(.is-solid) { background: linear-gradient(rgb(var(--bg-rgb) / 70%), rgb(var(--bg-rgb) / 0%)) border-box; }

.brand { display: flex; align-items: center; gap: .625rem; color: var(--strong); flex: none; }
.brand:hover { color: var(--strong); }
.brand img { flex: none; width: 3.75rem; height: auto; }
.brand b { display: block; font: 500 1.14rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; }
.brand small { display: block; margin-top: .25rem; color: var(--gold); font: 500 .62rem/1 var(--body); letter-spacing: .72em; text-indent: .1em; text-transform: uppercase; }

.menu { display: flex; align-items: center; gap: .25rem; flex: 1; justify-content: center; }
.menu > a, .menu-group > a { position: relative; display: block; padding: .75rem .875rem; color: #d7d4cf; font: 500 .8rem/1.2 var(--body); letter-spacing: .03em; }
.menu > a:hover, .menu-group > a:hover, .menu .is-current, .menu-group.is-current > a { color: var(--gold-soft); }

.menu-group { position: relative; }
.menu-drop {
    position: absolute; top: 100%; left: 0; min-width: 19.375rem; padding: .5rem;
    background: var(--card-solid); border: 1px solid var(--line-2); border-radius: var(--radius);
    visibility: hidden; opacity: 0; transform: translateY(.25rem);
    transition: opacity .15s, transform .15s, visibility .15s;
}
.menu-group:hover .menu-drop, .menu-group:focus-within .menu-drop { visibility: visible; opacity: 1; transform: none; }
.menu-drop a { display: block; padding: .5rem .625rem; border-radius: var(--radius); color: var(--text); }
.menu-drop a:hover { background: var(--raise); }
.menu-drop b { display: block; font: 500 .96rem/1.3 var(--body); color: var(--strong); }
.menu-drop small { color: var(--muted); font-size: .88rem; }

.menu-account { display: none; }
.head-end { display: flex; align-items: center; gap: .625rem; margin-left: auto; flex: none; }
.head-status { display: flex; align-items: center; gap: .4375rem; margin-right: .375rem; color: var(--text); font-size: .86rem; white-space: nowrap; }
.head-status:hover { color: var(--strong); }
.head-players { color: var(--muted); }
.head-players b { color: var(--gold-soft); font-weight: 500; }

.motion, .round {
    display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; padding: 0;
    background: rgb(var(--bg-rgb) / 42%); border: 1px solid var(--line-2); border-radius: 50%;
    color: var(--gold-soft); cursor: pointer; transition: background .2s, border-color .2s;
}
.motion:hover, .round:hover { background: rgb(var(--bg-rgb) / 76%); border-color: var(--gold); }
.motion svg, .round svg { width: 1.125rem; height: 1.125rem; }
.motion { display: none; }
.has-stage .motion { display: grid; }
.motion-play, .stage-paused .motion-pause { display: none; }
.stage-paused .motion-play { display: block; }
.music-on { display: none; }
.music[aria-pressed="true"] .music-on { display: block; }
.music[aria-pressed="true"] .music-off { display: none; }
.music.is-calling { border-color: var(--gold); color: var(--strong); animation: music-call 2.4s ease-in-out infinite; }
@keyframes music-call { 0%, 100% { box-shadow: 0 0 0 0 rgb(212 177 122 / 0%); } 50% { box-shadow: 0 0 0 .4rem rgb(212 177 122 / 22%); } }

.menu-toggle { display: none; width: 2.75rem; height: 2.75rem; padding: .5625rem; background: none; border: 0; color: var(--gold-soft); cursor: pointer; }
.menu-toggle svg { width: 1.625rem; height: 1.625rem; }

/* Buttons: flat matte gold and a hairline. */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .875rem;
    min-height: 3.375rem; padding: 0 1.75rem;
    border: 1px solid var(--line-2); border-radius: var(--radius);
    background: rgb(var(--bg-rgb) / 52%); cursor: pointer;
    color: var(--strong); font: 500 .875rem/1 var(--body); letter-spacing: .01em; white-space: nowrap;
    transition: background .25s, border-color .25s, color .25s, transform .25s;
}
.btn:hover { color: #fff; border-color: var(--gold); background: rgb(var(--bg-rgb) / 76%); }
.btn:active { transform: translateY(1px); }
.btn .arrow { width: 1.25rem; height: 1.25rem; transition: transform .25s; }
.btn:hover .arrow { transform: translateX(.1875rem); }
.btn-gold { border-color: transparent; background: linear-gradient(115deg, #e4c99e, #bb945d); color: #1d1812; }
.btn-gold:hover { color: #1d1812; border-color: transparent; background: linear-gradient(115deg, #eed8b5, #c9a26c); }
.btn-quiet { background: none; }
.btn-small { min-height: 2.5rem; padding: 0 1.125rem; font-size: .8rem; }
.btn-block { display: flex; width: 100%; }

/* Hero */

.hero { position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; padding: calc(var(--head) + .5rem) calc(var(--gutter) + var(--safe-r)) clamp(1rem, 3vh, 2rem) calc(var(--gutter) + var(--safe-l)); isolation: isolate; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        linear-gradient(90deg, rgb(var(--bg-rgb) / 88%) 0%, rgb(var(--bg-rgb) / 66%) 22%, rgb(var(--bg-rgb) / 22%) 42%, transparent 58%),
        linear-gradient(0deg, rgb(var(--bg-rgb) / 74%) 0%, rgb(var(--bg-rgb) / 52%) 9%, transparent 30%),
        linear-gradient(180deg, rgb(var(--bg-rgb) / 62%) 0%, transparent 16%);
    transition: opacity .6s;
}
.hero-copy { flex: 1; display: flex; flex-direction: column; justify-content: center; width: min(100%, 38rem, 44vw); padding-block: 1rem; }
.hero-eyebrow { display: flex; align-items: center; gap: .875rem; margin-bottom: 1.25rem; }
.hero-eyebrow i { width: 2.125rem; height: 1px; background: var(--gold); }
.hero h1 { margin: 0; font: 500 clamp(2.5rem, calc(var(--u) * 5.9), 7rem)/1.02 var(--display); letter-spacing: .01em; text-transform: uppercase; text-shadow: 0 .125rem 1.5rem rgb(0 0 0 / 40%); }
.hero h1 em { display: block; color: var(--gold-soft); font-style: normal; }
.hero-lede { margin: 1.25rem 0 0; color: #d4cec8; font-size: clamp(1.02rem, calc(var(--u) * 1.15), 1.5rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-trailer { display: none; background: rgb(var(--bg-rgb) / 38%); border-color: transparent; gap: .5rem; padding-inline: 1rem; }
.hero-trailer svg { width: 1rem; height: 1rem; color: var(--gold-soft); }
.has-stage .hero-trailer { display: inline-flex; }
.hero-note { display: flex; align-items: center; gap: 1rem; margin: 1.75rem 0 0; color: #a19a91; font-size: .78rem; line-height: 1.5; }
.hero-note b { padding-right: 1rem; border-right: 1px solid var(--line-2); color: #c7b38e; font: 500 1.75rem/1 var(--display); }

.hero-copy > * { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .1s; }
.hero-copy > :nth-child(3) { animation-delay: .22s; }
.hero-copy > :nth-child(4) { animation-delay: .34s; }
.hero-copy > :nth-child(5) { animation-delay: .46s; }
.hero-foot { position: relative; animation: rise 1s .5s both; }
.swap { animation: rise .7s ease-out both; }

.hero-caption { position: absolute; right: 0; bottom: calc(100% + 1.25rem); display: flex; align-items: center; gap: 1rem; max-width: min(30rem, 100%); }
.caption-index { flex: none; color: #bab4ad; font-size: .76rem; letter-spacing: .16em; }
.caption-index b { color: var(--gold-soft); font-weight: 500; }
.hero-caption p, .cinema-bar p { margin: 0; padding-left: 1rem; border-left: 1px solid rgb(212 177 122 / 50%); }
.hero-caption p b, .cinema-bar p b { display: block; color: var(--strong); font: 500 1.6rem/1.15 var(--title); }
.hero-caption p span, .cinema-bar p span { display: block; color: #c8c0ba; font-size: .8rem; }
.hero-caption .round { display: none; }
.has-stage .hero-caption .round { display: grid; }

.dock { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .375rem; }
.dock-tab {
    position: relative; display: flex; align-items: center; gap: .75rem; min-width: 0; padding: .4375rem .75rem .4375rem .4375rem;
    background: rgb(var(--bg-rgb) / 60%); border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--text); transition: background .3s, border-color .3s;
}
.dock-tab:hover { background: rgb(var(--bg-rgb) / 82%); border-color: var(--line-2); color: var(--text); }
.dock-tab img { flex: none; width: 2.875rem; height: 2.875rem; border-radius: 2px; object-fit: cover; filter: saturate(.55); opacity: .72; transition: filter .3s, opacity .3s; }
.dock-tab span { min-width: 0; }
.dock-tab small { display: block; color: var(--c); font-size: .66rem; line-height: 1.3; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-tab b { display: block; color: var(--strong); font: 500 .86rem/1.3 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-tab i { position: absolute; left: -1px; right: -1px; bottom: -1px; height: 2px; background: var(--c); transform: scaleX(0); transform-origin: left; }
.dock-tab:hover img, .dock-tab.is-active img { filter: none; opacity: 1; }
.dock-tab.is-active { background: rgb(var(--bg-rgb) / 84%); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.dock-tab.is-active i { transform: scaleX(1); }

/* The picture alone. Everything steps aside except a caption and the way out. */

.cinema-bar { position: fixed; inset: auto 0 0; z-index: 55; display: none; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem calc(var(--gutter) + var(--safe-r)) 1.5rem calc(var(--gutter) + var(--safe-l)); background: linear-gradient(0deg, rgb(var(--bg-rgb) / 82%), transparent); }
.cinema main > *:not(.cinema-bar), .cinema .footer, .cinema .head { visibility: hidden; }
.cinema .cinema-bar { display: flex; }
.cinema-actions { display: flex; gap: .5rem; flex: none; }
.cinema-bar .motion { display: grid; }
.round-back svg { transform: scaleX(-1); }
.cinema { overflow: hidden; }

/* Live band: the game's two orbs, reading the real server. */

/* The hero's lower shade carries on below its edge, or the end of the section shows as a line across the picture. */
.live { position: relative; padding: 1.5rem 0 0; isolation: isolate; }
.live::before { content: ""; position: absolute; inset: 0 0 auto; z-index: -1; height: 16rem; background: linear-gradient(180deg, rgb(var(--bg-rgb) / 74%), transparent); pointer-events: none; }
.live-row { display: flex; align-items: center; gap: 2rem; padding-block: 1rem; border-block: 1px solid var(--line); }
.live-orbs { display: flex; gap: .875rem; flex: none; }
.orb { position: relative; width: 4.75rem; height: 4.75rem; flex: none; overflow: hidden; border-radius: 50%; background: #06060a; box-shadow: 0 0 0 1px var(--line-2), 0 0 0 .25rem rgb(var(--bg-rgb) / 70%); }
.orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 -.625rem 1.125rem rgb(0 0 0 / 60%), inset 0 .5rem 1rem rgb(0 0 0 / 35%); pointer-events: none; }
.orb-liquid { position: absolute; inset: 0; transition: clip-path .6s; }
.orb-hp .orb-liquid { background: radial-gradient(circle at 42% 34%, #bd2a2e, var(--hp) 58%, #4d0b0f); }
.orb-mp .orb-liquid { background: radial-gradient(circle at 42% 34%, #2f5fd0, var(--mp) 58%, #0b1d5e); clip-path: inset(88% 0 0 0); }
.orb-hp.is-empty .orb-liquid { clip-path: inset(100% 0 0 0); }
.orb-value { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; text-shadow: 0 1px 3px #000, 0 0 .5rem #000; }
.orb-value b { font: 500 1.14rem/1 var(--display); color: var(--strong); }
.orb-value small { color: #e6e1d6; font-size: .7rem; }

.live-facts { display: grid; grid-template-columns: repeat(5, 1fr); flex: 1; margin: 0; }
.live-facts div { padding: 2px .625rem; text-align: center; border-left: 1px solid var(--line); }
.live-facts dt { color: var(--muted); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; }
.live-facts dd { margin: .125rem 0 0; color: var(--gold-soft); font: 500 clamp(1.05rem, 1.7vw, 1.45rem)/1.2 var(--display); white-space: nowrap; }

/* Sections */

.block { padding: clamp(2.5rem, 5vh, 4rem) 0 0; }
/* The sign-up card ends where the next section's ground starts: keep it off that edge. */
#registro { padding-bottom: clamp(2rem, 4vh, 3rem); }
main > .block:last-of-type { padding-bottom: clamp(2.5rem, 5vh, 4rem); }
/* With no stage behind (no script, no graphics) the poster is sharp and bright, so the sections bring their own ground. */
body:not(.has-stage) .block, body:not(.has-stage) .live, body:not(.has-stage) .chapter { background: rgb(var(--bg-rgb) / 88%); }

.section-title, .lead, .page-head { text-shadow: 0 1px 1.25rem rgb(var(--bg-rgb) / 90%), 0 0 .25rem rgb(var(--bg-rgb) / 60%); }
.section-title { max-width: 56rem; margin: 0 auto 1.5rem; text-align: center; }
.section-title h1, .section-title h2 { font-size: clamp(2.1rem, 4.4vw, 3.9rem); margin-bottom: .3em; }
.section-title > p:last-child { color: var(--muted); font-size: 1.14rem; margin: 0; }

.lead { display: flex; align-items: flex-end; justify-content: space-between; gap: 3rem; margin-bottom: 1.5rem; }
.lead h2 { margin: 0; font-size: clamp(2.3rem, 4.8vw, 4.2rem); }
.lead > p { flex: none; width: min(24rem, 40%); margin: 0; color: var(--muted); }

/* Universe */

.worlds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.world-card { display: block; overflow: hidden; background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: border-color .3s, transform .3s; }
.world-card:hover { border-color: var(--line-2); transform: translateY(-.1875rem); color: var(--text); }
.world-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.2s ease; }
.world-card:hover img { transform: scale(1.035); }
.world-text { display: block; padding: .75rem 1rem .875rem; }
.world-text b { display: block; color: var(--strong); font: 500 1.5rem/1.2 var(--title); }
.world-text em { display: block; color: var(--text); font-style: normal; }
.world-text small { display: block; margin-top: .125rem; color: var(--gold); font-size: .78rem; }
.grown { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: .75rem; }
.grown-card { display: grid; grid-template-columns: 7rem minmax(0, 1fr); align-items: center; gap: 1rem; padding: .5rem 1rem .5rem .5rem; color: var(--text); transition: border-color .25s; }
.grown-card:hover { border-color: var(--line-2); color: var(--text); }
.grown-card img { width: 7rem; height: 7rem; object-fit: cover; border-radius: var(--radius); background: radial-gradient(circle at 50% 55%, rgb(212 177 122 / 12%), transparent 70%); }
.grown-card b { display: block; color: var(--strong); font: 500 1.4rem/1.2 var(--title); }
.grown-card small { display: block; margin-top: .25rem; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.route { margin-top: 1.5rem; }
.route h3 { margin-bottom: .2em; font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.route > p { max-width: 40rem; color: var(--muted); }

.rail { display: grid; grid-template-columns: repeat(4, 1fr); margin: 2rem 0 0; padding: 0; list-style: none; border-block: 1px solid var(--line); }
.rail li + li { border-left: 1px solid var(--line); }
.rail a { display: block; height: 100%; padding: 1.25rem 1.5rem; color: var(--text); transition: background .25s; }
.rail a:hover { background: var(--raise); color: var(--text); }
.rail b { display: block; color: var(--gold-soft); font: 500 1.75rem/1.15 var(--display); }
.rail span { display: block; margin-top: .25rem; color: var(--strong); }
.rail small { display: block; margin-top: .25rem; color: var(--muted); font-size: .94rem; line-height: 1.45; }

/* Characters */

.cast-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; padding-bottom: clamp(2rem, 6vh, 4rem); }
.cast-card { position: relative; display: block; overflow: hidden; background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: border-color .35s, transform .35s; }
.cast-card:hover { border-color: var(--c); transform: translateY(-.25rem); }
.cast-card img { width: 100%; height: clamp(17rem, 46vh, 34rem); object-fit: cover; object-position: 50% 20%; transition: transform .8s ease, filter .5s; filter: saturate(.86); }
.cast-card:hover img { transform: scale(1.03); filter: none; }
.card-number { position: absolute; left: .875rem; top: .75rem; padding-left: .5rem; border-left: 2px solid var(--c); color: var(--strong); font: 500 .84rem/1.3 var(--display); text-shadow: 0 1px .375rem #000; }
.card-text { position: relative; display: block; padding: .875rem 1rem 1rem; background: var(--card-solid); }
.card-text b { display: block; color: var(--strong); font: 500 clamp(1.25rem, 1.8vw, 1.55rem)/1.15 var(--title); }
.card-text small { display: block; margin-top: .125rem; color: var(--c); font-size: .78rem; }
.card-text .arrow { position: absolute; right: .875rem; bottom: .9375rem; width: 1.125rem; height: 1.125rem; color: var(--c); transition: transform .25s; }
.cast-card:hover .arrow { transform: translateX(.1875rem); }

.class-chapter h3 { margin: 0 0 .15em; font-size: clamp(2.8rem, calc(var(--u) * 5.2), 5.6rem); line-height: 1.02; }
.class-chapter .eyebrow { color: var(--c); }
.class-line { margin-bottom: .6em; color: var(--strong); font: 500 italic clamp(1.25rem, 1.8vw, 1.6rem)/1.3 var(--title); }
.tags { display: flex; flex-wrap: wrap; gap: .625rem 1.125rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.tags li { padding-left: .625rem; border-left: 1px solid var(--c, var(--gold)); color: var(--gold-soft); font-size: .78rem; letter-spacing: .03em; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(5.75rem, 1fr)); gap: .625rem 1.25rem; max-width: 30rem; margin: 0 0 1.5rem; }
.stats div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; }
.stats dt { color: var(--muted); font-size: .72rem; }
.stats dd { margin: 0; color: var(--strong); font: 500 1rem/1.3 var(--display); }
.stats i { grid-column: 1 / -1; height: 2px; margin-top: .25rem; background: var(--line); overflow: hidden; }
.stats i::after { content: ""; display: block; height: 100%; background: var(--c, var(--gold)); transform: scaleX(var(--v, 0)); transform-origin: left; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }

/* The star map of the continent. */

.starmap svg { display: block; width: 100%; height: auto; overflow: visible; }
.star-path { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 6; }
.star-core { fill: var(--gold-soft); transition: r .2s; }
.star a:hover .star-core, .star a:focus-visible .star-core { r: 6px; }
.star a:hover .star-name { fill: var(--gold-soft); }
.star-halo { fill: none; stroke: var(--gold); stroke-width: 1; opacity: .45; transform-box: fill-box; transform-origin: center; animation: halo 4s ease-in-out infinite; }
.star:nth-child(3n) .star-halo { animation-delay: 1.2s; }
.star:nth-child(3n + 1) .star-halo { animation-delay: 2.4s; }
.star-name { fill: var(--strong); font: 500 24px var(--title); text-anchor: middle; }
.star-level { fill: var(--muted); font: 400 13px var(--body); text-anchor: middle; }
.starlist { display: none; margin: 0; padding: 0; list-style: none; }
.starlist a { display: grid; grid-template-columns: 1fr auto 5.5rem; gap: .75rem; padding: .625rem 0; border-top: 1px solid var(--line); color: inherit; }
.starlist b { color: var(--strong); font: 500 1.25rem/1.2 var(--title); }
.starlist span { color: var(--muted); font-size: .84rem; text-align: right; }

@keyframes halo { 50% { transform: scale(1.5); opacity: .12; } }

/* Big numbers of the server. */

.numbers { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 1rem; border-block: 1px solid var(--line); }
.numbers div { padding: 1.25rem .75rem; text-align: center; }
.numbers div + div { border-left: 1px solid var(--line); }
.numbers dd { margin: 0; color: var(--gold-soft); font: 500 clamp(1.8rem, 3.4vw, 3rem)/1.1 var(--display); }
.numbers dt { margin-top: .25rem; color: var(--muted); font-size: .78rem; }

/* The three first places. */

.podium { list-style: none; margin: 0 0 .25rem; padding: 0; }
.podium li { position: relative; display: grid; grid-template-columns: 3.25rem 1.75rem 1fr auto; align-items: center; gap: .75rem; padding: .5rem .25rem; border-top: 1px solid var(--line); }
.podium img { width: 3.25rem; height: 3.25rem; border-radius: 2px; object-fit: cover; }
.podium b { color: var(--gold); font: 500 1.4rem/1 var(--display); }
.podium small { display: block; color: var(--c, var(--muted)); font-size: .78rem; }
.podium span { color: var(--strong); }
.podium em { color: var(--text); font-style: normal; font-size: .84rem; white-space: nowrap; }
.podium .place-1 { background: linear-gradient(90deg, rgb(212 177 122 / 10%), transparent 70%); }

/* Chapter marks at the edge of the window. */

.chapters { position: fixed; right: .625rem; top: 50%; z-index: 40; display: none; flex-direction: column; gap: .125rem; transform: translateY(-50%); }
.chapters a { position: relative; display: block; width: 1.375rem; height: 1.375rem; }
.chapters a::after { content: ""; position: absolute; right: .5rem; top: 50%; width: .375rem; height: 1px; background: var(--line-2); transition: width .3s, background .3s; }
.chapters a:hover::after, .chapters a.is-current::after { width: .875rem; background: var(--gold); }
.chapters span { position: absolute; right: 1.75rem; top: 50%; padding: .125rem .5rem; background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); font-size: .72rem; white-space: nowrap; opacity: 0; transform: translate(.25rem, -50%); pointer-events: none; transition: opacity .2s, transform .2s; }
.chapters a:hover span, .chapters a:focus-visible span { opacity: 1; transform: translate(0, -50%); }

@media (min-width: 1280px) and (min-height: 620px) {
    .has-stage .chapters { display: flex; }
}

/* Chapters of a long story: a whole window of art, with the words in its dark side. */

.chapter { position: relative; display: flex; align-items: center; min-height: 80vh; min-height: 80svh; padding-block: calc(var(--head) + .5rem) 1.5rem; isolation: isolate; }
.chapter::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgb(var(--bg-rgb) / 90%) 0%, rgb(var(--bg-rgb) / 76%) 28%, rgb(var(--bg-rgb) / 16%) 50%, transparent 62%); }
.chapter-copy { text-shadow: 0 1px 1.25rem rgb(var(--bg-rgb) / 90%); }
.chapter-copy > * { max-width: min(36rem, 46vw); }
.chapter h1, .chapter h2 { font-size: clamp(2.6rem, calc(var(--u) * 5), 5.2rem); line-height: 1.03; }
.chapter-lede { color: var(--strong); font: 500 italic clamp(1.3rem, 2vw, 1.75rem)/1.3 var(--title); }
.chapter p { color: #d6d2cb; }
.chapter-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.chapter .btn { text-shadow: none; }

.timeline { max-width: 54rem; margin: 0 auto; padding: 0; list-style: none; }
.timeline li { position: relative; display: grid; grid-template-columns: 6rem 1fr; gap: 2rem; padding: 0 0 2rem; }
.timeline li::before { content: ""; position: absolute; left: 7rem; top: .75rem; bottom: -.75rem; width: 1px; background: var(--line-2); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: calc(7rem - .25rem); top: .625rem; width: .5625rem; height: .5625rem; background: var(--gold); transform: rotate(45deg); }
.timeline b { color: var(--gold-soft); font: 500 1.5rem/1.2 var(--display); text-align: right; }
.timeline div { padding-left: 1rem; }
.timeline h3 { margin-bottom: .2em; font-size: 1.75rem; }
.timeline p { margin: 0; color: var(--muted); }
.timeline .is-astral b, .timeline .is-astral h3 { color: var(--accent); }

.sources h2 { font-size: 1.75rem; }
.sources p, .sources li { color: var(--muted); font-size: .86rem; }
.sources ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: .25rem 1.5rem; margin: 0; padding: 0; list-style: none; }

/* New look: a real drag comparison. */

.compare-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 1.25rem 2.5rem; }
.compare-tabs { grid-column: 2; display: flex; flex-wrap: wrap; align-content: flex-start; gap: .375rem; }
.compare-side { grid-column: 2; }
.compare-tabs label { padding: .3125rem .875rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--muted); font-size: .9rem; cursor: pointer; }
.compare-tabs label:hover { color: var(--text); }

#v-caballero:checked ~ .compare-tabs .vl-caballero, #v-mago:checked ~ .compare-tabs .vl-mago, #v-elfa:checked ~ .compare-tabs .vl-elfa,
#v-gladiador:checked ~ .compare-tabs .vl-gladiador, #v-senor:checked ~ .compare-tabs .vl-senor { border-color: var(--gold); color: var(--strong); }

#v-caballero:checked ~ .compare .pair-caballero, #v-mago:checked ~ .compare .pair-mago, #v-elfa:checked ~ .compare .pair-elfa,
#v-gladiador:checked ~ .compare .pair-gladiador, #v-senor:checked ~ .compare .pair-senor { display: block; }

.compare-radio:focus-visible ~ .compare-tabs { outline: 2px solid var(--gold); outline-offset: 2px; }

.compare { --split: 50%; grid-column: 1; grid-row: 1 / span 2; justify-self: end; position: relative; height: clamp(21rem, min(78vw, 84svh), 40rem); aspect-ratio: 64 / 100; max-width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #0b0c10; }
.compare-pair { position: absolute; inset: 0; display: none; }
.compare-layer { position: absolute; inset: 0; display: flex; justify-content: center; }
.compare-layer img { width: 100%; height: 100%; object-fit: cover; }
.layer-old { background: #0d0e12; }
.layer-new { background: #0b0d14; clip-path: inset(0 0 0 var(--split)); }
.compare-tag { position: absolute; top: .875rem; z-index: 2; padding: .25rem .75rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgb(var(--bg-rgb) / 84%); color: var(--gold-soft); font-size: .78rem; letter-spacing: .08em; }
.tag-old { left: .875rem; }
.tag-new { right: .875rem; }
.compare-line { position: absolute; top: 0; bottom: 0; left: var(--split); z-index: 2; width: 1px; background: var(--gold); pointer-events: none; }
.compare-line i { position: absolute; left: 50%; top: 50%; width: 2.5rem; height: 2.5rem; margin: -1.25rem 0 0 -1.25rem; border: 1px solid var(--gold); border-radius: 50%; background: var(--card-solid); }
.compare-line i::before, .compare-line i::after { content: ""; position: absolute; top: 50%; width: .5rem; height: .5rem; margin-top: -.25rem; border: solid var(--gold); border-width: 0 0 1.5px 1.5px; }
.compare-line i::before { left: .5625rem; transform: rotate(45deg); }
.compare-line i::after { right: .5625rem; transform: rotate(225deg); }
.compare-range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-range:focus-visible + * { outline: 0; }
.compare:focus-within .compare-line i { outline: 2px solid var(--strong); outline-offset: 2px; }

.pillars { display: grid; gap: .25rem; }
.pillars > div { padding: .75rem 0; border-top: 1px solid var(--line); }
.pillars p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.pillars .eyebrow { margin-bottom: .25rem; }

.captures-title { margin: 2.5rem 0 .875rem; font-size: 1.5rem; text-align: center; }
.captures { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(19rem, 1fr); gap: .75rem; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; padding-bottom: .5rem; }
.captures a { scroll-snap-align: start; }
.captures a { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.captures img { width: 100%; transition: transform .6s; }
.captures a:hover img { transform: scale(1.03); }
.captures span { position: absolute; left: 0; bottom: 0; padding: 3px .75rem; background: rgb(var(--bg-rgb) / 84%); color: var(--text); font-size: .88rem; }

/* Server */

.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-bottom: 1rem; }
.slot-card { padding: 1.375rem 1.375rem 1.125rem; }
.slot-card svg { width: 2.125rem; height: 2.125rem; margin-bottom: .75rem; color: var(--gold); }
.slot-card h3 { font-size: 1.5rem; margin-bottom: .25em; }
.slot-card p { margin: 0; color: var(--muted); }

.tabs { display: grid; grid-template-columns: 17.5rem 1fr; gap: .75rem; }
.tab-list { display: flex; flex-direction: column; gap: .25rem; }
.tab-label { padding: .75rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); cursor: pointer; transition: border-color .15s; }
.tab-label:hover { border-color: var(--line-2); }
.tab-panel { display: none; padding: 1.5rem 1.75rem; min-height: 100%; }
.tab-panel h3 { font-size: 2rem; }

#s-reset:checked ~ .tab-panels .tp-reset, #s-vip:checked ~ .tab-panels .tp-vip, #s-afk:checked ~ .tab-panels .tp-afk,
#s-elfa:checked ~ .tab-panels .tp-elfa, #s-recompensas:checked ~ .tab-panels .tp-recompensas, #s-santuario:checked ~ .tab-panels .tp-santuario { display: block; }

#s-reset:checked ~ .tab-list .tl-reset, #s-vip:checked ~ .tab-list .tl-vip, #s-afk:checked ~ .tab-list .tl-afk,
#s-elfa:checked ~ .tab-list .tl-elfa, #s-recompensas:checked ~ .tab-list .tl-recompensas, #s-santuario:checked ~ .tab-list .tl-santuario { border-color: var(--gold); color: var(--strong); }

.tab-radio:focus-visible ~ .tab-list { outline: 2px solid var(--gold); outline-offset: 2px; }

.state { display: inline-block; margin: 0 0 .75rem; padding: 2px .625rem; border: 1px solid; border-radius: var(--radius); font-size: .78rem; letter-spacing: .08em; }
.state-test { color: var(--warn); border-color: rgb(224 184 115 / 40%); }
.state-build { color: var(--gold-soft); border-color: var(--line-2); }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: .4375rem 0 .4375rem 1.25rem; border-top: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 1rem; width: .375rem; height: .375rem; background: var(--gold); transform: rotate(45deg); }

/* First steps */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 0 0 .75rem; padding: 0; list-style: none; }
.steps li { padding: 1.25rem 1.5rem 1rem; }
.steps b { display: block; color: var(--gold-deep); font: 500 2rem/1.1 var(--display); }
.steps h3 { margin: .5rem 0 .25rem; font-size: 1.6rem; }
.steps p { margin: 0; color: var(--muted); }

.start-grid { display: grid; grid-template-columns: 2fr 1fr; gap: .75rem; }
.start-client { display: grid; grid-template-columns: 13rem 1fr; align-items: center; gap: 1.5rem; padding: 1.5rem 1.75rem; }
.start-brand { text-align: center; }
.start-brand img { width: 10rem; margin: 0 auto .5rem; }
.start-brand p { margin: 0; color: var(--strong); font: 500 1.14rem/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.start-client h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.start-client > div:last-child p:not(.eyebrow) { color: var(--muted); }
.start-help { padding: 1.375rem 1.5rem .625rem; }
.start-help h3 { margin-top: .75rem; font-size: 1.5rem; }
.start-help p { color: var(--muted); }
.start-help a { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; border-top: 1px solid var(--line); color: var(--strong); }
.start-help .arrow { width: 1.25rem; height: 1.25rem; color: var(--gold); }
.bento-icon { width: 2rem; height: 2rem; color: var(--gold); }

/* Board */

.board-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.board-panel { padding: 1.25rem 1.5rem; }
.board-panel header { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: .625rem; }
.board-panel h2 { margin: 0; font-size: 1.75rem; }
.empty { margin: 0; padding: 1.25rem .5rem; color: var(--muted); text-align: center; }

.mini-rank { list-style: none; margin: 0; padding: 0; }
.mini-rank li { display: grid; grid-template-columns: 2.125rem 1fr auto; align-items: center; gap: .625rem; padding: .4375rem 0; border-top: 1px solid var(--line); }
.mini-rank > li > b { font: 500 1.1rem/1 var(--display); color: var(--gold); }
.mini-rank small { display: block; color: var(--muted); }
.mini-rank em { color: var(--text); font-style: normal; font-size: .96rem; white-space: nowrap; }

.mini-news { list-style: none; margin: 0; padding: 0; }
.mini-news li { padding: .5rem 0; border-top: 1px solid var(--line); }
.mini-news time { display: block; color: var(--muted); font-size: .9rem; }
.mini-news a { font-weight: 500; font-size: 1.08rem; }
.mini-news p { margin: 2px 0 0; color: var(--muted); }

/* FAQ */

.faq-grid { display: grid; grid-template-columns: 1.8fr 1fr; align-items: start; gap: 1.5rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; gap: .875rem; padding: 1rem .25rem; cursor: pointer; list-style: none; color: #dcd6cc; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary b { color: var(--gold-deep); font-size: .82rem; font-weight: 500; }
.faq summary span { flex: 1; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.375rem; line-height: 1; }
.faq details[open] summary { color: var(--gold-soft); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 1.125rem .625rem 2.5rem; color: var(--muted); }
.faq-card { position: sticky; top: calc(var(--head) + 1rem); padding: 1.5rem; }
.faq-card img { width: 7.5rem; }
.faq-card h3 { margin-top: .75rem; font-size: 1.9rem; }
.faq-card p { color: var(--muted); }

/* Footer */

.footer { padding: 2.75rem 1.25rem 1.75rem; background: rgb(6 8 13 / 94%); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1.75rem; width: min(max(75rem, 62vw), 100%); margin: 0 auto; }
.footer-brand img { width: 6rem; margin-bottom: .625rem; }
.footer-brand p { margin: 0; max-width: 24em; color: var(--muted); }
.footer h2 { font: 500 .69rem/1.3 var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.footer nav a { display: block; padding: 3px 0; color: var(--text); }
.footer nav a:hover { color: var(--gold-soft); }
.footer-legal { width: min(max(75rem, 62vw), 100%); margin: 1.5rem auto 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }

/* Inner pages */

.page { padding: calc(var(--head) + 1.5rem) 0 2.5rem; }
.page-center { display: grid; place-items: center; flex: 1; }
.page-head { margin-bottom: 1.125rem; }
.page-head h1 { font-size: clamp(2.1rem, 4vw, 3.25rem); }
.page-head > p:last-child { color: var(--muted); font-size: 1.12rem; margin: 0; max-width: 44rem; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.head-actions { display: flex; gap: .625rem; }

.pills { display: flex; flex-wrap: wrap; gap: .375rem; margin-bottom: .625rem; }
.pills a { padding: .4375rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); font-size: .94rem; }
.pills a:hover { border-color: var(--line-2); }
.pills a.is-current { border-color: var(--gold); color: var(--strong); }
.pills-small a { padding: .25rem .75rem; font-size: .86rem; }

.table-frame { margin-top: 1rem; padding: .375rem .5rem; }
.table-scroll { overflow-x: auto; }
.rank { width: 100%; border-collapse: collapse; }
.rank th { padding: .625rem .75rem; color: var(--muted); font-size: .69rem; font-weight: 500; text-align: left; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; border-bottom: 1px solid var(--line-2); }
.rank td { padding: .625rem .75rem; border-bottom: 1px solid var(--line); }
.rank tr:last-child td { border-bottom: 0; }
.rank .num { text-align: right; font-variant-numeric: tabular-nums; }
.hero-name { color: var(--strong); font-weight: 500; }
.rank .top td:first-child { font: 500 1.1rem/1 var(--display); color: var(--gold); }
.rank .top-1 .hero-name { color: var(--gold-soft); }
.table-note { margin: .625rem 0 0; color: var(--muted); font-size: .94rem; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); gap: .75rem; }
.info-card { padding: 1.375rem 1.5rem; margin-bottom: .75rem; }
.info-card h2 { font-size: 1.75rem; }
.info-grid .info-card { margin: 0; min-width: 0; }
.info-wide { margin-top: .75rem; }
/* The server page: three columns on a wide screen; the economy card takes two, beside the party card, with its facts in
   two columns, so no card is left alone on a row. One column under 980px (below). */
.server-grid { grid-template-columns: repeat(auto-fit, minmax(min(21rem, 100%), 1fr)); }
.server-grid .span-2 .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); column-gap: 2rem; }
@media (min-width: 981px) { .server-grid .span-2 { grid-column: span 2; } }
.closed-note { max-width: 38.75rem; margin-inline: auto; text-align: center; }
.closed-note .btn { margin-top: .25rem; }

.facts { margin: 0; }
.facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .5rem 0; border-top: 1px solid var(--line); }
/* The label keeps its words on one line; a long value wraps on its own side (Web Interface Guidelines, content handling). */
.facts dt { flex: none; max-width: 50%; color: var(--muted); }
.facts dd { min-width: 0; margin: 0; text-align: right; color: var(--strong); font-weight: 500; text-wrap: pretty; }

.system-list { list-style: none; margin: 0; padding: 0; }
.system-list li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.system-list b { font-weight: 500; color: var(--strong); }
.system-list .state { margin: 0; }

.vip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-bottom: .75rem; }
.vip-grid .info-card { margin: 0; }
.vip-card h2 { color: var(--gold-soft); }

.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: .75rem; margin-bottom: .75rem; }
.link-card { display: flex; flex-direction: column; gap: .25rem; padding: 1.375rem 1.5rem; color: var(--text); transition: border-color .25s, transform .25s; }
a.link-card:hover { border-color: var(--line-2); transform: translateY(-2px); color: var(--text); }
.link-card svg { width: 1.875rem; height: 1.875rem; margin-bottom: .5rem; color: var(--gold); }
.link-card b { color: var(--strong); font: 500 1.5rem/1.2 var(--title); }
.link-card span { color: var(--muted); }
.link-card.is-soon { opacity: .72; }

/* Columns that fill as a newspaper does: cards of different heights leave no holes beside the short ones. */
.guide-grid, .dev-areas { display: block; columns: 3 24rem; column-gap: .75rem; }
.guide-grid { margin-bottom: .75rem; }
.guide-grid > .info-card, .dev-area { break-inside: avoid; margin: 0 0 .75rem; }
.guide-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.must-know { margin: 1rem 0 0; padding: .75rem .875rem; border: 1px solid var(--gold); border-left-width: 4px; border-radius: var(--radius); background: rgb(var(--bg-rgb) / 40%); color: var(--gold-soft); }
.must-know b { color: var(--gold); }
.downloads { display: grid; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.downloads li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem .875rem; background: rgb(var(--bg-rgb) / 40%); border: 1px solid var(--line); border-radius: var(--radius); }
.downloads li.is-main { border-color: var(--gold); }
.downloads li div { display: grid; gap: .125rem; min-width: 0; }
.downloads b { color: var(--strong); font-weight: 500; }
/* Only the file's own line: the Download button's label is a span too, and muted grey on gold could not be read. */
.downloads li div span { color: var(--muted); font-size: .86rem; }
.downloads small { overflow: hidden; color: #75737e; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.downloads .btn { flex: none; }
@media (max-width: 36rem) { .downloads li { flex-direction: column; align-items: stretch; } }
/* Rankings on a phone: the class moves under the name, so the resets and the level stay on screen. */
.rank-class, .narrow-label { display: none; }
.narrow-label { text-decoration: none; }
@media (max-width: 36rem) {
    .rank .col-class, .wide-label { display: none; }
    .rank th, .rank td { padding-left: .5rem; padding-right: .5rem; }
    .rank-class { display: block; color: var(--muted); font-size: .78rem; font-weight: 400; }
    .narrow-label { display: inline; }
}
.guide-steps li { position: relative; padding: .5rem 0 .5rem 2.5rem; border-top: 1px solid var(--line); counter-increment: step; }
.guide-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: .5rem; color: var(--gold); font: 500 .96rem/1.65 var(--display); }
.guide-steps b { color: var(--strong); font-weight: 500; }

.news-row { padding: 1.125rem 1.5rem; margin-bottom: .75rem; }
.news-row time { color: var(--muted); font-size: .92rem; }
.news-row h2 { margin: .15em 0 .3em; font-size: 1.75rem; }
.news-row p { margin: 0; }

.prose { padding: 1.5rem 1.75rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.prose h2 { margin-top: 1.4em; font-size: 1.9rem; }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

.error-box { padding: 1.75rem; text-align: center; }

/* The codex: tables that stay readable over the moving art. */

.codex-nav { margin-bottom: 1.25rem; }
.codex-search { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; padding: .625rem .75rem .625rem 1rem; }
.codex-search svg { flex: none; width: 1.25rem; height: 1.25rem; color: var(--gold); }
.codex-search input { flex: 1; min-width: 0; min-height: 2.5rem; background: none; border-color: transparent; }
.hits { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0 1.5rem; margin: 0; padding: 0; list-style: none; }
.hits a { display: flex; align-items: center; gap: .625rem; padding: .5rem 0; border-top: 1px solid var(--line); color: var(--text); }
.hits b { display: block; color: var(--strong); font-weight: 500; }
.hits span { color: var(--muted); font-size: .8rem; }
@media (min-width: 75rem) {
    .codex-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.codex-grid strong { color: var(--gold-soft); font: 500 2.25rem/1.1 var(--display); }
.codex-grid .link-card { position: relative; }

.filter { display: flex; flex-wrap: wrap; align-items: center; gap: .625rem 1rem; margin-bottom: .75rem; }
.filter[hidden] { display: none; }
.filter input { flex: 1 1 14rem; width: auto; max-width: 22rem; }
.filter output { margin-left: auto; padding: .125rem .5rem; background: var(--card); border-radius: var(--radius); color: var(--muted); font-size: .8rem; }
.chips { display: flex; flex-wrap: wrap; gap: .25rem; }
.chips button { padding: .3125rem .625rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); font: inherit; font-size: .78rem; cursor: pointer; }
.chips button:hover { color: var(--strong); }
.chips .is-on { border-color: var(--gold); color: var(--strong); }
.table-frame { padding: .875rem 1rem; }
.table-frame h2 { margin: .25rem .25rem .375rem; font-size: 1.75rem; }
.table-frame .table-note { margin: 0 .25rem .375rem; }
.rank tr[hidden] { display: none; }
.rank .sold { color: var(--muted); font-size: .78rem; }
.marks { display: inline-flex; gap: .1875rem; }
.mark { padding: 0 .3125rem; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-radius: 2px; color: var(--c); font-size: .66rem; line-height: 1.5; text-decoration: none; }

.class-sheet { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1.5rem; margin-bottom: .75rem; padding: 1rem; overflow: hidden; scroll-margin-top: calc(var(--head) + .5rem); }
.class-sheet img { width: 100%; height: 100%; max-height: 24rem; object-fit: cover; object-position: 50% 15%; border-radius: var(--radius); }
.class-sheet h2 { margin-bottom: .1em; font-size: clamp(2rem, 3.4vw, 2.75rem); }
.class-sheet .eyebrow { color: var(--c); }
.sheet-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: .5rem 1rem; margin: 0 0 1rem; }
.sheet-stats div { padding-top: .25rem; border-top: 1px solid var(--line); }
.sheet-stats dt { color: var(--muted); font-size: .72rem; }
.sheet-stats dd { margin: 0; color: var(--strong); font: 500 1.14rem/1.3 var(--display); }
.formula { margin-bottom: 1rem; font-size: .84rem; }
.formula div { padding-block: .3125rem; }
.sheet-skills { color: var(--muted); font-size: .84rem; }
.sheet-skills b { color: var(--text); font-weight: 500; }

.world-map { position: relative; margin: 0 0 1rem; }
.world-map img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); }
.world-map figcaption { padding-top: .375rem; color: var(--muted); font-size: .8rem; }
.pin { position: absolute; width: 13%; height: 12%; margin: -3% 0 0 -6.5%; border: 1px solid transparent; border-radius: var(--radius); transition: border-color .2s, background .2s; }
.pin:hover, .pin:focus-visible { border-color: var(--gold); background: rgb(212 177 122 / 12%); }
.pin-devias { left: 51%; top: 15.5%; }
.pin-noria { left: 24%; top: 42%; }
.pin-lorencia { left: 52%; top: 51%; }
.pin-dungeon { left: 83%; top: 40%; }
.pin-atlans { left: 32%; top: 82%; }
.pin-tarkan { left: 81%; top: 75%; }
.map-sheet { margin-bottom: .75rem; padding: 1.25rem 1.5rem; scroll-margin-top: calc(var(--head) + .5rem); }
.map-sheet header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; }
.map-sheet h2 { margin: 0; font-size: clamp(1.9rem, 3vw, 2.4rem); }
.map-range { margin: 0; color: var(--gold-soft); font-size: .84rem; }
.map-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem; }
.map-columns h3 { margin-bottom: .375rem; color: var(--gold); font: 500 .69rem/1.4 var(--body); letter-spacing: .24em; text-transform: uppercase; }
.zones { margin: 0; padding: 0; list-style: none; font-size: .84rem; }
.zones li { display: grid; grid-template-columns: 1fr auto 5.25rem; gap: .5rem; padding: .1875rem 0; border-top: 1px solid var(--line); }
.zones b { color: var(--strong); font-weight: 500; }
.zones span { color: var(--muted); text-align: right; }
.tagline { color: var(--muted); font-size: .84rem; }
.tagline a { display: inline-block; margin-right: .75rem; color: var(--text); }
.tagline a:hover { color: var(--gold-soft); }

.shop-map { margin-bottom: 1.25rem; scroll-margin-top: calc(var(--head) + .5rem); }
.shop-map h2 { font-size: 1.9rem; margin-bottom: .375rem; }
.shops { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem; }
.shop { flex: 1 1 20rem; min-width: 0; }
.shop summary { display: flex; flex-direction: column; padding: .75rem 1rem; cursor: pointer; list-style: none; }
.shop summary::-webkit-details-marker { display: none; }
.shop summary b { color: var(--strong); font-weight: 500; }
.shop summary span { color: var(--muted); font-size: .78rem; }
.shop[open] summary b { color: var(--gold-soft); }
.shop ul { columns: 2; gap: 1rem; margin: 0; padding: 0 1rem .75rem; list-style: none; color: var(--muted); font-size: .8rem; }

.recipes { display: flex; flex-wrap: wrap; gap: .75rem; }
.recipe { flex: 1 1 19rem; min-width: 0; padding: 1.25rem 1.375rem; }
.recipe h2 { font-size: 1.75rem; }
.recipe ul { margin: 0 0 .75rem; padding: 0; list-style: none; }
.recipe li { padding: .1875rem 0; color: var(--text); }
.recipe li + li::before { content: "+ "; color: var(--gold); }
.state-ready { color: var(--ok); border-color: rgb(125 199 154 / 40%); }
.concept-note { color: var(--muted); }
.upgrade .num { white-space: nowrap; }

/* Events. */

.group-title { margin: 2.25rem 0 .75rem; font-size: clamp(1.75rem, 3vw, 2.25rem); scroll-margin-top: 6rem; }
.group-note { max-width: 46rem; margin: -.25rem 0 .875rem; color: var(--muted); }
.recipe h3 { margin: 0 0 .375rem; font-size: 1.45rem; }
.material-notes { margin-top: .75rem; }

.next-events { display: grid; gap: .5rem; margin: .625rem 0 0; padding: 0; list-style: none; }
.next-events a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .125rem 1rem; align-items: baseline; padding: .625rem .875rem; background: var(--raise); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: border-color .25s; }
.next-events a:hover { border-color: var(--gold); }
.next-events b { color: var(--strong); font: 500 1.25rem/1.2 var(--title); }
.next-events time { color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.next-events span { grid-column: 1 / -1; color: var(--muted); font-size: .84rem; }
.next-events .is-open span { color: var(--ok); }

.next-bar { display: grid; grid-template-columns: minmax(10rem, .6fr) minmax(0, 3fr) auto; gap: 1rem 1.5rem; align-items: center; margin-top: .75rem; padding: 1.25rem 1.5rem; }
.next-bar h3 { margin: 0; font-size: 1.5rem; }
.next-bar p { margin: .125rem 0 0; color: var(--muted); font-size: .84rem; }
.next-bar .next-events { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }

.event-board { display: grid; grid-template-columns: minmax(17rem, 1fr) minmax(0, 2fr); gap: .75rem; margin-bottom: .75rem; }
.event-board > * { padding: 1.25rem 1.375rem; }
.event-board h2 { font-size: 1.75rem; }
.event-board .table-note { margin-top: 0; }
.agenda:not([hidden]) { display: flex; flex-direction: column; }
.agenda-rows { flex: 1; display: grid; grid-auto-rows: minmax(2.25rem, 1fr); margin-top: .5rem; }
.agenda-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .75rem; align-items: stretch; }
.agenda-row b { align-self: center; }
.agenda-row b { color: var(--text); font-size: .84rem; font-weight: 500; }
.agenda-line { position: relative; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 24)); }
.agenda-line i { position: absolute; left: var(--x); top: 30%; bottom: 30%; width: var(--w); min-width: 3px; background: var(--gold); border-radius: 1px; }
.agenda-line::after { content: ""; position: absolute; left: var(--now, -1px); top: 0; bottom: 0; width: 1px; background: var(--strong); }
.agenda-scale { display: flex; justify-content: space-between; margin: .375rem 0 0 7.25rem; color: var(--muted); font-size: .69rem; font-variant-numeric: tabular-nums; }

.event-board:has(.agenda[hidden]) { grid-template-columns: minmax(0, 1fr); }
.event-sheet { scroll-margin-top: 6rem; }
.event-sheet td:nth-child(-n+4) { white-space: nowrap; }
.quests { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.event-sheet h3 { margin: 1rem 0 .25rem; font-size: 1.15rem; }
.recipe-wide { flex-basis: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 1rem 2rem; align-items: start; }
.recipe-wide .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); column-gap: 1.5rem; }
.hours { margin: 0; font-variant-numeric: tabular-nums; }
.hours time + time::before { content: " · "; color: var(--muted); }

@media (max-width: 64rem) {
    .next-bar { grid-template-columns: minmax(0, 1fr); }
    .event-board, .recipe-wide { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 40rem) {
    .next-bar .next-events { grid-template-columns: minmax(0, 1fr); }
    .agenda-row { grid-template-columns: 5.25rem minmax(0, 1fr); gap: .5rem; }
    .agenda-scale { margin-left: 5.75rem; }
}

/* What has been done. */

.dev-compare h2, .dev-gallery h2 { margin-bottom: .2em; font-size: clamp(2rem, 3.4vw, 2.75rem); }
.dev-compare > p { color: var(--muted); }
.dev-pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.dev-pairs figure { margin: 0; }
.dev-pairs figcaption { padding-top: .375rem; color: var(--muted); font-size: .84rem; }
.compare-wide { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.compare-pair.is-solo { display: block; }
.dev-numbers { grid-template-columns: repeat(3, 1fr); margin-bottom: 2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.dev-area { padding: 1.25rem 1.5rem; }
.dev-area h2 { margin-bottom: .1em; font-size: 2rem; }
.dev-area > p { color: var(--muted); }
.checks { margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; padding: .4375rem 0 .4375rem 1.5rem; border-top: 1px solid var(--line); }
.checks li::before, .legend li::before { content: ""; position: absolute; left: .125rem; top: .8125rem; width: .625rem; height: .625rem; border-radius: 50%; border: 1px solid var(--gold-deep); }
.checks .is-done::before, .legend .is-done::before { background: var(--ok); border-color: var(--ok); }
.checks .is-testing::before, .legend .is-testing::before { background: linear-gradient(90deg, var(--warn) 50%, transparent 50%); border-color: var(--warn); }
.legend { display: flex; gap: 1.5rem; margin: .75rem 0 2.5rem; padding: 0; list-style: none; color: var(--muted); font-size: .8rem; }
.legend li { position: relative; padding-left: 1.25rem; }
.legend li::before { top: .3125rem; }

/* Home: where everything else lives. */

.gate { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.gate a { position: relative; display: block; padding: 1.125rem 1.25rem; min-height: 9.5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: border-color .25s, transform .25s; }
.gate a:hover { border-color: var(--line-2); transform: translateY(-2px); color: var(--text); }
.gate strong { display: block; color: var(--gold-soft); font: 500 clamp(1.8rem, 3vw, 2.5rem)/1.1 var(--display); }
.gate b { display: block; margin-top: .25rem; color: var(--strong); font: 500 1.35rem/1.2 var(--title); }
.gate span { display: block; margin-top: .25rem; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.gate-art { position: absolute; top: .25rem; right: .25rem; width: 5.5rem; height: 5.5rem; object-fit: contain; pointer-events: none; }
.done-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; margin-top: .75rem; padding: 1.25rem 1.5rem; }
.done-bar h3 { margin-bottom: .1em; font-size: 1.75rem; }
.done-bar p { margin: 0; color: var(--muted); }
.done-track { grid-column: 1 / -1; display: flex; height: .375rem; overflow: hidden; background: var(--line); border-radius: 999px; }
.done-track i { display: block; flex: var(--part, 0) 0 0; background: var(--ok); }
.done-track i + i { background: var(--warn); }
.done-track u { display: block; flex: var(--part, 0) 0 0; }

/* Forms. The art stands on the left of the window and the form sits beside it. */

.page-auth { display: flex; flex-direction: column; align-items: center; gap: 0; padding: calc(var(--head) + 2rem) calc(var(--gutter) + var(--safe-r)) 3rem calc(var(--gutter) + var(--safe-l)); }
.page-auth > .section-title { display: none; }
.has-stage .page-auth, .look-auth .page-auth { align-items: flex-end; }
.auth { width: min(32.5rem, 100%); padding: 1.625rem 1.75rem; background: rgb(14 17 26 / 90%); }
.auth h1 { font-size: 2.2rem; }
.auth-alt { margin: .875rem 0 0; text-align: center; color: var(--muted); }

.auth-card { display: grid; grid-template-columns: minmax(0, 1fr); width: min(31rem, 100%); margin-left: auto; background: rgb(14 17 26 / 90%); overflow: hidden; }
.look-home .auth-card, .home .auth-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); width: min(70rem, 100%); margin-inline: auto; }
.auth-brand { display: none; flex-direction: column; padding: 1.75rem 1.875rem; }
.home .auth-brand { display: flex; }
.auth-emblem { width: 10rem; margin: .25rem 0 .375rem -.5rem; }
.auth-name { margin: 0; color: var(--strong); font: 500 clamp(1.8rem, 2.8vw, 2.4rem)/1.1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.auth-base { margin: .25rem 0 .875rem; color: var(--gold); font: 500 1rem/1.3 var(--display); text-transform: uppercase; }
.auth-line { color: var(--muted); font-size: 1.14rem; max-width: 28ch; }
.auth-heroes { display: flex; flex-wrap: wrap; gap: .625rem; margin: .5rem 0 1.25rem; padding: 0; list-style: none; }
.auth-heroes li { width: 3.5rem; text-align: center; }
.auth-heroes img { width: 3.5rem; height: 3.5rem; border-radius: 2px; object-fit: cover; }
.auth-heroes small { display: block; margin-top: .25rem; color: var(--muted); font-size: .68rem; line-height: 1.2; }
.auth-foot { margin: auto 0 0; }
.auth-side { padding: 1.625rem 1.875rem 1.75rem; }
.home .auth-side { border-left: 1px solid var(--line); }

.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 1.125rem; border-bottom: 1px solid var(--line); text-align: center; }
.auth-tabs > * { padding: .5625rem .75rem; color: var(--muted); }
.auth-tabs a:hover { color: var(--text); }
.auth-tabs .is-current { color: var(--gold-soft); box-shadow: inset 0 -1px 0 var(--gold); }

.field { display: block; margin-bottom: .75rem; }
.field > span:first-child { display: block; margin-bottom: .25rem; color: var(--strong); font-size: .96rem; }
.field small { display: block; margin-top: .25rem; color: var(--muted); font-size: .9rem; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .75rem; }

.input { position: relative; display: block; }
.input > svg { position: absolute; left: .75rem; top: 50%; width: 1.25rem; height: 1.25rem; margin-top: -.625rem; color: var(--muted); pointer-events: none; }
.input input { padding-left: 2.5rem !important; }
input[data-reveal] { padding-right: 2.75rem !important; }
.reveal { position: absolute; right: .25rem; top: 50%; width: 2.375rem; height: 2.375rem; margin-top: -1.1875rem; padding: .5625rem; background: none; border: 0; color: var(--muted); cursor: pointer; }
.reveal:hover, .reveal[aria-pressed="true"] { color: var(--gold); }
.reveal svg { width: 1.25rem; height: 1.25rem; }

input:not([type="radio"], [type="checkbox"], [type="range"]) {
    width: 100%; min-height: 2.875rem; padding: .5rem .75rem;
    background: #080b12; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--strong);
    font: inherit;
}
input::placeholder { color: #6e6d78; }
input:not([type="radio"], [type="checkbox"], [type="range"]):focus { border-color: var(--gold); outline: none; }

fieldset { margin: 0 0 .75rem; padding: .625rem .875rem 2px; border: 1px solid var(--line); border-radius: var(--radius); }
legend { padding: 0 .375rem; font-size: .96rem; color: var(--gold-soft); }
fieldset > p { margin-bottom: .6em; color: var(--muted); font-size: .96rem; }

.check { display: flex; align-items: flex-start; gap: .5rem; margin-bottom: 1rem; color: var(--text); font-size: .96rem; }
.check input { flex: none; width: 1.125rem; height: 1.125rem; margin-top: 3px; accent-color: var(--gold); }

.form-error, .form-ok { margin-bottom: .875rem; padding: .5rem .75rem; border-left: 2px solid; border-radius: var(--radius); }
.form-error { border-color: var(--bad); background: #24121a; color: #f2c7c7; }
.form-ok { border-color: var(--ok); background: #101f1b; color: #c7ebd4; }
.preview-note { margin: .75rem 0 2px; color: var(--warn); }
.preview-link { word-break: break-all; }

.trap { position: absolute; left: -624.9375rem; height: 0; overflow: hidden; }

/* Account */

.wallet { display: grid; grid-template-columns: repeat(4, 1fr); gap: .625rem; }
.wallet-cell { display: grid; grid-template-columns: 2.625rem 1fr; column-gap: .75rem; align-items: center; padding: .875rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.wallet-cell svg { grid-row: span 2; width: 2.125rem; height: 2.125rem; color: var(--gold); }
.wallet-cell b { font: 500 1.35rem/1.2 var(--display); color: var(--strong); }
.wallet-cell span { color: var(--muted); font-size: .94rem; }
.wallet-cell.is-vip b { color: var(--gold-soft); }

.account-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: .75rem; margin-top: .75rem; }
.account-grid .info-card { margin: 0; }
.account-grid .field { margin: .875rem 0 0; }

.char-list { list-style: none; margin: 0; padding: 0; }
.char-list li { display: grid; grid-template-columns: 1fr auto; column-gap: .75rem; padding: .5625rem 0; border-top: 1px solid var(--line); }
.char-list b { color: var(--strong); font-weight: 500; }
.char-list span { color: var(--muted); }
.char-list em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; white-space: nowrap; }

/* Entrance of what scrolls into view. Only what starts below the fold gets this, so nothing blinks at load. */
.pre { opacity: 0; transform: translateY(1.125rem); }
.pre.in { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s ease; }

/* The layout follows the window, not the device: a split screen is simply a narrow or a short window, so width, height and
   proportion are read separately. */

@media (max-width: 1440px) {
    .head-status { display: none; }
}

@media (max-width: 1240px) {
    .menu > a, .menu-group > a { padding: .625rem .5rem; font-size: .8rem; }
    .head { gap: .75rem; }
    .dock-tab small { display: none; }
}

@media (max-width: 1100px) {
    .head { flex-wrap: wrap; height: auto; min-height: var(--head); }
    .menu-toggle { display: block; }
    .menu { order: 3; display: none; flex: 1 0 100%; flex-direction: column; align-items: stretch; padding: .25rem 0 .75rem; max-height: calc(100svh - var(--head)); overflow-y: auto; }
    .menu.is-open { display: flex; }
    .menu-drop { position: static; visibility: visible; opacity: 1; transform: none; min-width: 0; padding: 0 0 0 .75rem; background: none; border: 0; }
    .menu-drop small { display: none; }
    .link-grid { grid-template-columns: repeat(2, 1fr); }
    .live-row { flex-wrap: wrap; justify-content: center; gap: .875rem; }
    .live-facts { flex: 1 1 100%; }
    .live-facts div:first-child { border-left: 0; }
    .rail { grid-template-columns: repeat(2, 1fr); }
    .rail li:nth-child(3) { border-left: 0; }
    .rail li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 980px) {
    .gate { grid-template-columns: repeat(2, 1fr); }
    .map-columns { grid-template-columns: 1fr 1fr; }
    .slots { grid-template-columns: repeat(2, 1fr); }
    .compare-box { grid-template-columns: 1fr; grid-template-rows: none; gap: .875rem; }
    .compare-tabs, .compare-side, .compare { grid-column: 1; grid-row: auto; }
    .compare { justify-self: center; }
    .compare-tabs { order: -1; justify-content: center; }
    .pillars { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .pillars > div { padding-bottom: 0; }
    .tabs, .start-grid, .faq-grid, .board-grid, .info-grid, .vip-grid, .account-grid { grid-template-columns: 1fr; }
    .home .auth-card { grid-template-columns: 1fr; }
    .home .auth-side { border-left: 0; border-top: 1px solid var(--line); }
    .home .auth-brand { padding: 1.25rem 1.5rem; }
    .auth-emblem, .auth-foot { display: none; }
    .tab-list { flex-direction: row; flex-wrap: wrap; }
    .tab-label { flex: 1 1 42%; padding: .5625rem .75rem; font-size: .96rem; }
    .faq-card { position: static; }
    .wallet { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .lead { display: block; }
    .lead > p { width: auto; max-width: 34rem; margin-top: 1rem; }
    .worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cast-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .cast-cards::-webkit-scrollbar { display: none; }
    .cast-card { flex: 0 0 min(15rem, 62vw); scroll-snap-align: start; }
}

@media (max-width: 700px) {
    .timeline li { grid-template-columns: 1fr; gap: .25rem; padding-left: 1.25rem; }
    .timeline li::before { left: .25rem; }
    .timeline li::after { left: 0; }
    .timeline b { text-align: left; }
    .timeline div { padding-left: 0; }
    .slots, .steps, .field-pair, .link-grid, .pillars { grid-template-columns: 1fr; }
    .numbers { grid-template-columns: repeat(2, 1fr); }
    .dev-numbers { grid-template-columns: repeat(3, 1fr); }
    .dev-numbers div:nth-child(3) { border-left: 1px solid var(--line); }
    .dev-numbers div:nth-child(n + 3) { border-top: 0; }
    .gate { grid-template-columns: repeat(2, 1fr); }
    .class-sheet { grid-template-columns: 1fr; }
    .class-sheet img { max-height: 18rem; }
    .map-columns { grid-template-columns: 1fr; gap: .875rem; }
    .dev-areas, .dev-pairs { grid-template-columns: 1fr; }
    .done-bar { grid-template-columns: 1fr; }
    .numbers div:nth-child(3) { border-left: 0; }
    .numbers div:nth-child(n + 3) { border-top: 1px solid var(--line); }
    .starmap svg { display: none; }
    .starlist { display: block; }
    .podium li { grid-template-columns: 2.75rem 1.5rem 1fr; }
    .podium img { width: 2.75rem; height: 2.75rem; }
    .podium em { grid-column: 3; }
    .pillars { gap: .25rem; }
    .pillars > div { padding-bottom: .75rem; }
    .compare-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding: 2px; scrollbar-width: none; }
    .compare-tabs label { flex: none; }
    .compare-tag { top: .625rem; padding: .1875rem .5rem; font-size: .66rem; }
    .tag-old { left: .5rem; }
    .tag-new { right: .5rem; }
    .start-client { grid-template-columns: 1fr; padding: 1.25rem; text-align: center; }
    .start-client .btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .auth { padding: 1.25rem; }
    .auth-side { padding: 1.125rem 1rem 1.25rem; }
    .live-facts { grid-template-columns: repeat(2, 1fr); gap: .5rem 0; }
    .live-facts div { border-left: 0; }
    .live-facts div:last-child { grid-column: 1 / -1; }
    .live-facts dd { white-space: normal; }
    .wallet-cell { grid-template-columns: 1.875rem 1fr; padding: .625rem .75rem; column-gap: .5rem; }
    .wallet-cell svg { width: 1.75rem; height: 1.75rem; }
    .wallet-cell b { font-size: 1.1rem; }
    .mini-rank li { grid-template-columns: 1.75rem 1fr; }
    .mini-rank em { grid-column: 2; }
    .rail { grid-template-columns: 1fr; }
    .rail li + li { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
    :root { --head: 3.875rem; }
    body { font-size: 1rem; }
    .brand img { width: 3rem; }
    .brand b { font-size: 1rem; }
    .head-end .btn { display: none; }
    .menu-account { display: flex; gap: .625rem; padding: .75rem .5rem .25rem; }
    .menu-account .btn { flex: 1; min-height: 2.75rem; }
}

/* Upright windows: phones, tablets and a screen split down the middle. The character takes the top of the window and the
   words sit under it on black, as in the guide's phone sheet. */
@media (max-aspect-ratio: 19/20) {
    .hero { justify-content: flex-end; }
    .hero::before {
        background:
            linear-gradient(0deg, rgb(var(--bg-rgb) / 96%) 0%, rgb(var(--bg-rgb) / 96%) 26%, rgb(var(--bg-rgb) / 84%) 38%, rgb(var(--bg-rgb) / 28%) 54%, transparent 66%),
            linear-gradient(180deg, rgb(var(--bg-rgb) / 62%) 0%, transparent 14%);
    }
    .hero-copy { flex: none; width: 100%; max-width: 34rem; padding-block: 0 1rem; }
    .hero h1 { font-size: clamp(2.1rem, min(10.2vw, 5.4vh), 4.4rem); }
    .hero-lede { margin-top: .625rem; font-size: 1.02rem; }
    .hero-actions { margin-top: 1rem; }
    .hero-actions .btn { flex: 1 1 13rem; min-height: 3rem; padding-inline: 1rem; }
    .hero-note, .hero-eyebrow { display: none; }
    .hero-caption { display: none; }
    .dock { display: flex; gap: .375rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
    .dock::-webkit-scrollbar { display: none; }
    .dock-tab { flex: 0 0 auto; scroll-snap-align: center; padding-right: .875rem; }
    .dock-tab img { width: 2.375rem; height: 2.375rem; }
    .dock-tab b { font-size: .9rem; }
    .chapter { align-items: flex-end; padding-block: 46svh 2rem; }
    .chapter::before { background: linear-gradient(0deg, rgb(var(--bg-rgb) / 94%) 0%, rgb(var(--bg-rgb) / 90%) 44%, rgb(var(--bg-rgb) / 60%) 58%, transparent 74%); }
    .chapter-copy > * { max-width: 40rem; }
    .class-chapter h3 { font-size: clamp(2.5rem, 9vw, 4rem); }
    .class-chapter { padding-top: 52svh; }
    .page-auth { align-items: center !important; }
    .auth-card { margin-inline: auto; }
}

/* Short windows: a screen split across, or a phone on its side. The chrome gives way first, then the extras of the hero. */
@media (max-height: 760px) {
    :root { --head: 3.75rem; }
    .brand img { width: 3rem; }
    .btn { min-height: 3rem; padding-inline: 1.375rem; }
    .btn-small { min-height: 2.25rem; padding-inline: 1rem; }
}

@media (max-height: 760px) and (min-aspect-ratio: 19/20) {
    .hero-note, .hero-caption, .has-stage .hero-trailer { display: none; }
    .hero-eyebrow { margin-bottom: .625rem; }
    .hero-lede { margin-top: .625rem; }
    .hero-actions { margin-top: 1rem; }
    .dock-tab { padding: .25rem .625rem .25rem .25rem; }
    .dock-tab img { width: 2.25rem; height: 2.25rem; }
}

@media (max-height: 560px) and (min-aspect-ratio: 19/20) {
    .hero-eyebrow { display: none; }
    .hero h1 { font-size: clamp(1.75rem, 11vh, 3rem); }
    .hero-lede { font-size: 1rem; line-height: 1.35; margin-top: .375rem; }
    .hero-lede br { display: none; }
    .hero-actions { margin-top: .625rem; }
    .btn { min-height: 2.625rem; }
    .hero-copy { padding-block: 0; }
    .dock-tab img { display: none; }
    .dock-tab { padding: .375rem .625rem; }
    .dock-tab b { font-size: .84rem; }
}

@media (max-height: 440px) and (min-aspect-ratio: 19/20) {
    :root { --head: 3.125rem; }
    .brand img { width: 2.5rem; }
    .brand small { display: none; }
    .hero { padding-top: calc(var(--head) + .125rem); padding-bottom: .375rem; }
    .hero h1 em { display: inline; }
    .hero-lede { display: none; }
    .hero-actions .btn { min-height: 2.375rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .pre { opacity: 1; transform: none; }
    .dock-tab.is-active i { transform: scaleX(1); }
}

/* The character calculator and the item sheet. Both are tools: dense, quiet and solid behind the numbers. */

select {
    width: 100%; min-height: 2.5rem; padding: .375rem .625rem;
    background: #080b12; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--strong);
    font: inherit;
}
select:focus { border-color: var(--gold); outline: none; }
optgroup { color: var(--gold-soft); font-style: normal; }
option { color: var(--strong); }
option:disabled { color: #6e6d78; }

.planner { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
.planner[hidden] { display: none; }
/* In its own grid, because a sticky grid item is held by the whole grid and not by its row: it would slide over the sections below. */
.planner-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(19rem, 24rem); gap: .75rem; align-items: start; }
.planner-main { display: grid; gap: .75rem; min-width: 0; }
.planner-side { position: sticky; top: calc(var(--head) + .75rem); min-width: 0; }
.planner-card { padding: 1.25rem 1.375rem; background: var(--card-solid); scroll-margin-top: calc(var(--head) + .75rem); }
.planner-card h2 { margin: 0 0 .75rem; font-size: 1.65rem; }
.planner-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; }
.planner-free { margin: 0 0 .75rem; color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.planner-free.is-over { color: var(--bad); }

.planner-classes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .375rem; margin-bottom: .75rem; }
.planner-classes button { display: grid; justify-items: center; gap: .375rem; padding: .625rem .25rem; background: var(--raise); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); font: inherit; font-size: .78rem; line-height: 1.25; text-align: center; cursor: pointer; transition: border-color .2s, color .2s; }
.planner-classes button:hover { border-color: var(--line-2); color: var(--strong); }
.planner-classes button.is-on { border-color: var(--c); color: var(--strong); }
.planner-classes img { width: 3.25rem; height: 3.25rem; border-radius: 50%; object-fit: cover; }
.planner-evolved { margin: 0; }
.planner-evolved[hidden] { display: none; }

.planner-stat { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 6.5rem; align-items: center; gap: .25rem .75rem; margin-bottom: .375rem; }
.planner-stat[hidden] { display: none; }
.planner-stat label { color: var(--strong); }
.planner-stat small { color: var(--muted); font-size: .8rem; }
.planner-stat input[type="number"] { min-height: 2.25rem; padding: .25rem .5rem; text-align: right; font-variant-numeric: tabular-nums; }
.planner input[type="range"] { width: 100%; accent-color: var(--gold); }
.planner-card > .btn { margin-top: .5rem; }

.gear-set { display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem; gap: .5rem; margin-bottom: .5rem; }
.gear { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .375rem; }
.gear-row { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) 4.25rem; align-items: end; gap: 0 .5rem; padding: .375rem .5rem; background: var(--raise); border-radius: var(--radius); }
.gear-row.is-empty { background: none; border: 1px dashed var(--line); }
.gear-row:has(.gear-more[open]) { grid-column: 1 / -1; }
.gear-art { grid-column: 1; align-self: center; width: 2.75rem; height: 2.75rem; object-fit: contain; }
.gear-art[hidden] { display: block; visibility: hidden; }
.gear-field { display: block; min-width: 0; }
.gear-field[hidden], .gear-more[hidden], .check[hidden] { display: none; }
.gear-field > span, .gear-label { display: block; margin: 0 0 1px; color: var(--muted); font-size: .74rem; }
.gear-item { grid-column: 2; }
.gear-plus { grid-column: 3; }
.gear-more { grid-column: 2 / -1; grid-row: 2; }
.gear-more summary { padding: .125rem 0; color: var(--gold); font-size: .8rem; cursor: pointer; }
.gear-more[open] { grid-column: 1 / -1; }
.gear-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .375rem 1rem; padding: .25rem .5rem .625rem; }
.gear-options .check { margin: 0; align-items: center; }
.gear-excellent { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .125rem 1rem; }
.gear-excellent .gear-label { grid-column: 1 / -1; margin-top: .25rem; }

.planner-pools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .375rem; margin-bottom: .625rem; }
.planner-pools div { padding: .5rem .25rem; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.planner-pools b { display: block; color: var(--strong); font: 500 1.35rem/1.2 var(--display); font-variant-numeric: tabular-nums; }
.planner-pools small { color: var(--muted); font-size: .74rem; }
.pool-life { background: rgb(143 26 30 / 22%); }
.pool-mana { background: rgb(28 63 168 / 24%); }
.pool-stamina { background: rgb(212 177 122 / 12%); }
.planner-facts div { padding: .3125rem 0; }
.delta { margin-right: .5rem; color: var(--ok); font-size: .8rem; font-weight: 400; }
.delta.is-down { color: var(--bad); }
.planner-warnings { margin: .625rem 0 0; padding: .625rem .75rem .625rem 1.75rem; border: 1px solid rgb(224 184 115 / 40%); border-radius: var(--radius); color: var(--warn); font-size: .88rem; }
.planner-warnings[hidden] { display: none; }
.planner-share { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .75rem; margin: .75rem 0 0; }
.planner-share .table-note { margin: 0; font-size: .84rem; }

.fight { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 1.5rem; align-items: start; }
.fight-foe img { width: 100%; max-width: 12rem; height: auto; margin: 0 auto .5rem; }
.fight-foe .field { margin-bottom: .375rem; }
.fight-foe .field > span:first-child { font-size: .78rem; color: var(--muted); }
.fight dd { font-variant-numeric: tabular-nums; }
.planner-pick { display: inline-flex; align-items: center; gap: .5rem; padding: 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.planner-pick:hover { color: var(--gold-soft); }
.thumb { flex: none; width: 3.25rem; height: 3.25rem; margin-block: -.375rem; object-fit: contain; }

@media (max-width: 64rem) {
    .planner-top { grid-template-columns: minmax(0, 1fr); }
    .planner-side { position: static; }
    .fight { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .fight-foe { grid-column: 1 / -1; display: grid; grid-template-columns: 6rem minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; align-items: end; }
    .fight-foe img { grid-row: 1; margin: 0; }
}

@media (max-width: 40rem) {
    .gate-art { width: 3.75rem; height: 3.75rem; }
    .planner-classes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .planner-stat { grid-template-columns: minmax(0, 1fr) 6rem; }
    .planner-stat input[type="range"] { grid-column: 1 / -1; grid-row: 2; }
    .planner-stat small { grid-column: 1; grid-row: 2; }
    .gear { grid-template-columns: minmax(0, 1fr); }
    .fight { grid-template-columns: minmax(0, 1fr); }
    .fight-foe { grid-template-columns: 5rem minmax(0, 1fr); }
    .fight-foe .field:last-child { grid-column: 1 / -1; }
}

.item-name, .item-open { display: inline-flex; align-items: center; gap: .625rem; }
.item-open { padding: 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.item-open:hover { color: var(--gold-soft); }

.forge { width: min(58rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; background: var(--card-solid); border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--text); overflow: auto; }
.forge[open] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.forge::backdrop { background: rgb(4 5 9 / 82%); }
.forge-close { position: absolute; top: .75rem; right: .75rem; z-index: 1; }
.forge-art { display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(circle at 50% 45%, rgb(212 177 122 / 12%), transparent 68%); }
.forge-art img { width: 100%; max-width: 26rem; height: auto; }
.forge-art img[hidden] { display: none; }
.forge-body { padding: 1.75rem 1.5rem 1.5rem; }
.forge-body h2 { margin: 0 2.5rem .375rem 0; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.forge-marks { display: flex; gap: .25rem; margin-bottom: 1rem; min-height: 1.25rem; }
.forge-controls { display: block; }
.forge-controls .planner-stat { grid-template-columns: 7.5rem minmax(0, 1fr) 2.5rem; }
.forge-controls output { color: var(--gold-soft); font: 500 1.15rem/1 var(--display); text-align: right; }
.forge-controls .check { margin: .375rem 0; }
.forge-controls .gear-field { margin-bottom: .75rem; }
.forge .facts { margin-bottom: .75rem; }
.forge .btn[hidden] { display: none; }

.beast-map { margin-bottom: 1.5rem; scroll-margin-top: calc(var(--head) + .5rem); }
.beast-map h2 { margin-bottom: .5rem; font-size: 1.9rem; }
.beasts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(11.5rem, 46%), 1fr)); gap: .5rem; }
.beast { display: flex; flex-direction: column; padding: .5rem .75rem .75rem; background: var(--card-solid); }
.beast[hidden] { display: none; }
.beast-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: radial-gradient(circle at 50% 55%, rgb(212 177 122 / 10%), transparent 66%); }
.beast-art img { width: 100%; height: 100%; object-fit: contain; }
.beast-art svg { width: 2.5rem; height: 2.5rem; color: var(--line-2); }
.beast-level { position: absolute; top: .25rem; left: 0; padding: 0 .375rem; background: rgb(var(--bg-rgb) / 80%); border: 1px solid var(--line); border-radius: var(--radius); color: var(--gold-soft); font-size: .76rem; font-variant-numeric: tabular-nums; }
.beast h3 { margin: .125rem 0 .375rem; font-size: 1.2rem; }
.beast-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .125rem .75rem; margin: 0 0 .375rem; }
.beast-stats dt { color: var(--muted); font-size: .68rem; }
.beast-stats dd { margin: 0; color: var(--strong); font-size: .88rem; font-variant-numeric: tabular-nums; }
.beast-try { margin-top: auto; font-size: .8rem; }

.map-beasts { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr)); gap: .375rem; }
.map-beasts a { display: grid; justify-items: center; align-content: start; color: var(--text); font-size: .78rem; line-height: 1.3; text-align: center; }
.map-beasts a:hover { color: var(--gold-soft); }
.map-beasts img { width: 3.75rem; height: 3.75rem; object-fit: contain; }
.char-try { grid-column: 1 / -1; font-size: .8rem; }
.guide-links { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.shop li { display: flex; align-items: center; gap: .375rem; break-inside: avoid; }
.shop li img { flex: none; width: 1.75rem; height: 1.75rem; object-fit: contain; }
.recipe-art > img { float: right; width: 6.5rem; height: 6.5rem; margin: -.5rem -.5rem .25rem .5rem; object-fit: contain; }

@media (max-width: 40rem) {
    .forge[open] { grid-template-columns: minmax(0, 1fr); }
    .forge-art { padding: .75rem .75rem 0; }
    .forge-art img { max-width: 12rem; }
    .forge-body { padding: 1rem; }
}

/* The atlas: every map of the game seen from above. */

.atlas-group { margin-bottom: 1.75rem; }
.atlas-group[hidden] { display: none; }
.atlas-group > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: .125rem 1rem; margin-bottom: .625rem; }
.atlas-group h2 { margin: 0; font-size: 1.6rem; }
.atlas-group p { margin: 0; color: var(--muted); font-size: .9rem; }
.atlas-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: .625rem; }
.atlas-card { display: flex; flex-direction: column; overflow: hidden; color: var(--text); scroll-margin-top: calc(var(--head) + .5rem); transition: border-color .2s; }
.atlas-card[hidden] { display: none; }
.atlas-card:hover { border-color: var(--line-2); color: var(--text); }
.atlas-card img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s ease; }
.atlas-card:hover img { transform: scale(1.03); }
.atlas-card-text { position: relative; display: flex; flex-direction: column; gap: .0625rem; padding: .5rem .75rem .625rem; background: var(--card-solid); line-height: 1.35; }
.atlas-card b { color: var(--strong); font: 500 1.14rem/1.2 var(--title); }
.atlas-card small { font-size: .78rem; }

/* The map is as wide as it can be while it stays whole on the screen, and the lists take the rest. */
.atlas { --side: min(calc(100vh - var(--head) - 3.75rem), calc(100vw - 2 * var(--gutter) - 20.5rem)); display: grid; grid-template-columns: var(--side) minmax(19rem, 1fr); gap: .75rem; align-items: start; margin-bottom: .75rem; }
.atlas-map { position: sticky; top: calc(var(--head) + .5rem); margin: 0; overflow: hidden; }
.atlas-view { position: relative; aspect-ratio: 1; overflow: hidden; background: #05060b; touch-action: pan-y; cursor: crosshair; }
.atlas-view.is-zoomed { cursor: grab; touch-action: none; }
.atlas-view.is-zoomed:active { cursor: grabbing; }
.atlas-stage { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.atlas-stage img { width: 100%; height: 100%; }
.atlas-marks { position: absolute; inset: 0; width: 100%; height: 100%; --mark: 1; }
.atlas-marks .is-off { display: none; }
.atlas-safe { fill: rgb(125 199 154 / 9%); stroke: rgb(125 199 154 / 50%); stroke-width: .3; pointer-events: none; }

.t0 { --t: #ff8a7a; } .t1 { --t: #ffc65c; } .t2 { --t: #c6ee63; } .t3 { --t: #5fe0a6; } .t4 { --t: #55d6f2; }
.t5 { --t: #7da6ff; } .t6 { --t: #bb9bff; } .t7 { --t: #f293e0; } .t8 { --t: #f5efe4; } .t9 { --t: #e0a971; }

.atlas-beast rect { fill: var(--t); fill-opacity: .07; stroke: var(--t); stroke-opacity: .55; stroke-width: .35; stroke-dasharray: 1.6 1.2; }
.atlas-beast circle { fill: var(--t); stroke: rgb(0 0 0 / 70%); stroke-width: .35; transform-box: fill-box; transform-origin: center; scale: var(--mark); }
.has-focus .atlas-beast { opacity: .12; }
.has-focus .atlas-beast.is-focus { opacity: 1; }
.has-focus .atlas-beast.is-focus rect { fill-opacity: .26; stroke-opacity: 1; stroke-width: .6; stroke-dasharray: none; }
.atlas-person circle { fill: var(--gold-soft); stroke: #120e07; stroke-width: .4; transform-box: fill-box; transform-origin: center; scale: var(--mark); }
.atlas-portal rect { fill: #9fd4ff; stroke: #06101c; stroke-width: .5; transform-box: fill-box; transform-origin: center; scale: var(--mark); }
.atlas-portal[data-href]:not([data-href=""]) { cursor: pointer; }
.atlas-portal.is-inner rect { fill: #c9b7f0; }
.atlas-farm circle { fill: none; stroke: var(--gold); stroke-width: 1; }
.atlas-farm .atlas-farm-halo { stroke: rgb(5 6 11 / 75%); stroke-width: 2.2; }
.atlas-farm rect { fill: rgb(214 178 102 / 55%); stroke: var(--gold); stroke-width: .5; }
.atlas-farm { cursor: help; }
.atlas-farms li { grid-template-columns: auto 1fr; }
.atlas-jewels { margin: 0 0 .5rem; padding: 0; list-style: none; font-size: .86rem; }
.atlas-jewels li { display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; column-gap: .5rem; padding: .25rem 0; border-top: 1px solid var(--line); }
.atlas-jewels img { grid-row: span 2; width: 2rem; height: 2rem; object-fit: contain; }
.atlas-jewels b { color: var(--strong); font-weight: 500; }
.atlas-jewel-odds { color: var(--gold-soft); font-variant-numeric: tabular-nums; text-align: right; }
.atlas-jewels small { grid-column: 2 / -1; font-size: .78rem; }
.atlas-subhead { margin: .5rem 0 .25rem; color: var(--muted); font: 500 .72rem/1.2 var(--body, inherit); letter-spacing: .12em; text-transform: uppercase; }

/* Farming spots: every hunting map's thumbnail with its squares, and the jewel zones. */
.spot-intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.spot-intro .info-card { margin: 0; }
.spot-pic { position: relative; display: block; overflow: hidden; }
.spot-pic svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Widths come as attributes from the page, scaled to the frame of each picture. */
.spot-mark circle { fill: none; stroke: var(--gold); }
.spot-mark .spot-halo { stroke: rgb(5 6 11 / 75%); }
.spot-mark rect { fill: rgb(214 178 102 / 55%); stroke: var(--gold); }
.spot-card .atlas-card-text { flex: 1; }
.spot-card b a { color: inherit; }
.jewel-head { margin: 1.5rem 0 .75rem; }
.jewel-head h2 { margin: 0 0 .25rem; }
.jewel-drops { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: .75rem; align-items: start; margin-bottom: .75rem; }
.jewel-drops h3 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .5rem; }
.jewel-drops h3 img { width: 2.5rem; height: 2.5rem; object-fit: contain; }
.jewel-drops td:nth-child(2) { color: var(--gold-soft); font-variant-numeric: tabular-nums; }
@media (min-width: 40rem) { .jewel-drops td:nth-child(n+2) { white-space: nowrap; } }
@media (max-width: 40rem) { .jewel-drops .rank th, .jewel-drops .rank td { padding-inline: .375rem; } .jewel-drops .table-frame { padding-inline: .5rem; } }
.spot-gems { display: flex; flex-wrap: wrap; gap: .125rem; margin-top: .25rem; }
.spot-gems img { width: 1.5rem; height: 1.5rem; object-fit: contain; }
.spot-list { margin: .375rem 0 0; padding: 0; list-style: none; font-size: .84rem; font-variant-numeric: tabular-nums; }
.spot-list li { display: flex; justify-content: space-between; gap: .5rem; padding: .1875rem 0; border-top: 1px solid var(--line); }

.atlas-tip { position: absolute; z-index: 3; max-width: 16rem; padding: .1875rem .5rem; background: var(--card-solid); border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--strong); font-size: .8rem; pointer-events: none; }
.atlas-tip[hidden] { display: none; }
.atlas-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .75rem; padding: .4375rem .625rem; border-top: 1px solid var(--line); }
.atlas-layers, .atlas-zoom { display: flex; flex-wrap: wrap; gap: .25rem; }
.atlas-spot { margin-left: auto; color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; min-width: 5.5rem; text-align: right; }
.chip { padding: .25rem .625rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); font: inherit; font-size: .78rem; cursor: pointer; }
.chip:hover { color: var(--strong); }
.chip.is-on { border-color: var(--gold); color: var(--strong); }
.atlas-zoom .chip { min-width: 2rem; padding-inline: .5rem; text-align: center; }

.atlas-side { display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.atlas-facts { padding: .5rem 1rem; margin: 0; }
.atlas-list { padding: .75rem 1rem; }
.atlas-list h2 { margin: 0 0 .25rem; font-size: 1.25rem; }
.atlas-list p { margin: 0 0 .5rem; font-size: .84rem; }
.atlas-beasts { display: flex; flex-direction: column; gap: .125rem; margin: 0 0 .5rem; padding: 0; list-style: none; }
.atlas-row { display: grid; grid-template-columns: .5rem 2.25rem minmax(0, 1fr) auto auto; align-items: center; gap: .5rem; width: 100%; padding: .1875rem .375rem; background: none; border: 1px solid transparent; border-radius: var(--radius); color: var(--text); font: inherit; font-size: .86rem; text-align: left; cursor: pointer; }
.atlas-row:hover, .atlas-row:focus-visible, .atlas-row[aria-pressed="true"] { background: var(--raise); border-color: var(--line); }
.atlas-row[aria-pressed="true"] { border-color: var(--gold); }
.atlas-row b { color: var(--strong); font-weight: 500; line-height: 1.2; }
.atlas-row img { width: 2.25rem; height: 2.25rem; object-fit: contain; }
.atlas-swatch { width: .5rem; height: .5rem; border-radius: 50%; background: var(--t); }
.atlas-more { font-size: .84rem; }
.atlas-doors { display: flex; flex-direction: column; gap: .125rem; margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.atlas-doors li { display: flex; justify-content: space-between; gap: 1rem; }
.atlas-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.atlas-next a { display: flex; flex-direction: column; padding: .5rem .875rem; color: var(--text); line-height: 1.3; }
.atlas-next small { color: var(--muted); font-size: .76rem; }
.atlas-next b { color: var(--strong); font: 500 1.1rem var(--title); }
.atlas-next a:hover { border-color: var(--line-2); }

@media (max-width: 62rem) {
    .atlas { grid-template-columns: minmax(0, 1fr); }
    .atlas-map { position: static; }
}

/* The game's models, played on the page by js/viewer.js. */

.viewer-box { display: flex; flex-direction: column; justify-content: center; gap: .375rem; min-width: 0; padding: .75rem; }
.viewer { display: block; width: 100%; aspect-ratio: 1; border-radius: var(--radius); cursor: grab; touch-action: pan-y; }
.viewer[hidden] { display: none; }
.viewer-holder { position: relative; }
.viewer-holder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.viewer-holder img[hidden] { display: none; }
.viewer.is-waiting { opacity: 0; }
.viewer.is-held { cursor: grabbing; }
.viewer:focus-visible { outline-offset: -2px; }
.viewer-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem; min-height: 1.875rem; }
.viewer-hint { margin: 0; color: var(--muted); font-size: .74rem; text-align: center; }
.viewer-hint[hidden] { display: none; }
.viewer-links { display: flex; flex-wrap: wrap; gap: .125rem .75rem; margin-bottom: .875rem; font-size: .9rem; }
.beast-open { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: flex-end; padding: .25rem 0; background: none; border: 0; color: var(--gold); font: 500 .72rem/1 var(--display); letter-spacing: .08em; cursor: zoom-in; }
.beast-open[hidden] { display: none; }
.beast-art:hover img { transform: scale(1.04); }
.beast-art img { transition: transform .3s ease; }
.beast-view .forge-body { padding-top: 2.25rem; }

/* The dressing room: a hero on the left, wearing the set chosen on the right. */

.dress { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: .75rem; align-items: start; margin-bottom: 1rem; }
.dress-stage { position: sticky; top: calc(var(--head) + .5rem); padding: 0; overflow: hidden; background: radial-gradient(circle at 50% 42%, rgb(212 177 122 / 11%), transparent 62%), var(--card); }
.dress-stage .viewer { max-height: calc(100vh - var(--head) - 1.25rem); }
.dress-stage .viewer-actions { position: absolute; inset: .5rem .5rem auto; z-index: 1; min-height: 0; pointer-events: none; }
.dress-stage .viewer-actions button { pointer-events: auto; }
.dress-stage .viewer-hint { position: absolute; inset: auto .5rem .375rem; pointer-events: none; }
.dress-now { padding: .875rem 1.125rem; margin-bottom: .625rem; }
.dress-now h2 { margin: 0 0 .25rem; font-size: 1.9rem; }
.dress-now .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); column-gap: 1.5rem; }
.dress-now .facts div { padding: .25rem 0; }
.dress-now p { margin: .5rem 0 0; font-size: .9rem; }
.dress-now .viewer-links { margin: .125rem 0 0; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.dress-classes, .dress-wings { margin-bottom: .5rem; }
.dress-hands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: .375rem .5rem; align-items: end; margin-bottom: .625rem; }
.dress-hands label { display: grid; gap: .25rem; color: var(--muted); font-size: .74rem; }
.dress-hands .chip { min-height: 2.5rem; }
.dress-hands .chip.is-on { border-color: var(--gold); color: var(--strong); }
.dress-wings button[hidden] { display: none; }
.dress-sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.75rem, 1fr)); gap: .375rem; }
.dress-set { display: grid; grid-template-columns: 3rem minmax(0, 1fr); align-items: center; gap: .5rem; padding: .25rem .5rem .25rem .25rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); font: inherit; font-size: .84rem; line-height: 1.25; text-align: left; cursor: pointer; }
.dress-set[hidden] { display: none; }
.dress-set:hover { border-color: var(--line-2); }
.dress-set[aria-pressed="true"] { border-color: var(--gold); background: var(--card-solid); }
.dress-set img { width: 3rem; height: 3rem; object-fit: contain; }
.dress-set b { display: block; color: var(--strong); font-weight: 500; }
.dress-set small { color: var(--muted); font-size: .74rem; }

@media (max-width: 62rem) {
    .dress { grid-template-columns: minmax(0, 1fr); }
    .dress-stage { position: static; }
    .dress-stage .viewer { max-height: 62vh; }
}

@media (max-width: 62rem) {
    .grown { grid-template-columns: minmax(0, 1fr); }
}

.planner-hero { aspect-ratio: 5 / 4; margin-bottom: .625rem; background: radial-gradient(circle at 50% 45%, rgb(212 177 122 / 10%), transparent 65%); }
.planner-hero[hidden] { display: none; }

/* Long lists keep their cost off screen: a card that is far away is not laid out or painted. */
.beast-map, .atlas-group { content-visibility: auto; contain-intrinsic-size: auto 40rem; }

.jump { margin-bottom: .75rem; }
.jump summary { display: inline-block; padding: .3125rem .75rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); font-size: .86rem; cursor: pointer; }
.jump[open] summary { margin-bottom: .5rem; border-color: var(--line-2); }

@media (max-width: 62rem) {
    /* On a narrow window the film stands right behind the words. */
    .page-head { margin-inline: -.5rem; padding: .625rem .75rem; background: rgb(var(--bg-rgb) / 62%); border-radius: var(--radius); }
    .page-head > p:last-child { color: var(--text); }
}

@media (max-width: 48rem) {
    .codex-nav { flex-wrap: nowrap; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
    .codex-nav::-webkit-scrollbar { display: none; }
    .codex-nav a { flex: none; }
    .atlas-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dress-sets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dress-hands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dress-hands .chip { grid-column: 1 / -1; min-height: 2.25rem; }
}

/* The redesigned home page (/portada-nueva, 6 Nov 2026, taste skill): the game named in the h1, live facts on the first
   screen, sections of one or two screens, one gold and one outline button, captures without captions. */
.home-new .hero h1 { font-size: clamp(2.6rem, calc(var(--u) * 6.2), 7.4rem); }
.h1-genre { display: block; margin-top: .5rem; color: var(--gold-soft); font: 500 clamp(1.15rem, calc(var(--u) * 1.9), 2.3rem)/1.15 var(--title); letter-spacing: 0; text-transform: none; }
.home-new .hero-lede { max-width: 34rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1.5rem 0 0; padding: 0; list-style: none; color: #c9c3ba; font-size: .9rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-facts li + li::before { content: ""; width: 1px; height: .9rem; margin-right: .75rem; background: var(--line-2); }
.hero-facts i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--bad); }
.hero-facts .is-on i { background: var(--ok); }
.hero-facts b { color: var(--strong); font-weight: 500; font-variant-numeric: tabular-nums; }
/* Each section owns at least one screen, its content centred, so the next heading never peeks in at the bottom. */
.home-new .screen { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; min-height: 100svh; padding-top: calc(var(--head) + 1rem); padding-bottom: clamp(2rem, 5vh, 3.5rem); }
/* The world fits one screen: wider, shorter map frames. The class numbers get a dark backing over bright art. */
.home-new .world-card img { aspect-ratio: 16 / 7; }
.home-new .card-number { padding: .125rem .5rem; background: rgb(var(--bg-rgb) / 62%); }
.section-actions { display: flex; justify-content: center; margin: 1.5rem 0 0; }
.game-frames { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: .75rem; }
.trailer-frame { position: relative; display: block; padding: 0; overflow: hidden; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--card-solid); cursor: pointer; }
.trailer-frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.trailer-frame:hover img { transform: scale(1.025); }
.trailer-play { position: absolute; inset: auto auto 1.25rem 1.25rem; display: inline-flex; align-items: center; gap: .75rem; padding: .75rem 1.25rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgb(var(--bg-rgb) / 80%); color: var(--strong); font: 500 .9rem/1 var(--body); transition: border-color .25s, background .25s; }
.trailer-play svg { width: 1.1rem; height: 1.1rem; color: var(--gold); }
.trailer-frame:hover .trailer-play, .trailer-frame:focus-visible .trailer-play { border-color: var(--gold); background: rgb(var(--bg-rgb) / 92%); }
.game-shots { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.game-shots a { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.game-shots img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s; }
.game-shots a:hover img { transform: scale(1.03); }
@media (max-width: 980px) {
    .game-frames { grid-template-columns: 1fr; }
    .hero-facts li + li::before { display: none; }
}

/* Community channel (10 Nov 2026) */

textarea {
    display: block; width: 100%; min-height: 8rem; padding: .625rem .75rem; resize: vertical;
    background: #080b12; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--strong);
    font: inherit; line-height: 1.6;
}
textarea::placeholder { color: #6e6d78; }
textarea:focus { border-color: var(--gold); outline: none; }
input[type="file"] { min-height: auto !important; padding: .5rem !important; color: var(--muted); }

.channel { margin-top: 2.5rem; scroll-margin-top: calc(var(--head) + 1rem); }
.channel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-bottom: .75rem; padding: 1.25rem 1.5rem; background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--radius); }
.channel-head h2 { margin: 0 0 .25rem; }
.channel-head p { margin: 0; max-width: 46rem; color: var(--muted); text-wrap: pretty; }
.channel-head .btn { flex: none; }
.channel-filters { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-bottom: .75rem; }
.channel-filters .chip { background: var(--card-solid); }
.channel-filters .chip { display: inline-flex; align-items: center; min-height: 2.25rem; text-decoration: none; }
.channel-rules { margin: .75rem 0 0; padding: .75rem 1.25rem; background: var(--card-solid); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); font-size: .92rem; }

.topic-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.topic-row { padding: .875rem 1.25rem; transition: border-color .2s; }
.topic-row:hover { border-color: var(--line-2); }
.topic-row h3 { margin: .125rem 0 .25rem; font-size: 1.35rem; overflow-wrap: anywhere; }
.topic-row h3 a { color: var(--strong); }
.topic-row h3 a:hover { color: var(--gold-soft); }
.topic-tags { display: flex; flex-wrap: wrap; gap: .375rem; margin: 0; }
.topic-tags .state { margin: 0; }
.topic-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; margin: 0; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.topic-author { color: var(--text); }
.staff-badge { padding: 0 .4375rem; border: 1px solid var(--gold-deep); border-radius: var(--radius); color: var(--gold-soft); font-size: .76rem; font-weight: 500; letter-spacing: .06em; }
.state-hidden { color: var(--bad); border-color: rgb(226 140 140 / 40%); }
.is-hidden { opacity: .62; }

.topic-head h1 { overflow-wrap: anywhere; }
.topic-head .topic-tags { margin-bottom: .5rem; }
.topic-body { padding: 1.375rem 1.5rem; margin-bottom: .75rem; }
.post-text { white-space: pre-wrap; overflow-wrap: anywhere; text-wrap: pretty; }
.post-shot { display: block; margin-top: 1rem; }
.post-shot img { display: block; max-width: 100%; height: auto; max-height: 34rem; border: 1px solid var(--line); border-radius: var(--radius); }
.topic-actions { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; }
.topic-actions form { margin: 0; }
.topic-actions .btn.is-on { border-color: var(--gold); color: var(--gold-soft); }

.staff-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1.25rem; }
.staff-tools h2 { flex-basis: 100%; margin: 0; font-size: 1.25rem; }
.staff-tools form { margin: 0; }
.staff-row { display: flex; align-items: flex-end; gap: .75rem; }
.staff-row .field { margin: 0; min-width: 13rem; }

.replies { margin-top: 1.75rem; scroll-margin-top: calc(var(--head) + 1rem); }
.replies h2 { font-size: 1.5rem; }
.reply { padding: 1rem 1.25rem; margin-bottom: .5rem; }
.reply .topic-meta { margin-bottom: .375rem; }
.reply.is-staff { border-color: var(--gold-deep); }
.reply-tools { margin: .5rem 0 0; }
.link-button { padding: 0; background: none; border: 0; color: var(--muted); font: inherit; font-size: .88rem; text-decoration: underline; cursor: pointer; }
.link-button:hover { color: var(--strong); }
.reply-form { margin-top: 1rem; }
.kind-choice { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.kind-choice .check { margin-bottom: .5rem; }
.field-note { margin: 0 0 .75rem; color: var(--muted); font-size: .94rem; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; color: var(--muted); }

@media (max-width: 720px) {
    .channel-head { flex-direction: column; align-items: stretch; padding: 1rem; }
    .topic-row { padding: .75rem 1rem; }
    .staff-row { flex-wrap: wrap; }
    .staff-row .field { min-width: 0; flex: 1 1 12rem; }
}
