/* ==========================================================================
   Trinfunity — www.trinfunity.com
   Direction: Celestial Chart, read top-to-bottom (2026-07-18).
   A warm night sky is the atmosphere; a single legible column is the spine.
   Plain CSS. Tokens are law: every color, size, radius, and duration is a
   custom property declared once in :root (BRIEF.md §4.2). No hex elsewhere.
   ========================================================================== */

/* ----- Fonts (self-hosted, no CDN) ----- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/web/fonts/CormorantGaramond-Variable.woff2") format("woff2"),
       url("assets/fonts/CormorantGaramond-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/web/fonts/CormorantGaramond-Italic-Variable.woff2") format("woff2"),
       url("assets/fonts/CormorantGaramond-Italic-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("assets/web/fonts/Outfit-Variable.woff2") format("woff2"),
       url("assets/fonts/Outfit-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ----- Tokens ----- */
:root {
  /* Color — BRIEF.md §4.2, exact names and values */
  --surface-base: #1A1512;
  --surface-sunken: #13100D;
  --surface-raised: rgba(245, 230, 200, 0.055); /* lit vellum: warm, translucent */
  --text-primary: #F5E6C8;
  --text-secondary: #C9BBA0;
  --text-scripture: #F5E6C8;
  --accent-gold: #D4A017;
  --accent-gold-deep: #8A6A12;
  --text-on-gold: #1A0F00;
  --border-gilt: rgba(212, 160, 23, 0.4);
  --focus-ring: rgba(245, 230, 200, 0.9);

  /* Color — site-derived, still declared only here */
  --border-gilt-faint: rgba(212, 160, 23, 0.16);
  --glow-gold-strong: rgba(212, 160, 23, 0.5);
  --glow-gold-soft: rgba(212, 160, 23, 0.16);
  --glow-gold-faint: rgba(212, 160, 23, 0.08);
  --scrim-warm: rgba(19, 16, 13, 0.92);
  --spec-warm: rgba(255, 234, 179, 0.5);
  --gold-leaf-light: #EED9A0;

  /* Night sky — warm, never navy (a star's blue channel is never its highest) */
  --star: rgba(245, 230, 200, 0.85);        /* warm-white star */
  --star-dim: rgba(245, 230, 200, 0.4);      /* distant dust */
  --star-gold: rgba(238, 217, 160, 0.9);     /* the brighter, gilt stars */
  --constellation-line: rgba(212, 160, 23, 0.32); /* the fine drawn figure */
  --constellation-line-faint: rgba(212, 160, 23, 0.14);

  /* Demo layer (INTERACTIVE_DEMOS_PLAN.md §8; added 2026-07-22). Warm
     metals for Selah's proximity bands — candlelit silver and struck
     bronze, never cool — plus the demo surfaces and Tested Stone's rain.
     Bands and swatches only; running text stays in the AAA text tokens. */
  --metal-silver: #C9BFAC;
  --metal-bronze: #B0793F;
  --metal-grey: rgba(201, 187, 160, 0.3);
  --surface-raised-2: rgba(245, 230, 200, 0.09); /* stronger lit vellum: demo insets */
  --demo-scrim: rgba(19, 16, 13, 0.78);          /* behind the start affordance, over screenshots */
  --shade-warm: rgba(19, 16, 13, 0.5);           /* warm inner shading (never a grey shadow) */
  --rain-streak: rgba(245, 230, 200, 0.26);
  --rain-streak-faint: rgba(245, 230, 200, 0.13);

  /* The seven node colors — the covenant rainbow (Revelation 21:19–20),
     mirrored exactly from the app's IlluminationColors (Matt, 2026-07-23).
     One hue per game, used ONLY where that game is the subject — its
     constellation star, its chapter's badge and plate glow — never for
     text, chrome, or another game. Gold stays the shared thread.
     Amethyst is the ONE authorized violet outside §6: a genuine
     foundation stone, Tested Stone only. Never reuse it, never nudge it
     toward blue. Silver is deliberately cool — metal, not ivory. */
  --node-selah: #D4A017;            /* gold — jasper; the portfolio anchor */
  --node-scarlet-thread: #D14A38;   /* scarlet — the cord itself; the app's starScarlet, adopted 2026-07-29 */
  --node-bibleheads: #C6D2DE;       /* silver — bound on your foreheads */
  --node-guard-the-flock: #45A99C;  /* beryl — muted green-teal, never electric */
  --node-the-gate: #CD655C;         /* crimson — sardius, the ember of verdict */
  --node-hidden-word: #E8742C;      /* topaz — lamp-lit amber */
  --node-living-waterfall: #4985D8; /* sapphire — it IS the water */
  --node-tested-stone: #7851A9;     /* amethyst — the one authorized violet */
  /* Semantic, not a node color: the "counts against you" state in Guard
     the Flock's twist reveal (plan §5.7 — gold turns crimson). Kept
     distinct from The Gate's sardius because node hues never cross games;
     ≥3:1 against the ground as a meaningful border. Warm, never neon. */
  --alarm-crimson: #B44A41;

  /* Their soft glows, at the same breath as --glow-gold-soft. */
  --node-selah-glow: var(--glow-gold-soft);
  --node-scarlet-thread-glow: rgba(209, 74, 56, 0.16);
  --node-bibleheads-glow: rgba(198, 210, 222, 0.16);
  --node-guard-the-flock-glow: rgba(69, 169, 156, 0.16);
  --node-the-gate-glow: rgba(205, 101, 92, 0.16);
  --node-hidden-word-glow: rgba(232, 116, 44, 0.16);
  --node-living-waterfall-glow: rgba(73, 133, 216, 0.16);
  --node-tested-stone-glow: rgba(120, 81, 169, 0.16);

  /* Covenant spectrum — Scripture Illumination only (§6 exception 2).
     Purple anywhere else on this site is a bug. */
  --foil-amber: #EDBD57;
  --foil-rose: #D96A9C;
  --foil-violet: #9F82D9;
  --foil-blue: #5F9FD9;
  --foil-teal: #54BFA5;
  --foil-green: #9DBE6A;

  /* Type */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Outfit", sans-serif;
  --type-display: 2.75rem;        /* 44 */
  --type-title: 1.875rem;         /* 30 */
  --type-heading: 1.4375rem;      /* 23 */
  --type-subheading: 1.1875rem;   /* 19 */
  --type-body: 1rem;              /* 16 */
  --type-label: 0.9375rem;        /* 15 */
  --type-caption: 0.8125rem;      /* 13 */
  --type-scripture: 1.25rem;      /* 20 */
  --type-scripture-ref: 0.8125rem;/* 13 */
  /* Site-only (approved 2026-07-12): the hero verse, and nothing else.
     Clamps back toward the app scale on small screens. */
  --type-display-hero: clamp(1.7rem, 1rem + 3vw, 3.3rem);
  --type-display-fluid: clamp(1.9rem, 1.35rem + 2.1vw, 2.75rem);

  /* Radius — capped; pill reserved for tiny chips */
  --radius-6: 6px;
  --radius-10: 10px;
  --radius-16: 16px;
  --radius-pill: 999px;

  /* Motion */
  --motion-instant: 100ms;
  --motion-fast: 150ms;
  --motion-base: 250ms;
  --motion-slow: 400ms;
  --motion-settle: 800ms;
  --ease-settle: cubic-bezier(0.19, 0.66, 0.22, 1); /* decelerate; no spring */

  /* Foil grain (generated tile, embedded so no extra request) */
  --noise: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAAAAABwhuybAAAUk0lEQVR42gGIFHfrA9KH55EgvQ7TnJ8JYHvu8/mt8+d9wUZXZi0boT3GqJ1E3CiTaSkRmMwddfMSZi7jPbgvK/EpvdcY6q33xMge0COzaTkouQ9ZbwAZzx6meuqy8iuXIQfXp8KeOZvElfQT5iI/YcktERsWwZi64H1b7eVFuSVmmcxBxaZHpuaJ9x/VtmAReGtS0ZtpeyokOQGivdgBNCZwuhfYo2uX+7aWGFWEEXoZ5jRD7NH6gbvyiR6pkyY56Dk75JHjgjmDXhcjvsJVRQcepZICzx7F8N8kjc8NSofT9MIwENhzAmLkUdsR3Nr9y2iN8doV0mtMjfAPcQqNgY84quXJvVJiid1KXm6SZNAJEAaDSl34FRjguIMVYEaYmuA2NDMvH1nN7uHajxBpWgK/+OSN94L8dD47/wb4gqh7VkGXzN5E8xAMwQftnOhTrXrntUK24osDD9iRAJGb9OM0G8VEDLZISjNpq/tjZXhqapLNCJTWP7AE8xA9qtLCsGfn1NLiZHwNUW0Vt9n4skWhrfu+KsVZJoTXLcVLgFWSWMgKyvZHeKHFMOelqh24/1wmIkyg8jlVS+PA9HwvugGdAOfUWqz1ZiPbtydm9+b7odbZMBY51mPaDRH3880DQai/etfjiAmrhfOIbdtAAukw3/mpZg+lsq806c6QRhNkPMJgn7CaNfntqQMQo3HdkO8G0dPl5wSZvKiizZPr7DHZnuAo/xEWSdz2B+9MH5UVXVCaVzTkgH8nKVICvbvoT8j6MJhQHkxE1UHOyzrtkjtj7zQCkamr7dkKekG1um77srSjTqdlj+weCHLP1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cTkKaVAMRd8dK1BGHv7JTlsgQVr5/UjQazLiUksUrEtCxccZ3PngEywWFCUBOSuQx/+LGlLdYnXM20io3En0mGuYq6/fmLQ4TIB/e1sqgvG/nYmm2U5yRy/iIDeafTokIkOgA/9MZjUn48tM5o9VeTiBnviC9Wj4ZSMz70STEaPTrrOzVDawgtINZ11o/fxHZmWcLKRxDHAhB+GI+/Qu1FU9kxA7gXwLHiQToQXe9DZT7nlyu1+dPK6shnSFHuRPnkQqkKjOc+4klScLRaOTq1Ft45zzqMywU0vfn+ihwLX72YEKdUomExqCeijAMU2RGK9VuttldFFIEDKBW5LGn/XmXYvjjJRQdjTXsDZt5VRzigQci3WPD9o/eeMPA/DTS5vnT9CPHI8a/DhJQ4gWjcVVnb2yUBkLYqNc66A+u11Pa1+iKknqOAAY1yRSvRn7aO4uYSKgkY4CItHol3lwivBA7u1nGFCsljT2oc28mkM/flUEVfLQEVvSrvDxjeAp0ZZND29tBgZwWGCDEuS7M0sjnC5bsYHPPJaTHv3xjRYfnjEQ0dgDkZEVq5bv1bngn8t0Gc55Jm9QR769nEIODPcUSnmc6Y7gOrSABT6A7W1JP/3lfdIR8G/gPxCkUXATaBfXbYhefZS2KusxA0+boLD42zMkqKUZOuiqwUMLIaL9M+OOXp7Qd1TGAYFBYIWtUBt7bZsRNsB7df/KRr2Y7CC4Av3+oXkuL6zaZALYzqRtUzp8WMlogUgMlOICe/ThiqEY7BWdSmUPxuqpGuux3rBsktEHGRXenLKiEGAAHrIvsAAAAASUVORK5CYII=");

  --maxw: 1100px;
}

