/* ==========================================================================
   TIDERAFT — tideraft.de
   Shared stylesheet for the NARON / Rift Miner site.
   Dark, single-theme by design (games site).
   ========================================================================== */

/* --- Self-hosted fonts ----------------------------------------------------
   Every font file is served from this domain. No request ever reaches Google
   Fonts or any other third party. Generated rules live in
   assets/fonts/fonts.css; they are inlined here to save a round trip.

   Chakra Petch   — Cadson Demak      — SIL Open Font License 1.1  (display)
   Inter          — Rasmus Andersson  — SIL Open Font License 1.1  (body)
   JetBrains Mono — JetBrains         — SIL Open Font License 1.1  (labels)
   Licence texts: assets/fonts/OFL.txt
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Chakra Petch'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/chakrapetch-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Chakra Petch'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/chakrapetch-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Chakra Petch'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/chakrapetch-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Chakra Petch'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/chakrapetch-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/inter-400-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/inter-400-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url('../fonts/jetbrainsmono-500-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url('../fonts/jetbrainsmono-500-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* keeps anchor targets clear of the sticky header */
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
/* height:auto is not optional here — without it, a width/height attribute pair
   plus max-width:100% squashes the image as soon as its column is narrower
   than the file. Elements that deliberately fill a box override it by class. */
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* --- Tokens --------------------------------------------------------------- */
:root {
  --bg:        #07080a;
  --bg-2:      #0c0e11;
  --panel:     #111418;
  --panel-2:   #161a1f;
  /* Two border weights on purpose:
     --line / --line-soft draw panels and dividers — structural, deliberately
     quiet. --line-strong outlines things you can operate (buttons, toggles),
     where WCAG 1.4.11 asks for 3:1 against the background. */
  --line:        #39414b;
  --line-soft:   #2a3038;
  --line-strong: #59636f;

  --tx:        #e9ebee;
  --tx-dim:    #b6bcc4;
  --muted:     #878e98;

  --naron:      #ff8a1f;
  --naron-soft: #ffb066;
  --naron-deep: #a8551a;
  --naron-glow: rgba(255, 138, 31, .35);

  --rift:      #38cfe0;
  --rift-deep: #1b7f8b;

  --radius:    14px;
  --radius-sm: 10px;
  --shell:     1200px;
  --gutter:    clamp(20px, 5vw, 40px);
  --nav-h:     68px;

  --sans:    "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Chakra Petch", "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- Base ----------------------------------------------------------------- */
body {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--naron); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--naron);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--naron); color: #0a0a0a; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.shell-narrow { max-width: 820px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--naron); color: #0a0a0a; padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 700;
}
.skip:focus { left: 0; }

/* --- Typography ----------------------------------------------------------- */
/* Chakra Petch echoes the angular NARON wordmark. It carries the large display
   type only — the step down to small headings is a change of *typeface*
   (display → body), not an invisible 600/700 weight nudge. */
h1, h2 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.01em;
}
h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--naron);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--naron); opacity: .6; flex: none;
}
.eyebrow.is-rift { color: var(--rift); }
.eyebrow.is-rift::before { background: var(--rift); }

.h-section { font-size: clamp(28px, 4.4vw, 46px); }

/* German compounds ("Gefahrenmodifikatoren") are longer than some of the
   narrow containers on this page. Let them break, and hyphenate body copy. */
h1, h2, h3, h4, p, li, .stat-label, .tag, .pill { overflow-wrap: break-word; }
:lang(de) p, :lang(de) li, :lang(de) .stat-label {
  -webkit-hyphens: auto; hyphens: auto;
}

.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--tx-dim);
  max-width: 62ch;
}
.muted { color: var(--muted); }

.section { padding-block: clamp(64px, 9vw, 116px); position: relative; }
.section-head { margin-bottom: clamp(34px, 5vw, 54px); }
.section-head > * + p { margin-top: 16px; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px; font-weight: 650; letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
  text-decoration: none !important;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--naron); color: #120a02;
  box-shadow: 0 8px 26px -10px var(--naron-glow);
}
.btn-primary:hover { background: var(--naron-soft); box-shadow: 0 14px 34px -12px var(--naron-glow); }

