/* Unknown Ambitions design system.
   Identity: ink-dark surfaces, black, blood red and silver, taken from the Unknown Ambitions logo, chamfered "cut" corners, serif display type.
   No decorative gradients or glows. Contrast targets WCAG AA on all text tokens. */

:root {
  --ink-0: #0b0b0b;      /* page */
  --ink-1: #111113;      /* surface */
  --ink-2: #19191c;      /* raised */
  --ink-3: #232327;      /* hover / input */
  --line: #302d30;
  --line-strong: #4a4549;
  --text: #ece9e9;
  --text-muted: #aaa5a8;
  --silver: #cfd2dc;
  --red: #e5484d;     /* primary accent (links, focus); blood red from the logo */
  --red-deep: #9b1c22;
  --ember: #d19a5b;      /* sparing secondary accent: warnings, "in development" */
  --ok: #7fc9a0;
  --bad: #ef8a8a;
  --accent: var(--red); /* overridden per game */
  --radius: 2px;
  --cut: 12px;
  --max: 1160px;
  --measure: 68ch;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink-0); color: var(--text);
  font: 1rem/1.65 var(--font-body); min-height: 100vh;
  display: flex; flex-direction: column;
}
main { flex: 1; }
img, video, svg { max-width: 100%; height: auto; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: #c1b7ff; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; letter-spacing: .01em; margin: 0 0 .6em; color: #fff; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--red); color: #0a0a0b; padding: .75rem 1rem; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2rem, 760px); margin-inline: auto; }
.muted { color: var(--text-muted); }
.small { font-size: .875rem; }
.eyebrow { font: 600 .78rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; display: block; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- header / nav ---- */
.site-header { border-bottom: 1px solid var(--line); background: var(--ink-0); position: sticky; top: 0; z-index: 40; }
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: #fff; }
.brand-logo { height: 76px; width: auto; display: block; margin: .15rem 0; }
.brand-logo-footer { height: 96px; }
.brand-name { font: 600 1.02rem/1 var(--font-display); letter-spacing: .2em; text-transform: uppercase; }
.brand-name small { display: block; font: 500 .62rem/1 var(--font-body); letter-spacing: .3em; color: var(--text-muted); margin-top: .3rem; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; align-items: center; }
.nav a { display: block; padding: .6rem .8rem; color: var(--silver); text-decoration: none; font-size: .95rem; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--red); }
.nav .nav-cta a { border: 1px solid var(--line-strong); }
.menu-toggle { display: none; margin-left: auto; }
.menu-toggle > summary { list-style: none; cursor: pointer; padding: .55rem .9rem; border: 1px solid var(--line-strong); color: var(--silver); }
.menu-toggle > summary::-webkit-details-marker { display: none; }
.menu-toggle[open] > summary { color: #fff; border-color: var(--red); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--ink-1); border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem; }
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel a { display: block; padding: .85rem .25rem; border-bottom: 1px solid var(--line); color: var(--silver); text-decoration: none; }
@media (max-width: 880px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
}
.announce { background: var(--ink-2); border-bottom: 1px solid var(--line); text-align: center; padding: .55rem 1rem; font-size: .92rem; color: var(--silver); }
.announce a { font-weight: 600; }
.env-banner { background: #3a2a12; color: #f3d3a0; text-align: center; padding: .4rem 1rem; font-size: .82rem; letter-spacing: .04em; border-bottom: 1px solid #6b4a1c; }

/* ---- buttons / forms ---- */
.btn {
  --b: var(--red); display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .65rem 1.25rem; font: 600 .95rem/1 var(--font-body); letter-spacing: .02em;
  color: #0a0a0b; background: var(--b); border: 1px solid var(--b); text-decoration: none; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}
.btn:hover { background: #b6a9ff; border-color: #b6a9ff; color: #0a0a0b; }
.btn-ghost { background: transparent; color: var(--silver); border-color: var(--line-strong); clip-path: none; }
.btn-ghost:hover { background: var(--ink-3); color: #fff; border-color: var(--silver); }
.btn-danger { background: transparent; color: var(--bad); border-color: var(--bad); clip-path: none; }
.btn-danger:hover { background: #3a1a1f; color: #ffb4b4; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--silver); }
input[type=text], input[type=email], input[type=search], input[type=url], input[type=number], input[type=password], input[type=datetime-local], input[type=date], select, textarea {
  width: 100%; min-height: 44px; padding: .6rem .75rem; background: var(--ink-3); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--radius); font: inherit;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--red); }
.field { margin-bottom: 1rem; }
.field-hint { font-size: .82rem; color: var(--text-muted); margin-top: .3rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.check input { margin-top: .3rem; width: 18px; height: 18px; flex: none; }
fieldset { border: 1px solid var(--line); padding: 1rem; margin: 0 0 1rem; }
legend { padding: 0 .4rem; font-weight: 600; color: var(--silver); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { min-height: 1.5em; font-size: .92rem; margin-top: .6rem; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--bad); }

/* ---- panels / cards (cut corners) ---- */
.panel {
  background: var(--ink-1); border: 1px solid var(--line); padding: 1.5rem;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  position: relative;
}
.panel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.panel-plain { background: var(--ink-1); border: 1px solid var(--line); padding: 1.25rem; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.section-head h2 { margin: 0; }

.badge { display: inline-block; font: 600 .72rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; padding: .35rem .55rem; border: 1px solid var(--line-strong); color: var(--silver); background: var(--ink-2); }
.badge-available { color: var(--ok); border-color: #2f5a44; }
.badge-in_development { color: var(--ember); border-color: #6b4a1c; }
.badge-planned { color: var(--red); border-color: #6b2226; }
.badge-unconfirmed, .badge-placeholder { color: var(--text-muted); border-style: dashed; }
.badge-test { color: #0a0a0b; background: var(--ember); border-color: var(--ember); }

.draft-note, .placeholder-note { border: 1px dashed var(--ember); color: #e6c394; background: #1d160c; padding: .7rem .9rem; font-size: .88rem; margin: 1rem 0; }
.art { position: relative; display: block; background: var(--ink-2); border: 1px solid var(--line); overflow: hidden; }
.art img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---- hero ---- */
.hero { padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4rem); border-bottom: 1px solid var(--line); position: relative; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--red-deep); width: min(40%, 320px); }
.hero h1 { max-width: 16ch; }
.hero .lead { font-size: 1.2rem; color: var(--silver); max-width: 56ch; }

/* ---- game cards ---- */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.feature-list li { display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: start; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.feature-list h3 { font-size: 1.05rem; margin: 0 0 .2rem; font-family: var(--font-body); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: .7rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 38%; color: var(--silver); font-weight: 600; }

/* ---- news ---- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.filter-bar a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; text-decoration: none; color: var(--silver);
  border: 1px solid var(--line-strong); background: var(--ink-1); font-weight: 600; font-size: .93rem;
}
.filter-bar a:hover { border-color: var(--silver); color: #fff; }
.filter-bar a[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: #0a0a0b; }
.news-search { display: flex; gap: .5rem; max-width: 480px; margin-bottom: 1.5rem; }
.news-search input { flex: 1; }
.news-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.news-card { display: flex; flex-direction: column; background: var(--ink-1); border: 1px solid var(--line); color: inherit; text-decoration: none; height: 100%; border-top: 3px solid var(--accent); }
.news-card:hover { border-color: var(--line-strong); border-top-color: var(--accent); }
.news-card .art { border: 0; border-bottom: 1px solid var(--line); }
.news-card-body { padding: 1.1rem 1.15rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.news-card h3 { margin: 0; font-size: 1.2rem; }
.news-card:hover h3 { color: var(--accent); }
.news-meta { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; font-size: .82rem; color: var(--text-muted); }
.news-meta .game-tag { color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; }
.pin-tag { color: var(--ember); font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.featured-news { display: grid; gap: 1.5rem; grid-template-columns: 1.3fr 1fr; align-items: stretch; margin-bottom: 2.5rem; }
@media (max-width: 760px) { .featured-news { grid-template-columns: 1fr; } }
.pager { display: flex; justify-content: center; gap: .75rem; margin: 2.5rem 0 0; flex-wrap: wrap; }
.empty-state { padding: 2.5rem 1rem; text-align: center; color: var(--text-muted); border: 1px dashed var(--line-strong); }

.post-head { padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem; }
.post-head h1 { margin-bottom: .4rem; }
.post-sub { font-size: 1.25rem; color: var(--silver); font-family: var(--font-display); }
.post-hero { margin: 0 0 2rem; }
.post-body { font-size: 1.1rem; line-height: 1.8; max-width: var(--measure); margin-inline: auto; }
.post-body h2 { margin-top: 2.2em; }
.post-body h3 { margin-top: 1.8em; }
.post-body blockquote { margin: 1.6em 0; padding: .4em 1.2em; border-left: 3px solid var(--accent); color: var(--silver); font-family: var(--font-display); font-size: 1.2rem; }
.post-body blockquote cite { display: block; font: .85rem var(--font-body); color: var(--text-muted); margin-top: .4rem; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li { margin-bottom: .4em; }
.post-figure { margin: 2rem 0; }
.post-figure img, .post-figure video { display: block; width: 100%; border: 1px solid var(--line); background: var(--ink-2); }
.post-figure figcaption { font-size: .88rem; color: var(--text-muted); margin-top: .5rem; }
.post-gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin: 2rem -1rem; }
@media (min-width: 900px) { .post-gallery { margin-inline: -4rem; } }
.post-gallery .post-figure { margin: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.draft-banner { background: #3a2a12; color: #f3d3a0; border: 1px solid #6b4a1c; padding: .8rem 1rem; margin-bottom: 1.5rem; font-weight: 600; }
.share-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin: 2rem 0; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.5rem 0; }
.post-nav a { display: block; padding: 1rem; border: 1px solid var(--line); text-decoration: none; color: inherit; }
.post-nav a:hover { border-color: var(--accent); }
.post-nav .next { text-align: right; }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { text-align: left; } }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); background: var(--ink-1); margin-top: 4rem; padding: 3rem 0 2rem; font-size: .92rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h2 { font: 600 .78rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--silver); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.legal-line { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.2rem; color: var(--text-muted); font-size: .82rem; }

/* ---- tables (account/admin) ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: .65rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data th { background: var(--ink-2); color: var(--silver); font-weight: 600; white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
.tabs { display: flex; gap: .25rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.tabs a { padding: .75rem 1rem; color: var(--silver); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: #fff; border-bottom-color: var(--red); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; margin: 0; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; word-break: break-word; }
.hash { font-family: var(--font-mono); font-size: .78rem; word-break: break-all; color: var(--text-muted); }

/* ---- customizer ---- */
.customizer { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .customizer { grid-template-columns: 1fr; } }
.shirt-stage { position: relative; background: var(--ink-2); border: 1px solid var(--line); padding: 1rem; }
.shirt-canvas { position: relative; width: 100%; aspect-ratio: 4 / 5; touch-action: none; user-select: none; background: var(--shirt, #1d1d24); clip-path: polygon(22% 0, 36% 0, 41% 5%, 59% 5%, 64% 0, 78% 0, 100% 16%, 90% 30%, 80% 24%, 80% 100%, 20% 100%, 20% 24%, 10% 30%, 0 16%); }
.print-area { position: absolute; border: 1px dashed var(--silver); left: 28%; top: 14%; width: 44%; height: 58%; overflow: hidden; }
.print-area img { position: absolute; transform: translate(-50%, -50%); cursor: grab; max-width: none; }
.print-area .pa-label { position: absolute; left: 4px; top: 2px; font-size: .62rem; color: var(--silver); opacity: .8; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.swatches { display: flex; gap: .5rem; flex-wrap: wrap; }
.swatch { width: 36px; height: 36px; border: 2px solid var(--line-strong); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { border-color: #fff; outline: 2px solid var(--red); }

/* ---- admin ---- */
.admin-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; padding: 2rem 0; }
@media (max-width: 900px) { .admin-layout { grid-template-columns: 1fr; } }
.admin-nav { position: sticky; top: 80px; align-self: start; }
.admin-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.admin-nav a { display: block; padding: .6rem .8rem; text-decoration: none; color: var(--silver); border-left: 2px solid var(--line); }
.admin-nav a[aria-current="page"], .admin-nav a:hover { background: var(--ink-2); color: #fff; border-left-color: var(--red); }
@media (max-width: 900px) { .admin-nav { position: static; } .admin-nav ul { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
dialog { background: var(--ink-1); color: var(--text); border: 1px solid var(--line-strong); padding: 1.5rem; max-width: min(92vw, 520px); }
dialog::backdrop { background: rgba(5,4,8,.75); }

/* ---- block editor ---- */
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
@media (max-width: 1000px) { .editor-grid { grid-template-columns: 1fr; } }
.blocks { display: grid; gap: .75rem; }
.block { border: 1px solid var(--line); background: var(--ink-1); padding: .75rem; }
.block-bar { display: flex; gap: .4rem; align-items: center; margin-bottom: .5rem; flex-wrap: wrap; }
.block-bar .type { font: 700 .7rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-right: auto; }
.mini { min-height: 34px; padding: .3rem .6rem; font-size: .82rem; background: var(--ink-3); color: var(--silver); border: 1px solid var(--line-strong); cursor: pointer; }
.mini:hover { color: #fff; border-color: var(--silver); }
.drop-zone { border: 2px dashed var(--line-strong); padding: 1.2rem; text-align: center; color: var(--text-muted); }
.drop-zone.over { border-color: var(--red); color: #fff; background: var(--ink-2); }
.thumb-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.thumb-row img { width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
@media print { .site-header, .site-footer, .no-print { display: none !important; } body { background: #fff; color: #000; } a { color: #000; } }

/* =====================================================================================
   2026-11-04 overhaul: cinematic home hero, progress bars, feature groups, galleries,
   coming-soon pages, text-first news cards. Same tokens, same cut corners; the only glow
   is the one baked into the logo.
   ===================================================================================== */

/* ---- page texture: a faint grain so large dark areas are not flat ---- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.2 0 0 0 0 0.2 0 0 0 .18 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}
.page-head { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: 1rem; }
.section-head .eyebrow { margin-bottom: .35rem; }
.card-cta { display: inline-block; margin-top: .25rem; font: 600 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.card-cta::after { content: " \2192"; }
.status-note { border-left: 3px solid var(--accent); padding: .6rem .9rem; background: var(--ink-1); color: var(--silver); }

/* ---- scroll reveal (JS adds .in; without JS everything is simply visible) ---- */
.reveal { animation: rise .7s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) { .reveal { animation-timeline: view(); animation-range: entry 0% entry 35%; } }

/* ---- home hero: a slideshow of real screenshots behind the headline ---- */
.hero-cinema { padding: 0; border-bottom: 1px solid var(--line); min-height: min(86vh, 760px); display: grid; align-items: end; overflow: hidden; background: var(--ink-0); }
.hero-cinema > * { grid-area: 1 / 1; }
.hero-slides { position: relative; width: 100%; height: 100%; min-height: inherit; }
.hero-slides .slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slides .slide img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); filter: saturate(.92); }
.hero-slides .slide.is-active { opacity: 1; }
.hero-slides .slide.is-active img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
.hero-slides figcaption { position: absolute; right: 0; bottom: 0; display: flex; gap: .6rem; align-items: baseline; padding: .6rem .9rem; background: rgba(11,11,11,.86); border-top: 1px solid var(--line); border-left: 1px solid var(--line); font-size: .78rem; color: var(--text-muted); max-width: min(60vw, 560px); width: max-content; }
.hero-slides .slide-game { color: var(--accent); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .7rem; white-space: nowrap; }
.hero-slides .slide-caption { white-space: normal; line-height: 1.35; }
.hero-scrim { pointer-events: none; background: linear-gradient(90deg, rgba(11,11,11,.92) 0%, rgba(11,11,11,.78) 38%, rgba(11,11,11,.35) 70%, rgba(11,11,11,.2) 100%), linear-gradient(180deg, rgba(11,11,11,.5) 0%, rgba(11,11,11,0) 30%, rgba(11,11,11,.7) 75%, var(--ink-0) 100%); }
.hero-cinema .hero-content { position: relative; padding-top: clamp(7rem, 18vw, 11rem); padding-bottom: clamp(4rem, 7vw, 6rem); }
.hero-cinema h1 { max-width: 14ch; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.hero-cinema .lead { max-width: 58ch; text-shadow: 0 1px 12px rgba(0,0,0,.7); color: #e6e2e2; }
.hero-tagline { color: var(--silver); font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .02em; }
.slide-controls { position: relative; display: flex; justify-content: flex-start; align-items: center; gap: 1rem; padding-bottom: 1rem; align-self: end; }
.slide-dots { display: flex; gap: .4rem; }
.slide-dots button { width: 28px; height: 4px; border: 0; background: rgba(255,255,255,.25); cursor: pointer; padding: 0; }
.slide-dots button[aria-selected="true"] { background: var(--red); }
.slide-pause { background: rgba(11,11,11,.7); color: var(--silver); border: 1px solid var(--line-strong); font: 600 .72rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; padding: .45rem .7rem; cursor: pointer; }
.slide-pause[aria-pressed="true"] { color: #fff; border-color: var(--silver); }
@media (max-width: 700px) { .hero-slides figcaption { display: none; } .hero-cinema { min-height: 78vh; } }

/* ---- game hero: key art beside the title, the same art dimmed behind ---- */
.game-hero { padding: 0; position: relative; overflow: hidden; }
.game-hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-art) center / cover no-repeat; filter: blur(28px) saturate(.8); opacity: .35; transform: scale(1.1); }
.game-hero .hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,11,.4), rgba(11,11,11,.85) 70%, var(--ink-0)); }
.game-hero .hero-content { position: relative; padding-top: clamp(3rem, 8vw, 5.5rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.hero-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 2.5rem; align-items: center; }
.hero-art .art { border-color: var(--line-strong); box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.hero-progress { margin: 1rem 0 1.25rem; max-width: 520px; }
.meta-row { margin: .25rem 0 .5rem; }
.subnav { position: sticky; top: 64px; z-index: 30; background: rgba(11,11,11,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.subnav a { white-space: nowrap; padding: .8rem .9rem; color: var(--silver); text-decoration: none; font-size: .9rem; border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a.is-current { color: #fff; border-bottom-color: var(--accent); }

/* ---- progress bars: a health bar that goes red -> amber -> green ---- */
.progress { --hue: 0; position: relative; height: 14px; background: var(--ink-3); border: 1px solid var(--line-strong); overflow: hidden; min-width: 120px; }
.progress-fill { position: absolute; left: 0; top: 0; bottom: 0; background: hsl(var(--hue) 72% 46%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); transform-origin: left center; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.progress-fill { animation: grow 1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@supports (animation-timeline: view()) { .progress-fill { animation-timeline: view(); animation-range: entry 0% entry 60%; } }
.progress-fill::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(0,0,0,.14) 10px 12px); }
.progress-text { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 700 .68rem/1 var(--font-mono); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.9); letter-spacing: .04em; }
.progress-lg { height: 22px; }
.progress-lg .progress-text { font-size: .8rem; right: 8px; }
.progress-sm { height: 10px; min-width: 80px; }
.progress-sm .progress-text { display: none; }

/* ---- game cards ---- */
.game-card { display: flex; flex-direction: column; background: var(--ink-1); border: 1px solid var(--line); color: inherit; text-decoration: none; height: 100%; border-top: 3px solid var(--accent); transition: transform .25s ease, border-color .25s ease; }
.game-card:hover { transform: translateY(-3px); border-color: var(--line-strong); border-top-color: var(--accent); }
.game-card .art { border: 0; border-bottom: 1px solid var(--line); }
.game-card .art img { transition: transform .6s ease; }
.game-card:hover .art img { transform: scale(1.04); }
.game-card-body { padding: 1.1rem 1.15rem 1.3rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.game-card h3 { margin: 0; font-size: 1.35rem; }
.game-card:hover h3 { color: var(--accent); }
.game-card .meta { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.game-card .progress { margin-top: .25rem; }
.featured-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 2rem; align-items: start; }
.section-featured { background: linear-gradient(180deg, var(--ink-1), var(--ink-0)); }
.teaser-list { display: grid; gap: .7rem; }
.teaser-row { display: grid; grid-template-columns: 1fr 120px; gap: .9rem; align-items: center; font-size: .95rem; padding-bottom: .55rem; border-bottom: 1px solid var(--line); }
.teaser-row:last-child { border-bottom: 0; }
.community-split, .updates-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 2rem; align-items: start; }

/* ---- feature groups ---- */
.category-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 2rem; }
.chip { display: inline-flex; gap: .55rem; align-items: center; padding: .45rem .75rem; border: 1px solid var(--line-strong); background: var(--ink-1); color: var(--silver); text-decoration: none; font-size: .85rem; }
.chip b { color: hsl(var(--hue) 72% 60%); font-family: var(--font-mono); font-size: .78rem; }
.chip:hover { border-color: var(--silver); color: #fff; }
.feature-groups { display: grid; gap: 2.5rem; }
.feature-group-head { display: grid; grid-template-columns: 1fr minmax(120px, 220px); gap: 1rem; align-items: center; border-bottom: 1px solid var(--line-strong); padding-bottom: .6rem; margin-bottom: 1rem; }
.feature-group-head h3 { margin: 0; }
.feature-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.feature { border: 1px solid var(--line); background: var(--ink-1); }
.feature[open] { border-color: var(--line-strong); }
.feature summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 120px; gap: .9rem; align-items: center; padding: .8rem .9rem; }
.feature summary::-webkit-details-marker { display: none; }
.feature summary:hover .feature-title, .feature[open] .feature-title { color: #fff; }
.feature-title { font-weight: 600; line-height: 1.3; }
.feature-title::before { content: "+"; display: inline-block; width: 1.1em; color: var(--accent); font-family: var(--font-mono); }
.feature[open] .feature-title::before { content: "\2013"; }
.feature-body { padding: 0 .9rem 1rem 2.05rem; color: var(--silver); font-size: .95rem; }
.feature-body p { margin: .25rem 0 .5rem; }

/* ---- gallery + lightbox ---- */
.gallery { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.gallery-item { margin: 0; }
.gallery-item .lightbox-link { display: block; border: 1px solid var(--line); background: var(--ink-2); overflow: hidden; }
.gallery-item img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s ease; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item figcaption { font-size: .86rem; color: var(--text-muted); margin-top: .5rem; }
.gallery-item:first-child { grid-column: 1 / -1; }
.gallery-item:first-child img { aspect-ratio: 21 / 9; }
.post-figure .lightbox-link { display: block; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; width: auto; }
.lightbox::backdrop { background: rgba(5,5,6,.92); }
.lightbox img { display: block; max-width: 96vw; max-height: 86vh; width: auto; height: auto; border: 1px solid var(--line-strong); }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--silver); font-size: .9rem; padding: .6rem 0; }
.lightbox-bar .btn { min-height: 36px; padding: .4rem .8rem; }
.lightbox-bar .caption { flex: 1; }

/* ---- news cards without a photograph ---- */
.news-card-text .news-card-mast { aspect-ratio: 16 / 7; display: flex; flex-direction: column; justify-content: flex-end; padding: 1rem 1.15rem; background: var(--ink-2) radial-gradient(ellipse at 20% 110%, color-mix(in oklab, var(--accent) 30%, transparent), transparent 60%); border-bottom: 1px solid var(--line); }
.news-card-mast-game { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.75rem); color: #fff; letter-spacing: .02em; }
.news-card-mast-rule { display: block; width: 56px; height: 2px; background: var(--accent); margin-top: .5rem; }
.news-grid-stack { grid-template-columns: 1fr; }
.news-grid-stack .news-card { flex-direction: row; }
.news-grid-stack .news-card .news-card-mast { width: 34%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
.news-grid-stack .news-card .art { width: 34%; border-bottom: 0; border-right: 1px solid var(--line); }
.news-grid-stack .news-card .art img { height: 100%; aspect-ratio: auto; }
@media (max-width: 600px) { .news-grid-stack .news-card { flex-direction: column; } .news-grid-stack .news-card .news-card-mast, .news-grid-stack .news-card .art { width: 100%; aspect-ratio: 16 / 7; border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---- coming soon ---- */
.coming-soon { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; padding-bottom: 3rem; }
@media (max-width: 900px) { .coming-soon { grid-template-columns: 1fr; } }
.coming-soon-card { border: 1px solid var(--line-strong); background: var(--ink-1); padding: clamp(1.5rem, 4vw, 2.5rem); position: relative; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px)); }
.coming-soon-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); }
.coming-soon-card h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: .2rem 0 .6rem; }
.coming-soon-list { padding-left: 1.2em; color: var(--silver); }
.coming-soon-list li { margin-bottom: .5rem; }
.coming-soon-side { display: grid; gap: 1.25rem; }
.coming-soon-side h3 { margin: 0; }
.community-grid, .support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 2rem; align-items: start; }
.social-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.social-list li { margin-bottom: .4rem; }
.subscribe .btn { width: 100%; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .hero-slides .slide.is-active img { animation: none; }
  .reveal, .progress-fill { animation: none; }
}

/* anchored sections clear the sticky header and sub-navigation */
[id] { scroll-margin-top: 128px; }

/* the headline block on the home hero sits in its own dark panel so it reads over any picture */
.hero-panel { display: inline-block; max-width: 720px; padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.25rem); background: rgba(11,11,11,.74); border: 1px solid rgba(255,255,255,.08); border-left: 3px solid var(--red); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-panel h1, .hero-panel .lead { text-shadow: none; }
.hero-panel .lead { color: var(--text); }
.hero-panel .btn-row { margin-top: 1.25rem; }
.badge-on_hold { color: var(--silver); border-color: var(--line-strong); background: #26232a; }
.staff-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1rem 0 0; padding: .6rem .8rem; border: 1px dashed var(--line-strong); background: var(--ink-1); font-size: .85rem; color: var(--text-muted); }
.staff-bar .btn { min-height: 34px; padding: .35rem .7rem; font-size: .82rem; }