/* ----- Base ----- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background-color: var(--surface-base);
  /* The dome: a faint dawn over the restored city, deepening to sunken sky
     at the very top and foot of the page. Warm throughout — never navy. */
  background-image:
    radial-gradient(1200px 680px at 50% -10%, var(--glow-gold-faint), transparent 66%),
    linear-gradient(180deg, var(--surface-sunken), transparent 20%, transparent 80%, var(--surface-sunken));
  background-repeat: no-repeat;
  color: var(--text-primary);
  font: 400 var(--type-body)/1.5 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

/* The manuscript grain — barely there, unifying vellum and struck metal alike */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background-image: var(--noise);
  background-size: 72px 72px;
  opacity: 0.045;
}

img, video { max-width: 100%; }
figure { margin: 0; }

/* The hidden attribute always wins, even over elements given a display. */
[hidden] { display: none !important; }

::selection {
  background: var(--accent-gold-deep);
  color: var(--text-primary);
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -100%;
  z-index: 100;
  background: var(--accent-gold);
  color: var(--text-on-gold);
  padding: 0.6em 1.1em;
  border-radius: var(--radius-10);
  font: 600 var(--type-label)/1.2 var(--font-ui);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ----- Starfield (section-scoped: rich in the sky, absent behind reading) ----- */
.starfield {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}
.starfield .star {
  position: absolute;
  width: var(--s, 2px);
  height: var(--s, 2px);
  border-radius: 50%;
  background: var(--star);
  opacity: var(--o, 0.5);
  box-shadow: 0 0 var(--g, 3px) var(--star-dim);
}
.starfield .star.gold { background: var(--star-gold); }
@media (prefers-reduced-motion: no-preference) {
  .starfield .star {
    animation: twinkle var(--td, 6s) var(--ease-settle) var(--tdelay, 0s) infinite alternate;
  }
  @keyframes twinkle {
    from { opacity: calc(var(--o, 0.5) * 0.35); }
    to   { opacity: var(--o, 0.5); }
  }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.35em;
  border-radius: var(--radius-10);
  font: 600 var(--type-label)/1.2 var(--font-ui);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition:
    box-shadow var(--motion-base) var(--ease-settle),
    filter var(--motion-base) var(--ease-settle),
    border-color var(--motion-base) var(--ease-settle);
}
.btn-gold {
  background: var(--accent-gold);
  color: var(--text-on-gold);
}
.btn-gold:hover {
  filter: brightness(1.07);
  box-shadow: 0 0 28px var(--glow-gold-soft);
}
.btn-ghost {
  color: var(--text-primary);
  border: 1px solid var(--border-gilt);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 0 22px var(--glow-gold-faint);
}
.btn-sm { padding: 0.6em 1.05em; }
.btn svg { flex: none; }

/* ----- Header ----- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--motion-base) var(--ease-settle),
    border-color var(--motion-base) var(--ease-settle);
}
.site-head.scrolled {
  background: var(--scrim-warm);
  border-bottom-color: var(--border-gilt-faint);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.site-head.nav-open {
  background: var(--scrim-warm);
  border-bottom-color: var(--border-gilt-faint);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.site-nav {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0.7rem clamp(1rem, 4vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
  margin-right: auto;
}
.brand img {
  width: 38px;
  height: 38px;
  display: block;
}
.brand-name {
  font: 600 1.3rem/1 var(--font-display);
  letter-spacing: 0.02em;
}
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.7rem;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font: 500 var(--type-label)/1.2 var(--font-ui);
  transition: color var(--motion-fast) linear;
}
.nav-links a:hover { color: var(--text-primary); }

/* The menu toggle: three fine gold rules, ruled like a manuscript margin.
   Small screens only; on open they cross into a close mark. */
.nav-toggle {
  display: none; /* only ever shown on small screens, and only with JS */
  order: 3;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-gilt);
  border-radius: var(--radius-10);
  cursor: pointer;
  transition:
    border-color var(--motion-base) var(--ease-settle),
    box-shadow var(--motion-base) var(--ease-settle);
}
.nav-toggle:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 0 22px var(--glow-gold-faint);
}
.nav-rules {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}
.nav-rules i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent-gold);
  transition:
    translate var(--motion-base) var(--ease-settle),
    rotate var(--motion-base) var(--ease-settle),
    opacity var(--motion-fast) linear;
}
.nav-rules i:nth-child(1) { top: 0; }
.nav-rules i:nth-child(2) { top: 6.25px; }
.nav-rules i:nth-child(3) { top: 12.5px; }
.nav-toggle[aria-expanded="true"] .nav-rules i:nth-child(1) { translate: 0 6.25px; rotate: 45deg; }
.nav-toggle[aria-expanded="true"] .nav-rules i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-rules i:nth-child(3) { translate: 0 -6.25px; rotate: -45deg; }

.nav-cta { order: 2; }

/* Phones and small tablets: the links become a panel hanging off the header.
   Download stays in the bar — it is never more than one tap away. */
@media (max-width: 859px) {
  /* Without JS there is no panel to open, so the links simply rule a second
     line under the brand. Nothing is ever unreachable. */
  .nav-links {
    order: 4;
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.2rem;
    padding-top: 0.35rem;
  }
  html.js .nav-toggle { display: inline-flex; }
  html.js .nav-links {
    order: 0;
    flex-basis: auto;
    padding-top: 0;
    position: absolute;
    top: calc(100% + 0.35rem);
    right: clamp(1rem, 4vw, 2rem);
    min-width: 15rem;
    max-width: calc(100% - 2 * clamp(1rem, 4vw, 2rem));
    display: block;
    padding: 0.35rem 0;
    /* Opaque lit vellum over the sunken ground — a panel, never cold glass.
       The page grain (body::after) sits above it and unifies the surface. */
    background-color: var(--surface-sunken);
    background-image: linear-gradient(var(--surface-raised), var(--surface-raised));
    border: 1px solid var(--border-gilt-faint);
    border-radius: var(--radius-16);
    box-shadow: 0 0 60px -18px var(--glow-gold-soft);
    opacity: 0;
    visibility: hidden;
    translate: 0 -8px;
    transition:
      opacity var(--motion-base) var(--ease-settle),
      translate var(--motion-base) var(--ease-settle),
      visibility var(--motion-base) step-end;
  }
  html.js .nav-links.open {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
    transition-timing-function: var(--ease-settle), var(--ease-settle), step-start;
  }
  html.js .nav-links li + li {
    border-top: 1px solid var(--border-gilt-faint);
  }
  html.js .nav-links a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 1.1rem;
  }
  .nav-links a:hover,
  .nav-links a:focus-visible {
    color: var(--text-primary);
  }
}
@media (min-width: 860px) {
  .site-nav { gap: 1.5rem; }
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-cta { order: 0; }
}

