/* Round 3: /try/m/ itself (same markup, same js/m.js), turned light. Loaded after css/m.css by try/v2/m1..m3.
   Each variant sets the --v-* colours (and its own player shape) in its look.css. Home screen and tray only:
   the sheets behind them (Explore, Prayer, Share...) are not restyled yet. */
html.m-on[data-v2] body, html.m-on[data-v2] body[data-phase] {
  --text: var(--v-ink); --text-2: var(--v-ink-2); --text-3: var(--v-ink-3); --accent: var(--v-gold);
  --glass: transparent; --glass-strong: var(--v-card); --glass-border: var(--v-line); --pill-fill: transparent;
  background: var(--v-bg); color: var(--v-ink);
}
html.m-on[data-v2] { background: var(--v-bg); }
/* /try/m/ tints the tray and sheets per prayer on the body; the paper replaces all five. */
html.m-on[data-v2] body, html.m-on[data-v2] body[data-phase] { --tray: var(--v-tray); --sheet: var(--v-sheet); --sheet-text-2: var(--v-ink-2); --sheet-text-3: var(--v-ink-3); }
::selection { background: color-mix(in srgb, var(--v-gold) 22%, transparent); }

/* The whole-screen sky is gone (founder, 2026-10-24); a small living sky shows the prayer time instead (look.js). */
html[data-v2] .sky, html[data-v2] #particles, html[data-v2] .brand-splash { display: none !important; }
html[data-v2] .v-motes { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
html[data-v2] .v-light { position: fixed; left: -40%; top: -25%; width: 180%; height: 85%; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, var(--v-glow, rgba(255, 253, 247, 0.9)), transparent); animation: v-wander 32s ease-in-out infinite alternate; }
@keyframes v-wander { from { transform: translate3d(-10%, 0, 0); } to { transform: translate3d(12%, 7%, 0); } }

