/*
  The lesson player's frame (LD1), for the lesson, the quizzes and the tests. The world all round (its scene full-bleed
  behind the lesson, dimmed so it never competes), a slim top bar with the progress segments and the lesson's title, a
  centred stage that uses the space (pictures large, text at a comfortable width) and a dock at the foot with Back, the
  step count and Next, like an app. The blocks inside the stage are LN6's (player.css, immersive.css); this file only
  dresses what is around them, so _Layout loads it after player.css, immersive.css, quiz.css and tafsir.css. It was
  the second half of looks.css until LD2-0 split that file by look (frame.css, teen.css, kids.css). The lesson has moved
  to LD2-B's stage (.ln-player--stage, at the end of this file); the quizzes keep this frame until LD2-K moves them.
*/

/* ---------- The world behind ---------- */
.ln--focus .ln-main { overflow-x: clip; padding-bottom: 0; }
.ln .ln-player { position: relative; isolation: isolate; max-width: none; margin: 0; padding: 0 20px; min-height: calc(100vh - 20px); background: none; }
/* The scene stays put while the lesson scrolls (fixed), clipped to the player so it never shows under a host's header. */
.ln-player-backdrop { position: absolute; inset: 0; z-index: -1; clip-path: inset(0); pointer-events: none; }
.ln-backdrop-art { position: fixed !important; inset: 0; }
.ln-backdrop-art .ln-scene { transform: scale(1.08); }
.ln-backdrop-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 75% at 50% 48%, color-mix(in srgb, var(--w-soft) 86%, transparent), color-mix(in srgb, var(--w-soft) 62%, transparent) 75%), linear-gradient(180deg, transparent 60%, color-mix(in srgb, var(--ln-paper) 60%, transparent)); }
html[data-theme="dark"] .ln-backdrop-art::after, .ln--teen .ln-backdrop-art::after { background: radial-gradient(90% 75% at 50% 48%, color-mix(in srgb, var(--ln-paper) 72%, transparent), color-mix(in srgb, var(--ln-paper) 45%, transparent) 75%), linear-gradient(180deg, transparent 60%, color-mix(in srgb, var(--ln-paper) 60%, transparent)); }
[dir="rtl"] .ln-backdrop-art .ln-scene { transform: scale(1.08) scaleX(-1); }

/* ---------- The slim top bar: close, title, the segments, sound and "Read it to me" on one line ---------- */
.ln .ln-player-bar { width: 100%; max-width: 1180px; margin: 0 auto; top: 8px; grid-template-columns: auto minmax(0, 300px) minmax(0, 1fr) auto auto; grid-template-areas: "close title segs sound read"; gap: 10px 14px; padding: 8px 10px; margin-top: 8px; border-radius: 20px; background: color-mix(in srgb, var(--ln-card) 78%, transparent); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .45), inset 0 0 0 1px var(--ln-line); }
.ln .ln-player-close { width: 38px; height: 38px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--ln-line-2); }
.ln .ln-player-title b { font-size: 16px; }
.ln .ln-player-title small { font-size: 11.5px; }
.ln .ln-segs { gap: 3px; align-self: center; }
.ln .ln-segs button { padding: 10px 0; }
.ln .ln-segs i { height: 5px; }
.ln .ln-segs .is-current i { box-shadow: 0 0 0 3px color-mix(in srgb, var(--w-accent) 25%, transparent), 0 0 12px var(--w-glow); }
.ln .ln-sound { width: 38px; height: 38px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--ln-line-2); }
.ln .ln-read { padding: 9px 13px; border-radius: 12px; }