/* ==========================================================================
   HERO — the verse hangs as a gilded inscription in the night sky. Gold leaf
   blooms under the hand (js/illumination.js drives --mx/--my/--bloom-r), and
   the last line resolves into a small constellation (the children playing).
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 7vh, 5.5rem) 1rem 0;
}
.hero > .hero-stage,
.hero > .hero-copy { position: relative; z-index: 1; }

.hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.verse-wrap {
  position: relative;
  max-width: 880px;
  width: 100%;
  margin-inline: auto;
}
.verse-halo {
  position: absolute;
  inset: -16%;
  z-index: 0;
  background: radial-gradient(closest-side, var(--glow-gold-soft), transparent 78%);
  opacity: 0.5;
  transition:
    opacity var(--motion-settle) var(--ease-settle),
    scale var(--motion-settle) var(--ease-settle);
}
.verse-wrap.lit .verse-halo {
  opacity: 1;
  scale: 1.09;
}
.verse-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--surface-raised);
  border: 1px solid var(--border-gilt);
  border-radius: var(--radius-16);
  padding: clamp(1.7rem, 5vw, 3.4rem) clamp(1.2rem, 5.5vw, 3.8rem) clamp(1.5rem, 4vw, 2.6rem);
  box-shadow: 0 0 70px -12px var(--glow-gold-faint);
  touch-action: pan-y; /* the bloom follows a finger without trapping scroll */
}
.verse-quote {
  display: grid;
  margin: 0;
}
.verse-quote > p {
  grid-area: 1 / 1;
  margin: 0;
  font: italic 500 var(--type-display-hero)/1.42 var(--font-display);
  color: var(--text-scripture);
  text-align: center;
  text-wrap: pretty;
}

/* Foil overlay: hidden unless the browser can clip gradients to glyphs and
   mask them. The ink base below is sacred — always legible on its own. */
.verse-foil {
  display: none;
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .verse-ink .verse-last {
    background-image: linear-gradient(105deg, var(--gold-leaf-light), var(--accent-gold) 55%, var(--gold-leaf-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}
@supports (((background-clip: text) or (-webkit-background-clip: text)) and ((mask-image: none) or (-webkit-mask-image: none))) {
  .verse-foil {
    display: block;
    pointer-events: none;
    user-select: none;
    background-image:
      var(--noise),
      linear-gradient(var(--foil-angle, 104deg),
        var(--accent-gold),
        var(--gold-leaf-light) 18%,
        var(--foil-amber) 34%,
        var(--foil-rose) 46%,
        var(--foil-violet) 54%,
        var(--foil-blue) 62%,
        var(--foil-teal) 70%,
        var(--foil-green) 76%,
        var(--accent-gold) 90%,
        var(--gold-leaf-light) 100%);
    background-size: 72px 72px, 240% 240%;
    background-position: 0 0, 0% 50%;
    background-blend-mode: soft-light, normal;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-mask-image:
      radial-gradient(circle var(--bloom-r, 0px) at var(--mx, 50%) var(--my, 62%),
        rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.5) 55%, transparent 78%),
      linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
    mask-image:
      radial-gradient(circle var(--bloom-r, 0px) at var(--mx, 50%) var(--my, 62%),
        rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.5) 55%, transparent 78%),
      linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
  }
}
@media (prefers-reduced-motion: no-preference) {
  .verse-foil {
    animation: foil-drift 18s ease-in-out infinite alternate;
  }
  @keyframes foil-drift {
    from { background-position: 0 0, 0% 50%; }
    to   { background-position: 0 0, 100% 50%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  /* A still, softly gilded verse. Nothing moves. */
  .verse-foil { animation: none; }
}

.verse-spec {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--spec-o, 0);
  background: radial-gradient(circle 72px at var(--mx, 50%) var(--my, 62%), var(--spec-warm), transparent 72%);
  mix-blend-mode: screen;
}

.verse-ref {
  margin-top: 1.5rem;
  text-align: center;
  font: 500 var(--type-scripture-ref)/1.3 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
}
.verse-ref cite { font-style: normal; }

/* The children's constellation — the last line made a figure in the sky.
   Drawn on load (settle), still under reduced motion. Purely decorative. */
.hero-constellation {
  display: block;
  width: min(340px, 68vw);
  height: auto;
  margin: 1.7rem auto 0;
  overflow: visible;
}
.hero-constellation .hc-line {
  fill: none;
  stroke: var(--constellation-line);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-constellation .hc-star { fill: var(--star); }
.hero-constellation .hc-star.bright { fill: var(--gold-leaf-light); }
@media (prefers-reduced-motion: no-preference) {
  html.js .hero-constellation .hc-line {
    stroke-dasharray: var(--len, 600);
    stroke-dashoffset: var(--len, 600);
    animation: hc-draw var(--motion-settle) var(--ease-settle) 240ms forwards;
  }
  html.js .hero-constellation .hc-star {
    opacity: 0;
    animation: hc-spark var(--motion-slow) var(--ease-settle) forwards;
  }
  @keyframes hc-draw { to { stroke-dashoffset: 0; } }
  @keyframes hc-spark { to { opacity: 1; } }
}

.hero-copy {
  text-align: center;
  padding: clamp(2rem, 5vh, 3.5rem) 0 clamp(3rem, 7vh, 5rem);
}
.hero-copy h1 {
  margin: 0;
  font: 600 var(--type-display-fluid)/1.1 var(--font-display);
  text-wrap: balance;
}
.lede {
  max-width: 56ch;
  margin: 1rem auto 0;
  color: var(--text-secondary);
  font-size: var(--type-subheading);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1.7rem;
}
.cta-note {
  margin: 1rem 0 0;
  font-size: var(--type-caption);
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

/* ----- Shared section furniture ----- */
section {
  padding-block: clamp(3.5rem, 9vh, 6.5rem);
}
.kicker {
  margin: 0;
  font: 600 var(--type-caption)/1.4 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-gold);
}
h2 {
  margin: 0.35em 0 0.45em;
  font: 600 var(--type-display-fluid)/1.1 var(--font-display);
  text-wrap: balance;
}
.section-lede {
  margin: 0;
  color: var(--text-secondary);
  max-width: 62ch;
}
.section-lede b { color: var(--text-primary); font-weight: 600; }

/* Gilt divider — the app's — ◆ — motif, for quiet section breaks */
.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 0;
  color: var(--accent-gold);
}
.rule::before,
.rule::after {
  content: "";
  height: 1px;
  width: min(90px, 18vw);
  background: linear-gradient(90deg, transparent, var(--border-gilt));
}
.rule::after { background: linear-gradient(90deg, var(--border-gilt), transparent); }
.rule i {
  width: 7px; height: 7px;
  background: var(--accent-gold);
  rotate: 45deg;
  border-radius: 1px;
  flex: none;
}

/* ==========================================================================
   THE SEVEN — the constellation set-piece and index (echoes the app's hub).
   The wonder lives here; the teaching lives in the chapters below.
   ========================================================================== */
.seven-stage {
  position: relative;
  overflow: hidden;
  padding-block: clamp(1.5rem, 4vh, 2.5rem);
}
.seven-stage > .starfield { z-index: 0; }
.seven-stage > .constellation,
.seven-stage > .hub-proof { position: relative; z-index: 1; }

.constellation { margin: 0; }
.constellation svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.cf-dust { fill: var(--star-dim); }
.cf-link {
  fill: none;
  stroke: var(--constellation-line-faint);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cf-star { cursor: pointer; }
.cf-star .hit { fill: transparent; }
.cf-star .glow {
  fill: var(--accent-gold);
  opacity: 0.18;
  transition: opacity var(--motion-base) var(--ease-settle),
              r var(--motion-base) var(--ease-settle);
}
.cf-star .core {
  fill: var(--gold-leaf-light);
  transition: fill var(--motion-base) var(--ease-settle);
}
.cf-label {
  fill: var(--text-secondary);
  font: 600 15px/1 var(--font-ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: fill var(--motion-base) var(--ease-settle);
}
.cf-star:hover .glow,
.cf-star:focus-visible .glow { opacity: 0.42; }
.cf-star:hover .core,
.cf-star:focus-visible .core { fill: var(--text-primary); }
.cf-star:hover + .cf-label,
.cf-star:focus-visible + .cf-label { fill: var(--text-primary); }
.cf-star:focus { outline: none; }
@media (prefers-reduced-motion: no-preference) {
  html.js .cf-star .core {
    animation: twinkle var(--td, 5s) var(--ease-settle) var(--tdelay, 0s) infinite alternate;
  }
}
/* Focus ring for the SVG anchors — the gold ring, always visible */
.cf-star:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-6);
}
@media (max-width: 620px) {
  .cf-label { display: none; } /* stars stay tappable; chapters below are the readable list */
}

.hub-proof {
  margin: clamp(2rem, 5vh, 3.4rem) auto 0;
  max-width: min(260px, 70vw);
  text-align: center;
}
.hub-proof video,
.hub-proof img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-16);
  border: 1px solid var(--border-gilt-faint);
  box-shadow: 0 22px 60px -26px var(--glow-gold-soft);
}
.hub-proof figcaption {
  margin-top: 0.85rem;
  font-size: var(--type-caption);
  color: var(--text-secondary);
}

/* ==========================================================================
   THE GAMES — chapters, read top to bottom. Screenshots as framed plates
   floating in the sky (a whisper of tilt, straightening under the eye).
   ========================================================================== */
.games-head { margin-bottom: clamp(1rem, 3vh, 2rem); }

