:root {
  --ink: #f4fbff;
  --muted: #d3e4ec;
  --gold: #b9efff;
  --line: #d4f6ff36;
  --glass-edge: #d6f5ff58;
  --glass-wash: linear-gradient(145deg, #d5f6ff29, #8db9cb09 43%, #a8e4ff15);
  --glass-panel: linear-gradient(150deg, #b0dff126, #42677c0f 58%, #b5a4eb1b), #07132167;
  --glass-light: 0 0 11px #b2eaff72, 0 1px 3px #020911;
  --glass-rim: inset 0 1px 1px #f2fbff6b, inset 0 -1px 1px #80cfe92e, 0 4px 14px #02070b70;
}

body, dialog { color: var(--ink); text-shadow: var(--glass-light) }
a { color: #c6f2ff; text-shadow: var(--glass-light) }

body > header, body > nav {
  background: linear-gradient(100deg, #a4d9f017, #bbecff08), #0510194d;
  border-color: var(--line);
  backdrop-filter: blur(11px) saturate(118%);
  -webkit-backdrop-filter: blur(11px) saturate(118%);
}

body button, body button.quiet, body button.brand,
#enter-road, #daily.daily-button,
#feed .card .actions button, #feed .card .actions button:not(.primary),
body button.saved-passage-open, #panel button.primary {
  background: var(--glass-wash);
  color: var(--ink);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-rim);
  text-shadow: var(--glass-light);
}
body button:hover, #enter-road:hover, #daily.daily-button:hover,
#feed .card .actions button:hover, #feed .card .actions button:not(.primary):hover {
  background: linear-gradient(145deg, #d5f6ff40, #8db9cb15 47%, #a8e4ff24);
  border-color: #d8f7ff94;
}
body button:active {
  box-shadow: inset 0 2px 6px #04101a86, 0 1px 4px #07152241;
}
body button.primary, #panel button.primary, #enter-road,
#daily.daily-button, body nav button[aria-current] {
  color: #e6faff;
  border-color: #a6edffe0;
  box-shadow: inset 0 1px 2px #fff8, 0 0 16px #69ddff40, 0 4px 14px #02070b56;
  text-shadow: 0 0 11px #9eeeffb8, 0 1px 3px #020911;
}
#daily.daily-button { background: linear-gradient(145deg, #9ae6ff32, #83a6df12) }
#enter-road { background: linear-gradient(145deg, #b9f5ff39, #81b8d210) }
.primary:is(a) {
  background: var(--glass-wash);
  color: var(--ink);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-rim);
}
body button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid #c9f6ff;
  outline-offset: 3px;
}