/* ---------- The stage ---------- */
.ln .ln-screens { max-width: 1180px; width: 100%; margin: 0 auto; }
.ln .ln-screen { display: grid; align-content: center; min-height: calc(100vh - 190px); padding: 26px 0 22px; }
.ln .ln-screen-in { position: relative; width: 100%; max-width: 900px; padding: clamp(20px, 3vw, 36px); border-radius: 30px; background: color-mix(in srgb, var(--ln-card) 86%, transparent); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); box-shadow: 0 30px 70px -40px color-mix(in srgb, var(--w-deep) 70%, #000), inset 0 0 0 1px var(--ln-line); }
.ln .ln-screen-in::before { content: ""; position: absolute; inset: 0 30px auto; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, transparent, var(--w-accent), var(--w-glow), transparent); opacity: .8; }
/* Text at a comfortable width, pictures as large as the stage. */
.ln .ln-screen-in > .ln-prose, .ln .ln-screen-in > .ln-screen-title { max-width: 68ch; }
.ln .ln-figure img { max-height: 64vh; border-radius: 22px; }
.ln .ln-screen--image .ln-screen-in, .ln .ln-screen--video .ln-screen-in, .ln .ln-screen--diagram .ln-screen-in { max-width: 1080px; }
.ln .ln-screen--route .ln-screen-in, .ln .ln-screen--compare .ln-screen-in, .ln .ln-screen--timeline .ln-screen-in, .ln .ln-screen--posture .ln-screen-in, .ln .ln-screen--daymap .ln-screen-in { max-width: 1120px; }
/* Screens that bring their own stage (a scene) and the end of the lesson stand on the world directly. */
.ln .ln-screen--scene .ln-screen-in, .ln .ln-screen--end .ln-end { background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; }
.ln .ln-screen--scene .ln-screen-in::before { display: none; }
.ln .ln-screen--end { min-height: calc(100vh - 120px); }
/* Without scripts the lesson reads top to bottom: no full-height screens. */
.ln .ln-player:not(.is-live) .ln-screen { min-height: 0; border-bottom: 0; }

/* ---------- The end of a lesson ---------- */
.ln .ln-end-art { width: min(820px, 100%); aspect-ratio: 2.2; border-radius: 32px; box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--w-deep) 80%, #000), 0 0 0 1px rgba(255, 255, 255, .2), 0 0 90px -20px var(--w-glow); }
.ln .ln-end-title { font-size: clamp(30px, 4.4vw, 50px); }