.btn-ghost {
  border-color: var(--line-strong); color: var(--tx); background: rgba(255,255,255,.02);
}
.btn-ghost:hover { border-color: var(--naron-deep); color: var(--naron); background: rgba(255,138,31,.06); }

.btn-rift { background: var(--rift); color: #04181b; }
.btn-rift:hover { background: #63dfec; }

.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #6c78f5; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), backdrop-filter .25s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(7, 8, 10, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
/* Open mobile menu: opaque, so the panel never floats over the hero art.
   Set from JavaScript rather than :has(), so it cannot depend on selector
   support or on cascade order winning against .is-stuck. */
.site-header.is-menu-open {
  background: rgba(7, 8, 10, .97);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9);
}
.nav {
  display: flex; align-items: center; gap: 18px;
  height: var(--nav-h);
}
.nav-brand { display: flex; align-items: center; gap: 11px; flex: none; }
.nav-brand img { height: 28px; width: auto; }
.nav-brand span {
  font-family: var(--display); font-size: 15px; font-weight: 700;
  letter-spacing: .22em; color: var(--tx);
}
.nav-brand:hover { text-decoration: none; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--tx-dim); font-size: 14px; font-weight: 550;
  padding: 8px 13px; border-radius: 8px; white-space: nowrap;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.nav-links a:hover { color: var(--tx); background: rgba(255,255,255,.05); text-decoration: none; }
.nav-links a.is-active { color: var(--naron); }

.nav-tail { display: flex; align-items: center; gap: 10px; flex: none; }

/* Only appears once the nav collapses into the mobile menu (see below). */
.nav-links .nav-cta-mobile { display: none; }

.lang {
  display: flex; align-items: center; gap: 2px;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px;
  background: rgba(255,255,255,.02);
}
.lang a {
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .1em;
  color: var(--muted); padding: 5px 11px; border-radius: 999px;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.lang a:hover { color: var(--tx); text-decoration: none; }
.lang a[aria-current="true"] { background: var(--panel-2); color: var(--naron); }

.nav-cta { padding: 9px 18px; font-size: 14px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line-strong); align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* The German labels ("Der Abstieg", "Rift Miner") need ~1100px before the
   horizontal bar fits; below that the whole row collapses into the menu. */
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; order: 3; }
  .nav-links {
    order: 4; width: 100%; flex-direction: column; align-items: stretch; gap: 2px;
    margin-left: 0; padding: 8px 0 18px; display: none;
  }
  .nav-links a { padding: 12px 14px; font-size: 16px; white-space: normal; }
  /* .nav has a fixed height so the bar stays 68px — but the open menu wraps
     onto a second line, so the height has to be released or the panel spills
     out of the painted header box. */
  .nav.is-open { flex-wrap: wrap; height: auto; min-height: var(--nav-h); }
  .nav.is-open .nav-links { display: flex; }
  .nav-tail { margin-left: auto; }
  .nav-cta { display: none; }

  /* The wishlist CTA must not disappear on phones — it moves into the menu. */
  .nav-links .nav-cta-mobile {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    margin-top: 12px; padding: 13px 18px; border-radius: 999px;
    background: var(--naron); color: #120a02; font-weight: 650;
  }
  .nav-links .nav-cta-mobile:hover { background: var(--naron-soft); color: #120a02; text-decoration: none; }
  .nav-links .nav-cta-mobile svg { width: 18px; height: 18px; fill: currentColor; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(88vh, 860px);
  display: flex; align-items: center;
  padding-block: clamp(56px, 10vw, 110px);
  overflow: hidden;
  margin-top: calc(var(--nav-h) * -1); padding-top: calc(var(--nav-h) + clamp(56px, 10vw, 110px));
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
/* <picture> is the img's parent — without a definite height here, height:100%
   on the img resolves to auto and object-fit never applies. */
.hero-bg picture { display: block; width: 100%; height: 100%; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
/* The key art is a single bright arc on black. Two crossed scrims keep the
   left-hand text column readable while letting the arc stay visible. */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,138,31,.14) 0%, transparent 58%),
    linear-gradient(180deg, rgba(7,8,10,.42) 0%, rgba(7,8,10,.40) 42%, rgba(7,8,10,.92) 88%, var(--bg) 100%);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(7,8,10,.82) 0%, rgba(7,8,10,.30) 48%, rgba(7,8,10,.12) 100%);
}
@media (max-width: 760px) {
  .hero-bg img { object-position: center 34%; }
  .hero-bg::before { background: linear-gradient(180deg, rgba(7,8,10,.42), rgba(7,8,10,.78)); }
}