.game {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding-block: clamp(2.6rem, 7vh, 4.6rem);
  border-top: 1px solid var(--border-gilt-faint);
}
@media (min-width: 900px) {
  .game {
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    gap: clamp(2rem, 5vw, 4.5rem);
  }
  .game.flip .game-text { order: -1; }
}
.game-text { max-width: 54ch; }
.game-text .kicker { letter-spacing: 0.14em; }
.game h3 {
  margin: 0.3em 0 0.4em;
  font: 600 var(--type-title)/1.2 var(--font-display);
}
.game p { margin: 0 0 0.9em; }
.game p:last-child { margin-bottom: 0; }
.game b { font-weight: 600; }
.fact {
  color: var(--text-secondary);
  font-size: var(--type-label);
  border-inline-start: 2px solid var(--border-gilt);
  padding-inline-start: 0.85em;
}
.modes {
  list-style: none;
  margin: 0 0 1.1em;
  padding: 0;
  display: grid;
  gap: 0.5em;
}
.modes li {
  padding: 0.65em 0.95em;
  background: var(--surface-raised);
  border: 1px solid var(--border-gilt-faint);
  border-radius: var(--radius-10);
  font-size: var(--type-label);
  color: var(--text-secondary);
}
.modes b { color: var(--text-primary); }

.game-media {
  display: grid;
  gap: 1.2rem;
  justify-items: center;
}
.game-media .shot {
  border-radius: var(--radius-16);
  overflow: hidden;
  border: 1px solid var(--border-gilt-faint);
  background: var(--surface-sunken);
  box-shadow: 0 26px 66px -30px var(--glow-gold-soft);
}
.game-media .shot img,
.game-media .shot video {
  display: block;
  width: 100%;
  height: auto;
}
.media-pair {
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.9rem, 2.5vw, 1.6rem);
  align-items: start;
}
.media-pair .shot:first-child { rotate: -0.8deg; }
.media-pair .shot:last-child { rotate: 0.7deg; margin-top: 2.2rem; }
.media-stack { grid-template-columns: 1fr; width: 100%; }
.media-stack .shot:first-child { rotate: -0.5deg; }
.media-stack .shot:last-child { rotate: 0.4deg; }
.game-media .shot:only-child {
  rotate: -0.6deg;
  max-width: min(340px, 84vw);
}
@media (prefers-reduced-motion: no-preference) {
  .game-media .shot { transition: rotate var(--motion-settle) var(--ease-settle); }
  .game:hover .shot { rotate: 0deg; }
}

.daily {
  margin-top: clamp(2.6rem, 7vh, 4.6rem);
  border: 1px solid var(--border-gilt);
  border-radius: var(--radius-16);
  background: var(--surface-raised);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  max-width: 760px;
}
.daily h3 {
  margin: 0.3em 0 0.4em;
  font: 600 var(--type-title)/1.2 var(--font-display);
}
.daily p { margin: 0; }
.daily b { font-weight: 600; }

/* ==========================================================================
   PLAY TOGETHER — one table display, every phone a seat
   ========================================================================== */
.table-diagram {
  display: grid;
  gap: 0.9rem;
  margin-top: 2.6rem;
  justify-items: center;
}
.table-card {
  order: -1;
  width: min(500px, 100%);
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  text-align: center;
  background: var(--surface-raised);
  border: 1px solid var(--border-gilt);
  border-radius: var(--radius-16);
  padding: 2.1rem 1.7rem;
  box-shadow: 0 0 90px var(--glow-gold-faint);
}
.table-glyph {
  width: 9px;
  height: 9px;
  background: var(--accent-gold);
  rotate: 45deg;
  border-radius: 2px;
}
.table-card b {
  font: 600 var(--type-title)/1.2 var(--font-display);
}
.table-card span:not(.table-glyph) {
  color: var(--text-secondary);
  font-size: var(--type-label);
  max-width: 34ch;
}
.seat {
  width: min(280px, 100%);
  display: grid;
  gap: 0.15rem;
  background: var(--surface-raised);
  border: 1px solid var(--border-gilt-faint);
  border-radius: var(--radius-10);
  padding: 0.9rem 1.1rem;
  font-size: var(--type-label);
  color: var(--text-secondary);
}
.seat b { color: var(--text-primary); font-weight: 600; }
.qr-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  border: 1px solid var(--border-gilt-faint);
  border-radius: var(--radius-10);
  padding: 0.8rem 1.1rem;
  font-size: var(--type-label);
  color: var(--text-secondary);
}
.qr-chip svg { color: var(--accent-gold); flex: none; }
@media (min-width: 840px) {
  .table-diagram {
    grid-template-columns: 1fr minmax(320px, 500px) 1fr;
    grid-template-areas:
      "s1 t s2"
      "s3 t s4"
      ".  qr .";
    align-items: center;
    gap: 1.1rem 1.4rem;
  }
  .table-card { order: 0; grid-area: t; width: 100%; }
  .s1 { grid-area: s1; justify-self: end; }
  .s2 { grid-area: s2; justify-self: start; }
  .s3 { grid-area: s3; justify-self: end; }
  .s4 { grid-area: s4; justify-self: start; }
  .qr-chip { grid-area: qr; justify-self: center; }
}
.together-note {
  margin: 2.2rem 0 0;
  color: var(--text-secondary);
  max-width: 62ch;
}

/* ==========================================================================
   THE RULE UNDERNEATH — recessed band
   ========================================================================== */
.values {
  background: var(--surface-sunken);
  border-block: 1px solid var(--border-gilt-faint);
}
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  margin: 1.6rem 0 0;
  padding: 0;
}
.chips li {
  border: 1px solid var(--border-gilt-faint);
  border-radius: var(--radius-pill); /* tiny chips only — the one pill use */
  padding: 0.35em 0.95em;
  font: 500 var(--type-caption)/1.4 var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ==========================================================================
   FREE & PAID
   ========================================================================== */
.law {
  margin: 1.1rem 0 0;
  font: 600 var(--type-heading)/1.3 var(--font-display);
  color: var(--accent-gold);
}
.free-cols {
  display: grid;
  gap: 1.2rem;
  margin-top: 2.2rem;
}
@media (min-width: 760px) {
  .free-cols { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
}
.free-cols .col {
  background: var(--surface-raised);
  border: 1px solid var(--border-gilt-faint);
  border-radius: var(--radius-16);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.free-cols h3 {
  margin: 0 0 0.5em;
  font: 600 var(--type-heading)/1.25 var(--font-display);
}
.free-cols p { margin: 0; color: var(--text-secondary); }
.free-cols b { color: var(--text-primary); }
.free-lane {
  margin: 1.6rem 0 0;
  color: var(--text-secondary);
  max-width: 70ch;
}
.nevers { margin-top: 1.4rem; }

/* ==========================================================================
   CHURCH LICENSE / DOWNLOAD
   ========================================================================== */
.church .cta-row { justify-content: flex-start; margin-top: 1.8rem; }

.download-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 860px) {
  .download-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 4rem;
  }
}
.download-copy .cta-row {
  justify-content: flex-start;
  margin-top: 1.8rem;
}
.download-shot {
  justify-self: center;
  max-width: min(300px, 78vw);
  rotate: 1deg;
  border-radius: var(--radius-16);
  overflow: hidden;
  border: 1px solid var(--border-gilt-faint);
  box-shadow: 0 26px 66px -28px var(--glow-gold-soft);
}
.download-shot img { display: block; width: 100%; height: auto; }

/* ----- Footer ----- */
.site-foot {
  position: relative;
  overflow: hidden;
  background: var(--surface-sunken);
  border-top: 1px solid var(--border-gilt-faint);
  padding-block: 3rem 3.6rem;
  margin-top: 2rem;
}
.site-foot > .wrap { position: relative; z-index: 1; }
.foot-grid {
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  text-align: center;
}
.foot-grid .brand { margin: 0; }
.foot-grid .brand img { width: 32px; height: 32px; }
.foot-tag {
  margin: 0;
  font: 600 var(--type-caption)/1.4 var(--font-ui);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.foot-note,
.foot-legal {
  margin: 0;
  font-size: var(--type-caption);
  color: var(--text-secondary);
}

/* ==========================================================================
   Motion — every ambient/decorative animation dies under reduced motion
   ========================================================================== */
html.js .reveal { opacity: 0; translate: 0 16px; }
html.js .reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  html.js .reveal {
    transition:
      opacity var(--motion-slow) var(--ease-settle),
      translate var(--motion-slow) var(--ease-settle);
  }
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; translate: 0 0; }
  .verse-halo, .site-head, .btn, .nav-links, .nav-links a,
  .nav-toggle, .nav-rules i,
  .cf-star .glow, .cf-star .core, .cf-label,
  .game-media .shot { transition: none; }
  .hero-constellation .hc-star { opacity: 1; }
  .hero-constellation .hc-line { stroke-dashoffset: 0; }
}

/* ==========================================================================
   DEMOS — the interactive layer (INTERACTIVE_DEMOS_PLAN.md).
   Additive over figure.shot: with js/demos/ deleted, none of this renders.
   Quiet by law — the illumination hero stays the page's one loud gesture.
   ========================================================================== */

/* ----- The invitation, over the screenshot ----- */
figure.demo-host { position: relative; }
.demo-start {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  translate: -50% 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.72em 1.15em;
  background: var(--demo-scrim);
  color: var(--text-primary);
  border: 1px solid var(--border-gilt);
  border-radius: var(--radius-10);
  font: 600 var(--type-label)/1.2 var(--font-ui);
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color var(--motion-base) var(--ease-settle),
    box-shadow var(--motion-base) var(--ease-settle);
}
.demo-start:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 0 26px var(--glow-gold-soft);
}
.demo-glyph {
  width: 7px;
  height: 7px;
  background: var(--accent-gold);
  rotate: 45deg;
  border-radius: 1px;
  flex: none;
}