/* Top: the gold pill becomes a quiet outline; the search icon takes the ink. */
/* Gold pills on paper need a ground of their own (founder: they got lost): a deep ink capsule with bright gold words. */
html.m-on[data-v2] .day-tag { background: var(--v-pill, #1d2236); border-color: transparent; color: var(--v-pill-ink, #ecc97a); box-shadow: none; }
html.m-on[data-v2] .day-tag .day-label { color: inherit; }
html.m-on[data-v2] #jumpBtn { color: var(--v-ink-2); }

/* The Ayah, on the paper. */
html.m-on[data-v2] .verse .arabic { color: var(--v-arabic, var(--v-ink)); }
html.m-on[data-v2] .verse .translation { color: var(--v-ink); }
html.m-on[data-v2] .w.is-reciting, html.m-on[data-v2] .tw.is-reciting { color: var(--v-word, var(--v-gold)); }
/* The word being recited simply turns gold, as on /try/m/ (founder, 2026-10-25: no box). */
html.m-on[data-v2] .verse .w.is-reciting { background: none; box-shadow: none; }
html.m-on[data-v2] .pillar-tag, html.m-on[data-v2] .pillar-more { background: var(--v-pill, #1d2236); border-color: transparent; color: var(--v-pill-ink, #ecc97a); }
html.m-on[data-v2] .verse .reference { color: var(--v-ink-2); }

/* The voice line: js/m.js draws it pale gold on a faint white line, made for a dark sky. On paper, turn it over
   (invert, then swing the hue back): the heard part becomes a deep bronze-gold, the rest a soft ink line. */
html.m-on[data-v2] .m-bars, html.m-on[data-v2] .m-mini-voice { filter: invert(1) hue-rotate(180deg) saturate(1.5) brightness(var(--v-line-bright, 1.75)); }
html.m-on[data-v2] .audio-bar:not(.is-drawn), html.m-on[data-v2] .m-mini-voice:not(.is-drawn) { background-image: linear-gradient(var(--v-line), var(--v-line)); }

/* Tray basics shared by the three: ink text, hairlines in ink. Each look.css shapes the tray itself. */
html.m-on[data-v2] .player.dock { color: var(--v-ink); box-shadow: var(--v-tray-shadow, 0 -10px 30px rgba(30, 30, 40, 0.08)); }
html.m-on[data-v2] .m-actions { border-color: var(--v-line); }
html.m-on[data-v2] .m-actions .pill, html.m-on[data-v2] .m-actions .icon-btn { color: var(--v-ink-2); }
html.m-on[data-v2] .m-grab::before, html.m-on[data-v2] .m-grab span { background: var(--v-line-strong, var(--v-line)); }
html.m-on[data-v2] .audio-time, html.m-on[data-v2] .audio-dur { color: var(--v-ink-3); }
html.m-on[data-v2] .np-reciter, html.m-on[data-v2] .np-reciter span { color: var(--v-ink); }
html.m-on[data-v2] .np-reciter[data-mono]::before { border-color: color-mix(in srgb, var(--v-gold) 60%, transparent); color: var(--v-gold-ink, var(--v-gold)); }
html.m-on[data-v2] .dock .ctl, html.m-on[data-v2] .dock .ctl-icon { color: var(--v-ink-2); background: transparent; border-color: var(--v-line); }
html.m-on[data-v2] .m-mini-t, html.m-on[data-v2] .m-mini-line { color: var(--v-ink-2); }
html.m-on[data-v2] .prayer-ring .ring-track { stroke: var(--v-line); }
html.m-on[data-v2] .prayer-ring .ring-fill { stroke: var(--v-gold); }

/* The small living sky inside the Prayer times button (look.js puts it in the ring's place). */
html[data-v2] .v-orb { position: relative; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; flex: none; background: var(--orb);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 1px 4px rgba(20, 30, 60, 0.25); }
html[data-v2] .v-orb::after { content: ''; position: absolute; left: var(--orb-sx); top: var(--orb-sy); width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%;
  background: var(--orb-sun); box-shadow: 0 0 6px 2px color-mix(in srgb, var(--orb-sun) 60%, transparent); animation: v-orb 5s ease-in-out infinite; }
html[data-v2] body[data-phase='isha'] .v-orb::after { width: 6px; height: 6px; background: transparent; box-shadow: 2px -1px 0 0 var(--orb-sun); animation: none; }
@keyframes v-orb { 50% { filter: brightness(1.15); } }
html[data-v2] body[data-phase='fajr']    { --orb: linear-gradient(170deg, #7f86b8, #b99cc4 28%, #eaa9b8 58%, #f9c9a6 82%, #fde3b5); --orb-sun: #fff1d6; --orb-sx: 30%; --orb-sy: 78%; }
html[data-v2] body[data-phase='dhuhr']   { --orb: linear-gradient(170deg, #1d5f96, #3b8cc4 35%, #7db9e0 70%, #bfe0ef); --orb-sun: #fffbe9; --orb-sx: 62%; --orb-sy: 32%; }
html[data-v2] body[data-phase='asr']     { --orb: linear-gradient(170deg, #2f6690, #5698ba 35%, #e3b985 70%, #f6d9a8); --orb-sun: #fff0c9; --orb-sx: 70%; --orb-sy: 52%; }
html[data-v2] body[data-phase='maghrib'] { --orb: linear-gradient(170deg, #150e2b, #3a1f4d 25%, #7a3a5f 50%, #c96b5c 75%, #e8a15b); --orb-sun: #ffcf9a; --orb-sx: 58%; --orb-sy: 82%; }
html[data-v2] body[data-phase='isha']    { --orb: linear-gradient(170deg, #0a1330, #111e44 40%, #1a2c5c 75%, #243a70); --orb-sun: #eef2ff; --orb-sx: 64%; --orb-sy: 36%; }

/* One gentle entrance when the page opens: the Ayah comes into focus, then the tray settles. */
@keyframes v-focus { from { opacity: 0; filter: blur(8px); } }
html[data-v2] .verse { animation: v-focus 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s backwards; }
html[data-v2] .m-top { animation: v-focus 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
@media (prefers-reduced-motion: reduce) { html[data-v2] .v-light { animation: none; } }
html[data-v2] .prayer-ring { position: relative; }
html[data-v2] .v-orb-in { position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; box-shadow: none; }
html[data-v2] .v-orb-in::after { width: 4.5px; height: 4.5px; margin: -2.25px 0 0 -2.25px; box-shadow: 0 0 3px 1px color-mix(in srgb, var(--orb-sun) 60%, transparent); }
html[data-v2] body[data-phase='isha'] .v-orb-in::after { width: 4px; height: 4px; box-shadow: 1.5px -0.7px 0 0 var(--orb-sun); }

/* The word pop-up (tap or hover a word): a deep ink card with ivory writing, so it reads on paper. */
html.m-on[data-v2] .word-tip { background: var(--v-pill, #1d2236); border-color: rgba(236, 201, 122, 0.35); box-shadow: 0 14px 36px rgba(29, 34, 54, 0.3);
  --text: #f3ede2; --text-2: #d6d2c8; --accent: #ecc97a; color: #f3ede2; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Turning to the commentary now comes into focus from a soft blur too, like turning back (founder, 2026-10-25). */
html[data-v2] .card-back .back-top > *, html[data-v2] .card-back .back-body > .section > * { animation: v-focus 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
html[data-v2] .card-back .back-body > .section:nth-child(2) > * { animation-delay: 0.08s; }
html[data-v2] .card-back .back-body > .section:nth-child(n+3) > * { animation-delay: 0.16s; }
/* The theme pill on the phone page is .pillar-cycle (name + dots): same ink capsule. */
html.m-on[data-v2] .pillar-cycle { background: var(--v-pill, #1d2236); border-color: transparent; box-shadow: none; }
html.m-on[data-v2] .pillar-cycle .pc-name, html.m-on[data-v2] .pillar-cycle .pc-dots, html.m-on[data-v2] .pillar-cycle button { color: var(--v-pill-ink, #ecc97a); }