.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero h1 { margin-bottom: 26px; }
.hero-logo {
  width: min(500px, 82%); height: auto;
  filter: drop-shadow(0 8px 40px rgba(255,138,31,.25));
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.hero-tagline {
  font-family: var(--display);
  font-size: clamp(21px, 3.1vw, 32px);
  font-weight: 600; letter-spacing: 0;
  color: var(--tx); max-width: 20ch; line-height: 1.22;
  margin-bottom: 16px;
}
.hero-sub { font-size: clamp(16px, 1.8vw, 18px); color: var(--tx-dim); max-width: 54ch; margin-bottom: 28px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.pill {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--naron-soft);
  border: 1px solid rgba(255,138,31,.32);
  background: rgba(255,138,31,.07);
  border-radius: 999px; padding: 6px 14px;
}
.pill.is-neutral { color: var(--tx-dim); border-color: var(--line); background: rgba(255,255,255,.03); }

.hero-note {
  margin-top: 26px; font-family: var(--mono); font-size: 13px;
  color: var(--muted); letter-spacing: .04em;
}

/* --- Statement ------------------------------------------------------------ */
.statement {
  border-left: 2px solid var(--naron);
  padding: 6px 0 6px 28px;
  font-family: var(--display);
  font-size: clamp(23px, 3.5vw, 36px);
  font-weight: 600; line-height: 1.26; letter-spacing: 0;
  max-width: 26ch;
}
.statement em { color: var(--naron); font-style: normal; }

.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 76px); align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split p + p { margin-top: 15px; }

/* --- Loop steps ----------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
@media (max-width: 1150px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px)  { .steps { grid-template-columns: 1fr; } }

.step {
  position: relative;
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 22px 24px;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.step:hover { border-color: var(--naron-deep); transform: translateY(-3px); }
.step-num {
  counter-increment: step;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: .16em; color: var(--naron); opacity: .8;
  display: block; margin-bottom: 14px;
}
.step-num::before { content: "0" counter(step); }
.step h3 { font-size: 18px; margin-bottom: 9px; }
.step p { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* --- Feature rows --------------------------------------------------------- */
.feature {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 68px); align-items: center;
  padding-block: clamp(38px, 5vw, 62px);
}
.feature + .feature { border-top: 1px solid var(--line-soft); }
.feature:nth-child(even) .feature-media { order: -1; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 26px; }
  .feature:nth-child(even) .feature-media { order: 0; }
}
.feature h3 { font-size: clamp(22px, 2.8vw, 30px); margin-bottom: 14px; }
.feature p { color: var(--tx-dim); }
.feature p + p { margin-top: 14px; }

.feature-media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 26px 60px -34px rgba(0,0,0,.9);
}
.feature-media img, .feature-media video { width: 100%; height: auto; }
/* The loop clips are 616px wide natively — never let the single-column layout
   stretch them past that, or they go soft. */
.feature-media:has(video) { max-width: 618px; margin-inline: auto; }
.feature-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 60px rgba(0,0,0,.35);
}

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px;
}