/* A live demo takes the full media column; the plate straightens. */
.game-media .shot.demo-live {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  rotate: 0deg;
  margin-top: 0;
  border-color: var(--border-gilt);
}

/* ----- The frame every demo lives in ----- */
.demo {
  padding: 0.85rem clamp(0.9rem, 3vw, 1.5rem) 1.2rem;
}
.demo:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: -3px;
}
.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}
.demo-name {
  font: 600 var(--type-caption)/1.4 var(--font-ui);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
}
.demo-quiet {
  background: transparent;
  border: 0;
  padding: 0.45em 0.6em;
  border-radius: var(--radius-6);
  color: var(--text-secondary);
  font: 500 var(--type-caption)/1.4 var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--motion-fast) linear;
}
.demo-quiet:hover { color: var(--text-primary); }

.demo-panel {
  position: relative;
  overflow: hidden;
  background: var(--surface-raised-2);
  border: 1px solid var(--border-gilt-faint);
  border-radius: var(--radius-16);
  padding: clamp(1rem, 3.5vw, 1.7rem);
}

/* The pointer bloom's specular pass — the hero's math, sized down. */
.demo-spec {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: calc(var(--spec-o, 0) * 0.4);
  background: radial-gradient(circle 110px at var(--mx, 50%) var(--my, 50%), var(--spec-warm), transparent 72%);
  mix-blend-mode: screen;
}

.demo-kicker {
  margin: 0 0 0.4em;
  font: 600 var(--type-caption)/1.4 var(--font-ui);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
}
.demo-prompt {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: var(--type-label);
}

/* Scripture inside a demo: the same reverence as everywhere else.
   Italic Cormorant is Scripture and only Scripture. */
.demo-verse { margin: 0 0 1.1rem; }
.demo-scripture {
  margin: 0;
  font: italic 500 var(--type-scripture)/1.6 var(--font-display);
  color: var(--text-scripture);
  text-wrap: pretty;
}
.demo-ref {
  margin: 0.45em 0 0;
  font: 500 var(--type-scripture-ref)/1.3 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
}
.demo-versecard {
  margin-top: 0.9rem;
  padding: 1rem 1.2rem;
  background: var(--surface-raised);
  border: 1px solid var(--border-gilt);
  border-radius: var(--radius-10);
}

/* The hand-off bar: the withheld depth, then the store. */
.demo-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1rem;
  margin-top: 0.95rem;
}
.demo-outro {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--type-caption);
}
.demo-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-left: auto;
}

/* Content arrives on a short fade — never a blank frame, never a pop. */
.demo-fade-in { animation: demo-fade var(--motion-base) var(--ease-settle); }
@keyframes demo-fade { from { opacity: 0; } }

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  filter: none;
}

/* ----- Selah — the dial and the scroll (§5.1) ----- */
.selah-clue {
  margin: 0 0 0.25em;
  font: 600 var(--type-heading)/1.25 var(--font-display);
}
.selah-bar {
  position: relative;
  height: 52px;
  --dial-thumb: 24px;
}
.selah-layer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--dial-thumb) / 2);
  right: calc(var(--dial-thumb) / 2);
}
.selah-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  translate: 0 -50%;
  background: var(--border-gilt-faint);
  border-radius: 1px;
}
.selah-zones {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 14px;
  translate: 0 -50%;
}
.selah-band {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: var(--radius-6);
}
.selah-band-grey { left: 0; width: 100%; background: var(--metal-grey); opacity: 0.35; }
.selah-band-bronze { background: var(--metal-bronze); opacity: 0.5; }
.selah-band-silver { background: var(--metal-silver); opacity: 0.65; }
.selah-band-gold {
  background: var(--accent-gold);
  box-shadow: 0 0 18px var(--glow-gold-strong);
}
.selah-hair {
  position: absolute;
  top: calc(50% - 0.5px);
  height: 1px;
  width: 0;
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--glow-gold-soft);
}
.selah-hair.drawn { width: var(--hair-w, 0%); }

.selah-dial {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
.selah-dial:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: var(--radius-6);
}
.selah-dial::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.selah-dial::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: var(--dial-thumb);
  height: var(--dial-thumb);
  margin-top: calc((52px - var(--dial-thumb)) / 2);
  background: var(--accent-gold);
  border: 1px solid var(--gold-leaf-light);
  border-radius: 4px;
  transform: rotate(45deg);
  box-shadow: 0 0 14px var(--glow-gold-soft);
}
.selah-dial::-moz-range-track { background: transparent; }
.selah-dial::-moz-range-thumb {
  width: var(--dial-thumb);
  height: var(--dial-thumb);
  background: var(--accent-gold);
  border: 1px solid var(--gold-leaf-light);
  border-radius: 4px;
  transform: rotate(45deg);
  box-shadow: 0 0 14px var(--glow-gold-soft);
}

.selah-poles {
  display: flex;
  justify-content: space-between;
  margin-top: 0.1rem;
  font: 600 var(--type-caption)/1.4 var(--font-ui);
  letter-spacing: 0.14em;
  color: var(--text-secondary);
}
.selah-pos {
  margin: 0.55rem 0 0;
  min-height: 1.4em;
  text-align: center;
  font: 500 var(--type-label)/1.4 var(--font-ui);
  color: var(--text-secondary);
}
.selah-pos.is-locked { color: var(--text-primary); font-weight: 600; }

.selah-act {
  display: flex;
  justify-content: center;
  margin-top: 0.9rem;
  min-height: 44px;
}
.selah-lock {
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--motion-base) var(--ease-settle);
}
.touched .selah-lock { visibility: visible; opacity: 1; }
.selah-lock.is-done {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-gilt-faint);
  cursor: default;
  box-shadow: none;
  filter: none;
}

.selah-caption {
  margin: 0.5rem 0 0;
  text-align: center;
  font: 600 var(--type-subheading)/1.3 var(--font-display);
  color: var(--text-primary);
}
.selah-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 0.55em;
  rotate: 45deg;
  border-radius: 2px;
  background: var(--metal-grey);
}
.selah-caption.tier-gold .selah-swatch { background: var(--accent-gold); box-shadow: 0 0 10px var(--glow-gold-soft); }
.selah-caption.tier-silver .selah-swatch { background: var(--metal-silver); }
.selah-caption.tier-bronze .selah-swatch { background: var(--metal-bronze); }

@media (prefers-reduced-motion: no-preference) {
  /* The scroll-unfurl: the bands wipe open from center. */
  .selah-zones {
    clip-path: inset(0 50% 0 50% round var(--radius-6));
    transition: clip-path var(--motion-slow) var(--ease-settle);
  }
  .selah-zones.open { clip-path: inset(0 0 0 0 round var(--radius-6)); }
  .selah-zones.pulse .selah-band-gold {
    animation: selah-pulse 600ms var(--ease-settle) 1;
  }
  @keyframes selah-pulse {
    45% { box-shadow: 0 0 30px var(--glow-gold-strong); scale: 1 1.3; }
  }
  .selah-hair { transition: width var(--motion-base) var(--ease-settle); }
}

/* ----- Tested Stone — build, then the storm (§5.4) ----- */
.ts-grid {
  display: grid;
  grid-template-columns: repeat(var(--ts-cols, 4), 1fr);
  gap: 6px;
  margin-top: 0.4rem;
}
.ts-cell {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  display: grid;
  place-items: center;
  background: var(--surface-raised);
  border: 1px solid var(--border-gilt-faint);
  border-radius: var(--radius-10);
  box-shadow: inset 0 2px 10px var(--shade-warm);
  cursor: pointer;
  transition: border-color var(--motion-fast) linear;
}
.ts-cell:hover { border-color: var(--border-gilt); }
.ts-cell.is-bedrock {
  background: var(--surface-sunken);
  border-color: var(--border-gilt);
}
.ts-cell.is-bedrock::before {
  content: "";
  position: absolute;
  width: 56%;
  aspect-ratio: 1;
  border: 1.5px solid var(--border-gilt);
  border-radius: 50%; /* an engraving on the stone, not chrome */
  opacity: 0.85;
}
.ts-cell.has-verse { border-color: var(--accent-gold); }

.ts-legend {
  display: flex;
  align-items: center;
  gap: 0.45em;
  margin: 0.55rem 0 0;
  font: 500 var(--type-caption)/1.4 var(--font-ui);
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}
.ts-key { width: 12px; height: 12px; flex: none; }
.ts-key-earth {
  background: var(--surface-raised);
  border: 1px solid var(--border-gilt-faint);
  border-radius: 4px;
}
.ts-key-bedrock {
  margin-left: 0.9em;
  background: var(--surface-sunken);
  border: 1.5px solid var(--border-gilt);
  border-radius: 50%;
}

