/* Survival Island — svvisland.com landing page.
 *
 * Brand = the Companion's: deep navy ground, six colours that each mean one
 * thing (gold time/news · green you/go · blue people/voice · purple your
 * collection · orange shop · red alarm only), Kanit for display and Sarabun
 * for reading. Fonts are the program's own woff2 files (SIL Open Font
 * License), self-hosted so the page needs no third-party request.
 */

@font-face { font-family: "Kanit"; font-weight: 600; font-display: swap; src: url("fonts/kanit-600-thai.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Kanit"; font-weight: 600; font-display: swap; src: url("fonts/kanit-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF; }
@font-face { font-family: "Kanit"; font-weight: 700; font-display: swap; src: url("fonts/kanit-700-thai.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Kanit"; font-weight: 700; font-display: swap; src: url("fonts/kanit-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF; }
@font-face { font-family: "Sarabun"; font-weight: 400; font-display: swap; src: url("fonts/sarabun-400-thai.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Sarabun"; font-weight: 400; font-display: swap; src: url("fonts/sarabun-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF; }
@font-face { font-family: "Sarabun"; font-weight: 600; font-display: swap; src: url("fonts/sarabun-600-thai.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Sarabun"; font-weight: 600; font-display: swap; src: url("fonts/sarabun-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF; }

:root {
  color-scheme: dark;
  --bg: #020509;
  --bg-2: #03070e;
  --card: #050a14;
  --card-2: #070e1d;
  --line: #101a2e;
  --line-strong: #1a2843;
  --text: #ecf5ff;
  --muted: #a6b6d6;
  --faint: #8293b9;

  --gold: #cb9d49;
  --green: #40ab7e;
  --blue: #4d94c8;
  --purple: #8c7abf;
  --orange: #c17b51;
  --red: #be5d58;
  /* the same six, lifted for text on the dark ground (all above 7:1) */
  --gold-ink: #e6c27c;
  --green-ink: #74d3a9;
  --blue-ink: #86bfe9;
  --purple-ink: #b8aae6;
  --orange-ink: #e6a47c;

  --display: "Kanit", "Noto Sans Thai", "Leelawadee UI", system-ui, sans-serif;
  --body: "Sarabun", "Noto Sans Thai", "Leelawadee UI", system-ui, sans-serif;

  --r-1: 8px;
  --r-2: 14px;
  --r-3: 22px;
  --wrap: 1180px;
  --gutter: 16px;
  --header-h: 64px;
}

@media (min-width: 720px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:hover { color: #b5d8f3; }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(64, 171, 126, 0.4); color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--card-2); color: var(--text); padding: 8px 14px; border-radius: var(--r-1); }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(2, 5, 9, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(26, 40, 67, 0.6);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 1.125rem; letter-spacing: 0.01em; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand img { width: 38px; height: 38px; }
.nav { display: none; margin-left: auto; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 0.95rem; padding: 8px 12px; border-radius: var(--r-1); }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang { font-family: var(--display); font-weight: 600; font-size: 0.85rem; color: var(--muted); text-decoration: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; line-height: 1; }
.lang:hover { color: var(--text); border-color: #2a3d60; }
.header-actions .btn-sm { display: none; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: var(--r-1); color: var(--text); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--card-2); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(280px, calc(100vw - 2 * var(--gutter))); background: #060c19; border: 1px solid var(--line-strong); border-radius: var(--r-2); padding: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); display: grid; }
.menu-panel a { color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 600; padding: 12px 14px; border-radius: var(--r-1); }
.menu-panel a:hover { background: var(--card-2); }
.menu-panel .menu-cta { margin-top: 6px; background: var(--green); color: #03110b; text-align: center; }
.menu-panel .menu-cta:hover { background: #4cbb8c; }
/* the Download button shows from tablet width; the full menu (6 links) needs 1100 px */
@media (min-width: 720px) { .header-actions .btn-sm { display: inline-flex; } }
@media (min-width: 1100px) {
  .nav { display: flex; }
  .header-actions { margin-left: 8px; }
  .menu { display: none; }
}

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  border-radius: 12px; border: 1px solid transparent;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, #52c495 0%, #3aa074 100%);
  color: #03110b;
  border-color: #5fd0a1;
  box-shadow: 0 10px 30px -8px rgba(64, 171, 126, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { color: #03110b; box-shadow: 0 14px 40px -8px rgba(64, 171, 126, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-ghost {
  background: rgba(77, 148, 200, 0.1);
  color: #e3f0fc;
  border-color: rgba(77, 148, 200, 0.45);
}
.btn-ghost:hover { color: #fff; background: rgba(77, 148, 200, 0.18); border-color: rgba(134, 191, 233, 0.7); }
.btn-sm.btn { min-height: 40px; padding: 8px 16px; font-size: 0.95rem; border-radius: 10px; }

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative;
  isolation: isolate;
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
  min-height: max(660px, min(100svh, 920px));
  display: flex; align-items: center;
  overflow: hidden;
  background:
    radial-gradient(42% 46% at 80% 34%, rgba(203, 157, 73, 0.2), transparent 70%),
    radial-gradient(70% 60% at 10% 105%, rgba(64, 171, 126, 0.2), transparent 65%),
    radial-gradient(50% 40% at 60% 75%, rgba(77, 148, 200, 0.12), transparent 70%),
    linear-gradient(180deg, #02060d 0%, #03091a 38%, #061629 66%, #05141a 86%, #020509 100%);
}
.hero-art { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Narrow screens: the scene keeps its own proportions, anchored so the moon
   sits at 80% of the width, and the moon lifts to the top right corner so it
   never lands behind the title. */
@media (max-width: 959px) {
  .hero-art { container-type: size; }
  .hero-art svg { inset: 0 auto 0 80%; height: 100%; width: calc(100cqh * 16 / 9); max-width: none; transform: translateX(-80.6%); }
  .hero-art .moon { transform: translate(-30px, -175px) scale(0.62); transform-box: fill-box; transform-origin: center; }
  .hero-art .pteros { transform: translate(-60px, -150px); }
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 5, 9, 0.2) 0%, rgba(2, 5, 9, 0.35) 45%, rgba(2, 5, 9, 0.9) 82%, var(--bg) 100%);
}
@media (min-width: 960px) {
  .hero::before {
    background:
      linear-gradient(90deg, rgba(2, 5, 9, 0.88) 0%, rgba(2, 5, 9, 0.6) 34%, rgba(2, 5, 9, 0) 62%),
      linear-gradient(180deg, transparent 70%, var(--bg) 100%);
  }
  /* a real poster or video can be bright, so the veil follows the 640 px text
     column (its left edge is max(gutter, (width - wrap) / 2)), not the width */
  .hero.has-01::before, .hero.has-02::before {
    background:
      linear-gradient(90deg,
        rgba(2, 5, 9, 0.9) 0,
        rgba(2, 5, 9, 0.8) calc(max(var(--gutter), (100% - var(--wrap)) / 2) + 600px),
        rgba(2, 5, 9, 0) calc(max(var(--gutter), (100% - var(--wrap)) / 2) + 940px)),
      linear-gradient(180deg, transparent 70%, var(--bg) 100%);
  }
}
.hero.has-01 .h1-sub, .hero.has-01 .hero-lead, .hero.has-01 .hero-note,
.hero.has-02 .h1-sub, .hero.has-02 .hero-lead, .hero.has-02 .hero-note { text-shadow: 0 1px 14px rgba(2, 5, 9, 0.7); }
.hero-inner { position: relative; padding-block: 56px 72px; }
.hero-copy { max-width: 640px; }
.hero-emblem {
  width: 104px; height: 104px; margin-bottom: 22px;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 28px rgba(203, 157, 73, 0.25));
}
.chip-live {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em;
  color: var(--green-ink);
  background: rgba(64, 171, 126, 0.1);
  border: 1px solid rgba(64, 171, 126, 0.35);
  border-radius: 999px; padding: 6px 14px 6px 12px;
}
.chip-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-ink); box-shadow: 0 0 0 4px rgba(116, 211, 169, 0.15); }
.hero h1 { margin-top: 18px; }
.h1-brand {
  display: block;
  font-weight: 700;
  font-size: clamp(2.9rem, 8.4vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 10%, #cfe4f7 60%, #8fb9da 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 0 transparent;
  filter: drop-shadow(0 6px 26px rgba(0, 0, 0, 0.55));
}
.h1-sub {
  display: block; margin-top: 12px;
  font-weight: 600;
  font-size: clamp(1.3rem, 3.4vw, 1.95rem);
  color: var(--gold-ink);
  line-height: 1.35;
}
.hero-lead { margin-top: 18px; font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: #c7d4ec; max-width: 580px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-cta .btn { flex: 1 1 220px; }
@media (min-width: 560px) { .hero-cta .btn { flex: 0 0 auto; } }
.hero-note { margin-top: 14px; font-size: 0.95rem; color: var(--faint); }
.hero-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  margin: 36px 0 0; padding: 0;
  max-width: 600px;
  background: rgba(26, 40, 67, 0.7);
  border: 1px solid rgba(26, 40, 67, 0.7);
  border-radius: var(--r-2); overflow: hidden;
}
.hero-facts div { background: rgba(4, 9, 18, 0.82); padding: 14px 16px; }
.hero-facts dt { font-size: 0.85rem; color: var(--faint); }
.hero-facts dd { margin: 2px 0 0; font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--text); line-height: 1.3; }
@media (min-width: 720px) { .hero-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* fireflies + far birds drift; nothing moves for reduced motion */
.ff { animation: ff 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ff:nth-child(3n) { animation-duration: 7s; animation-delay: -2s; }
.ff:nth-child(3n+1) { animation-duration: 6s; animation-delay: -4s; }
.ff:nth-child(4n) { animation-delay: -1s; }
@keyframes ff { 0%, 100% { opacity: 0.15; transform: translate(0, 0); } 50% { opacity: 1; transform: translate(6px, -10px); } }
.smoke { animation: smoke 14s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: bottom center; }
@keyframes smoke { from { transform: translateX(0) scale(1); } to { transform: translateX(-24px) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .ff, .smoke { animation: none; } }

/* hero media: poster (slot 02) and looping video (slot 01) cover the drawn
   scene once their files load; the drawn scene is the fallback */
.hero-media { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero-media > div { position: absolute; inset: 0; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
@media (min-width: 960px) { .hero-media img, .hero-media video { object-position: 50% 50%; } }
@media (max-width: 959px) {
  .hero.has-01::before, .hero.has-02::before {
    background: linear-gradient(180deg, rgba(2, 5, 9, 0.55) 0%, rgba(2, 5, 9, 0.62) 45%, rgba(2, 5, 9, 0.92) 82%, var(--bg) 100%);
  }
}
/* A hero file that FAILED to load, in the owner's ?slots view only (html
   .slots-on): a dashed frame round the hero (only when nothing covers the
   drawn scene) + a card naming the missing slot(s). Visitors just see the
   drawn scene. The inline script in <head> puts has-NN / miss-NN on .hero,
   so this needs no :has(); while files are loading nothing extra shows. */
.hero::after {
  content: ""; display: none; position: absolute; z-index: -1; pointer-events: none;
  inset: calc(var(--header-h) + 12px) 12px 12px;
  border: 1.5px dashed rgba(230, 194, 124, 0.3);
  border-radius: var(--r-3);
}
.slots-on .hero.miss-02.miss-01::after, .slots-on .hero.miss-02[data-video="off"]::after { display: block; }
.hero-ph { display: none; }
.slots-on .hero.miss-01 .hero-ph, .slots-on .hero.miss-02 .hero-ph { display: grid; }
.js .hero-ph {
  gap: 12px; margin-top: 28px; max-width: 600px;
  padding: 16px 18px 18px;
  border: 1.5px dashed rgba(230, 194, 124, 0.55); border-radius: var(--r-2);
  background: rgba(3, 8, 16, 0.8);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--muted); font-size: 0.88rem; line-height: 1.45;
}
/* beside the text only where both fit (the same 1100 px as the full menu) */
@media (min-width: 1100px) { .js .hero-ph { position: absolute; right: var(--gutter); bottom: 72px; width: 390px; margin: 0; } }
.hero-ph-head { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--gold-ink); }
.hero-ph-head svg { width: 22px; height: 22px; flex: none; }
.hero-ph-row { display: none; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding-top: 12px; border-top: 1px solid rgba(26, 40, 67, 0.9); }
.hero-ph-row b { display: block; font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--text); }
.hero-ph .ph-no { position: static; margin-top: 2px; }
.hero-ph .ph-size { display: block; font-size: 1.12rem; }
.hero-ph .ph-file { display: inline-block; margin-top: 4px; }
.hero-ph .ph-spec { display: block; margin-top: 4px; }
/* row 01 only when hero.mp4 failed (a video that never starts, on phones or
   with reduced motion, never fails); row 02 only when hero-poster.webp failed */
.hero.miss-01 .hero-ph .is-video, .hero.miss-02 .hero-ph .is-poster { display: grid; }
/* WCAG 2.2.2: a looping background video gets a pause button */
.hero-pause {
  display: none; position: absolute; z-index: 2; right: var(--gutter); bottom: 20px;
  width: 42px; height: 42px; place-items: center; padding: 0; cursor: pointer;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(2, 5, 9, 0.6); color: #fff;
}
.hero-pause:hover { background: rgba(2, 5, 9, 0.85); }
.hero-pause svg { width: 18px; height: 18px; }
.hero-pause .i-play, .hero-pause[aria-pressed="true"] .i-pause { display: none; }
.hero-pause[aria-pressed="true"] .i-play { display: block; }
.hero.has-01 .hero-pause { display: grid; }
@media (prefers-reduced-motion: reduce) { .hero-video, .hero .hero-pause { display: none !important; } }

/* ---------------------------------------------------------------- sections */
.section { position: relative; padding-block: clamp(36px, 5vw, 64px); }
.hero + .section { padding-top: clamp(28px, 4vw, 48px); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
  color: var(--a-ink, var(--gold-ink));
}
/* tracked capitals only in Latin script: spacing breaks Thai clusters apart */
html[lang="en"] .eyebrow { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.88rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head h2 { margin-top: 12px; font-size: clamp(1.9rem, 4.6vw, 2.9rem); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.1rem; }

.c-gold { --a: var(--gold); --a-ink: var(--gold-ink); }
.c-green { --a: var(--green); --a-ink: var(--green-ink); }
.c-blue { --a: var(--blue); --a-ink: var(--blue-ink); }
.c-purple { --a: var(--purple); --a-ink: var(--purple-ink); }
.c-orange { --a: var(--orange); --a-ink: var(--orange-ink); }

/* -------------------------------------------------------------- join steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 680px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step {
  position: relative;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: 26px 24px 26px;
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1;
  background: linear-gradient(180deg, var(--a-ink), color-mix(in srgb, var(--a) 40%, transparent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.25rem; }
.step p { margin-top: 8px; color: var(--muted); font-size: 1rem; }
.step a { font-weight: 600; }
.callout {
  margin-top: 22px;
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(203, 157, 73, 0.07);
  border: 1px solid rgba(203, 157, 73, 0.3);
  border-radius: var(--r-2);
  padding: 16px 18px;
  color: #e9dcc0;
}
.callout svg { width: 22px; height: 22px; flex: none; color: var(--gold-ink); margin-top: 3px; }

/* ----------------------------------------------------------------- servers */
.servers { display: grid; gap: 18px; }
@media (min-width: 900px) { .servers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.server {
  --pad-x: clamp(20px, 3vw, 32px);
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #071022 0%, var(--card) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-3);
  padding: 28px var(--pad-x) 30px;
}
/* the server picture runs edge to edge across the top of the card */
.server .server-media { margin: -28px calc(-1 * var(--pad-x)) 22px; border-radius: 0; --ph-r: 12px; }
.server::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 90%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--a) 26%, transparent), transparent);
  pointer-events: none;
}
.server::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--a), transparent 80%); }
.server-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.server-label { font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--text); }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 600; font-size: 0.85rem;
  padding: 5px 12px; border-radius: 999px;
  color: var(--a-ink); background: color-mix(in srgb, var(--a) 12%, transparent); border: 1px solid color-mix(in srgb, var(--a) 40%, transparent);
}
.server p.desc { position: relative; margin-top: 10px; color: var(--muted); }
.srv-name {
  position: relative;
  margin-top: 18px;
  font-family: var(--display); font-weight: 600; font-size: clamp(1rem, 2.4vw, 1.12rem); line-height: 1.45;
  color: #f3f8ff;
  background: rgba(2, 5, 9, 0.6);
  border: 1px dashed color-mix(in srgb, var(--a) 55%, transparent);
  border-radius: var(--r-2);
  padding: 14px 16px;
  user-select: all; -webkit-user-select: all; cursor: text;
  overflow-wrap: anywhere;
}
.srv-hint { position: relative; margin-top: 8px; font-size: 0.88rem; color: var(--faint); }
.specs { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0 0; }
.specs div { background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); border-radius: var(--r-1); padding: 10px 14px; }
.specs dt { font-size: 0.85rem; color: var(--faint); }
.specs dd { margin: 0; font-family: var(--display); font-weight: 600; color: var(--text); }

.shared {
  margin-top: 18px;
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
}
@media (min-width: 760px) { .shared { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shared > div { background: var(--card); padding: 22px clamp(20px, 3vw, 30px); }
.shared h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.shared h3 svg { width: 20px; height: 20px; color: var(--a-ink); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; }
.tags li {
  font-family: var(--display); font-weight: 600; font-size: 0.95rem;
  padding: 6px 14px; border-radius: 999px;
  color: var(--a-ink); background: color-mix(in srgb, var(--a) 10%, transparent); border: 1px solid color-mix(in srgb, var(--a) 32%, transparent);
}
.shared .foot { margin-top: 12px; color: var(--faint); font-size: 0.95rem; }

/* ---------------------------------------------------------------- features */
.features { display: grid; gap: 16px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1020px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
/* picture on top, then the icon overlapping its lower edge */
.feature .slot { border-radius: 0; --ph-r: 12px; }
.feature-body { position: relative; padding: 0 24px 28px; }
.feature .icon { position: relative; margin-top: -24px; box-shadow: 0 0 0 4px var(--card), 0 0 28px -6px color-mix(in srgb, var(--a) 50%, transparent); }
.feature:hover { border-color: color-mix(in srgb, var(--a) 45%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--a) 6%, var(--card)), var(--card)); transform: translateY(-2px); }
.icon {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 13px;
  color: var(--a-ink);
  background: color-mix(in srgb, var(--a) 12%, var(--card));
  border: 1px solid color-mix(in srgb, var(--a) 36%, transparent);
  box-shadow: 0 0 28px -6px color-mix(in srgb, var(--a) 50%, transparent);
}
.icon svg { width: 24px; height: 24px; }
.feature h3 { margin-top: 18px; font-size: 1.22rem; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 1rem; }
.lang-line { margin-top: 22px; text-align: center; color: var(--faint); }

/* ------------------------------------------------------------------ events */
.events-band {
  position: relative; overflow: hidden;
  border-radius: calc(var(--r-3) + 6px);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(203, 157, 73, 0.14), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(64, 171, 126, 0.14), transparent 60%),
    linear-gradient(180deg, #060e1e, #040912);
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 52px);
}
.events-band .ridge { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; width: 100%; opacity: 0.9; pointer-events: none; }
.events { position: relative; display: grid; gap: 16px; }
@media (min-width: 900px) { .events { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.event {
  background: rgba(3, 7, 14, 0.72);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-3);
  padding: 24px;
  backdrop-filter: blur(4px);
}
.event .icon { width: 44px; height: 44px; }
.event h3 { margin-top: 16px; font-size: 1.25rem; }
.event p { margin-top: 8px; color: var(--muted); font-size: 1rem; }
.times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; padding: 0; list-style: none; max-width: 340px; }
.times li { text-align: center; font-family: var(--display); font-weight: 600; font-size: 1.02rem; padding: 4px 6px; border-radius: var(--r-1); color: var(--gold-ink); background: rgba(203, 157, 73, 0.1); border: 1px solid rgba(203, 157, 73, 0.32); }

/* ------------------------------------------------------------------- rules */
.rules { display: grid; gap: 18px; }
@media (min-width: 860px) { .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rule {
  position: relative; overflow: hidden;
  border-radius: var(--r-3);
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, color-mix(in srgb, var(--a) 12%, var(--card)) 0%, var(--card) 55%);
  padding: clamp(26px, 4vw, 40px);
}
.rule p.rule-word {
  display: inline-block; margin: 0;
  font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1; letter-spacing: -0.01em;
  background: linear-gradient(100deg, #ffffff 0%, var(--a-ink) 75%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 4px;
}
.rule h3 { margin-top: 14px; font-size: 1.3rem; color: var(--a-ink); }
.rule p { margin-top: 10px; color: var(--muted); }
.rule ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.rule li { display: flex; gap: 10px; align-items: flex-start; color: #d3deef; }
.rule li svg { width: 18px; height: 18px; flex: none; margin-top: 5px; color: var(--a-ink); }
.rules-foot { margin-top: 18px; color: var(--faint); text-align: center; }

/* --------------------------------------------------------------------- faq */
.faq { max-width: 880px; margin-inline: auto; display: grid; gap: 10px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.faq details[open] { border-color: var(--line-strong); background: var(--card-2); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  font-family: var(--display); font-weight: 600; font-size: 1.1rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--blue-ink); border-bottom: 2px solid var(--blue-ink);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }
.faq .answer p + p { margin-top: 8px; }

/* --------------------------------------------------------------------- cta */
.cta {
  position: relative; overflow: hidden; text-align: center;
  border-radius: calc(var(--r-3) + 6px);
  border: 1px solid rgba(64, 171, 126, 0.35);
  background:
    radial-gradient(50% 70% at 50% 0%, rgba(64, 171, 126, 0.22), transparent 70%),
    radial-gradient(40% 60% at 85% 100%, rgba(203, 157, 73, 0.16), transparent 70%),
    linear-gradient(180deg, #071425, #040a14);
  padding: clamp(40px, 7vw, 72px) var(--gutter) clamp(104px, 11vw, 140px);
}
.cta img { width: 88px; height: 88px; margin: 0 auto 18px; filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.6)); }
.cta h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
.cta p { margin: 12px auto 0; max-width: 560px; color: #c2d0e8; }
.cta .hero-cta { justify-content: center; }
.cta .ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(90px, 12vw, 150px); pointer-events: none; }

/* ------------------------------------------------------------- media slots */
/* Every picture or video spot is a slot: the real <img>/<video> is already in
   the page. The inline script in <head> (slots-js) adds .is-loaded when the
   file arrives (it fades in) and .is-missing when it fails.
   Visitors: a slot shows only once the server said its file is there
   (.is-here) or it has loaded; an empty slot takes no room. A block made only
   of slots (.gallery, .showcase, a section with data-slot-group) shows only
   with .has-media, and links to a hidden block get .slot-gone.
   Owner, any page opened with ?slots (html.slots-on): every slot shows, and a
   missing file gets the dashed placeholder (number, size, file name, limits).
   The list of slots is apps/landing/docs/MEDIA-th.md in the repo. */
[data-slot] { position: relative; }
.js:not(.slots-on) .slot:not(.is-here):not(.is-loaded),
.js:not(.slots-on) .slot.is-missing,
.js:not(.slots-on) .gallery:not(.has-media),
.js:not(.slots-on) .showcase:not(.has-media),
.js:not(.slots-on) [data-slot-group]:not(.has-media),
.js:not(.slots-on) .slot-gone { display: none; }
/* a feature card without its picture: the icon sits inside the card instead
   of overlapping the (absent) picture's lower edge */
.js:not(.slots-on) .feature > .slot:not(.is-here):not(.is-loaded) + .feature-body,
.js:not(.slots-on) .feature > .slot.is-missing + .feature-body { padding-top: 26px; }
.js:not(.slots-on) .feature > .slot:not(.is-here):not(.is-loaded) + .feature-body .icon,
.js:not(.slots-on) .feature > .slot.is-missing + .feature-body .icon { margin-top: 0; }
.slot {
  display: block; margin: 0; overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-3);
  background: #050b16;
  container-type: inline-size;
  /* keeps the picture's z-index inside the slot (container-type makes no
     stacking context), so card icons and accent lines stay on top */
  isolation: isolate;
}
.slot-feature { aspect-ratio: 16 / 10; }
.slot-server { aspect-ratio: 1200 / 630; }
.slot-portrait { aspect-ratio: 4 / 5; }
.slot > img, .slot > video, .slot > iframe { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; border: 0; }
.slot > iframe { z-index: 3; }
/* gallery + showcase: the picture is a link to the full-size file (new tab),
   live only once the picture is there */
.slot-link { position: absolute; inset: 0; z-index: 1; display: block; overflow: hidden; border-radius: inherit; cursor: zoom-in; }
.slot-link > img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s ease, transform 0.6s ease; }
.slot-link:focus-visible { outline-offset: -5px; }
.js .slot-link { pointer-events: none; }
.js .is-loaded > .slot-link { pointer-events: auto; }
.is-missing > .slot-link { visibility: hidden; }
.js [data-slot] > img, .js [data-slot] > video { opacity: 0; transition: opacity 0.5s ease; }
.js .slot-link > img { opacity: 0; }
.js [data-slot].is-loaded > img, .js [data-slot].is-loaded > video, .js .is-loaded > .slot-link > img { opacity: 1; }
/* the hero poster is decorative (alt=""), so a missing file draws nothing and it never waits on a fade */
.js .hero-poster > img { opacity: 1; transition: none; }
/* the placeholder exists only in the ?slots view, and only for a missing file */
.slots-on [data-slot].is-missing > .ph { display: flex; }

.ph {
  position: absolute; inset: 0; z-index: 0;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 22px 18px; text-align: center;
  color: var(--muted); font-size: 0.9rem; line-height: 1.45;
  background:
    radial-gradient(60% 70% at 50% 45%, color-mix(in srgb, var(--a, var(--gold)) 15%, transparent), transparent 75%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.022) 0 10px, transparent 10px 20px),
    linear-gradient(180deg, #071022, #040912);
}
.ph::before {
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  border: 1.5px dashed color-mix(in srgb, var(--a, var(--gold)) 55%, transparent);
  border-radius: var(--ph-r, calc(var(--r-3) - 8px));
}
.ph-no {
  position: absolute; top: 16px; left: 18px;
  font-family: var(--display); font-weight: 600; font-size: 0.8rem; line-height: 1.5;
  color: var(--a-ink, var(--gold-ink));
  background: color-mix(in srgb, var(--a, var(--gold)) 14%, #050b16);
  border: 1px solid color-mix(in srgb, var(--a, var(--gold)) 45%, transparent);
  border-radius: 999px; padding: 1px 10px;
}
.ph-ic {
  width: 44px; height: 44px; padding: 10px; margin-bottom: 8px; border-radius: 13px;
  color: var(--a-ink, var(--gold-ink));
  background: color-mix(in srgb, var(--a, var(--gold)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--a, var(--gold)) 40%, transparent);
}
.ph-what { font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--text); }
.ph-size { font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.25; color: var(--a-ink, var(--gold-ink)); letter-spacing: 0.01em; }
.ph-files { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ph-file {
  margin-top: 6px; padding: 1px 8px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.84rem;
  color: #d7e4f7; background: rgba(2, 5, 9, 0.65);
  border: 1px solid var(--line-strong); border-radius: 6px;
  overflow-wrap: anywhere;
}
.ph-spec { margin-top: 4px; font-size: 0.82rem; color: var(--faint); }
.ph-note { margin-top: 12px; max-width: 52ch; font-size: 0.85rem; color: var(--muted); }
/* phone-width slots: wide frames are short, so the icon shrinks; the trailer
   drops its icon and YouTube note (both are in docs/MEDIA-th.md) */
@container (max-width: 520px) {
  .slot-trailer .ph { padding: 14px 14px; gap: 0; }
  .slot-trailer .ph-ic, .slot-trailer .ph-note { display: none; }
  .slot-trailer .ph-no { top: 12px; left: 12px; font-size: 0.72rem; }
  .slot-trailer .ph-what { font-size: 0.88rem; margin-top: 10px; }
  .slot-trailer .ph-size { font-size: 1.12rem; }
  .slot-trailer .ph-file { font-size: 0.72rem; margin-top: 4px; }
  .slot-trailer .ph-spec { font-size: 0.72rem; line-height: 1.4; }
}
@container (max-width: 400px) {
  .ph { padding: 16px 14px; }
  .ph-ic { width: 34px; height: 34px; padding: 7px; margin-bottom: 4px; border-radius: 10px; }
}
@container (max-width: 240px) {
  .ph { padding: 14px 12px; gap: 0; }
  .ph-no { top: 12px; left: 12px; font-size: 0.7rem; padding: 0 8px; }
  .ph-ic { width: 32px; height: 32px; padding: 7px; margin-bottom: 6px; border-radius: 10px; }
  .ph-what { font-size: 0.82rem; line-height: 1.35; }
  .ph-size { font-size: 1.02rem; }
  .ph-file { font-size: 0.7rem; padding: 0 6px; margin-top: 4px; }
  .ph-spec { font-size: 0.7rem; line-height: 1.35; }
}
@container (min-width: 700px) {
  .ph-no { top: 22px; left: 24px; font-size: 0.9rem; }
  .ph-ic { width: 60px; height: 60px; padding: 13px; border-radius: 16px; }
  .ph-what { font-size: 1.2rem; }
  .ph-size { font-size: 2.1rem; }
  .ph-file { font-size: 0.95rem; }
  .ph-spec { font-size: 0.92rem; }
}

/* ------------------------------------------------- trailer + gallery + showcase */
.slot-trailer {
  border-radius: calc(var(--r-3) + 4px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px var(--line-strong);
  --ph-r: calc(var(--r-3) - 4px);
}
.play {
  display: none; position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer;
  place-content: center; justify-items: center; gap: 14px;
  background: linear-gradient(180deg, rgba(2, 5, 9, 0) 45%, rgba(2, 5, 9, 0.55));
  color: var(--text); font: inherit;
}
.js .slot.is-loaded > .play { display: grid; }
.play-dot {
  width: clamp(64px, 10cqi, 100px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #52c495, #3aa074); color: #03110b;
  box-shadow: 0 14px 40px -8px rgba(64, 171, 126, 0.75), 0 0 0 10px rgba(64, 171, 126, 0.16);
  transition: transform 0.2s ease;
}
.play-dot svg { width: 40%; height: 40%; margin-left: 6%; }
.play:hover .play-dot { transform: scale(1.06); }
.play-label { font-family: var(--display); font-weight: 600; font-size: 1.05rem; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9); }
.play:focus-visible { outline-offset: -8px; }
/* .js and the same 4 classes as the rule that shows .play, and later, so it wins */
.js .slot.is-playing > img, .js .slot.is-playing > .play { display: none; }

/* phones: two columns with the first picture across both, so nine pictures
   are about 700 px of scrolling before "how to join", not 2,300 */
.gallery { display: grid; gap: 10px; margin-top: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery > .slot:first-child { grid-column: 1 / -1; }
.gallery .slot { border-radius: var(--r-2); --ph-r: 8px; }
/* a 16:9 tile under 240 px is under 135 px tall: number, size and file name only */
@container (max-width: 240px) {
  .gallery .ph-no { position: static; margin-bottom: 2px; }
  .gallery .ph-ic, .gallery .ph-what, .gallery .ph-spec { display: none; }
}
@media (min-width: 640px) { .gallery { gap: 14px; margin-top: 14px; } }
@media (min-width: 1020px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* the first picture is the big tile: two columns by two rows */
  .gallery > .slot:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}

/* visitors, while the gallery has only one or two pictures (the slots script
   sets data-shown): plain 16:9 tiles, one across or two side by side, since
   the big tile takes its height from the tiles beside it */
.js .gallery[data-shown="1"] { grid-template-columns: minmax(0, 1fr); }
.js .gallery[data-shown="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.js .gallery[data-shown="1"] > .slot, .js .gallery[data-shown="2"] > .slot { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 9; }

.showcase { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.showcase .slot { border-radius: var(--r-2); --ph-r: 8px; }
/* fewer pictures than columns: same tile width, centred */
.js .showcase[data-shown="1"] { grid-template-columns: minmax(0, calc((100% - 14px) / 2)); justify-content: center; }
@media (min-width: 900px) {
  .showcase { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .showcase > .slot:nth-child(even) { margin-top: 40px; }
  .js .showcase[data-shown="1"] { grid-template-columns: minmax(0, calc((100% - 54px) / 4)); }
  .js .showcase[data-shown="2"] { grid-template-columns: repeat(2, minmax(0, calc((100% - 54px) / 4))); justify-content: center; }
  .js .showcase[data-shown="3"] { grid-template-columns: repeat(3, minmax(0, calc((100% - 54px) / 4))); justify-content: center; }
}

/* the gentle zoom says "open me": these pictures are links to the full-size file */
.is-loaded > .slot-link:hover > img, .is-loaded > .slot-link:focus-visible > img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .is-loaded > .slot-link:hover > img, .is-loaded > .slot-link:focus-visible > img { transform: none; }
}

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: 48px 36px; margin-top: clamp(16px, 3vw, 40px); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1020px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.15fr 1fr; } }
.footer-brand p { margin-top: 12px; color: var(--muted); font-size: 0.98rem; max-width: 420px; }
.site-footer h2 { font-size: 0.95rem; color: var(--faint); }
html[lang="en"] .site-footer h2 { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.site-footer ul a { color: var(--text); text-decoration: none; }
.site-footer ul a:hover { color: var(--blue-ink); text-decoration: underline; }
.disclaimer { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.9rem; display: grid; gap: 6px; }

/* ------------------------------------------------------------ guide pages */
/* /the-isle-evrima/, /how-to-play/, /dinosaurs/, /thai-server/ and their
   /en/ twins (made by landing-work/build-guides.ts): a short page head, the
   article with a table of contents beside it (above it on phones), related
   guides and the closing call to action. */
.nav a[aria-current="page"], .menu-panel a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.page-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(28px, 5vw, 60px) clamp(26px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(45% 120% at 88% 0%, rgba(203, 157, 73, 0.15), transparent 70%),
    radial-gradient(55% 120% at 0% 100%, rgba(64, 171, 126, 0.13), transparent 70%),
    linear-gradient(180deg, #03091a, var(--bg));
}
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.92rem; color: var(--faint); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.page-hero .eyebrow { margin-top: 22px; }
.page-hero h1 { margin-top: 10px; max-width: 920px; font-size: clamp(2rem, 5.2vw, 3.2rem); font-weight: 700; }
.page-lead { margin-top: 14px; max-width: 720px; color: #c7d4ec; font-size: clamp(1.05rem, 2.2vw, 1.18rem); }
.page-meta { margin-top: 14px; color: var(--faint); font-size: 0.92rem; }
.page-hero .hero-cta { margin-top: 22px; }

.guide-layout { display: grid; gap: 24px; padding-block: clamp(26px, 4vw, 48px) clamp(8px, 2vw, 16px); }
@media (min-width: 1020px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; }
  .guide-layout > .toc { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + 20px); }
}
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-2); padding: 16px 18px; }
.toc-title { font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--gold-ink); }
.toc ol { margin: 8px 0 0; padding-left: 1.3em; display: grid; gap: 4px; font-size: 0.97rem; color: var(--faint); }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); text-decoration: underline; }
.toc .btn { width: 100%; margin-top: 14px; min-height: 46px; font-size: 1rem; }

.prose { min-width: 0; max-width: 760px; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 48px; font-size: clamp(1.5rem, 3.4vw, 2rem); scroll-margin-top: calc(var(--header-h) + 16px); }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; font-size: 1.2rem; color: var(--gold-ink); }
.prose h2 + *, .prose h3 + * { margin-top: 10px; }
.prose p, .prose li { color: #cfdaee; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--faint); }
.prose strong { color: var(--text); font-weight: 600; }
.prose .callout { margin-top: 20px; }
.prose .slot { margin-top: 24px; }
.prose .srv-name { margin-top: 8px; }
.prose .specs { margin-top: 18px; }
.sources { font-size: 0.92rem; }
.sources li, .sources p { color: var(--faint); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line-strong); border-radius: var(--r-2); }
.compare { width: 100%; border-collapse: collapse; font-size: 0.98rem; line-height: 1.55; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.compare thead th { font-family: var(--display); font-weight: 600; color: var(--gold-ink); background: var(--card-2); }
.compare tbody th { width: 28%; font-weight: 600; color: var(--text); background: rgba(255, 255, 255, 0.015); }
.compare td { color: #cfdaee; }
.compare tr:last-child > * { border-bottom: 0; }

.species { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.prose .species { padding: 0; }
.prose .species li + li { margin-top: 0; }
.sp { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-2); padding: 14px 16px; scroll-margin-top: calc(var(--header-h) + 16px); }
.sp::before { content: ""; display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--a); margin-bottom: 10px; }
.prose .sp h3 { margin: 0; font-size: 1.08rem; color: var(--text); }
.prose .sp p { margin-top: 2px; font-size: 0.95rem; color: var(--muted); }
.prose .sp .nick { color: var(--a-ink); font-size: 0.9rem; }
.sp:target { border-color: var(--a); box-shadow: inset 0 0 0 1px var(--a); }

.guide-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.guide-card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: var(--r-3); padding: 24px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.guide-card h3 { margin-top: 16px; font-size: 1.18rem; }
.guide-card h3 a { color: var(--text); text-decoration: none; }
.guide-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.guide-card p { margin-top: 8px; color: var(--muted); font-size: 1rem; }
.guide-card .more { margin-top: auto; padding-top: 14px; font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--a-ink); }
.guide-card:hover { border-color: color-mix(in srgb, var(--a) 45%, var(--line)); transform: translateY(-2px); }
.guide-card:focus-within { border-color: var(--gold-ink); }
@media (prefers-reduced-motion: reduce) { .guide-card:hover, .feature:hover { transform: none; } }
.section-head p a, .faq .answer a { font-weight: 600; }
.cta.cta-plain { padding-bottom: clamp(40px, 7vw, 72px); }
.nf-guides { list-style: none; margin: 22px auto 0; padding: 0; display: grid; gap: 6px; }

/* ------------------------------------------------------------------- 404 */
.nf { min-height: calc(100svh - var(--header-h)); display: grid; place-items: center; text-align: center; padding: 48px var(--gutter); }
.nf .code { font-family: var(--display); font-weight: 700; font-size: clamp(5rem, 22vw, 9rem); line-height: 1; background: linear-gradient(180deg, #fff, var(--gold-ink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf h1 { margin-top: 10px; font-size: clamp(1.5rem, 4vw, 2.2rem); }
.nf p { margin-top: 10px; color: var(--muted); }
.nf .hero-cta { justify-content: center; }
