/* Motion, interaction and dark-mode layer for the SalahCircle home page.
   Everything here is additive: without JavaScript the page stays readable. */
:root { --page: var(--paper); --band: color-mix(in srgb, var(--page) 92%, #6f8f5a); --card: #fdf9ee; --ease: cubic-bezier(.2,.7,.2,1); }
body { background: var(--page); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Header, progress and theme toggle ---------- */
.day-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 40; pointer-events: none; }
.day-progress i { display: block; height: 100%; width: calc(var(--read, 0) * 100%); background: linear-gradient(90deg,#e79aa3,#f3cf8c 22%,#8cc1e6 48%,#f1b25e 70%,#d8603f 86%,#4a5aa6) 0 0 / 100vw 100%; border-radius: 0 3px 3px 0; }
.site-header { background: color-mix(in srgb, var(--page) 86%, transparent); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); transition: box-shadow .3s; }
.header-inner { transition: height .3s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 8px 30px #0d2d2514; }
.site-header.is-scrolled .header-inner { height: 60px; }
.header-inner nav { margin-left: auto; }
.header-inner nav > a:not(.button) { position: relative; border-bottom: 0; }
.header-inner nav > a:not(.button)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 7px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.header-inner nav > a:not(.button):hover::after, .header-inner nav > a:not(.button):focus-visible::after { transform: scaleX(1); transform-origin: left; }
.theme-toggle { order: 3; flex: none; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); transition: background .2s, rotate .5s var(--ease); }
.theme-toggle:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); rotate: 20deg; }
.theme-toggle .icon-sun, [data-theme=dark] .theme-toggle .icon-moon { display: none; }
[data-theme=dark] .theme-toggle .icon-sun { display: block; }
@media (max-width: 800px) { .theme-toggle { order: 0; margin-left: auto; } .header-inner { gap: 10px; } .header-inner nav { margin-left: 0; } .site-header.is-scrolled .header-inner { height: 64px; } }

/* ---------- Hero: living sky ---------- */
.valley-photo { translate: 0 var(--sky-shift, 0px); scale: 1.06; animation: sky-drift 48s ease-in-out infinite alternate; }
.valley-photo.is-spare { opacity: 0; }
@keyframes sky-drift { from { scale: 1.06; } to { scale: 1.15; } }
.valley-stars, .valley-mist { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.valley-stars { bottom: 45%; opacity: 0; transition: opacity 1.4s; }
.valley[data-phase=isha] .valley-stars { opacity: 1; }
.valley[data-phase=fajr] .valley-stars { opacity: .55; }
.valley-stars i, .launch-sky > i { position: absolute; width: var(--s, 2px); height: var(--s, 2px); border-radius: 50%; background: #fff; box-shadow: 0 0 6px 1px #fff8; animation: twinkle var(--t, 4s) ease-in-out var(--w, 0s) infinite; }
@keyframes twinkle { 0%, 100% { opacity: .15; scale: .7; } 50% { opacity: 1; scale: 1; } }
.valley-mist { overflow: hidden; opacity: var(--mist, .55); transition: opacity 1.4s; }
.valley-mist i { position: absolute; left: -30%; width: 160%; height: 26%; top: 52%; background: radial-gradient(closest-side, #fff5 0, #fff2 45%, transparent 100%); filter: blur(22px); animation: mist 38s ease-in-out infinite alternate; }
.valley-mist i + i { top: 63%; height: 20%; animation-duration: 55s; animation-direction: alternate-reverse; opacity: .7; }
@keyframes mist { from { translate: -9% 0; } to { translate: 9% -6%; } }
.valley[data-phase=dhuhr], .valley[data-phase=asr] { --mist: .2; }
.valley[data-phase=maghrib] { --mist: .35; }
.valley[data-phase=isha] { --mist: .3; }

.day-device { perspective: 1100px; animation: device-float 7s ease-in-out infinite alternate; }
@keyframes device-float { from { translate: 0 -5px; } to { translate: 0 7px; } }
.day-device button { position: relative; transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .35s var(--ease), box-shadow .35s; will-change: transform; cursor: zoom-in; }
.day-device button:hover { box-shadow: 14px 26px 60px #071d2880; }
.hero-phone-next { position: absolute; inset: 4px; width: calc(100% - 8px) !important; height: calc(100% - 8px); object-fit: cover; opacity: 0; pointer-events: none; }
.hero-phone-next.is-on { opacity: 1; }
.phone-sheen { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(circle at var(--sheen-x, 30%) var(--sheen-y, 10%), #fff3, transparent 45%); opacity: var(--sheen, 0); transition: opacity .4s; mix-blend-mode: screen; }
@media (max-width: 590px) { .hero-phone-next { inset: 3px; width: calc(100% - 6px) !important; height: calc(100% - 6px); } }

.day-controls { position: relative; }
.day-controls button { transition: background .35s, color .35s, border-color .2s; }
.day-controls button:hover:not([aria-pressed=true]) { border-color: #fff7; }
.day-orb { position: absolute; top: -8px; left: 0; width: 15px; height: 15px; border-radius: 50%; translate: calc(var(--orb-x, -40px) - 50%) 0; transition: translate .9s var(--ease), background .9s, box-shadow .9s; background: #ffd98a; box-shadow: 0 0 0 4px #ffd98a33, 0 0 22px 6px #ffc76a99; }
.valley[data-phase=fajr] .day-orb { background: #f6b9b0; box-shadow: 0 0 0 4px #f6b9b033, 0 0 20px 5px #f39a9a88; }
.valley[data-phase=dhuhr] .day-orb { background: #fff6cf; box-shadow: 0 0 0 4px #fff6cf44, 0 0 26px 8px #fff1b0aa; }
.valley[data-phase=maghrib] .day-orb { background: #ff9c61; box-shadow: 0 0 0 4px #ff9c6133, 0 0 22px 6px #ff7a3d99; }
.valley[data-phase=isha] .day-orb { background: transparent; box-shadow: inset -5px -2px 0 0 #f4edd6, 0 0 18px 2px #dfe6ff55; }

/* ---------- Reveals ---------- */
.rv { opacity: 0; translate: 0 28px; transition: opacity .8s var(--ease), translate .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.rv.in { opacity: 1; translate: 0 0; }
.ln { display: block; overflow: hidden; padding: .16em .12em .22em 0; margin: -.16em -.12em -.22em 0; }
.ln > span { display: block; translate: 0 112%; transition: translate .95s var(--ease); transition-delay: calc(var(--l, 0) * 120ms); }
.in > .ln > span, .ln.in > span { translate: 0 0; }

/* ---------- Facts ---------- */
.facts { border-bottom: 1px solid var(--line); }
.facts-inner { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(14px,3vw,44px); padding-block: clamp(26px,3.4vw,44px); }
.facts p { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.45; }
.facts b { font: 400 clamp(38px,4.4vw,64px)/1 var(--serif); letter-spacing: -.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.facts span { max-width: 22ch; }
@media (max-width: 700px) { .facts-inner { grid-template-columns: 1fr 1fr; } .facts p { font-size: 13px; } }

/* ---------- Scroll-told tour ---------- */
.story-stage { display: none; }
.story-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(26px,4vw,44px); }
.story-step { display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); gap: clamp(18px,4vw,40px); align-items: center; }
.story-inline { width: 100%; aspect-ratio: 355/520; object-fit: cover; object-position: top; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 14px 34px #13352618; }
.story-kicker { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.story-kicker b { font: 400 13px var(--serif); letter-spacing: 0; padding: 3px 9px; border: 1px solid currentColor; border-radius: 99px; }
.story-step h3 { font-size: clamp(30px,3.7vw,56px); }
.story-step p { font-size: clamp(15px,1.25vw,18px); line-height: 1.6; margin: 14px 0 18px; max-width: 40ch; }
.story-step a { font-weight: 650; font-size: 14px; padding-block: 6px; display: inline-flex; align-items: center; gap: 14px; background: linear-gradient(currentColor,currentColor) 0 100% / 100% 1px no-repeat; transition: gap .3s var(--ease); }
.story-step a:hover { gap: 22px; }
@media (min-width: 900px) {
  .js .story-layout { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); gap: clamp(40px,7vw,120px); align-items: start; }
  .js .story-stage { --stage-h: min(76vh, 660px); display: flex; flex-direction: column; align-items: center; gap: 18px; position: sticky; top: calc(50vh - var(--stage-h) / 2 + 30px); height: var(--stage-h); padding: 30px 24px 20px; border-radius: 30px; background: var(--stage, #e8d9b8); transition: background .8s; overflow: hidden; }
  .js .story-stage::before { content: ""; position: absolute; width: 130%; aspect-ratio: 1; left: -15%; top: 12%; border-radius: 50%; border: 1px solid #ffffff80; box-shadow: 0 0 0 70px #ffffff1f; pointer-events: none; }
  .story-phone { position: relative; flex: 1; min-height: 0; aspect-ratio: 355/768; border-radius: 30px; border: 5px solid #1c3e34; background: #1c3e34; box-shadow: 0 0 0 1px #a8ad90, 0 26px 50px #18372d40; overflow: hidden; }
  .story-phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; translate: 0 26px; scale: 1.04; transition: opacity .6s, translate .8s var(--ease), scale .8s var(--ease); }
  .story-phone img.is-current { opacity: 1; translate: 0 0; scale: 1; }
  .story-phone img.is-past { translate: 0 -26px; }
  .story-meter { position: relative; display: flex; align-items: center; gap: 12px; font: 400 14px var(--serif); color: #1c3e34; }
  .story-meter span { width: 110px; height: 2px; background: #1c3e3430; border-radius: 2px; overflow: hidden; }
  .story-meter i { display: block; height: 100%; background: #1c3e34; transform-origin: left; transform: scaleX(var(--story, .2)); transition: transform .6s var(--ease); }
  .js .story-steps { display: block; padding-block: 6vh; }
  .js .story-step { display: flex; align-items: center; min-height: 64vh; opacity: .25; transition: opacity .5s; }
  .js .story-step.is-current { opacity: 1; }
  .js .story-inline { display: none; }
}
@media (max-width: 480px) { .story-step { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 16px; } .story-step h3 { font-size: 27px; } .story-step p { font-size: 14px; } .story-step p { margin: 10px 0 12px; } }

/* ---------- Gallery ---------- */
.screen-rail { cursor: grab; }
.screen-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.screen-card button { transition: translate .4s var(--ease), box-shadow .4s; }
.screen-card img { transition: scale .6s var(--ease); -webkit-user-drag: none; }
.screen-expand { transition: scale .3s var(--ease), background .3s; }
@media (hover: hover) {
  .screen-card button:hover { translate: 0 -8px; box-shadow: 0 22px 44px #04181480, 0 0 0 1px #e7d7ac88; }
  .screen-card button:hover img { scale: 1.035; }
  .screen-card button:hover .screen-expand { scale: 1.15; background: #e7d7ac; }
  .widget-pair article { transition: translate .4s var(--ease), box-shadow .4s; }
  .widget-pair article:hover { translate: 0 -6px; box-shadow: 0 24px 50px #143e3024; }
  .widget-picture img { transition: scale .5s var(--ease); }
  .month-pair .widget-picture:hover img { scale: 1.03; }
}
.screen-rail { padding-top: 14px; }
.screen-card.is-entering { animation: card-in .55s var(--ease) both; animation-delay: calc(var(--enter, 0) * 50ms); }
@keyframes card-in { from { opacity: 0; translate: 26px 0; scale: .96; } }
.filters button, .rail-arrows button { transition: background .25s, color .25s, border-color .25s, scale .2s; }
.filters button:hover:not([aria-pressed=true]), .rail-arrows button:hover:not(:disabled) { background: #ffffff14; border-color: #e7d7ac; }
.filters button:active, .rail-arrows button:active:not(:disabled) { scale: .94; }
::view-transition-group(screen-shot) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2,.7,.2,1); }
::view-transition-old(screen-shot), ::view-transition-new(screen-shot) { height: 100%; object-fit: cover; object-position: top; }
@supports not (view-transition-name: none) {
  #screen-viewer[open] { animation: viewer-in .28s var(--ease); }
  @keyframes viewer-in { from { opacity: 0; scale: .96; translate: 0 14px; } }
}

/* ---------- Tasbeeh ---------- */
.tasbeeh { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1fr); gap: clamp(28px,6vw,90px); align-items: center; padding-block: clamp(58px,7vw,100px); scroll-margin-top: 80px; }
.tasbeeh h2 { font-size: clamp(42px,5vw,76px); letter-spacing: -.058em; }
.tasbeeh-copy p { margin-top: 18px; max-width: 40ch; }
.tasbeeh-copy .tasbeeh-note { font-size: 13px; margin-top: 10px; }
.tasbeeh-copy a { margin-top: 22px; font-weight: 650; font-size: 14px; padding-block: 6px; border-bottom: 1px solid currentColor; display: inline-flex; gap: 14px; }
.tasbeeh-card { background: var(--card); border: 1px solid #d9cfae; border-radius: 30px; padding: clamp(16px,2.4vw,28px); display: grid; justify-items: center; gap: 16px; box-shadow: 0 30px 70px #143e301c; }
.tasbeeh-tabs { width: 100%; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid #d9cfae; border-radius: 16px; overflow: hidden; }
.tasbeeh-tabs button { border: 0; background: transparent; padding: 10px 4px 9px; font-size: 13px; font-weight: 700; color: var(--ink); display: grid; gap: 2px; border-bottom: 3px solid transparent; transition: background .3s, border-color .3s; }
.tasbeeh-tabs small { font-weight: 400; font-size: 12px; font-variant-numeric: tabular-nums; }
.tasbeeh-tabs button[aria-pressed=true] { background: color-mix(in srgb, var(--ink) 10%, transparent); border-bottom-color: currentColor; }
.tasbeeh-phrase { display: grid; justify-items: center; gap: 2px; text-align: center; color: var(--ink); }
.tasbeeh-arabic { font-size: clamp(28px,3.4vw,40px); line-height: 1.5; font-family: "Amiri","Scheherazade New","Noto Naskh Arabic","Geeza Pro","Traditional Arabic",serif; }
.tasbeeh-phrase strong { font-size: 18px; }
.tasbeeh-meaning { color: var(--muted); font-size: 15px; }
.tasbeeh-phrase.is-swapping { animation: phrase-in .5s var(--ease); }
@keyframes phrase-in { from { opacity: 0; translate: 0 10px; } }
.tasbeeh-ring { position: relative; width: min(310px, 100%); aspect-ratio: 1; border-radius: 50%; border: 1px solid #d9cfae; background: radial-gradient(circle, #fffdf3 40%, #f1e9cf); color: #17493c; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; touch-action: manipulation; user-select: none; -webkit-user-select: none; box-shadow: 0 12px 30px #143e3018; transition: scale .12s; }
.tasbeeh-ring:active { scale: .975; }
.tasbeeh-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tasbeeh-beads circle { fill: #3f7a63; stroke: #1f4d3d55; stroke-width: 1; transition: fill .35s, r .35s var(--ease); }
.tasbeeh-beads circle.is-counted { fill: #c9a24e; stroke: #8c6d2a66; }
.tasbeeh-beads circle.is-latest { r: 13.5px; }
.tasbeeh-count { font: 400 clamp(60px,7vw,84px)/1 var(--serif); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.tasbeeh-count.is-bump { animation: bump .28s var(--ease); }
@keyframes bump { 35% { scale: 1.16; } }
.tasbeeh-of { font-size: 17px; margin-top: 4px; }
.tasbeeh-hint { font-size: 13px; color: #5d8474; margin-top: 8px; }
.tasbeeh-ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #c9a24e; opacity: 0; pointer-events: none; }
.tasbeeh-ring.is-pulse::after { animation: ring-pulse .6s ease-out; }
@keyframes ring-pulse { from { opacity: .7; scale: .86; } to { opacity: 0; scale: 1.12; } }
.tasbeeh-ring.is-complete { animation: ring-done .9s var(--ease); }
@keyframes ring-done { 30% { box-shadow: 0 0 0 14px #c9a24e44, 0 12px 30px #143e3018; } }
.tasbeeh-total { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; padding: 4px 16px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.tasbeeh-actions { display: flex; gap: 10px; }
.tasbeeh-actions button { border: 1px solid #cfc49f; background: transparent; color: var(--ink); border-radius: 99px; min-height: 42px; padding: 8px 22px; font-size: 14px; font-weight: 600; transition: background .2s, scale .15s; }
.tasbeeh-actions button:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.tasbeeh-actions button:active { scale: .95; }
@media (max-width: 820px) { .tasbeeh { grid-template-columns: 1fr; } }

/* ---------- Live widget ---------- */
.widget-mount { position: relative; }
.live-widget { position: absolute !important; inset: 0 !important; width: auto !important; height: auto !important; background: none !important; border: 0 !important; border-radius: 0 !important; line-height: 1 !important; container-type: inline-size; font-style: normal; color: #2c3d22; pointer-events: none; }
.live-widget i { font-style: normal; position: absolute; display: grid; place-items: center; text-align: center; white-space: nowrap; }
.lw-now { left: 22.6%; right: 22.6%; top: 13.9%; height: 7.2%; border-radius: 99px; background: #d2dab0; font: 700 4.4cqw var(--serif); }
.lw-disc { left: 19.3%; width: 61.4%; top: 22.7%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(#fbf2dc, #feecc8); }
.lw-disc svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.lw-disc circle { fill: none; stroke-width: 4.4; }
.lw-track { stroke: #cbd7ad; }
.lw-arc { stroke: #4f7a3c; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--lw, 25)); transition: stroke-dashoffset 1.2s var(--ease); }
.lw-next { left: 0; right: 0; top: 24%; font: 400 4.2cqw Arial, sans-serif; }
.lw-time { left: 12%; right: 12%; top: 37%; height: 30%; font: 700 10.4cqw var(--serif); letter-spacing: -.03em; border-block: 1px solid #c9a86a; font-variant-numeric: tabular-nums; }
.lw-log { left: 23%; right: 23%; top: 73.5%; height: 13.5%; border-radius: 99px; background: #2c3d22; color: #fbf2dc; font: 400 4cqw Arial, sans-serif; }
.live-note { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 11px; color: #3d5a47; margin: 0; }
.live-note i { width: 7px; height: 7px; border-radius: 50%; background: #4f9a5a; animation: live-dot 2s ease-in-out infinite; }
@keyframes live-dot { 50% { opacity: .35; scale: .75; } }

/* ---------- Buttons, FAQ, launch ---------- */
.button, .ivory-button { transition: background .2s, transform .2s, translate .3s var(--ease), box-shadow .3s; }
.ivory-button:hover { transform: translateY(-2px); box-shadow: 0 10px 28px #00000040; }
.button span, .ivory-button span { transition: translate .3s var(--ease); }
.button:hover span { translate: 3px -3px; }
.ivory-button:hover span { translate: 0 4px; }
.faq-list summary { transition: color .2s, padding-left .35s var(--ease); }
.faq-list summary:hover { padding-left: 8px; }
.faq-list details { overflow: hidden; }
.launch::before, .launch::after { display: none; }
.launch-sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.orbit { position: absolute; top: 50%; left: 50%; width: var(--d); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2); border-radius: 50%; border: 1px solid #9aab7c66; animation: orbit var(--t) linear infinite; }
.orbit i { position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #e7d7ac; box-shadow: 0 0 14px 3px #e7d7ac88; }
.o1 { --d: 560px; --t: 46s; } .o2 { --d: 800px; --t: 75s; animation-direction: reverse; } .o3 { --d: 1050px; --t: 110s; }
.o2 i { background: #bbc49c; box-shadow: 0 0 12px 2px #bbc49c88; width: 6px; height: 6px; }
@keyframes orbit { to { rotate: 360deg; } }
.launch-note .dot { animation: live-dot 2.4s ease-in-out infinite; }
.footer-top nav a, .footer-bottom a { transition: color .2s; }
.footer-top nav a:hover, .footer-bottom a:hover { color: var(--gold); }

/* ---------- Page tint bands ---------- */
.widget-exhibit, .questions { background: var(--band); }

/* ---------- Dark mode ---------- */
:root[data-theme=dark] { color-scheme: dark; --paper: #0c221e; --ink: #f1ead8; --muted: #a9bbad; --line: #27463c; --gold: #d9bd82; --card: #12302a; --band: color-mix(in srgb, var(--page) 80%, #2f5a4a); }
:root[data-theme=light] { color-scheme: light; }
[data-theme=dark] em { color: #b7c39a; }
[data-theme=dark] .valley h1 em { color: #eed3a1; }
[data-theme=dark] .skip { color: #123d34; }
[data-theme=dark] .brand-mark img { filter: brightness(1.9) saturate(.8); }
[data-theme=dark] .site-header { border-bottom-color: #27463c90; }
[data-theme=dark] .site-header.is-scrolled { box-shadow: 0 8px 30px #0006; }
[data-theme=dark] .button { background: #e9dfc0; color: #143a30; }
[data-theme=dark] .button:hover { background: #fff3cd; }
[data-theme=dark] .button.outline { background: transparent; color: var(--ink); border-color: #55705f; }
[data-theme=dark] .button.outline:hover { background: #17382f; }
[data-theme=dark] .header-inner nav { box-shadow: 0 15px 25px #0005; }
[data-theme=dark] .screen-room { background: #0f2f28; }
[data-theme=dark] .story-meter { color: #f1ead8; }
[data-theme=dark] .story-meter span { background: #f1ead830; }
[data-theme=dark] .story-meter i { background: #f1ead8; }
[data-theme=dark] .story-inline { box-shadow: 0 14px 34px #0006; }
[data-theme=dark] .tasbeeh-card { border-color: #2f5145; box-shadow: 0 30px 70px #0005; }
[data-theme=dark] .tasbeeh-tabs, [data-theme=dark] .tasbeeh-actions button { border-color: #2f5145; }
[data-theme=dark] .tasbeeh-ring { background: radial-gradient(circle, #1a4338 40%, #10302a); border-color: #3a6152; color: #f1ead8; }
[data-theme=dark] .tasbeeh-hint { color: #9fc0b0; }
[data-theme=dark] .tasbeeh-beads circle { fill: #4f957a; }
[data-theme=dark] .tasbeeh-beads circle.is-counted { fill: #e0bb66; }
[data-theme=dark] .widget-pair article { background: #12302a; border-color: #27463c; }
[data-theme=dark] .widget-mount { background: radial-gradient(ellipse at center, #24503f, #143a30); }
[data-theme=dark] .live-note { color: #c5d6c6; }
[data-theme=dark] .month-pair .widget-picture { outline-color: #27463c; }
[data-theme=dark] .faq-list details, [data-theme=dark] .faq-list details:first-child { border-color: #2c4d42; }
[data-theme=dark] .launch { background: #0a1d24; }
[data-theme=dark] .footer-bottom { color: #8fa294; }
[data-theme=dark] #screen-viewer { background: #102b25; }
[data-theme=dark] .viewer-stage { background: #091c19; }
[data-theme=dark] .viewer-footer button { border-color: #3a5a4d; }
[data-theme=dark] ::selection { background: #e7d7ac; color: #123d34; }
html.theme-fade, html.theme-fade body, html.theme-fade .site-header, html.theme-fade section, html.theme-fade article { transition: background-color .5s, color .5s, border-color .5s; }

@media (prefers-reduced-motion: reduce) {
  .rv, .ln > span { opacity: 1; translate: none; }
  .valley-photo { scale: 1.06; }
}