.ts-yard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  min-height: 48px;
}
.ts-quarry {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
}
.ts-stone {
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--accent-gold);
  border: 1px solid var(--gold-leaf-light);
  border-radius: var(--radius-10);
  box-shadow: inset 0 2px 4px var(--spec-warm), 0 0 12px var(--glow-gold-faint);
  cursor: grab;
  touch-action: none;
  transition:
    translate var(--motion-fast) var(--ease-settle),
    box-shadow var(--motion-fast) var(--ease-settle);
}
.ts-stone.is-selected {
  translate: 0 -3px;
  border-color: var(--focus-ring);
  box-shadow: inset 0 2px 4px var(--spec-warm), 0 0 20px var(--glow-gold-strong);
}
.ts-stone.is-lifting { opacity: 0.35; }
.ts-ghost {
  position: fixed;
  z-index: 80;
  translate: -50% -50%;
  pointer-events: none;
  cursor: grabbing;
}
.ts-placed {
  display: block;
  width: 72%;
  height: 72%;
  background: var(--accent-gold);
  border: 1px solid var(--gold-leaf-light);
  border-radius: var(--radius-6);
  box-shadow: inset 0 2px 4px var(--spec-warm);
}
.ts-placed.is-held {
  box-shadow: inset 0 2px 4px var(--spec-warm), 0 0 22px var(--glow-gold-strong);
}
.ts-placed.is-swept { opacity: 0; }

/* Set in the UI face, as the app sets its own verdict line — visibly
   distinct from Scripture, which alone gets the italic serif. */
.ts-caption {
  margin: 0.95rem 0 0;
  font: 600 var(--type-label)/1.45 var(--font-ui);
  color: var(--text-primary);
}

.ts-rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background-image:
    repeating-linear-gradient(112deg, transparent 0 12px, var(--rain-streak) 12px 13px, transparent 13px 34px),
    repeating-linear-gradient(112deg, transparent 0 23px, var(--rain-streak-faint) 23px 24px, transparent 24px 61px);
  transition: opacity var(--motion-base) linear;
}

@media (prefers-reduced-motion: no-preference) {
  .is-raining .ts-rain {
    opacity: 1;
    animation: ts-rain 700ms linear infinite;
  }
  @keyframes ts-rain {
    to { background-position: -140px 260px, -90px 180px; }
  }
  .ts-placed.is-swept {
    translate: 130% 170%;
    rotate: var(--sweep-spin, 30deg);
    transition:
      translate 680ms var(--ease-settle) var(--sweep-delay, 0ms),
      rotate 680ms var(--ease-settle) var(--sweep-delay, 0ms),
      opacity 680ms linear var(--sweep-delay, 0ms);
  }
  .ts-placed.is-held { animation: ts-hold 700ms var(--ease-settle) 1; }
  @keyframes ts-hold {
    45% { scale: 1.08; box-shadow: inset 0 2px 4px var(--spec-warm), 0 0 34px var(--glow-gold-strong); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .ts-placed.is-swept { transition: opacity var(--motion-fast) linear; }
}

/* ----- The Gate — set the Measure (§5.2) ----- */
.gate-title {
  margin: 0 0 0.45em;
  font: 600 var(--type-heading)/1.25 var(--font-display);
}
.gate-docket { margin: 0 0 1rem; }
.gate-claim {
  background: var(--surface-raised);
  border: 1px solid var(--border-gilt-faint);
  border-radius: var(--radius-10);
  padding: 0.8rem 1rem;
}
.gate-claim .demo-kicker { margin-bottom: 0.25em; }
.gate-claimtext {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--type-label);
}
.gate-case {
  position: relative;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-gilt-faint);
  margin-bottom: 1.1rem;
}
.gate-case.is-compact .gate-title { font-size: var(--type-label); margin-bottom: 0.35em; }
.gate-case.is-compact .gate-docket {
  font-size: var(--type-caption);
  color: var(--text-secondary);
  margin-bottom: 0;
}
.gate-case.is-compact .gate-claim { display: none; }

.gate-mark {
  position: absolute;
  top: 0.1rem;
  right: 0.1rem;
  font: 700 var(--type-caption)/1 var(--font-ui);
  font-style: normal;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-6);
  padding: 0.45em 0.5em 0.45em 0.72em;
  rotate: -7deg;
  opacity: 0.92;
}

.gate-rail {
  position: relative;
  display: flex;
  border: 0;
  margin: 0 0 1.1rem;
  padding: 0;
}
.gate-rail::before {
  content: "";
  position: absolute;
  left: 11%;
  right: 11%;
  top: calc(0.35rem + 7px);
  height: 1px;
  background: var(--border-gilt-faint);
}
.gate-tick {
  position: relative;
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding-top: 0.35rem;
  cursor: pointer;
}
.gate-tickmark {
  width: 14px;
  height: 14px;
  rotate: 45deg;
  border-radius: 3px;
  border: 1.5px solid var(--border-gilt);
  background: transparent;
  transition:
    background-color var(--motion-fast) linear,
    box-shadow var(--motion-base) var(--ease-settle);
}
.gate-tick:hover .gate-tickmark { border-color: var(--accent-gold); }
.gate-radio:checked ~ .gate-tickmark {
  background: var(--accent-gold);
  border-color: var(--gold-leaf-light);
  box-shadow: 0 0 14px var(--glow-gold-soft);
}
.gate-radio:focus-visible ~ .gate-tickmark {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}
.gate-ticklabel {
  font: 500 var(--type-caption)/1.25 var(--font-ui);
  color: var(--text-secondary);
  text-align: center;
}
.gate-radio:checked ~ .gate-ticklabel { color: var(--text-primary); font-weight: 600; }
.gate-radio:disabled ~ .gate-ticklabel { opacity: 0.75; }

.gate-sealrow { display: flex; justify-content: center; }
.gate-seal {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem 0.6rem;
  background: transparent;
  border: 0;
  border-radius: var(--radius-16);
  color: var(--text-primary);
  cursor: pointer;
}
.gate-seal:disabled { cursor: default; opacity: 0.45; }
.gate-sealface {
  position: relative;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: var(--accent-gold-deep);
  border: 1.5px solid var(--border-gilt);
  border-radius: var(--radius-16);
  box-shadow: inset 0 2px 5px var(--spec-warm);
  transition: box-shadow var(--motion-base) var(--ease-settle);
}
.gate-seal:not(:disabled):hover .gate-sealface {
  box-shadow: inset 0 2px 5px var(--spec-warm), 0 0 26px var(--glow-gold-soft);
}
.gate-sealring {
  position: absolute;
  width: 66%;
  aspect-ratio: 1;
  border: 1.5px solid var(--accent-gold);
  border-radius: 50%; /* the engraved seal ring — an object, not chrome */
  opacity: 0.9;
}
.gate-sealglyph {
  width: 10px;
  height: 10px;
  background: var(--gold-leaf-light);
  rotate: 45deg;
  border-radius: 2px;
}
.gate-seallabel { font: 600 var(--type-label)/1.2 var(--font-ui); }

.gate-spotlight-kicker { margin-top: 0.4em; }
.gate-echo { display: flex; gap: 1.1rem; margin: 0.2rem 0 0.5rem; }
.gate-echo .gate-tickmark { border-color: var(--border-gilt-faint); }
.gate-echo .gate-tickmark.is-chosen {
  background: var(--accent-gold);
  border-color: var(--gold-leaf-light);
  box-shadow: 0 0 14px var(--glow-gold-soft);
}
.gate-echoname {
  margin: 0 0 0.9rem;
  font: 600 var(--type-label)/1.3 var(--font-ui);
}
.gate-line {
  margin: 0 0 0.5em;
  color: var(--text-secondary);
  font-size: var(--type-label);
}
.gate-line-turn { color: var(--text-primary); font-weight: 600; }
.gate-measure .demo-verse { margin-top: 0.7rem; }

@media (prefers-reduced-motion: no-preference) {
  /* Scripture arrives on settle — decelerating, unveiled, never a burst. */
  .gate-unseal .demo-verse,
  .gate-measure .demo-verse,
  .gate-measure .gate-echo,
  .gate-measure .gate-echoname,
  .gate-line {
    opacity: 0;
    translate: 0 10px;
    animation: demo-settle var(--motion-settle) var(--ease-settle) var(--enter-delay, 0ms) forwards;
  }
  @keyframes demo-settle {
    to { opacity: 1; translate: 0 0; }
  }
  .gate-seal.is-pressed .gate-sealface { animation: gate-press 340ms var(--ease-settle) 1; }
  @keyframes gate-press {
    45% { scale: 0.88; box-shadow: inset 0 2px 5px var(--spec-warm), 0 0 34px var(--glow-gold-strong); }
  }
  .gate-mark.is-landing { animation: gate-stamp 300ms var(--ease-settle) 1; }
  @keyframes gate-stamp {
    from { scale: 1.7; opacity: 0; }
  }
}

