/* WordWell Bible landing page · The Inscription
   A torchlit walk: a carved Greek wall in the dark, an arched doorway, a hall of columns, and daylight at the end.
   scene.js renders the hall; this sheet styles the words laid over it, and a plain stacked page when WebGL is absent. */

:root {
  color-scheme: dark;
  /* The hall (the walk is the theme: dark to daylight, the same in both system appearances) */
  --night: #0b0907;
  --cream: #efe7d6;
  --cream-2: #c9bfad;
  --cream-3: #9c9284;
  --bronze-hi: #d3b47e;
  --ember: #f0a25c;
  --hair-n: rgba(239, 231, 214, .16);
  --scrim: rgba(7, 6, 4, .66);
  /* Daylight (the app's own paper) */
  --paper: #F5F4F0;
  --ink: #24221E;
  --ink-2: #5E5950;
  --bronze-ink: #7C5F33;
  --serif: 'EB Garamond', Garamond, 'Iowan Old Style', Georgia, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --hebrew: 'Noto Serif Hebrew', 'SBL Hebrew', 'Times New Roman', serif;
  --bar-h: 76px;
  --next-room: 84px;   /* the Next control and its margin, kept clear under bottom-set words */
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); }
body { margin: 0; background: var(--night); color: var(--cream); font: 400 1.125rem/1.6 var(--serif); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
::selection { background: rgba(211, 180, 126, .32); color: var(--cream); }
input { caret-color: var(--bronze-hi); }
:focus-visible { outline: 2px solid var(--bronze-hi); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-width: thin; scrollbar-color: #3a342c transparent; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: #3a342c; border: 3px solid var(--night); border-radius: 8px; }
a { color: var(--bronze-hi); text-underline-offset: .18em; }
b { font-weight: 500; }
q { quotes: "“" "”"; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 50; padding: 8px 14px; background: var(--night); color: var(--cream); border: 1px solid var(--bronze-hi); border-radius: 20px; font: 500 14px var(--sans); transform: translateY(-200%); }
.skip:focus { transform: none; }

/* ---------- Top bar ---------- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(16px, 3.5vw, 56px); transition: color .6s; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; color: var(--cream); text-decoration: none; font: 500 1.25rem/1 var(--serif); letter-spacing: .005em; transition: color .6s; }
.mark { width: 36px; height: 36px; padding: 4px; border-radius: 9px; color: var(--bronze-hi); background: rgba(239, 231, 214, .06); box-shadow: inset 0 0 0 1px rgba(239, 231, 214, .12); transition: background .6s, color .6s; }
.bar-cta { display: inline-grid; place-items: center; white-space: nowrap; height: 40px; padding: 0 18px; border-radius: 20px; border: 1px solid var(--bronze-hi); color: var(--bronze-hi); text-decoration: none; font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; background: rgba(11, 9, 7, .4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .25s, color .25s, border-color .6s; }
.bar-cta:hover { background: var(--bronze-hi); color: #181410; }
html.day .wordmark { color: var(--ink); background: rgba(245, 244, 240, .72); padding: 4px 14px 4px 4px; margin-left: -4px; border-radius: 24px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
html.day .mark { color: var(--bronze-ink); background: rgba(110, 96, 74, .08); }
html.day .bar-cta { opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }   /* at the threshold the form is the action */

/* ---------- Shared type ---------- */
.ref { font: 500 11px/1.4 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--bronze-hi); }
.src { font: 400 12.5px/1.5 var(--sans); letter-spacing: .02em; color: var(--cream-3); }
h1, h2 { margin: 0; font-weight: 400; text-wrap: balance; }
h1 { font: 400 clamp(2.5rem, 5.2vw, 4.6rem)/1.02 var(--serif); letter-spacing: -.015em; color: var(--cream); }
h2 { font: 400 clamp(1.7rem, 3vw, 2.6rem)/1.12 var(--serif); letter-spacing: -.01em; color: var(--cream); }

/* ---------- Stage layout (WebGL): a fixed hall, words laid over it, scroll walks you through ---------- */
#scene { display: none; }
.torch-glow { display: none; }
html.stage #scene { display: block; position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; }
html.stage #track { height: calc(var(--track, 8) * 100vh); position: relative; z-index: 1; }
html.stage .ui { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
html.stage .st { position: absolute; opacity: 0; visibility: hidden; }
html.stage .st.on { visibility: visible; }
html.stage .st.live { pointer-events: auto; }
/* Reading scrims: a soft pool of shade behind each block of words, never a card. */
html.stage .st:not(.st-iphone)::before { content: ""; position: absolute; inset: -18% -14%; z-index: -1; background: radial-gradient(closest-side, var(--scrim), rgba(7, 6, 4, .38) 55%, transparent); pointer-events: none; }
/* The torch replaces the cursor over the dark hall (hover devices only). */
@media (hover: hover) and (pointer: fine) {
  html.stage.torch body { cursor: none; }
  html.stage.torch a, html.stage.torch button, html.stage.torch input { cursor: pointer; }
  html.stage.torch input { cursor: text; }
  html.stage.torch .torch-glow { display: block; position: fixed; left: 0; top: 0; z-index: 40; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, #fff3dc 0 30%, #ffb15e 55%, rgba(255, 140, 60, 0) 72%); box-shadow: 0 0 18px 6px rgba(255, 150, 70, .35); mix-blend-mode: screen; will-change: transform; opacity: 0; transition: opacity .4s; }
  html.stage.torch.pointered .torch-glow { opacity: 1; }
  /* Over the words the system pointer returns and the flame's dot steps aside, so it never sits on the word being read. */
  html.stage.torch.reading body { cursor: auto; }
  html.stage.torch.reading .torch-glow { opacity: 0; }
}

/* 0 · Entrance */
.inscription { display: none; }
html.stage .inscription { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html.stage .st-entrance { inset: 0; }
.intro { max-width: 34rem; }
html.stage .intro { position: absolute; left: clamp(20px, 5vw, 72px); bottom: calc(clamp(28px, 7vh, 72px) + var(--next-room) + env(safe-area-inset-bottom, 0px)); }
html.stage .st-entrance::before { display: none; }
/* The words arrive after the light catches. */
html.stage:not(.rm) .intro > * { opacity: 0; transform: translateY(14px); transition: opacity 1.1s cubic-bezier(.16, 1, .3, 1), transform 1.1s cubic-bezier(.16, 1, .3, 1); }
html.stage.lit .intro > * { opacity: 1; transform: none; }
html.stage.lit .intro > :nth-child(1) { transition-delay: 2.3s; }
html.stage.lit .intro > :nth-child(2) { transition-delay: 2.7s; }
html.stage.lit .intro > :nth-child(3) { transition-delay: 3.3s; }
html.stage .intro::before { content: ""; position: absolute; inset: -30% -25% -25% -20%; z-index: -1; background: radial-gradient(closest-side, rgba(7, 6, 4, .7), rgba(7, 6, 4, .35) 60%, transparent); }
.lede { margin-top: 14px; max-width: 32ch; font: 400 clamp(1.08rem, 1.4vw, 1.3rem)/1.42 var(--serif); color: var(--cream-2); }
.hint { margin-top: 18px; font: 500 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--ember); }
/* The Next control: on every screen until the daylight, it walks to the next stop and says where. The chevron's slow
   drop says the page goes on; scrolling, swiping and the arrow keys do the same as pressing it. */
.next { display: none; }
html.stage .next { display: flex; justify-content: center; position: fixed; left: 0; right: 0; bottom: calc(clamp(18px, 3.5vh, 30px) + env(safe-area-inset-bottom, 0px)); z-index: 20; pointer-events: none; transition: opacity .5s, visibility 0s; }
html.stage .next[hidden] { display: none; }
.next-btn { pointer-events: auto; display: inline-flex; align-items: center; gap: 14px; height: 52px; padding: 0 22px 0 26px; border-radius: 26px; border: 1px solid rgba(211, 180, 126, .72); background: rgba(11, 9, 7, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--cream); font: 600 12.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; box-shadow: 0 0 0 0 rgba(240, 162, 92, 0); transition: background .25s, border-color .25s, box-shadow .25s, transform .25s; }
.next-btn:hover { background: rgba(40, 30, 20, .7); border-color: var(--bronze-hi); box-shadow: 0 0 24px 2px rgba(240, 162, 92, .22); }
.next-btn:active { transform: scale(.98); }
.next-btn i { position: relative; width: 22px; height: 22px; border-radius: 50%; background: rgba(240, 162, 92, .16); }
.next-btn i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -6px 0 0 -4px; border: solid var(--ember); border-width: 0 2px 2px 0; transform: rotate(45deg); animation: next-drop 1.8s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes next-drop { 0%, 100% { translate: 0 -2px; opacity: .55 } 50% { translate: 0 3px; opacity: 1 } }
html.stage:not(.rm) .next-btn { opacity: 0; transform: translateY(12px); transition: opacity 1.1s cubic-bezier(.16, 1, .3, 1), transform 1.1s cubic-bezier(.16, 1, .3, 1), background .25s, border-color .25s, box-shadow .25s; }
html.stage.lit .next-btn { opacity: 1; transform: none; transition-delay: 3.9s, 3.9s, 0s, 0s, 0s; }
html.stage.walked .next-btn { transition-delay: 0s; }
/* If the scene fails (or never loads), the words and the way on still show, without waiting for a light that will not come. */
html.stage.scene-failed .intro > *, html.stage.scene-failed .next-btn { opacity: 1; transform: none; transition-delay: 0s; }
html.stage.at-end .next { opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }

/* 1 · English */
html.stage .st-english { left: 0; right: 0; bottom: calc(clamp(36px, 9vh, 96px) + var(--next-room) + env(safe-area-inset-bottom, 0px)); margin: 0 auto; width: min(92vw, 52rem); text-align: center; }
.kjv { margin: 0 0 14px; font: 400 clamp(1.7rem, 3.4vw, 3rem)/1.16 var(--serif); letter-spacing: -.01em; color: var(--cream); text-wrap: balance; }
.kjv em { font-style: normal; color: var(--bronze-hi); transition: color .25s, text-shadow .25s; }
/* The torch over a gilded ΛΟΓΟΣ lights the matching Word in the English (the --g values come from scene.js). */
:root { --g0: 0; --g1: 0; --g2: 0; }
.kjv em:nth-of-type(1) { color: color-mix(in srgb, var(--bronze-hi), #fff6e0 calc(var(--g0) * 100%)); text-shadow: 0 0 18px rgba(255, 190, 110, calc(var(--g0) * .9)); }
.kjv em:nth-of-type(2) { color: color-mix(in srgb, var(--bronze-hi), #fff6e0 calc(var(--g1) * 100%)); text-shadow: 0 0 18px rgba(255, 190, 110, calc(var(--g1) * .9)); }
.kjv em:nth-of-type(3) { color: color-mix(in srgb, var(--bronze-hi), #fff6e0 calc(var(--g2) * 100%)); text-shadow: 0 0 18px rgba(255, 190, 110, calc(var(--g2) * .9)); }
.note { margin: 16px auto 0; max-width: 40ch; font: italic 400 clamp(1.05rem, 1.4vw, 1.3rem)/1.4 var(--serif); color: var(--cream-2); }
.note i { font-style: normal; }

/* Side blocks (Verse View on the left, Word Detail on the right) */
html.stage .side-left, html.stage .side-right { top: 50%; width: min(36rem, 42vw); transform: translateY(-50%); }
html.stage .side-left { left: clamp(20px, 6vw, 96px); }
html.stage .side-right { right: clamp(20px, 6vw, 96px); }
.st-verse h2 { margin-top: 0; }
.lead { margin-top: 12px; font: 400 1.15rem/1.45 var(--serif); color: var(--cream-2); }

/* 2 · Verse View rows: each one is a button that opens its word */
.rows { list-style: none; margin: 22px 0 0; padding: 4px 0 0; border-top: 1px solid var(--hair-n); }
.rows li { border-bottom: 1px solid var(--hair-n); }
.rows button { display: grid; grid-template-columns: 7.5rem 5.5rem 1fr; align-items: baseline; gap: 14px; width: 100%; margin: 0; padding: 7px 0; border: 0; border-radius: 4px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.rows b { font: 400 1.6rem/1.2 var(--serif); color: var(--cream); text-align: right; transition: color .2s; }
.rows i { font: italic 400 1rem/1 var(--serif); color: var(--cream-3); }
.rows span { font: 400 1.2rem/1.2 var(--serif); color: var(--cream-2); text-decoration: underline 1px transparent; text-underline-offset: .22em; transition: color .2s, text-decoration-color .2s; }
.rows button:hover b, .rows button:hover span, .rows [aria-current] b, .rows [aria-current] span { color: var(--bronze-hi); }
.rows button:hover span { text-decoration-color: currentColor; }
.pick { margin-top: 12px; font: italic 400 1.05rem/1.4 var(--serif); color: var(--cream-2); }
.st-verse .src { margin-top: 10px; }

/* 3 · Word Detail */
.gk { font: 400 clamp(4rem, 8vw, 6rem)/1.24 var(--serif); letter-spacing: -.02em; color: var(--cream); }
.tr { font: italic 400 1.2rem/1.3 var(--serif); color: var(--cream-2); }
.tr i { font-style: italic; }
.entry { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--hair-n); }
.entry-head { display: flex; justify-content: space-between; gap: 16px; font: 600 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--bronze-hi); }
.entry-head span:last-child { color: var(--cream-3); letter-spacing: .1em; text-transform: none; font-weight: 500; }
.entry-def { margin-top: 12px; font: 400 clamp(1.1rem, 1.35vw, 1.28rem)/1.5 var(--serif); color: var(--cream); }
.entry .src { margin-top: 10px; }
.weigh { margin-top: 18px; font: italic 400 clamp(1.05rem, 1.3vw, 1.2rem)/1.45 var(--serif); color: var(--cream-2); }
.entry-head span:last-child:empty { display: none; }
/* The other six words, to open in place */
.others { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--hair-n); }
.others-label { font: 600 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--cream-3); }
.others ul { list-style: none; margin: 6px 0 0 -10px; padding: 0; display: flex; flex-wrap: wrap; }
.others button { min-height: 44px; padding: 6px 10px; border: 0; border-radius: 8px; background: none; color: var(--cream-2); font: 400 1.4rem/1.2 var(--serif); text-decoration: underline dotted 1px rgba(239, 231, 214, .34); text-underline-offset: .28em; cursor: pointer; transition: color .2s, background-color .2s, text-decoration-color .2s; }
.others button:hover { color: var(--bronze-hi); text-decoration-color: currentColor; }
.others [aria-current] { color: var(--bronze-hi); background: rgba(211, 180, 126, .13); text-decoration-color: transparent; }   /* the open word: a faint pill, not a link */

/* 4 · What it is */
html.stage .st-about { left: 0; right: 0; top: 50%; margin: 0 auto; width: min(92vw, 68rem); transform: translateY(-50%); }
.about-grid { margin-top: clamp(14px, 2.4vh, 26px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.facts { list-style: none; margin: 0; padding: 4px 0 0; border-top: 1px solid var(--hair-n); }
.facts li { padding: clamp(9px, 1.4vh, 15px) 0; border-bottom: 1px solid var(--hair-n); font: 400 clamp(1rem, 1.25vw, 1.2rem)/1.42 var(--serif); color: var(--cream-2); }
.facts li b { color: var(--cream); }
.hebrew { text-align: center; }
.h-word { margin-top: 10px; font: 400 clamp(3.6rem, min(8vw, 12vh), 6rem)/1.2 var(--hebrew); color: var(--cream); }
.h-tr { font: italic 400 1.3rem/1.3 var(--serif); color: var(--cream-2); }
.h-tr i { font-style: italic; }
.hebrew .src { margin-top: 10px; }

/* 5 · Daylight */
html.stage .st-iphone { inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--bar-h) 20px 0; text-align: center; }
.st-iphone h2 { max-width: 16ch; font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.05; color: var(--ink); }
.fine { margin-top: clamp(18px, 3vh, 30px); font: italic 400 1.15rem/1.4 var(--serif); color: var(--ink-2); text-wrap: balance; }
.foot { position: absolute; left: 0; right: 0; bottom: 0; max-width: 40rem; margin: 0 auto; padding: 28px 24px calc(22px + env(safe-area-inset-bottom, 0px)); font: 400 12px/1.7 var(--sans); color: var(--ink-2); letter-spacing: .02em; }
html.stage .notify { width: min(560px, 100%, max(320px, 60vh)); }   /* the door scales with the screen's height: keep the form inside its jambs */
html.stage .st-iphone .fine { max-width: min(40rem, max(320px, 62vh)); }
html.stage .foot { background: radial-gradient(120% 100% at 50% 100%, rgba(245, 244, 240, .92) 55%, rgba(245, 244, 240, 0)); }   /* a wash of daylight under the credits where the floor would show through */
html:not(.stage) .foot { position: static; margin-top: 10vh; }

.notify { margin: clamp(22px, 4vh, 36px) auto 0; width: min(560px, 100%); display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; text-align: left; }
.notify input { height: 50px; padding: 0 20px; border-radius: 25px; border: 1px solid #B9B1A3; background: #fff; color: var(--ink); font: 400 1.05rem var(--serif); min-width: 0; transition: border-color .25s, box-shadow .25s; }
.notify input::placeholder { color: var(--ink-2); opacity: 1; }
.notify input:hover { border-color: #BFA06C; }
.notify input:focus { outline: none; border-color: var(--bronze-ink); box-shadow: 0 0 0 3px rgba(154, 123, 72, .18); }
.notify input[aria-invalid="true"] { border-color: #A4493B; }
.notify button { position: relative; height: 50px; padding: 0 26px; border-radius: 25px; border: 0; background: var(--bronze-ink); color: var(--paper); font: 600 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: background .25s, transform .25s; }
.notify button:hover { background: #65492A; }
.notify button:active { transform: scale(.98); }
.notify button:disabled { opacity: .7; cursor: default; }
.notify .btn-busy { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; }
.notify.is-sending .btn-label { opacity: 0; }
.notify.is-sending .btn-busy { opacity: 1; }
.notify .note { grid-column: 1 / -1; margin: 4px 0 0 20px; max-width: none; font: 400 .95rem/1.4 var(--sans); color: var(--ink-2); }
.notify.is-done input, .notify.is-done button { display: none; }
.notify.is-done .note { margin-left: 0; text-align: center; font: 400 1.25rem/1.4 var(--serif); color: var(--ink); }
.notify.is-error .note { color: #A4493B; }
.st-iphone :focus-visible { outline-color: var(--bronze-ink); }

/* ---------- Static layout (no WebGL or no script): the same words, stacked, from night to day ---------- */
html:not(.stage) .bar { background: rgba(11, 9, 7, .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
html:not(.stage) .st { padding: clamp(80px, 14vh, 140px) clamp(20px, 6vw, 96px); max-width: 1100px; margin: 0 auto; }
html:not(.stage) .st-entrance { padding-top: calc(var(--bar-h) + 12vh); }
html:not(.stage) .inscription { display: grid; gap: .1em; margin-bottom: 9vh; font: 500 clamp(1.5rem, 4.6vw, 3.6rem)/1.15 var(--serif); letter-spacing: .14em; text-align: center; color: #8f8576; }
html:not(.stage) .inscription b { font-weight: 500; color: #c9a24c; }
html:not(.stage) .st-iphone { max-width: none; background: var(--paper); text-align: center; }
html:not(.stage) .st-iphone h2 { margin: 0 auto; }
html:not(.stage) .hint { display: none; }
html:not(.stage) .about-grid { align-items: start; }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  :root { --bar-h: 64px; }
  .wordmark span { font-size: 1.1rem; }
  .mark { width: 32px; height: 32px; }
  .bar-cta { height: 36px; padding: 0 14px; font-size: 11px; }
  html.day .wordmark { padding: 3px 10px 3px 3px; margin-left: -3px; }
  html.stage .intro { left: max(20px, env(safe-area-inset-left, 0px)); right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  :root { --next-room: 74px; }
  html.stage .next { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .next-btn { height: 48px; padding: 0 18px 0 22px; font-size: 11.5px; letter-spacing: .16em; }
  h1 { font-size: 2.4rem; }
  .lede { font-size: 1.05rem; }
  html.stage .st-english { bottom: calc(28px + var(--next-room) + env(safe-area-inset-bottom, 0px)); }
  .kjv { font-size: 1.55rem; }
  .note { font-size: 1rem; }
  html.stage .side-left, html.stage .side-right { left: max(20px, env(safe-area-inset-left, 0px)); right: max(20px, env(safe-area-inset-right, 0px)); width: auto; top: auto; bottom: calc(22px + var(--next-room) + env(safe-area-inset-bottom, 0px)); transform: none; }
  h2 { font-size: 1.5rem; }
  .rows { margin-top: 14px; }
  .rows button { grid-template-columns: 5.6rem 4.4rem 1fr; gap: 10px; padding: 7px 0; }
  .rows b { font-size: 1.3rem; }
  .rows span { font-size: 1.02rem; }
  .gk { font-size: 4rem; }
  .entry-def { font-size: 1.02rem; line-height: 1.42; }
  .weigh { font-size: 1rem; margin-top: 12px; }
  .pick { font-size: 1rem; margin-top: 8px; }
  .others { margin-top: 12px; padding-top: 8px; }
  .others button { font-size: 1.25rem; padding: 6px 9px; }
  html.stage .st-about { top: auto; bottom: calc(22px + var(--next-room) + env(safe-area-inset-bottom, 0px)); transform: none; }
  .about-grid { grid-template-columns: 1fr; gap: 12px; }
  .facts li { padding: 7px 0; font-size: .98rem; line-height: 1.36; }
  .hebrew { text-align: left; }
  .h-word { font-size: 3rem; margin-top: 4px; }
  .st-iphone h2 { font-size: 2.4rem; }
  .notify { grid-template-columns: 1fr; }
  .notify button { width: 100%; }
  .notify .note { margin-left: 0; text-align: center; }
  .foot { padding: 0 20px env(safe-area-inset-bottom, 0px); }
}
@media (max-width: 400px) {
  .bar { padding: 0 14px; }
  .wordmark { gap: 9px; }
  .wordmark span { font-size: 1.02rem; }
  .bar-cta { padding: 0 12px; letter-spacing: .06em; }
}
@media (max-width: 760px) and (max-height: 720px) {
  .rows button { padding: 5px 0; }
  .facts li:nth-child(n+4) { display: none; }
  .hebrew { display: none; }
  .entry-def { font-size: .95rem; }
  .st-verse .src, .pick, .st-word .weigh { display: none; }   /* room for the Next control; the sources stay in the credits */
}

/* ---------- Reduce Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .next-btn i::after { animation: none; opacity: 1; }
  * { transition-duration: .01ms !important; }
}