#panel {
  background: var(--glass-panel);
  backdrop-filter: blur(12px) saturate(123%);
  -webkit-backdrop-filter: blur(12px) saturate(123%);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 1px #ffffff45, 0 18px 68px #02050ab0;
}
#panel::backdrop { background: #030a1554 }
#panel .panel-head {
  background: linear-gradient(160deg, #bbecff22, #06122049);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
input, select, textarea {
  color: var(--ink);
  background: linear-gradient(135deg, #b8e8ff18, #04142424);
  border-color: var(--glass-edge);
  text-shadow: var(--glass-light);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1 }
select option { color: var(--ink); background: #182834 }
#feed .lesson-slide .lesson-card {
  background: var(--glass-panel);
  backdrop-filter: blur(9px) saturate(115%);
  -webkit-backdrop-filter: blur(9px) saturate(115%);
  border-color: var(--glass-edge);
  box-shadow: inset 0 1px 1px #f2fbff48, 0 14px 42px #02070b6e;
}
#feed .card .eyebrow, #feed .card .ref,
#feed .lesson-card .eyebrow, .lesson-card h3,
.topic-group h3, .daily-heading, .saved-passage-theme, body button.saved-unsave {
  color: #ccf2ff;
  text-shadow: var(--glass-light);
}
#feed .card .question, .lesson-copy, .lesson-prompt {
  color: var(--ink);
  text-shadow: var(--glass-light);
}
#feed .card blockquote, .topic-verse, .verse {
  text-shadow: 0 0 12px #d4f6ff85, 0 2px 6px #010508, 0 0 22px #78b9da45;
}
.focus-verse {
  background: #93ddff1b;
  border-left-color: #b9efffa8;
}
#panel .lsb-reader-glass { mix-blend-mode: screen }
#panel .lsb-frame {
  background: transparent;
  filter: grayscale(1) invert(1) contrast(5);
  opacity: .86;
  border-radius: 12px;
}
#status {
  color: var(--ink);
  background: var(--glass-panel);
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--glass-rim);
}
#status:empty { border: 0; box-shadow: none }
.road-mark {
  color: #d4f5ff;
  border-color: var(--glass-edge);
  background: var(--glass-wash);
  box-shadow: var(--glass-rim);
  text-shadow: var(--glass-light);
}
.road-title h1 span,.road-opening h2 span,.road-kicker {
  color: #c5f3ff;
  text-shadow: 0 0 18px #a9e9ffa8, 0 2px 6px #03070e;
}
.road-title h1,.road-beat h2 {
  text-shadow: 0 0 13px #dcf6ff91, 0 0 32px #91ddff66, 0 4px 14px #03070d;
}
.road-copy,.road-scroll,.road-top { text-shadow: var(--glass-light) }
.road-progress i { background: #aeeeff; box-shadow: 0 0 9px #96e5ff }

/* Warm morning light and a cool reflection on the glass. */
:root {
  --ink: #fff9ed;
  --muted: #f7ebd6;
  --gold: #ffe2a3;
  --line: #fff2d44d;
  --glass-edge: #fff1cb87;
  --glass-wash: linear-gradient(145deg, #fff3cb43, #ffdda51c 45%, #aedbff25);
  --glass-panel: linear-gradient(145deg, #ffdf9f41, #b4dfff22 63%, #fff0d12c), #253a4c48;
  --glass-light: 0 0 10px #ffe0a492, 0 1px 4px #20273a;
  --glass-rim: inset 0 1px 1px #fff9dfad, inset 0 -1px 1px #bfe7ff64, 0 4px 13px #1d283952;
}
body > header, body > nav {
  background: linear-gradient(100deg, #ffd99830, #c4e5ff29), #29394c30;
}
body button:hover, #enter-road:hover, #daily.daily-button:hover,
#feed .card .actions button:hover, #feed .card .actions button:not(.primary):hover {
  background: linear-gradient(145deg, #fff6d95a, #ffdda52c 47%, #bde9ff3a);
  border-color: #fff4cfdf;
}
body button.primary, #panel button.primary, #enter-road,
#daily.daily-button, body nav button[aria-current] {
  color: #fff8e5;
  border-color: #ffedbfc9;
  box-shadow: inset 0 1px 2px #ffffdda8, 0 0 18px #ffce715e, 0 4px 14px #33445c42;
  text-shadow: 0 0 11px #ffe1a9c2, 0 1px 4px #252c3f;
}
#daily.daily-button, #enter-road { background: linear-gradient(145deg, #ffe4a74a, #f2d6a723 45%, #b9e4ff29) }
#panel::backdrop { background: #24374c24 }
#panel .panel-head { background: linear-gradient(145deg, #ffedcd2f, #a4cfea1f) }
#feed .card .eyebrow, #feed .lesson-card .eyebrow, .lesson-card h3,
.topic-group h3, .daily-heading, .road-mark, .road-title h1 span, .road-opening h2 span {
  color: #ffecb9;
  text-shadow: 0 0 13px #ffe0a2ae, 0 1px 4px #272e42;
}
.road-title h1, .road-beat h2 {
  color: #fffbf1;
  text-shadow: 0 0 14px #fff5d3a8, 0 0 36px #ffd17a99, 0 4px 11px #252d3b;
}
.road-tagline, .road-copy { color: #fff8e7; text-shadow: var(--glass-light) }
.road-progress i { background: #ffe1a1; box-shadow: 0 0 9px #ffd278 }
.road-scene, .feed-road-layer { filter: brightness(1.19) contrast(.89) }
.road-shade {
  background: radial-gradient(ellipse at 57% 23%, #fff0c647, #ffd49413 37%, transparent 60%),
    linear-gradient(170deg, #b1d9f423 0%, #e3c29610 40%, #798ea51c 72%, #24374b65 100%);
}
.road-horizon {
  background: radial-gradient(ellipse at 53% 50%, #ffe1a392 0%, #ffdb9a39 17%, transparent 45%);
}
.feed-road-shade {
  background: radial-gradient(ellipse at 62% 12%, #ffe2ac5c, #ffe6af16 39%, transparent 62%),
    linear-gradient(#93c8ee27, #19263b63 34%, #18243778 60%, #769eb80e 84%, #25405745);
}

.road-clouds i:first-child { translate: var(--intro-cloud-near,0) 0 }
.road-clouds i:last-child { translate: var(--intro-cloud-far,0) 0 }
.feed-clouds, .feed-air { position:absolute; inset:0; pointer-events:none }
.feed-air { display:block; width:100%; height:100% }
.feed-clouds {
  overflow:hidden;
  mask-image:linear-gradient(#000 0%,#000 26%,transparent 58%);
}
.feed-clouds i { position:absolute; inset:-14% -36% 31% }
.feed-clouds i:first-child {
  background:radial-gradient(ellipse at 23% 45%,#eef2f457,transparent 41%),
    radial-gradient(ellipse at 66% 35%,#fff3d33d,transparent 43%);
  filter:blur(12px);
  transform:translate3d(var(--feed-cloud-near,0),0,0);
}
.feed-clouds i:last-child {
  background:radial-gradient(ellipse at 32% 29%,#3241545c,transparent 42%),
    radial-gradient(ellipse at 71% 42%,#cbdfe52e,transparent 36%);
  filter:blur(15px);
  transform:translate3d(var(--feed-cloud-far,0),0,0);
}
@media(prefers-reduced-motion:reduce){.feed-clouds,.feed-air{display:none}}

/* Feather the sky behind the intro copy so it reads through the brightest clouds. */
.road-stage::before {
  content: "";
  position: absolute;
  inset: 5% 0 18%;
  background: radial-gradient(ellipse at 50% 44%, #111827b8 0%, #11182796 31%, #10172544 57%, transparent 76%);
  pointer-events: none;
}
.road-title h1, .road-beat h2 {
  color: #fffdf6;
  text-shadow: 0 2px 3px #101521, 0 4px 16px #101521, 0 0 24px #ffdc9270;
}
.road-stage .road-copy, .road-stage .road-tagline {
  color: #fffdf7;
  text-shadow: 0 2px 3px #101521, 0 3px 10px #101521, 0 0 14px #f5d7a43a;
}
.road-scroll { text-shadow: 0 2px 4px #080d18, 0 0 9px #080d18 }
@media (max-width: 560px) {
  .road-stage::before {
    inset: 6% 0 21%;
    background: radial-gradient(ellipse at 50% 44%, #111827c4 0%, #11182797 38%, #10172539 66%, transparent 81%);
  }
}

/* Soft gold glow around the white intro lettering. */
.road-title h1, .road-beat h2 {
  color: #f7f7f3;
  text-shadow:
    0 0 4px #fff2ca79,
    0 0 13px #ffe3a36b,
    0 0 28px #ffcb6c4f,
    0 2px 2px #101625,
    0 5px 12px #0d1324e6,
    0 13px 26px #0a101eaa;
}
.road-title h1 span, .road-opening h2 span {
  color: #fff0b9;
  text-shadow: 0 0 5px #fff6d580, 0 0 18px #ffd37568;
}
.road-stage .road-tagline {
  color: #fffff6;
  text-shadow: 0 0 3px #fff2c780, 0 0 11px #ffdc8f65, 0 2px 3px #101625, 0 5px 11px #0d1324de;
}
.road-stage .road-copy {
  text-shadow: 0 1px 2px #0c1221, 0 4px 10px #0d1324e6, 0 0 9px #fff1bd70;
}
@media (prefers-reduced-motion: no-preference) {
  .road-title h1 { animation: emmaus-letter-bloom 3.8s ease-in-out infinite alternate }
}
@keyframes emmaus-letter-bloom {
  from { filter: drop-shadow(0 0 1px #fff0b231) }
  to { filter: drop-shadow(0 0 4px #ffe5a050) }
}

/* Near ground and distant light move on separate planes. */
.road-scene::after,.feed-road-layer::after {
  content:"";
  position:absolute;
  inset:0;
  background-image:inherit;
  background-size:inherit;
  background-position:inherit;
  background-repeat:no-repeat;
  mask-image:linear-gradient(transparent 80%,#000 98%);
  transform-origin:center bottom;
  transform:translate3d(0,var(--ground-travel,0vh),0) scale(1.045);
  pointer-events:none;
}
.depth-light {
  position:absolute;
  inset:-12% -19% 41%;
  background:radial-gradient(ellipse at 54% 27%,#fff1c065,transparent 50%),
    conic-gradient(from 128deg at 53% 14%,transparent 6deg,#ffd8892c 16deg,transparent 28deg,#fff0ae32 42deg,transparent 60deg,#fff3c223 79deg,transparent 96deg);
  mask-image:linear-gradient(#000 0%,#000 34%,transparent 95%);
  transform-origin:54% 15%;
  transform:translate3d(var(--light-travel,0vw),0,0) rotate(var(--ray-angle,0deg));
  pointer-events:none;
}
.intro-light { opacity:.62 }
.feed-light { opacity:.44 }

body,dialog { text-rendering:optimizeLegibility }
body>header,body>nav,#panel,.lesson-card {
  -webkit-font-smoothing:antialiased;
}
body>header button,body>nav button,#panel button,#feed .actions button {
  text-shadow:0 1px 2px #152232,0 0 5px #ffe6b16b;
}
#feed .card .eyebrow,#feed .card .ref,#panel h2,.lesson-card h2 {
  text-shadow:0 1px 3px #101824,0 0 7px #ffeabc67;
}
#feed .card blockquote,.topic-verse,.verse {
  text-shadow:0 2px 5px #0b1320,0 0 9px #c9f1ff58;
}
@media(prefers-reduced-motion:reduce){
  .road-scene::after,.feed-road-layer::after { display:none }
  .depth-light { transform:none }
}

/* Avoid a second scroll animation and a live blur on moving panels. */
#feed { scroll-behavior:auto;scroll-snap-type:none }
#feed .lesson-slide .lesson-card {
  background:linear-gradient(145deg,#ffdf9f41,#b4dfff22 63%,#fff0d12c),#253a4c70;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.verse-reserve { display:block; min-height:150px }
.feed-road-layer { filter:none }
@media (pointer:coarse) {
  body>header,body>nav {
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
    background:linear-gradient(100deg,#ffd99829,#c4e5ff26),#29394c59;
  }
}

#install-emmaus { padding:.38rem .85rem; font-size:.8rem }
@media(max-height:480px){#install-emmaus{padding:.26rem .68rem}}
.install-help {
  max-width:min(440px,calc(100% - 24px));
  padding:1.25rem;
  background:var(--glass-panel);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.install-help p { line-height:1.5 }

/* Smaller touch GPUs cannot cheaply rasterize enormous animated blurred layers.
   These already have soft radial-gradient edges, so omit live filters on phones. */
@media (pointer:coarse){
  .feed-clouds i,.road-clouds i{filter:none}
  .road-title h1{animation:none}
  .road-scene::after,.feed-road-layer::after{display:none}
  .feed-road-layer{will-change:auto}
}