/* ----- Hidden Word — the tile and the break (§5.3) ----- */
.hw-clue {
  margin: 0 0 0.25em;
  font: 600 var(--type-heading)/1.25 var(--font-display);
}
.hw-cluecount { color: var(--accent-gold); }
.hw-field { position: relative; }
.hw-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.is-breaking .hw-grid { pointer-events: none; }
.hw-cell {
  position: relative;
  min-height: 62px;
  padding: 0.4em 0.5em;
  display: grid;
  place-items: center;
  background: var(--surface-raised);
  border: 1px solid var(--border-gilt-faint);
  border-radius: var(--radius-10);
  box-shadow: inset 0 2px 10px var(--shade-warm);
  color: var(--text-primary);
  font: 600 var(--type-caption)/1.25 var(--font-ui);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--motion-fast) linear;
}
.hw-cell:hover { border-color: var(--border-gilt); }
/* A lit oil-lamp tablet: gold ground, dark ink — the AAA pair. */
.hw-cell.is-lit,
.hw-cell.is-fatal {
  background: var(--accent-gold);
  border-color: var(--gold-leaf-light);
  color: var(--text-on-gold);
  box-shadow: 0 0 18px var(--glow-gold-soft);
}
.hw-cell.is-miss { opacity: 0.55; }
.hw-shroud {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-10);
  background: var(--surface-sunken);
  opacity: 0;
  pointer-events: none;
}
.is-broken .hw-shroud { opacity: 0.88; }
.hw-crack {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hw-crack polyline {
  fill: none;
  stroke: var(--star-dim);
  stroke-width: 1.25px;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}
.hw-caption {
  margin: 0.95rem 0 0;
  font: 600 var(--type-label)/1.45 var(--font-ui);
}
.hw-reveal { margin-top: 1.1rem; }
.hw-breaktitle {
  margin: 0 0 0.45em;
  font: 600 var(--type-title)/1.2 var(--font-display);
}
.hw-verdict {
  margin: 0;
  font: 600 var(--type-label)/1.4 var(--font-ui);
  color: var(--text-secondary);
}
@media (prefers-reduced-motion: no-preference) {
  .is-broken .hw-cell {
    translate: var(--shear-x, 0) 26px;
    rotate: var(--shear-r, 0deg);
    opacity: 0;
    transition:
      translate 560ms var(--ease-settle) var(--shear-delay, 0ms),
      rotate 560ms var(--ease-settle) var(--shear-delay, 0ms),
      opacity 560ms linear var(--shear-delay, 0ms);
  }
  .is-broken .hw-shroud {
    transition: opacity 520ms var(--ease-settle) 240ms;
  }
  .is-cracked .hw-crack polyline {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: hw-crackdraw 240ms linear forwards;
  }
  @keyframes hw-crackdraw { to { stroke-dashoffset: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  /* The still, fractured board: dimmed tiles under the dark slab. */
  .is-broken .hw-cell { opacity: 0.4; }
}

/* ----- Bibleheads — swipe and the grace window (§5.5) ----- */
.bh-stagebox { position: relative; }
.bh-dealrow,
.bh-count {
  min-height: 230px;
  display: grid;
  place-items: center;
}
.bh-count {
  margin: 0;
  font: 600 4rem/1 var(--font-display);
  color: var(--accent-gold);
}
.bh-wick {
  height: 4px;
  background: var(--border-gilt-faint);
  border-radius: 2px;
  overflow: hidden;
}
.bh-wickfill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent-gold);
  border-radius: 2px;
}
/* The last two seconds: the wick warms down to ember and breathes. */
.bh-wick.is-ember .bh-wickfill {
  background: var(--accent-gold-deep);
  box-shadow: 0 0 12px var(--glow-gold-strong);
}
.bh-grace {
  margin: 0.45rem 0 0;
  text-align: center;
  font: 600 var(--type-caption)/1.4 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-gold);
}
.bh-card {
  position: relative;
  margin-top: 0.7rem;
  min-height: 168px;
  display: grid;
  place-items: center;
  background: var(--surface-raised);
  border: 1px solid var(--border-gilt-faint);
  border-radius: var(--radius-16);
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  transition:
    border-color var(--motion-fast) linear,
    box-shadow var(--motion-fast) linear,
    opacity var(--motion-fast) linear;
}
.bh-card.flash-got {
  border-color: var(--accent-gold);
  box-shadow: inset 0 0 60px var(--glow-gold-soft), 0 0 24px var(--glow-gold-soft);
}
.bh-card.flash-pass { opacity: 0.7; } /* a pass is its own small grief */
.bh-name {
  margin: 0;
  padding: 0 0.5em;
  font: 800 clamp(1.8rem, 6vw, 3rem)/1.1 var(--font-ui);
  text-align: center;
}
/* Long names shrink; they never break mid-word — the caller reads them
   whole, at a glance. */
.bh-name.long { font-size: clamp(1.3rem, 4.4vw, 2.2rem); }
.bh-chip {
  position: absolute;
  padding: 0.3em 0.7em;
  background: var(--surface-raised);
  border: 1px solid var(--border-gilt-faint);
  border-radius: var(--radius-10);
  font: 500 var(--type-caption)/1.3 var(--font-ui);
  font-style: normal;
  color: var(--text-secondary);
  opacity: 0;
}
.bh-chip-0 { top: 10%; left: 5%; rotate: -3deg; }
.bh-chip-1 { bottom: 10%; right: 6%; rotate: 2deg; }
.bh-chip.in {
  opacity: 1;
  transition: opacity var(--motion-slow) var(--ease-settle);
}
.bh-controls {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 0.55rem;
}
.is-carousel { padding-top: 0.4rem; }
.bh-leaf {
  display: grid;
  gap: 0.3rem;
  justify-items: center;
  text-align: center;
  background: var(--surface-raised);
  border: 1px solid var(--border-gilt);
  border-radius: var(--radius-16);
  padding: 1.3rem 1.2rem 1.1rem;
  cursor: pointer;
}
.bh-seal {
  width: 12px;
  height: 12px;
  rotate: 45deg;
  border-radius: 2px;
}
.bh-seal.is-got {
  background: var(--accent-gold);
  box-shadow: 0 0 12px var(--glow-gold-soft);
}
.bh-seal.is-pass {
  background: transparent;
  border: 1.5px solid var(--border-gilt);
}
.bh-leafname {
  margin: 0.15em 0 0;
  font: 600 var(--type-heading)/1.25 var(--font-display);
}
.bh-leafstate {
  margin: 0;
  font: 600 var(--type-caption)/1.4 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
}
.bh-leafreveal {
  margin: 0.35em 0 0;
  color: var(--text-secondary);
  max-width: 46ch;
}
.bh-note { margin: 0; color: var(--text-secondary); }
@media (prefers-reduced-motion: no-preference) {
  .bh-wick.is-ember .bh-wickfill { animation: bh-ember 600ms ease-in-out infinite alternate; }
  @keyframes bh-ember {
    to { box-shadow: 0 0 22px var(--glow-gold-strong); }
  }
  .bh-grace { animation: bh-grace 700ms ease-in-out infinite alternate; }
  @keyframes bh-grace {
    from { opacity: 0.55; }
  }
}

/* The mark a previewed demo wears: stand-in content, localhost only. */
.demo-placeholder {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 3;
  padding: 0.3em 0.6em;
  border: 1px solid var(--border-gilt);
  border-radius: var(--radius-6);
  background: var(--scrim-warm);
  color: var(--accent-gold);
  font: 700 0.6875rem/1 var(--font-ui);
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  rotate: 2deg;
  pointer-events: none;
}

/* Tested Stone: the quiet invitation to the verse beat. */
.ts-hint {
  margin: 0.4rem 0 0;
  font-size: var(--type-caption);
  color: var(--text-secondary);
}

