/* ATHENIA ONLINE - the website (2026-10-17). Atlas Online's layout (a dark header, a full-bleed hero with the class
   preview, the paper doll and the class panel, a skill dock, split feature bands, a devlog teaser, a quiet footer) in
   Athenia's colours: night ink, parchment cream and the guild gold of the game's own UI. One stylesheet for the landing
   page, the wiki and the devlog. Phone first: everything stacks under 900 px, the header folds into a menu. */

:root {
  --ink: #0b0e16;
  --ink-2: #10141f;
  --panel: #151b2b;
  --panel-2: #1b2236;
  --line: rgba(236, 222, 190, 0.1);
  --line-2: rgba(236, 222, 190, 0.18);
  --cream: #f6eedb;
  --text: #e7e1d2;
  --muted: #a3a9ba;
  --faint: #7c8396;
  --gold: #f3c454;
  --gold-2: #d99a2b;
  --gold-ink: #241703;
  --ember: #ef7d45;
  --sky: #8cc4ff;
  --green: #8fdc84;
  --r-common: #d8d8d8;
  --r-uncommon: #7ee07a;
  --r-rare: #6fb2ff;
  --r-epic: #c58bff;
  --r-legendary: #ffb347;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --logo: "Cinzel", Georgia, serif;
  --head-h: 68px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 16px/1.55 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
/* the wiki's search and "Show more" hide things with the hidden attribute; a class's display (.skill, .btn) would win over
   the browser's own [hidden] rule and leave them showing (review 2026-10-17) */
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--gold-ink); padding: 10px 14px; border-radius: 6px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: min(100%, var(--wrap)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------------------------------------------------------- type */
.kicker { font: 700 12px/1.2 var(--body); letter-spacing: 0.32em; text-transform: uppercase; color: var(--cream); opacity: 0.9; }
.kicker.gold { color: var(--gold); opacity: 1; }
.display { font: 800 clamp(44px, 9vw, 112px)/0.9 var(--display); letter-spacing: -0.01em; text-transform: uppercase; color: var(--cream); margin: 0; text-wrap: balance; }
.h2 { font: 800 clamp(34px, 5.4vw, 64px)/0.95 var(--display); text-transform: uppercase; color: var(--cream); margin: 10px 0 16px; text-wrap: balance; }
.h3 { font: 700 clamp(22px, 2.4vw, 28px)/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; color: var(--cream); margin: 0 0 8px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text); max-width: 46ch; margin: 0 0 22px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: 6px;
  font: 700 17px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; transition: transform .15s, filter .15s, background .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: linear-gradient(180deg, #ffd97a, var(--gold) 45%, var(--gold-2)); color: var(--gold-ink); border-color: #ffe7a6; box-shadow: 0 6px 22px -8px rgba(243, 196, 84, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn-gold:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost { background: rgba(11, 14, 22, 0.55); color: var(--cream); border-color: var(--line-2); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-big { min-height: 58px; padding: 0 34px; font-size: 22px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 700 18px/1.2 var(--display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold);
  border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.link-arrow:hover { text-decoration: none; color: #ffe08a; }
.link-arrow svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- header */
.site-head { position: sticky; top: 0; z-index: 50; height: var(--head-h); background: rgba(11, 14, 22, 0.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.site-head .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none !important; color: var(--cream); }
.logo b { font: 900 25px/1 var(--logo); letter-spacing: 0.06em; background: linear-gradient(180deg, #fff3cf, var(--gold) 55%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo span { font: 700 10px/1 var(--logo); letter-spacing: 0.62em; color: var(--cream); opacity: 0.8; margin-top: 4px; padding-left: 2px; }
.badge-alpha { font: 700 10px/1 var(--body); letter-spacing: 0.28em; text-transform: uppercase; color: var(--faint); padding-left: 18px; border-left: 1px solid var(--line-2); height: 28px; display: flex; align-items: center; }
.nav { display: flex; gap: 4px; margin: 0 auto; }
.nav a { color: var(--cream); font: 600 16px/1 var(--body); padding: 10px 14px; border-radius: 6px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); text-decoration: none; background: rgba(255, 255, 255, 0.04); }
.head-cta { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 6px; background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 960px) {
  .badge-alpha { display: none; }
  .nav { position: fixed; inset: var(--head-h) 0 auto 0; flex-direction: column; gap: 0; background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu-btn { display: inline-flex; }
  .head-cta { margin-left: auto; }
  .head-cta .btn { min-height: 40px; padding: 0 14px; font-size: 15px; }
}
@media (max-width: 380px) { .logo b { font-size: 21px; } .head-cta .btn span.long { display: none; } }

/* ---------------------------------------------------------------- the hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(28px, 5vw, 56px) 0 0; min-height: calc(100svh - var(--head-h)); }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: var(--ink) center 30% / cover no-repeat; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(70% 55% at 50% 60%, rgba(11, 14, 22, 0.05), rgba(11, 14, 22, 0.55) 70%),
  linear-gradient(180deg, rgba(11, 14, 22, 0.78) 0%, rgba(11, 14, 22, 0.35) 30%, rgba(11, 14, 22, 0.45) 62%, var(--ink) 100%); }
.hero-head { text-align: center; position: relative; z-index: 2; }
.hero-head .lead { margin: 14px auto 0; max-width: 40ch; color: var(--cream); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.hero-head .display { text-shadow: 0 6px 30px rgba(0, 0, 0, 0.45); }
.stage { display: grid; grid-template-columns: minmax(170px, 230px) 1fr minmax(260px, 340px); gap: 18px; align-items: end; margin-top: 12px; }

/* the class preview: three groups of small crest cards */
.roster { align-self: center; display: flex; flex-direction: column; gap: 14px; }
.roster h2 { margin: 0 0 2px; }
.roster-group { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.roster-group.one { grid-template-columns: 1fr; }
.roster-label { font: 700 10px/1 var(--body); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin: 6px 0 2px; }
.class-card { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(11, 14, 22, 0.72);
  cursor: pointer; text-align: left; min-height: 44px; transition: border-color .15s, background .15s; position: relative; }
.class-card img { width: 30px; height: 30px; border-radius: 4px; flex: none; }
.class-card span { font: 600 14px/1.1 var(--body); color: var(--cream); }
.class-card:hover { border-color: rgba(243, 196, 84, 0.6); }
.class-card[aria-pressed="true"] { border-color: var(--gold); background: rgba(40, 30, 10, 0.82); box-shadow: inset 3px 0 0 var(--gold); }
.class-card[aria-pressed="true"] span { color: var(--gold); }

/* the doll */
.doll { position: relative; height: clamp(440px, 64vh, 680px); display: flex; flex-direction: column; justify-content: flex-end; }
.doll canvas { position: absolute; inset: 0 0 64px 0; width: 100%; height: calc(100% - 64px); touch-action: pan-y; cursor: grab; outline: none; }
.doll canvas:active { cursor: grabbing; }
.doll canvas:focus-visible { box-shadow: 0 0 0 2px var(--gold) inset; border-radius: 8px; }
.doll-poster { position: absolute; inset: 0 0 64px 0; display: grid; place-items: center; pointer-events: none; transition: opacity .4s; }
.doll-poster.gone { opacity: 0; }
.doll-poster .ring { width: 74px; height: 74px; border-radius: 50%; border: 3px solid rgba(243, 196, 84, 0.18); border-top-color: var(--gold); animation: spin 1s linear infinite; }
.doll-poster p { margin: 12px 0 0; font: 600 13px/1.3 var(--body); letter-spacing: 0.08em; color: var(--cream); text-align: center; text-shadow: 0 1px 6px #000; }
.doll-poster .bar { width: 160px; height: 3px; background: rgba(255, 255, 255, 0.12); border-radius: 2px; margin: 10px auto 0; overflow: hidden; }
.doll-poster .bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s; }
@keyframes spin { to { transform: rotate(360deg); } }
.doll-bar { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; min-height: 56px; padding-bottom: 4px; }
.chip { min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(11, 14, 22, 0.78); color: var(--cream);
  font: 600 13px/1 var(--body); letter-spacing: 0.04em; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: border-color .15s, color .15s; }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.chip svg { width: 16px; height: 16px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; background: rgba(11, 14, 22, 0.78); }
.seg .chip { border: 0; border-radius: 0; }
.doll-hint { position: absolute; top: 8px; right: 6px; z-index: 2; font: 600 11px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream); opacity: .75;
  display: flex; gap: 6px; align-items: center; }
.doll-hint button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(11, 14, 22, 0.7); cursor: pointer; display: grid; place-items: center; }
.doll-hint button:hover { border-color: var(--gold); }
.doll-hint svg { width: 16px; height: 16px; }
.doll-sex { position: absolute; top: 8px; left: 6px; z-index: 2; }
.doll-fail { position: absolute; inset: 20% 10%; display: none; place-items: center; text-align: center; color: var(--cream); }
.doll.failed .doll-fail { display: grid; }
.doll.failed .doll-poster { display: none; }

/* the class panel */
.profile { align-self: center; padding-bottom: 40px; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }
.profile .job-name { font: 800 clamp(48px, 5.5vw, 76px)/0.9 var(--display); text-transform: uppercase; color: var(--cream); margin: 0; }
.profile .job-role { font: 600 19px/1.3 var(--body); color: var(--cream); margin: 8px 0 2px; }
.profile .job-earn { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.profile .job-blurb { font-size: 15px; color: var(--text); margin: 0 0 14px; max-width: 40ch; }
.stats { display: grid; grid-template-columns: 52px 1fr 48px; gap: 5px 10px; align-items: center; font: 600 12px/1 var(--body); margin: 0 0 14px; }
.stats dt { color: var(--muted); letter-spacing: 0.1em; }
.stats dd { margin: 0; height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 3px; overflow: hidden; }
.stats dd i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--gold)); border-radius: 3px; transition: width .4s; }
.stats .v { text-align: right; color: var(--cream); font-variant-numeric: tabular-nums; }
.skill-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 7px; }
.skill-list li { display: flex; align-items: center; gap: 10px; font: 600 15px/1.2 var(--body); color: var(--cream); }
.skill-list img { width: 34px; height: 34px; border-radius: 5px; border: 1px solid rgba(243, 196, 84, 0.55); background: #222; flex: none; }

/* try-on: the armory under the doll */
.tryon { position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; align-items: center; margin: 4px auto 0; padding: 14px 16px; border-radius: 10px;
  background: rgba(11, 14, 22, 0.8); border: 1px solid var(--line); max-width: 980px; }
.tryon > .label { font: 700 11px/1.2 var(--body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.metal-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.metal { flex: none; width: 62px; padding: 4px 2px 5px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; text-align: center; }
.metal img { width: 38px; height: 38px; margin: 0 auto; }
.metal span { display: block; font: 600 10px/1.1 var(--body); color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metal[aria-pressed="true"] { border-color: var(--gold); background: rgba(243, 196, 84, 0.12); }
.metal[aria-pressed="true"] span { color: var(--gold); }
.wear-row { display: flex; flex-wrap: wrap; gap: 10px; }
.select { display: inline-flex; flex-direction: column; gap: 4px; font: 600 11px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.select select { min-height: 38px; min-width: 170px; padding: 0 30px 0 10px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--cream); font: 500 14px/1 var(--body); letter-spacing: 0;
  text-transform: none; background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3c454' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 16px; appearance: none; cursor: pointer; }
.hero-cta { text-align: center; padding: 26px 0 30px; position: relative; z-index: 2; }
.hero-cta p { margin: 10px 0 0; font: 600 13px/1.4 var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 1100px) { .stage { grid-template-columns: 200px 1fr 280px; } }
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .stage { grid-template-columns: 1fr; gap: 6px; }
  .roster { order: 1; }
  .roster-groups { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .roster-groups::-webkit-scrollbar { display: none; }
  .roster-group, .roster-group.one { display: flex; gap: 6px; }
  .roster-label { display: none; }
  .class-card { flex: none; scroll-snap-align: start; }
  .doll { order: 2; height: min(118vw, 560px); }
  .profile { order: 3; padding-bottom: 8px; }
  .tryon { grid-template-columns: 1fr; gap: 8px; }
  .select select { min-width: 0; width: 100%; }
  .wear-row { display: grid; grid-template-columns: 1fr 1fr; }
  .wear-row .select:last-child { grid-column: span 2; }
}

/* ---------------------------------------------------------------- the skill dock */
.dock { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); }
.dock .wrap { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 20px; padding-bottom: 20px; gap: 0; }
.dock-item { display: flex; gap: 14px; align-items: flex-start; padding: 6px 22px; border-left: 1px solid var(--line); }
.dock-item:first-child { border-left: 0; padding-left: 0; }
.dock-item img { width: 56px; height: 56px; border-radius: 6px; border: 1px solid rgba(243, 196, 84, 0.6); flex: none; background: #222; }
.dock-item h3 { margin: 2px 0 4px; font: 700 18px/1.1 var(--body); color: var(--cream); }
.dock-item p { margin: 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dock .wrap.dock-foot { display: flex; grid-template-columns: none; padding-top: 0;}
.dock-foot { display: flex; justify-content: space-between; padding-bottom: 14px; font-size: 12px; color: var(--faint); }
@media (max-width: 900px) { .dock .wrap { grid-template-columns: 1fr 1fr; gap: 14px 0; } .dock-item:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 520px) { .dock .wrap { grid-template-columns: 1fr; } .dock-item { border-left: 0; padding-left: 0; } }

/* ---------------------------------------------------------------- bands */
.band { border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 420px; }
.split.flip { grid-template-columns: 1fr 1.15fr; }
.split.flip .split-art { order: 2; }
.split-art { position: relative; overflow: hidden; background: var(--panel) center / cover no-repeat; min-height: 300px; }
.split-art img.cover { width: 100%; height: 100%; object-fit: cover; }
.split-art .tag { position: absolute; left: 20px; bottom: 20px; }
.split-text { padding: clamp(32px, 5vw, 72px) clamp(20px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.split-text .lead { color: var(--text); }
@media (max-width: 900px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip .split-art { order: 0; } .split-art { min-height: 0; aspect-ratio: 16 / 9; } .forge-art { aspect-ratio: auto; } }

/* the armory band's art: a forge-lit plate of the bows */
.forge-art { background: radial-gradient(90% 80% at 50% 110%, rgba(239, 125, 69, 0.38), transparent 60%), radial-gradient(60% 50% at 50% 50%, #26203a, #12111c); display: grid; place-items: center; padding: 28px; }
.bow-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; width: min(100%, 640px); }
.bow-grid figure { margin: 0; text-align: center; }
.bow-grid img { width: 100%; aspect-ratio: 1; border-radius: 8px; background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.06); }
.bow-grid figcaption { font: 600 11px/1.2 var(--body); color: var(--muted); margin-top: 5px; }
@media (max-width: 600px) { .bow-grid { grid-template-columns: repeat(4, 1fr); } }

/* the metals strip */
.metals { background: var(--ink-2); }
.metals .wrap { padding-top: 28px; padding-bottom: 24px; }
.metal-strip { display: flex; gap: 8px; overflow-x: auto; justify-content: space-between; padding-bottom: 6px; scrollbar-width: thin; }
.metal-strip figure { flex: 1 0 84px; margin: 0; text-align: center; }
.metal-strip img { width: 64px; height: 64px; margin: 0 auto 6px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)); }
.metal-strip b { display: block; font: 700 15px/1.2 var(--body); color: var(--cream); }
.metal-strip span { font-size: 12px; color: var(--muted); }
.metal-note { text-align: center; font-size: 12px; color: var(--faint); margin: 12px 0 0; letter-spacing: 0.04em; }

/* the world band */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 24px; }
.facts div { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: var(--panel); }
.facts b { display: block; font: 800 34px/1 var(--display); color: var(--gold); }
.facts span { font-size: 13px; color: var(--muted); }
.world-band { display: grid; grid-template-columns: 1.6fr 1fr; }
.world-art { position: relative; min-height: 460px; background: var(--panel) center / cover no-repeat; }
.world-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 14, 22, 0.92), rgba(11, 14, 22, 0.15) 60%); }
.world-art .over { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(20px, 4vw, 48px); }
/* the v3 Amar Oasis behind it is full of name plates where the kicker and the heading stand (2026-10-26,
   bu-sitegallery2): a dark halo keeps the words readable over them, as .hero-head's over the doll's scene */
.world-art .over .kicker, .world-art .over .h2 { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 14px rgba(0, 0, 0, 0.75); }
.teaser { padding: clamp(28px, 4vw, 56px); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.teaser article { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.teaser article:last-of-type { border-bottom: 0; }
.teaser time { font: 600 13px/1 var(--body); letter-spacing: 0.12em; color: var(--muted); }
.teaser h3 { font: 700 26px/1.05 var(--display); color: var(--cream); margin: 6px 0; text-transform: none; }
.teaser p { margin: 0; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .world-band { grid-template-columns: 1fr; } .teaser { border-left: 0; } .world-art { min-height: 380px; } .facts { grid-template-columns: repeat(3, 1fr); } .facts b { font-size: 28px; } }

/* mounts */
.mount-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.mount { margin: 0; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); overflow: hidden; }
.mount img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.mount figcaption { padding: 10px 12px 12px; }
.mount b { display: block; font: 700 16px/1.2 var(--body); color: var(--cream); }
.mount span { font-size: 12px; color: var(--muted); }
.section-pad { padding: clamp(40px, 6vw, 80px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head .h2 { margin-bottom: 0; }

/* get the game */
.get { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.get-card { border: 1px solid var(--line-2); border-radius: 12px; padding: 22px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); display: flex; flex-direction: column; gap: 10px; }
.get-card svg.big { width: 34px; height: 34px; color: var(--gold); }
.get-card h3 { margin: 0; font: 800 26px/1 var(--display); text-transform: uppercase; color: var(--cream); }
.get-card p { margin: 0 0 6px; font-size: 14px; color: var(--muted); flex: 1; }
@media (max-width: 800px) { .get { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- footer */
.site-foot { border-top: 1px solid var(--line); background: var(--ink-2); padding: 34px 0 20px; font-size: 14px; }
.foot-top { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.foot-top nav { display: flex; gap: 18px; flex-wrap: wrap; padding-left: 24px; border-left: 1px solid var(--line-2); }
.foot-top nav a { color: var(--cream); font-weight: 600; }
.foot-top .right { margin-left: auto; color: var(--muted); text-align: right; }
/* the studio (2026-10-26, Alvin: "use the ZenZen Studio logo instead of Wipeout Labs"): its mark - the traced vector of his
   logo, white - beside the words, which stay real text for readers and search */
.foot-top .studio { display: flex; align-items: center; gap: 12px; text-align: left; line-height: 1.35; }
.studio-logo { width: 52px; height: 52px; flex: none; opacity: .92; }
.foot-bottom .credits { color: var(--muted); }
.get-dev { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.get-dev b { color: var(--cream); }
.foot-top .studio b { color: var(--cream); font-weight: 700; letter-spacing: .03em; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; }
@media (max-width: 700px) { .foot-top nav { padding-left: 0; border-left: 0; width: 100%; } .foot-top .right { margin-left: 0; text-align: left; } .studio-logo { width: 46px; height: 46px; } }

/* ---------------------------------------------------------------- the wiki */
.page-hero { padding: clamp(36px, 6vw, 70px) 0 clamp(20px, 3vw, 30px); background: radial-gradient(80% 120% at 80% 0%, rgba(243, 196, 84, 0.1), transparent 60%), var(--ink); border-bottom: 1px solid var(--line); }
.page-hero .lead { max-width: 64ch; }
.wiki { display: grid; grid-template-columns: 230px 1fr; gap: 36px; padding-top: 26px; padding-bottom: 60px; }
.wiki-nav { position: sticky; top: calc(var(--head-h) + 16px); align-self: start; max-height: calc(100vh - var(--head-h) - 32px); overflow: auto; }
.wiki-nav input { width: 100%; min-height: 42px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel); color: var(--cream); padding: 0 12px; font: 500 15px var(--body); margin-bottom: 14px; }
.wiki-nav input::placeholder { color: var(--faint); }
.wiki-nav a { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 6px; color: var(--cream); font-weight: 600; }
.wiki-nav a small { color: var(--faint); font-weight: 500; }
.wiki-nav a:hover { background: var(--panel); text-decoration: none; }
.wiki-nav a.on { background: rgba(243, 196, 84, 0.12); color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.wiki-main section { margin-bottom: 56px; scroll-margin-top: calc(var(--head-h) + 16px); }
.wiki-main h2 { font: 800 clamp(30px, 4vw, 44px)/1 var(--display); text-transform: uppercase; color: var(--cream); margin: 0 0 6px; }
.wiki-main h2 + p { color: var(--muted); margin: 0 0 18px; max-width: 70ch; }
.wiki-main h3 { font: 700 22px/1.15 var(--display); text-transform: uppercase; letter-spacing: 0.02em; color: var(--cream); margin: 24px 0 10px; }
.wiki-mobile-nav { display: none; }
@media (max-width: 900px) {
  .wiki { grid-template-columns: 1fr; gap: 0; }
  .wiki-nav { position: static; max-height: none; overflow: visible; }
  .wiki-nav .links { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
  .wiki-nav .links::-webkit-scrollbar { display: none; }
  .wiki-nav a { flex: none; border: 1px solid var(--line-2); padding: 8px 12px; }
  .wiki-nav a small { display: none; }
  .wiki-nav { position: sticky; top: var(--head-h); z-index: 10; background: rgba(11, 14, 22, 0.96); padding: 10px 0 2px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); border-bottom: 1px solid var(--line); }
  .wiki-nav input { margin-bottom: 8px; min-height: 40px; }
}

/* cards and tables */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 14px; }
.card-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.card-head img { width: 48px; height: 48px; border-radius: 8px; flex: none; background: #1f2433; object-fit: contain; }
.card-head h4 { margin: 0; font: 700 18px/1.15 var(--body); color: var(--cream); }
.card-head small { color: var(--muted); font-size: 13px; }
.card p { margin: 0 0 8px; font-size: 14px; color: var(--text); }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 4px; font: 600 12px/1 var(--body); padding: 5px 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); color: var(--cream); border: 1px solid var(--line); }
.pill.gold { color: var(--gold); border-color: rgba(243, 196, 84, 0.4); }
.pill.boss { color: #ffb4a0; border-color: rgba(255, 140, 110, 0.45); }
.r-common { color: var(--r-common); } .r-uncommon { color: var(--r-uncommon); } .r-rare { color: var(--r-rare); } .r-epic { color: var(--r-epic); } .r-legendary { color: var(--r-legendary); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
table.data th { text-align: left; font: 700 11px/1.2 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); background: var(--panel-2); padding: 10px 12px; position: sticky; top: 0; }
table.data td { padding: 8px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data img { width: 32px; height: 32px; border-radius: 5px; display: inline-block; vertical-align: middle; margin-right: 8px; background: #1f2433; }
table.data tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* a job in the wiki */
.job { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); margin-bottom: 16px; overflow: hidden; }
.job > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; }
.job > summary::-webkit-details-marker { display: none; }
.job > summary img { width: 56px; height: 56px; border-radius: 10px; }
.job > summary h4 { margin: 0; font: 800 28px/1 var(--display); text-transform: uppercase; color: var(--cream); }
.job > summary small { color: var(--muted); font-size: 14px; }
.job > summary .chev { width: 22px; height: 22px; color: var(--gold); transition: transform .2s; }
.job[open] > summary .chev { transform: rotate(180deg); }
.job-body { padding: 0 16px 16px; border-top: 1px solid var(--line); }
.job-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 14px; }
.kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kv div { background: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.kv b { display: block; font: 700 18px/1.1 var(--body); color: var(--cream); font-variant-numeric: tabular-nums; }
.kv span { font: 600 10px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.skill { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.skill img { width: 44px; height: 44px; border-radius: 6px; border: 1px solid rgba(243, 196, 84, 0.5); }
.skill b { color: var(--cream); font-size: 16px; }
.skill p { margin: 3px 0 4px; font-size: 14px; color: var(--text); }
.skill .meta { font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .job-grid { grid-template-columns: 1fr; } .kv { grid-template-columns: repeat(2, 1fr); } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.creature-card .portrait { width: 64px; height: 64px; border-radius: 10px; background: radial-gradient(circle at 50% 40%, #2b3350, #161b2b); object-fit: contain; }
.drops { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.drops span { font-size: 12px; color: var(--muted); background: var(--ink-2); border-radius: 10px; padding: 3px 8px; }
.more { display: block; margin: 14px auto 0; }
.empty { color: var(--muted); padding: 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: 10px; }
.callout { border-left: 3px solid var(--gold); background: var(--panel); padding: 12px 14px; border-radius: 0 8px 8px 0; margin: 12px 0; font-size: 15px; }
.odds { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.odds div { background: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; text-align: center; padding: 6px 2px; }
.odds b { display: block; font: 700 13px/1 var(--body); color: var(--cream); }
.odds span { font-size: 11px; color: var(--muted); }
@media (max-width: 640px) { .odds { grid-template-columns: repeat(5, 1fr); } }

/* ---------------------------------------------------------------- the devlog */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.tabs [role="tab"] { min-height: 40px; padding: 0 16px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--panel); color: var(--cream); font: 600 14px/1 var(--body); cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.tabs .n { opacity: 0.7; margin-left: 4px; font-variant-numeric: tabular-nums; }
.log { padding-top: 26px; padding-bottom: 60px; max-width: 920px; }
.day { margin-bottom: 40px; }
.day > h2 { font: 800 28px/1 var(--display); text-transform: uppercase; color: var(--cream); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); position: sticky; top: var(--head-h); background: var(--ink); z-index: 2; padding-top: 10px; }
.entry { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 18px; margin-bottom: 14px; }
.entry h3 { font: 700 24px/1.1 var(--display); color: var(--cream); margin: 6px 0 8px; }
.entry p { margin: 0 0 8px; }
.entry ul { margin: 6px 0 10px; padding-left: 20px; color: var(--text); }
.entry li { margin: 4px 0; }
.tag { display: inline-block; font: 700 11px/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 9px; border-radius: 10px; }
.tag-new { background: rgba(143, 220, 132, 0.15); color: var(--green); }
.tag-improved { background: rgba(140, 196, 255, 0.15); color: var(--sky); }
.tag-fixed { background: rgba(243, 196, 84, 0.15); color: var(--gold); }
.tag-soon { background: rgba(197, 139, 255, 0.15); color: var(--r-epic); }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; margin-top: 10px; }
.shots button { padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; cursor: zoom-in; background: #000; }
.shots img { width: 100%; height: auto; aspect-ratio: auto; }
.viewer { position: fixed; inset: 0; z-index: 100; background: rgba(5, 7, 12, 0.94); display: none; place-items: center; padding: 20px; }
.viewer.open { display: grid; }
.viewer img { max-width: min(1400px, 100%); max-height: 84vh; border-radius: 8px; }
.viewer p { color: var(--muted); text-align: center; max-width: 80ch; margin: 10px auto 0; font-size: 14px; }
.viewer button { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; display: grid; place-items: center; }
.viewer button svg { width: 20px; height: 20px; }

/* grid and flex children may shrink below their content (a scrolling row of cards must not widen the page) */
.stage > *, .split > *, .world-band > *, .wiki > *, .tryon > * { min-width: 0; }
.world-wiki { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.world-wiki .map { width: 100%; border-radius: 12px; border: 1px solid var(--line); }
@media (max-width: 760px) { .world-wiki { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- the screenshots (2026-10-26: the trailer's shots)
   a big first picture the width of the page, then the rest in a grid (three across, two on a phone); a click opens the
   viewer, which steps through them all. The pictures are 16:9, so the boxes keep that shape before they load. */
.shots-lead { max-width: 60ch; margin-top: -8px; color: var(--muted); }
/* six tracks so a row holds three (span 2) or two halves (span 3): 15 pictures = the big one, 12 in four rows of three,
   and the two Moltharax shots as a closing pair (2026-10-26, bu-sitegallery2); on a phone two across, every row full */
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.shot { margin: 0; min-width: 0; grid-column: span 2; }
.shot.half { grid-column: span 3; }
.shot a { display: block; position: relative; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); aspect-ratio: 16 / 9; cursor: zoom-in; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.shot a:hover img { transform: scale(1.03); }
.shot figcaption { font: 700 18px/1.15 var(--display); text-transform: uppercase; letter-spacing: 0.03em; color: var(--cream); margin-top: 8px; }
.shot.big { grid-column: 1 / -1; position: relative; }
.shot.big a { aspect-ratio: 21 / 9; }
.shot.big img { object-position: center 35%; }
.shot.big figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: clamp(16px, 3vw, 32px); font-size: clamp(26px, 3.6vw, 44px); pointer-events: none;
  background: linear-gradient(0deg, rgba(11, 14, 22, 0.85), transparent); border-radius: 0 0 10px 10px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .shot, .shot.half { grid-column: span 1; } .shot figcaption { font-size: 15px; } .shot.big a { aspect-ratio: 16 / 9; } }

/* the viewer, stepping through the screenshots (the devlog's viewer is the same box without the arrows) */
/* a sideways swipe is the viewer's (a step), never the browser's (a page back) */
html:has(.gallery-viewer.open), html:has(.gallery-viewer.open) body { overscroll-behavior-x: none; }
/* (not touch-action: pan-y on the viewer - measured 2026-10-26: with it a tap right after a swipe gave no click) */
.gallery-viewer figure { margin: 0; max-width: min(1400px, 100%); }
.gallery-viewer .v-media img, .gallery-viewer .v-media video, .gallery-viewer .v-media iframe { display: block; max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: 8px; }
.gallery-viewer .v-media iframe, .gallery-viewer .v-media video { width: min(1280px, 92vw); aspect-ratio: 16 / 9; height: auto; border: 0; background: #000; }
.viewer .v-step { top: 50%; right: auto; transform: translateY(-50%); }
.viewer .v-prev { left: 14px; }
.viewer .v-next { left: auto; right: 14px; }
.viewer.single .v-step { display: none; }
@media (max-width: 700px) { .viewer .v-step { top: auto; bottom: 18px; transform: none; } .viewer .v-prev { left: calc(50% - 56px); } .viewer .v-next { right: calc(50% - 56px); } .gallery-viewer .v-media img { max-height: 72vh; } }

/* a picture from the game behind the wiki's and the devlog's page heads, darkened so the words stay readable */
.page-hero.has-shot { position: relative; isolation: isolate; overflow: hidden; }
.page-hero.has-shot .page-hero-bg { position: absolute; inset: 0; z-index: -1; background: var(--ink) center 40% / cover no-repeat; }
.page-hero.has-shot .page-hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11, 14, 22, 0.94) 0%, rgba(11, 14, 22, 0.78) 55%, rgba(11, 14, 22, 0.55) 100%), linear-gradient(0deg, var(--ink), transparent 40%); }