/* --- Stats ---------------------------------------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden;
  background: var(--panel);
}
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat {
  padding: 26px clamp(8px, 2vw, 20px); text-align: center;
  border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.stats .stat:nth-child(4n) { border-right: none; }
.stats .stat:nth-last-child(-n+4) { border-bottom: none; }
@media (max-width: 860px) {
  .stats .stat { border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
  .stats .stat:nth-child(2n) { border-right: none; }
  .stats .stat:nth-last-child(-n+2) { border-bottom: none; }
}
.stat-num {
  display: block; font-family: var(--display); font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 700; color: var(--naron); line-height: 1; letter-spacing: 0;
  font-variant-numeric: lining-nums tabular-nums;
}
.stat-label {
  display: block; margin-top: 10px; font-size: 13px; color: var(--muted);
  letter-spacing: .04em;
}

/* --- Biomes --------------------------------------------------------------- */
.biomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .biomes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .biomes { grid-template-columns: 1fr; } }
.biome {
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 20px 20px 18px; background: var(--panel);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.biome:hover { border-color: var(--naron-deep); background: var(--panel-2); }
.biome h3 { font-size: 17px; margin-bottom: 7px; display: flex; align-items: center; gap: 10px; }
.biome h3::before {
  content: ""; width: 9px; height: 9px; border-radius: 2px; flex: none;
  background: var(--dot, var(--naron)); box-shadow: 0 0 12px var(--dot, var(--naron));
}
.biome p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* --- Trailer (two-click YouTube embed) ------------------------------------ */
/* Nothing is requested from Google until the visitor clicks the poster. */
.trailer {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #000;
  box-shadow: 0 40px 90px -50px rgba(255,138,31,.35);
}
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* The poster is a flex column so the play button and the consent notice can
   never overlap, however short the box gets. The image sits behind them. */
.trailer-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  cursor: pointer; border: 0; padding: 0 16px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(10px, 2.4%, 20px);
}
.trailer-poster picture { position: absolute; inset: 0; }
.trailer-poster img { width: 100%; height: 100%; object-fit: cover; }
.trailer-poster::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 70% at 50% 50%, rgba(0,0,0,.24), rgba(0,0,0,.66));
  transition: background .2s var(--ease);
}
.trailer-poster:hover::after { background: radial-gradient(70% 70% at 50% 50%, rgba(0,0,0,.1), rgba(0,0,0,.56)); }

.play {
  position: relative; z-index: 2; flex: none;
  width: clamp(56px, 7vw, 78px); aspect-ratio: 1; border-radius: 50%;
  background: var(--naron); color: #120a02;
  display: grid; place-items: center;
  box-shadow: 0 12px 40px -8px var(--naron-glow);
  transition: transform .22s var(--ease), background-color .22s var(--ease);
}
.trailer-poster:hover .play { transform: scale(1.08); background: var(--naron-soft); }
.play svg { width: 34%; height: 34%; fill: currentColor; margin-left: 8%; }

