/* Little Light app styles.
   Colours: one per kind of post, taken from the game's virtue charms. */
:root {
  color-scheme: dark;
  --text: #f4efe2;
  --muted: #b3accb;
  --line: #2f2a52;
  --paper: #fbf3dd;
  --ink: #3b2412;
  --courage: #f7c23f;
  --trust: #62a6ea;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0f0d20; }
body { font: 16px/1.5 var(--display); color: var(--text); -webkit-tap-highlight-color: transparent; }
h3, h4, h5 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.p-noscript { padding: 24px; }
@keyframes breathe { 0%,100% { transform: scale(.9); opacity: .8; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes fill { to { width: 100%; } }

/* ---------- App shell (from the design prototype) ---------- */
:root {
  --t-verse: #f7c23f; --t-read: #ee8fb2; --t-watch: #e46a4c; --t-listen: #a07fd6; --t-play: #69ba7e; --t-today: #fff1b8;
}
.p-app { position: fixed; inset: 0; overflow: hidden; background: #0f0d20; color: var(--text); font-family: var(--display); --navh: calc(64px + env(safe-area-inset-bottom, 0px)); --minih: 0px; }
.p-app.has-mini { --minih: 60px; }
.p-app button { font-family: var(--display); }
.p-view { position: absolute; left: 0; right: 0; top: 0; bottom: calc(var(--navh) + var(--minih)); overflow-y: auto; scrollbar-width: none; display: none; }
.p-view::-webkit-scrollbar { display: none; }
.p-view.on { display: block; animation: p-in .2s ease; }
@keyframes p-in { from { opacity: 0; } to { opacity: 1; } }

/* bottom tabs */
.p-tabs { position: absolute; left: 0; right: 0; bottom: 0; height: var(--navh); display: grid; grid-template-columns: repeat(6, 1fr); background: #0f0d20; border-top: 1px solid #262145; z-index: 12; padding-bottom: 4px; }
.p-tab { background: none; border: 0; color: #8b84a8; font-size: 10px; font-weight: 600; display: grid; justify-items: center; align-content: center; gap: 4px; cursor: pointer; position: relative; }
.p-tab svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.p-tab.on { color: var(--tc); }
.p-tab.on::before { content: ""; position: absolute; top: 0; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--tc); box-shadow: 0 0 10px var(--tc); }
.p-tab:focus-visible, .p-app button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* shared header for list pages */
.p-head { position: sticky; top: 0; z-index: 3; padding: 22px 18px 12px; display: flex; align-items: center; justify-content: space-between; background: inherit; }
.p-head h3 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.p-logo { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 14px; }

/* Calligraphy wordmark: "Salt and" + "Light" with a candle for the i.
   The candle SVG is sized from Parisienne's metrics: 0.49em tall (i-dot top + 3/100),
   stem from the baseline to the x-height (0.36em), flame centred at dot height. */
.wm { --wm-s: #F6EEDC; --wm-g1: #F5C26B; --wm-g2: #F4A38C; --wm-g0: #FFF6D8; --wm-glow: rgba(245,194,107,.45);
  font-family: 'Parisienne', 'Newsreader', cursive; font-weight: 400; letter-spacing: 0; white-space: nowrap; line-height: 1.15; display: inline-block; }
.wm-s { color: var(--wm-s); }
.wm-l { background: linear-gradient(90deg, var(--wm-g1), var(--wm-g2)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 .22em var(--wm-glow)); }
.wm-i { display: inline-block; width: .18em; height: .49em; vertical-align: baseline; overflow: visible; margin: 0 .02em 0 .04em; }
.wm-a { stop-color: var(--wm-g1); } .wm-b { stop-color: var(--wm-g2); } .wm-c { stop-color: var(--wm-g0); }
.wm-wick { stroke: var(--wm-g2); stroke-width: 1.4; stroke-linecap: round; fill: none; }
/* Light backgrounds: plum (#3B1F4A) and a deeper gold so both parts pass WCAG AA. */
.wm-onlight { --wm-s: #3B1F4A; --wm-g1: #9A5410; --wm-g2: #A63D2F; --wm-g0: #E9A23B; --wm-glow: rgba(245,194,107,.35); }
.p-app.night .wm-onlight { --wm-s: #F6EEDC; --wm-g1: #F5C26B; --wm-g2: #F4A38C; --wm-g0: #FFF6D8; --wm-glow: rgba(245,194,107,.45); }
/* Living flame: nested layers with prime-length, irregular keyframes so the motion never visibly repeats.
   Transform/opacity only; origins at the flame base so the candle stays anchored. --wm-d puts each instance out of phase. */
.wm-sway, .wm-flame, .wm-fo, .wm-fc { transform-box: fill-box; transform-origin: 50% 100%; will-change: transform; }
.wm-halo { transform-box: fill-box; transform-origin: 50% 50%; opacity: .7; will-change: transform, opacity; }
.wm-ember { fill: #FFE7A8; opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; }
.wm-sway { animation: wm-sway 2.3s ease-in-out infinite; animation-delay: var(--wm-d, 0s); }
.wm-flame { animation: wm-stretch 1.3s ease-in-out infinite; animation-delay: calc(var(--wm-d, 0s) * 1.7); }
.wm-fo { animation: wm-outer 1.7s ease-in-out infinite; animation-delay: calc(var(--wm-d, 0s) * 2.3); }
.wm-fc { animation: wm-core .7s ease-in-out infinite; animation-delay: calc(var(--wm-d, 0s) * 3.1 - .19s); }
.wm-halo { animation: wm-halo 2.9s ease-in-out infinite; animation-delay: calc(var(--wm-d, 0s) * 1.3); }
.wm-ember { animation: wm-ember 5.3s ease-out infinite; animation-delay: calc(var(--wm-d, 0s) * 2.9 - 1.1s); }
@keyframes wm-sway { 0%, 100% { transform: rotate(0); } 17% { transform: rotate(-5deg); } 31% { transform: rotate(2deg); } 46% { transform: rotate(-2.5deg); } 63% { transform: rotate(6deg); } 79% { transform: rotate(-1deg); } 88% { transform: rotate(3deg); } }
@keyframes wm-stretch { 0%, 100% { transform: scale(1, 1); } 23% { transform: scale(.9, 1.16); } 41% { transform: scale(1.05, .9); } 67% { transform: scale(.95, 1.1); } 83% { transform: scale(1.03, .94); } }
@keyframes wm-outer { 0%, 100% { transform: skewX(0) scale(1, 1); opacity: 1; } 29% { transform: skewX(-6deg) scale(1.04, .97); opacity: .92; } 53% { transform: skewX(4deg) scale(.96, 1.06); opacity: 1; } 71% { transform: skewX(-2deg) scale(1.02, 1.02); opacity: .88; } }
@keyframes wm-core { 0%, 100% { transform: translateX(0) scale(1, 1); opacity: .95; } 37% { transform: translateX(.35px) scale(.86, 1.12); opacity: .8; } 61% { transform: translateX(-.3px) scale(1.08, .9); opacity: 1; } }
@keyframes wm-halo { 0%, 100% { transform: scale(1); opacity: .62; } 19% { transform: scale(1.12); opacity: .82; } 43% { transform: scale(.94); opacity: .55; } 59% { transform: scale(1.18); opacity: .9; } 81% { transform: scale(1.02); opacity: .66; } }
@keyframes wm-ember { 0%, 78% { transform: translate(0, 0) scale(1); opacity: 0; } 80% { opacity: .9; } 92% { transform: translate(1.5px, -7px) scale(.7); opacity: .5; } 100% { transform: translate(-.5px, -12px) scale(.3); opacity: 0; } }
.p-app.calm :is(.wm-sway, .wm-flame, .wm-fo, .wm-fc, .wm-halo, .wm-ember) { animation: none; }
@media (prefers-reduced-motion: reduce) { :is(.wm-sway, .wm-flame, .wm-fo, .wm-fc, .wm-halo, .wm-ember) { animation: none !important; } }
/* Flare up: hover / keyboard focus / tap (.flaring, set for 1.5s by app.js). Wrappers scale over the flicker layers. */
.wm-flare { transform-box: view-box; transform-origin: 9px 12.6px; transition: transform .3s cubic-bezier(.3,.7,.3,1); }
.wm-hw { transform-box: view-box; transform-origin: 9px 8px; transition: transform .3s ease-out; }
.wm-halo2 { opacity: 0; transition: opacity .3s ease-out; }
.wm-jit { transform-box: fill-box; transform-origin: 50% 100%; animation: wm-jit .23s linear infinite paused; }
@keyframes wm-jit { 0%, 100% { transform: scale(1, 1) rotate(0); } 31% { transform: scale(.94, 1.08) rotate(-3deg); } 67% { transform: scale(1.05, .95) rotate(2.5deg); } }
@keyframes wm-burst { 0% { transform: translate(0, 0) scale(1); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--wm-ex, 1px), -16px) scale(.3); opacity: 0; } }
.wm-e2 { --wm-ex: -2px; } .wm-e3 { --wm-ex: 2.5px; }
.wm-e2, .wm-e3 { animation: none; opacity: 0; }
html:not(.wm-touch) .wm:hover .wm-flare, :focus-visible > .wm .wm-flare, .wm:focus-visible .wm-flare, .wm.flaring .wm-flare { transform: scale(1.35, 1.9); }
html:not(.wm-touch) .wm:hover .wm-hw, :focus-visible > .wm .wm-hw, .wm:focus-visible .wm-hw, .wm.flaring .wm-hw { transform: scale(1.7); }
html:not(.wm-touch) .wm:hover .wm-halo2, :focus-visible > .wm .wm-halo2, .wm:focus-visible .wm-halo2, .wm.flaring .wm-halo2 { opacity: 1; }
html:not(.wm-touch) .wm:hover .wm-jit, :focus-visible > .wm .wm-jit, .wm:focus-visible .wm-jit, .wm.flaring .wm-jit { animation-play-state: running; }
html:not(.wm-touch) .wm:hover :is(.wm-e2, .wm-e3), :focus-visible > .wm :is(.wm-e2, .wm-e3), .wm.flaring :is(.wm-e2, .wm-e3) { animation: wm-burst .9s ease-out infinite; }
html:not(.wm-touch) .wm:hover .wm-e3, :focus-visible > .wm .wm-e3, .wm.flaring .wm-e3 { animation-duration: 1.1s; animation-delay: .37s; }
html:not(.wm-touch) .wm:hover .wm-ember:not(.wm-e2):not(.wm-e3), .wm.flaring .wm-ember:not(.wm-e2):not(.wm-e3) { animation-duration: .7s; }
.p-app.calm .wm .wm-flare, .p-app.calm .wm .wm-hw { transform: none !important; transition: none; }
.p-app.calm .wm :is(.wm-jit, .wm-e2, .wm-e3) { animation: none !important; }
.p-app.calm .wm .wm-halo2 { transition: none; }
.p-app.calm .wm.flaring .wm-halo2, .p-app.calm :focus-visible > .wm .wm-halo2, html:not(.wm-touch) .p-app.calm .wm:hover .wm-halo2 { opacity: .5; }
@media (prefers-reduced-motion: reduce) {
  .wm .wm-flare, .wm .wm-hw { transform: none !important; transition: none !important; }
  .wm :is(.wm-jit, .wm-e2, .wm-e3) { animation: none !important; }
  .wm .wm-halo2 { transition: none; }
  .wm.flaring .wm-halo2, :focus-visible > .wm .wm-halo2, html:not(.wm-touch) .wm:hover .wm-halo2 { opacity: .5 !important; }
}
.p-logo .wm { font-size: 22px; }
.p-brand .wm { font-size: 27px; }
.p-kicker { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; opacity: .75; }

/* TODAY feed */
.v-today, .v-watch { overflow: hidden; }
.p-feed { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; }
.p-feed::-webkit-scrollbar { display: none; }
.p-slide { height: 100%; scroll-snap-align: start; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 90px 22px 26px; }
.p-slide .big { font-weight: 800; font-size: 30px; line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; }
.p-slide .verse { font-family: var(--serif); font-style: italic; font-size: 23px; line-height: 1.28; white-space: pre-line; }
.p-slide .verse.preview { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.p-slide .ref { font-size: 11px; font-weight: 700; letter-spacing: .1em; opacity: .7; }
.p-slide p { font-size: 14px; line-height: 1.5; }
.p-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.p-btn { border: 0; border-radius: 999px; padding: 10px 15px; font-size: 13px; font-weight: 700; cursor: pointer; background: rgba(0,0,0,.82); color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.p-btn.ghost { background: rgba(255,255,255,.35); color: inherit; }
.p-rings { position: absolute; top: 0; left: 0; right: 0; z-index: 4; display: flex; gap: 12px; padding: 16px 14px 10px; background: linear-gradient(rgba(15,13,32,.55), transparent); }
.p-ring { background: none; border: 0; padding: 0; cursor: pointer; display: grid; justify-items: center; gap: 4px; color: #fff; font-size: 10px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.p-ring i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #fff; background: var(--rc); box-shadow: 0 0 0 2px var(--rc); }
.p-ring svg { width: 18px; height: 18px; fill: none; stroke: #1a1330; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.p-rail { position: absolute; right: 7px; top: 100px; bottom: 60px; width: 3px; border-radius: 3px; background: rgba(255,255,255,.2); z-index: 4; }
.p-rail b { position: absolute; left: 50%; width: 12px; height: 12px; margin-left: -6px; top: 0; border-radius: 50%; background: #fff6d1; box-shadow: 0 0 14px 4px rgba(255,230,140,.85); transition: top .15s linear; }
.s1 { background: radial-gradient(120% 80% at 80% 25%, #ffe089 0%, var(--t-verse) 45%, #e0a820 100%); color: #3b2412; }
.s2 { background: var(--t-read); color: #3a1426; }
.s3 { background: var(--t-watch); color: #2b0d05; }
.s4 { background: radial-gradient(120% 70% at 50% 30%, #b99ae4 0%, var(--t-listen) 50%, #6f52a8 100%); color: #1a0f33; }
.s5 { background: linear-gradient(180deg, #9ad8aa 0%, var(--t-play) 55%, #3f8a55 100%); color: #0f2a17; }
.p-sun { position: absolute; right: -30px; top: 110px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, #fff8dc 0%, #ffe9a3 40%, transparent 70%); animation: breathe 5s ease-in-out infinite; }
.p-wave { position: absolute; left: 22px; right: 22px; top: 150px; height: 90px; display: flex; align-items: center; gap: 4px; }
.p-wave i { flex: 1; border-radius: 4px; background: rgba(26,15,51,.55); height: 30%; animation: bars 1.2s ease-in-out infinite; }
@keyframes bars { 0%,100% { height: 20%; } 50% { height: 90%; } }
.p-blob { position: absolute; border-radius: 50%; }

/* WATCH reels */
.p-reel { height: 100%; scroll-snap-align: start; position: relative; overflow: hidden; color: #fff; }
.p-reel .scene { position: absolute; inset: 0; }
.p-reel .bar { position: absolute; top: 10px; left: 12px; right: 12px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); z-index: 3; overflow: hidden; }
.p-reel .bar i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(0); animation: grow 18s linear infinite; animation-play-state: paused; }
.p-reel.playing .bar i { animation-play-state: running; }
@keyframes grow { to { transform: scaleX(1); } }
.p-reel .scene * { animation-play-state: paused !important; }
.p-reel.playing .scene * { animation-play-state: running !important; }
.p-reel .tapzone { position: absolute; inset: 0; z-index: 2; background: transparent; border: 0; cursor: pointer; }
.p-reel .paused { position: absolute; top: 45%; left: 50%; translate: -50% -50%; width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,.45); display: none; place-items: center; z-index: 3; pointer-events: none; }
.p-reel .paused::after { content: ""; border-left: 20px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 5px; }
.p-reel.userpaused .paused { display: grid; }
.p-reel .cap { position: absolute; left: 0; right: 60px; bottom: 0; z-index: 4; padding: 40px 16px 18px; background: linear-gradient(transparent, rgba(0,0,0,.55)); display: grid; gap: 4px; }
.p-reel .cap b { font-size: 17px; }
.p-reel .cap p { font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-reel .cap.open p { display: block; }
.p-reel .cap button { justify-self: start; background: none; border: 0; color: rgba(255,255,255,.8); font-size: 12px; font-weight: 700; padding: 0; cursor: pointer; }
.p-reel .side { position: absolute; right: 10px; bottom: 26px; z-index: 4; display: grid; gap: 16px; }
.p-reel .side button { background: none; border: 0; color: #fff; display: grid; justify-items: center; gap: 3px; font-size: 10px; font-weight: 600; cursor: pointer; }
.p-reel .side svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.p-reel .side button.saved svg { fill: #fff; }
.rain i { position: absolute; top: -20px; width: 2px; height: 18px; background: rgba(255,255,255,.55); border-radius: 2px; animation: rain 1.1s linear infinite; }
@keyframes rain { to { transform: translateY(780px); } }
.swim { animation: swim 6s ease-in-out infinite; }
@keyframes swim { 0%,100% { transform: translateX(-20px); } 50% { transform: translateX(30px); } }
.bob { animation: bob 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.drift { animation: drift 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes drift { 0%,100% { transform: translateX(0) rotate(0); } 50% { transform: translateX(40px) rotate(8deg); } }

/* LISTEN */
.v-listen { background: #17122e; }
.p-now { margin: 0 14px 16px; border-radius: 22px; padding: 18px; background: radial-gradient(120% 90% at 80% 0%, #c3a8ee, var(--t-listen) 55%, #6f52a8); color: #1a0f33; display: grid; gap: 8px; }
.p-now b { font-size: 21px; line-height: 1.1; }
.p-now .p-btn { justify-self: start; }
.p-list { display: grid; gap: 2px; padding: 0 8px 20px; }
.p-row { display: grid; grid-template-columns: 52px 1fr 40px; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; width: 100%; }
.p-row:hover { background: rgba(255,255,255,.05); }
.p-art { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; }
.p-art i { width: 14px; height: 14px; border-radius: 50%; background: #fff6d1; box-shadow: 0 0 12px 3px rgba(255,240,190,.7); }
.p-row b { font-size: 14px; display: block; line-height: 1.25; }
.p-row small { color: #bdb5d8; font-size: 12px; }
.p-pp { width: 36px; height: 36px; border-radius: 50%; background: var(--t-listen); display: grid; place-items: center; }
.p-pp svg, .p-mini svg, .p-full svg { width: 16px; height: 16px; fill: currentColor; }
.p-row .p-pp { color: #1a0f33; }
.p-row.now b { color: #ece2ff; }
.p-row.now small { color: #cfc6ea; }
.p-sec { padding: 6px 18px 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #a39cc0; font-weight: 700; }

/* mini player */
.p-mini { position: absolute; left: 8px; right: 8px; bottom: calc(var(--navh) + 4px); height: 52px; z-index: 11; border-radius: 14px; background: #2d2352; color: #fff; display: none; grid-template-columns: 1fr 40px 32px; align-items: center; gap: 4px; padding: 0 6px 0 0; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.p-app.has-mini .p-mini { display: grid; }
.p-mini .open { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; background: none; border: 0; color: inherit; text-align: left; padding: 6px 0 6px 6px; cursor: pointer; min-width: 0; }
.p-mini .p-art { width: 40px; height: 40px; border-radius: 9px; }
.p-mini b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.p-mini small { font-size: 11px; color: #bdb4dc; font-variant-numeric: tabular-nums; }
.p-mini .ctl { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; color: #2d2352; display: grid; place-items: center; cursor: pointer; }
.p-mini .x { background: none; border: 0; color: #bdb4dc; font-size: 16px; cursor: pointer; }
.p-mini .prog { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--t-listen); width: 0; }

/* overlays */
.p-over { position: absolute; inset: 0; z-index: 20; display: none; }
.p-over.on { display: block; }
.p-sheetwrap { background: rgba(10,8,24,.45); }
.p-sheet { position: absolute; left: 0; right: 0; bottom: 0; height: 86%; background: #fff7fa; color: #3a1426; border-radius: 24px 24px 0 0; display: flex; flex-direction: column; animation: up .38s cubic-bezier(.2,.8,.2,1); }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
.p-article { bottom: calc(var(--navh) + var(--minih)); z-index: 10; background: #fbf6ee; color: #2a1f33; overflow-y: auto; animation: slidein .34s cubic-bezier(.2,.8,.2,1); }
@keyframes slidein { from { transform: translateX(100%); } to { transform: none; } }
.p-article .hero { padding: 64px 20px 22px; display: grid; gap: 8px; }
.p-article .hero b { font-size: 26px; line-height: 1.05; font-weight: 800; }
.p-article .back { position: absolute; top: 16px; left: 14px; z-index: 2; border: 0; border-radius: 999px; background: rgba(0,0,0,.7); color: #fff; font-size: 12px; font-weight: 700; padding: 8px 12px; cursor: pointer; }
.p-article .body { padding: 18px 20px 30px; }
.p-article .listen { margin: 0 20px; }
.p-txt { font-family: var(--serif); font-size: 16px; line-height: 1.62; display: grid; gap: 12px; }
.p-txt h5 { margin: 0; font: 800 22px/1.1 var(--display); }
.p-txt blockquote { margin: 0; padding-left: 12px; border-left: 3px solid currentColor; font-style: italic; }
.p-txt .pray { font-style: italic; padding: 12px; border-radius: 12px; background: rgba(0,0,0,.06); }
.p-txt .meta { font: 700 11px var(--display); letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.p-full.on { display: flex; }
.p-full { background: linear-gradient(180deg, #3b2c6b, #17122e 70%); color: #fff; animation: up .38s cubic-bezier(.2,.8,.2,1); flex-direction: column; padding: 16px 24px 30px; gap: 16px; }
.p-full-top { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
.p-full-top .handle { width: 44px; height: 5px; border-radius: 999px; background: rgba(214,195,245,.55); }
.p-full .down { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(214,195,245,.16); border: 1.5px solid rgba(214,195,245,.45); color: #f3ecff; cursor: pointer; padding: 0; transition: background .15s ease; }
.p-full .down svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.p-full .down:hover { background: rgba(214,195,245,.28); }
.p-full .down:focus-visible { outline: 3px solid #f5c542; outline-offset: 3px; }
/* Read along: the transcript under the controls (white on dark purple, well above WCAG AA). */
.p-full { overflow: hidden; }
.p-full.has-text .bigart { max-width: 132px; border-radius: 20px; flex: none; }
.p-full.has-text .bigart i { width: 36px; height: 36px; box-shadow: 0 0 30px 10px rgba(255,236,170,.55); }
.p-full .transcript { flex: 1 1 auto; min-height: 120px; overflow-y: auto; -webkit-overflow-scrolling: touch; background: rgba(255,255,255,.06); border: 1px solid rgba(214,195,245,.18); border-radius: 18px; padding: 14px 16px 6px; }
.p-full .transcript h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #d6c3f5; }
.p-full .transcript p { margin: 0 0 12px; font-size: 17px; line-height: 1.6; color: #fbf8ff; }
.p-full .transcript:focus-visible { outline: 3px solid #f5c542; outline-offset: 2px; }
.p-full .bigart { aspect-ratio: 1; width: 100%; max-width: 270px; align-self: center; border-radius: 26px; display: grid; place-items: center; position: relative; overflow: hidden; }
.p-full .bigart i { width: 60px; height: 60px; border-radius: 50%; background: #fff6d1; box-shadow: 0 0 50px 18px rgba(255,236,170,.6); }
.p-full.playing .bigart i { animation: breathe 3.5s ease-in-out infinite; }
.p-full b { font-size: 20px; line-height: 1.15; }
.p-full small { color: #bdb4dc; font-size: 13px; }
.p-full input[type=range] { width: 100%; accent-color: #d6c3f5; }
.p-full .times { display: flex; justify-content: space-between; font-size: 11px; color: #bdb4dc; font-variant-numeric: tabular-nums; margin-top: -8px; }
.p-full .ctls { display: flex; justify-content: center; align-items: center; gap: 26px; }
.p-full .ctls button { background: none; border: 0; color: #fff; cursor: pointer; font-size: 13px; font-weight: 700; }
.p-full .ctls .main { width: 64px; height: 64px; border-radius: 50%; background: #fff; color: #2d2352; display: grid; place-items: center; }
.p-full .ctls .main svg { width: 24px; height: 24px; }
.p-full .note { font-size: 11px; color: #9c93bd; text-align: center; }
.p-full .readalong { align-self: center; }

/* READ */
.v-read { background: #fbf6ee; color: #2a1f33; }
.v-read .p-head { background: #fbf6ee; }
.p-cards { display: grid; gap: 12px; padding: 0 14px 20px; }
.p-card { background: var(--c, #2a2448); border: 0; text-align: left; cursor: pointer; border-radius: 20px; padding: 18px; display: grid; gap: 8px; color: inherit; width: 100%; }
.p-card.feat { min-height: 250px; align-content: end; }
.p-card b { font-size: 20px; line-height: 1.1; font-weight: 800; }
.p-card.feat b { font-size: 26px; }
.p-card span { font-size: 13px; line-height: 1.45; opacity: .85; }
.p-card .foot { display: flex; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .06em; opacity: .7; }

/* VERSES */
.v-verses { background: #fdf8ea; color: #3b2412; }
.v-verses .p-head { background: #fdf8ea; }
.p-chips { display: flex; gap: 6px; padding: 0 14px 12px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 66px; z-index: 2; background: #fdf8ea; }
.p-chips::-webkit-scrollbar { display: none; }
.p-chip { flex: none; border: 0; border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 700; background: #f1e6c8; color: #3b2412; cursor: pointer; }
.p-chip.on { background: #3b2412; color: #fdf8ea; }
.p-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: dense; gap: 8px; padding: 0 10px 20px; }
.p-tile { border: 0; border-radius: 16px; padding: 14px; text-align: left; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 150px; }
.p-tile.tall { grid-row: span 2; }
.p-tile em { font-family: var(--serif); font-size: 16px; line-height: 1.28; }
.p-tile.tall em { font-size: 20px; }
.p-tile.long em { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.p-tile small { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.vt0 { background: var(--t-verse); color: #3b2412; }
.vt1 { background: #1b1638; color: #fbe6a6; }
.vt2 { background: #fff; color: #3b2412; box-shadow: inset 0 0 0 2px #f1dc9c; }
.p-story { color: #3b2412; display: none; flex-direction: column; justify-content: center; gap: 14px; padding: 60px 26px 40px; }
.p-story.on { display: flex; }
.p-story .bars { position: absolute; top: 14px; left: 12px; right: 12px; display: flex; gap: 4px; }
.p-story .bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(0,0,0,.2); overflow: hidden; }
.p-story.dark .bars i { background: rgba(255,255,255,.25); }
.p-story .bars i.done { background: currentColor; }
.p-story .bars i.now::after { content: ""; display: block; height: 100%; width: 0; background: currentColor; animation: fill 5s linear forwards; }
.p-story .close { position: absolute; top: 26px; right: 12px; z-index: 3; background: rgba(0,0,0,.25); color: #fff; border: 0; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; font-weight: 700; }
.p-story .tap { position: absolute; inset: 70px 0 0 0; display: grid; grid-template-columns: 1fr 2fr; z-index: 1; }
.p-story .tap button { background: transparent; border: 0; cursor: pointer; }
.p-story .verse { font-family: var(--serif); font-style: italic; font-size: 27px; line-height: 1.25; white-space: pre-line; }
.p-story .verse.v-m { font-size: 23px; }
.p-story .verse.v-l { font-size: 19.5px; line-height: 1.3; }
.p-story .verse.v-xl { font-size: 16.5px; line-height: 1.3; }
.p-story .verse.v-xxl { font-size: 14.5px; line-height: 1.3; }
.p-story .ref { font-size: 12px; font-weight: 700; letter-spacing: .1em; opacity: .75; }
.p-story .tag { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; opacity: .7; }
.p-story.long { display: none; grid-template-rows: auto minmax(0, 1fr) auto auto; justify-content: initial; gap: 14px; overflow: hidden; padding: 68px 26px calc(32px + env(safe-area-inset-bottom, 0px)); }
.p-story.long.on { display: grid; }
.p-story.long .verse { min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 0 4px; position: relative; z-index: 2; touch-action: pan-y; }
.p-story.long .acts { position: static; left: auto; bottom: auto; margin-top: 0; flex: 0 0 auto; }

/* PLAY (storybook) */
.v-play { background: #fbf3dd; color: #3b2412; }
.v-play .p-head { background: #fbf3dd; }
.p-gamehero { margin: 0 14px; border-radius: 22px 30px 18px 34px / 30px 18px 34px 22px; background: var(--t-play); overflow: hidden; position: relative; }
.p-gamehero svg { display: block; width: 100%; height: auto; }
.p-gameinfo { padding: 16px 18px 6px; display: grid; gap: 8px; }
.p-gameinfo h4 { margin: 0; font-size: 24px; line-height: 1.05; font-weight: 800; }
.p-gameinfo p { font-size: 14px; line-height: 1.5; }
.p-cta { border: 0; border-radius: 14px; padding: 13px 16px; background: #3b2412; color: #fbf3dd; font-size: 14px; font-weight: 800; cursor: pointer; }
.p-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 14px; }
.p-trust div { background: #f3e6c4; border-radius: 12px; padding: 10px; font-size: 12px; line-height: 1.35; font-weight: 600; }
.p-map { padding: 6px 14px 14px; display: grid; gap: 8px; }
.p-stop { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; background: #fff8e6; border-radius: 14px; padding: 10px; }
.p-stop .n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #3b2412; }
.p-stop b { font-size: 14px; display: block; }
.p-stop small { font-size: 11px; opacity: .7; }
.p-stop .st { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: #dff0e3; color: #1f5a31; }
.p-stop .st.wip { background: #f1e6c8; color: #7a5a2a; }
.p-stores { display: flex; gap: 8px; padding: 4px 14px 24px; }
.p-stores div { flex: 1; border: 2px dashed #d8c69a; border-radius: 12px; padding: 10px; font-size: 11px; font-weight: 700; text-align: center; color: #7a5a2a; }

/* toast */
.p-toast { position: absolute; top: 18px; left: 50%; translate: -50% -140%; z-index: 40; background: #fff; color: #1a1330; font-size: 12px; font-weight: 700; padding: 9px 14px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: translate .3s ease; max-width: 88%; text-align: center; }
.p-toast.on { translate: -50% 0; }

/* notes beside the phone */

/* ---------- Sun / moon light, idle dimming, colour ripples ---------- */
.p-orb { position: absolute; right: 24px; top: 118px; width: 104px; height: 104px; z-index: 1; pointer-events: none;
  --core: #fff8dc; --glow: #ffe08a; --halo: rgba(255,226,140,.75); --r1: #fff1b8; --r2: #f59a7c; --r3: #ee8fb2;
  opacity: .5; filter: saturate(.75) brightness(.9); transition: opacity 1.2s ease, filter 1.2s ease; }
.p-app.awake .p-orb { opacity: 1; filter: none; transition-duration: .35s; }
.p-orb .core { position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 42% 38%, var(--core) 0%, var(--glow) 70%);
  box-shadow: 0 0 36px 10px var(--halo); animation: breathe 7s ease-in-out infinite; transition: box-shadow .6s ease; }
.p-app.awake .p-orb .core { box-shadow: 0 0 56px 20px var(--halo); }
.p-orb .craters { position: absolute; inset: 0; opacity: 0; transition: opacity .8s;
  background: radial-gradient(circle at 30% 34%, rgba(150,160,190,.45) 0 9%, transparent 10%),
              radial-gradient(circle at 62% 58%, rgba(150,160,190,.35) 0 13%, transparent 14%),
              radial-gradient(circle at 70% 28%, rgba(150,160,190,.3) 0 6%, transparent 7%),
              radial-gradient(circle at 38% 72%, rgba(150,160,190,.3) 0 5%, transparent 6%); }
.p-orb .rips { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.p-app.awake .p-orb .rips { opacity: 1; transition-duration: .3s; }
.p-orb .rip { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--r1); opacity: 0;
  animation: ripple 3.6s cubic-bezier(.2,.6,.35,1) infinite; --a: .4; --s: 2.3; }
.p-orb .rip:nth-child(2) { border-color: var(--r2); animation-delay: .6s; --a: .32; --s: 2.1; }
.p-orb .rip:nth-child(3) { border-color: var(--r3); animation-delay: 1.2s; --a: .26; --s: 1.9; }
.p-orb .rip:nth-child(4) { border-color: var(--r1); animation-delay: 1.8s; --a: .2; --s: 1.75; }
.p-orb .rip:nth-child(5) { border-color: var(--r2); animation-delay: 2.4s; --a: .15; --s: 1.6; }
.p-orb .rip:nth-child(6) { border-color: var(--r3); animation-delay: 3s; --a: .1; --s: 1.45; }
@keyframes ripple { 0% { transform: scale(1); opacity: var(--a); } 100% { transform: scale(var(--s)); opacity: 0; } }
.p-stars { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .8s;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 32%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 48% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 58% 40%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 20% 48%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 38% 58%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 86% 52%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 8% 64%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 8%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 92% 14%, #fff 50%, transparent 51%); }
.p-stars.b { background:
    radial-gradient(1px 1px at 18% 26%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 44% 24%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 20%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 30% 44%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 52%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 82% 36%, #fff 50%, transparent 51%);
  animation-delay: -2s; }
.p-app.night .p-stars { opacity: 1; animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.p-rail b { opacity: .45; transition: top .15s linear, opacity 1.2s ease, box-shadow .6s ease; }
.p-app.awake .p-rail b { opacity: 1; box-shadow: 0 0 14px 4px var(--rail-halo, rgba(255,230,140,.9)); transition: top .15s linear, opacity .3s ease, box-shadow .3s ease; }
.p-rail b::before, .p-rail b::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--rail-r1, #fff1b8); opacity: 0; --a: .45; --s: 2.6; }
.p-app.awake .p-rail b::before { animation: ripple 2s cubic-bezier(.2,.6,.35,1) infinite; }
.p-app.awake .p-rail b::after { border-color: var(--rail-r2, #f59a7c); --a: .28; --s: 2.1; animation: ripple 2s cubic-bezier(.2,.6,.35,1) 1s infinite; }

.p-tapr { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; pointer-events: none; z-index: 35;
  border: 1px solid var(--c); opacity: 0; animation: tapr 1.3s cubic-bezier(.15,.6,.35,1) both; }
.p-tapr.glow { border: 0; background: radial-gradient(circle, var(--c) 0%, transparent 70%); animation-name: tapglow; animation-duration: .9s; }
@keyframes tapr { 0% { transform: scale(.3); opacity: var(--a); } 100% { transform: scale(var(--s)); opacity: 0; } }
@keyframes tapglow { 0% { transform: scale(.6); opacity: .22; } 100% { transform: scale(2.2); opacity: 0; } }

.p-mode { width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: rgba(255,255,255,.18); color: inherit; flex: none; }
.p-mode svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.p-rings .p-mode { margin-left: auto; align-self: start; margin-top: 2px; color: #fff; background: rgba(0,0,0,.25); }
.p-headr { display: flex; align-items: center; gap: 10px; }
.p-head .p-mode { background: rgba(127,127,127,.15); }

/* ---------- Night mode ---------- */
.p-app.night { --rail-halo: rgba(210,222,255,.85); --rail-r1: #dfe6ff; --rail-r2: #b9a4ee; }
.p-app.night .p-rail b { background: #eef2ff; }
.p-app.night .p-orb { --core: #ffffff; --glow: #d6ddf0; --halo: rgba(200,214,255,.6); --r1: #e6ecff; --r2: #b9a4ee; --r3: #8fc0f2; }
.p-app.night .p-orb .craters { opacity: 1; }
.p-app.night .s1 { background: radial-gradient(120% 80% at 80% 25%, #25306a 0%, #111a44 45%, #070b22 100%); color: #f3e9c6; }
.p-app.night .s1 .p-btn.ghost { background: rgba(255,255,255,.14); color: #f3e9c6; }
.p-app.night .s2 { background: #3a1a2b; color: #f8cbdc; }
.p-app.night .s2 .p-blob { background: #4c2238 !important; }
.p-app.night .s3 { background: #3b1710; color: #ffc9b8; }
.p-app.night .s4 { background: radial-gradient(120% 70% at 50% 30%, #3a2a6a 0%, #211641 60%, #140d2b 100%); color: #e3d6fb; }
.p-app.night .s4 .p-wave i { background: rgba(217,200,247,.55); }
.p-app.night .s5 { background: linear-gradient(180deg, #13243a 0%, #10281b 60%, #0a1d12 100%); color: #cfeed6; }
.p-app.night .p-slide .p-btn { background: rgba(255,255,255,.92); color: #151028; }
.p-app.night .s3 svg, .p-app.night .p-gamehero svg { filter: brightness(.62) saturate(.9); }
.p-app.night .s5 > svg path { filter: brightness(.55) saturate(.9); }
.p-app.night .s5 > svg .p-sunmoon { filter: drop-shadow(0 0 10px rgba(220,230,255,.8)); }
.p-app.night .p-sunmoon { fill: #eef2ff; }
.p-app.night .v-read, .p-app.night .v-read .p-head, .p-app.night .p-article { background: #1a1422; color: #efe6f2; }
.p-app.night .p-card { filter: brightness(.9); }
.p-app.night .p-sheet { background: #2a1822; color: #f8dbe6; }
.p-app.night .p-sheet .p-btn { background: #f8dbe6 !important; color: #2a1822; }
.p-app.night .p-article .p-btn { background: #efe6f2; color: #1a1422; }
.p-app.night .p-txt .pray { background: rgba(255,255,255,.07); }
.p-app.night .v-verses, .p-app.night .v-verses .p-head, .p-app.night .p-chips { background: #16122a; color: #f3e9c6; }
.p-app.night .p-chip { background: #2a2446; color: #e8e0c8; }
.p-app.night .p-chip.on { background: var(--t-verse); color: #3b2412; }
.p-app.night .vt2 { background: #221c3d; color: #fbe6a6; box-shadow: inset 0 0 0 2px #3a3163; }
.p-app.night .v-play, .p-app.night .v-play .p-head { background: #121d17; color: #e3f1e6; }
.p-app.night .p-trust div { background: #1d2e24; }
.p-app.night .p-stop { background: #1a2920; }
.p-app.night .p-stop .n { color: #121d17; }
.p-app.night .p-cta { background: #e3f1e6; color: #121d17; }
.p-app.night .p-stores div { border-color: #33503f; color: #a8c8b2; }
.p-app.night .v-play .p-sec, .p-app.night .v-play .p-kicker { color: #8fcf9f !important; }
.p-app.night .p-gamehero { background: #1b3a28; }

/* ---------- Day clouds ---------- */
.p-clouds { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; transition: opacity 1.2s ease; }
.p-app.night .p-clouds { opacity: 0; }
.p-cloud { position: absolute; left: 0; top: var(--y); width: var(--w); opacity: var(--o, .9);
  animation: cloud var(--d) linear infinite; animation-delay: var(--dl, 0s); will-change: transform; }
.p-cloud svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 4px 6px rgba(120,80,20,.12)); }
.p-cloud svg * { fill: #fffdf5; }
@keyframes cloud { from { transform: translateX(-180px); } to { transform: translateX(420px); } }
@keyframes cloud-wide { from { transform: translateX(-260px); } to { transform: translateX(100vw); } }
@keyframes fly-wide { 0% { transform: translate(-90px, 20px); } 25% { transform: translate(25vw, -10px); } 50% { transform: translate(50vw, 18px); } 75% { transform: translate(75vw, -6px); } 100% { transform: translate(calc(100vw + 90px), 12px); } }

/* ---------- Night owl ---------- */
.p-perch { position: absolute; left: 0; right: 0; bottom: 12px; height: .95em; font-size: 76px; z-index: 2; pointer-events: none; overflow-x: clip; overflow-y: visible;
  visibility: hidden; transition: visibility 0s .6s; --fx: 75vw; }
.p-app.night .p-perch { visibility: visible; transition: none; }
.p-perch .p-branch, .p-perch .p-owl { opacity: 0; transition: opacity .6s ease; }
.p-app.night .p-perch .p-branch, .p-app.night .p-perch .p-owl { opacity: 1; }
.p-perch.no-room { display: none; }
.p-app.night .p-perch.tucked { visibility: hidden; transition: visibility 0s .2s; }
.p-perch.tucked .p-branch, .p-perch.tucked .p-owl { opacity: 0 !important; transition: opacity .2s ease; }
.p-branch { position: absolute; left: 0; top: .663em; width: 2.7em; height: .4em; overflow: visible; }
.p-branch .bark { fill: #4a3529; } .p-branch .hi { fill: none; stroke: #7a5a43; stroke-width: 1.6; stroke-linecap: round; opacity: .7; }
.p-branch .twig { fill: none; stroke: #4a3529; stroke-width: 3; stroke-linecap: round; } .p-branch .leaf { fill: #3f6a4f; }
.p-owl { position: absolute; left: 1.15em; top: 0; width: 1em; font-size: inherit; border: 0; padding: 0; background: none; cursor: pointer; pointer-events: auto; }
.p-perch .p-hootbub { left: 1.95em; top: auto; bottom: .78em; }
/* Fly-in when night mode starts: X and Y on separate elements make a gentle arc. */
.p-owl.fly { animation: owlflyx 1.9s cubic-bezier(.22,.61,.36,1) both; }
.p-owl.fly svg { animation: owlflyy 1.9s ease-in-out both; }
.p-owl.fly .wing.l { animation: flapL .16s ease-in-out 10 alternate; }
.p-owl.fly .wing.r { animation: flapR .16s ease-in-out 10 alternate; }
@keyframes owlflyx { 0% { transform: translateX(var(--fx)) rotate(-8deg); opacity: 0; } 12% { opacity: 1; } 85% { transform: translateX(0) rotate(4deg); } 100% { transform: none; opacity: 1; } }
@keyframes owlflyy { 0% { transform: translateY(-.35em) scale(.8); } 45% { transform: translateY(-.75em) scale(.92); } 85% { transform: translateY(-.08em) scale(1); } 92% { transform: translateY(.04em) scale(1.03, .97); } 100% { transform: none; } }
.p-app.calm .p-owl.fly, .p-app.calm .p-owl.fly svg, .p-app.calm .p-owl.fly .wing { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .p-owl.fly, .p-owl.fly svg, .p-owl.fly .wing { animation: none !important; } }
.p-owl svg { display: block; width: 100%; height: auto; overflow: visible; }
.p-owl .head { transform-box: view-box; transform-origin: 68px 58px; animation: owlhead 8s ease-in-out infinite; }
.p-owl .lid { transform-box: fill-box; transform-origin: top; transform: scaleY(0); animation: blink 5s ease-in-out infinite; }
.p-owl .pupil { animation: glance 8s ease-in-out infinite; }
.p-owl .wing { transform-box: fill-box; transform-origin: top center; }
.p-owl.hoot .wing.l { animation: flapL .25s ease-in-out 4 alternate; }
.p-owl.hoot .wing.r { animation: flapR .25s ease-in-out 4 alternate; }
.p-owl.hoot .body { animation: hop .5s ease-in-out 2; transform-box: view-box; transform-origin: 68px 118px; }
@keyframes blink { 0%, 90%, 100% { transform: scaleY(0); } 93%, 95% { transform: scaleY(1); } }
@keyframes owlhead { 0%, 35%, 100% { transform: rotate(0); } 45%, 60% { transform: rotate(-12deg); } 70%, 80% { transform: rotate(8deg); } }
@keyframes glance { 0%, 35%, 100% { transform: translateX(0); } 45%, 60% { transform: translateX(-2px); } 70%, 80% { transform: translateX(2px); } }
@keyframes flapL { to { transform: rotate(28deg); } }
@keyframes flapR { to { transform: rotate(-28deg); } }
@keyframes hop { 50% { transform: translateY(-6px); } }
.p-hootbub { position: absolute; left: 96px; top: 128px; z-index: 3; background: #f3e9c6; color: #1a1330; font: 800 13px var(--display);
  padding: 7px 11px; border-radius: 14px 14px 14px 4px; opacity: 0; transform: scale(.6) translateY(6px); transform-origin: bottom left;
  transition: opacity .25s, transform .25s; pointer-events: none; white-space: nowrap; }
.p-hootbub.on { opacity: 1; transform: none; }

/* ---------- Night flying owl ---------- */
.p-flyowl { position: absolute; left: 0; top: 112px; width: 58px; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 1s; }
.p-app.night .p-flyowl { opacity: 1; animation: fly 17s linear infinite; }
.p-flyowl svg { display: block; width: 100%; height: auto; overflow: visible; }
.p-flyowl .wing { transform-box: fill-box; animation: flap .32s ease-in-out infinite alternate; }
.p-flyowl .wing.l { transform-origin: right center; }
.p-flyowl .wing.r { transform-origin: left center; }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(-.35); } }
@keyframes fly { 0% { transform: translate(-80px, 20px); } 25% { transform: translate(40px, -6px); } 50% { transform: translate(170px, 14px); } 75% { transform: translate(290px, -4px); } 100% { transform: translate(420px, 10px); } }

/* ---------- App shell: full screen, safe areas, readability ---------- */
.p-stage { position: relative; height: 100%; overflow: hidden; }
.p-side, .p-brand, .p-tools { display: none; }
.p-tabs { padding-bottom: env(safe-area-inset-bottom, 0px); }
.p-tab { font-size: 11.5px; text-decoration: none; }
.p-head { padding-top: calc(22px + env(safe-area-inset-top, 0px)); }
.p-headr { gap: 8px; }
.p-rings { padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
.p-kicker { opacity: .85; }
.p-btn { min-height: 40px; }
.p-btn.ghost { background: rgba(255,255,255,.55); }
.p-app.night .p-btn.ghost { background: rgba(255,255,255,.16); color: inherit; }
.p-btn:focus-visible, .p-tab:focus-visible, .p-brand:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.p-mode[aria-pressed="true"] { background: #fff1b8; color: #1a1330; }
.p-mode[hidden] { display: none; }
.p-story .acts { position: absolute; left: 24px; bottom: 28px; z-index: 2; display: flex; gap: 8px; }
.p-story .acts .p-btn.ghost { background: rgba(0,0,0,.12); }
.p-story.dark .acts .p-btn { background: #fbe6a6; color: #1b1638; }
.p-story.dark .acts .p-btn.ghost { background: rgba(255,255,255,.14); color: #fbe6a6; }
@media (max-width: 370px) { .p-head .p-logo { display: none; } }

/* ---------- "Swipe up" hint on the first post ---------- */
.p-slide.s1 { padding-bottom: 58px; }
.p-hint { position: absolute; left: 50%; bottom: 12px; translate: -50% 0; z-index: 3; display: grid; justify-items: center; gap: 2px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; opacity: .85; transition: opacity .5s, visibility .5s; animation: hint 1.8s ease-in-out 3; pointer-events: none; }
.p-hint i { width: 10px; height: 10px; border-left: 2px solid currentColor; border-top: 2px solid currentColor; rotate: 45deg; }
.p-app.swiped .p-hint { opacity: 0; visibility: hidden; }
.p-welcome { display: none; }
.sc-family { background: #244334; color: #fff8e9; }
.sc-family .verse { font: italic 24px/1.3 var(--serif); }
.p-btn, .p-tab, .p-mode { transition: background-color .18s ease, opacity .18s ease, transform .18s ease; }
.p-btn:active, .p-mode:active { transform: scale(.97); }
.p-app :is(button, a, input):focus-visible { outline: 3px solid #fff8e9; outline-offset: 3px; box-shadow: 0 0 0 5px #3b2412; }
@media (hover: hover) {
  .p-btn:hover { opacity: .88; }
  .p-ring:hover i { transform: translateY(-2px); }
  .p-tab:hover, .p-mode:hover { background-color: rgba(255,255,255,.12); }
}
.p-ring i { transition: transform .18s ease; }
.p-orb .rip { animation-duration: 8s; }
.p-orb .rip:nth-child(n+3) { display: none; }
.p-app.night .p-stars { animation-duration: 9s; }
.p-cloud { animation-duration: calc(var(--d) * 1.5); }
.p-app.calm .p-owl *, .p-app.calm .p-sun, .p-app.calm .bigart i { animation: none !important; }
.p-app.calm :is(.p-btn, .p-mode, .p-ring i) { transition: none; transform: none; }
.p-app.calm .p-story { animation: none; }
@media (max-width: 899px) {
  .v-today .p-slide.s1 { justify-content: center; padding-top: 180px; padding-bottom: 64px; }
  .v-today .p-slide.s1 .verse { font-size: clamp(22px, 5.9vw, 28px); }
  .v-today .s1 .p-clouds { height: 38%; }
}
@keyframes hint { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- Save battery: pause posts that are off screen, and everything when the app is hidden ---------- */
.p-feed .p-slide:not(.inview) *, .p-app.asleep * { animation-play-state: paused !important; }

/* ---------- Calm mode: far less movement ---------- */
.p-app.calm .p-cloud, .p-app.calm .p-orb .core, .p-app.calm .p-stars, .p-app.calm .p-wave i, .p-app.calm .drift,
.p-app.calm .bob, .p-app.calm .swim, .p-app.calm .rain i, .p-app.calm .p-owl .head, .p-app.calm .p-owl .pupil,
.p-app.calm .p-hint, .p-app.calm .p-rail b::before, .p-app.calm .p-rail b::after { animation: none !important; }
.p-app.calm .p-flyowl, .p-app.calm .p-orb .rips, .p-app.calm .p-tapr { display: none !important; }
.p-app.calm .p-cloud:nth-child(1) { transform: translateX(24px); }
.p-app.calm .p-cloud:nth-child(2) { transform: translateX(190px); }
.p-app.calm .p-cloud:nth-child(3) { transform: translateX(70px); }
.p-app.calm .p-cloud:nth-child(4) { transform: translateX(230px); }
.p-app.calm .p-view.on, .p-app.calm .p-sheet, .p-app.calm .p-article, .p-app.calm .p-full { transition: none; animation: none; }

/* ---------- Side panel cards (computer layout) ---------- */
.p-sidecard { border-radius: 20px; padding: 18px; display: grid; gap: 10px; }
.p-sidecard b { font-size: 17px; line-height: 1.25; }
.p-sidecard span, .p-sidecard small { font-size: 13px; line-height: 1.45; opacity: .85; }
.sc-verse { background: radial-gradient(120% 90% at 85% 10%, #ffe089, #f7c23f 55%, #e0a820); color: #3b2412; }
.sc-verse .verse { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.3; }
.sc-verse .ref { font-size: 11px; font-weight: 700; letter-spacing: .1em; opacity: .7; }
.sc-news { background: #1d1938; border: 1px solid var(--line); color: var(--text); }
.sc-news input { width: 100%; border-radius: 12px; border: 1px solid #3b3566; background: #0f0d20; color: var(--text); padding: 11px 12px; font: 15px var(--display); }
.sc-news input:focus-visible { outline: 2px solid var(--courage); outline-offset: 1px; }
.sc-news .p-btn { justify-self: start; background: var(--courage); color: #3b2412; }
.sc-game { background: linear-gradient(160deg, #9ad8aa, #69ba7e 60%, #3f8a55); color: #0f2a17; }
.sc-game .p-btn, .sc-verse .p-btn:not(.ghost) { justify-self: start; }
.p-app.night .sc-verse { background: radial-gradient(120% 90% at 85% 10%, #25306a, #111a44 55%, #070b22); color: #f3e9c6; }
.p-app.night .sc-game { background: linear-gradient(160deg, #13243a, #10281b 60%, #0a1d12); color: #cfeed6; }
.p-app.night .p-sidecard .p-btn:not(.ghost) { background: rgba(255,255,255,.92); color: #151028; }

/* ---------- Computer layout ---------- */
@media (min-width: 900px) {
  .p-app { --navh: 68px; }
  .p-app.has-mini { --minih: 78px; }
  .p-tabs { top: 0; bottom: auto; height: var(--navh); display: flex; align-items: center; gap: 4px; padding: 0 22px; border-top: 0; border-bottom: 1px solid #262145; }
  .p-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; text-decoration: none; margin-right: 20px; }
  .p-brand i { width: 12px; height: 12px; border-radius: 50%; background: #fff3c4; box-shadow: 0 0 12px 4px rgba(255,230,140,.7); }
  .p-tab { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 9px 14px; border-radius: 999px; }
  .p-tab svg { width: 18px; height: 18px; }
  .p-tab:hover { color: #d9d3ef; }
  .p-tab.on { background: rgba(255,255,255,.07); }
  .p-tab.on::before { top: auto; bottom: -14px; width: 60%; border-radius: 3px 3px 0 0; }
  .p-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
  .p-tools .p-mode { background: rgba(255,255,255,.08); color: #e9e4f7; }
  .p-tools [data-install] { width: auto; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 700; }
  .p-rings .p-mode, .p-headr .p-mode { display: none; }
  .p-view { top: var(--navh); bottom: var(--minih); }
  .p-head { padding-top: 26px; }

  .v-today.on { display: grid; grid-template-columns: minmax(340px, 430px) 320px; justify-content: center; gap: 40px; padding: 28px; position: absolute; overflow: hidden; }
  .v-today > :not(.p-sky) { position: relative; z-index: 1; }
  /* Desktop: the owl perches in the free space right of the welcome text, just above the cards,
     on a branch growing from the right edge. It scrolls with the page, so cards never pass over it. */
  .v-today > .p-perch { position: absolute; top: var(--perch-top, 90px); bottom: auto; font-size: var(--perch-size, 110px); z-index: 2; --fx: -60vw; }
  .v-today > .p-perch .p-branch { left: auto; right: 0; transform: scaleX(-1); }
  .v-today > .p-perch .p-owl { left: auto; right: 1.15em; }
  .v-today > .p-perch .p-hootbub { left: auto; right: 2.05em; border-radius: 14px 14px 4px 14px; transform-origin: bottom right; }

  /* The sky behind the Today page (moved here from the first post by js/app.js) */
  .p-sky { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
    background: linear-gradient(180deg, #a9d4f2 0%, #d8ecf6 45%, #fbf0d2 80%, #f7dfa6 100%); transition: background 1.2s ease; }
  .p-app.night .p-sky { background: linear-gradient(180deg, #050818 0%, #0b1236 45%, #17235a 80%, #25306a 100%); }
  .p-sky .p-orb { right: 7%; top: 9%; width: 150px; height: 150px; }
  .p-sky .p-clouds { z-index: 0; }
  .p-sky .p-cloud { width: calc(var(--w) * 1.5); animation-name: cloud-wide; animation-duration: calc(var(--d) * 2.6); }
  .p-sky .p-cloud:nth-child(2) { top: 34%; }
  .p-sky .p-cloud:nth-child(3) { top: 58%; }
  .p-sky .p-cloud:nth-child(4) { top: 76%; }
  .p-sky .p-flyowl { top: 18%; width: 64px; }
  .p-app.night .p-sky .p-flyowl { animation-name: fly-wide; animation-duration: 42s; }
  .p-sky .p-stars { background-size: 520px 460px; }
  /* Without the sun and clouds, the verse card centres its text and gives it more room. */
  .v-today .p-slide.s1:not(.s-studio) { justify-content: center; padding-bottom: 90px; }
  .v-today .p-slide.s1:not(.s-studio) .verse { font-size: 28px; line-height: 1.3; }
  .v-today .p-stage { border-radius: 28px; box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 30px 70px rgba(20,20,60,.35); }
  .p-app.night .v-today .p-stage { box-shadow: 0 0 0 1px var(--line), 0 30px 70px rgba(0,0,0,.55); }
  .p-side { display: grid; align-content: start; gap: 16px; overflow-y: auto; scrollbar-width: none; }
  .v-watch .p-feed { width: min(430px, 100%); height: calc(100% - 48px); margin: 24px auto; border-radius: 28px; box-shadow: 0 0 0 1px var(--line); }

  .v-listen, .v-read, .v-verses, .v-play { padding-inline: max(16px, calc((100% - 920px) / 2)); }
  .p-cards { grid-template-columns: 1fr 1fr; }
  .p-card.feat { grid-column: 1 / -1; min-height: 220px; }
  .p-grid { grid-template-columns: repeat(4, 1fr); }
  .p-chips { top: 78px; }
  .p-trust { grid-template-columns: repeat(4, 1fr); }
  .p-map { grid-template-columns: 1fr 1fr; }
  .p-gamehero svg { height: 360px; width: 100%; }
  .p-head .p-logo { display: none; }

  .p-mini { left: 50%; right: auto; width: min(580px, calc(100% - 32px)); translate: -50% 0; bottom: 12px; }
  .p-over { top: var(--navh); }
  .p-article { bottom: var(--minih); }
  .p-article .hero, .p-article .body, .p-article > div { padding-inline: max(20px, calc((100% - 720px) / 2)); }
  .p-article .listen { margin-left: 0; }
  .p-full, .p-story { left: 50%; right: auto; width: min(440px, calc(100% - 32px)); translate: -50% 0; top: calc(var(--navh) + 16px); bottom: 16px; border-radius: 28px; }
  .p-toast { top: calc(var(--navh) + 12px); }
}

/* Desktop home: wide hero and visible content cards. */
@media (min-width: 900px) {
  .v-today.on { grid-template-columns: minmax(0, 1fr) 290px; grid-template-rows: auto 1fr; align-content: start; gap: 24px; padding: 28px max(28px, calc((100vw - 1260px) / 2)); overflow-y: auto; }
  .p-welcome { display: block; grid-column: 1 / -1; }
  .p-welcome h1 { margin: 4px 0; font-size: 36px; line-height: 1.15; letter-spacing: -.025em; }
  .p-welcome p { font-size: 16px; }
  .v-today .p-sky { position: fixed; top: var(--navh); bottom: var(--minih); opacity: 1; }
  .p-app:not(.night) .p-welcome { color: #26384b; }
  .p-app:not(.night) .p-welcome .p-kicker { opacity: .9; }
  .p-sky .p-cloud svg { filter: drop-shadow(0 4px 8px rgba(42,75,107,.16)); }
  /* The feed grows with its cards and the page scrolls; a fixed-height stage clipped the last card. */
  .v-today .p-stage, .p-app.night .v-today .p-stage { min-width: 0; height: auto; overflow: visible; border-radius: 0; box-shadow: none; }
  .v-today.on { padding-bottom: 56px; }
  .v-today .p-rings, .v-today .p-rail, .v-today .p-hint { display: none; }
  .v-today #pFeed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; height: auto; overflow: visible; scroll-snap-type: none; }
  .v-today .p-slide { height: auto; min-height: 230px; padding: 24px; border-radius: 24px; gap: 12px; justify-content: flex-start; scroll-snap-align: none; }
  .v-today .p-slide.s1, .v-today .p-slide.s1:not(.s-studio) { grid-column: 1 / -1; min-height: 350px; padding: 36px; justify-content: center; }
  .v-today .p-slide.s1 .verse, .v-today .p-slide.s1:not(.s-studio) .verse { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.25; max-width: 680px; }
  .v-today .p-slide .big { font-size: 23px; line-height: 1.15; }
  .v-today .p-slide p { font-size: 15px; }
  .v-today .p-slide .p-btns { margin-top: auto; }
  .v-today .p-slide.s1 .p-btns { margin-top: 12px; }
  .v-today .p-slide > :is(svg, .p-blob, .p-wave, .p-clouds) { display: none; }
  .v-today .p-slide.s5 { grid-column: 1 / -1; min-height: 160px; }
  .v-today .p-side { overflow: visible; }
  .p-sidecard { padding: 22px; gap: 12px; }
  .p-sidecard span, .p-sidecard small { font-size: 14px; }
  .p-tabs { padding-inline: 16px; }
  .p-brand { margin-right: 8px; }
  .p-tab { padding-inline: 10px; }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .v-today.on { grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; padding: 24px; }
  .v-today #pFeed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v-today .p-slide.s4 { grid-column: 1 / -1; min-height: 180px; }
  .p-tools [data-install] { padding-inline: 10px; }
}

/* A wave of light travels from the brand's dot into its lettering. */
@keyframes brand-wave {
  0% { transform: scale(.035); opacity: 0; }
  12% { opacity: .6; }
  75% { opacity: .25; }
  100% { transform: scale(1); opacity: 0; }
}
@keyframes brand-shine {
  from { background-position: 100% 0; text-shadow: none; }
  to { background-position: 0% 0; text-shadow: 0 0 12px rgba(255,224,137,.7), 0 0 24px rgba(255,201,74,.35); }
}
@media (min-width: 900px) {
  .p-brand { position: relative; isolation: isolate; clip-path: inset(-18px -10px); }
  .p-brand i { position: relative; flex-shrink: 0; transition: box-shadow .25s ease; }
  .p-brand i::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; }
  .p-brand i b { position: absolute; width: 320px; height: 320px; left: calc(50% - 160px); top: calc(50% - 160px); border: 1px solid #fff3c4; border-radius: 50%; box-shadow: 0 0 3px rgba(255,224,137,.4); opacity: 0; pointer-events: none; z-index: -1; }
  .p-brand:has(> i:hover) i, .p-brand:focus-visible i { box-shadow: 0 0 16px 6px rgba(255,230,140,.9); }
  .p-brand:has(> i:hover) i b, .p-brand:focus-visible i b { animation: brand-wave 2s cubic-bezier(.2,.5,.35,1) both; }
  .p-brand i b:nth-child(2) { animation-delay: .16s !important; }
  .p-brand i b:nth-child(3) { animation-delay: .32s !important; }
  .p-brand i b:nth-child(4) { animation-delay: .48s !important; }
  .p-brand i b:nth-child(5) { animation-delay: .64s !important; }
  .p-tab { transition: color .2s ease, background-color .2s ease, text-shadow .2s ease; }
  .p-tab:focus-visible { color: #fff3c4; text-shadow: 0 0 12px rgba(255,224,137,.65); }
  .p-tab:focus-visible svg { filter: drop-shadow(0 0 4px rgba(255,224,137,.55)); }
  .p-app.calm .p-brand i { transition: none; }
  .p-app.calm .p-brand i b { animation: none; }
}
@media (min-width: 900px) and (hover: hover) {
  .p-tab:hover { color: #fff3c4; background: rgba(255,243,196,.08); text-shadow: 0 0 12px rgba(255,224,137,.65); }
  .p-tab:hover svg { filter: drop-shadow(0 0 4px rgba(255,224,137,.55)); }
}
@media (prefers-reduced-motion: reduce) {
  .p-brand i b { animation: none !important; }
  .p-brand i { transition: none; }
}

/* Narrower computer screens: keep the owl in the corner beside the feed */
@media (min-width: 900px) and (max-width: 1199px) {
}

@media (prefers-reduced-motion: reduce) {
  .p-hint, .p-view.on { animation: none; }
}

/* ---------- Small-phone fit for the top row, sticky topic chips under the header ---------- */
.p-rings { gap: 10px; padding-inline: 12px; }
.p-rings .p-mode { width: 34px; height: 34px; }
.p-rings .p-mode + .p-mode { margin-left: 0; }
.p-chips { top: calc(66px + env(safe-area-inset-top, 0px)); }
@media (min-width: 900px) { .p-chips { top: 70px; } }

@media (max-width: 899px) {
}
@media (max-width: 359px) {
  .p-rings { gap: 8px; padding-inline: 8px; }
  .p-ring i { width: 34px; height: 34px; }
  .p-rings .p-mode { width: 30px; height: 30px; }
}
@media (max-width: 899px) and (max-height: 650px) {
  .v-today .p-slide.s1 { padding-top: 120px; padding-bottom: 76px; gap: 8px; }
  .v-today .s1 .p-orb { top: 82px; right: 24px; width: 80px; height: 80px; }
  .v-today .s1 .p-perch { font-size: 58px; bottom: 6px; }
  .v-today .s1 .p-clouds { height: 28%; }
}

/* Keep the empty notification fully hidden until it has something to say */
.p-toast { opacity: 0; visibility: hidden; transition: translate .3s ease, opacity .3s ease, visibility .3s; }
.p-toast.on { opacity: 1; visibility: visible; }

/* ---------- Posts from the Studio ---------- */
.p-slide.has-hint { padding-bottom: 58px; }
.p-yt { justify-self: start; color: #fff; font-size: 12px; font-weight: 700; }
.p-gamenews { display: grid; gap: 10px; padding: 12px 14px 4px; }
.p-newscard { background: #fff8e6; border-radius: 16px; padding: 14px; display: grid; gap: 6px; }
.p-newscard small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .65; }
.p-newscard b { font-size: 17px; line-height: 1.2; }
.p-newscard p { font-size: 14px; line-height: 1.5; }
.p-newscard .p-btn { justify-self: start; }
.p-app.night .p-newscard { background: #1a2920; }
.p-txt .meta { margin: 0; }

/* "Coming soon" message for menus switched to coming_soon in the Studio. */
.p-soon { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(26,19,48,.45); }
.p-soon.on { display: flex; }
.p-soon-card { background: #fff8e6; color: #1a1330; border-radius: 26px; padding: 26px 22px 20px; max-width: 300px; width: 100%; text-align: center; box-shadow: 0 18px 48px rgba(0,0,0,.3); animation: p-soon-pop .35s ease; }
.p-soon-card b { display: block; font-size: 20px; font-weight: 800; margin: 4px 0 8px; }
.p-soon-card p { font-size: 15px; line-height: 1.45; margin: 0 0 16px; }
.p-soon-star { font-size: 38px; line-height: 1; }
@keyframes p-soon-pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.calm .p-soon-card { animation: none; }
@media (prefers-reduced-motion: reduce) { .p-soon-card { animation: none; } }
.p-tab[hidden], .p-ring[hidden], .p-btn[hidden] { display: none !important; }
/* "Join the testers": big gold call-to-action (dark text on gold, contrast well above WCAG AA). */
.p-stores .p-join { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; margin-top: 12px; padding: 12px 28px; border-radius: 999px; background: linear-gradient(135deg, #ffe089 0%, #f7c23f 50%, #e0a820 100%); color: #2a1a05; font-size: 17px; font-weight: 800; letter-spacing: .01em; text-decoration: none; border: 2px solid #c98f12; box-shadow: 0 6px 18px rgba(224,168,32,.45), 0 0 0 4px rgba(247,194,63,.22); transition: transform .15s ease, box-shadow .15s ease; }
.p-stores .p-join::after { content: "→"; font-size: 18px; }
.p-stores .p-join:hover { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(224,168,32,.55), 0 0 0 5px rgba(247,194,63,.3); }
.p-stores .p-join:active { transform: translateY(1px); }
.p-stores .p-join:focus-visible { outline: 3px solid #2a1a05; outline-offset: 3px; }
.p-app.night .p-stores .p-join { color: #2a1a05; border-color: #ffe089; box-shadow: 0 0 22px rgba(247,194,63,.55), 0 0 0 4px rgba(247,194,63,.25); }
@media (prefers-reduced-motion: no-preference) {
  .p-stores .p-join::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-120%); animation: p-join-shine 3.2s ease-in-out 1s infinite; pointer-events: none; }
}
@keyframes p-join-shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.calm .p-stores .p-join::before { animation: none; display: none; }
.calm .p-stores .p-join { transition: none; }
/* Today grid when built-in cards were hidden in the Studio: fill the middle row, no empty cells. */
@media (min-width: 900px) {
  .v-today #pFeed.mid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v-today #pFeed.mid-2 .p-slide.s4 { grid-column: auto; }
  .v-today #pFeed.mid-1 .p-slide:is(.s2, .s3, .s4) { grid-column: 1 / -1; }
  /* Studio posts on Today are full-width banners, so they never leave a half-empty row. */
  .v-today #pFeed .p-slide.s-studio { grid-column: 1 / -1; }
}

/* ---------- devotion sheet (phone) / modal (computer) ---------- */
.p-sheet { height: 88%; overflow: hidden; }
.p-sheet-head { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 22px 20px 14px; border-bottom: 1px solid rgba(58,20,38,.1); flex: none; }
.p-sheet-head .handle { position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 40px; height: 5px; border-radius: 999px; background: #d9a9bd; }
.p-sheet-titles { flex: 1; min-width: 0; }
.p-sheet-titles .meta { font: 700 11px var(--display); letter-spacing: .12em; text-transform: uppercase; color: #6b3550; }
.p-app.night .p-sheet-titles .meta { color: #e8c9d6; }
.p-sheet-titles h2 { margin: 4px 0 0; font: 800 23px/1.15 var(--display); letter-spacing: -.01em; }
.p-x { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer; background: rgba(58,20,38,.07); border: 1.5px solid rgba(58,20,38,.22); color: #3a1426; transition: background .15s ease; }
.p-x svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.p-x:hover { background: rgba(58,20,38,.14); }
.p-x:focus-visible, .p-sheet .scroll:focus-visible, .p-sheet-foot .p-btn:focus-visible { outline: 3px solid #b0336a; outline-offset: 3px; }
.p-sheet .scroll { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px 24px; scrollbar-width: thin; scrollbar-color: #d9a9bd transparent; }
.p-sheet .scroll::-webkit-scrollbar { width: 8px; }
.p-sheet .scroll::-webkit-scrollbar-thumb { background: #d9a9bd; border-radius: 999px; }
.p-sheet .scroll::-webkit-scrollbar-track { background: transparent; }
.p-sheet .p-txt { max-width: 64ch; margin: 0 auto; font-size: 17px; line-height: 1.7; gap: 16px; }
.p-sheet .p-txt p { margin: 0; }
.p-sheet .p-txt blockquote { padding: 14px 16px; border-left: 4px solid #ee8fb2; border-radius: 0 14px 14px 0; background: rgba(238,143,178,.14); font-size: 18px; }
.p-sheet .p-txt blockquote .meta { display: block; margin-top: 6px; font-style: normal; }
.p-sheet .p-txt .meta { opacity: 1; color: #6b3550; }
.p-app.night .p-sheet .p-txt .meta { color: #e8c9d6; }
.p-sheet .p-txt .pray { padding: 16px 18px; border-radius: 16px; background: #fde7ef; border: 1px solid rgba(176,51,106,.18); }
.p-sheet .p-txt .pray::before { content: "Prayer"; display: block; margin-bottom: 4px; font: 700 11px var(--display); font-style: normal; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.p-sheet-foot { position: sticky; bottom: 0; flex: none; display: flex; justify-content: flex-end; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: inherit; border-top: 1px solid rgba(58,20,38,.1); }
.p-sheet-foot .p-btn { background: #3a1426; color: #fff; min-height: 44px; }
.p-app.sheet-open .p-view.on { overflow: hidden !important; }
.p-app.night .p-sheet-head, .p-app.night .p-sheet-foot { border-color: rgba(248,219,230,.14); }
.p-app.night .p-x { background: rgba(248,219,230,.1); border-color: rgba(248,219,230,.3); color: #f8dbe6; }
.p-app.night .p-x:focus-visible, .p-app.night .p-sheet .scroll:focus-visible { outline-color: #f5c542; }
.p-app.night .p-sheet .p-txt .pray { background: rgba(255,255,255,.07); border-color: rgba(248,219,230,.16); }
.p-app.night .p-sheet .p-txt blockquote { background: rgba(238,143,178,.12); }
.p-app.night .p-sheet-foot .p-btn { background: #f8dbe6 !important; color: #2a1822; }
.p-app.night .p-sheet .scroll { scrollbar-color: #7a4a5f transparent; }
.p-app.night .p-sheet .scroll::-webkit-scrollbar-thumb { background: #7a4a5f; }
@keyframes p-modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) {
  .p-sheetwrap { position: fixed; inset: 0; top: 0; z-index: 70; padding: 32px 24px; }
  .p-sheetwrap.on { display: flex; align-items: center; justify-content: center; }
  .p-sheet { position: relative; left: auto; right: auto; bottom: auto; translate: none; width: min(640px, 100%); height: auto; max-height: min(86vh, 860px); border-radius: 24px; box-shadow: 0 30px 80px rgba(10,8,24,.45); animation: p-modal-in .28s ease; }
  .p-sheet-head { padding-top: 22px; }
  .p-sheet-head .handle { display: none; }
  .p-sheet-foot { border-radius: 0 0 24px 24px; }
}
@media (prefers-reduced-motion: reduce) { .p-sheet { animation: none; } }
.p-app.calm .p-sheet { animation: none; }

/* ---------- Glass system ----------
   Tokens + a .glass base class with variants:
     .glass            light frosted surface (tint/alpha from --glass-tint / --glass-a)
     .glass--dark      dark tint (bars, player, lists on dark pages)
     .glass--light     warm light tint (sheet, dialogs, toasts, Play cards)
     .glass--strong    higher alpha + smaller blur, for small dense UI
     .glass--bar       persistent bars: smaller blur, no radius/shadow, hairline edge only
   Content cards (Today posts on computers, side cards, Read cards, Listen hero) share the same
   tokens; their own tint + text-side scrim is set per card below.
   Rules: no glass inside glass; phones use a smaller blur; nothing animates a filter.
   Contrast comes from blur + scrim + text-shadow, checked by pixel-sampling tests (AA). */
:root {
  --glass-blur: 22px; --glass-sat: 160%; --glass-bar-blur: 16px;
  --glass-tint: 255,255,255; --glass-a: .22; --glass-scrim: linear-gradient(transparent, transparent);
  --glass-border: rgba(255,255,255,.25);
  --glass-sheen: linear-gradient(125deg, rgba(255,255,255,.32), rgba(255,255,255,.07) 26%, transparent 44%, transparent 74%, rgba(255,255,255,.09));
  --glass-shadow: 0 14px 36px rgba(20,24,60,.16);
  --glass-text-shadow: 0 1px 2px rgba(255,255,255,.45);
}
.p-app.night {
  --glass-border: rgba(255,255,255,.22);
  --glass-sheen: linear-gradient(125deg, rgba(255,255,255,.16), rgba(255,255,255,.04) 26%, transparent 44%, transparent 74%, rgba(255,255,255,.05));
  --glass-shadow: 0 16px 40px rgba(0,0,0,.4);
}
@media (max-width: 899px) { :root { --glass-blur: 12px; --glass-sat: 150%; --glass-bar-blur: 10px; } }
/* Static colour blobs behind the cards: one layer, plain gradients, nothing animated. */
@media (min-width: 900px) {
  .p-sky::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(28% 34% at 18% 42%, rgba(238,143,178,.45), transparent 70%),
      radial-gradient(26% 30% at 52% 70%, rgba(160,127,214,.40), transparent 70%),
      radial-gradient(24% 30% at 80% 58%, rgba(105,186,126,.38), transparent 70%); }
  .p-app.night .p-sky::after { background: radial-gradient(28% 34% at 18% 42%, rgba(238,143,178,.22), transparent 70%),
      radial-gradient(26% 30% at 52% 70%, rgba(160,127,214,.28), transparent 70%),
      radial-gradient(24% 30% at 80% 58%, rgba(105,186,126,.18), transparent 70%); }
}
@media (max-width: 899px) {
  .v-read { background: radial-gradient(60% 30% at 15% 20%, rgba(238,143,178,.35), transparent 70%), radial-gradient(55% 28% at 90% 55%, rgba(247,194,63,.30), transparent 70%), radial-gradient(60% 30% at 30% 90%, rgba(160,127,214,.28), transparent 70%), #fbf6ee; background-attachment: local; }
  .p-app.night .v-read { background: radial-gradient(60% 30% at 15% 20%, rgba(238,143,178,.16), transparent 70%), radial-gradient(55% 28% at 90% 55%, rgba(247,194,63,.10), transparent 70%), radial-gradient(60% 30% at 30% 90%, rgba(160,127,214,.16), transparent 70%), #1a1422; background-attachment: local; }
  .v-listen { background: radial-gradient(70% 30% at 85% 10%, rgba(160,127,214,.45), transparent 70%), radial-gradient(60% 30% at 10% 40%, rgba(238,143,178,.25), transparent 70%), #17122e; background-attachment: local; }
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  /* Base: the class, plus the content cards that share it. */
  .glass, .p-card, .p-now {
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); text-shadow: var(--glass-text-shadow); isolation: isolate; }
  .p-card, .p-now { position: relative; }
  .glass { background: var(--glass-scrim), rgba(var(--glass-tint), var(--glass-a)) !important; }
  .glass::before, .p-card::before, .p-now::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; background: var(--glass-sheen); }
  .glass--dark { --glass-tint: 18,14,38; --glass-a: .55; --glass-text-shadow: 0 1px 3px rgba(0,0,0,.6); }
  .glass--light { --glass-tint: 255,250,242; --glass-a: .62; --glass-text-shadow: 0 1px 2px rgba(255,255,255,.55); }
  .p-app.night :is(.p-sheet, .p-newscard).glass--light { --glass-tint: 34,22,40; --glass-a: .7; --glass-text-shadow: 0 1px 3px rgba(0,0,0,.6); }
  .glass--strong { --glass-a: .8; --glass-blur: 14px; }
  .p-app.night .glass--strong.glass--light { --glass-a: .84; }
  .glass--bar { -webkit-backdrop-filter: blur(var(--glass-bar-blur)) saturate(var(--glass-sat)); backdrop-filter: blur(var(--glass-bar-blur)) saturate(var(--glass-sat));
    border: 0; box-shadow: none; border-radius: 0; }
  .glass--bar::before { content: none; }

  /* Bars */
  .p-tabs.glass { --glass-a: .6; border-top: 1px solid var(--glass-border); }
  .p-head.glass { --glass-tint: 23,18,46; --glass-a: .62; }
  .v-read .p-head.glass { --glass-tint: 251,246,238; --glass-a: .72; --glass-text-shadow: 0 1px 2px rgba(255,255,255,.6); }
  .v-verses .p-head.glass { --glass-tint: 253,248,234; --glass-a: .72; --glass-text-shadow: 0 1px 2px rgba(255,255,255,.6); }
  .v-play .p-head.glass { --glass-tint: 251,243,221; --glass-a: .72; --glass-text-shadow: 0 1px 2px rgba(255,255,255,.6); }
  .p-app.night .v-read .p-head.glass { --glass-tint: 26,20,34; --glass-a: .66; --glass-text-shadow: 0 1px 3px rgba(0,0,0,.6); }
  .p-app.night .v-verses .p-head.glass { --glass-tint: 22,18,42; --glass-a: .66; --glass-text-shadow: 0 1px 3px rgba(0,0,0,.6); }
  .p-app.night .v-play .p-head.glass { --glass-tint: 18,29,23; --glass-a: .66; --glass-text-shadow: 0 1px 3px rgba(0,0,0,.6); }
  /* Player, sheet, dialogs, toasts */
  .p-mini.glass { --glass-tint: 45,35,82; --glass-a: .72; }
  .p-full.glass { --glass-tint: 34,24,66; --glass-a: .62; --glass-scrim: linear-gradient(180deg, rgba(59,44,107,.35), rgba(23,18,46,.55) 70%); border: 0; box-shadow: none; }
  .p-full.glass::before { content: none; }
  .p-sheet.glass { --glass-tint: 255,247,250; --glass-a: .8; }
  .p-app.night .p-sheet.glass { --glass-tint: 42,24,34; --glass-a: .82; }
  .p-sheet .p-sheet-foot { background: transparent; }
  .p-soon-card.glass { position: relative; }
  .p-soon { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .p-toast.glass { --glass-a: .86; }
  /* Listen list as ONE glass panel (rows are not blurred individually). */
  .p-list.glass { position: relative; margin: 0 14px 20px; padding: 6px; border-radius: 20px; --glass-tint: 30,22,60; --glass-a: .42; }
  /* Play page */
  .p-newscard.glass { position: relative; }
  .p-trust div { position: relative; isolation: isolate; -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
    background: rgba(243,230,196,.55); border: 1px solid var(--glass-border); }
  .p-app.night .p-trust div { background: rgba(30,46,36,.62); }

  /* Content cards: own tint + text-side scrim. */
  .p-card { background: radial-gradient(110% 90% at 30% 65%, rgba(255,255,255,.5), transparent 80%), color-mix(in srgb, var(--c, #2a2448) 30%, transparent); }
  .p-card span, .p-card .foot { opacity: 1; }
  .p-now { background: radial-gradient(90% 80% at 25% 60%, rgba(255,255,255,.30), transparent 75%), rgba(160,127,214,.30); }
  .p-app.night .p-card { filter: none; background: radial-gradient(110% 90% at 30% 65%, rgba(16,10,28,.6), transparent 80%), color-mix(in srgb, var(--c, #2a2448) 18%, rgba(20,14,34,.22)); color: #f7eef4 !important; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
  .p-now { color: #1a0f33; }
  .p-app.night .p-now { color: #f3ecff; text-shadow: 0 1px 3px rgba(0,0,0,.6); background: radial-gradient(100% 90% at 25% 60%, rgba(16,10,34,.55), transparent 80%), rgba(111,82,168,.30); }
  @media (min-width: 900px) {
    .v-today .p-slide, .p-sidecard {
      -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat)); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
      border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), var(--glass-shadow);
      position: relative; isolation: isolate; text-shadow: 0 1px 2px rgba(255,255,255,.5); }
    .v-today .p-slide::before, .p-sidecard::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; background: var(--glass-sheen); }
    /* Day: 20-28% tint + a pale scrim on the text side; dark ink everywhere. */
    .v-today .s1 { background: radial-gradient(70% 90% at 22% 55%, rgba(255,250,230,.38), transparent 72%), rgba(247,194,63,.24); }
    .v-today .s2 { background: radial-gradient(80% 90% at 25% 50%, rgba(255,240,246,.40), transparent 75%), rgba(238,143,178,.24); }
    .v-today .s3 { background: radial-gradient(80% 90% at 25% 50%, rgba(255,236,230,.40), transparent 75%), rgba(228,106,76,.22); }
    .v-today .s4 { background: radial-gradient(80% 90% at 25% 50%, rgba(245,238,255,.40), transparent 75%), rgba(160,127,214,.24); }
    .v-today .s5, .sc-game { background: radial-gradient(70% 90% at 22% 50%, rgba(236,250,240,.40), transparent 75%), rgba(105,186,126,.24); }
    .sc-family { background: radial-gradient(80% 90% at 25% 50%, rgba(236,248,240,.42), transparent 75%), rgba(36,67,52,.18); color: #12261b; }
    .sc-news { background: radial-gradient(80% 90% at 25% 50%, rgba(240,238,252,.42), transparent 75%), rgba(29,25,56,.16); color: #1d1938; border-color: rgba(255,255,255,.25); }
    .sc-family .p-kicker, .sc-news .p-kicker { color: inherit; }
    /* Night: 22-30% tint + a dark scrim on the text side; light ink. */
    .p-app.night .v-today .p-slide, .p-app.night .p-sidecard { border-color: rgba(255,255,255,.22); text-shadow: 0 1px 3px rgba(0,0,0,.6);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 16px 40px rgba(0,0,0,.4); }
    .p-app.night .v-today .s1 { background: radial-gradient(70% 90% at 22% 55%, rgba(6,9,30,.45), transparent 72%), rgba(37,48,106,.26); }
    .p-app.night .v-today .s2 { background: radial-gradient(80% 90% at 25% 50%, rgba(20,8,16,.45), transparent 75%), rgba(58,26,43,.28); }
    .p-app.night .v-today .s3 { background: radial-gradient(80% 90% at 25% 50%, rgba(20,8,6,.45), transparent 75%), rgba(59,23,16,.28); }
    .p-app.night .v-today .s4 { background: radial-gradient(80% 90% at 25% 50%, rgba(10,6,24,.48), transparent 75%), rgba(58,42,106,.28); }
    .p-app.night .v-today .s5, .p-app.night .sc-game { background: radial-gradient(70% 90% at 22% 50%, rgba(4,14,8,.45), transparent 75%), rgba(16,40,27,.30); }
    /* This card sits in front of the moon: its scrim is stronger at the top where the moon shows through. */
    .p-app.night .sc-family { background: linear-gradient(180deg, rgba(6,16,10,.62), rgba(6,16,10,.42) 55%, rgba(6,16,10,.2)), rgba(36,67,52,.28); color: #fff8e9; }
    .p-app.night .sc-news { background: radial-gradient(80% 90% at 25% 50%, rgba(8,6,20,.5), transparent 75%), rgba(29,25,56,.30); color: #f4efe2; }
  }
}
/* Solid fallback: no backdrop-filter support keeps the original opaque colours (declared above,
   outside @supports) with a light edge and soft shadow. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .p-card, .p-now, .v-today .p-slide, .p-sidecard, .glass { box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 10px 28px rgba(20,16,50,.18); }
}
/* ---------- Verses switched off (site setting 'content'.verses = false, the default) ----------
   Phone: the first full-screen post keeps its sky, moon and owl and becomes a welcome card.
   Computer: the welcome heading already sits above the feed, so the verse card is removed and
   the remaining cards close up. */
.p-hello { display: none; }
.no-verses .p-hello { display: grid; gap: 10px; }
.no-verses .p-hello .big { font: 800 34px/1.1 var(--display); letter-spacing: -.02em; }
.no-verses .p-hello p { font-size: 16px; line-height: 1.45; max-width: 30ch; }
@media (min-width: 900px) {
  .no-verses .v-today .p-slide.s1:not(.s-studio) { display: none; }
}

/* Views scroll under the glass bars (header on computers, tab bar on phones). */
@media (max-width: 899px) {
  .p-view:not(.v-today) { bottom: 0; padding-bottom: calc(var(--navh) + var(--minih) + 12px); }
}
@media (min-width: 900px) {
  .p-view:not(.v-today) { top: 0; padding-top: var(--navh); }
  .p-view:not(.v-today) .p-head { top: 0; }
}

/* ---------- Watch: featured hero + thumbnail grid; the vertical feed opens in a glass player ---------- */
.v-watch { overflow-y: auto; overflow-x: hidden; background: radial-gradient(60% 40% at 15% 10%, rgba(228,106,76,.35), transparent 70%), radial-gradient(50% 40% at 90% 60%, rgba(61,127,196,.35), transparent 70%), linear-gradient(180deg, #21183f, #120d26); color: #f6f1ff; }
.p-wgal { max-width: 1100px; margin: 0 auto; padding: 20px 16px calc(var(--navh, 64px) + var(--minih, 0px) + 24px); display: grid; gap: 14px; }
.p-wtitle { font: 800 26px var(--display); margin: 4px 2px 0; }
.p-wsub { font: 700 12px var(--display); letter-spacing: .12em; text-transform: uppercase; color: #d9d0f2; margin: 10px 2px 0; }
.p-whero { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; padding: 0; border: 1px solid rgba(255,255,255,.22); background: var(--bg, #2a2050); color: #fff; text-align: left; cursor: pointer; font: inherit; }
.p-wthumb { position: absolute; inset: 0; display: block; overflow: hidden; background: var(--bg, #2a2050); }
.p-wthumb > video, .p-wthumb > img, .p-wscene, .p-wscene > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-wscene * { animation: none !important; }
.p-wshade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,6,24,.08) 0%, rgba(10,6,24,.5) 48%, rgba(10,6,24,.9) 78%, rgba(10,6,24,.94) 100%); }
.p-wplay { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #1a1330; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.p-whero .p-wplay { width: 76px; height: 76px; top: 42%; }
.p-wplay svg { width: 44%; height: 44%; fill: currentColor; margin-left: 8%; }
.p-winfo { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; display: grid; gap: 4px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.p-winfo b { font: 800 clamp(19px, 2.6vw, 30px)/1.15 var(--display); }
.p-winfo small { font-size: 13px; line-height: 1.4; color: #f1ecff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 60ch; }
.p-whero .p-kicker { color: #fff4ee; }
.p-wgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.p-wcard { display: grid; gap: 8px; padding: 0; border: 0; background: none; color: #f6f1ff; text-align: left; font: inherit; cursor: pointer; }
.p-wcard .p-wthumb { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; box-shadow: 0 6px 18px rgba(0,0,0,.3); transition: transform .25s ease, box-shadow .25s ease; }
.p-wcard b { font: 700 15px/1.3 var(--display); padding: 0 2px; }
.p-wdur { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 7px; background: rgba(10,6,24,.82); color: #fff; font: 700 12px var(--display); }
.p-whero:focus-visible, .p-wcard:focus-visible { outline: 3px solid #ffd27a; outline-offset: 3px; }
@media (hover: hover) and (min-width: 900px) {
  .p-wcard:hover .p-wthumb { transform: translateY(-4px) scale(1.03); box-shadow: 0 14px 30px rgba(0,0,0,.4); }
  .p-whero .p-wthumb > * { transition: transform .5s ease; } .p-whero:hover .p-wthumb > * { transform: scale(1.03); }
}
.p-app.calm .p-wcard .p-wthumb, .p-app.calm .p-whero .p-wthumb > *, .p-app.calm .p-skel { transition: none !important; transform: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) { .p-wcard .p-wthumb, .p-whero .p-wthumb > *, .p-skel { transition: none !important; transform: none !important; animation: none !important; } }
.p-skel { background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.14), rgba(255,255,255,.06)) 0 0 / 200% 100%; animation: skel 1.4s ease-in-out infinite; border-radius: 20px; }
.p-wcard.p-skel { aspect-ratio: 16 / 9; }
@keyframes skel { to { background-position: -200% 0; } }
.p-wempty { padding: 40px 24px; border-radius: 24px; text-align: center; display: grid; gap: 6px; }
.p-wempty b { font: 800 20px var(--display); } .p-wempty p { color: #e7e0fb; margin: 0; }
@media (max-width: 899px) {
  .p-wgal { padding-top: 14px; }
  .p-wgrid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
  .p-wcard { scroll-snap-align: start; }
  .p-whero { border-radius: 20px; }
  .p-winfo { padding: 12px 14px; } .p-winfo small { display: none; } .p-whero .p-wplay { width: 60px; height: 60px; top: 38%; }
}
/* Player: full-screen glass overlay over the gallery; the feed sits inside it. */
.p-wplayer { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 0; }
.p-wplayer[hidden] { display: none; }
.p-wplayer.glass { --glass-tint: 12,8,28; --glass-a: .78; border-radius: 0 !important; border: 0 !important; }
.p-wplayer .p-feed { width: min(430px, 100%); height: 100%; margin: 0; border-radius: 0; }
@media (min-width: 900px) { .p-wplayer .p-feed { height: calc(100% - 48px); border-radius: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.5); } }
.p-wclose { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 6; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5); background: rgba(10,6,24,.7); color: #fff; display: grid; place-items: center; cursor: pointer; }
.p-wclose svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.p-wclose:focus-visible { outline: 3px solid #ffd27a; outline-offset: 2px; }
@media (max-width: 899px) { .p-wclose { top: 40px; right: 10px; left: auto; width: 44px; height: 44px; } }

/* ---------- Reel redesign: full-bleed art, soft fade into a glass caption, floating round actions ---------- */
.p-reel { isolation: isolate; }
.p-reel .scene { overflow: hidden; }
.p-rkb { position: absolute; inset: -4%; transform-origin: 50% 40%; }
.p-reel.playing .p-rkb { animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1) translate3d(0,0,0); } to { transform: scale(1.08) translate3d(-1.5%, -1.5%, 0); } }
.p-rfade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,5,20,.45) 0%, transparent 16%, transparent 46%, rgba(8,5,20,.55) 70%, rgba(8,5,20,.88) 100%); }
.p-reel .bar { display: none; }
.p-rtop { position: absolute; top: 10px; left: 12px; right: 12px; z-index: 4; display: grid; gap: 10px; pointer-events: none; }
.p-rsegs { display: flex; gap: 4px; }
.p-rsegs i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; }
.p-rsegs i b { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.p-rsegs i.done b { transform: none; }
.p-rsegs i.cur b { animation: grow 18s linear infinite; animation-play-state: paused; }
.p-reel.playing .p-rsegs i.cur b { animation-play-state: running; }
.p-rchip { justify-self: start; padding: 5px 11px; border-radius: 999px; font: 700 12px var(--display); letter-spacing: .04em; color: #fff; background: rgba(12,8,28,.62); border: 1px solid rgba(255,255,255,.28); }
.p-reel .cap { left: 0; right: 76px; bottom: 0; z-index: 4; padding: 0 16px 22px; background: none; gap: 6px; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.p-rtitle { font: 800 24px/1.12 var(--display) !important; letter-spacing: -.01em; }
.p-reel .cap p { font-size: 14px; color: #f4f0ff; margin: 0; }
.p-reel .cap .more { color: #fff !important; font: 700 13px var(--display) !important; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.p-reel .side { right: 12px; bottom: 24px; gap: 14px; }
.p-ract { width: 52px; display: grid !important; justify-items: center; gap: 4px; color: #fff; font: 700 11px var(--display) !important; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.p-ract svg { box-sizing: border-box; width: 48px !important; height: 48px !important; padding: 12px; border-radius: 50%; background: rgba(12,8,28,.5); border: 1px solid rgba(255,255,255,.3); filter: none !important; stroke-width: 1.9 !important; max-width: none; min-width: 48px; min-height: 48px; flex: none; }
.p-ract.saved svg { fill: #fff; background: rgba(255,255,255,.28); }
.p-ract:focus-visible svg, .p-reel .more:focus-visible, .p-rsheet-x:focus-visible { outline: 3px solid #ffd27a; outline-offset: 2px; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .p-ract svg, .p-rchip { -webkit-backdrop-filter: blur(10px) saturate(150%); backdrop-filter: blur(10px) saturate(150%); }
}
/* Tap to pause: centred indicator; pause icon flashes when playing, play icon stays while paused. */
.p-reel .paused { display: grid !important; top: 46%; width: 76px; height: 76px; background: rgba(12,8,28,.55); border: 1px solid rgba(255,255,255,.3); opacity: 0; transform: scale(.85); transition: opacity .25s ease, transform .25s ease; }
.p-reel .paused::after { content: none; }
.p-reel .paused span { position: absolute; }
.p-reel .ic-play { width: 0; height: 0; border-left: 22px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-left: 6px; display: none; }
.p-reel .ic-pause { width: 22px; height: 26px; border-left: 7px solid #fff; border-right: 7px solid #fff; box-sizing: border-box; }
.p-reel.userpaused .paused { opacity: 1; transform: none; }
.p-reel.userpaused .ic-play { display: block; } .p-reel.userpaused .ic-pause { display: none; }
.p-reel.flash:not(.userpaused) .paused { animation: rflash .7s ease both; }
@keyframes rflash { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(1.15); } }
/* Caption sheet */
.p-rsheet { position: absolute; inset: 0; z-index: 8; display: flex; align-items: flex-end; justify-content: center; border-radius: 0 !important; border: 0 !important; --glass-tint: 8,5,20; --glass-a: .45; }
.p-rsheet[hidden] { display: none; }
.p-rsheet::before { display: none !important; }
.p-rsheet-in { position: relative; width: min(430px, 100%); max-height: 70%; overflow: auto; margin: 0 auto; padding: 26px 22px 30px; border-radius: 28px 28px 0 0; background: rgba(24,16,48,.92); border: 1px solid rgba(255,255,255,.2); color: #f6f1ff; animation: up .3s cubic-bezier(.2,.8,.2,1); }
.p-rsheet-in .handle { position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 40px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.4); }
.p-rsheet-in h3 { font: 800 22px/1.2 var(--display); margin: 4px 48px 10px 0; }
.p-rsheet-in p { font-size: 16px; line-height: 1.6; margin: 0; color: #ece6ff; }
.p-rsheet-x { position: absolute; top: 16px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.p-rsheet-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
@media (min-width: 900px) {
  .p-wplayer .p-feed { border-radius: 28px; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 24px 70px rgba(0,0,0,.45), 0 0 90px -10px color-mix(in srgb, var(--rc, #6f52a8) 70%, transparent); }
  .p-wplayer .p-reel { border-radius: 28px; }
  .p-rsheet-in { border-radius: 28px; margin-bottom: 24px; }
}
.p-app.calm .p-rkb, .p-app.calm .p-reel .paused, .p-app.calm .p-rsheet-in { animation: none !important; transition: none !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { .p-rkb, .p-reel .paused, .p-rsheet-in { animation: none !important; transition: none !important; transform: none !important; } }

/* ---------- Story navigation: one reel at a time, tap zones, end state ---------- */
#pReels { position: relative; overflow: hidden !important; scroll-snap-type: none; }
#pReels .p-reel { position: absolute; inset: 0; height: auto; opacity: 0; visibility: hidden; transition: opacity .22s ease, visibility 0s .22s; }
#pReels .p-reel.on { opacity: 1; visibility: visible; transition: opacity .22s ease; z-index: 1; }
#pReels.instant .p-reel, .p-app.calm #pReels .p-reel { transition: none !important; }
@media (prefers-reduced-motion: reduce) { #pReels .p-reel { transition: none !important; } }
.p-rzones { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-columns: 1fr 1fr 1fr; background: none; border: 0; padding: 0; touch-action: none; }
.p-rzones button { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; color: #fff; position: relative; -webkit-tap-highlight-color: transparent; }
.p-rzones .z-mid { cursor: pointer; }
.p-rzones .z-prev { cursor: w-resize; } .p-rzones .z-next { cursor: e-resize; }
.p-rzones button span { position: absolute; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 26px/1 var(--display); background: rgba(12,8,28,.4); opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.p-rzones .z-prev span { left: 10px; } .p-rzones .z-next span { right: 76px; }
@media (hover: hover) { .p-rzones button:hover span { opacity: .75; } }
.p-rzones button:focus-visible { outline: 3px solid #ffd27a; outline-offset: -6px; border-radius: 20px; }
.p-rzones button:focus-visible span { opacity: 1; }
.p-app.calm .p-rzones button span { transition: none; }
.p-rend { position: absolute; inset: 0; z-index: 7; display: grid; place-content: center; justify-items: center; gap: 16px; background: rgba(8,5,20,.72); color: #fff; text-align: center; }
.p-rend[hidden] { display: none; }
.p-rend b { font: 800 24px var(--display); }
.p-ragain { min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); background: #fff; color: #1a1330; font: 800 16px var(--display); cursor: pointer; }
.p-ragain:focus-visible { outline: 3px solid #ffd27a; outline-offset: 3px; }
.p-rsegs i b { transform: scaleX(0); animation: none !important; }
.p-rsegs i.done b { transform: none !important; }

/* ---------- List filters (compact glass control) ---------- */
.f-out { display: none !important; }
.p-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 6px; border-radius: 999px; margin: 0 14px 12px; width: fit-content; max-width: calc(100% - 28px); color: #fff; }
.p-filter.glass { --glass-tint: 22,16,44; --glass-a: .72; }
.p-fsort, .p-fchips { display: flex; gap: 4px; flex-wrap: wrap; }
.p-fchips { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; max-width: 100%; }
.p-filter button { min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: transparent; color: #f4efff; font: 700 13px var(--display); cursor: pointer; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.p-filter button[aria-pressed="true"] { background: #fff; color: #1a1330; border-color: #fff; }
.p-filter button:hover { border-color: rgba(255,255,255,.6); }
.p-filter button:focus-visible { outline: 3px solid #ffd27a; outline-offset: 2px; }
.p-app.calm .p-filter button { transition: none; }
@media (prefers-reduced-motion: reduce) { .p-filter button { transition: none; } }
.v-watch .p-filter { margin: 0; }
.v-today .p-filter { margin: 0 0 16px; }
.v-today .p-slide.s1 .p-filter { margin: 18px 0 0; position: relative; z-index: 3; }
@media (max-width: 899px) { .p-filter { border-radius: 22px; } .p-filter button { min-height: 36px; } }
/* ---------- Watched stories ---------- */
.p-wtop { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.p-wclear { background: none; border: 0; color: #f1ebff; font: 700 14px var(--display); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 36px; padding: 0 4px; }
.p-wclear:focus-visible { outline: 3px solid #ffd27a; outline-offset: 2px; border-radius: 6px; }
.p-wwatched { position: absolute; left: 8px; top: 8px; z-index: 2; padding: 3px 9px; border-radius: 999px; background: rgba(10,6,24,.85); color: #fff; font: 700 12px var(--display); }
.p-whero .p-wwatched { left: 16px; top: 16px; font-size: 13px; }
.p-wcard.watched .p-wthumb > :is(img, video, .p-wscene) { opacity: .6; }
/* ---------- Story end screen: Watch again + next stories ---------- */
.p-rend { padding: 24px; }
.p-rnexts { display: grid; gap: 10px; width: min(320px, 86vw); margin-top: 6px; }
.p-rnext { position: relative; display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; padding: 8px; border-radius: 18px; border: 1px solid rgba(255,255,255,.3); background: rgba(12,8,28,.75); color: #fff; text-align: left; cursor: pointer; font: inherit; }
.p-rnext .p-wthumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; }
.p-rnext-t { display: grid; gap: 2px; } .p-rnext-t small { font: 700 11px var(--display); letter-spacing: .1em; text-transform: uppercase; color: #e5ddff; } .p-rnext-t b { font: 800 15px/1.25 var(--display); }
.p-rnext:focus-visible { outline: 3px solid #ffd27a; outline-offset: 2px; }

/* ---------- Series: cards, badge, detail sheet ---------- */
.p-weps { position: absolute; right: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(10,6,24,.85); color: #fff; font: 700 12px var(--display); }
.p-wcard.is-series .p-wthumb::after { content: ""; position: absolute; left: 8%; right: 8%; top: -6px; height: 6px; border-radius: 10px 10px 0 0; background: rgba(255,255,255,.22); }
.p-wcard.is-series .p-wthumb { overflow: visible; }
.p-wcard.is-series .p-wthumb > :is(img, video, .p-wscene) { border-radius: 16px; overflow: hidden; }
.p-wkind { font: 700 12px var(--display); color: #d9d0f2; padding: 0 2px; letter-spacing: .06em; text-transform: uppercase; }
.p-rseries { font: 700 12px var(--display); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.p-series { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; background: rgba(8,5,20,.55); }
.p-series[hidden] { display: none; }
.p-series-in { position: relative; width: min(640px, 100%); max-height: 92%; overflow: auto; border-radius: 28px 28px 0 0 !important; color: #f6f1ff; --glass-tint: 20,14,40; --glass-a: .9; animation: up .32s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 900px) { .p-series { align-items: center; } .p-series-in { border-radius: 28px !important; max-height: 88%; } }
.p-app.calm .p-series-in { animation: none; }
@media (prefers-reduced-motion: reduce) { .p-series-in { animation: none; } }
.p-series-x { position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: rgba(10,6,24,.7); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.p-series-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.p-series-cover { position: relative; aspect-ratio: 16 / 9; background: var(--bg); overflow: hidden; }
.p-series-cover .p-wthumb { position: absolute; inset: 0; }
.p-series-body { position: relative; padding: 0 20px 24px; margin-top: -48px; display: grid; gap: 10px; }
.p-series-body .p-kicker { color: #fff4ee; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.p-series-body h2 { font: 800 28px/1.1 var(--display); margin: 0; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.p-series-body > p { margin: 0; color: #ece6ff; line-height: 1.55; }
.p-series-play { justify-self: start; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: #fff; color: #1a1330; font: 800 16px var(--display); cursor: pointer; }
.p-eps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.p-ep { position: relative; width: 100%; display: grid; grid-template-columns: 128px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 16px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; text-align: left; font: inherit; cursor: pointer; }
.p-ep .p-wthumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; }
.p-ep-t { display: grid; gap: 3px; } .p-ep-t b { font: 700 15px/1.3 var(--display); } .p-ep-t small { color: #d9d0f2; font-size: 13px; }
.p-ep-tick { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #1a1330; font: 800 14px var(--display); margin-right: 4px; }
.p-ep.watched .p-wthumb > * { opacity: .6; }
@media (hover: hover) { .p-ep:hover { background: rgba(255,255,255,.12); } }
.p-series-x:focus-visible, .p-series-play:focus-visible, .p-ep:focus-visible, .p-rback:focus-visible { outline: 3px solid #ffd27a; outline-offset: 2px; }
.p-rendbtns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.p-rback { min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid rgba(255,255,255,.6); background: rgba(10,6,24,.6); color: #fff; font: 800 16px var(--display); cursor: pointer; }
.p-rnextep { width: min(340px, 86vw); }

/* Read page: Midnight & Gold (solid cards, same in the @supports glass path and the fallback). */
.v-read { background: #EEF1F8; color: #1B2447; }
.v-read .p-head { background: #EEF1F8; }
.v-read .p-card { background: #FFFFFF; color: #1B2447 !important; filter: none; text-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  border: 0; box-shadow: inset 0 0 0 1px rgba(27,36,71,.12), 0 8px 22px rgba(27,36,71,.10); }
.v-read .p-card::before { content: none; }
.v-read .p-card span, .v-read .p-card .foot { opacity: 1; }
.v-read .p-card .p-kicker, .v-read .p-card .foot span:first-child { color: #8A5A00; }
.p-app.night .v-read, .p-app.night .v-read .p-head { background: #0F1530; color: #F6EEDC; }
.p-app.night .v-read .p-card { background: linear-gradient(160deg, #1C2650, #151D40); color: #F6EEDC !important; filter: none; text-shadow: none;
  box-shadow: inset 0 0 0 1px rgba(242,196,107,.35), 0 10px 28px rgba(0,0,0,.35); }
.p-app.night .v-read .p-card .p-kicker, .p-app.night .v-read .p-card .foot span:first-child { color: #F2C46B; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .v-read .p-head.glass { --glass-tint: 238,241,248; --glass-text-shadow: none; }
  .p-app.night .v-read .p-head.glass { --glass-tint: 15,21,48; --glass-text-shadow: none; }
}
/* Midnight & Gold: visible gold edge, top accent line, bold gold kicker/"Read →", gold focus glow. */
.v-read .p-card { border: 1.5px solid rgba(184,134,43,.75);
  background: linear-gradient(90deg, #E0A83A, #F2C46B 45%, #F5A27A) top / 100% 3px no-repeat, #FFFFFF; }
.v-read .p-card .p-kicker, .v-read .p-card .foot span:first-child { color: #7A4E00; font-weight: 800; opacity: 1; }
.p-app.night .v-read .p-card { border: 1.5px solid rgba(242,196,107,.7);
  background: linear-gradient(90deg, #F2C46B, #F7D58E 45%, #F5A27A) top / 100% 3px no-repeat, linear-gradient(160deg, #1C2650, #151D40); }
.p-app.night .v-read .p-card .p-kicker, .p-app.night .v-read .p-card .foot span:first-child { color: #F2C46B; font-weight: 800; }
.v-read .p-card:hover, .v-read .p-card:focus-visible { outline: none; box-shadow: 0 0 0 1px rgba(184,134,43,.9), 0 0 18px rgba(224,168,58,.35), 0 8px 22px rgba(27,36,71,.10); }
.p-app.night .v-read .p-card:hover, .p-app.night .v-read .p-card:focus-visible { box-shadow: 0 0 0 1px rgba(242,196,107,.95), 0 0 20px rgba(242,196,107,.35), 0 10px 28px rgba(0,0,0,.35); }
.p-app.calm .v-read .p-card { transition: none; animation: none; }
/* Midnight & Gold v2: hairline accent, glass cards over a static navy/gold glow. */
.v-read .p-card { background: linear-gradient(90deg, transparent, #E0A83A 18%, #F5A27A 82%, transparent) top / 100% 1.5px no-repeat, #FFFFFF; }
.p-app.night .v-read .p-card { background: linear-gradient(90deg, transparent, #F2C46B 18%, #F5A27A 82%, transparent) top / 100% 1.5px no-repeat, linear-gradient(160deg, #1C2650, #151D40); }
.v-read { background: radial-gradient(55% 28% at 12% 18%, rgba(96,120,200,.30), transparent 70%), radial-gradient(50% 26% at 92% 52%, rgba(242,196,107,.30), transparent 70%), radial-gradient(60% 28% at 25% 88%, rgba(120,140,220,.26), transparent 70%), #EEF1F8; background-attachment: local; }
.p-app.night .v-read { background: radial-gradient(55% 28% at 12% 18%, rgba(70,96,200,.40), transparent 70%), radial-gradient(50% 26% at 92% 52%, rgba(242,196,107,.16), transparent 70%), radial-gradient(60% 28% at 25% 88%, rgba(60,80,180,.36), transparent 70%), #0F1530; background-attachment: local; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .v-read .p-card { -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
    background: linear-gradient(90deg, transparent, #E0A83A 18%, #F5A27A 82%, transparent) top / 100% 1.5px no-repeat, rgba(255,255,255,.5);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 0 0 1px rgba(255,255,255,.25), 0 8px 22px rgba(27,36,71,.10); }
  .p-app.night .v-read .p-card { background: linear-gradient(90deg, transparent, #F2C46B 18%, #F5A27A 82%, transparent) top / 100% 1.5px no-repeat, rgba(28,38,80,.42);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.05), 0 10px 28px rgba(0,0,0,.35); }
}
/* Midnight & Gold v3: seamless header aligned with the card column, tight featured card, visible hairline, stronger desktop glow. */
.v-read .p-head { padding-inline: 14px; }
.v-read .p-card.feat { min-height: 0; align-content: start; }
.v-read .p-card { position: relative; }
.v-read .p-card::after { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, rgba(224,168,58,0), #C98F2A 20%, #E5865A 80%, rgba(229,134,90,0)); }
.p-app.night .v-read .p-card::after { background: linear-gradient(90deg, rgba(242,196,107,0), #F2C46B 20%, #F5A27A 80%, rgba(245,162,122,0)); }
@media (min-width: 900px) {
  .v-read .p-head { position: static; }
  .v-read .p-head, .p-app.night .v-read .p-head, .v-read .p-head.glass, .p-app.night .v-read .p-head.glass { background: transparent !important; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; border: 0; padding-inline: 14px; }
  .v-read { background: radial-gradient(38% 34% at 22% 22%, rgba(90,115,215,.45), transparent 70%), radial-gradient(34% 30% at 80% 30%, rgba(242,196,107,.42), transparent 70%), radial-gradient(40% 30% at 50% 50%, rgba(120,140,230,.40), transparent 70%), #EEF1F8; background-attachment: local; }
  .p-app.night .v-read { background: radial-gradient(38% 34% at 22% 22%, rgba(70,100,230,.55), transparent 70%), radial-gradient(34% 30% at 80% 30%, rgba(242,196,107,.24), transparent 70%), radial-gradient(40% 30% at 50% 50%, rgba(80,100,220,.50), transparent 70%), #0F1530; background-attachment: local; }
}
