@font-face {
  font-family: Fraunces Variable;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(./fraunces-vietnamese-wght-normal-CnvboYUG.woff2) format("woff2-variations");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: Fraunces Variable;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(./fraunces-latin-ext-wght-normal-Ca2vKHc0.woff2) format("woff2-variations");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Fraunces Variable;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(./fraunces-latin-wght-normal-ukD16Tqj.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Outfit Variable;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(./outfit-latin-ext-wght-normal-DdQaqQDo.woff2) format("woff2-variations");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Outfit Variable;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(./outfit-latin-wght-normal-Bc-8i84L.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #0b1220;
  --bg-2: #141c2e;
  --ink: #e8eef6;
  --muted: #9aadc2;
  --line: #e8eef61f;
  --accent: #7faf93;
  --accent-strong: #9ec9ad;
  --accent-ink: #0b1220;
  --moon: #dce6f2;
  --warn: #f0d2c4;
  --warn-bg: #2a1c18;
  color: var(--ink);
  background: #070b14;
  font-family: Outfit Variable, Avenir Next, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: #070b14; }
img { max-width: 100%; }
a { color: var(--accent-strong); }
a:hover { color: var(--moon); }

body {
  min-height: 100dvh;
  color: var(--ink);
  margin: 0;
  line-height: 1.6;
  background:
    radial-gradient(ellipse 70% 45% at 82% -8%, rgba(220, 230, 242, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 8% 8%, rgba(127, 175, 147, 0.14), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(30, 50, 70, 0.55), transparent 55%),
    var(--bg);
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.7;
  background-image:
    radial-gradient(1px 1px at 8% 18%, #fff8, transparent),
    radial-gradient(1.4px 1.4px at 22% 8%, #fff6, transparent),
    radial-gradient(1px 1px at 36% 26%, #fff5, transparent),
    radial-gradient(1.6px 1.6px at 48% 6%, #fffb, transparent),
    radial-gradient(1px 1px at 62% 20%, #fff6, transparent),
    radial-gradient(1.2px 1.2px at 74% 12%, #fff7, transparent),
    radial-gradient(1px 1px at 88% 28%, #fff5, transparent),
    radial-gradient(1.5px 1.5px at 14% 42%, #fff4, transparent),
    radial-gradient(1px 1px at 28% 58%, #fff3, transparent),
    radial-gradient(1.3px 1.3px at 70% 48%, #fff4, transparent),
    radial-gradient(1px 1px at 92% 62%, #fff3, transparent),
    radial-gradient(1.4px 1.4px at 4% 72%, #fff4, transparent);
}

.site-header, .site-footer, .wrap, .narrow, main, .skip {
  position: relative;
  z-index: 1;
}

h1, h2, h3 {
  letter-spacing: -0.03em;
  font-family: Fraunces Variable, Iowan Old Style, Palatino, Georgia, serif;
  font-weight: 560;
  line-height: 1.08;
}
h1 { margin: 0.2rem 0 0.8rem; font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { margin: 2.2rem 0 0.6rem; font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { margin: 1.4rem 0 0.4rem; font-size: 1.2rem; }
p { margin: 0.7rem 0; }

.skip {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  position: absolute;
  top: -4rem;
  left: 1rem;
}
.skip:focus { z-index: 5; top: 0.6rem; }

.site-header, .site-footer, .wrap, .narrow {
  width: min(100% - 2rem, 46rem);
  margin-inline: auto;
}

.site-header {
  padding-top: max(1rem, env(safe-area-inset-top));
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  display: flex;
}

.wordmark {
  color: var(--ink);
  font-family: Fraunces Variable, Georgia, serif;
  font-size: 1.55rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.wordmark:hover { color: var(--moon); }
.mark {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  display: block;
}

.site-nav, .site-footer nav {
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  display: flex;
}
.site-nav a, .site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover, .site-footer a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-footer {
  padding: 2.5rem 0 max(1.5rem, env(safe-area-inset-bottom));
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 3rem;
}

.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  font-size: 0.75rem;
}
.lede {
  color: var(--muted);
  max-width: 38rem;
  font-size: 1.15rem;
}
.prose section { margin-top: 2.4rem; }
.quiet { color: var(--muted); }

.btn, button.btn, a.btn {
  border: 1px solid var(--line);
  min-height: 3.25rem;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  background: transparent;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  padding: 0.7rem 1.2rem;
  text-decoration: none;
  display: inline-flex;
}
a.btn.btn-primary, button.btn.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
  width: 100%;
}
.cta-row a.btn.btn-primary, .cta-row button.btn.btn-primary { width: auto; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.text-link { color: var(--muted); }

.warning {
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid #f0d2c459;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
}
.warning a { color: #ffd8bf; }

.ad-slot {
  border: 1px dashed var(--line);
  background: #0000002e;
  border-radius: 1rem;
  margin: 1.5rem 0;
  padding: 0.8rem;
}
.ad-label {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
}
.ad-frame {
  min-height: 6rem;
  color: var(--muted);
  text-align: center;
  place-items: center;
  font-size: 0.92rem;
  display: grid;
}
.ad-frame:empty { display: none; }

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0 1.4rem;
  font-size: 0.98rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0.5rem;
}
th { color: var(--muted); font-weight: 500; }

details { border-top: 1px solid var(--line); padding: 0.8rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 560; }
ol.steps { padding-left: 1.2rem; }
ol.steps li { margin: 0.55rem 0; }

.cta-row {
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.2rem 0 0.4rem;
  display: flex;
}
.cta-row .btn { width: auto; }

.narrow { width: min(100% - 2rem, 32rem); }
.session-main { padding-bottom: 2rem; }
.stack { gap: 0.7rem; display: grid; }
.stack h2 {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.8rem 0 0;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
}

.choice, .chip {
  font: inherit;
  color: inherit;
  text-align: left;
  background: var(--bg-2);
  border: 1px solid var(--line);
  cursor: pointer;
  border-radius: 1rem;
  padding: 0.85rem 1rem;
}
.choice {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  display: flex;
}
.choice small, .chip small {
  color: var(--muted);
  font-size: 0.86rem;
  display: block;
}
.choice em {
  color: var(--accent-strong);
  font-family: Fraunces Variable, Georgia, serif;
  font-style: normal;
}
.choice.is-on, .chip.is-on {
  background: #7faf9324;
  border-color: #7faf93cc;
}
.chip-row {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  display: grid;
}
.chip { text-align: center; }
.chip i {
  border: 1px solid #ffffff40;
  border-radius: 999px;
  width: 1.4rem;
  height: 1.4rem;
  margin: 0 auto 0.35rem;
  display: block;
}

.check {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 1rem;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  display: flex;
}
.check input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent);
  margin-top: 0.2rem;
}
.volume { width: 100%; accent-color: var(--accent); }
.volume-label { color: var(--muted); }
.volume-label span { float: right; color: var(--ink); }

.stub {
  background: #15241e;
  border: 1px solid #7faf9373;
  border-radius: 1rem;
  padding: 1rem;
}
.stub h2 { margin-top: 0.2rem; font-size: 1.7rem; }
.row { gap: 0.5rem; display: grid; }
.huge { font-size: clamp(3.4rem, 12vw, 5.5rem); }

.form { gap: 0.8rem; display: grid; }
.form input, .form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.75rem 0.8rem;
}
.form textarea { resize: vertical; min-height: 8rem; }

.flicker {
  z-index: 50;
  color: transparent;
  cursor: pointer;
  touch-action: none;
  background: #000;
  border: 0;
  width: 100%;
  height: 100dvh;
  margin: 0;
  position: fixed;
  inset: 0;
}
html[data-session="on"], html[data-session="on"] body {
  background: #000;
  overflow: hidden;
}
html[data-session="on"] body::before { display: none; }

/* Daily affirmation card */
.affirm-section { margin: 2.2rem 0 0.4rem; }
.affirm-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 0.8rem 0 0;
  padding: 2.1rem 1.6rem 1.4rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(232, 238, 246, 0.12);
  background:
    radial-gradient(ellipse 80% 70% at 88% 8%, rgba(220, 230, 242, 0.22), transparent 52%),
    radial-gradient(ellipse 60% 50% at 8% 92%, rgba(127, 175, 147, 0.22), transparent 55%),
    linear-gradient(180deg, #152033 0%, #0c1424 100%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}
.affirm-card::after {
  content: "";
  position: absolute;
  top: 1.15rem;
  right: 1.3rem;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  background: #e8eef6;
  box-shadow: -1.15rem -0.35rem 0 0 #152033, 0 0 28px rgba(232, 238, 246, 0.28);
  z-index: 0;
}
.affirm-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-size: 0.72rem;
}
.affirm-card blockquote {
  position: relative;
  z-index: 1;
  margin: 0 7rem 1.4rem 0;
  font-family: Fraunces Variable, Georgia, serif;
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  font-weight: 520;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--moon);
}
.affirm-card figcaption {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.92rem;
  font-family: Fraunces Variable, Georgia, serif;
}

.intention-banner {
  background: #7faf931a;
  border: 1px solid #7faf9366;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  color: var(--ink);
}
.intention-banner strong {
  display: block;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.intention-banner p { margin: 0; font-family: Fraunces Variable, Georgia, serif; font-size: 1.15rem; }

@media (width <= 720px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .affirm-card blockquote { margin-right: 0; padding-right: 4.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin: 1.6rem 0 0.4rem;
}
.feature-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 8.5rem;
  padding: 1rem 1.1rem;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  text-decoration: none;
}
.feature-tile:hover { border-color: #7faf93aa; color: var(--ink); }
.feature-tile strong {
  font-family: Fraunces Variable, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 560;
}
.feature-tile span { color: var(--muted); font-size: 0.92rem; margin-top: 0.4rem; }
.feature-tile-tv {
  grid-column: 1 / -1;
  min-height: 5.2rem;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(120deg, #7faf9326, #141c2e 55%);
  border-color: #7faf9388;
}
.feature-tile-tv strong { font-size: 1.5rem; }

.settings-panel {
  display: grid;
  gap: 0.7rem;
  margin: 1.4rem 0;
}
.toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  cursor: pointer;
}
.toggle.is-on { border-color: #7faf93aa; background: #7faf9314; }
.toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.toggle-ui {
  width: 2.6rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #2a3548;
  border: 1px solid var(--line);
  position: relative;
  margin-top: 0.15rem;
}
.toggle-ui::after {
  content: "";
  position: absolute;
  top: 0.12rem;
  left: 0.12rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #9aadc2;
  transition: transform 0.2s ease;
}
.toggle.is-on .toggle-ui { background: #7faf93; border-color: transparent; }
.toggle.is-on .toggle-ui::after { transform: translateX(1.1rem); background: #0b1220; }
.toggle-copy { display: grid; gap: 0.2rem; }
.toggle-copy strong { font-size: 1.05rem; }
.toggle-copy small { color: var(--muted); font-size: 0.92rem; }

.feature-off { margin: 2rem 0; }
.vision-form, .sign-pref {
  display: grid;
  gap: 0.7rem;
  margin: 1.2rem 0 0.6rem;
}
.vision-form label, .sign-pref {
  color: var(--muted);
}
.vision-form input, .sign-pref select {
  width: 100%;
  margin-top: 0.35rem;
  font: inherit;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.75rem 0.8rem;
}
.vision-toolbar { margin: 0.8rem 0 1rem; }
.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 1rem 0 2rem;
}
.vision-tile {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  display: grid;
}
.vision-photo, .vision-photo-empty {
  aspect-ratio: 1;
  background: radial-gradient(circle at 70% 20%, #e8eef622, transparent 40%), #101828;
}
.vision-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vision-tile p {
  margin: 0;
  padding: 0.8rem 0.85rem 0.2rem;
  font-family: Fraunces Variable, Georgia, serif;
  font-size: 1.05rem;
}
.vision-tile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.6rem 0.7rem 0.8rem;
}
.vision-tile-actions .btn {
  min-height: 2.4rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.85rem;
}

.tarot-face {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  margin: 1.4rem 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.tarot-face span { color: var(--muted); }
.tarot-art { display: block; filter: drop-shadow(0 18px 30px rgba(0,0,0,0.35)); }
.tarot-revealed {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: start;
  margin: 1.2rem 0 2rem;
}
.tarot-meaning {
  font-family: Fraunces Variable, Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.4;
}

.horoscope-list { display: grid; gap: 0.9rem; margin: 1.2rem 0 2rem; }
.horoscope-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.1rem 1.15rem 0.4rem;
}
.horoscope-card h2 { margin: 0.15rem 0 0.5rem; font-size: 1.7rem; }

/* TV Screen Saver */
body.tv-page {
  background: #070b14;
  min-height: 100dvh;
  overflow: hidden;
}
body.tv-page::before { opacity: 0.35; }
.tv-shell {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 82% -10%, rgba(220,230,242,0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 100%, rgba(80,130,110,0.22), transparent 55%),
    #0b1220;
}
.tv-sky, .tv-forest, .tv-moon, .tv-stars {
  position: absolute;
  pointer-events: none;
}
.tv-stars { inset: 0; background-image:
  radial-gradient(1.2px 1.2px at 8% 18%, #fff8, transparent),
  radial-gradient(1.6px 1.6px at 18% 42%, #fff6, transparent),
  radial-gradient(1px 1px at 28% 12%, #fff5, transparent),
  radial-gradient(1.8px 1.8px at 42% 28%, #fffb, transparent),
  radial-gradient(1px 1px at 58% 16%, #fff6, transparent),
  radial-gradient(1.4px 1.4px at 72% 36%, #fff7, transparent),
  radial-gradient(1px 1px at 86% 14%, #fff5, transparent),
  radial-gradient(1.5px 1.5px at 12% 68%, #fff4, transparent),
  radial-gradient(1.2px 1.2px at 33% 78%, #fff3, transparent),
  radial-gradient(1.6px 1.6px at 63% 62%, #fff4, transparent),
  radial-gradient(1px 1px at 81% 72%, #fff3, transparent),
  radial-gradient(1.3px 1.3px at 91% 48%, #fff5, transparent);
  animation: tv-twinkle 14s ease-in-out infinite;
  opacity: 0.85;
}
.tv-moon {
  width: 18rem;
  height: 18rem;
  right: 8%;
  top: 12%;
  border-radius: 50%;
  background: #e8eef6;
  box-shadow: -4.6rem -1.4rem 0 0 #0b1220, 0 0 80px rgba(232,238,246,0.28);
  animation: tv-drift 160s ease-in-out infinite;
}
.tv-forest {
  left: -10%;
  right: -10%;
  bottom: -6%;
  height: 38vh;
  background:
    radial-gradient(ellipse 18% 80% at 8% 100%, #0a1a14 60%, transparent 62%),
    radial-gradient(ellipse 16% 90% at 22% 100%, #10241c 60%, transparent 62%),
    radial-gradient(ellipse 22% 100% at 40% 100%, #0c1c16 60%, transparent 62%),
    radial-gradient(ellipse 14% 70% at 58% 100%, #13281f 60%, transparent 62%),
    radial-gradient(ellipse 20% 95% at 74% 100%, #0b1a14 60%, transparent 62%),
    radial-gradient(ellipse 18% 80% at 90% 100%, #10221b 60%, transparent 62%),
    linear-gradient(#0000 30%, #07110e);
  animation: tv-pan 210s linear infinite;
  opacity: 0.9;
}
.tv-stage {
  position: relative;
  z-index: 2;
  width: min(58vw, 42rem);
  margin: 12vh 0 0 clamp(1.5rem, 6vw, 5rem);
  min-height: 58vh;
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition: opacity 2.2s ease, transform 2.2s ease;
  animation: tv-text-drift 90s ease-in-out infinite;
}
.tv-stage.is-in { opacity: 1; transform: translate3d(0, 0, 0); }
.tv-slide { text-align: left; }
.tv-art { margin-bottom: 1.4rem; }
.tv-art .tarot-art { width: min(42vw, 280px); height: auto; }
.tv-kicker {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-size: clamp(0.85rem, 1.6vw, 1.1rem);
  margin: 0 0 0.8rem;
}
.tv-title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  margin: 0 0 1rem;
  color: var(--moon);
  text-shadow: 0 8px 40px rgba(0,0,0,0.35);
}
.tv-body {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.45;
  color: #d5deea;
  max-width: 40rem;
  max-height: 42vh;
  overflow: auto;
}
.tv-controls {
  position: fixed;
  z-index: 3;
  left: 50%;
  bottom: max(1.2rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  width: min(100% - 2rem, 46rem);
}
body.tv-cursor .tv-controls, .tv-controls:focus-within { opacity: 1; }
.tv-controls .btn { min-height: 2.8rem; background: #0b1220cc; }
#tv-hint { color: var(--muted); font-size: 0.9rem; margin: 0; text-align: center; width: 100%; }
body.tv-page { cursor: none; }
body.tv-page.tv-cursor { cursor: default; }

@keyframes tv-twinkle {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.95; }
}
@keyframes tv-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-3%, 4%, 0); }
}
@keyframes tv-pan {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-6%, 0, 0); }
}
@keyframes tv-text-drift {
  0%, 100% { translate: 0 0; }
  33% { translate: 1.6% 1.2%; }
  66% { translate: -1.2% 0.8%; }
}

@media (prefers-reduced-motion: reduce) {
  .tv-stars, .tv-moon, .tv-forest, .tv-stage { animation: none; }
  .tv-stage { transition-duration: 0.01s; }
}

@media (width <= 720px) {
  .feature-grid, .vision-grid { grid-template-columns: 1fr; }
  .tarot-revealed { grid-template-columns: 1fr; }
  .tv-moon { width: 9rem; height: 9rem; top: 6%; right: 4%; }
  .tv-stage { margin: 8vh auto 0; width: min(100% - 2rem, 42rem); }
  .tv-title { font-size: clamp(2rem, 9vw, 3rem); }
}

/* ===== Sections, top nav, and mobile tab bar ===== */
.header-settings {
  display: none;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.header-settings:hover, .header-settings[aria-current="page"] { color: var(--ink); }
.tab-nav { display: none; }

.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.8rem 0 0.6rem;
}
.hub-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 11rem;
  padding: 1.25rem 1.3rem 1.15rem;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  text-decoration: none;
}
.hub-card:hover { border-color: #7faf93aa; color: var(--ink); }
.hub-card strong {
  font-family: Fraunces Variable, Georgia, serif;
  font-size: 1.55rem;
  font-weight: 560;
}
.hub-card span { color: var(--muted); font-size: 1rem; margin-top: 0.55rem; line-height: 1.4; }

.coming-later {
  margin-top: 2.4rem;
  padding: 1.1rem 1.2rem;
  border-radius: 1.1rem;
  border: 1px dashed var(--line);
  color: var(--muted);
}
.coming-later h2 { margin-top: 0; font-size: 1.2rem; }

.astro-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0 1.2rem;
}
.astro-tabs a, .astro-tabs button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  min-height: 2.6rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
}
.astro-tabs .is-on, .astro-tabs [aria-selected="true"] {
  color: var(--ink);
  border-color: #7faf93aa;
  background: #7faf9318;
}

.toggle-nested { margin-left: 1.4rem; }
.settings-screensaver { margin-top: 2.2rem; }

.theme-picker {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin: 1rem 0 0.8rem;
}
.theme-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  min-height: 4.2rem;
}
.theme-card:hover { border-color: #7faf93aa; }
.theme-card.is-selected {
  border-color: #7faf93cc;
  box-shadow: 0 0 0 1px #7faf9366;
}
.theme-card-copy { display: flex; flex-direction: column; gap: 0.15rem; }
.theme-card-copy strong { font-size: 1.02rem; }
.theme-card-copy small { color: var(--muted); font-size: 0.88rem; }
.theme-cycle {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0.7rem 0;
  color: var(--ink);
}
.theme-cycle input { margin-top: 0.3rem; }
.theme-music-note { margin-top: 0.2rem; }

.theme-swatch {
  width: 4.4rem;
  height: 3.2rem;
  border-radius: 0.65rem;
  flex: none;
  position: relative;
  overflow: hidden;
  display: block;
}
.theme-swatch-juniper { background: radial-gradient(ellipse at 80% 20%, #e8eef6aa, transparent 40%), linear-gradient(#152033, #0a1a14); }
.theme-swatch-juniper::after { content: ""; position: absolute; right: 0.45rem; top: 0.35rem; width: 0.85rem; height: 0.85rem; border-radius: 50%; background: #e8eef6; box-shadow: -0.22rem -0.08rem 0 0 #152033; }
.theme-swatch-rain { background: linear-gradient(180deg, #121820, #0c1612 70%); }
.theme-swatch-rain::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(20deg, transparent 0 6px, #bcd4ea33 7px, transparent 8px); }
.theme-swatch-ocean { background: linear-gradient(180deg, #2a1c38 0%, #c47a5a 42%, #163044 78%, #0a1a28 100%); }
.theme-swatch-lake { background: linear-gradient(180deg, #0b1220 0%, #1a2438 45%, #152a38 70%, #0c1c22 100%); }
.theme-swatch-lake::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(#0a1620, #143044); clip-path: polygon(0 40%, 18% 18%, 32% 34%, 48% 8%, 64% 28%, 82% 4%, 100% 30%, 100% 100%, 0 100%); }
.theme-swatch-snow { background: linear-gradient(180deg, #101624, #1a140e 80%); }
.theme-swatch-snow::after { content: ""; position: absolute; inset: 0; background: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1.4px 1.4px at 70% 40%, #fff, transparent), radial-gradient(1px 1px at 40% 70%, #fff8, transparent), radial-gradient(ellipse at 20% 100%, #c47a5a66, transparent 50%); }
.theme-swatch-positivity { background: linear-gradient(180deg, #f3c98a 0%, #f7e3c0 28%, #8ec6e8 58%, #b7d994 100%); }
.theme-swatch-positivity::after { content: ""; position: absolute; left: 0.45rem; top: 0.35rem; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: #ffe29a; box-shadow: 0 0 8px #ffd27a; }

html[data-session="on"] .site-header,
html[data-session="on"] .site-footer,
html[data-session="on"] .tab-nav,
html[data-session="on"] #meditate-guide,
html[data-session="on"] .skip,
html[data-session="on"] .header-settings {
  display: none !important;
}

body.tv-running .site-header,
body.tv-running .tab-nav,
body.tv-running .site-footer,
body.tv-running .tv-start,
body.tv-running .skip,
body.tv-running .header-settings,
html.tv-running .site-header,
html.tv-running .tab-nav {
  display: none !important;
}
body.tv-running { overflow: hidden; background: #070b14; }
body.tv-running::before { opacity: 0.2; }
body.tv-running main { margin: 0; padding: 0; width: auto; max-width: none; }

/* Theme layers (hidden unless the active theme opts in) */
.tv-layer,
.tv-sun,
.tv-rain,
.tv-mist,
.tv-waves,
.tv-shore,
.tv-mountains,
.tv-lake,
.tv-snow,
.tv-glow,
.tv-meadow,
.tv-flowers,
.tv-water,
.tv-sparkle,
.tv-moon-label,
#tv-fireflies,
#tv-shooting-star,
#tv-breathe {
  display: none;
  position: absolute;
  pointer-events: none;
}
.tv-shell .tv-stars,
.tv-shell .tv-moon,
.tv-shell .tv-forest { display: none; }

.tv-shell[data-theme="juniper"] .tv-stars,
.tv-shell[data-theme="juniper"] .tv-moon,
.tv-shell[data-theme="juniper"] .tv-forest,
.tv-shell[data-theme="juniper"] .tv-moon-label,
.tv-shell[data-theme="juniper"] #tv-fireflies,
.tv-shell[data-theme="juniper"] #tv-shooting-star,
.tv-shell[data-theme="juniper"] #tv-breathe { display: block; }

.tv-shell[data-theme="rain"] { background: linear-gradient(180deg, #0c1118 0%, #141c22 40%, #0c1612 100%); }
.tv-shell[data-theme="rain"] .tv-stars { display: block; opacity: 0.25; }
.tv-shell[data-theme="rain"] .tv-forest { display: block; filter: brightness(0.75); }
.tv-shell[data-theme="rain"] .tv-rain,
.tv-shell[data-theme="rain"] .tv-mist { display: block; }

.tv-shell[data-theme="ocean"] {
  background:
    linear-gradient(180deg, #1c1430 0%, #6a3a58 22%, #c47a5a 38%, #6a4a62 52%, #163044 72%, #0a1a28 100%);
}
.tv-shell[data-theme="ocean"] .tv-stars { display: block; opacity: 0.35; }
.tv-shell[data-theme="ocean"] .tv-sun,
.tv-shell[data-theme="ocean"] .tv-waves,
.tv-shell[data-theme="ocean"] .tv-shore { display: block; }

.tv-shell[data-theme="lake"] {
  background:
    radial-gradient(ellipse 50% 40% at 80% 8%, rgba(220,230,242,0.16), transparent 55%),
    linear-gradient(180deg, #0a1020 0%, #141c30 48%, #102028 72%, #0b1820 100%);
}
.tv-shell[data-theme="lake"] .tv-stars,
.tv-shell[data-theme="lake"] .tv-moon,
.tv-shell[data-theme="lake"] .tv-moon-label,
.tv-shell[data-theme="lake"] .tv-mountains,
.tv-shell[data-theme="lake"] .tv-lake { display: block; }

.tv-shell[data-theme="snow"] {
  background:
    radial-gradient(ellipse 40% 30% at 18% 100%, rgba(196,122,90,0.28), transparent 60%),
    linear-gradient(180deg, #0c1018 0%, #16141c 60%, #1a140e 100%);
}
.tv-shell[data-theme="snow"] .tv-stars { display: block; opacity: 0.4; }
.tv-shell[data-theme="snow"] .tv-forest { display: block; filter: brightness(0.9) saturate(0.7); }
.tv-shell[data-theme="snow"] .tv-snow,
.tv-shell[data-theme="snow"] .tv-glow { display: block; }

.tv-shell[data-theme="positivity"] {
  background:
    radial-gradient(ellipse 50% 40% at 16% 18%, rgba(255,226,150,0.55), transparent 55%),
    linear-gradient(180deg, #f4c078 0%, #f8e2b8 24%, #a9d3ee 52%, #8fca7e 78%, #6fa05c 100%);
}
.tv-shell[data-theme="positivity"] .tv-sun,
.tv-shell[data-theme="positivity"] .tv-meadow,
.tv-shell[data-theme="positivity"] .tv-flowers,
.tv-shell[data-theme="positivity"] .tv-water,
.tv-shell[data-theme="positivity"] .tv-sparkle { display: block; }
.tv-shell[data-theme="positivity"] .tv-title,
.tv-shell[data-theme="positivity"] .tv-kicker { color: #2a2618; text-shadow: 0 2px 16px rgba(255,248,230,0.55); }
.tv-shell[data-theme="positivity"] .tv-body,
.tv-shell[data-theme="positivity"] .tv-credit { color: #3a3424; }

.tv-shell { transition: opacity 2.8s ease; }
.tv-shell.is-theme-fade { opacity: 0.14; }

/* Real moon disc: a pale sphere with a same-size shade that slides by phase */
.tv-moon {
  width: 18rem;
  height: 18rem;
  right: 8%;
  top: 12%;
  border-radius: 50%;
  overflow: hidden;
  background: #0b1220;
  box-shadow: 0 0 80px rgba(232,238,246,0.28);
  animation: tv-drift 160s ease-in-out infinite;
}
.tv-moon-core,
.tv-moon-shade {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.tv-moon-core { background: #e8eef6; }
.tv-moon-shade {
  background: #0b1220;
  transform: translateX(-100%);
  width: 100%;
  height: 100%;
}
.tv-moon-label {
  right: 8%;
  top: calc(12% + 19rem);
  width: 18rem;
  text-align: center;
  margin: 0;
  color: #d5deea;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  z-index: 2;
  text-shadow: 0 2px 12px #000c;
}

.tv-rain {
  inset: -30% 0;
  background-image:
    repeating-linear-gradient(18deg, transparent 0 16px, rgba(190,210,230,0.14) 17px, transparent 19px, transparent 36px),
    repeating-linear-gradient(22deg, transparent 0 22px, rgba(190,210,230,0.08) 23px, transparent 25px, transparent 50px);
  animation: tv-rain-fall 2.6s linear infinite;
  opacity: 0.55;
  z-index: 2;
}
.tv-rain-b {
  animation-duration: 3.8s;
  animation-direction: reverse;
  opacity: 0.35;
}
.tv-mist {
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(160,180,190,0.16) 40%, rgba(120,140,150,0.2));
  animation: tv-mist 28s ease-in-out infinite;
  z-index: 2;
}

.tv-sun {
  width: 10rem;
  height: 10rem;
  left: 10%;
  top: 14%;
  border-radius: 50%;
  background: #ffd4a0;
  box-shadow: 0 0 80px 20px rgba(255,180,100,0.35);
  animation: tv-sun-glow 22s ease-in-out infinite;
}
.tv-shell[data-theme="positivity"] .tv-sun {
  width: 9rem;
  height: 9rem;
  left: 8%;
  top: 10%;
  background: #ffe29a;
  box-shadow: 0 0 90px 28px rgba(255,210,120,0.45);
}

.tv-waves { inset: auto 0 0 0; height: 46%; z-index: 1; overflow: hidden; }
.tv-wave {
  position: absolute;
  left: -20%;
  width: 140%;
  height: 60%;
  border-radius: 50% 50% 0 0;
  background: rgba(12, 36, 54, 0.55);
  animation: tv-wave 32s ease-in-out infinite;
}
.tv-wave:nth-child(1) { bottom: 18%; background: rgba(30, 70, 92, 0.5); animation-duration: 36s; }
.tv-wave:nth-child(2) { bottom: 8%; background: rgba(16, 48, 68, 0.62); animation-duration: 28s; animation-delay: -8s; }
.tv-wave:nth-child(3) { bottom: -4%; background: rgba(8, 28, 42, 0.85); animation-duration: 40s; animation-delay: -14s; }
.tv-shore {
  inset: auto 0 0 0;
  height: 10%;
  background: linear-gradient(180deg, transparent, #1a1810 30%, #16140e);
  z-index: 2;
}

.tv-mountains {
  inset: auto 0 28% 0;
  height: 42%;
  background:
    linear-gradient(#0000 0%, #0000 100%),
    linear-gradient(to top, #101820, #101820);
  clip-path: polygon(0 100%, 0 52%, 10% 40%, 18% 58%, 28% 22%, 36% 46%, 48% 10%, 58% 38%, 70% 16%, 82% 48%, 92% 30%, 100% 50%, 100% 100%);
  background: linear-gradient(180deg, #2a3348 0%, #121820 80%);
  z-index: 1;
}
.tv-lake {
  inset: auto 0 0 0;
  height: 34%;
  background:
    linear-gradient(180deg, rgba(180,200,220,0.12), rgba(10,20,28,0.4) 18%, #0c1822 100%);
  animation: tv-lake 40s ease-in-out infinite;
  z-index: 1;
}
.tv-lake::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 30%;
  top: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(232,238,246,0.16), transparent);
  filter: blur(8px);
  animation: tv-lake 40s ease-in-out infinite reverse;
}

.tv-snow {
  inset: -10% 0;
  z-index: 3;
  background-image:
    radial-gradient(2px 2px at 8% 12%, #fff, transparent),
    radial-gradient(3px 3px at 22% 28%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 36% 8%, #fff, transparent),
    radial-gradient(2.4px 2.4px at 54% 22%, #fff, transparent),
    radial-gradient(1.8px 1.8px at 70% 14%, #fff, transparent),
    radial-gradient(3px 3px at 86% 30%, #fff, transparent),
    radial-gradient(2px 2px at 12% 48%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 30% 62%, #fff, transparent),
    radial-gradient(2.6px 2.6px at 48% 44%, #fff, transparent),
    radial-gradient(1.8px 1.8px at 66% 70%, #fff, transparent),
    radial-gradient(3px 3px at 82% 52%, #fff, transparent),
    radial-gradient(2px 2px at 94% 66%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 18% 84%, #fff, transparent),
    radial-gradient(2.2px 2.2px at 40% 90%, #fff, transparent),
    radial-gradient(3px 3px at 60% 80%, #fff, transparent),
    radial-gradient(1.8px 1.8px at 78% 92%, #fff, transparent);
  background-size: 140% 220%;
  animation: tv-snow 36s linear infinite;
  opacity: 0.8;
}
.tv-glow {
  left: 4%;
  bottom: 0;
  width: 28%;
  height: 36%;
  background: radial-gradient(ellipse at 30% 80%, rgba(220,140,70,0.32), transparent 65%);
  animation: tv-sun-glow 26s ease-in-out infinite;
  z-index: 2;
}

.tv-meadow {
  inset: auto 0 0 0;
  height: 58%;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 50% at 20% 100%, #5f9a4c 0%, transparent 60%),
    radial-gradient(ellipse 70% 55% at 70% 110%, #4e8a42 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 100%, #6eaa55 0%, transparent 60%),
    linear-gradient(180deg, transparent 0%, #7cb86a 28%, #5a9a4a 100%);
}
.tv-flowers {
  inset: auto 0 0 0;
  height: 48%;
  z-index: 2;
  background-image:
    radial-gradient(circle at 8% 70%, #f4a5c0 0 5px, transparent 6px),
    radial-gradient(circle at 14% 82%, #f0d56a 0 4px, transparent 5px),
    radial-gradient(circle at 22% 64%, #d98ae0 0 5px, transparent 6px),
    radial-gradient(circle at 30% 86%, #f28b8b 0 4px, transparent 5px),
    radial-gradient(circle at 38% 72%, #f0d56a 0 5px, transparent 6px),
    radial-gradient(circle at 48% 88%, #f4a5c0 0 4px, transparent 5px),
    radial-gradient(circle at 58% 68%, #9ad0f0 0 5px, transparent 6px),
    radial-gradient(circle at 66% 84%, #d98ae0 0 4px, transparent 5px),
    radial-gradient(circle at 74% 74%, #f28b8b 0 5px, transparent 6px),
    radial-gradient(circle at 82% 90%, #f0d56a 0 4px, transparent 5px),
    radial-gradient(circle at 90% 70%, #f4a5c0 0 5px, transparent 6px),
    radial-gradient(circle at 18% 92%, #9ad0f0 0 4px, transparent 5px);
  animation: tv-flowers 30s ease-in-out infinite;
}
.tv-water {
  inset: auto 8% 10% 18%;
  height: 16%;
  z-index: 2;
  border-radius: 40% 40% 40% 40% / 30% 30% 50% 50%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.35), rgba(120,180,210,0.55) 30%, rgba(70,140,180,0.7));
  box-shadow: 0 8px 20px rgba(40,80,60,0.15) inset;
  animation: tv-lake 28s ease-in-out infinite;
}
.tv-sparkle {
  inset: auto 10% 12% 20%;
  height: 12%;
  z-index: 3;
  background-image:
    radial-gradient(2px 2px at 20% 40%, #fff, transparent),
    radial-gradient(2px 2px at 48% 60%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 72% 30%, #fff, transparent),
    radial-gradient(2px 2px at 88% 70%, #fff, transparent);
  animation: tv-sparkle 10s ease-in-out infinite;
  opacity: 0.55;
}

#tv-fireflies { inset: 0; z-index: 3; }
.tv-firefly {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e8f6a8;
  box-shadow: 0 0 10px 4px rgba(210, 230, 110, 0.45);
  opacity: 0.15;
  animation: tv-firefly 12s ease-in-out infinite;
}
.tv-firefly:nth-child(1) { left: 12%; top: 58%; animation-duration: 13s; animation-delay: -2s; }
.tv-firefly:nth-child(2) { left: 22%; top: 70%; animation-duration: 15s; animation-delay: -6s; }
.tv-firefly:nth-child(3) { left: 34%; top: 62%; animation-duration: 11s; animation-delay: -4s; }
.tv-firefly:nth-child(4) { left: 46%; top: 76%; animation-duration: 16s; animation-delay: -8s; }
.tv-firefly:nth-child(5) { left: 58%; top: 66%; animation-duration: 14s; animation-delay: -1s; }
.tv-firefly:nth-child(6) { left: 70%; top: 78%; animation-duration: 12s; animation-delay: -9s; }
.tv-firefly:nth-child(7) { left: 82%; top: 60%; animation-duration: 15s; animation-delay: -3s; }
.tv-firefly:nth-child(8) { left: 18%; top: 48%; animation-duration: 17s; animation-delay: -7s; }
.tv-firefly:nth-child(9) { left: 63%; top: 52%; animation-duration: 13s; animation-delay: -5s; }
.tv-firefly:nth-child(10) { left: 88%; top: 72%; animation-duration: 16s; animation-delay: -11s; }
.tv-firefly:nth-child(11) { left: 8%; top: 80%; animation-duration: 14s; animation-delay: -10s; }
.tv-firefly:nth-child(12) { left: 40%; top: 54%; animation-duration: 18s; animation-delay: -12s; }

#tv-shooting-star {
  z-index: 3;
  top: 12%;
  left: -10%;
  width: 8rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff8, #fff);
  opacity: 0;
  transform: rotate(-18deg);
  filter: blur(0.3px);
}
#tv-shooting-star.is-fly { animation: tv-meteor 4.6s ease-in forwards; }

#tv-breathe {
  right: 7%;
  top: 38%;
  width: 16rem;
  height: 16rem;
  z-index: 2;
  display: none;
}
.tv-shell[data-theme="juniper"] #tv-breathe { display: block; }
#tv-breathe[hidden] { display: none !important; }
.tv-breathe-circle {
  width: 12rem;
  height: 12rem;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid rgba(232, 238, 246, 0.28);
  background: radial-gradient(circle, rgba(232,238,246,0.16), rgba(232,238,246,0.02) 70%);
  box-shadow: 0 0 40px rgba(232,238,246,0.12);
  animation: tv-breathe 10s ease-in-out infinite;
  transform-origin: center;
}
.tv-breathe-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #e8eef6;
  text-shadow: 0 2px 12px #000a;
}
.tv-breathe-copy strong {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.8;
}
.tv-breathe-copy span {
  font-family: Fraunces Variable, Georgia, serif;
  font-size: 1.6rem;
  margin-top: 0.15rem;
  transition: opacity 0.6s ease;
}
.tv-breathe-copy span.is-swap { opacity: 0; }

.tv-credit {
  color: #b7c2d0;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  margin: 0.8rem 0 0;
}

@keyframes tv-rain-fall {
  from { transform: translateY(-8%); }
  to { transform: translateY(8%); }
}
@keyframes tv-mist {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.85; }
}
@keyframes tv-sun-glow {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 1; }
}
@keyframes tv-wave {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-6%); }
}
@keyframes tv-lake {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}
@keyframes tv-snow {
  from { background-position: 0 0; }
  to { background-position: 12% 100%; }
}
@keyframes tv-flowers {
  0%, 100% { opacity: 0.9; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}
@keyframes tv-sparkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.7; }
}
@keyframes tv-firefly {
  0%, 100% { opacity: 0.08; transform: translate3d(0, 0, 0); }
  35% { opacity: 0.7; transform: translate3d(12px, -18px, 0); }
  70% { opacity: 0.2; transform: translate3d(-10px, 8px, 0); }
}
@keyframes tv-meteor {
  0% { opacity: 0; transform: rotate(-18deg) translate3d(0, 0, 0); }
  12% { opacity: 0.75; }
  100% { opacity: 0; transform: rotate(-18deg) translate3d(70vw, 22vh, 0); }
}
@keyframes tv-breathe {
  0%, 100% { transform: scale(0.72); opacity: 0.4; }
  40% { transform: scale(1); opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  .tv-rain, .tv-mist, .tv-sun, .tv-wave, .tv-lake, .tv-snow, .tv-glow,
  .tv-flowers, .tv-sparkle, .tv-firefly, .tv-breathe-circle, #tv-shooting-star {
    animation: none !important;
  }
  .tv-breathe-circle { transform: scale(0.88); opacity: 0.6; }
}

@media (width <= 720px) {
  .hub-grid { grid-template-columns: 1fr; }
  .theme-picker-compact { grid-template-columns: 1fr; }
  .site-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .site-nav { display: none; }
  .header-settings { display: inline-flex; align-items: center; }
  .tab-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 8;
    background: #0b1220ee;
    border-top: 1px solid var(--line);
    justify-content: space-around;
    align-items: stretch;
    gap: 0;
    padding: 0.25rem 0.2rem max(0.4rem, env(safe-area-inset-bottom));
    backdrop-filter: blur(10px);
  }
  .tab-nav a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.68rem;
    line-height: 1.15;
    min-height: 3.15rem;
    padding: 0.3rem 0.15rem;
  }
  .tab-nav a[aria-current="page"] { color: var(--ink); }
  .tab-nav a span { max-width: 4.8rem; }
  body { padding-bottom: 4.8rem; }
  #tv-breathe { right: 4%; top: auto; bottom: 18%; width: 9rem; height: 9rem; }
  .tv-breathe-circle { width: 7rem; height: 7rem; }
  .tv-breathe-copy span { font-size: 1.15rem; }
  .tv-moon { width: 9rem; height: 9rem; }
  .tv-moon-label { width: 9rem; top: calc(6% + 10rem); right: 4%; }
  .tv-shell[data-theme="positivity"] .tv-title { color: #2a2618; }
}

@media (width >= 721px) {
  .theme-picker { grid-template-columns: 1fr 1fr; }
}

.theme-swatch-astrology { background: radial-gradient(circle at 50% 50%, #3a2a68 0%, #0b1020 70%); }
.theme-swatch-astrology::after { content: ""; position: absolute; inset: 0.35rem; border: 1px solid #c9b6ff88; border-radius: 50%; box-shadow: 0 0 0 4px #c9b6ff22; }
.theme-swatch-soundbath { background: linear-gradient(135deg, #c9b6ff 0%, #7ec8c3 50%, #e6c37a 100%); }
.theme-swatch-soundbath::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1.4rem; height: 1.4rem; border: 1px solid #fff8; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 5px #fff3; }

.tv-moon-sign,
.tv-zodiac,
.tv-bath { display: none; position: absolute; pointer-events: none; }

.tv-shell[data-theme="astrology"] {
  background:
    radial-gradient(ellipse 50% 45% at 70% 40%, rgba(90, 60, 150, 0.28), transparent 60%),
    radial-gradient(ellipse 40% 35% at 20% 80%, rgba(40, 70, 140, 0.2), transparent 60%),
    linear-gradient(180deg, #070814 0%, #14102a 48%, #0b1020 100%);
}
.tv-shell[data-theme="astrology"] .tv-stars { display: block; opacity: 0.7; }
.tv-shell[data-theme="astrology"] .tv-moon,
.tv-shell[data-theme="astrology"] .tv-moon-label,
.tv-shell[data-theme="astrology"] .tv-moon-sign,
.tv-shell[data-theme="astrology"] .tv-zodiac { display: block; }
.tv-shell[data-theme="astrology"] .tv-moon {
  left: 7%;
  right: auto;
  top: 10%;
  width: 11rem;
  height: 11rem;
}
.tv-shell[data-theme="astrology"] .tv-moon-label,
.tv-shell[data-theme="astrology"] .tv-moon-sign {
  left: 7%;
  right: auto;
  width: 11rem;
  text-align: center;
  z-index: 2;
  text-shadow: 0 2px 12px #000c;
}
.tv-shell[data-theme="astrology"] .tv-moon-label { top: calc(10% + 12rem); }
.tv-shell[data-theme="astrology"] .tv-moon-sign {
  top: calc(10% + 13.6rem);
  margin: 0;
  color: #d7c9ff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.tv-zodiac {
  right: -8%;
  top: 50%;
  width: min(78vh, 72vw);
  height: min(78vh, 72vw);
  transform: translateY(-50%);
  z-index: 1;
  opacity: 0.92;
}
.tv-zodiac-svg { width: 100%; height: 100%; overflow: visible; }
.tv-zodiac-spin { transform-origin: 400px 400px; animation: tv-zodiac-spin 720s linear infinite; }
.tv-zodiac-ring { fill: none; stroke: rgba(201, 182, 255, 0.28); stroke-width: 1.2; }
.tv-zodiac-ring-inner { stroke: rgba(201, 182, 255, 0.16); }
.tv-zodiac-wedge { fill: rgba(80, 60, 140, 0.04); stroke: rgba(201, 182, 255, 0.12); stroke-width: 0.8; }
.tv-zodiac-sign.is-moon-sign .tv-zodiac-wedge { fill: rgba(201, 182, 255, 0.12); stroke: rgba(230, 220, 255, 0.4); }
.tv-zodiac-constellation line { stroke: rgba(230, 220, 255, 0.45); stroke-width: 1.2; fill: none; }
.tv-zodiac-constellation circle { fill: #f2ecff; filter: drop-shadow(0 0 3px #c9b6ff); }
.tv-zodiac-sign.is-moon-sign .tv-zodiac-constellation line { stroke: rgba(255, 244, 210, 0.7); }
.tv-zodiac-sign.is-moon-sign .tv-zodiac-constellation circle { fill: #fff6d8; filter: drop-shadow(0 0 5px #ffe29a); }
.tv-zodiac-label {
  fill: #d7c9ff;
  font-size: 16px;
  font-family: Georgia, serif;
  text-anchor: middle;
  dominant-baseline: middle;
  letter-spacing: 0.08em;
}
.tv-zodiac-sign.is-moon-sign .tv-zodiac-label { fill: #ffe9b8; }

.tv-shell[data-theme="soundbath"] {
  background: linear-gradient(160deg, #3d2a58 0%, #2a4a55 48%, #4a3a22 100%);
  animation: tv-bath-sky 64s ease-in-out infinite;
}
.tv-shell[data-theme="soundbath"] .tv-bath { display: block; inset: 0; z-index: 1; }
.tv-shell[data-theme="soundbath"] .tv-title,
.tv-shell[data-theme="soundbath"] .tv-kicker { color: #f4eefc; text-shadow: 0 2px 18px rgba(40, 20, 60, 0.45); }
.tv-shell[data-theme="soundbath"] .tv-body,
.tv-shell[data-theme="soundbath"] .tv-credit { color: #e6def0; }
.tv-bath-wash {
  inset: 0;
  position: absolute;
  background:
    radial-gradient(ellipse 50% 45% at 30% 30%, rgba(201, 182, 255, 0.28), transparent 60%),
    radial-gradient(ellipse 45% 40% at 75% 70%, rgba(126, 200, 195, 0.22), transparent 60%),
    radial-gradient(ellipse 35% 30% at 50% 90%, rgba(230, 195, 122, 0.18), transparent 60%);
  animation: tv-bath-wash 48s ease-in-out infinite;
}
.tv-ripples { inset: 0; position: absolute; }
.tv-ripples span {
  position: absolute;
  left: 50%;
  top: 52%;
  border: 1.5px solid rgba(244, 226, 179, 0.4);
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  transform: translate(-50%, -50%);
  animation: tv-ripple 16s ease-out infinite;
  opacity: 0;
}
.tv-ripples span:nth-child(2) { animation-delay: -4s; border-color: rgba(201, 182, 255, 0.4); }
.tv-ripples span:nth-child(3) { animation-delay: -8s; border-color: rgba(126, 200, 195, 0.4); }
.tv-ripples span:nth-child(4) { animation-delay: -12s; border-color: rgba(244, 226, 179, 0.28); }
.tv-bowls-svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 58%;
  overflow: visible;
}
.tv-bowl-main { transform-origin: 400px 300px; animation: tv-bowl-glow 18s ease-in-out infinite; }
.tv-crystal-a { animation: tv-crystal-float 28s ease-in-out infinite; }
.tv-crystal-b { animation: tv-crystal-float 34s ease-in-out infinite reverse; }
.tv-crystal-c { animation: tv-crystal-float 40s ease-in-out infinite 4s; }

@keyframes tv-zodiac-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes tv-bath-sky {
  0%, 100% { filter: saturate(1); }
  40% { filter: saturate(1.08) hue-rotate(-8deg); }
  70% { filter: saturate(1.05) hue-rotate(6deg); }
}
@keyframes tv-bath-wash {
  0%, 100% { opacity: 0.85; transform: translate3d(0, 0, 0); }
  50% { opacity: 1; transform: translate3d(1.5%, -1%, 0); }
}
@keyframes tv-ripple {
  0% { width: 5rem; height: 5rem; opacity: 0.45; }
  70% { opacity: 0.18; }
  100% { width: 72vmin; height: 72vmin; opacity: 0; }
}
@keyframes tv-bowl-glow {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}
@keyframes tv-crystal-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .tv-zodiac-spin, .tv-bath-wash, .tv-ripples span, .tv-bowl-main, .tv-crystal-a, .tv-crystal-b, .tv-crystal-c,
  .tv-shell[data-theme="soundbath"] { animation: none !important; filter: none !important; }
}

@media (width <= 720px) {
  .tv-zodiac { right: -28%; width: 70vw; height: 70vw; top: 62%; }
  .tv-shell[data-theme="astrology"] .tv-moon { width: 7.5rem; height: 7.5rem; }
  .tv-shell[data-theme="astrology"] .tv-moon-label,
  .tv-shell[data-theme="astrology"] .tv-moon-sign { width: 7.5rem; }
  .tv-shell[data-theme="astrology"] .tv-moon-label { top: calc(10% + 8.4rem); }
  .tv-shell[data-theme="astrology"] .tv-moon-sign { top: calc(10% + 9.8rem); }
}