/* ----- Living Waterfall — complete the constellation (§5.6) ----- */
.lw-field {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 0.4rem;
}
.lw-cell {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: var(--surface-sunken);
  border: 1px solid var(--border-gilt-faint);
  border-radius: var(--radius-10);
}
.lw-block {
  display: grid;
  place-items: center;
  width: 88%;
  min-height: 66%;
  padding: 0.3em 0.4em;
  background: var(--surface-raised);
  border: 1px solid var(--border-gilt);
  border-radius: var(--radius-6);
  color: var(--text-primary);
  font: 600 var(--type-caption)/1.2 var(--font-ui);
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}
.lw-open {
  width: 88%;
  min-height: 66%;
  padding: 0;
  background: transparent;
  border: 1px dashed var(--border-gilt);
  border-radius: var(--radius-6);
  cursor: pointer;
  transition: border-color var(--motion-fast) linear, box-shadow var(--motion-fast) linear;
}
.lw-open:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 0 14px var(--glow-gold-faint);
}
.lw-tray {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
  min-height: 52px;
}
.lw-pick {
  width: auto;
  min-width: 86px;
  min-height: 44px;
  cursor: grab;
  touch-action: none;
  transition:
    translate var(--motion-fast) var(--ease-settle),
    box-shadow var(--motion-fast) var(--ease-settle);
}
.lw-pick.is-selected {
  translate: 0 -3px;
  border-color: var(--focus-ring);
  box-shadow: 0 0 18px var(--glow-gold-soft);
}
.lw-pick.is-lifting { opacity: 0.35; }
.lw-ghost {
  position: fixed;
  z-index: 80;
  translate: -50% -50%;
  pointer-events: none;
  min-width: 86px;
  min-height: 44px;
}
.lw-block.is-charged {
  border-color: var(--gold-leaf-light);
  box-shadow: 0 0 18px var(--glow-gold-soft), inset 0 0 12px var(--glow-gold-faint);
}
.lw-block.is-spent { opacity: 0; }
.lw-thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.lw-thread polyline {
  fill: none;
  stroke: var(--accent-gold);
  stroke-width: 1.25px;
  vector-effect: non-scaling-stroke;
  opacity: 0.85;
}
.lw-thread.is-fading { opacity: 0; }
.lw-label {
  position: absolute;
  translate: -50% -50%;
  margin: 0;
  padding: 0.25em 0.7em;
  background: var(--scrim-warm);
  border: 1px solid var(--border-gilt);
  border-radius: var(--radius-6);
  font: 600 var(--type-label)/1.3 var(--font-display);
  color: var(--text-primary);
  white-space: nowrap;
  pointer-events: none;
}
.lw-label.is-fading { opacity: 0; }
.lw-mote {
  position: absolute;
  width: 4px;
  height: 4px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--gold-leaf-light);
  box-shadow: 0 0 6px var(--glow-gold-strong);
  pointer-events: none;
}
.lw-toast {
  margin-top: 0.9rem;
  padding: 1rem 1.2rem;
  background: var(--surface-raised);
  border: 1px solid var(--border-gilt);
  border-radius: var(--radius-10);
  cursor: pointer;
}
.lw-toast.is-leaving { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .lw-block.is-charged { animation: lw-charge 300ms var(--ease-settle) 1; }
  @keyframes lw-charge {
    45% { box-shadow: 0 0 26px var(--glow-gold-strong), inset 0 0 12px var(--glow-gold-faint); }
  }
  .lw-thread polyline.is-drawing {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: lw-draw 220ms var(--ease-settle) forwards;
  }
  @keyframes lw-draw { to { stroke-dashoffset: 0; } }
  .lw-thread, .lw-label { transition: opacity var(--motion-base) var(--ease-settle); }
  .lw-block.is-spent { transition: opacity var(--motion-base) linear; }
  .lw-mote { transition: translate 260ms var(--ease-settle), opacity 260ms linear; }
  .lw-mote.is-flying {
    translate: calc(-50% + var(--dx, 0px)) calc(-50% + var(--dy, 0px));
    opacity: 0;
  }
  .lw-toast {
    translate: 0 10px;
    opacity: 0;
    transition:
      translate var(--motion-settle) var(--ease-settle),
      opacity var(--motion-settle) var(--ease-settle);
  }
  .lw-toast.is-risen { translate: 0 0; opacity: 1; }
  .lw-toast.is-leaving {
    display: block;
    opacity: 0;
    pointer-events: none;
  }
  .lw-shake { animation: lw-shake 300ms linear 1; }
  @keyframes lw-shake {
    25% { translate: -5px 0; }
    55% { translate: 5px 0; }
    80% { translate: -2px 0; }
  }
}

/* ----- Guard the Flock — spot the twist (§5.7) ----- */
.gtf-frame {
  margin: 0 0 0.9rem;
  font: 500 var(--type-subheading)/1.35 var(--font-display);
}
.gtf-card {
  padding: 1rem 1.2rem;
  background: var(--surface-raised);
  border: 1.5px solid var(--border-gilt);
  border-radius: var(--radius-10);
  transition:
    border-color var(--motion-slow) var(--ease-settle),
    box-shadow var(--motion-slow) var(--ease-settle);
}
.gtf-card.is-twisted {
  border-color: var(--alarm-crimson);
  box-shadow: 0 0 26px -8px var(--alarm-crimson);
}
.gtf-phrase {
  display: inline;
  padding: 0.1em 0.15em;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius-6);
  color: var(--text-primary);
  font: 500 var(--type-body)/1.6 var(--font-ui);
  text-align: left;
  cursor: pointer;
  transition: background-color var(--motion-fast) linear;
}
.gtf-phrase:hover { background: var(--surface-raised); }
.gtf-phrase:disabled { cursor: default; }
.gtf-phrase.is-twist {
  text-decoration: underline;
  text-decoration-color: var(--alarm-crimson);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
.gtf-verse { margin-top: 1rem; }
.gtf-verse .demo-verse { margin-bottom: 0; }
.gtf-reveal { margin-top: 1rem; }
.gtf-line {
  margin: 0 0 0.4em;
  font: 600 var(--type-label)/1.45 var(--font-ui);
}
.gtf-note {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--type-label);
}

/* Under reduced motion, arrivals become one short fade; nothing decorative
   survives. (Beat-skipping itself happens in the modules.) */
@media (prefers-reduced-motion: reduce) {
  .demo-fade-in { animation-duration: var(--motion-fast); }
  .demo-start, .demo-quiet, .selah-lock, .ts-cell, .ts-stone,
  .gate-tickmark, .gate-sealface, .ts-rain,
  .hw-cell, .hw-shroud, .bh-card, .bh-chip,
  .lw-open, .lw-pick, .gtf-card, .gtf-phrase { transition: none; }
}

/* ==========================================================================
   THE SEVEN NODE COLORS — per-game signature accents (Matt, 2026-07-23).
   Each game carries its covenant hue in exactly three quiet places: its
   star in "The Seven" (hot core, colored halo — the app's own hub), a
   small star-badge beside its chapter's kicker, and the ambient glow
   under its screenshots (plus the demo chip's glyph, where one exists).
   No hue ever sets text — the AAA text law stays untouched — and all
   chrome, copy, and CTAs stay in the shared gold identity.
   ========================================================================== */

/* Scoping — the only place a node hue is ever chosen. */
#selah,            .cf-star[href="#selah"]            { --node: var(--node-selah);            --node-glow: var(--node-selah-glow); }
#bibleheads,       .cf-star[href="#bibleheads"]       { --node: var(--node-bibleheads);       --node-glow: var(--node-bibleheads-glow); }
#hidden-word,      .cf-star[href="#hidden-word"]      { --node: var(--node-hidden-word);      --node-glow: var(--node-hidden-word-glow); }
#living-waterfall, .cf-star[href="#living-waterfall"] { --node: var(--node-living-waterfall); --node-glow: var(--node-living-waterfall-glow); }
#tested-stone,     .cf-star[href="#tested-stone"]     { --node: var(--node-tested-stone);     --node-glow: var(--node-tested-stone-glow); }
#guard-the-flock,  .cf-star[href="#guard-the-flock"]  { --node: var(--node-guard-the-flock);  --node-glow: var(--node-guard-the-flock-glow); }
#the-gate,         .cf-star[href="#the-gate"]         { --node: var(--node-the-gate);         --node-glow: var(--node-the-gate-glow); }
#scarlet-thread,   .cf-star[href="#scarlet-thread"]   { --node: var(--node-scarlet-thread);   --node-glow: var(--node-scarlet-thread-glow); }

/* The Seven: a hot star, its color living in the halo. The glow circle is
   blurred into real falloff — a halo, never a hard-edged coin. */
.constellation .cf-star .glow {
  fill: var(--node, var(--accent-gold));
  filter: blur(7px);
  opacity: 0.45;
}
.constellation .cf-star .core {
  fill: var(--star);
  filter:
    drop-shadow(0 0 3px var(--node, var(--accent-gold)))
    drop-shadow(0 0 9px var(--node, var(--accent-gold)));
}
.constellation .cf-star:hover .glow,
.constellation .cf-star:focus-visible .glow { opacity: 0.75; }

/* The chapter badge: the game's own star, set small beside the kicker. */
.game .kicker::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.6em;
  background: var(--node, var(--accent-gold));
  rotate: 45deg;
  border-radius: 1px;
  box-shadow: 0 0 10px var(--node-glow, var(--glow-gold-soft));
  vertical-align: 0.05em;
}

/* The plates warm to their game's hue — ambience, never a takeover. */
.game .game-media .shot {
  box-shadow: 0 26px 66px -30px var(--node-glow, var(--glow-gold-soft));
}

/* The demo invitation's glyph joins its game's constellation. */
.game .demo-glyph { background: var(--node, var(--accent-gold)); }

/* ==========================================================================
   Store badges (added 2026-08-03: launch CTAs; placeholder hrefs until the
   real App Store / Google Play listing URLs exist).
   ========================================================================== */
.store-badge {
  display: inline-flex;
  border-radius: var(--radius-6);
}
.store-badge img { display: block; height: 46px; width: auto; }
.store-badge:hover img,
.store-badge:focus-visible img { filter: brightness(1.15); }
.store-badge:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

/* ==========================================================================
   Legal pages (privacy.html) — a single quiet reading column on the warm
   dark ground. Tokens only, per the law at the top of this file.
   ========================================================================== */
.legal { background: var(--surface-base); }
.legal-wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 7.5rem 1.25rem 5rem;
  font-family: var(--font-ui);
  color: var(--text-secondary);
  font-size: var(--type-body);
  line-height: 1.7;
}
.legal-wrap h1 {
  font-family: var(--font-display);
  font-size: var(--type-display-fluid);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.15;
  margin: 0 0 0.5rem;
}
.legal-updated {
  font-size: var(--type-caption);
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-gilt-faint);
}
.legal-wrap h2 {
  font-family: var(--font-ui);
  font-size: var(--type-heading);
  font-weight: 600;
  color: var(--text-primary);
  margin: 2.25rem 0 0.75rem;
}
.legal-wrap p { margin: 0 0 1rem; }
.legal-wrap ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.legal-wrap li { margin: 0 0 0.5rem; }
.legal-wrap b { color: var(--text-primary); font-weight: 600; }
.legal-wrap a {
  color: var(--accent-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-wrap a:hover { color: var(--gold-leaf-light); }
.legal-wrap a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-6);
}

/* The footer's legal line now carries the Privacy Policy link. */
.foot-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.foot-legal a:hover { color: var(--text-primary); }
.foot-legal a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
