/* ============================================
   GamesOMG — main.css
   Shared styles for all pages
   ============================================ */

/* ── VARIABLES ── */
:root {
  /* Light-theme accents (2026-07-13): orange = the brand #f08000, full stop — it
     matches the hardcoded nav/ad/cookie buttons so every orange on the page is the
     SAME orange (darkening it for contrast turned it burnt-red anyway). The blue
     darkens cleanly without a hue shift, so it carries the link contrast (4.4:1).
     Body-text readability is dark-on-light, independent of accent color. */
  /* TWO-TONE, same split AcidNodes uses. --orange is a FILL: it's 6.46:1 with
     dark text on top, and it stays the brand colour (logo, buttons, OG cards).
     As TEXT it measures 2.05:1 on the silver page — under the 3:1 floor for
     large text, let alone 4.5:1 for body — which is what made accent text look
     washed out. --orange-ink is the text tone: 5.36:1 on the page, 7.04:1 on
     white cards, 4.81:1 on card grey. Never set --orange as a text colour.
     ⛔ SUPERSEDED 2026-09-17 — see --orange-ink below: one orange, text included. */
  --orange: #f08000;
  /* ⭐ ONE ORANGE, TEXT INCLUDED — Jason, 2026-09-17. The light theme used to swap in #8a4700 for
     orange text (5.36:1 on silver), and dark used a peach #ff9d3d; on light the dark tone read as
     "red", so the site showed two oranges. His call, after seeing it rendered: the brand orange
     everywhere, as the homepage .tag-orange chips already did. On light it is 2.1:1 on the ground
     and 2.7:1 on white cards, below AA for small text — a known, deliberate trade; no light ground
     can raise it (pure white tops out at 2.7:1). contrast-sweep will flag small orange text on
     light: that is this decision, not a regression. */
  --orange-ink: var(--orange);
  /* Same values as the retired rgba() form, written the way the cave sheet wrote them:
     derived from --orange rather than a second hardcoding of #f08000, so recolouring the
     accent moves these with it instead of leaving two oranges behind. */
  --orange-dim: color-mix(in srgb, var(--orange) 15%, transparent);
  --orange-border: color-mix(in srgb, var(--orange) 35%, transparent);
  /* --cta-ink is the DARK TEXT THAT SITS ON AN ORANGE FILL — the other half of the note above.
     `--orange is 6.46:1 with dark text on top` was measured against exactly this value: 6.459:1 for
     #1a1a1a on #f08000. It was hardcoded in ~1,412 places and is `color:` in 100% of them — never
     once a background, border, shadow or fill — so anyone reading the hex and guessing "dark
     surface" would map it to a ground token and make every CTA label vanish into its own button.
     🪤 DELIBERATELY NOT NAMED --on-orange. That name is already live at #2a1400 in
     theme-preview/index.html (mirroring AcidNodes' --on-lime), and two values behind one name in
     one repo is a sitewide hue shift waiting for whoever promotes that block. Adopting #2a1400
     everywhere is a real option — it is a 6.50:1 vs 6.46:1 swap, so NO automated gate would catch
     it either way, which is exactly why it needs Jason's eyes on a real page and not a rename.
     ⚠ It also lands on the success-green state: `.ok` modifiers swap only the background to
     #7CE38B and inherit this ink (10.96:1, safe). One token is correct while that stays true. */
  --cta-ink: #1a1a1a;
  /* ── the dark TERMINAL/CODE panels, and the ink that sits on success-green ──────────────────
     ⚠⚠ FOUR TOKENS FOR TWO IDEAS, AND THAT IS DELIBERATE. The site grew two values for "dark code
     panel" and two for "ink on the green .ok state", and `ark-color-ids/index.html` carries BOTH
     darks SIDE BY SIDE: `.ark-spawn-cmd{background:#0c1320}` and `.ark-color-output{background:
     #10171e}`. The gap is rgb(+4,+4,-2) — nobody will ever see it, which is exactly how it drifted
     and exactly why merging is not free: an invisible change is still a change, and no gate can
     verify "invisible". Collapsing them is a STAGE-2 decision made by looking at a page, not a
     rename. Naming both is what makes the drift a visible fact instead of a coincidence.
     · --code-bg      #0c1320  725 uses — .db-visual / .db-out.shown / .db-ans-code / .db-adv-code
                                          (ark-spawn-commands) + .ark-spawn-cmd. Amber text on top.
     · --code-bg-alt  #10171e    7 uses — .ark-cmd-out / .ck-launch-cmd / .hz-cmd-out /
                                          .ark-color-output. Terminal-GREEN text on top.
     · --on-ok        #0c1320  181 uses — .db-line-copy.ok, ink on the #7CE38B copied state.
     · --on-ok-alt    #10171e    2 uses — .ark-line-copy.ok, the same idea at the other value.
     🪤 The two inks are NOT interchangeable with the two backgrounds even though the hexes match
     across the pairs: one is a surface, the other is text ON a green fill. Same literal, opposite
     jobs — substituting by hex alone rather than by property would swap them. */
  --code-bg: #0c1320;
  --code-bg-alt: #10171e;
  --on-ok: #0c1320;
  --on-ok-alt: #10171e;
  /* ── the STATUS-OK green: a dot, its ring, its halo, and the same green as text ──────────────
     All four are rgb(95,200,120) — #5fc878 is the opaque form and the rgba()s are the same colour
     at 0.4 and 0.18. They MUST be extracted together: the fill and the ring around it are one
     visual object, so tokenising the hex alone would let the dot be retuned while its halo stayed
     literal, and the ring would drift off the dot it belongs to. That is the exact failure the
     colour audit flagged, and it is invisible in a diff because each line looks fine alone.
     · --status-ok         #5fc878                    77  the dot / pill fill
     · --status-ok-ink     #5fc878                    26  the same green as TEXT
     · --status-ok-border  rgba(95,200,120,0.4)       52  border + border-color
     · --status-ok-halo    rgba(95,200,120,0.18)      26  box-shadow: 0 0 0 4px — the glow ring
     ⚠ NOT mapped to a generic --ok, and that refusal is deliberate. There is no status axis in
     this file yet, and AcidNodes' --ok is theme-relative: its LIGHT branch is #5f9e33, a dark
     olive. GamesOMG resolves the light branch, so "converging" would repaint every live badge
     olive. A real --ok/--warn/--down axis has to be DERIVED for the silver theme and looked at,
     not inherited. Extraction now; that decision later. */
  --status-ok: #5fc878;
  --status-ok-ink: #5fc878;
  --status-ok-border: rgba(95,200,120,0.4);
  --status-ok-halo: rgba(95,200,120,0.18);
  /* ── single-role extractions ────────────────────────────────────────────────────────────────
     Each of these is ONE CSS property across every one of its uses — verified by counting the
     declarations, not by reading a couple and assuming. That is what makes them mechanical: a
     colour with one role cannot be swapped onto the wrong thing. Names come from the SELECTORS
     they were found on, so the token says what the colour is FOR rather than what it looks like;
     `#5ab0ff` renamed to "light blue" would have to be renamed again the moment the theme flips,
     whereas "the ink a link turns on hover" stays true in both themes. */
  /* These two WERE separate blue numbers, and they are the reason Jason saw two blues on one page.
     They are now aliases of the single blue below, so the segmented-control ink and the link hover
     tone cannot drift away from the accent again. Their use-sites (180 and 760) are untouched —
     only the value moved. Forward references are fine: var() substitutes at computed-value time,
     so declaration order inside a block does not matter. */
  --on-blue-fill: var(--on-blue);
  --link-hover-ink: var(--blue-ink);
  --orange-hover: #ff9420;   /* 660 · background · .gen-cta-btn:hover, .db-gen:hover — the brand
                                fill one step brighter. Pairs with --cta-ink, which stays put. */
  --danger-ink: #ff8888;     /* 181 · color · .db-mut-rm:hover — the remove/destructive action */
  --warn-ink: #ffb454;       /* 181 · color · .db-warn-inline, .ark-spawn-warn */
  --code-amber: #ffd9a0;     /* 181 · color · .db-adv-code, .ark-spawn-cmd — amber ON --code-bg */
  --code-muted: #aeb9c6;     /* 67 · color · .hero-cfg pre, .cmd-codeblock — dim code text */
  --code-key: #f0a35c;       /* 67 · color · .hero-cfg .k, .cmd-codeblock .key — syntax key */
  /* ── the #7CE38B split: ONE hex, THREE jobs ─────────────────────────────────────────────────
     Splitting this by CSS property alone would still be wrong, which is why it needed a decision
     rather than a script. The `color:` uses are two different things:
     · --terminal-ink  363 · mono green ON --code-bg (.db-ocode, .db-ans-code, .ark-cmd-out,
                       .ck-launch-cmd). This is SYNTAX, not status. It must NEVER track a status
                       token — if --ok is ever retuned, terminal text should not move with it.
     · --ok-ink          1 · .hz-note.ok — a genuine status message, sans-serif, role="status",
                       paired with a .warn sibling. One use, but it belongs to the status axis and
                       tokenising it with the terminal green would weld the two together for ever.
     · --ok-fill       546 · background (+1 border-color) on .X.ok — the "copied!" success state.
     🪤 The .ok rules carry NO ink of their own; they swap only the background and inherit
     --cta-ink from the base class. That is fine today (#1a1a1a on #7CE38B is 10.96:1) but it means
     there is nothing to substitute there — giving the success state its own ink would be a code
     change, not a rename. */
  --terminal-ink: #7CE38B;
  --ok-ink: #7CE38B;
  --ok-fill: #7CE38B;
  /* ⚠⚠ --ink-inverse IS SITTING ON A REAL CONTRAST BUG, and it is extracted at its current value
     precisely so the bug stays visible instead of being laundered into a token.
     .gen-cta-btn and .rec-cta are `background:var(--orange,#f08000); color:#fff` — WHITE ON THE
     BRAND ORANGE, which measures 2.69:1. That fails even the 3:1 large-text floor, on what is the
     primary call-to-action across 476 pages. The site already contains the right answer: every
     other control on that same fill uses --cta-ink #1a1a1a at 6.46:1.
     ▶ The fix is a one-line token swap, but it CHANGES HOW THE MAIN BUTTON LOOKS, so it is Jason's
     call and not something to bury inside a mechanical sweep. Until then this token holds the
     honest current value. Its other uses (.ds-lede strong, .jump-chip:hover) are white on dark
     and are fine. */
  --ink-inverse: #fff;
  /* ── .hero-cfg: the fake terminal window in the hero, on ~65 pages ──────────────────────────
     This is one COMPONENT, not nine loose colours, and naming it as a family is the point: a
     window chrome colour and a syntax colour happen to live in the same box but answer to
     different things when the theme flips. The traffic lights are DECORATION — they imitate a
     macOS title bar and must never track the status axis, however much #e0655a looks like a
     danger red and #7ecfa0 looks like an ok green. Wire them to --down/--ok and the day someone
     retunes "error red" the window furniture changes colour with it. */
  --win-bg: #14181d;          /* .hero-cfg — the window ground (also .cmd-codeblock) */
  --win-bar: #1b2026;         /* .hero-cfg-bar — the title bar */
  --win-bar-line: #262c33;    /* its bottom border (also .cmd-codeblock border) */
  --win-dot: #3a424b;         /* .hero-cfg-bar i — an unlit light */
  --win-dot-red: #e0655a;     /* :nth-child(1) — DECORATION, not --down */
  --win-dot-amber: #e0b23f;   /* :nth-child(2) — DECORATION, not --warn */
  --win-dot-green: #7ecfa0;   /* :nth-child(3) — DECORATION, not --ok */
  --win-title: #8b96a3;       /* .hero-cfg-bar span — the filename in the bar */
  --code-comment: #5d6874;    /* .hero-cfg .c, .cmd-codeblock .comment — syntax comment */
  --code-value: #7ecfa0;      /* .hero-cfg .v — syntax VALUE. Same hex as the green light and as
                                 the verified dot; three jobs, three tokens, deliberately. */
  --verified-dot: #7ecfa0;    /* .ref-verified .dot — freshness/status. THIS one is the only one
                                 of the three that should ever follow a status colour. */
  /* ⚠ A SECOND HOVER ORANGE. #ff8c00 (.rec-cta:hover, .nav-cta:hover, .cta-btn:hover) is not
     --orange-hover #ff9420 — the site grew two, four RGB points apart. Same drift as the two code
     panels, same treatment: extract both honestly rather than silently merge, because merging is
     an invisible pixel change and no gate can verify "invisible". */
  --orange-hover-alt: #ff8c00;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* ═══ THEME: DARK IS THE IDENTITY ═══════════════════════════════════════════════════════════
     Everything ABOVE this line is theme-INDEPENDENT and stays put in both themes: the brand
     orange, and the code/window/status families. That is not laziness — those tokens were already
     dark-panel colours (a terminal is dark on a light page too), so giving them light variants
     would break the one thing that already worked in both.
     Only the STRUCTURAL tokens below flip. Ground, surface, card, nav, border, body text, and the
     two accents whose readable tone depends on what they sit on.

     ⛔ DELIBERATELY NOT prefers-color-scheme. Dark is the brand, unconditionally; light is a
     choice the visitor makes and we remember. Same semantics as acidnodes.com and the console, so
     the three properties behave identically — which is the entire point of the convergence.
     ⚠ The palette is AcidNodes' warm near-black, not the cool #1f2933 this site used to ship.
     Warm is what makes orange sit on it without turning muddy; a cool grey ground under a warm
     accent is the combination that reads cheap. */
  /* ═══ THE BLUE — ONE NUMBER, AND ONLY ONE ═══════════════════════════════════════════════════
     #3be3ff is the blue AcidNodes ACTUALLY SHIPS. Verified 2026-08-05 by reading the live site,
     not from memory: every page of acidnodes.com and panel/panel.html define --blue:#3be3ff.
     It is the turquoise Jason has been pointing at the whole time — the RAM-bar blue.

     ⛔ THE HISTORY, SO NOBODY REPEATS IT. I shipped this value, talked myself out of it, and
     replaced it with #2790F9 on the theory that "the AcidNodes blue" meant the logo mark. It did
     not. #2790F9 now survives only in DEAD files: acidnodes-control-plane/hosting-site/brand/*.html (which still carry
     the RETIRED yellow #E6D400, so they are stale by definition) and the legacy VanillaNodes
     panel theme. Three wrong guesses came from reasoning about the brand instead of reading it.
     ▶ If the tone ever needs to move again, it is THIS LINE and nothing else.

     EVERY other blue on this site is derived from this hex with color-mix. There is no second
     blue anywhere to fall out of sync — that was the actual bug, not the choice of hue. The light
     theme darkens THE SAME hex rather than introducing its own number: raw #3be3ff is 1.54:1 on
     a white card (invisible), so it has to be darkened for silver, but darkening is arithmetic on
     one number, not a second number. --blue-dim/-border/--on-blue reference var(--blue), so they
     follow the theme automatically and are never restated.
     Contrast, measured against the surfaces these actually sit on:
       dark  #3be3ff  ground 12.29:1 · card 10.44:1 · surface 11.44:1   (was 4.94:1 on card)
       light #195f6b  white card 7.23:1 · ground 5.51:1 · surface 4.94:1 — AA on all three.

     🪤 IF YOU EVER MEASURE THESE AND THEY LOOK LIKE TWO DIFFERENT BLUES: kill transitions first.
     .game-card has `transition:` on border-color, so reading getComputedStyle right after a ◐
     click returns the value MID-ANIMATION — the old colour. I chased that as a real defect and it
     was my own probe. Measure with `*{transition:none!important}` applied, then judge. Verified
     in Chrome on a fresh load AND across three ◐ toggles: every derived tone tracks --blue. */
  --blue-base: #3be3ff;                    /* ◀ THE number. Everything below is computed from it. */
  --blue: var(--blue-base);
  --blue-ink: color-mix(in srgb, var(--blue) 78%, #fff);        /* hover — one step brighter */
  --blue-dim: color-mix(in srgb, var(--blue) 12%, transparent);
  --blue-border: color-mix(in srgb, var(--blue) 34%, transparent);
  --on-blue: color-mix(in srgb, var(--blue) 18%, #000);         /* ink ON a blue fill — 9.95:1 */
  --bg: #141009;
  /* ⭐ FLAT, not gradients — the cave sheet's values, adopted 2026-08-24 when the cave
     design became the site base. The gradient versions are why cards read heavier than
     the cave pages'. `-solid` stays as an alias (10 rules reference it) and is now
     simply the same colour, so nothing has to be rewritten to use it. */
  --bg-surface: #1d1810;
  --bg-surface-solid: #1d1810;
  --bg-card: #272016;
  --bg-card-solid: #272016;
  /* Status hues the cave sheet had and main never did — folded in so cave-only rules
     (.cave-route, .tip-item, .boss-artifacts …) keep working once that file is gone. */
  --green: #4ade80;
  --yellow: #fbbf24;
  --red: #f87171;
  --purple: #a78bfa;
  --bg-nav: #191408;
  --border: #342d1f;
  --border-hover: #463c2a;
  --text: #f3efe3;
  /* --text-soft sits BETWEEN --text and --text-muted, and it exists because the nav needed it.
     AcidNodes' header links use its --text-soft (= --ink-2 #cec7b4); I first mapped that onto our
     --text-muted, which is its --muted — a whole step dimmer — and the nav links measured 2.73:1
     on the dark ground. FAIL. These are AcidNodes' exact values: 11.27:1 dark, 7.08:1 light. */
  --text-soft: #cec7b4;
  --text-muted: #948c79;
  color-scheme: dark;
}

/* The SILVER theme, 2026-07-17 — now opt-in rather than the default. Deep cool ground (Jason
   picked the darker tone), lightness matched to the old warm theme so contrast is unchanged.
   Card/surface tokens are GRADIENTS (metallic sheen): safe because every use site-wide is the
   `background:` shorthand — never background-color. Solid fallbacks kept as *-solid.
   ⚠ --orange-ink and --blue are THEME-DEPENDENT and this is the half people forget. #f08000 as
   TEXT is 2.05:1 on silver, so light needs the dark tone #8a4700 (5.36:1); on the near-black
   ground that same tone disappears, so dark needs the bright one.
   🪤 But "theme-dependent" was never a licence for a SECOND NUMBER, and that is where this file
   went wrong. The blue below is the dark hex put through arithmetic — one number, two renderings.
   --orange-ink is still a literal only because the brand orange is not derivable from it. */
:root[data-theme="light"] {
  --orange-ink: var(--orange);   /* one orange — see the note on the dark value */
  /* THE SAME #3be3ff, darkened for silver. There is no second blue on this site.
     --blue-dim/-border/--on-blue are deliberately NOT restated here: they reference var(--blue),
     so they re-derive from the light value automatically. Restating them is how drift starts. */
  /* Resolves to #195f6b — 7.23:1 on the white card, 5.51 on ground, 4.94 on surface. All AA.
     --blue-dim / --blue-border / --on-blue are deliberately NOT restated: each is a color-mix
     over var(--blue), so they re-derive from this line automatically. Restating is how drift
     starts, and it is what left this site with six blues in the first place. */
  --blue: color-mix(in srgb, var(--blue-base) 42%, #000);
  /* ⭐ 2026-09-17, Jason: the light blue "doesn't transfer". Mixing the cyan with black drains the
     colour into a flat teal. Same base, derived in OKLCH instead: dark enough for the same contrast,
     but the chroma kept and the hue nudged toward true blue, so it still reads as THE blue.
     A browser without relative colour syntax ignores this line and keeps the color-mix above. */
  --blue: oklch(from var(--blue-base) 0.46 calc(c * 1.15) calc(h + 32));
  --blue-ink: color-mix(in srgb, var(--blue) 80%, #000);  /* hover goes DARKER on a light ground */
  --bg: #dde1e6;
  /* Flat, matching the cave sheet — see the dark block above. ⚠ These are the SILVER
     light-theme values (#dde1e6 / #d0d6dd); warm hexes here are bugs, per CLAUDE.md. */
  --bg-surface: #d0d6dd;
  --bg-surface-solid: #d0d6dd;
  --bg-card: #ffffff;
  --bg-card-solid: #ffffff;
  --bg-nav: #ffffff;
  --border: #c3cad3;
  --border-hover: #a3adba;
  /* ⛔ NOT cave's #1b1a16. Cave's light ink is WARM, and the light theme here is SILVER
     (--bg #dde1e6 / --bg-surface #d0d6dd) — CLAUDE.md: "Readable LIGHT theme → SILVER …
     warm hexes = bugs". Cool ink on a cool ground. This is the one cave value deliberately
     NOT adopted when cave became the base on 2026-08-24. */
  --text: #16181b;
  /* Light-theme status hues from the cave sheet, darkened for contrast on silver. */
  --green: color-mix(in srgb, #15803d 80%, #000);
  --yellow: color-mix(in srgb, #a16207 80%, #000);
  /* Darkened from #b91c1c on 2026-08-24. It cleared 4.5 on palworld-boss.css's OWN
     lighter ground (#f2f4f6); on the site's silver (#dde1e6) under a 10% red tint it
     measured 4.19 — the "Watch out" tag in .callout-danger. #a71919 measures 4.87.
     ⚠ Contrast is against the TINTED ground, not the page ground: .callout-danger sits
     on color-mix(--red 10%), so darkening the tint darkens the backdrop too. */
  --red: #a71919;
  --purple: #6d28d9;
  --text-soft: #4a473f;   /* AcidNodes' light --ink-2 — 7.08:1 on the silver ground */
  --text-muted: #545a63;
  color-scheme: light;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Root size ramps up on bigger screens so desktop/laptop reads comfortably
   large (≈150% on wide displays), while phones keep their tuned size — 150%
   there would overflow. Everything on the site is sized in rem, so the whole
   layout (text, padding, boxes) scales from this one knob. Breakpoints are in
   px, so changing the root size never shifts them. */
/* ⭐ 2026-08-24 — dropped one step at every breakpoint, to match the cave pages.
   Jason: "the cave pages, are tight, clean, and the pills are pills, not the whole
   damn bottle". That took his half-window from 29px to 24px.
   ⭐⭐ 2026-09-08 — DROPPED AGAIN, THIS TIME ONTO ACIDNODES' EXACT RAMP. His call, and
   the reason is that the two sites were never comparable: a component ported across
   by its rem values came out a third too big, because 1rem meant 24px here and 18px
   there. Same breakpoints on both sites, so this is a straight swap of the three steps.
   ⛔ THESE FOUR NUMBERS ARE NOW SHARED WITH acidnodes.com — they are in
   acidnodes-control-plane/hosting-site/site/*.html. Changing one side silently un-matches the two again.
   ⚠ Breakpoints stay in px, so changing the root size never shifts them. */
html { scroll-behavior: smooth; font-size: 100%; }            /* phones: 16px */
@media (min-width: 640px)  { html { font-size: 100%; } }      /* 16px */
@media (min-width: 1024px) { html { font-size: 106.25%; } }   /* 17px */
@media (min-width: 1280px) { html { font-size: 112.5%; } }    /* 18px — his half-window */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Urbanist', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
/* ChatGPT C54: small original-game artwork in guide rows and map cards. */
.game-icon {
  flex: none;
  min-width: 32px;
  min-height: 32px;
  display: inline-block;
  width: 32px;
  height: 32px;
  max-width: none;
  object-fit: contain;
  vertical-align: middle;
  margin-inline-end: 5px;
  padding: 1px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--bg-card);
  box-sizing: border-box;
}
/* Icarus icons 2026-11-15: the game's map markers are white silhouettes, so they keep a dark tile in both themes. */
.game-icon.is-mark { background: var(--code-bg); border-color: rgba(255,255,255,.16); }
.ref-section-header > .game-icon { margin-inline-end: 0; }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16,19,20,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--orange);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.logo-accent { color: var(--orange); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--orange);
  color: var(--cta-ink,#1a1a1a);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.nav-cta:hover { background: #ff8c00; color: var(--cta-ink,#1a1a1a); transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text);
  flex-direction: column;
  gap: 5px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 64px 0 0;
  background: var(--bg-nav);
  padding: 1.5rem 2rem;
  flex-direction: column;
  gap: 1rem;
  z-index: 99;
  border-top: 1px solid var(--border);
}

.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 1.1rem; font-weight: 500; color: var(--text-muted); padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.nav-mobile .nav-cta { border: none; text-align: center; margin-top: 0.5rem; padding: 0.75rem; font-size: 1rem; }

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 1rem 2rem;
  /* 1100px, from the cave sheet (was 1200px) — the whole site now shares one
     content width, 2026-08-24. */
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  /* ⛔⛔ WITHOUT flex-wrap THIS ROW CANNOT SHRINK, AND IT SCROLLED THE WHOLE PAGE.
     A flex item's min-width defaults to AUTO, so each <a> refuses to go below its own
     text and the row's min-content becomes the sum of the whole trail. Measured live
     2026-08-24 on /generators/ark/gus/ at a 375 viewport: a 470px document against a
     375px viewport — +95px, the worst mobile overflow on the site.
     🪤 IT TOOK FIVE WRONG SUSPECTS TO FIND, because every one of them MEASURED wider
     than the viewport while being incapable of causing it: the cookie-consent overlay
     (inset:0), .output-panel (fixed with left:0/right:0 — Chrome spans a fixed box
     across the scrollable width in mobile emulation, so it always mirrors the damage),
     a table inside .combo-wrap (overflow-x:auto, scrolls internally), a clipped
     SPAN.arrow, and an unbreakable "GameUserSettings.ini" in the h1 that overflowed its
     line box but still ended at 366 < 375. The breadcrumb was never the widest ELEMENT
     — it was the widest MIN-CONTENT, and nothing renders min-content.
     ▶ BISECT BY display:none AND WATCH scrollWidth. Reading rects cannot tell a cause
     from a mirror; hiding a subtree and re-measuring can, and it took seconds.
     ⚠ Wrapping is the right fix — a breadcrumb belongs on two lines on a phone. Do NOT
     reach for min-width:0 (clips the trail) or overflow-x:auto (hides it). */
  flex-wrap: wrap;
  row-gap: 0.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--orange-ink); }   /* cave value — --orange-ink is the hover tone */
.breadcrumb-sep { opacity: 0.4; }
.breadcrumb-current { color: var(--text); }

/* ── SECTION SHARED ── */
/* Cave's shape: the section IS the centred container, and the gap between sections is a
   MARGIN rather than 3.5rem of bottom padding. That padding is most of why main.css pages
   ran ~26% taller than cave pages for the same content. */
.section {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ⭐ STACKED BY DEFAULT — the cave shape, and the shape 149 of the 150 pages using this
   class actually want: a small label sitting ABOVE its heading, both left-aligned.
   ⛔ It used to be `display:flex; justify-content:space-between` unconditionally, which
   throws the label to the far left and the heading to the far right. That was invisible
   while only the homepage loaded this file; the moment the cave pages moved onto main.css
   it split "FAQ" and "Central Cave Questions" to opposite ends of the row.
   The split layout is a SPECIAL CASE — one wrapper div plus a "View all →" link — so it
   is selected for rather than imposed on everything. `:has()` keeps it in CSS instead of
   needing a class added to page markup (same trick as .rail-adsense:has(...) below). */
.section-header {
  margin-bottom: 1.25rem;   /* cave value */
}
.section-header:has(> .view-all) {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-ink);   /* cave value — reads better on the dark ground */
  margin-bottom: 0.4rem;
}

/* Carried by <h2> so section titles are real headings for crawlers and screen
   readers, not just big text. margin:0 keeps the pre-heading spacing exact. */
.section-title {
  font-family: 'Manrope', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
  margin: 0;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;   /* cave value */
  margin-top: 0.3rem;
}

.view-all {
  color: var(--orange-ink);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
  flex-shrink: 0;
}

.view-all:hover { gap: 7px; }

/* ── TAGS ── */
.tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 100px;
}

.tag-orange {
  background: var(--orange-dim);
  color: var(--orange);
  border: 1px solid rgba(240,128,0,0.2);
}

.tag-blue {
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid var(--blue-border);
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--cta-ink,#1a1a1a);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-md);
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
  border: none;
}

.btn-primary:hover { background: #ff8c00; transform: translateY(-1px); color: var(--cta-ink,#1a1a1a); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--blue);
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--blue-border);
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.btn-secondary:hover { border-color: var(--blue); background: var(--blue-dim); color: var(--blue); }

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── GAME CARDS ── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  display: block;
}

.game-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.game-card:hover .game-arrow { opacity: 1; }

.game-card.featured {
  grid-column: span 2;
  grid-row: span 2;
  border-color: var(--blue-border);
}

.game-card.featured:hover { border-color: var(--blue); }

.game-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}