.trailer-consent {
  position: relative; z-index: 2;
  max-width: 46ch;
  font-size: 14px; line-height: 1.5; color: var(--tx);
  background: rgba(7,8,10,.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 16px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
@media (max-width: 620px) {
  .trailer-consent { font-size: 12px; padding: 8px 12px; }
}
@media (max-width: 420px) {
  .trailer-poster { gap: 8px; padding: 0 10px; }
  .play { width: 48px; }
  .trailer-consent { font-size: 12px; line-height: 1.45; }
}
/* The consent notice is what makes the click count as consent, so it must never
   be clipped — not at 320px, and not when the visitor has raised their minimum
   font size. Below 480px the box grows with its content instead of being held
   to 16:9; the injected iframe still fills it. */
@media (max-width: 480px) {
  .trailer { aspect-ratio: auto; min-height: 56.25vw; }
  .trailer-poster { position: relative; height: auto; min-height: 56.25vw; padding-block: 18px; }
  .trailer-poster picture { position: absolute; inset: 0; }
}

.trailer-caption {
  margin-top: 14px; font-family: var(--mono); font-size: 13px;
  color: var(--muted); letter-spacing: .04em;
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
}

/* --- Gallery -------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
/* Seven screenshots never divide evenly into 3 or 2 columns, so the last one
   closes the grid as a full-width cinematic tile instead of sitting orphaned.
   Works at any column count and any item count. */
@media (min-width: 561px) {
  .gallery > :last-child { grid-column: 1 / -1; aspect-ratio: 32 / 9; }
}
/* Ten screenshots split cleanly into two columns, so at that width an even
   count keeps its last tile normal instead of orphaning the one before it. */
@media (min-width: 561px) and (max-width: 900px) {
  .gallery > :last-child:nth-child(even) { grid-column: auto; aspect-ratio: 16 / 9; }
}
.gallery-item {
  position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line-soft); background: var(--panel); aspect-ratio: 16 / 9;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
/* Same trap as the hero: the <figure> between the link and the image needs a
   definite height, or object-fit has nothing to fit into. */
.gallery-item figure { margin: 0; height: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s var(--ease); }
.gallery-item:hover { border-color: var(--naron-deep); transform: translateY(-3px); text-decoration: none; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 38px 16px 14px;
  font-size: 14px; line-height: 1.45; color: var(--tx);
  /* Bright screenshots (lava, crystal) sit right under the first text line,
     so the scrim has to be well established before the text starts. */
  background: linear-gradient(180deg,
    rgba(7,8,10,0) 0%, rgba(7,8,10,.55) 32%, rgba(7,8,10,.93) 72%, rgba(7,8,10,.97) 100%);
  text-shadow: 0 1px 3px rgba(0,0,0,.85);
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.gallery-item:hover figcaption, .gallery-item:focus-visible figcaption { opacity: 1; transform: none; }
@media (hover: none) { .gallery-item figcaption { opacity: 1; transform: none; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4,5,6,.94); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 56px);
}
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: 1400px; width: 100%; }
.lightbox img { width: 100%; height: auto; max-height: 78vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox figcaption { margin-top: 16px; color: var(--tx-dim); font-size: 15px; text-align: center; }
.lightbox-count {
  margin-top: 10px; text-align: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--muted);
}
.lightbox-close, .lightbox-nav {
  position: absolute; color: var(--tx); width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(17,20,24,.85);
  display: grid; place-items: center;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.lightbox-close:hover, .lightbox-nav:hover { border-color: var(--naron); color: var(--naron); }
.lightbox-close { top: clamp(14px, 3vw, 28px); right: clamp(14px, 3vw, 28px); }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { left: clamp(10px, 2vw, 26px); }
.lightbox-nav.next { right: clamp(10px, 2vw, 26px); }
.lightbox svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }

/* --- Rift Miner ----------------------------------------------------------- */
.rift-card {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 5vw, 56px); align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(56,207,224,.09) 0%, transparent 55%),
    linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  padding: clamp(24px, 4vw, 40px);
}
@media (max-width: 880px) { .rift-card { grid-template-columns: 1fr; } }
.rift-art { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.rift-card h3 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.rift-card .lead { font-size: 17px; }
.rift-meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px;
}
.rift-meta .pill { color: var(--rift); border-color: rgba(56,207,224,.32); background: rgba(56,207,224,.07); }
.rift-card a:not(.btn) { color: var(--rift); }

/* --- Cards (community / press) -------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 28px 26px;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.card:hover { border-color: var(--line); transform: translateY(-3px); }
.card h3 { font-size: 19px; }
.card p { font-size: 15px; color: var(--muted); line-height: 1.6; flex: 1; }
.card .btn { align-self: flex-start; margin-top: 6px; }
.card-icon { width: 30px; height: 30px; fill: var(--naron); }
.card-icon.is-discord { fill: #7f8bff; }

/* --- FAQ ------------------------------------------------------------------ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details {
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  background: var(--panel); overflow: hidden;
  transition: border-color .2s var(--ease);
}
.faq details[open] { border-color: var(--naron-deep); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; font-family: var(--mono); font-size: 20px;
  color: var(--naron); line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq summary:hover { color: var(--naron); }
.faq .faq-body { padding: 0 22px 20px; color: var(--tx-dim); font-size: 15px; max-width: 68ch; }
.faq .faq-body p + p { margin-top: 12px; }

/* --- Studio --------------------------------------------------------------- */
.studio {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
@media (max-width: 700px) { .studio { grid-template-columns: 1fr; } }
.studio-mark {
  width: clamp(90px, 12vw, 128px); height: auto; opacity: .9;
}

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-2);
  padding-block: 54px 34px;
  font-size: 14px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 34px;
  padding-bottom: 34px; border-bottom: 1px solid var(--line-soft);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
/* Mark + wordmark, same lockup as the header so the footer doesn't read as a
   cropped logo. */
.footer-mark { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer-mark img { height: 30px; width: auto; }
.footer-mark span {
  font-family: var(--display); font-size: 15px; font-weight: 700;
  letter-spacing: .22em; color: var(--tx);
}
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 34ch; }
/* Not a document heading — a label. Kept out of the heading outline so the
   pages don't jump H2 → H4. */