/* ---------- The dock: Back, where you are, Next ---------- */
.ln .ln-player-nav { position: sticky; bottom: 12px; z-index: 15; width: min(620px, 100%); max-width: 620px; margin: 0 auto 12px; padding: 8px; gap: 10px; border-radius: 22px; background: color-mix(in srgb, var(--ln-card) 82%, transparent); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 20px 44px -20px rgba(0, 0, 0, .55), inset 0 0 0 1px var(--ln-line-2); }
.ln .ln-player-nav .ln-btn { min-width: 0; min-height: 50px; border-radius: 16px; padding: 12px 20px; }
.ln .ln-player-nav [data-next] { flex: 1; max-width: 260px; justify-content: center; }
.ln .ln-player-nav [data-prev] { box-shadow: inset 0 0 0 1px var(--ln-line-2); }
.ln .ln-player-nav [data-prev]:disabled { opacity: .4; }
.ln .ln-player-count { min-width: 64px; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ln .ln-player.is-end .ln-player-nav { visibility: hidden; }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  .ln .ln-player { padding: 0 10px; }
  .ln .ln-player-bar { top: 6px; margin-top: 6px; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "close title sound read" "segs segs segs segs"; gap: 6px 10px; padding: 8px 10px 4px; border-radius: 18px; }
  .ln .ln-segs button { padding: 6px 0; }
  .ln .ln-screen { min-height: calc(100svh - 200px); padding: 16px 0 14px; align-content: start; }
  .ln .ln-screen-in { padding: 18px 16px; border-radius: 24px; }
  .ln .ln-screen-in::before { inset-inline: 20px; }
  .ln .ln-player-nav { bottom: calc(8px + env(safe-area-inset-bottom)); margin-bottom: 8px; padding: 6px; border-radius: 20px; }
  .ln .ln-player-nav .ln-btn { min-height: 48px; padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ln-backdrop-art .ln-scene { transform: none; }
}

/* Small headings inside the player (the test's side panel) in the readable ink: pages.css is not loaded here. */
.ln .ln-player .ln-card-kicker { font-size: 11.5px; color: var(--w-ink); }

/*
  ---------- LD2-B: the lesson player 2.0 (docs/learn/briefs/LD2-pinnacle.md §5.2) ----------
  Everything below is for .ln-player--stage (the lesson; the quiz moves to it with LD2-K). The room: the world's scene
  at full colour, softly blurred and darkened so the stage reads. The bar: 56 px of the world's deep glass, its line
  filling as the screens are reached. The stage: one card up to --ln-stage-w, laid out by what the screen holds
  (ln-layout--pw a picture beside its words, --do an activity across the stage, --sacred a framed text, --read words
  alone, --wide a map or video, --scene its own stage). The foot is the action bar (sheet.css), never over the stage:
  the screens keep its height (and the open sheet's) free below them.
*/

/* ---------- The room ---------- */
.ln .ln-player--stage { padding: 0; min-height: 100svh; display: block; background: none; }
.ln-player--stage .ln-player-backdrop { background: var(--w-deep); }
.ln-player--stage .ln-backdrop-art .ln-scene { filter: blur(3px) saturate(1.08); transform: scale(1.06); }
.ln-player--stage .ln-backdrop-art::after,
html[data-theme="dark"] .ln-player--stage .ln-backdrop-art::after,
.ln--teen .ln-player--stage .ln-backdrop-art::after { background: radial-gradient(120% 90% at 50% 38%, color-mix(in srgb, var(--w-deep) 14%, transparent), color-mix(in srgb, var(--w-deep) 58%, transparent) 78%); }
html[data-theme="dark"] .ln-player--stage .ln-backdrop-art .ln-scene { filter: blur(3px) saturate(1) brightness(.78); }
[dir="rtl"] .ln-player--stage .ln-backdrop-art .ln-scene { transform: scale(1.06) scaleX(-1); }

/* ---------- The bar: close, where you are, the line, the score and the kept tray, sound, "Read it to me" ---------- */
.ln .ln-player--stage .ln-player-bar { position: sticky; top: 0; z-index: 30; width: 100%; max-width: none; height: 56px; margin: 0; padding: 0 max(16px, calc((100% - var(--ln-stage-w)) / 2)); border-radius: 0; grid-template-columns: auto minmax(0, max-content) minmax(90px, 1fr) auto auto auto auto; grid-template-areas: "close title prog score kept sound read"; gap: 14px; align-items: center; color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--w-deep) 90%, transparent), color-mix(in srgb, var(--w-deep) 70%, transparent)); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.ln .ln-player--stage .ln-player-close { width: 38px; height: 38px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .14); box-shadow: none; }
.ln .ln-player--stage .ln-player-close:hover { background: rgba(255, 255, 255, .24); }
.ln .ln-player--stage .ln-player-title { max-width: 340px; }
.ln .ln-player--stage .ln-player-title small { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--w-glow); }
.ln .ln-player--stage .ln-player-title b { font-size: 17px; color: #fff; }
.ln-prog { grid-area: prog; position: relative; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .18); --fill: 0; }
.ln-prog-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--fill) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--w-glow), var(--w-accent)); box-shadow: 0 0 14px color-mix(in srgb, var(--w-glow) 70%, transparent); transition: width var(--ln-in); }
[dir="rtl"] .ln-prog-fill { inset: 0 0 0 auto; background: linear-gradient(270deg, var(--w-glow), var(--w-accent)); }
/* The screens under the line: a tap goes back to one already reached; the one shown is a small light on the line. */
.ln .ln-player--stage .ln-segs { position: absolute; inset: -12px 0; display: flex; align-self: stretch; align-items: stretch; gap: 0; }
.ln .ln-player--stage .ln-segs li { flex: 1; position: relative; height: 100%; }
.ln .ln-player--stage .ln-segs button { position: absolute; inset: 0; width: 100%; padding: 0; cursor: pointer; }
.ln .ln-player--stage .ln-segs button:disabled { cursor: default; }
.ln .ln-player--stage .ln-segs i { display: none; }
.ln .ln-player--stage .ln-segs .is-current button::after { content: ""; position: absolute; top: 50%; inset-inline-end: 0; width: 12px; height: 12px; margin-top: -6px; margin-inline-end: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--w-glow) 60%, transparent), 0 0 14px var(--w-glow); }
.ln .ln-player--stage .ln-sound { grid-area: sound; width: 38px; height: 38px; border-radius: 10px; color: #fff; background: rgba(255, 255, 255, .14); box-shadow: none; }
.ln .ln-player--stage .ln-sound svg { fill: #fff; }
.ln .ln-player--stage .ln-read { grid-area: read; height: 38px; padding: 0 13px; border-radius: 10px; font-size: 13px; font-weight: 650; color: #fff; background: rgba(255, 255, 255, .14); }
.ln .ln-player--stage .ln-read svg { fill: var(--w-glow); }
.ln .ln-player--stage .ln-read.is-reading { background: color-mix(in srgb, var(--w-glow) 34%, transparent); }
/* The teens' XP and the kids' stars of this lesson: they bump as they arrive (celebrate.js). */
.ln-score { grid-area: score; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px; border-radius: 9px; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; color: #12081f; background: var(--w-glow); }
.ln-score[hidden] { display: none; }
.ln-score.is-bump { animation: ln-score-bump var(--ln-pop) both; }
@keyframes ln-score-bump { 40% { transform: scale(1.18); } }
/* What was kept: a chip that opens into its list. */
.ln-kept { grid-area: kept; position: relative; }
.ln-kept[hidden] { display: none; }
.ln-kept summary { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; list-style: none; cursor: pointer; font-size: 13px; font-weight: 750; color: var(--w-glow); background: color-mix(in srgb, var(--w-glow) 20%, transparent); }
.ln-kept summary::-webkit-details-marker { display: none; }
.ln-kept.is-new summary { animation: ln-score-bump var(--ln-pop) both; }
.ln-kept-list { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 2; min-width: 240px; max-width: 320px; display: grid; gap: 4px; padding: 10px; border-radius: 14px; color: var(--ln-ink); background: var(--ln-card); box-shadow: var(--ln-z3); font-size: 14px; }
.ln-kept-list li { padding: 6px 8px; border-radius: 8px; background: color-mix(in srgb, var(--w-accent) 9%, transparent); }

/* ---------- The screens: one at a time, the action bar's height kept free below ---------- */
.ln .ln-player--stage .ln-screens { max-width: none; width: 100%; margin: 0; padding-bottom: calc(var(--ln-abar-h) + var(--ln-sheet-h) + env(safe-area-inset-bottom)); transition: padding-bottom var(--ln-sheet); }
.ln .ln-player--stage .ln-screen { min-height: calc(100svh - 56px - var(--ln-abar-h)); padding: 22px 0 26px; display: grid; align-content: center; justify-items: center; }
.ln-player--stage.is-live .ln-screen { transition: opacity var(--ln-in), transform var(--ln-in); }
/* The stage: a card lifted off the world. */
.ln .ln-player--stage .ln-screen-in { width: var(--ln-stage-w); max-width: none; padding: 34px 38px; gap: 14px; border-radius: 26px; background: var(--ln-card); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: var(--ln-z2); }
.ln .ln-player--stage .ln-screen-in::before { display: none; }
.ln .ln-player--stage .ln-layout--read .ln-screen-in { width: min(820px, var(--ln-stage-w)); }
.ln .ln-player--stage .ln-layout--sacred .ln-screen-in { width: min(860px, var(--ln-stage-w)); }
.ln .ln-player--stage .ln-layout--read .ln-prose, .ln .ln-player--stage .ln-layout--pw .ln-prose { max-width: var(--ln-read); }

/* The kind of screen in small caps with a line before it; a question's title rides beside it. */
.ln .ln-player--stage .ln-screen-kind { align-items: center; gap: 10px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--w-ink); }
.ln .ln-player--stage .ln-screen-kind::before { content: ""; flex: none; width: 22px; height: 2px; border-radius: 2px; background: var(--w-accent); }
.ln .ln-player--stage .ln-screen-kind span { padding: 0; border-radius: 0; background: none; font-size: inherit; letter-spacing: inherit; color: inherit; }
.ln .ln-player--stage .ln-screen.is-practice .ln-screen-kind span::before { content: none; }
.ln .ln-player--stage .ln-screen.is-practised .ln-screen-kind { color: var(--ln-good); }
.ln .ln-player--stage .ln-screen.is-practised .ln-screen-kind::before { background: var(--ln-good); }
.ln .ln-player--stage .ln-screen-kind .ln-screen-kind-title { text-transform: none; letter-spacing: .02em; font-weight: 700; }
.ln .ln-player--stage .ln-screen .ln-screen-kind .ln-screen-kind-title::before { content: "· "; }
.ln .ln-player--stage .ln-screen-title { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -.015em; }
/* A question that is its own title: its words set as the screen's title. */
.ln .ln-player--stage .ln-layout--do .ln-screen-in:not(:has(> .ln-screen-title)) .ln-q { font-family: var(--ln-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }

/* ---------- Picture + words: the picture as a plate beside the words (alternating sides; mirrored right to left) ---------- */
.ln .ln-player--stage .ln-figure img { max-height: var(--ln-pic); border-radius: 18px; }
.ln .ln-player--stage .ln-pictured .ln-figure img { border-radius: 18px; background: var(--w-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--w-accent) 40%, transparent), 0 18px 40px -24px rgba(0, 0, 0, .35); }
@media (min-width: 900px) {
  .ln .ln-player--stage .ln-screen-in:has(> .ln-pictured) { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 40px; }
  .ln .ln-player--stage .ln-screen-in:has(> .ln-pictured) .ln-figure img { max-height: var(--ln-pic); }
  .ln .ln-player--stage .is-flip .ln-screen-in:has(> .ln-pictured) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: ". pic" "kind pic" "title pic" "words pic" ". pic"; }
}

/* ---------- Do: the activity across the whole stage, pictures large ---------- */
.ln .ln-player--stage .ln-layout--do .ln-opts--pics { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; }
.ln .ln-player--stage .ln-layout--do .ln-opts:not(.ln-opts--pics):not(.ln-opts--tf) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.ln .ln-player--stage .ln-layout--do .ln-opts { counter-reset: ln-opt; }
.ln .ln-player--stage .ln-layout--do .ln-opt { counter-increment: ln-opt; min-height: 60px; border-radius: 18px; box-shadow: inset 0 0 0 2px var(--ln-line), 0 4px 0 color-mix(in srgb, var(--ln-ink) 9%, transparent); }
.ln .ln-player--stage .ln-layout--do .ln-opt.has-pic { padding: 12px; }
.ln .ln-player--stage .ln-layout--do .ln-opt.has-pic img { aspect-ratio: 4 / 3; }
/* The key that picks it (1 to 9), on the tile. */
.ln .ln-player--stage .ln-layout--do .ln-opt::before { content: counter(ln-opt); flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--ln-ink-2); background: color-mix(in srgb, var(--ln-card) 92%, transparent); box-shadow: inset 0 0 0 1.5px var(--ln-line-2); }
.ln .ln-player--stage .ln-layout--do .ln-opt.has-pic::before { position: absolute; top: 20px; inset-inline-start: 20px; z-index: 1; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.ln .ln-player--stage .ln-layout--do .ln-opts--tf .ln-opt::before { position: absolute; inset-inline-start: 14px; }
.ln .ln-player--stage .ln-layout--do .ln-opt:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--w-accent), 0 6px 0 color-mix(in srgb, var(--w-accent) 30%, transparent); }
.ln .ln-player--stage .ln-layout--do .ln-opt.is-picked { background: color-mix(in srgb, var(--w-accent) 10%, var(--ln-card)); box-shadow: inset 0 0 0 3px var(--w-strong), 0 4px 0 color-mix(in srgb, var(--w-strong) 60%, transparent); }
.ln .ln-player--stage .ln-layout--do .ln-opt.is-picked::before { color: #fff; background: var(--w-strong); box-shadow: none; }
.ln .ln-player--stage .ln-layout--do .ln-opt.is-right { background: var(--ln-good-soft); box-shadow: inset 0 0 0 3px var(--ln-good), 0 4px 0 color-mix(in srgb, var(--ln-good) 60%, #000); animation: ln-right-pop var(--ln-pop); }
.ln .ln-player--stage .ln-layout--do .ln-opt.is-wrong { box-shadow: inset 0 0 0 3px var(--ln-bad), 0 4px 0 color-mix(in srgb, var(--ln-bad) 50%, transparent); animation: ln-wrong-shake var(--ln-shake) var(--ip-ease-in-out); }
.ln .ln-player--stage .ln-layout--do .ln-opt.is-out { opacity: .55; }
@keyframes ln-right-pop { 40% { transform: scale(1.03); } }
@keyframes ln-wrong-shake { 25%, 75% { transform: translateX(calc(var(--ln-shake-x) * -1)); } 50% { transform: translateX(var(--ln-shake-x)); } }
.ln .ln-player--stage .ln-q-pic { max-height: min(40vh, 360px); }
/* A scenario's scene stays a picture beside the choices, never a wall. */
.ln .ln-player--stage .ln-scene-card img { max-height: min(42vh, 380px); object-fit: contain; }

/* The block's own Check is the action bar's; its marking is the sheet's (seen again in place on a return). */
.ln-player--stage.is-live .ln-check { display: none !important; }
.ln-player--stage.is-live .ln-screen:not(.is-again) :is(.ln-qbox, .ln-x-live) > .ln-feedback { display: none; }

/* One main step a screen: a block's own buttons (walk the route, next position) are quiet beside the action bar's. */
.ln .ln-player--stage .ln-screen-in .ln-btn--primary:not(.ln-end-primary) { color: var(--w-ink); background: color-mix(in srgb, var(--w-accent) 12%, var(--ln-card)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--w-accent) 55%, transparent); }
.ln .ln-player--stage .ln-screen-in .ln-btn--primary:not(.ln-end-primary):hover { box-shadow: inset 0 0 0 2px var(--w-accent); }

/* ---------- Scenes: the opening is its own stage, "Bismillah, begin" in the action bar ---------- */
.ln .ln-player--stage .ln-layout--scene .ln-screen-in { padding: 0; background: none; box-shadow: none; }
.ln .ln-player--stage .ln-layout--scene .ln-screen-kind { display: none; }
.ln .ln-player--stage .ln-layout--scene .ln-scene-stage { max-height: calc(100svh - 56px - var(--ln-abar-h) - 90px); box-shadow: var(--ln-z2); }
.ln-player--stage.is-live .ln-scene-go { display: none; }

/* The intention: one optional tick under the first screen. */
.ln-intent { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 650; color: var(--ln-ink-2); background: color-mix(in srgb, var(--w-accent) 10%, var(--ln-card)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--w-accent) 35%, transparent); }
.ln-intent input { width: 18px; height: 18px; accent-color: var(--w-strong); }
.ln-intent:has(input:checked) { color: var(--w-ink); box-shadow: inset 0 0 0 2px var(--w-accent); }
.ln-layout--scene .ln-intent { justify-self: center; color: #fff; background: color-mix(in srgb, var(--w-deep) 72%, transparent); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ln-layout--scene .ln-intent:has(input:checked) { color: var(--w-glow); box-shadow: inset 0 0 0 1.5px var(--w-glow); }

/* ---------- A dua kept for review ---------- */
.ln .ln-keep-dua[aria-pressed="true"] { color: var(--w-glow); box-shadow: inset 0 0 0 1.5px var(--w-glow); }

/* ---------- Teens: flat planes, a hard offset edge in the world's accent, big tight titles ---------- */
.ln--teen .ln-player--stage .ln-screen-in { border-radius: 14px; box-shadow: 8px 8px 0 var(--w-accent, #8b5cf6), 0 30px 60px -30px rgba(0, 0, 0, .8); }
.ln--teen .ln-player--stage .ln-layout--scene .ln-screen-in { box-shadow: none; }
.ln--teen .ln-player--stage .ln-screen-title, .ln--teen .ln-player--stage .ln-layout--do .ln-screen-in:not(:has(> .ln-screen-title)) .ln-q { font-family: var(--ln-display); font-weight: 800; letter-spacing: -.025em; font-size: clamp(30px, 3.4vw, 46px); }
.ln--teen .ln-player--stage .ln-layout--do .ln-opt { border-radius: 12px; box-shadow: inset 0 0 0 2px var(--ln-line-2), 5px 5px 0 color-mix(in srgb, var(--w-accent, #8b5cf6) 45%, transparent); }
.ln--teen .ln-player--stage .ln-layout--do .ln-opt.is-picked { box-shadow: inset 0 0 0 3px #22d3ee, 5px 5px 0 #8b5cf6; }
.ln--teen .ln-player--stage .ln-layout--do .ln-opt.is-right { box-shadow: inset 0 0 0 3px var(--ln-good), 5px 5px 0 color-mix(in srgb, var(--ln-good) 60%, #000); }
.ln--teen .ln-prog-fill { background: linear-gradient(90deg, #8b5cf6, #22d3ee); box-shadow: 0 0 14px rgba(34, 211, 238, .6); }
.ln--teen .ln-score { color: #12081f; background: #22d3ee; box-shadow: 2px 2px 0 #8b5cf6; }

/* ---------- Kids: big and round, chunky tiles that press down ---------- */
.ln--kid .ln-player--stage .ln-screen-in { border-radius: 36px; padding: 32px 36px; }
.ln--kid .ln-player--stage .ln-screen-title, .ln--kid .ln-player--stage .ln-layout--do .ln-screen-in:not(:has(> .ln-screen-title)) .ln-q { font-weight: 800; font-size: clamp(28px, 3.2vw, 40px); }
.ln--kid .ln-player--stage .ln-layout--do .ln-opt { min-height: 72px; border-radius: 28px; font-size: 20px; box-shadow: inset 0 0 0 3px #ffe2a3, 0 6px 0 #ffcf6e; }
.ln--kid .ln-player--stage .ln-layout--do .ln-opt:active:not(:disabled) { transform: translateY(4px); box-shadow: inset 0 0 0 3px #ffe2a3, 0 2px 0 #ffcf6e; }
.ln--kid .ln-player--stage .ln-layout--do .ln-opt.is-picked { box-shadow: inset 0 0 0 4px #ff9f0a, 0 6px 0 #d97a00; }
.ln--kid .ln-player--stage .ln-layout--do .ln-opt.is-right { box-shadow: inset 0 0 0 4px var(--ln-good), 0 6px 0 color-mix(in srgb, var(--ln-good) 60%, #000); }
.ln--kid .ln-player--stage .ln-layout--do .ln-opt::before { width: 34px; height: 34px; border-radius: 12px; font-size: 16px; }
html[data-theme="dark"] .ln--kid .ln-player--stage .ln-layout--do .ln-opt { box-shadow: inset 0 0 0 3px #3a4a7c, 0 6px 0 #2a3866; }
.ln--kid .ln-prog { height: 12px; border-radius: 8px; }
.ln--kid .ln-prog-fill { background: linear-gradient(90deg, #ffd84d, #ffb020); }
.ln--kid .ln-score { color: #2b2100; background: #ffd84d; }
.ln--kid .ln-player--stage .ln-player-title small { color: #fff3c4; }

/* ---------- Phones: the stage edge to edge, the bar trimmed, the picture on top ---------- */
@media (max-width: 760px) {
  .ln .ln-player--stage .ln-player-bar { height: 52px; padding: 0 10px 4px; grid-template-columns: auto minmax(0, 1fr) auto auto auto auto; grid-template-areas: "close title score kept sound read"; gap: 8px; }
  .ln .ln-player--stage .ln-player-title small { display: none; }
  .ln .ln-player--stage .ln-player-title b { font-size: 15px; }
  .ln .ln-player--stage .ln-read { width: 38px; padding: 0; justify-content: center; }
  .ln .ln-player--stage .ln-read span { display: none; }
  .ln .ln-player--stage .ln-player-close, .ln .ln-player--stage .ln-sound { width: 36px; height: 36px; }
  .ln-prog { position: absolute; inset: auto 10px 3px; height: 5px; }
  .ln--kid .ln-prog { height: 7px; }
  .ln .ln-player--stage .ln-segs { inset: -8px 0; }
  .ln .ln-player--stage .ln-screen { min-height: calc(100svh - 52px - var(--ln-abar-h)); padding: 8px 0 14px; align-content: start; }
  .ln .ln-player--stage .ln-screen-in, .ln .ln-player--stage .ln-layout--read .ln-screen-in, .ln .ln-player--stage .ln-layout--sacred .ln-screen-in { width: calc(100vw - 16px); padding: 22px 18px; border-radius: 22px; }
  .ln--kid .ln-player--stage .ln-screen-in { border-radius: 28px; padding: 22px 18px; }
  .ln--teen .ln-player--stage .ln-screen-in { box-shadow: 5px 5px 0 var(--w-accent, #8b5cf6), 0 20px 40px -24px rgba(0, 0, 0, .8); width: calc(100vw - 22px); }
  .ln .ln-player--stage .ln-screen-title { font-size: 27px; }
  .ln .ln-player--stage .ln-layout--do .ln-screen-in:not(:has(> .ln-screen-title)) .ln-q { font-size: 24px; }
  .ln--teen .ln-player--stage .ln-screen-title, .ln--teen .ln-player--stage .ln-layout--do .ln-screen-in:not(:has(> .ln-screen-title)) .ln-q { font-size: 30px; }
  .ln .ln-player--stage .ln-pictured .ln-figure img, .ln .ln-player--stage .ln-figure img { max-height: 34vh; }
  .ln .ln-player--stage .ln-layout--do .ln-opts--pics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ln .ln-player--stage .ln-layout--do .ln-opt.has-pic::before { top: 16px; inset-inline-start: 16px; width: 24px; height: 24px; font-size: 12px; }
  .ln .ln-player--stage .ln-layout--scene .ln-screen-in { width: calc(100vw - 16px); padding: 0; }
  .ln .ln-player--stage .ln-layout--scene .ln-scene-stage { max-height: calc(100svh - 52px - var(--ln-abar-h) - 80px); }
  .ln-kept summary { padding: 0 9px; }
  .ln-kept summary span:last-child { display: none; }
}

/* ---------- Less motion: screens fade where they stand ---------- */
@media (prefers-reduced-motion: reduce) {
  .ln-player--stage.is-live .ln-screen, .ln-player--stage.is-live .ln-screen.is-before, [dir="rtl"] .ln-player--stage.is-live .ln-screen { transform: none; }
  .ln-player--stage .ln-backdrop-art .ln-scene { transform: none; }
  .ln-score.is-bump, .ln-kept.is-new summary, .ln .ln-player--stage .ln-layout--do .ln-opt.is-right, .ln .ln-player--stage .ln-layout--do .ln-opt.is-wrong { animation: none; }
}