.game-card.featured .game-thumb {
  aspect-ratio: 16/10;
  font-size: 3.5rem;
}

/* Game background gradients */
.ark-bg       { background: linear-gradient(135deg, #1a2830 0%, #243d35 50%, #1e3028 100%); }
.valheim-bg   { background: linear-gradient(135deg, #1e1a2e 0%, #3a2b58 50%, #1e1a2e 100%); }
.rust-bg      { background: linear-gradient(135deg, #2e1a1a 0%, #5a2a2a 50%, #2e1a1a 100%); }
.palworld-bg  { background: linear-gradient(135deg, #1a2a2e 0%, #28485c 50%, #1a2a2e 100%); }
.mc-bg        { background: linear-gradient(135deg, #1a2e1e 0%, #28582e 50%, #1a2e1e 100%); }
.conan-bg     { background: linear-gradient(135deg, #2a1e14 0%, #583c18 50%, #2a1e14 100%); }
.corekeeper-bg{ background: linear-gradient(135deg, #10242b 0%, #15454d 50%, #0e2a2e 100%); }
.zomboid-bg   { background: linear-gradient(135deg, #1a2214 0%, #385818 50%, #1a2214 100%); }
.enshrouded-bg { background: linear-gradient(135deg, #1a1a2e 0%, #2a2a58 50%, #1a1a2e 100%); }
.vrising-bg   { background: linear-gradient(135deg, #2e1a1a 0%, #4a1a2e 50%, #2e1a1a 100%); }
.sevendays-bg { background: linear-gradient(135deg, #1e1a14 0%, #3d2e14 50%, #1e1a14 100%); }
.vein-bg      { background: linear-gradient(135deg, #240e12 0%, #5e1820 50%, #240e12 100%); }
.astroneer-bg { background: linear-gradient(135deg, #1e1430 0%, #45236a 50%, #1e1430 100%); }
.renown-bg    { background: linear-gradient(135deg, #20242a 0%, #3a4450 50%, #20242a 100%); }
.humanitz-bg  { background: linear-gradient(135deg, #241a12 0%, #4d3a1e 50%, #1e160e 100%); }
.windrose-bg  { background: linear-gradient(135deg, #12202e 0%, #1c3a52 50%, #12202e 100%); }
.soulmask-bg  { background: linear-gradient(135deg, #16241e 0%, #214a38 50%, #16241e 100%); }
.empyrion-bg  { background: linear-gradient(135deg, #0f1626 0%, #213a66 50%, #0f1626 100%); }
.abiotic-bg   { background: linear-gradient(135deg, #0e2420 0%, #155040 50%, #0e2420 100%); }
.sotf-bg      { background: linear-gradient(135deg, #141e22 0%, #284a52 50%, #141e22 100%); }
.unturned-bg  { background: linear-gradient(135deg, #1c2318 0%, #3f5226 50%, #1c2318 100%); }
.dayz-bg      { background: linear-gradient(135deg, #1e201a 0%, #3e4226 50%, #1e201a 100%); }
.dune-bg      { background: linear-gradient(135deg, #2e1a0a 0%, #8a4a12 50%, #2e1a0a 100%); }
.hytale-bg    { background: linear-gradient(135deg, #161a32 0%, #2e3580 50%, #161a32 100%); }

/* Per-MOD plates for /generators/ark/, which is the one hub whose tiles are all the same
   game. The plates above separate games; these separate the ten ARK config generators from
   each other, which matters more there than anywhere else — "Dino Depot" and "Der Dino
   Finder" are two different mods and a reader picking between them has three words to go on.
   Same family (dark plate, white wordmark, theme-fixed) so the two sets can sit in one grid.
   ⛔ They live HERE, not in that page's inline <style>, for the reason theme-lint exists: 30
   raw hexes in a page is 30 colours the site cannot change centrally. The .ark-bg above
   serves Game.ini and GameUserSettings.ini — the pair every other tile is optional to — so
   there is no eleventh plate. */
.ark-shiny-bg    { background: linear-gradient(135deg, #2b2410 0%, #5c4a15 50%, #2b2410 100%); }
.ark-depot-bg    { background: linear-gradient(135deg, #101f2b 0%, #1c4054 50%, #101f2b 100%); }
.ark-cybers-bg   { background: linear-gradient(135deg, #241a2e 0%, #432a5c 50%, #241a2e 100%); }
.ark-finder-bg   { background: linear-gradient(135deg, #12261f 0%, #1c5040 50%, #12261f 100%); }
.ark-upgrade-bg  { background: linear-gradient(135deg, #2a1c14 0%, #5c3a1c 50%, #2a1c14 100%); }
.ark-spyglass-bg { background: linear-gradient(135deg, #141f2e 0%, #233a5e 50%, #141f2e 100%); }
.ark-teleport-bg { background: linear-gradient(135deg, #20142e 0%, #3e2060 50%, #20142e 100%); }
.ark-levels-bg   { background: linear-gradient(135deg, #2a1418 0%, #5a1f2c 50%, #2a1418 100%); }
.ark-shared-bg   { background: linear-gradient(135deg, #101c24 0%, #1b3a4a 50%, #101c24 100%); }

.game-thumb-emoji {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

.game-thumb-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.04) 0%, transparent 70%);
}

/* Branded game tile: game name as a wordmark on the themed gradient, with a
   faint oversized emoji watermark for instant identification. Zero copyright
   risk (no publisher art), consistent look, no image loading. Replaces the
   old single centered .game-thumb-emoji. */
.game-thumb-name {
  position: relative;
  z-index: 2;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink-inverse,#fff);
  text-align: center;
  padding: 0 1rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.game-card.featured .game-thumb-name { font-size: 2rem; }

.game-thumb-watermark {
  position: absolute;
  right: -8px;
  bottom: -14px;
  z-index: 1;
  font-size: 4.5rem;
  line-height: 1;
  opacity: 0.16;
  transform: rotate(-10deg);
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.game-card.featured .game-thumb-watermark { font-size: 7.5rem; right: -4px; bottom: -22px; }

.game-info { padding: 0.7rem 0.9rem; }
.game-card.featured .game-info { padding: 1rem 1.1rem; }

.game-info-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.game-name {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.3;
}

.game-card.featured .game-name { font-size: 1.05rem; }

.game-arrow {
  opacity: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: opacity 0.2s;
  flex-shrink: 0;
  margin-top: 2px;
}

.game-tags { display: flex; gap: 5px; flex-wrap: wrap; }

.game-badge {
  position: absolute;
  top: 9px;
  right: 9px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  z-index: 2;
}

.badge-new     { background: var(--orange); color: var(--cta-ink,#1a1a1a); }
.badge-updated { background: var(--blue); color: var(--ink-inverse,#fff); }

.coming-soon-overlay {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 3;
  background: rgba(31,41,51,0.85);
  border: 1px solid var(--blue-border);
  color: var(--blue);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  cursor: default;
}

/* Coming-soon tiles stay identifiable (branded plate shows through) but read
   as muted, and don't fake a hover/click affordance since they aren't links. */
.game-card:has(.coming-soon-overlay) .game-thumb { filter: saturate(0.55) brightness(0.82); }
.game-card:has(.coming-soon-overlay):hover { transform: none; border-color: var(--border); }

/* ── WHY CARDS ── */
.why-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
}

.why-icon {
  width: 42px;
  height: 42px;
  background: var(--blue-dim);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.why-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue);
  margin-bottom: 0.4rem;
}

.why-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── PREVIEW WINDOW ── */
.preview-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 2rem;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.75rem 1.2rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.win-dot   { width: 10px; height: 10px; border-radius: 50%; }
.win-red   { background: #ff5f57; }
.win-yellow { background: #febc2e; }
.win-green { background: #28c840; }

.window-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.preview-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.preview-left {
  padding: 1.5rem;
  border-right: 1px solid var(--border);
}

.preview-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  gap: 0.5rem;
}

.setting-name { font-size: 0.82rem; color: var(--text-muted); flex: 1; }

.slider-wrap {
  width: 80px;
  height: 4px;
  background: var(--bg-surface);
  border-radius: 2px;
  flex-shrink: 0;
}

.slider-fill { height: 100%; background: var(--orange); border-radius: 2px; }

.setting-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--orange);
  min-width: 32px;
  text-align: right;
}

.preview-right {
  padding: 1.5rem;
  background: transparent;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  overflow: hidden;
}

.code-comment { color: var(--text-muted); line-height: 1.9; display: block; }
.code-line    { line-height: 1.9; white-space: nowrap; display: block; }
.code-key     { color: var(--text); }
.code-eq      { color: var(--text-muted); }
.code-val     { color: var(--orange); }

/* ── FOOTER CTA ── */
.footer-cta {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem;
  text-align: center;
}

.footer-cta h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.footer-cta p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* ── FOOTER ── */
.footer {
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  padding: 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer-logo span { color: var(--orange); }

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a { color: var(--text-muted); font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

.footer-copy { color: var(--text-muted); font-size: 0.8rem; }

/* ── ANIMATIONS ── */
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: blink 2s ease-in-out infinite;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .game-card.featured { grid-column: span 2; grid-row: span 1; }
  .why-grid { grid-template-columns: 1fr; }
  .preview-body { grid-template-columns: 1fr; }
  .preview-right { display: none; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 2.5rem 1.5rem; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .games-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .game-card.featured { grid-column: span 2; }
  .footer-inner { flex-direction: column; text-align: center; }
  .cta-buttons { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}

/* ════════════════════════════════════════════════════════════════
   Sitewide scrollbar styling
   - Firefox uses scrollbar-color / scrollbar-width
   - Webkit (Chrome/Edge/Safari) uses ::-webkit-scrollbar-*
   Brand orange thumb, dark track that blends with surfaces.
════════════════════════════════════════════════════════════════ */

* {
  scrollbar-width: thin;
  scrollbar-color: #f08000 #0d0f0e;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: #0d0f0e;
  border-radius: 0;
}
*::-webkit-scrollbar-thumb {
  background: #f08000;
  border: 2px solid #0d0f0e;
  border-radius: 8px;
  transition: background 0.15s;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--orange-hover, #ff9420);
}
*::-webkit-scrollbar-thumb:active {
  background: #d66e00;
}
*::-webkit-scrollbar-corner {
  background: #0d0f0e;
}

/* ── AD SLOTS ──
   Wrapper around any AdSense <ins> on the site. Two slot types in use:
   .ad-slot-post-generator — bottom of generator pages, between the tool and SEO block
   .ad-slot-post-content   — bottom of content/guide pages, before the footer
   Both centered, capped at a leaderboard width, with breathing room so the ad
   doesn't crash into the surrounding content.
*/
.ad-slot {
  margin: 2.5rem auto;
  max-width: 728px;
  padding: 0 1rem;
  text-align: center;
}
.ad-slot ins.adsbygoogle {
  display: block;
  min-height: 90px; /* prevents layout jump before the ad fills */
}

/* ── The rail ad sits ABOVE the "On this page" TOC ──
   Jason's call 2026-08-24: the ad is already visible one scroll in, and putting
   it at the top of the rail buys that scroll back. `.page-aside` is a flex
   column, so ONE order line moves it on every page at once — no page markup
   changes, which is the whole point (a look change is 1 file, per CLAUDE.md).
   Lives in main.css, not guide.css, so it applies to pages that load only the
   global sheet too. */
.page-aside > .acidnodes-ad,
.page-aside > .rail-adsense { order: -1; }

/* Rail AdSense — center the served ad within the sidebar box (global, so it
   applies to every page's .rail-adsense regardless of inline/effigy CSS). */
.rail-adsense { text-align: center; }
.rail-adsense ins.adsbygoogle { display: block; margin: 0 auto; }
/* The served unit: Google injects an inline iframe (+ sometimes a reserved inner <ins>)
   with inline sizing — force both to block + auto margins so a fixed-width ad
   centers inside the responsive slot. Author !important beats inline styles. */
.rail-adsense ins.adsbygoogle iframe { display: block !important; margin-left: auto !important; margin-right: auto !important; }
.rail-adsense ins.adsbygoogle > ins { display: block !important; margin: 0 auto !important; }

/* ── Config tables must not hide their last column ──
   `.ref-table-wrap` is overflow-x:auto, so an over-wide table scrolls INSIDE ITSELF: the page
   never scrolls sideways, every gate stays green, and the reader simply never sees the last
   column. Measured 2026-08-13 across all 658 pages that ship a table — 40 tables on 28 pages
   were hiding one, including RECOMMENDED on five Conan sections and NOTE on Satisfactory's
   config table, i.e. the column those pages exist for.

   The cause is monospace columns pinned with `white-space: nowrap`. nowrap makes the WHOLE cell
   one unbreakable token, so a 29-character name like ResourceRespawnSpeedMultiplier sets a ~453px
   floor on its column and the table can no longer fit at any width.
   🪤 `overflow-wrap` ALONE DOES NOTHING HERE — it is inert against nowrap, which leaves no wrap
   opportunity for it to act on. The nowrap must be released first; that pairing IS the fix, and
   testing overflow-wrap on its own showed literally zero change on Conan.

   Trade-off, taken deliberately: keys can now break mid-word. A mid-word break is ugly; a column
   the reader never sees is worse. Where it matters, <wbr> at the camelCase boundaries gives clean
   breaks and still copies correctly (see /astroneer-dedicated-server-setup/).

   !important because ~34 pages carry an inline copy of these rules AFTER main.css in source order
   at identical specificity — same reason the ad-centering rules use it.
   ▶ Verify with `node tools/table-audit/check.mjs` (real headless Chrome, live urls). */
.ref-table td.setting,
.ref-table td.def,
.ref-table td.rec {
  white-space: normal !important;
  overflow-wrap: anywhere;
}
/* ⭐ A FLOOR TO GO WITH THE RELEASE ABOVE (2026-08-24). `overflow-wrap: anywhere` is what lets a
   too-wide table shrink, but with no floor the browser will happily crush the key column to a few
   characters and split an ordinary word — "Radiati / on" on the Rust puzzle pages, which carry
   .ref-table but none of the settings-guides column budget.
   ⚠ `box-sizing: border-box` is global here, so this floor INCLUDES the cell's padding — 24px a
   side, 48px of it. Measured: at 12ch the column was 154px with only 106px of content while
   "Radiation" needed 108. Two pixels short is still a broken word, and it is invisible unless you
   measure the text against the CONTENT box rather than the column.
   14ch leaves ~119px of content. In ch, not rem — a budget in rem inherits the root ramp and
   demands half again as much on a wide screen. The settings guides still override with 15ch. */
.ref-table td.setting { min-width: 14ch; }

/* ⚠⚠ THE PRICE OF `anywhere`, AND ITS COUNTERWEIGHT (measured 2026-08-17).
   `overflow-wrap: anywhere` REDUCES MIN-CONTENT TO ONE CHARACTER. That is the
   whole point above — it lets a too-wide table shrink until it fits. But it also
   means the browser may crush a command column to nothing, and then a long value
   wraps into a tower: `/teleport <coords> | <user> <coords> | …` rendered a
   2360px row against a 681px median on path-of-titans-server-config-generator
   §admin-commands. The table FITS, so the width test is structurally blind to it
   — this is the same "crushed to min-content" class as the retired grid rule,
   but a different cause, which is why that one's fix did nothing here.
   A floor in `ch` (not px) scales with the ramping root font, so it holds at
   2560 and does not re-break the phone box.
   ▶ Verified with `--try` before shipping: all 218 .cmd-table pages, live, at
   BOTH 2560 and 390 — 0 hidden columns, 0 blown rows at each. */
.ref-table.cmd-table td.setting { min-width: 26ch; }

/* ⛔⛔ ...BUT A FLOOR IS A CONSTANT, so on a table whose codes are SHORT it stops protecting the
   column and starts STEALING FROM ITS NEIGHBOURS — and the damage is vertical, which is why no
   width gate ever saw it. Measured 2026-08-17 on /stardew-valley-item-codes/ at 2560:
     · the code is `92`, and the floor took 654px of a 1,635px table — the WIDEST of three columns
     · CATEGORY, which holds "Resources, Monster Loot & Misc · Resources", got 360px
     · so EVERY ROW wrapped to two lines: median row height 128px across 1,497 rows
     · letter "S" (210 rows) rendered 32,903px — 25 screens; the biggest group 63,412px
   `table-audit` is structurally blind to this: nothing overflows, nothing is a blown row (the
   rows are uniformly tall, so the median moves with them). It is the mirror of the crushed-cell
   case above — same constant, opposite direction.
   ▶ SCOPED, and the scope is derived: only 2 of the 218 .cmd-table pages have a longest code
   under 26ch (stardew 24ch, raft 22ch). On the other 216 the content is already wider than the
   floor, so it never binds and this opt-out cannot reach them.
   🪤 Do NOT "fix" this by lowering the global floor instead — on the command pages the command
   text WRAPS, so their min-content is the longest WORD, and the 26ch floor is what stops the
   column collapsing to that. Lowering it re-opens the defect the rule above was written for. */
.ref-table.cmd-table.short-code td.setting { min-width: 0; }
.ref-table.cmd-table.short-code th:nth-child(1) { width: 22%; }
.ref-table.cmd-table.short-code th:nth-child(2) { width: 26%; }
.ref-table.cmd-table.short-code th:nth-child(3) { width: 52%; }

/* ── The COMMAND-page 3-column shape: command | what it does | category ────────────────
   Same defect Stardew had — auto table-layout spreads the spare width ~40/38/22 regardless
   of what each column needs — but a different shape, so a different answer. Measured on
   /skyrim-console-commands/ at 2560 over all 226 rows:
     needs 729 / 2795 / 484,  gets 654 / 621 / 360.
   The description column is PROSE: 2,795px of max-content will never fit on one line and
   should not try. So the goal is not "stop wrapping", it is: stop starving the COMMAND
   (the copy target, ugly when broken across lines) and the CATEGORY, and give the surplus
   to the prose that can actually use it.
   ▶ 24/50/26, picked by measuring five candidates, not guessed:
     2560  p90 169 -> 128px · command on ONE line 5/18 -> 9/18 · page -364px
     1920  median 169 -> 128 · p90 209 -> 169 · page -532px
     1280  p90 308 -> 232 · page -424px      768  p90 274 -> 207 · page -474px
   ⛔⛔ AND IT MUST NOT APPLY ON A PHONE. Below the 680px breakpoint the same rule is WORSE
   (640px: p90 121 -> 146, page +196px) — every pixel handed to the command and category
   columns comes out of the prose, and in a ~220px column the prose explodes. Measured
   crossover sits exactly at 680, the breakpoint where guide.css already drops table padding
   from 0.8rem to 0.6rem, so it is the same cause, not a coincidence.
   🪤 `:not(.short-code)` so Stardew's own allocation above still wins — its first column is
   `92`, not a 61-character command, and it needs the opposite split.
   🪤 `:not(.id-table)` as well — the SECOND table on five of these pages is an item/ID list
   (`ID | Item | Category`), not `Command | prose | Category`. Its middle column is a short
   product name (22-39 chars), so handing it 50% would be exactly the mis-allocation this rule
   exists to fix, just pointed at a different column.
   ⛔⛔ REVERTED 2026-08-17, SAME DAY, AND THE REASON MATTERS MORE THAN THE RULE.
   I measured five candidate splits on ONE page (skyrim), picked the winner, and shipped it to
   all 33. Then measured the other 32 and it does not generalise: with the rule vs auto layout,
   page height improves on 22 pages and gets WORSE on 10 — subnautica +694px, terraria +445,
   soulmask +217, minecraft +161, raft +121. A rule that is 2:1 positive with tails like that is
   a coin flip wearing an optimisation's clothes.
   ▶ I then looked for a property that predicts which way it goes, so it could be derived per
   page, and there isn't one. Median command length: helps 7-28 chars, hurts 6-42 — almost total
   overlap. Median description length: helps 33-92, hurts 31-79. Same. Two plausible predictors,
   neither separates the populations.
   ⭐ THE LESSON: `table-layout: auto` is ALREADY content-aware, and a fixed percentage does not
   tune it, it OVERRIDES it. That only wins where auto's heuristic actually misfires — which was
   true on skyrim and is not true generally. Target the specific misfire, do not replace the
   algorithm. Skyrim keeps 36,929px -> ~7,000px from the GROUPING; the width rule was the last
   8% and it cost ten other pages to get it.
   🪤 And the fix for the misfire that IS derivable stays: `.short-code` above releases the 26ch
   floor only where the data proves the floor cannot bind. That one is measured per table, not
   guessed once and generalised. */

/* A single long word overflowing its own column is the OTHER half of this defect, and it is
   generic — no nowrap needed. On the command pages the columns are percentage-sized (40/38/22),
   so a plain 13-character word like "RaftModLoader" simply does not fit its 22% CATEGORY cell
   and spills past it. That was 8 pages clipping CATEGORY by 5-22px, all from one generator.
   ⭐ `break-word`, NOT `anywhere`: break-word only breaks a word that would otherwise overflow
   and does NOT reduce min-content, so it cannot re-size any table that is currently fine.
   `anywhere` does affect min-content and is reserved for the monospace columns above, where
   shrinking the floor is the entire point. Measured: 25 tables -> 15, 23 pages -> 14. */
.ref-table td { overflow-wrap: break-word; }

/* ── THE SAME TOKEN, OUTSIDE A TABLE — 2026-08-19 ──
   Everything above fixes tables. A blueprint path in PROSE was never covered, and
   `node tools/page-overflow/check.mjs --width 375` found the whole DOCUMENT scrolling
   sideways on 218 of 927 pages, 175 of them by 200px or more. 156 were ARK spawn-command
   pages carrying the same 153-char path in a bare <code>: measured 1096px inside a 375
   viewport on /ark-iceworm-male-spawn-command/, +747px of page scroll.
   ⚠ `table-audit` is green on these — it measures TABLES, and this token is in a <p>.
   ⭐ `anywhere`, not `break-word`: the <code> IS the thing setting the floor, so min-content
   has to come down. break-word cannot re-size it.
   🪤 `pre code` is deliberately excluded — a code BLOCK should scroll inside itself rather
   than reflow, the same bargain .ref-table-wrap makes. A wrapped 153-char path is unreadable;
   a scrollbar is not. */
code { overflow-wrap: anywhere; }
pre code, pre { overflow-wrap: normal; }

/* ── MOBILE: the same defect, 227 pages of it ──
   Measured 2026-08-13 at a 390px viewport: 258 tables on 227 pages hid a column, and 201 of them
   were only TWO columns wide. The cause is the same long-unbreakable-token story, just far more
   savage when the box is ~460px: ark-iceworm-male-spawn-command carries a 153-character blueprint
   path ("Blueprint'/Game/Mods/Ragnarok/Custom_Assets/…) that alone sets a 1197px floor, so WHAT IT
   DOES was 100% off-screen on every phone.
   ⚠ I nearly shipped this as acceptable — "a data table on a phone needs horizontal scroll anyway".
   It is not acceptable: the reader cannot see that a second column exists, and on a Bing-dominant
   game-guide site most of these readers are on a phone.

   Scoped to td.setting AND ITS DESCENDANTS. Both halves are load-bearing and were measured:
   the same rule on `.ref-table td *` does NOT work (871px still hidden) because something at
   higher specificity targets the inner element, while `.ref-table td.setting *` wins and fits.
   Reproduced twice before shipping, because that result is backwards from what you would guess.
   Deliberately NOT applied to prose columns: `anywhere` there would break ordinary words
   mid-character for no benefit. */
@media (max-width: 900px) {
  /* General case: on a ~460px box, a token that does not fit should break rather than push a
     whole column off-screen. `anywhere` only breaks words that genuinely do not fit, so ordinary
     prose is untouched — it is the long URLs, JSON bodies and item ids that give way. */
  .ref-table td,
  .ref-table td *,
  .ref-table th { overflow-wrap: anywhere; }
  /* Kept as well as the general rule, not instead of it: on the spawn-command pages something at
     higher specificity targets the inner element, and only these class-scoped selectors win.
     Measured — dropping them puts 871px back on ark-iceworm-male-spawn-command. */
  /* break-all, not overflow-wrap, and this had to be measured against the DEPLOYED page to
     find out. Several command pages build their tables in JS (command-tool.js,
     ark-dino-builder.js) and inject blueprint paths 153 characters long; on those,
     overflow-wrap:anywhere left 841px hidden while word-break:break-all fits. Mid-character
     breaking is the right answer for a monospace command column on a phone anyway. */
  .ref-table td.setting,
  .ref-table td.setting *,
  .ref-table td.endpoint,
  .ref-table td.endpoint *,
  .ref-table td.method,
  .ref-table td.method * { overflow-wrap: anywhere; word-break: break-all; }
  /* The patch-notes tables carry `min-width:640px`, which in a ~464px phone box is a guaranteed
     176px of overflow — the identical figure on all five of them, which is what gave it away.
     That floor never binds on desktop (the box is 787px+), so it only ever hurt mobile.
     !important because the page's own inline copy is `table.ref-table.patch-tbl` — one element
     more specific than this AND later in source order, so it wins twice over without it. */
  table.ref-table.patch-tbl { min-width: 0 !important; }
}

/* ⭐⭐ WHOLE WORDS IN EVERY COLUMN, ON EVERY .ref-table (2026-11-15). `anywhere` above takes every column's
   min-content down to one character, and auto layout then shares the spare width out by
   (max-content − min-content): a prose column with 2,000px of text takes nearly all of it, and the short
   columns beside it are squeezed until "Protector" renders as Protec / tor. The table FITS and no row is
   tall, so only table-audit's split-word check sees it. From 380 to 900px no cell or header now breaks
   mid-word; keys (td.setting/.endpoint/.method) and inline <code> still break anywhere, as everywhere else.
   At ≤480 the side padding drops to 0.3rem and the uppercase headers to 0.7rem with no letter spacing,
   because those headers ARE the floor on a phone (PLAYERS, SURVIVORS, RESOURCES, DIFFICULTY).
   `table.ref-table` there, not `.ref-table`: guide.css loads after this sheet and sets the ≤680 padding at
   (0,1,1), so an equal-weight rule here would be dead on every page that links both.
   History, so nobody re-derives it: 2026-10-22 (D105) made only the first column of ≤4-column tables whole,
   because the site-wide version hid a column on 253 pages at 390 with the letter-spaced 0.78rem headers;
   2026-11-15 the Icarus tables proved the header shrink, opt-in as `.whole-words` (that class is inert now,
   left on those tables). Measured with `table-audit --try` against every live table before this shipped:
   at 390 split words 9,378 → 3. With 0.4rem padding 24 tables then hid a column, with 0.3rem 16 did; those
   16 got a fold or a <wbr> on their own page first (c38b105c0), and `--local` over the working tree then
   read 0 split words and 0 hidden columns (the .cmd-tables aside: --local cannot run the JS that groups
   them and hides Category, so it always over-reports them; measure those live).
   ⛔ break-word does not lower min-content, so a NEW wide table can hide a column here instead of
   splitting a word: run `table-audit --width 390` on it and fold it (below) if it does.
   ⛔ 380 and up: at 375 three Icarus tables hid a column with every word whole and at 360 eight did. Below
   380 words still split, as before; a split word is ugly, a column nobody sees is worse.
   The per-page patches that also cover 320–375 (.nec-t on the Necesse pages, .hm-t on
   /palworld-hard-mode-towers/, .hz-tbl on the HumanitZ id pages) stay: they were measured on their pages.
   :where() keeps the cell rule at the weight of the `anywhere` rule above and later in source, so every
   class-scoped rule (td.setting, td.endpoint, the settings fold) and a <code> token still break as before.

   🧱 THE FOLD, for a table too wide to fit whole: `.fold-from-N` stacks column N onward into ONE cell at
   ≤800px, header and rows alike, so the header's stacked labels read top-to-bottom in the same order as
   each row's values. Same mechanism as the settings fold below (adjacent display:block cells share one
   anonymous table cell, CSS 2.1 §17.2.1); desktop is untouched. 800, not 680: the six-column Styx
   prospects table still overflowed at 740 unfolded and fit at 780.
   🪤 `width: auto` on the folded cells: guide.css gives a .cmd-table's last th/td 22% at ≥640, and a
   folded block keeps it, so DEFAULT split inside its own stacked header at 700. */
@media (min-width: 380px) and (max-width: 900px) {
  .ref-table td:where(:not(.setting, .endpoint, .method)),
  .ref-table td:where(:not(.setting, .endpoint, .method)) *,
  .ref-table th { overflow-wrap: break-word; }
  .ref-table td :is(code, kbd, samp) { overflow-wrap: anywhere; }
}
@media (max-width: 480px) {
  table.ref-table :is(th, td) { padding-left: 0.3rem; padding-right: 0.3rem; }
  table.ref-table th { letter-spacing: 0; font-size: 0.7rem; }
}
@media (max-width: 800px) {
  .ref-table:is(.fold-from-2, .fold-from-3, .fold-from-4, .fold-from-5) thead tr { background: var(--bg-surface); }
  .ref-table:is(.fold-from-2, .fold-from-3, .fold-from-4, .fold-from-5) tbody tr { border-bottom: 1px solid var(--border); }
  .ref-table:is(.fold-from-2, .fold-from-3, .fold-from-4, .fold-from-5) tbody tr:last-child { border-bottom: 0; }
  .ref-table.fold-from-2 :is(th, td):nth-child(n+2),
  .ref-table.fold-from-3 :is(th, td):nth-child(n+3),
  .ref-table.fold-from-4 :is(th, td):nth-child(n+4),
  .ref-table.fold-from-5 :is(th, td):nth-child(n+5) { display: block; width: auto; border-bottom: 0; padding-top: 0.15rem; padding-bottom: 0.15rem; }
  .ref-table.fold-from-2 :is(th, td):nth-child(2),
  .ref-table.fold-from-3 :is(th, td):nth-child(3),
  .ref-table.fold-from-4 :is(th, td):nth-child(4),
  .ref-table.fold-from-5 :is(th, td):nth-child(5) { padding-top: 0.6rem; }
  .ref-table:is(.fold-from-2, .fold-from-3, .fold-from-4, .fold-from-5) :is(th, td):not(:first-child):last-child { padding-bottom: 0.6rem; }
}

/* ── THE SETTINGS-EXPLAINED TABLES AT A REAL PHONE WIDTH (2026-09-30) ── desktop is untouched.
   The first sweep at a TRUE 390 found every settings-explained table hiding 200px (74px on the
   3-column mod pages), whatever the page held. A constant across pages means a constant cause:
   each page's own inline <style> carries a DESKTOP column budget, and at 390 it adds up to
     key 15ch (123) + description 26ch (214) + default 12ch (88) + a nowrap "RECOMMENDED" (125)
     = 550px in a 350px box.
   No column was ever sized by its content (valheim's widest description word is 102px inside that
   214). And the 26ch is POSITIONAL (td:nth-child(2)), so on the Setting | Value | Why table it
   lands on VALUE and crushes WHY to 53px.
   ▶ The levers, in order, each measured with table-audit's --try before this shipped:
     1. merge Default → Recommended, the documented precedent
     2. headers wrap, between words only — overflow-wrap:normal, or the ≤900 `anywhere` above
        turns RECOMMENDED into RECOMME/NDED
     3. cell padding 0.7rem → 0.45rem
     4. a smaller font was not needed.
   ⛔ THREE COLUMNS FIT AND STILL FAILED. Key + merged pair + description at 360 leaves the
   description ~16 characters wide, and PZ's 689-character "War" row then rendered 990px against a
   247px median: a blown row at 360, 375 AND 390. So on a phone the merged pair FOLDS UNDER THE
   DESCRIPTION: key | what it does, then "8777 → 8777" on its own line. Measured over all 24
   pages: 0 hidden, 0 blown at 360/375/390, description median 16 → 29 characters at 360.
   ⭐ HOW THE FOLD WORKS: adjacent cells set to display:block/inline-block are wrapped in ONE
   anonymous table cell (CSS 2.1 §17.2.1), so the column merge is pure CSS and the markup — every
   generated and hand-owned page — is untouched. The anonymous cell has no border or background,
   so the row separators move to the <tr> (border-collapse draws row borders) and the header row
   carries the surface colour.
   ⭐ SCOPED BY ROW SHAPE, not by page: key, description, Default [, Recommended | Options] folds;
   7dtd's Where it lives + Value stack in one column; Setting | Value | Why only loses the budget,
   and only inside .rec-section — three Icarus tables share that exact class signature.
   ⭐ The inline <style> comes AFTER main.css, so every rule here is one class or element heavier
   than the one it overrides. :where() keeps the long row-shape scopes at zero, which is what
   makes that arithmetic possible to follow. No !important needed.
   🪤 Keys break at their <wbr> seams here (word-break:normal). The ≤900 break-all above exists for
   JS-injected blueprint paths; on a settings key it split SteamServ/erName.
   ▶ Verify: node tools/table-audit/check.mjs --width 360 (and 375, 390). */
@media (max-width: 680px) {
  :is(table.ref-table:has(:where(td.setting:first-child + td:not([class]) + td.def:last-child, td.setting:first-child + td:not([class]) + td.def + :is(td.rec, td.opts):last-child, td.setting:first-child + td.def + td.rec + td:not([class]):last-child)), .rec-section table.ref-table:has(:where(td.setting:first-child + td.rec + td:not([class]):last-child)))
    :is(td:nth-child(2), th:nth-child(2), th:nth-child(1), td.setting, td.def, td.rec) { min-width: 0; }
  .page-2col.full-6040 :is(table.ref-table:has(:where(td.setting:first-child + td:not([class]) + td.def:last-child, td.setting:first-child + td:not([class]) + td.def + :is(td.rec, td.opts):last-child, td.setting:first-child + td.def + td.rec + td:not([class]):last-child)), .rec-section table.ref-table:has(:where(td.setting:first-child + td.rec + td:not([class]):last-child)))
    :is(td:nth-child(2), th:nth-child(2), td.rec) { min-width: 0; }
  /* the key keeps a floor: 14ch, the same as the global td.setting floor above */
  :is(table.ref-table:has(:where(td.setting:first-child + td:not([class]) + td.def:last-child, td.setting:first-child + td:not([class]) + td.def + :is(td.rec, td.opts):last-child, td.setting:first-child + td.def + td.rec + td:not([class]):last-child)), .rec-section table.ref-table:has(:where(td.setting:first-child + td.rec + td:not([class]):last-child)))
    td.setting { min-width: 14ch; }
  :is(table.ref-table:has(:where(td.setting:first-child + td:not([class]) + td.def:last-child, td.setting:first-child + td:not([class]) + td.def + :is(td.rec, td.opts):last-child, td.setting:first-child + td.def + td.rec + td:not([class]):last-child)), .rec-section table.ref-table:has(:where(td.setting:first-child + td.rec + td:not([class]):last-child)))
    :is(td.setting, td.setting *) { word-break: normal; }
  :is(table.ref-table:has(:where(td.setting:first-child + td:not([class]) + td.def:last-child, td.setting:first-child + td:not([class]) + td.def + :is(td.rec, td.opts):last-child, td.setting:first-child + td.def + td.rec + td:not([class]):last-child)), .rec-section table.ref-table:has(:where(td.setting:first-child + td.rec + td:not([class]):last-child)))
    th { white-space: normal; overflow-wrap: normal; }
  :is(table.ref-table:has(:where(td.setting:first-child + td:not([class]) + td.def:last-child, td.setting:first-child + td:not([class]) + td.def + :is(td.rec, td.opts):last-child, td.setting:first-child + td.def + td.rec + td:not([class]):last-child)), .rec-section table.ref-table:has(:where(td.setting:first-child + td.rec + td:not([class]):last-child)))
    :is(th, td) { padding-left: 0.45rem; padding-right: 0.45rem; }

  /* THE FOLD: what it does, then Default → Recommended (or Default, then Options) in one cell */
  table.ref-table:has(:where(td.setting:first-child + td:not([class]) + td.def:last-child, td.setting:first-child + td:not([class]) + td.def + :is(td.rec, td.opts):last-child)) td.setting + td,
  table.ref-table:has(:where(td.setting:first-child + td:not([class]) + td.def:last-child, td.setting:first-child + td:not([class]) + td.def + :is(td.rec, td.opts):last-child)) thead th:nth-child(2) { display: block; border-bottom: 0; padding-bottom: 0.35rem; }
  table.ref-table:has(:where(td.setting:first-child + td:not([class]) + td.def:last-child, td.setting:first-child + td:not([class]) + td.def + :is(td.rec, td.opts):last-child)) td.def,
  table.ref-table:has(:where(td.setting:first-child + td:not([class]) + td.def:last-child, td.setting:first-child + td:not([class]) + td.def + :is(td.rec, td.opts):last-child)) td.def + td.rec,
  table.ref-table:has(:where(td.setting:first-child + td:not([class]) + td.def:last-child, td.setting:first-child + td:not([class]) + td.def + :is(td.rec, td.opts):last-child)) thead th:nth-child(n+3) { display: inline-block; border-bottom: 0; padding-top: 0; padding-bottom: 0.6rem; }
  table.ref-table:has(:where(td.setting:first-child + td:not([class]) + td.def:last-child, td.setting:first-child + td:not([class]) + td.def + :is(td.rec, td.opts):last-child)) td.def:has(+ td.rec),
  table.ref-table:has(:where(td.setting:first-child + td:not([class]) + td.def:last-child, td.setting:first-child + td:not([class]) + td.def + :is(td.rec, td.opts):last-child)):has(td.def + td.rec) thead th:nth-child(3) { padding-right: 0; }
  table.ref-table:has(:where(td.setting:first-child + td:not([class]) + td.def:last-child, td.setting:first-child + td:not([class]) + td.def + :is(td.rec, td.opts):last-child)) td.def + td.opts,
  table.ref-table:has(:where(td.setting:first-child + td:not([class]) + td.def:last-child, td.setting:first-child + td:not([class]) + td.def + :is(td.rec, td.opts):last-child)):has(td.opts) thead th:nth-child(4) { display: block; border-bottom: 0; padding-top: 0; }
  table.ref-table:has(:where(td.setting:first-child + td:not([class]) + td.def:last-child, td.setting:first-child + td:not([class]) + td.def + :is(td.rec, td.opts):last-child)) td.def:has(+ td.opts),
  table.ref-table:has(:where(td.setting:first-child + td:not([class]) + td.def:last-child, td.setting:first-child + td:not([class]) + td.def + :is(td.rec, td.opts):last-child)):has(td.opts) thead th:nth-child(3) { padding-bottom: 0.2rem; }
  table.ref-table:has(:where(td.setting:first-child + td:not([class]) + td.def:last-child, td.setting:first-child + td:not([class]) + td.def + :is(td.rec, td.opts):last-child)) td.def + td.rec::before,
  table.ref-table:has(:where(td.setting:first-child + td:not([class]) + td.def:last-child, td.setting:first-child + td:not([class]) + td.def + :is(td.rec, td.opts):last-child)):has(td.def + td.rec) thead th:nth-child(4)::before { content: "\2192\00a0"; color: var(--text-muted); }

  /* 7dtd's baseline table: Where it lives + Value stack in one column (the fold would put the
     value under the explanation of why) */
  table.ref-table:has(:where(td.setting:first-child + td.def + td.rec + td:not([class]):last-child)) td.def,
  table.ref-table:has(:where(td.setting:first-child + td.def + td.rec + td:not([class]):last-child)) td.def + td.rec,
  table.ref-table:has(:where(td.setting:first-child + td.def + td.rec + td:not([class]):last-child)) thead th:is(:nth-child(2), :nth-child(3)) { display: block; border-bottom: 0; }
  table.ref-table:has(:where(td.setting:first-child + td.def + td.rec + td:not([class]):last-child)) td.def,
  table.ref-table:has(:where(td.setting:first-child + td.def + td.rec + td:not([class]):last-child)) thead th:nth-child(2) { padding-bottom: 0.1rem; }
  table.ref-table:has(:where(td.setting:first-child + td.def + td.rec + td:not([class]):last-child)) td.def + td.rec,
  table.ref-table:has(:where(td.setting:first-child + td.def + td.rec + td:not([class]):last-child)) thead th:nth-child(3) { padding-top: 0; }

  /* both: the anonymous cell draws no border and no background */
  table.ref-table:has(:where(td.setting:first-child + td:not([class]) + td.def:last-child, td.setting:first-child + td:not([class]) + td.def + :is(td.rec, td.opts):last-child, td.setting:first-child + td.def + td.rec + td:not([class]):last-child)) tr { border-bottom: 1px solid var(--border); }
  table.ref-table:has(:where(td.setting:first-child + td:not([class]) + td.def:last-child, td.setting:first-child + td:not([class]) + td.def + :is(td.rec, td.opts):last-child, td.setting:first-child + td.def + td.rec + td:not([class]):last-child)) tbody tr:last-child { border-bottom: 0; }
  table.ref-table:has(:where(td.setting:first-child + td:not([class]) + td.def:last-child, td.setting:first-child + td:not([class]) + td.def + :is(td.rec, td.opts):last-child, td.setting:first-child + td.def + td.rec + td:not([class]):last-child)) thead tr { background: var(--bg-surface); }
}

/* ── Round the served ad's own corners ──
   When Google fills a slot with a creative smaller than the reserved area it paints the leftover
   WHITE, and that white lives inside a cross-origin iframe — no CSS of ours can recolour it (our
   <ins> already computes to rgba(0,0,0,0); measured on the live site 2026-08-13). What we CAN do
   is stop it reading as a rectangle pasted onto a dark card: clip it to a radius so it looks like
   a deliberate white card sitting in the box.
   Cosmetic only — nothing is obscured, resized or overlaid, and the ad code itself is untouched.
   `isolation: isolate` is the belt-and-braces: WebKit has historically ignored a parent's
   border-radius when clipping an iframe child unless the parent makes its own stacking context.
   Global on purpose (same reason as the block above): the 23 pages carrying an inline
   .rail-adsense copy only set background/border/radius/padding, never overflow or anything on the
   <ins>, so nothing competes with these. One rule reaches every page.
   ⚠ The real fix for the white is AdSense-side and is Jason's call — display units
   (data-ad-format="auto", what we run everywhere) hand the background to the advertiser; only the
   NATIVE formats expose a background colour in the unit's style editor. */
.rail-adsense ins.adsbygoogle,
.ad-slot ins.adsbygoogle {
  border-radius: 8px;
  overflow: hidden;
  isolation: isolate;
}
.rail-adsense ins.adsbygoogle iframe,
.ad-slot ins.adsbygoogle iframe { border-radius: 8px; }

/* ── Verified-for-version trust badge (generator pages) ──
   Injected by footer.js from /assets/data/verified.json — the patch-triage
   loop maintains the data. Same pill language as .ref-verified in guide.css. */
.gog-verified { display: inline-flex; align-items: center; gap: 7px; margin: 0.9rem 0 0; font-family: 'Urbanist', sans-serif; font-size: 0.78rem; color: var(--text-muted); background: var(--bg-card); border: 1px solid var(--border); border-radius: 100px; padding: 0.3rem 0.9rem; cursor: default; }
.gog-verified .dot { width: 7px; height: 7px; border-radius: 50%; background: #7ecfa0; flex-shrink: 0; }
.gog-verified strong { color: var(--text); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════════════════════════════
   rail-oc — the AcidNodes sticky order-card skin (was its own file, 36 pages)
   FOLDED IN 2026-08-05. It had ZERO selector collisions with this file, so the merge is a
   paste: same rules, one fewer stylesheet, one fewer request on every page that used it.
   ═══════════════════════════════════════════════════════════════════════════════════════ */
/* AcidNodes rail-oc order-card skin — shared across GamesOMG pages that carry the sticky hosting ad.
   Paired with /assets/js/rail-ad.js (RAM slider + price/UTM wiring). */
.rail-oc{--acid:#A6E22E;background:linear-gradient(180deg,#1b222b,#161b22);border:1px solid #2a323c;border-radius:15px;padding:19px 21px 20px;font-family:'Manrope',sans-serif;color:#ECE3D1;}
.rail-oc .roc-head{display:flex;align-items:center;gap:9px;font-weight:800;font-size:18px;color:var(--acid);letter-spacing:-.2px;}
.rail-oc .roc-head svg{width:19px;height:20px;flex:none;}
.rail-oc .roc-sub{color:#8a949f;font-size:13.5px;margin:5px 0 15px;line-height:1.5;}
.rail-oc .roc-lab{display:flex;justify-content:space-between;align-items:baseline;}
.rail-oc .roc-k{font-family:'Courier New',monospace;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:#8a949f;}
.rail-oc .roc-lab b{font-size:21px;font-weight:800;}
.rail-oc .roc-lab small{color:#8a949f;font-weight:600;font-size:13px;}
.rail-oc .roc-range{-webkit-appearance:none;appearance:none;width:100%;height:7px;border-radius:99px;background:linear-gradient(90deg,var(--acid) var(--pct,0%),#2a323c var(--pct,0%));outline:none;margin:11px 0 5px;}
.rail-oc .roc-range::-webkit-slider-thumb{-webkit-appearance:none;width:24px;height:24px;border-radius:50%;background:var(--acid);border:4px solid #0d0f0e;box-shadow:0 0 0 1px var(--acid);cursor:pointer;}
.rail-oc .roc-range::-moz-range-thumb{width:22px;height:22px;border-radius:50%;background:var(--acid);border:4px solid #0d0f0e;cursor:pointer;}
.rail-oc .roc-ends{display:flex;justify-content:space-between;font-family:'Courier New',monospace;font-size:12px;color:#8a949f;}
.rail-oc .roc-price{display:flex;align-items:flex-end;gap:8px;margin:15px 0 1px;}
.rail-oc .roc-big{font-weight:800;font-size:37px;line-height:1;letter-spacing:-1px;color:#ECE3D1;}
.rail-oc .roc-per{color:#8a949f;font-size:14px;padding-bottom:4px;}
.rail-oc .roc-founder{color:var(--blue);font-size:13px;font-weight:600;margin-bottom:14px;}
.rail-oc .roc-order{display:block;text-align:center;background:var(--acid);color:#16130D;font-weight:800;font-size:16px;padding:14px;border-radius:12px;text-decoration:none;}
.rail-oc .roc-order:hover{background:#8fce1e;}
.rail-oc .roc-fine{text-align:center;color:#8a949f;font-size:12.5px;margin-top:11px;line-height:1.5;}

/* ═══════════════════════════════════════════════════════════════════════════════════════════
   shot-chips — the 📷 pill on a checklist row + its lightbox (was its own file, 9 pages)
   FOLDED IN 2026-08-05. It had ZERO selector collisions with this file, so the merge is a
   paste: same rules, one fewer stylesheet, one fewer request on every page that used it.
   ═══════════════════════════════════════════════════════════════════════════════════════ */
/* shot-chips.css — the 📷 pill on a checklist row, and its lightbox.
   Paired with /assets/js/shot-chips.js. Colours come from the site tokens so this drops onto any
   checklist page (26 of them at time of writing) without a per-page palette. */

.shot-chip {
  display: inline-flex;
  align-items: center;
  gap: .28em;
  margin-left: .4em;
  padding: .1em .55em;
  font: inherit;
  font-size: .8em;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  vertical-align: baseline;
  cursor: pointer;
  border-radius: 999px;
  color: var(--gold-deep, #b26a00);
  background: rgba(210, 150, 40, .14);
  border: 1px solid rgba(210, 150, 40, .42);
  transition: background .12s, color .12s;
}
.shot-chip:hover { background: rgba(210, 150, 40, .3); }
.shot-chip:focus-visible { outline: 2px solid var(--gold-deep, #b26a00); outline-offset: 2px; }

.shot-lb {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
  background: rgba(8, 8, 12, .95);
}
.shot-lb.open { display: flex; }
.shot-fig { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: min(1100px, 96vw); }
.shot-img {
  max-width: 100%;
  max-height: 66vh;
  object-fit: contain;
  border-radius: 10px;
  background: #0a0a0c;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .6);
}
.shot-cap {
  margin-top: .9rem;
  max-width: 54ch;
  text-align: center;
  color: #ece9e2;
  font-size: .95rem;
  line-height: 1.5;
}
/* the row's area/region, so the shot is self-describing with the page hidden behind it */
.shot-cap i {
  display: block;
  margin-bottom: .3rem;
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #e0a94a;
}
.shot-ctr {
  margin-top: .5rem;
  font-size: .75rem;
  color: #8f8d86;
  font-variant-numeric: tabular-nums;
}
.shot-dots { display: flex; gap: .4rem; margin-top: .7rem; }
.shot-dots i { width: .45rem; height: .45rem; border-radius: 50%; background: rgba(255, 255, 255, .26); }
.shot-dots i.on { background: #e0a94a; }

.shot-x, .shot-nav {
  position: absolute;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color:var(--ink-inverse,#fff);
  cursor: pointer;
  line-height: 1;
}
.shot-x { top: .8rem; right: .8rem; width: 2.5rem; height: 2.5rem; font-size: 1.4rem; }
.shot-nav { top: 50%; transform: translateY(-50%); width: 2.9rem; height: 2.9rem; font-size: 1.5rem; display: none; }
.shot-lb.multi .shot-nav { display: block; }
.shot-prev { left: .7rem; }
.shot-next { right: .7rem; }
.shot-x:hover, .shot-nav:hover { background: rgba(255, 255, 255, .22); }
.shot-x:focus-visible, .shot-nav:focus-visible { outline: 2px solid #e0a94a; outline-offset: 2px; }

/* The baked-in thumbnail: a REAL <img> in the page HTML so crawlers index the capture
   (a JS-injected lightbox image is invisible to image search — the chips alone forfeit that).
   One per row that has shots; clicking it opens the same lightbox at that image. */
.shot-thumb { display: inline-block; margin-left: .45em; vertical-align: middle; line-height: 0; border-radius: 6px; }
.shot-thumb img {
  display: block;
  width: 118px;
  height: 66px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(210, 150, 40, .42);
}
.shot-thumb:hover img { filter: brightness(1.1); }
.shot-thumb:focus-visible { outline: 2px solid var(--gold-deep, #b26a00); outline-offset: 2px; }
@media (max-width: 560px) { .shot-thumb img { width: 92px; height: 52px; } }

/* ─── Checklist rows: put the thumb and the 📷 pill in FIXED COLUMNS ───────────
   Both are inline at the end of the cell's sentence, so their x-position was
   wherever the text happened to wrap — every row landed somewhere different and
   the column read as noise. So the thumb and the pill are PINNED a fixed distance
   from the cell's right edge, and the cell reserves that space as padding: every
   row in the table shares one right edge for the prose and one x for each widget,
   so the eye tracks straight down. Rows with no photo still reserve the space,
   which is what keeps the prose column flush.
   ⚠ SCOPED WITH :has() ON PURPOSE. 36 pages use `tr[data-tid]` and most carry NO
   photos at all (conan-exiles-thralls is 685 rows, zero thumbs) — unscoped, this
   would hang a permanent empty gutter on all of them. :has() is live, so it also
   switches on by itself once shot-chips.js injects the pills after load, and if
   a browser lacks it the rows simply stay as they were.
   ⛔⛔ THIS WAS A 3-TRACK GRID ON THE `td` AND THAT IS A TRAP — DO NOT GO BACK.
   `display:grid` makes EVERY CHILD ITS OWN GRID ITEM, including the anonymous
   items either side of an inline element. A cell whose prose contains a mid-
   sentence <strong>/<a>/<em> therefore splits into three items: the text before
   took track 1, the <strong> took the 126px thumb track, and THE REST OF THE
   SENTENCE was dumped into the 62px pill track — a one-character-wide ribbon of
   vertical text. Measured on /palworld-marcus-dryden-diary-locations/ (2026-08-15,
   live, 2560px): that row rendered 1502px tall against 129px for its siblings, and
   the <strong> measured exactly 126px, the thumb track's width. Four pages / five
   rows were hit. Nothing caught it: table-audit only asks whether a table is WIDER
   than its wrap, and a cell crushed to min-content makes the table FIT.
   Padding + absolute positioning has no per-child behaviour, so prose can carry
   any inline markup. */
table:has(.shot-thumb, .shot-chip) tr[data-tid] > td:last-child {
  position: relative;
  /* reserve the two pinned widgets + a gap either side of the thumb */
  padding-right: calc(126px + 70px + 1.5rem);
  /* The pinned thumb is absolute, so it adds NOTHING to the row's height: a one-line row is ~52px
     and the 66px thumb hung over both row borders (Rooby effigy page, 2026-10-10: all 30 rows at
     2560px). A td's `height` is a minimum, so this only lifts the short rows; tall ones are untouched,
     and the phone stack below 560px is taller than this anyway. */
  height: calc(66px + 1rem);
}
table:has(.shot-thumb, .shot-chip) tr[data-tid] > td:last-child > .shot-thumb {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: calc(70px + 0.75rem);
  /* 126px box, image left-aligned inside it — reproduces the old track exactly,
     and stays correct for the pages whose thumbs are not 118px wide */
  width: 126px;
  margin-left: 0;
}
table:has(.shot-thumb, .shot-chip) tr[data-tid] > td:last-child > .shot-chip {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
}
@media (max-width: 700px) {
  table:has(.shot-thumb, .shot-chip) tr[data-tid] > td:last-child {
    padding-right: calc(100px + 56px + 1rem);
  }
  table:has(.shot-thumb, .shot-chip) tr[data-tid] > td:last-child > .shot-thumb {
    right: calc(56px + 0.5rem);
    width: 100px;
  }
}
/* ⭐ PHONE: THE THUMB AND ITS CHIP GO UNDER THE TEXT (2026-09-30). The reserve above is 172px, so in
   a ~267px cell at a true 390 the "where to find it" text was left ~84px — about 12 characters a
   line — and Castaway's day-30 row rendered 617px against a 185px median: a blown row.
   Stacked, the text gets the whole cell. Measured on all 21 thumb-table pages at 360/375/390:
   0 blown (was 2 at 360, 1 at 375 and 390), 0 hidden. Still no grid and no flex on the cell —
   see the retired-grid note above.
   ⚠ The other columns then keep their words whole (overflow-wrap:normal), or the reclaimed width
   went straight back out of them: "Day XX" rendered one character per line. */
@media (max-width: 560px) {
  table:has(.shot-thumb, .shot-chip) tr[data-tid] > td:last-child { padding-right: 0.7rem; }
  table:has(.shot-thumb, .shot-chip) tr[data-tid] > td:last-child > :is(.shot-thumb, .shot-chip) {
    position: static; transform: none; display: block; width: max-content; margin: 0.5rem 0 0;
  }
  table:has(.shot-thumb, .shot-chip) tr[data-tid] > td:not(:last-child) { overflow-wrap: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .shot-chip { transition: none; }
}


/* ═══════════════════════════════════════════════════════════
   FOLDED IN FROM cave-pages.css — 2026-08-24
   Jason: "make the cave one the base, get rid of the others."
   The cave pages were the site's original design and the one he still prefers
   ("the cave pages, are tight, clean, and the pills are pills, not the whole damn
   bottle"). Their sheet was a SECOND BASE — its own :root, its own body, its own
   root-size ramp — which is why the site looked like two different sites.
   The nine values that differed (root-size ramp, flat card/surface, orange tokens,
   1100px content width, .section spacing) were reconciled INTO the blocks above;
   what follows is everything cave had that main did not.
   ⛔ Do not re-create a per-cluster base stylesheet. That is the bug this closes.
   ═══════════════════════════════════════════════════════════ */
:root, :root[data-theme="light"] { --blue-dim: color-mix(in srgb, var(--blue) 11%, transparent); --blue-border: color-mix(in srgb, var(--blue) 35%, transparent); --green-dim: color-mix(in srgb, var(--green) 12%, transparent); --green-border: color-mix(in srgb, var(--green) 30%, transparent); --yellow-dim: color-mix(in srgb, var(--yellow) 12%, transparent); --yellow-border: color-mix(in srgb, var(--yellow) 30%, transparent); --red-dim: color-mix(in srgb, var(--red) 10%, transparent); --red-border: color-mix(in srgb, var(--red) 30%, transparent); --purple-dim: color-mix(in srgb, var(--purple) 10%, transparent); --purple-border: color-mix(in srgb, var(--purple) 30%, transparent); --radius-sm: 8px; --radius-md: 10px; --radius-lg: 14px; }
.hero-lede a, .hero-facts li a, .cave-detail p a, .cave-detail ul a, .cave-detail .tip a, .feature-callout p a, .section > p a, .faq-body a { color: var(--blue); text-decoration: none; transition: color 0.15s; }
.hero-lede a:hover, .hero-facts li a:hover, .cave-detail p a:hover, .cave-detail ul a:hover, .cave-detail .tip a:hover, .feature-callout p a:hover, .section > p a:hover, .faq-body a:hover { color: color-mix(in srgb, var(--blue) 80%, #000); text-decoration: underline; }
.hero { padding: 1.5rem 2rem 2.5rem; max-width: 1100px; margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--orange-dim); border: 1px solid var(--orange-border); color: var(--orange-ink); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; padding: 0.3rem 0.85rem; border-radius: 100px; margin-bottom: 1rem; }
.hero h1 { font-family: 'Manrope', sans-serif; font-size: clamp(1.7rem, 3.8vw, 2.6rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; color: var(--text); margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--orange-ink); }
.hero-lede { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; max-width: 760px; }
.hero-meta { display: flex; gap: 1.25rem; align-items: center; font-size: 0.78rem; color: var(--text-muted); flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid var(--border); }
.hero-meta b { color: var(--text); font-weight: 700; }
.hero-image { max-width: 1100px; margin: 0 auto 2.5rem; padding: 0 2rem; }
.hero-image img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: 0 12px 32px -10px rgba(0,0,0,0.22); background: var(--bg-card); }
.hero-image figcaption { margin-top: 0.75rem; font-size: 0.82rem; color: var(--text-muted); text-align: center; font-style: italic; }
.cave-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0.8rem; margin: 1.1rem 0 0.4rem; }
.cave-photos figure { margin: 0; }
.cave-photos img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--bg-card); }
.cave-photos figcaption { margin-top: 0.45rem; font-size: 0.78rem; color: var(--text-muted); font-style: italic; }
.cave-route { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--orange); border-radius: var(--radius-md); padding: 1.1rem 1.4rem; margin: 1.2rem 0; }
.cave-route h4 { font-family: 'Manrope', sans-serif; font-size: 1rem; font-weight: 800; color: var(--orange-ink); margin: 0 0 0.85rem; letter-spacing: -0.01em; }
.cave-route ol { margin: 0; padding-left: 1.3rem; }
.cave-route li { margin-bottom: 0.6rem; line-height: 1.62; color: var(--text); }
.cave-route li:last-child { margin-bottom: 0; }
.stats { max-width: 1100px; margin: 0 auto 2.5rem; padding: 0 2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
/* 5 or 6 cards orphan on a 4-col grid (4+2 with a hole) — drop to 3 cols so they wrap 3+2 / 3+3.
   :where() keeps specificity at (0,1,0) so the later mobile 2-col overrides still win; browsers
   without :has() just keep the 4-col band. 4-card pages (the ARK reference look) are untouched. */
.stats:where(:has(> .stat-card:nth-child(5))) { grid-template-columns: repeat(3, 1fr); }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem 1.2rem; }
.stat-num { font-family: 'Manrope', sans-serif; font-size: 1.7rem; font-weight: 800; color: var(--orange-ink); line-height: 1; letter-spacing: -0.02em; }
/* text-valued stat cards (mission pages): same chrome, readable size for words */
.stat-num.stat-text { font-size: 1.02rem; font-weight: 700; line-height: 1.35; letter-spacing: 0; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.35rem; line-height: 1.3; }
.section h2 { font-family: 'Manrope', sans-serif; font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); margin-bottom: 0.4rem; }
.jump-nav { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem 1.2rem; margin-bottom: 2rem; }
.jump-nav-label { font-family: 'Manrope', sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.6rem; }
.jump-nav-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.jump-chip { font-size: 0.78rem; font-weight: 600; padding: 5px 11px; border-radius: 100px; background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s; }
.jump-chip:hover { color: var(--orange-ink); border-color: var(--orange-border); background: var(--orange-dim); }
.table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.5rem; }
/* 0.82rem, matching .ref-table (2026-08-24). Six columns — Cave / Artifact / Boss / Coords /
   Difficulty / Best Mount — at 0.9rem against a 22-24px root pushed this 150px past its
   container at 1280px. Same lever, same reason: a dense reference table reads fine below
   prose size, and one font value buys width on every column at once. */
.cave-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
/* CELL PADDING TRIMMED 2026-08-24: 0.7rem/0.9rem against a 22-24px root cost ~40px per
   column, and this table has SIX — about 237px of the 905px width was padding alone. It is
   rem, so it inflated with the root ramp exactly like the column budgets did. */
.cave-table th { background: var(--bg-surface); padding: 0.55rem 0.6rem; text-align: left; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.78rem; color: var(--text); letter-spacing: 0.02em; border-bottom: 1px solid var(--border); white-space: nowrap; }
.cave-table td { padding: 0.55rem 0.6rem; color: var(--text-muted); border-top: 1px solid var(--border); vertical-align: top; line-height: 1.5; }
.cave-table tbody tr:hover td { background: rgba(0,0,0,0.03); }
.cave-table td.cave-name { color: var(--text); font-weight: 600; }
.cave-table td.cave-name .cave-cell { display: inline-flex; align-items: center; gap: 0.6rem; }
.cave-table td.cave-name .cave-thumb { width: 60px; height: 34px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); flex: none; }
.verified-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--green-dim); color: var(--green); border: 1px solid rgba(21,128,61,0.4); font-weight: 700; font-size: 0.82rem; padding: 0.32rem 0.72rem; border-radius: 999px; }
.cave-answer { display: grid; grid-template-columns: 1fr; gap: 1.15rem; margin-top: 0.3rem; }
.cave-answer .cave-detail-meta { margin: 0; }
.cave-answer-shot { margin: 0; }
.cave-answer-shot img { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); display: block; }
.cave-answer-shot figcaption { margin-top: 0.4rem; font-size: 0.78rem; color: var(--text-muted); font-style: italic; }
.yt-facade { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: #000 center/cover no-repeat; cursor: pointer; }
.yt-facade::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.18); transition: background 0.15s; }
.yt-facade:hover::before, .yt-facade:focus-visible::before { background: rgba(0,0,0,0); }
.yt-facade .yt-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 68px; height: 48px; border-radius: 12px; background: rgba(0,0,0,0.72); transition: background 0.15s; }
.yt-facade:hover .yt-play, .yt-facade:focus-visible .yt-play { background: #f00; }
.yt-facade .yt-play::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-42%,-50%); border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; }
.yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* ⭐ WRAPS BETWEEN COORDINATE PAIRS, NEVER INSIDE ONE (2026-08-24).
   Was `white-space: nowrap`, which made a whole multi-entrance cell ONE unbreakable token —
   "82.7, 74.5 · 98.1, 76.8 · 82.6, 68.1 · 84.7, 76.4" set a 557px floor and pushed the Lost
   Colony table 66px past its container. The pairs are now bound with &nbsp; in the markup, so
   `normal` can only break at the " · " separators. Splitting a coordinate across two lines
   would be worse than the overflow; splitting between entrances is free. */
.cave-table td.cave-coords { font-family: 'Courier New', monospace; color: var(--orange-ink); white-space: normal; }
#all-caves .cave-table td.cave-coords { white-space: normal; }
.diff { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 100px; letter-spacing: 0.02em; white-space: nowrap; }
.diff-easy { background: var(--green-dim); color: var(--green); border: 1px solid var(--green-border); }
.spotter { display: inline-block; font-size: 0.85em; font-weight: 700; padding: 1px 8px; border-radius: 100px; letter-spacing: 0.02em; white-space: nowrap; background: var(--yellow-dim); color: var(--yellow); border: 1px solid var(--yellow-border); }
.diff-medium { background: var(--yellow-dim); color: var(--yellow); border: 1px solid var(--yellow-border); }
.diff-hard { background: var(--orange-dim); color: var(--orange-ink); border: 1px solid var(--orange-border); }
.diff-xhard { background: var(--red-dim); color: var(--red); border: 1px solid var(--red-border); }
.diff-endgame { background: var(--purple-dim); color: var(--purple); border: 1px solid var(--purple-border); }
.boss-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.boss-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.2rem; }
.boss-card h3 { font-family: 'Manrope', sans-serif; font-size: 1.05rem; font-weight: 800; color: var(--text); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 8px; }
.boss-card h3 .boss-emoji { font-size: 1.4rem; }
.boss-artifacts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.boss-artifacts li { font-size: 0.88rem; display: flex; align-items: center; gap: 8px; }
.boss-artifacts li::before { content: '◆'; color: var(--orange-ink); font-size: 0.7rem; }
.boss-artifacts li strong { color: var(--text); font-weight: 600; }
.boss-artifacts li span { color: var(--text-muted); }
.cave-detail { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.5rem 1.6rem; margin-bottom: 1rem; scroll-margin-top: 80px; }
.cave-detail-head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.cave-detail h3 { font-family: 'Manrope', sans-serif; font-size: 1.2rem; font-weight: 800; color: var(--text); letter-spacing: -0.015em; margin-bottom: 0.3rem; }
.cave-detail-sub { font-size: 0.85rem; color: var(--text-muted); }
.cave-detail-sub b { color: var(--text); }
.cave-detail-coords { font-family: 'Courier New', monospace; font-size: 0.85rem; color: var(--orange-ink); background: var(--orange-dim); padding: 4px 10px; border-radius: 6px; white-space: nowrap; align-self: center; margin-left: auto; }
.cave-detail-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.meta-row { display: flex; flex-direction: column; gap: 2px; }
.meta-label { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.meta-value { font-size: 0.88rem; color: var(--text); line-height: 1.45; }
.cave-detail p { font-size: 0.93rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 0.6rem; }
.cave-detail p:last-child { margin-bottom: 0; }
.cave-detail strong { color: var(--text); }
.cave-detail ul { font-size: 0.92rem; color: var(--text-muted); padding-left: 1.2rem; margin-bottom: 0.6rem; line-height: 1.65; }
.cave-detail ul li { margin-bottom: 0.25rem; }
.cave-detail .tip { background: var(--bg-surface); border-left: 3px solid var(--orange); padding: 0.7rem 1rem; margin-top: 0.6rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.88rem; color: var(--text); }
.cave-detail .tip b { color: var(--orange-ink); }
.feature-callout { background: linear-gradient(135deg, rgba(248,113,113,0.06), rgba(240,128,0,0.04)); border: 1px solid var(--red-border); border-radius: var(--radius-md); padding: 1.6rem 1.8rem; margin-bottom: 1rem; scroll-margin-top: 80px; }
.feature-callout-head { display: flex; align-items: center; gap: 12px; margin-bottom: 0.8rem; }
.feature-callout-emoji { font-size: 1.8rem; }
.feature-callout h3 { font-family: 'Manrope', sans-serif; font-size: 1.25rem; font-weight: 800; color: var(--text); letter-spacing: -0.015em; }
.feature-callout p { font-size: 0.93rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 0.6rem; }
.feature-callout strong { color: var(--text); }
.gen-cta-box { background: linear-gradient(135deg, rgba(240,128,0,0.06), color-mix(in srgb, var(--blue) 4%, transparent)); border: 1px solid var(--orange-border); border-radius: var(--radius-md); padding: 1.5rem 1.6rem; margin: 2rem 0; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.gen-cta-icon { width: 48px; height: 48px; background: var(--orange-dim); border: 1px solid var(--orange-border); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.gen-cta-text { flex: 1; min-width: 220px; }
.gen-cta-text h4 { font-family: 'Manrope', sans-serif; font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.gen-cta-text p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }
.gen-cta-text code { background: rgba(0,0,0,0.06); padding: 1px 6px; border-radius: 4px; color: var(--orange-ink); font-family: 'Courier New', monospace; font-size: 0.82rem; }
.gen-cta-btn { background: var(--orange); color:var(--cta-ink,#1a1a1a); font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.85rem; padding: 0.65rem 1.2rem; border-radius: var(--radius-sm); white-space: nowrap; transition: background 0.15s; }
.gen-cta-btn:hover { background:var(--orange-hover,#ff9420); color:var(--cta-ink,#1a1a1a); }
.tip-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.tip-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }
.tip-item strong { color: var(--text); font-weight: 700; }
.loot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.loot-card { background: var(--bg-card); border: 1px solid var(--blue-border); border-radius: var(--radius-md); padding: 1.2rem 1.4rem; }
.loot-card h4 { font-family: 'Manrope', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--blue); margin-bottom: 0.6rem; display: flex; align-items: center; gap: 8px; }
.loot-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.loot-card li { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.loot-card li::before { content: '◆'; color: var(--blue); font-size: 0.65rem; flex-shrink: 0; }
.loot-card li code { font-family: 'Courier New', monospace; color: var(--orange-ink); background: rgba(240,128,0,0.08); padding: 1px 6px; border-radius: 4px; font-size: 0.82rem; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.6rem; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 1rem 1.2rem; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.95rem; color: var(--text); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--orange-ink); font-size: 1.3rem; transition: transform 0.2s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 1.2rem 1.1rem; font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.sibling-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.6rem; }
.sibling-link { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.85rem 1rem; font-size: 0.88rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; transition: color 0.15s, border-color 0.15s, transform 0.15s; }
.sibling-link:hover { color: var(--orange-ink); border-color: var(--orange-border); transform: translateY(-1px); }
.sibling-link .arrow { margin-left: auto; font-weight: 700; }
.hub-backlink { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-muted); padding: 0.5rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius-sm); transition: color 0.15s, border-color 0.15s; margin-bottom: 1rem; }
.hub-backlink:hover { color: var(--orange-ink); border-color: var(--orange-border); }

/* ── split hero + the config-file "window" that fills its second column ─────────────────────────
   Lifted from the pages 2026-08-25. These rules lived INLINE on every settings-explained page that
   used them; main.css carried only the three descendant tweaks below and none of the component.
   ⚠ The pages that still inline their own copy override this harmlessly (inline wins at equal
   specificity), so they can shed it one at a time with no flag day.
   ⛔ .ref-hero-split is a 2-COLUMN GRID — a page that adds the class without a second child gets a
   hero with an empty half. The second child is .ref-hero-panel. */
.ref-hero.ref-hero-split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 2.6rem; align-items: center; max-width: none; margin: 0; padding: 2.3rem 2.5vw 1.2rem; text-align: left; }
.ref-hero-split .ref-hero-inner { max-width: none; margin: 0; }
.ref-hero-split .ref-breadcrumb { justify-content: flex-start; }
/* ⭐ BREADCRUMB = ITS OWN ROW, TOP-LEFT, ABOVE BOTH HERO COLUMNS, LINKS IN THE SITE BLUE
   (Jason, 2026-09-24, tried on /icarus-food/ first). CSS only, on purpose: the crumb stays
   inside .ref-hero-inner on every split-hero page and in every generator that emits one, and
   this lifts it out, so there is no markup to keep in step. The hero's own top padding makes
   the room. guide.css positions .ref-hero-inner, which would anchor the crumb to the COPY
   column, so a split hero releases that and anchors to .ref-hero instead.
   Desktop only: at <=900px the hero is one column and the crumb is already its first row. */
@media (min-width: 901px) {
  .ref-hero.ref-hero-split:has(.ref-breadcrumb) { position: relative; padding-top: 4.2rem; }
  .ref-hero-split .ref-hero-inner { position: static; }
  .ref-hero-split .ref-breadcrumb { position: absolute; top: 1.2rem; left: 2.5vw; right: 2.5vw; margin: 0; }
  /* 🪤 Under the game-hosting pill the hero's top padding is zeroed (measured 0px on every page
     that shows #gog-hostband), which left the lifted crumb sitting ON the badge and h1. The pill
     already spaces the top, so the crumb tucks up and the hero keeps just enough room for it.
     !important because the zeroing outranks a class selector. */
  #gog-hostband ~ .ref-hero.ref-hero-split:has(.ref-breadcrumb) { padding-top: 3rem !important; }
  #gog-hostband ~ .ref-hero-split .ref-breadcrumb { top: 0.55rem; }
}
/* `body` outranks the equal-weight `.breadcrumb a` / `.ref-breadcrumb a` rules in guide.css and
   palworld-boss.css, which load after this file. */
body .ref-breadcrumb a, body .breadcrumb a { color: var(--blue); }
body .ref-breadcrumb a:hover, body .breadcrumb a:hover { color: var(--blue); text-decoration: underline; }
.ref-hero-split .ref-hero-badge { margin-bottom: 1rem; }
.ref-hero-split h1 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); margin-bottom: 0.8rem; }
.ref-hero-split .lede { font-size: 0.98rem; }
/* THE VERIFIED STAMP. One definition for every page (moved from guide.css 2026-09-17, when 37 pages
   were found carrying a pasted copy of it, so a shape fix had to be made 38 times). */
/* A pill while the stamp is one line, a rounded box when a page puts more in it. A 100px radius
   turned the long ones into ellipses around a paragraph (81 pages, 2026-09-17). 1.6em is at least
   half a one-line stamp's height, so short stamps render exactly as before. */
.ref-verified { display: inline-flex; align-items: flex-start; gap: 7px; margin-top: 1.1rem; font-size: 0.78rem; color: var(--text-muted); background: var(--bg-card); border: 1px solid var(--border); border-radius: 1.6em; padding: 0.3rem 0.9rem; }
.ref-verified .dot { flex: none; margin-top: calc((1lh - 7px) / 2); width: 7px; height: 7px; border-radius: 50%; background:var(--verified-dot,#7ecfa0); }
.ref-verified strong { color: var(--text); font-weight: 600; }
/* The stamp stays ONE line; whatever it used to cram in (sources, builds, caveats) lives in this
   paragraph near the foot of the page, linked from the stamp as "how we checked". */
.how-checked { max-width: 74ch; margin: 1.6rem 0 0; font-size: 0.86rem; line-height: 1.6; color: var(--text-muted); scroll-margin-top: 80px; }
.page-2col.full-70 .sg-body > .how-checked { max-width: 74ch; }
.how-checked strong { color: var(--text); font-weight: 600; }
.how-checked a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
#new-in-1-0 { scroll-margin-top: 80px; }
.ref-verified a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* The same freshness line as plain text, no pill (his call 2026-10-03: the pill was decoration). */
.ref-verified.is-text { display: block; background: none; border: 0; border-radius: 0; padding: 0; margin-bottom: 0; color: var(--text-muted); }
.ref-hero-split .ref-verified { margin-top: 1rem; }
/* The panel is STRUCTURAL: .ref-hero-split with no panel would render a hero with an empty
   half, so it falls back to a plain block instead. */
.ref-hero-split:not(:has(> .ref-hero-panel)) { display: block; }
/* Compound on purpose: guide.css loads AFTER main.css and its .ref-hero::before glow has
   the same specificity, so a bare .ref-hero-split::before here would lose to it. */
.ref-hero.ref-hero-split::before { display: none; }
/* ── The COPY/PHOTO split-hero model (effigy pages, ARK island caves, Icarus missions):
   .ref-hero-copy + .ref-hero-photo INSIDE .ref-hero-inner; the INNER is the grid.
   ⛔ :has(> .ref-hero-copy) is LOAD-BEARING — it is what keeps this from double-columning
   the site model's plain .ref-hero-inner (moved here from effigy.css 2026-08-28, where the
   full history of that bite lives). */
.ref-hero-split .ref-hero-inner:has(> .ref-hero-copy) { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; max-width: none; margin: 0 auto; }
.ref-hero-split .ref-hero-copy { min-width: 0; }
.ref-hero-photo { margin: 0; }
.ref-hero-photo img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 22px 48px -12px rgba(0,0,0,.32), 0 6px 14px rgba(0,0,0,.14); }
.ref-hero-photo figcaption { margin-top: .7rem; font-size: .85rem; color: var(--blue); font-style: italic; }
/* mission pages: the locations legend lives right under the hero map, split by a rule */
.hero-locs { margin-top: .85rem; padding-top: .85rem; border-top: 1px solid var(--border); }
.hero-locs table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.hero-locs th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); padding: 0 .6rem .35rem 0; }
.hero-locs td { padding: .3rem .6rem .3rem 0; border-top: 1px solid var(--border); color: var(--text); vertical-align: top; }
.hero-locs td:first-child { font-weight: 700; width: 2ch; }
@media (max-width: 760px) { .ref-hero-split .ref-hero-inner:has(> .ref-hero-copy) { grid-template-columns: 1fr; gap: 1.4rem; } }
/* ⭐ PHONES: THE ANSWER BEFORE THE PHOTO (2026-11-09; Jason that day: "we need to make sure the answers are at the top
   of the pages"). At ≤760 the photo stacks under the copy, so an answer that FOLLOWS a photo hero started under the
   first screen at 390×844 (measured: G2 disks 886 px, Lamball effigy 885). On exactly those pages body turns into a
   flex column, the hero and its inner box into display:contents, and the photo takes order 1: copy → answer → photo →
   the rest. Nothing is cut and desktop is untouched (this media query only).
   Scope = a photo hero whose NEXT sibling is the answer: .answer-box (G2, effigies) or .ref-wrap (the ARK spawn
   builder). The 2026-11-09 sweep matched 161 pages and nothing else; a page whose box sits inside .page-2col
   (G2 briefcase) is out of reach of this and takes the answer in its lede instead.
   ⚠ padding:inherit hands the hero's own padding to the copy and photo: a display:contents box has none, and one
     effigy hero runs padding-top 0, so a literal moved its H1. ⚠ :has() cannot nest, so the body rule spells the
     condition out with two :has. ⚠ A flex item is its own formatting context: .page-2col's edge margins now sit
     inside its box (same gaps on screen, measured). */
@media (max-width: 760px) {
  body:has(> .ref-hero-split > .ref-hero-inner > .ref-hero-photo):has(> .ref-hero-split + :is(.answer-box, .ref-wrap)) { display: flex; flex-direction: column; }
  .ref-hero-split:has(> .ref-hero-inner > .ref-hero-photo):has(+ :is(.answer-box, .ref-wrap)) { display: contents; }
  .ref-hero-split:has(> .ref-hero-inner > .ref-hero-photo):has(+ :is(.answer-box, .ref-wrap)) > .ref-hero-inner { display: contents; padding: inherit; }
  .ref-hero-split:has(> .ref-hero-inner > .ref-hero-photo):has(+ :is(.answer-box, .ref-wrap)) > .ref-hero-inner > .ref-hero-copy { padding: inherit; }
  .ref-hero-split:has(> .ref-hero-inner > .ref-hero-photo):has(+ :is(.answer-box, .ref-wrap)) > .ref-hero-inner > .ref-hero-photo { order: 1; padding: 0 0 1.4rem; padding-left: inherit; padding-right: inherit; }
  .ref-hero-split:has(> .ref-hero-inner > .ref-hero-photo):has(+ .ref-wrap) > .ref-hero-inner > .ref-hero-photo { padding-top: 1.4rem; }
  .ref-hero-split:has(> .ref-hero-inner > .ref-hero-photo):has(+ :is(.answer-box, .ref-wrap)) + * ~ * { order: 2; }
  .ref-hero-split:has(> .ref-hero-inner > .ref-hero-photo):has(+ :is(.answer-box, .ref-wrap)) ~ :is(.answer-box, .ref-wrap, .more-tools) { width: 100%; }
}
.ref-hero-panel { min-width: 0; }
/* .hero-facts — the at-a-glance card that fills the panel. Lived in guide.css, which six of the
   setup pages never load, so the card shipped unstyled there. Hero vocabulary belongs in the base. */
.hero-facts { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 15px 18px 17px; box-shadow: 0 14px 34px -16px rgba(0,0,0,.22); }
.hero-facts-h { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--orange-ink); margin-bottom: 4px; }
.hero-facts ul { list-style: none; margin: 0; padding: 0; }
.hero-facts li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 0.92rem; color: var(--text-soft); line-height: 1.45; }
.hero-facts li b { color: var(--text); font-weight: 700; }
.hero-facts li > span:last-child { text-align: right; }
.hero-facts .hf-k { color: var(--orange-ink); font-weight: 700; flex: none; }
.hero-cfg { background: var(--win-bg, #14181d); border-radius: 14px; box-shadow: 0 22px 48px -12px rgba(0,0,0,.32), 0 6px 14px rgba(0,0,0,.14); overflow: hidden; }
.hero-cfg-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--win-bar, #1b2026); border-bottom: 1px solid var(--win-bar-line, #262c33); }
.hero-cfg-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--win-dot, #3a424b); }
.hero-cfg-bar i:nth-child(1) { background: var(--win-dot-red, #e0655a); }
.hero-cfg-bar i:nth-child(2) { background: var(--win-dot-amber, #e0b23f); }
.hero-cfg-bar i:nth-child(3) { background: var(--verified-dot, #7ecfa0); }
.hero-cfg-bar span { margin-left: 8px; font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 0.72rem; color: var(--win-title, #8b96a3); letter-spacing: 0.04em; }
.hero-cfg pre { margin: 0; padding: 16px 18px 18px; font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 0.78rem; line-height: 1.75; color: var(--code-muted, #aeb9c6); overflow-x: auto; }
.hero-cfg .k { color: var(--code-key, #f0a35c); }
.hero-cfg .v { color: var(--code-value, #7ecfa0); }
.hero-cfg .c { color: var(--code-comment, #5d6874); font-style: italic; }
.hero-cfg-caption { font-size: 0.8rem; color: var(--blue); margin-top: 0.7rem; text-align: center; }
@media (max-width: 900px) { .ref-hero.ref-hero-split { grid-template-columns: minmax(0,1fr); gap: 1.6rem; } }
.ref-hero-split .breadcrumb { max-width: none; margin: 0 0 0.9rem; padding: 0; }
.ref-hero-split .hero-lede { max-width: none; margin-bottom: 1.1rem; }
.ref-hero-split .hero-meta { margin-top: 0.9rem; }
/* ⭐ A PHOTO HERO WITH A META STRIP: the copy column fills the photo column's height (Jason,
   2026-09-25). On the Icarus mission pages the map plus its in-game shot runs far taller than the
   copy, and top-aligning (guide.css) left a screen of dead space under the Tier/Region strip. Now
   the breadcrumb and badge sit at the top, the H1 and lede in the middle of what is left, and the
   strip on the bottom edge, level with the photo column. The two auto margins split the free space
   evenly; with none to split (the stacked phone layout, or copy taller than its photo) they
   resolve to 0 and the column reads exactly as before. Same header shape on the Icarus bosses,
   the HumanitZ quests and the ARK cave pages, so they get it too.
   ⚠ The badge opts out of the column's stretch, or the pill spans the whole column. */
.ref-hero-split .ref-hero-copy:has(> .hero-meta) { align-self: stretch; display: flex; flex-direction: column; }
.ref-hero-split .ref-hero-copy:has(> .hero-meta) > :is(.hero-badge, .ref-hero-badge) { align-self: flex-start; }
.ref-hero-split .ref-hero-copy:has(> .hero-meta) > h1,
.ref-hero-split .ref-hero-copy:has(> .hero-meta) > .hero-meta { margin-top: auto; }
.page-2col.full-70 .section { max-width: none; margin: 0 0 2.4rem; padding: 0; }
.page-2col.full-70 .section:last-child { margin-bottom: 0; }
.page-2col.full-70 .section-sub, .page-2col.full-70 .cave-detail p, .page-2col.full-70 .cave-detail ul, .page-2col.full-70 .feature-callout p, .page-2col.full-70 .faq-body { max-width: 74ch; }

/* ── cave media queries ── */
/* ⛔⛔ THE ROOT RAMP WAS DUPLICATED HERE and this copy WON, being ~1,470 lines later in the
   file. It arrived when the cave sheet was folded into main.css. Both copies happened to hold
   the same three numbers, so it never showed — including on 2026-08-24, when the ramp at the
   top was "dropped one step" and this copy silently kept serving the old one. It only surfaced
   on 2026-09-08: the top ramp was moved to AcidNodes' steps, the CSS deployed, and the live
   root still measured 24px. ⭐ THE RAMP LIVES AT THE TOP OF THIS FILE, ONCE. Never a second
   copy — a duplicate that agrees with the original is invisible right up until it doesn't. */
@media (min-width: 720px) { .cave-answer { grid-template-columns: 1.05fr 0.95fr; align-items: start; } }
@media (max-width: 768px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .boss-grid { grid-template-columns: 1fr; }
  .tip-list { grid-template-columns: 1fr; }
  .loot-grid { grid-template-columns: 1fr; }
  .cave-table { font-size: 0.82rem; }
  .cave-table th, .cave-table td { padding: 0.55rem 0.7rem; }
  /* ── THE ARK ARTIFACT TABLES AT A REAL PHONE WIDTH (2026-09-30) ── desktop is untouched by all three.
     · A nowrap header is a column floor. "Entrance Coords" held its column 30px wider than the
       coordinates under it, and a merged header like "Difficulty & Best Mount" would have held it
       ~70px wider. Headers wrap here and only here.
     · The thumb stacks above the cave name: side by side, thumb + gap + name set the Cave column's floor.
     · A difficulty pill that leads a merged cell ("Hard Baryonyx, Megatherium") gets its own line,
       or the first word of the mount rides beside the pill and the rest wraps under it. */
  .cave-table th { white-space: normal; }
  .cave-table td.cave-name .cave-cell { flex-wrap: wrap; row-gap: 0.35rem; }
  .cave-table td > .diff:first-child { display: block; width: max-content; margin-bottom: 0.3rem; }

  .cave-detail-coords { margin-left: 0; white-space: normal; }
  .hero { padding: 1rem 1.2rem 2rem; }
  .stats, .section, .hero-image { padding: 0 1.2rem; }
  .breadcrumb { padding: 1rem 1.2rem; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  /* 0.4rem, down from 0.55rem (2026-09-30): at a real 360-390px phone the ARK artifact tables
     have ~330px of box, and 0.55rem was 70px of it across four columns. */
  .cave-table th, .cave-table td { padding: 0.5rem 0.4rem; font-size: 0.78rem; }
}

/* ── JUMP NAV + FIELD-NOTES CREDIT — lifted out of per-page inline CSS 2026-08-24 ──
   These two lived as identical inline copies on 37 and 24 pages respectively, so a fix
   meant editing 37 files. They are components; they belong here.

   ⭐ CHIP PADDING IS ABSOLUTE px ON PURPOSE, copied from cave's .jump-chip. The inline
   version used 0.35rem/0.85rem, and because the root font ramps to 24px on desktop that
   resolved to 8.4px x 20.4px — roughly double. Jason: "the pills are fucking huge and take
   up a lot of space… the pills are pills, not the whole damn bottle." A pill should not
   grow with the body text; the LABEL inside it already does.

   ⭐ THE FIELD-NOTES BLOCK IS NOT A CARD. It was background + border + radius + 1rem of
   padding, which is what he meant by "putting it in the box makes it all bigger". It keeps
   the blue left rule — that is the signal — and loses the box. */
.ref-jump { max-width: 1100px; margin: 0.5rem auto 2rem; padding: 0 2rem; }
.ref-jump-inner { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.85rem 1rem; }
.ref-jump-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.55rem; }
.ref-jump-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ref-jump-chip { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 100px; color: var(--text-muted); font-size: 0.78rem; font-weight: 600; padding: 5px 11px; transition: all 0.15s; white-space: nowrap; }
.ref-jump-chip:hover { color: var(--orange-ink); border-color: var(--orange-border); background: var(--orange-dim); }

.ref-credit { max-width: 1100px; margin: 0 auto 2rem; padding: 0 2rem; }
.ref-credit-inner { border-left: 3px solid var(--blue); padding: 0.15rem 0 0.15rem 0.9rem; font-size: 0.92rem; color: var(--text-muted); line-height: 1.6; }
.ref-credit-inner strong { color: var(--text); }
.ref-credit-inner a { color: var(--orange-ink); }
.ref-credit-inner a:hover { text-decoration: underline; }

/* ── Components lifted out of per-page inline CSS, 2026-08-24 ──
   Each was byte-identical on every page carrying it, no page used the class without it,
   and main.css did not already define it — so this is a pure move, not a restyle.
   ⛔ The inline copies are DELETED in the same pass. An inline <style> sits after the
   <link> at equal specificity, so leaving them would keep the old values and make this
   a no-op. ── */

/* .combo-call — was inline on 288 pages */
.combo-call .recipe .arrow { color:var(--orange,#f08000);margin:0 .3em; }
.combo-call .recipe { font-family:'Manrope',sans-serif;font-weight:800;font-size:1.1rem;color:var(--text,#f0f4f8);line-height:1.5; }
.combo-call .tag { display:inline-block;font-size:.74rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--blue);margin-bottom:.35rem; }
.combo-call { background:linear-gradient(135deg,color-mix(in srgb, var(--blue) 10%, transparent),rgba(240,128,0,.05));border:1px solid var(--blue);border-radius:12px;padding:1rem 1.2rem;margin:.6rem 0; }

/* .type-tag — was inline on 288 pages */
.type-tag { display:inline-block;font-size:.74rem;font-weight:700;padding:.12rem .5rem;border-radius:999px; }
.type-tag.combo { color:var(--blue);background:color-mix(in srgb, var(--blue) 12%, transparent); }
.type-tag.self { color:var(--orange,#f08000);background:rgba(240,128,0,.12); }
.type-tag.std { color:var(--text-muted,#8899a6);background:rgba(255,255,255,.06); }

/* .db-adv — was inline on 180 pages */
.db-adv { margin-top:1.3rem;border:1px solid var(--orange-border,rgba(240,128,0,.35));border-radius:12px;background:rgba(240,128,0,.03); }
.db-adv>summary { cursor:pointer;font-family:'Manrope',sans-serif;font-weight:800;font-size:.95rem;color:var(--orange,#f08000);padding:.9rem 1.1rem;list-style:none; }
.db-adv>summary::-webkit-details-marker { display:none; }
.db-adv>summary::before { content:'▸ '; }
.db-adv[open]>summary::before { content:'▾ '; }

/* .az-btn — was inline on 180 pages */
.az-btn { font-family:'Manrope',sans-serif;font-weight:700;font-size:.82rem;min-width:1.9rem;padding:.32rem .42rem;border-radius:7px;border:1px solid var(--border,rgba(255,255,255,.15));background:var(--bg,#1f2933);color:var(--text,#f0f4f8);cursor:pointer; }
.az-btn.on { background:var(--orange,#f08000);color:var(--cta-ink,#1a1a1a);border-color:var(--orange,#f08000); }
.az-btn:disabled { opacity:.3;cursor:default; }
.az-btn:not(:disabled):hover { border-color:var(--orange,#f08000); }

/* .pal-link — was inline on 292 pages */
.pal-link { color:var(--blue);text-decoration:underline;text-underline-offset:2px;font-weight:600; }
.pal-link:hover { color:var(--link-hover-ink); }

/* .fact-pill — was inline on 288 pages */
.fact-pill b { color:var(--text,#f0f4f8); }
.fact-pill { font-family:'Manrope',sans-serif;font-size:.86rem;font-weight:600;color:var(--text-muted,#8899a6);background:var(--bg-card,#243040);border:1px solid var(--border,rgba(255,255,255,.1));border-radius:999px;padding:.4rem .85rem; }

/* .calc-deep — was inline on 288 pages */
.calc-deep { display:inline-flex;align-items:center;gap:.4rem;margin-top:.5rem;color:var(--blue);font-weight:700;font-family:'Manrope',sans-serif;font-size:.92rem; }
.calc-deep:hover { color:var(--link-hover-ink); }

/* .pal-chip — was inline on 288 pages */
.pal-chip { font-size:.92rem;font-weight:700;font-family:'Manrope',sans-serif;padding:.5rem 1rem;border:1.5px solid var(--orange-border,rgba(240,128,0,.4));border-radius:999px;color:var(--orange,#f08000);background:rgba(240,128,0,.07);transition:background .15s,color .15s,transform .15s;display:inline-flex;align-items:center; }
.pal-chip:hover { background:var(--orange,#f08000);color:var(--cta-ink,#1a1a1a);transform:translateY(-1px); }

/* .pal-nav-back — was inline on 288 pages */
.pal-nav-back { color:var(--blue);text-decoration:none;font-family:'Manrope',sans-serif;font-weight:700;font-size:.95rem;white-space:nowrap; }
.pal-nav-back:hover { text-decoration:underline; }

/* .db-seg — was inline on 180 pages */
.db-seg button { background:transparent;color:var(--text-muted,#8899a6);border:0;padding:.4rem 1.1rem;font-family:'Manrope',sans-serif;font-weight:700;font-size:.85rem;cursor:pointer; }
.db-seg button.on { background:var(--blue);color:var(--on-blue-fill,#04101f); }
.db-seg { display:inline-flex;border:1px solid var(--blue-border);border-radius:999px;overflow:hidden; }

/* .db-fld — was inline on 180 pages */
.db-fld { display:flex;flex-direction:column;gap:.3rem;min-width:9rem; }
.db-fld>span small { font-weight:400;color:var(--text-muted,#8899a6); }
.db-fld>span { font-family:'Manrope',sans-serif;font-weight:700;font-size:.82rem;color:var(--text,#f0f4f8); }

/* .dino-chip — was inline on 180 pages */
.dino-chip { font-size:.92rem;font-weight:700;font-family:'Manrope',sans-serif;padding:.5rem 1rem;border:1.5px solid var(--orange-border,rgba(240,128,0,.4));border-radius:999px;color:var(--orange,#f08000);background:rgba(240,128,0,.07);transition:background .15s,color .15s,transform .15s; }
.dino-chip:hover { background:var(--orange,#f08000);color:var(--cta-ink,#1a1a1a);transform:translateY(-1px); }

/* .dino-link — was inline on 180 pages */
.dino-link { color:var(--blue);text-decoration:underline;text-underline-offset:2px;font-weight:600; }
.dino-link:hover { color:var(--link-hover-ink); }

/* .ark-hub-row — was inline on 180 pages */
.ark-hub-row label { font-family:'Manrope',sans-serif;font-weight:700;color:var(--text,#f0f4f8); }
.ark-hub-row { display:flex;align-items:center;gap:.8rem;flex-wrap:wrap; }

/* .ark-hub-mode — was inline on 180 pages */
.ark-hub-mode { background:transparent;color:var(--text-muted,#8899a6);border:0;padding:.45rem 1.1rem;font-family:'Manrope',sans-serif;font-weight:700;font-size:.9rem;cursor:pointer;transition:background .15s,color .15s; }
.ark-hub-mode.on { background:var(--orange,#f08000);color:var(--cta-ink,#1a1a1a); }

/* .db-zone — was inline on 180 pages */
.db-zone { font-family:'Manrope',sans-serif;font-weight:800;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--blue);margin:1.6rem 0 .7rem;display:flex;align-items:center;gap:.6rem; }
.db-zone::after { content:'';flex:1;height:1px;background:var(--blue-border); }

/* .db-ans-title — was inline on 180 pages */
.db-ans-title em { font-style:normal;color:var(--orange,#f08000); }
.db-ans-title { font-family:'Manrope',sans-serif;font-weight:800;font-size:1.3rem;color:var(--text,#f0f4f8); }

/* .db-bigcopy — was inline on 180 pages */
.db-bigcopy { background:var(--orange,#f08000);color:var(--cta-ink,#1a1a1a);border:0;border-radius:11px;font-family:'Manrope',sans-serif;font-weight:800;font-size:.95rem;padding:0 1.5rem;cursor:pointer;white-space:nowrap; }
.db-bigcopy.ok { background:var(--ok-fill,#7CE38B); }

/* .db-sec-h — was inline on 180 pages */
.db-sec-h h3 { font-family:'Manrope',sans-serif;font-weight:800;font-size:1.05rem;color:var(--text,#f0f4f8);margin:0; }
.db-sec-h { display:flex;align-items:center;gap:.55rem;margin-bottom:.8rem; }

/* .db-mut-rm — was inline on 180 pages */
.db-mut-rm,.db-trait-rm { background:rgba(255,255,255,.06);color:var(--text-muted,#8899a6);border:0;border-radius:50%;width:1.6rem;height:1.6rem;cursor:pointer;flex-shrink:0; }
.db-mut-rm:hover,.db-trait-rm:hover { background:rgba(255,90,90,.2);color:var(--danger-ink,#ff8888); }

/* .db-trait-side — was inline on 180 pages */
.db-trait-side label { font-family:'Manrope',sans-serif;font-weight:700;font-size:.8rem;color:var(--text,#f0f4f8);display:flex;align-items:center;gap:.3rem; }
.db-trait-side { display:flex;align-items:center;gap:.5rem;flex-shrink:0; }

/* .db-gen — was inline on 180 pages */
.db-gen { display:block;width:100%;margin-top:1.5rem;background:var(--orange,#f08000);color:var(--cta-ink,#1a1a1a);border:0;border-radius:12px;font-family:'Manrope',sans-serif;font-weight:800;font-size:1.05rem;padding:.85rem;cursor:pointer; }
.db-gen:hover { background:var(--orange-hover,#ff9420); }

/* .db-out — was inline on 180 pages */
.db-out { margin-top:1.1rem; }
/* the command box leads the builder card since 2026-11-09 (answer first): no gap over it, the card's padding is the gap */
.db-builder > .db-out:first-child { margin-top:0; }
.db-out.shown { background:var(--code-bg,#0c1320);border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:.7rem;display:flex;flex-direction:column;gap:.4rem; }

/* .db-line-copy — was inline on 180 pages */
.db-line-copy { flex-shrink:0;background:rgba(255,255,255,.08);color:var(--text,#f0f4f8);border:1px solid var(--border,rgba(255,255,255,.15));border-radius:7px;font-family:'Manrope',sans-serif;font-weight:700;font-size:.78rem;padding:.3rem .65rem;cursor:pointer; }
.db-line-copy.ok { background:var(--ok-fill,#7CE38B);color:var(--on-ok,#0c1320); }

/* .db-copyall — was inline on 180 pages */
.db-copyall { background:var(--orange,#f08000);color:var(--cta-ink,#1a1a1a);border:0;border-radius:8px;font-family:'Manrope',sans-serif;font-weight:700;padding:.5rem 1.1rem;cursor:pointer; }
.db-copyall.ok { background:var(--ok-fill,#7CE38B); }

/* .db-lvlnote — was inline on 180 pages */
.db-lvlnote code { background:rgba(255,255,255,.06);padding:0 .25rem;border-radius:4px; }
.db-lvlnote { flex-basis:100%;font-size:.8rem;color:var(--text-muted,#8899a6);margin-top:-.2rem; }

/* .db-stat-head — was inline on 180 pages */
.db-stat-head { font-family:'Manrope',sans-serif;font-weight:800;font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted,#8899a6);padding:.2rem 0; }
.db-stat-head,.db-stat-row { display:grid;grid-template-columns:1fr 6rem;gap:.5rem;align-items:center;max-width:22rem; }

/* .db-stat-row — was inline on 180 pages */
.db-stat-row .db-input { width:100%; }
.db-stat-row { padding:.2rem 0; }

/* .wicon — was inline on 292 pages */
.wicon { display:block; }

/* .pal-ico-lg — was inline on 288 pages */
.pal-ico-lg { width:2.4rem;height:2.4rem;vertical-align:-.7rem;margin-right:.5rem;border-radius:8px;object-fit:cover; }

/* .facts-strip — was inline on 288 pages */
.facts-strip { display:flex;flex-wrap:wrap;gap:.6rem;margin:.4rem 0 0; }

/* .pal-chips — was inline on 288 pages */
.pal-chips { display:flex;flex-wrap:wrap;gap:.55rem;margin:.4rem 0 0; }

/* .pal-nav — was inline on 288 pages */
.pal-nav { display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;max-width:760px;margin:1.1rem auto 0;padding:.7rem 1rem;background:var(--bg-card,#243040);border:1px solid var(--border,rgba(255,255,255,.08));border-radius:12px; }

/* .pal-nav-label — was inline on 288 pages */
.pal-nav-label { font-family:'Manrope',sans-serif;font-weight:700;font-size:.95rem;color:var(--text,#f0f4f8); }

/* .pal-nav-jump — was inline on 288 pages */
.pal-nav-jump { display:flex;align-items:center;gap:.7rem;flex-wrap:wrap; }

/* .pal-jump — was inline on 288 pages */
.pal-jump { font-family:'Manrope',sans-serif;font-size:.92rem;padding:.45rem .6rem;border-radius:8px;border:1px solid var(--orange-border,rgba(240,128,0,.4));background:var(--bg,#1f2933);color:var(--text,#f0f4f8);max-width:14rem;cursor:pointer; }

/* .hub-search — was inline on 288 pages */
.hub-search { width:100%;max-width:420px;font-size:1rem;padding:.6rem .9rem;border-radius:9px;border:1px solid var(--border,rgba(255,255,255,.15));background:var(--bg,#1f2933);color:var(--text,#f0f4f8);font-family:'Manrope',sans-serif;margin:.2rem 0 1rem; }

/* .picker-group — was inline on 182 pages */
.picker-group { font-family:'Manrope',sans-serif;font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--blue,var(--blue));padding:.45rem .6rem .2rem;cursor:default; }

/* .az-bar — was inline on 180 pages */
.az-bar { display:flex;flex-wrap:wrap;gap:.3rem;margin:0 0 .8rem; }

/* .dino-chips — was inline on 180 pages */
.dino-chips { display:flex;flex-wrap:wrap;gap:.55rem;margin:.4rem 0 0; }

/* .ark-hub — was inline on 180 pages */
.ark-hub { background:var(--bg-card,#243040);border:1px solid var(--orange-border,rgba(240,128,0,.35));border-radius:12px;padding:1rem 1.15rem;margin:0 0 1.1rem; }

/* .ark-hub-lvl — was inline on 180 pages */
.ark-hub-lvl { width:6rem;font-size:1rem;padding:.45rem .6rem;border-radius:8px;border:1px solid var(--border,rgba(255,255,255,.15));background:var(--bg,#1f2933);color:var(--text,#f0f4f8);font-family:'Manrope',sans-serif; }

/* .ark-hub-modes — was inline on 180 pages */
.ark-hub-modes { display:inline-flex;border:1px solid var(--orange-border,rgba(240,128,0,.4));border-radius:999px;overflow:hidden; }

/* .ark-hub-result — was inline on 180 pages */
.ark-hub-result { font-family:'Manrope',sans-serif;font-weight:700;font-size:.95rem;color:var(--orange,#f08000);white-space:nowrap; }

/* .ark-hub-note — was inline on 180 pages */
.ark-hub-note { font-size:.86rem;color:var(--text-muted,#8899a6);margin:.7rem 0 0;line-height:1.5; }

/* .pick-sw — was inline on 180 pages */
.pick-sw { width:18px;height:18px;border-radius:4px;border:1px solid rgba(255,255,255,.3);flex-shrink:0; }

/* .db-ans — was inline on 180 pages */
.db-ans { background:linear-gradient(135deg,color-mix(in srgb, var(--blue) 8%, transparent),rgba(240,128,0,.05));border:1px solid var(--blue-border);border-radius:16px;padding:1.4rem 1.5rem; }

/* .db-ans-top — was inline on 180 pages */
.db-ans-top { display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:.9rem; }

/* .db-ans-cmd — was inline on 180 pages */
.db-ans-cmd { display:flex;align-items:stretch;gap:.7rem;flex-wrap:wrap; }

/* .db-ans-code — was inline on 180 pages */
.db-ans-code { flex:1;min-width:60%;font-family:ui-monospace,Menlo,monospace;font-size:1.08rem;background:var(--code-bg,#0c1320);color:var(--terminal-ink,#7CE38B);border:1px solid rgba(255,255,255,.1);border-radius:11px;padding:.9rem 1rem;overflow-x:auto;white-space:nowrap;display:flex;align-items:center; }

/* .db-ans-sub — was inline on 180 pages */
.db-ans-sub { font-size:.9rem;color:var(--text-muted,#8899a6);margin:.8rem 0 0;line-height:1.5; }

/* .db-builder — was inline on 180 pages */
.db-builder { background:var(--bg-card,#243040);border:1px solid var(--border,rgba(255,255,255,.1));border-left:3px solid var(--blue);border-radius:14px;padding:1.3rem 1.4rem; }

/* .db-row — was inline on 180 pages */
.db-row { display:flex;flex-wrap:wrap;gap:.9rem 1.1rem;align-items:flex-end; }

/* .db-row-2 — was inline on 180 pages */
.db-row-2 { margin-top:1rem; }

/* .db-fld-sm — was inline on 180 pages */
.db-fld-sm { min-width:0;width:7rem; }

/* .db-fld-grow — was inline on 180 pages */
.db-fld-grow { flex:1;min-width:14rem; }

/* .db-select — was inline on 180 pages */
.db-select,.db-input { font-size:1rem;padding:.5rem .6rem;border-radius:8px;border:1px solid var(--border,rgba(255,255,255,.15));background:var(--bg,#1f2933);color:var(--text,#f0f4f8);font-family:'Manrope',sans-serif; }

/* .db-select-sm — was inline on 180 pages */
.db-select-sm { font-size:.9rem;padding:.35rem .45rem; }

/* .db-input-xs — was inline on 180 pages */
.db-input-xs { width:4.5rem; }

/* .db-dino-pick — was inline on 180 pages */
.db-dino-pick { min-width:13rem; }

/* .db-check — was inline on 180 pages */
.db-check { display:inline-flex;align-items:center;gap:.4rem;font-family:'Manrope',sans-serif;font-weight:700;font-size:.88rem;color:var(--text,#f0f4f8);cursor:pointer; }

/* .db-check-inline — was inline on 180 pages */
.db-check-inline { white-space:nowrap; }

/* .db-saddle — was inline on 180 pages */
.db-saddle { display:flex;align-items:center;gap:.6rem; }

/* .db-sec — was inline on 180 pages */
.db-sec { margin-top:1.5rem; }

/* .db-sec-ico — was inline on 180 pages */
.db-sec-ico { width:30px;height:30px;border-radius:8px;background:var(--blue-dim);border:1px solid var(--blue-border);display:flex;align-items:center;justify-content:center;font-size:1.05rem; }

/* .db-sec-note — was inline on 180 pages */
.db-sec-note { font-weight:400;font-size:.8rem;color:var(--text-muted,#8899a6); }

/* .db-mut — was inline on 180 pages */
.db-mut { display:flex;flex-direction:column;gap:.5rem; }

/* .db-mut-row — was inline on 180 pages */
.db-mut-row { display:flex;gap:.5rem;align-items:center; }

/* .db-add-pill — was inline on 180 pages */
.db-add-pill { align-self:flex-start;background:transparent;border:1px dashed var(--blue-border);color:var(--blue);border-radius:9px;padding:.4rem .9rem;font-family:'Manrope',sans-serif;font-weight:700;font-size:.85rem;cursor:pointer; }

/* .db-color-grid — was inline on 180 pages */
.db-color-grid { display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:1.2rem; }

/* .db-regions — was inline on 180 pages */
.db-regions { display:flex;flex-direction:column;gap:.45rem; }

/* .db-reg — was inline on 180 pages */
.db-reg { display:flex;align-items:center;gap:.6rem;background:var(--bg,#1f2933);border:1px solid var(--border,rgba(255,255,255,.1));border-radius:8px;padding:.4rem .55rem; }

/* .db-sw — was inline on 180 pages */
.db-sw { width:26px;height:26px;border-radius:6px;border:1px solid rgba(255,255,255,.3);flex-shrink:0; }

/* .db-rn — was inline on 180 pages */
.db-rn { font-family:'Manrope',sans-serif;font-weight:700;font-size:.82rem;color:var(--text,#f0f4f8);width:5.2rem;flex-shrink:0; }

/* .db-reg-pick — was inline on 180 pages */
.db-reg-pick { flex:1;min-width:0; }

/* .db-visual — was inline on 180 pages */
.db-visual { background:var(--code-bg,#0c1320);border:1px solid var(--blue-border);border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:200px;text-align:center;padding:1rem; }

/* .db-silhouette — was inline on 180 pages */
.db-silhouette { font-size:4rem;filter:drop-shadow(0 0 18px color-mix(in srgb, var(--blue) 35%, transparent)); }

/* .db-vlabel — was inline on 180 pages */
.db-vlabel { font-family:'Manrope',sans-serif;font-weight:700;color:var(--blue);margin-top:.4rem;font-size:.92rem; }

/* .db-vsub — was inline on 180 pages */
.db-vsub { font-size:.8rem;color:var(--text-muted,#8899a6);margin-top:.3rem;max-width:30ch;line-height:1.5; }

/* .db-trait-bar — was inline on 180 pages */
.db-trait-bar { display:flex;align-items:center;gap:.7rem; }

/* .db-trait-count — was inline on 180 pages */
.db-trait-count { font-family:'Manrope',sans-serif;font-weight:800;font-size:.85rem;color:var(--blue);background:var(--bg,#1f2933);border-radius:999px;padding:.2rem .6rem;flex-shrink:0; }

/* .db-trait-slots — was inline on 180 pages */
.db-trait-slots { margin:.8rem 0 0;display:flex;flex-direction:column;gap:.5rem; }

/* .db-trait-empty — was inline on 180 pages */
.db-trait-empty { color:var(--text-muted,#8899a6);font-size:.92rem;margin:0; }

/* .db-trait-slot — was inline on 180 pages */
.db-trait-slot { display:flex;gap:.7rem;align-items:flex-start;background:var(--bg,#1f2933);border:1px solid var(--border,rgba(255,255,255,.1));border-radius:9px;padding:.6rem .7rem; }

/* .db-trait-main — was inline on 180 pages */
.db-trait-main { flex:1;min-width:0; }

/* .db-trait-name — was inline on 180 pages */
.db-trait-name { font-family:'Manrope',sans-serif;font-weight:700;color:var(--text,#f0f4f8); }

/* .db-trait-cat — was inline on 180 pages */
.db-trait-cat { font-size:.7rem;font-weight:700;color:var(--blue);background:var(--blue-dim);border-radius:999px;padding:.1rem .5rem;margin-left:.5rem; }

/* .db-trait-eff — was inline on 180 pages */
.db-trait-eff { font-size:.84rem;color:var(--text-muted,#8899a6);margin:.3rem 0 0;line-height:1.45; }

/* .db-out-empty — was inline on 180 pages */
.db-out-empty { color:var(--text-muted,#8899a6);margin:0;padding:.4rem; }

/* .db-ostep — was inline on 180 pages */
.db-ostep { font-size:.78rem;color:var(--text-muted,#8899a6);font-family:'Manrope',sans-serif;font-weight:700;padding:.35rem .2rem .1rem; }

/* .db-oline — was inline on 180 pages */
.db-oline { display:flex;align-items:center;gap:.6rem; }

/* .db-onum — was inline on 180 pages */
.db-onum { flex-shrink:0;width:1.5rem;height:1.5rem;border-radius:50%;background:rgba(240,128,0,.15);color:var(--orange,#f08000);font-family:'Manrope',sans-serif;font-weight:800;font-size:.78rem;display:flex;align-items:center;justify-content:center; }

/* .db-ocode — was inline on 180 pages */
.db-ocode { flex:1;min-width:0;font-family:ui-monospace,Menlo,monospace;font-size:.92rem;color:var(--terminal-ink,#7CE38B);overflow-x:auto;white-space:nowrap;padding:.3rem .2rem; }

/* .db-out-actions — was inline on 180 pages */
.db-out-actions { display:flex;gap:.6rem;margin-top:.9rem; }
.db-out-actions[hidden] { display:none; } /* display:flex beat the hidden attribute: Copy all + Reset showed on the hub with no creature picked */

/* .db-reset — was inline on 180 pages */
.db-reset { background:transparent;color:var(--text-muted,#8899a6);border:1px solid var(--border,rgba(255,255,255,.18));border-radius:8px;font-family:'Manrope',sans-serif;font-weight:700;padding:.5rem 1.1rem;cursor:pointer; }

/* .db-applynote — was inline on 180 pages */
.db-applynote { font-size:.82rem;color:var(--text-muted,#8899a6);margin:.8rem 0 0;line-height:1.55; }

/* .db-adv-body — was inline on 180 pages */
.db-adv-body { padding:0 1.1rem 1.1rem; }

/* .db-adv-intro — was inline on 180 pages */
.db-adv-intro { font-size:.86rem;color:var(--text-muted,#8899a6);line-height:1.6;margin:0 0 1rem; }

/* .db-warn-inline — was inline on 180 pages */
.db-warn-inline { color:var(--warn-ink,#ffb454); }

/* .db-adv-grid — was inline on 180 pages */
.db-adv-grid { display:flex;flex-wrap:wrap;gap:.9rem 1.1rem;align-items:flex-end;margin-bottom:1rem; }

/* .db-stats — was inline on 180 pages */
.db-stats { margin-bottom:1rem; }

/* .db-stat-intro — was inline on 180 pages */
.db-stat-intro { font-size:.82rem;color:var(--text-muted,#8899a6);margin:0 0 .6rem; }

/* .db-hint — was inline on 180 pages */
.db-hint { font-size:.78rem;color:var(--text-muted,#8899a6);margin:.4rem 0 0;line-height:1.5; }

/* .db-mut-unit — was inline on 180 pages */
.db-mut-unit { font-size:.82rem;color:var(--text-muted,#8899a6);font-family:'Manrope',sans-serif;font-weight:700; }

/* .db-stat-n — was inline on 180 pages */
.db-stat-n { font-family:'Manrope',sans-serif;font-weight:700;font-size:.88rem;color:var(--text,#f0f4f8); }

/* .db-adv-out — was inline on 180 pages */
.db-adv-out { display:flex;align-items:stretch;gap:.6rem; }

/* .db-adv-code — was inline on 180 pages */
.db-adv-code { flex:1;min-width:0;font-family:ui-monospace,Menlo,monospace;font-size:.84rem;background:var(--code-bg,#0c1320);color:var(--code-amber,#ffd9a0);border:1px solid var(--orange-border,rgba(240,128,0,.35));border-radius:10px;padding:.7rem .8rem;overflow-x:auto;white-space:nowrap; }

/* ── .gog-host-mini — the generator pages' funnel, under the Copy/Download buttons ──
   Restored 2026-08-24 with the rest of the CTA. Its styles used to live inside footer.js as a
   JS string, which is why they vanished when that block was deleted and why they never scaled
   with the root font (a px value in an injected style block skips the html ramp entirely — the
   documented "footer text is really small" bug). They are CSS now, in rem, in the base sheet. */
.gog-host-mini {
  width: 100%;
  box-sizing: border-box;
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.9rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-sm, 6px);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.gog-host-mini .ghm-tag {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 0.45rem;
}
.gog-host-mini a { color: var(--orange-ink); font-weight: 700; }
.gog-host-mini a:hover { text-decoration: underline; }
.gog-host-mini .ghm-disc { display: block; margin-top: 0.3rem; font-size: 0.74rem; opacity: 0.85; }

/* ── .rail-links — the rail's "On this page" TOC ──
   Moved into the BASE 2026-08-24. It lived in effigy.css and inline on 24 pages, which was fine
   while every rail was hand-authored. footer.js now BUILDS this component on any page that has a
   rail and no TOC, so it can land on a page that loads only main.css — and it did: the injected
   <h3> came out unstyled at 28px on palworld-server-settings-explained, caught by heading-audit
   and by nothing else.
   ⚠ This is the documented trap in its purest form — a page using classes from a stylesheet it
   never loads, with every other gate green. An INJECTED component must be styled in the base. */
.rail-links { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 13px 16px 15px; }
.rail-links h3 { font-family: 'Manrope', sans-serif; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); font-weight: 800; margin: 0 0 6px; }
.rail-links a { display: block; padding: 7px 0; font-size: 0.82rem; font-weight: 600; color: var(--text); text-decoration: none; border-top: 1px solid var(--border); transition: color .15s; }
.rail-links a:first-of-type { border-top: 0; }
.rail-links a:hover { color: var(--orange-ink); }

/* ── .hero-pal-art — a SQUARE subject portrait in the hero's second column ──
   Added 2026-08-24 for the 287 palworld-*-breeding pages, whose subject is one Pal and whose
   artwork is a 512x512 square.
   ⚠ NOT .hero-panel-img. That component is a wide banner using object-fit:cover, which on a
   square portrait crops the Pal's head off. `contain` keeps the whole subject; the box is capped
   by height so a tall panel never balloons the hero.
   The image is decorative here — the h1 already names the Pal — so alt="" is correct and the
   onerror hide matches how the generator treats every other pal icon. */
.hero-pal-art {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  min-height: 0;
}
.hero-pal-art img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: clamp(180px, 13vw, 300px);
  object-fit: contain;
}

/* ChatGPT C28: reusable arcade surface, kicker, action and tag. Both themes use site tokens. */
.arcade-panel {background:var(--bg-card);border:1px solid var(--border);border-radius:12px;overflow:hidden}
.arcade-kicker {display:block;font-size:clamp(14px,.51rem,15px);font-weight:700;letter-spacing:.08em;color:var(--text-soft)}
.arcade-button {display:inline-flex;align-items:center;justify-content:center;gap:18px;background:var(--orange);color:var(--cta-ink)!important;border:1px solid var(--orange-border,var(--orange));padding:10px 18px;border-radius:7px;font-weight:800;white-space:nowrap}
.arcade-tag {display:inline-block;margin-top:14px;padding:3px 9px;background:var(--bg-surface);border-radius:5px;color:var(--text-soft);font-size:clamp(14px,.51rem,15px)}

/* ChatGPT C69: shared crafting-planner blocks. Palette follows the site theme. */
.craft-planner .ref-hero { padding-top: 1rem; padding-bottom: 1rem; }
.craft-planner .ref-hero h1 { font-size: clamp(1.7rem, 3vw, 2.8rem); }
.craft-planner .ref-hero .lede { font-size: 1rem; margin-bottom: 0; }
.craft-planner .ref-hero-panel > h2 { margin: 0 0 .5rem; font: 700 1.3rem 'Manrope', sans-serif; }
html[data-app] .craft-planner #gog-header,
html[data-app] .craft-planner #gog-footer,
html[data-app] .craft-planner .ref-breadcrumb,
html[data-app] .craft-planner .page-aside,
html[data-app] .craft-planner .more-tools { display: none !important; }
html[data-app] .craft-planner .page-2col { grid-template-columns: minmax(0, 1fr); }
.craft-planner .ref-section { padding: 1.2rem 0; }
.craft-planner .ref-section, .craft-planner .craft-result { scroll-margin-top: 5rem; }
.craft-planner .ref-section > h2 { margin: 0 0 .8rem; font-family: 'Manrope', sans-serif; }
.craft-planner #planner-status { font-size: .8rem; color: var(--text-soft); margin: .4rem 0; }
.craft-planner #planner[hidden] { display: none; }
.craft-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .65rem; margin: .65rem 0; }
.craft-planner :where(.ref-hero, .page-2col) label { display: block; font-size: .88rem; color: var(--text); }
.craft-planner :where(.ref-hero, .page-2col) input:not([type=checkbox]), .craft-planner :where(.ref-hero, .page-2col) select { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: .25rem; padding: .55rem .65rem; border: 1px solid var(--border); border-radius: .4rem; background: var(--bg-card); color: var(--text); font: inherit; }
.craft-planner :where(.ref-hero, .page-2col) input[type=checkbox] { width: 1.1rem; height: 1.1rem; accent-color: var(--blue); flex-shrink: 0; }
.craft-planner :where(.ref-hero, .page-2col) button { min-height: 44px; max-width: 100%; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: .4rem; background: var(--bg-card); color: var(--text); font: inherit; font-size: .85rem; cursor: pointer; }
.craft-planner :where(.ref-hero, .page-2col) button:hover, .craft-planner :where(.ref-hero, .page-2col) button[aria-pressed=true] { border-color: var(--blue); background: var(--blue-dim); }
.craft-planner :where(.ref-hero, .page-2col) :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.craft-planner :where(.ref-hero, .page-2col) summary { cursor: pointer; min-height: 44px; padding: .6rem 0; font-size: .9rem; }
.craft-planner :where(.ref-hero, .page-2col) details p, .craft-note { color: var(--text-soft); font-size: .85rem; line-height: 1.5; }
.craft-drawer { border-block: 1px solid var(--border); padding: 0 .15rem; margin: .6rem 0; }
.craft-drawer[open] { padding-bottom: .65rem; }
.craft-result { display: grid; gap: .35rem; padding: 1rem; margin: .75rem 0; background: var(--bg-card); border: 1px solid var(--blue); border-inline-start-width: 4px; border-radius: .55rem; overflow-wrap: anywhere; }
.craft-result > strong { font-size: 1.5rem; line-height: 1.2; }
.craft-result small, .craft-eyebrow { color: var(--text-soft); font-size: .8rem; }
.craft-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: .75rem; margin: .75rem 0; }
.craft-card { min-width: 0; padding: 1rem; border: 1px solid var(--border); background: var(--bg-card); border-radius: .55rem; overflow-wrap: anywhere; }
.craft-card h3, .craft-drawer h3 { font: 700 1.1rem 'Manrope', sans-serif; margin: 0; }
.craft-card p { font-size: .9rem; margin: .6rem 0; }
.craft-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; justify-content: space-between; }
.craft-tag { color: var(--blue); background: var(--blue-dim); padding: .2rem .5rem; border-radius: .35rem; font-size: .75rem; }
.craft-metrics { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin: .75rem 0; font-size: .8rem; color: var(--text-soft); }
.craft-metrics b { display: block; color: var(--text); font-size: 1.15rem; }
.craft-actions, .craft-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .65rem 0; align-items: center; }
.craft-actions label { display: flex; gap: .35rem; align-items: center; min-height: 44px; }
.craft-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .4rem; margin: .65rem 0; }
.craft-picks .craft-pick, .craft-picks button { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--border); border-radius: .4rem; padding: .55rem; background: var(--bg-card); text-align: start; min-height: 44px; }
.craft-picks button { justify-content: space-between; }
.craft-picks small { display: block; font-size: .75rem; color: var(--text-soft); }
.craft-order-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.5fr) auto; gap: .6rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.craft-totals { list-style: none; padding: 0; margin: .6rem 0 0; }
.craft-totals li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; font-size: .9rem; border-bottom: 1px solid var(--border); }
.craft-totals b { font-variant-numeric: tabular-nums; }
/* paste your save (Melvor Idle 2 money table): the box under the hero's answer, the next-to-unlock list, a held card */
.craft-planner :where(.ref-hero, .page-2col) textarea { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: .25rem; padding: .55rem .65rem; border: 1px solid var(--border); border-radius: .4rem; background: var(--bg-card); color: var(--text); font: .8rem/1.4 ui-monospace, Consolas, monospace; resize: vertical; overflow-wrap: anywhere; }
.craft-save { border-top: 1px solid var(--border); padding-top: .6rem; margin-top: .6rem; }
.craft-save p { margin: .4rem 0; }
.craft-save .craft-actions { margin: .4rem 0; }
.craft-planner .craft-save input[type=file], .craft-planner .craft-save [hidden] { display: none; }
.craft-save code { overflow-wrap: anywhere; }
.craft-save-path button { min-height: 36px; padding: .25rem .6rem; }
.craft-save .is-bad { color: var(--text); font-weight: 600; border-inline-start: 3px solid var(--blue); padding-inline-start: .55rem; }
.craft-next { margin: .25rem 0 .6rem; font-size: .88rem; }
.craft-next ol { margin: .3rem 0 0; padding-inline-start: 1.25rem; display: grid; gap: .3rem; }
.craft-card.is-held { border-style: dashed; }
.craft-unmet { font-weight: 600; color: var(--text); }
@media (max-width: 760px) {
  .craft-planner .ref-hero { gap: .5rem; }
  .craft-planner .ref-section { padding: .75rem 0; }
  .craft-planner .ref-section > h2 { font-size: 1.3rem; }
  .craft-order-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .craft-order-row > strong { grid-column: 1 / -1; }
  .craft-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .craft-result { padding: .7rem; }
}