.footer-col-title {
  font-family: var(--mono); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 600;
}
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { color: var(--tx-dim); }
.footer-col a:hover { color: var(--naron); }
.footer-bottom {
  padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 22px;
  align-items: center; color: var(--muted); font-size: 14px;
}
.footer-bottom .spacer { margin-left: auto; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--naron); }

/* --- Legal pages ---------------------------------------------------------- */
.legal { padding-block: clamp(48px, 7vw, 84px); }
.legal h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 10px; }
.legal .legal-meta { color: var(--muted); font-family: var(--mono); font-size: 13px; letter-spacing: .06em; margin-bottom: 40px; }
.legal h2 {
  font-size: 21px; margin: 44px 0 14px; padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal h3 { font-size: 17px; margin: 26px 0 8px; color: var(--tx); }
.legal p, .legal li { color: var(--tx-dim); font-size: 16px; }
.legal p + p { margin-top: 13px; }
.legal ul { margin: 12px 0; padding-left: 22px; list-style: disc; }
.legal ul li { margin-bottom: 7px; }
.legal address { font-style: normal; color: var(--tx-dim); }
.legal .note {
  border: 1px solid var(--line); border-left: 2px solid var(--naron);
  background: var(--panel); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px; margin: 22px 0; font-size: 15px;
}
.legal .note p { color: var(--muted); font-size: 15px; }

/* --- Press page ----------------------------------------------------------- */
.page-head {
  padding-block: clamp(52px, 8vw, 92px) clamp(30px, 4vw, 46px);
  background:
    radial-gradient(90% 120% at 50% -20%, rgba(255,138,31,.14) 0%, transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.page-head h1 { font-size: clamp(32px, 6vw, 56px); margin-bottom: 14px; }
.page-head .lead { margin-bottom: 22px; }

.fact-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.fact-table th, .fact-table td {
  text-align: left; padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft); vertical-align: top;
}
.fact-table tr:last-child th, .fact-table tr:last-child td { border-bottom: 0; }
.fact-table th { color: var(--muted); font-weight: 500; width: 34%; }
.fact-table td { color: var(--tx); overflow-wrap: anywhere; }
.fact-wrap {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--panel); overflow-x: auto;
}
@media (max-width: 560px) { .fact-table th { width: 42%; } }

.copy-block {
  position: relative;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--panel); padding: 24px 26px 22px;
  margin-bottom: 14px;
}
.copy-block h3 { font-size: 17px; margin-bottom: 12px; padding-right: 124px; }
@media (max-width: 520px) {
  .copy-block { padding-top: 74px; }
  .copy-block h3 { padding-right: 0; }
}
.copy-block p, .copy-block li { color: var(--tx-dim); font-size: 15px; }
.copy-block p + p { margin-top: 12px; }
.copy-block ul { list-style: disc; padding-left: 20px; margin: 0; }
.copy-block ul li { margin-bottom: 6px; }
.copy-btn {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--tx-dim); border: 1px solid var(--line-strong); border-radius: 999px;
  min-height: 44px; padding: 6px 18px;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.copy-btn:hover { color: var(--naron); border-color: var(--naron-deep); }
.copy-btn.is-done { color: var(--naron); border-color: var(--naron); }

.asset-list { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.asset-list li {
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline;
  padding: 15px 20px; border-bottom: 1px solid var(--line-soft);
}
.asset-list li:last-child { border-bottom: 0; }
.asset-list .asset-name { font-weight: 600; }
.asset-list .asset-note { color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; margin-left: auto; }
@media (max-width: 520px) { .asset-list .asset-note { margin-left: 0; width: 100%; } }

/* --- Reveal on scroll ----------------------------------------------------- */
/* Without JavaScript there is no toggle handler, so the menu must simply stay
   open rather than leaving a dead button and no navigation at all. */
.no-js .nav-toggle { display: none !important; }
.no-js .nav-links  { display: flex !important; }
/* .nav is a fixed-height nowrap row; without JS nothing ever sets .is-open, so
   the released height has to come from here or the open menu lays out inside a
   68px row and the first links end up above the top of the viewport. */
.no-js .nav { flex-wrap: wrap; height: auto; min-height: var(--nav-h); }

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.no-js .reveal { opacity: 1; transform: none; }
