/* ============================================================
   Starbound — page components
   ============================================================ */

/* ---------- Art slot backgrounds (fallback = gradients) ---------- */

.hero-art, .feature-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--art, none);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.hero-art.art-loaded { opacity: 0.55; }
.feature-art.art-loaded { opacity: 0.22; }
.hero-art::after, .feature-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 25%, transparent 70%, var(--bg) 100%);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.6s var(--ease);
}
.hero-video.art-loaded { opacity: 0.5; }
.hero-video:not(.art-loaded) { display: none; }
img.art:not(.art-loaded) { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 32px) 0 72px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.hero-copy h1 { margin-bottom: 26px; }
.hero-copy .lede { margin-bottom: 34px; }
.hero-word {
  display: inline-block;
  animation: word-in 1.4s var(--ease) 0.45s both, shimmer 8s ease-in-out 2s infinite alternate;
}
@keyframes word-in {
  from { opacity: 0; transform: translateY(0.25em) scale(0.92); filter: blur(14px); letter-spacing: 0.08em; }
  to { opacity: 1; transform: none; filter: none; letter-spacing: -0.02em; }
}
.hero-ctas { gap: 14px; }
.hero-meta { margin-top: 28px; gap: 14px; font-size: 14.5px; }
.hero-meta .chip { gap: 8px; }
.hero-meta .chip .moon-svg { display: inline-block; }

.hero-visual { position: relative; }
.orrery {
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1;
  margin: 0 auto;
  cursor: grab;
  touch-action: pan-y;
  animation: float 9s ease-in-out infinite;
  filter: drop-shadow(0 30px 80px rgba(139, 124, 255, 0.25));
}
.orrery.dragging { cursor: grabbing; }
.orrery svg { width: 100%; height: 100%; overflow: visible; }
.o-sign { font-family: var(--font-glyph); font-size: 15px; opacity: 0.85; }
.o-label { font-family: var(--font-glyph); font-size: 11px; fill: rgba(255, 255, 255, 0.55); }
.o-halo { animation: halo 4s ease-in-out infinite; transform-origin: 0 0; }
@keyframes halo { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.18); opacity: 1; } }
.o-zodiac { animation: spin-slow 400s linear infinite; transform-origin: 0 0; }
.orrery-ui {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 520px;
  margin: 8px auto 0;
}
.orrery-date { font-size: 13.5px; color: var(--ink-2); }
.orrery-btn { cursor: pointer; transition: background 0.25s, border-color 0.25s; }
.orrery-btn:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--line-2); }
.orrery-hint { text-align: center; font-size: 12px; color: var(--faint); margin: 10px 0 0; letter-spacing: 0.08em; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 26px; height: 42px;
  margin-left: -13px;
  border-radius: 14px;
  border: 1.5px solid var(--line-2);
}
.scroll-cue span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 900px) {
  .hero { padding-top: calc(var(--nav-h) + 20px); text-align: center; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .hero-ctas, .hero-meta { justify-content: center; }
  .hero-visual { order: -1; max-width: 440px; margin: 0 auto; width: 100%; }
  .scroll-cue { display: none; }
}
@media (max-width: 520px) {
  .hero-ctas .btn { width: 100%; }
}

/* ---------- Features ---------- */

.feature { overflow: hidden; }

.wheel-stage { position: relative; }
.wheel-holder { width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 1; }
.wheel-caption { text-align: center; color: var(--muted); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 12px; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  padding: 16px;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat span { font-size: 13.5px; color: var(--muted); }

.globe-stage { position: relative; width: 100%; max-width: 560px; margin: 0 auto; }
#globe { width: 100%; aspect-ratio: 1; cursor: grab; touch-action: pan-y; }
#globe:active { cursor: grabbing; }
.globe-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-2);
}
.globe-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.globe-legend .lg i { width: 14px; height: 3px; border-radius: 2px; box-shadow: 0 0 8px currentColor; }

/* ---------- Chart wheel ---------- */

.wheel { width: 100%; height: 100%; overflow: visible; }
.wheel .w-sign { font-family: var(--font-glyph); font-size: 21px; }
.wheel .w-glyph { font-family: var(--font-glyph); font-size: 21px; pointer-events: none; }
.wheel .w-deg { font-family: var(--font-mono); font-size: 10.5px; fill: rgba(255, 255, 255, 0.6); pointer-events: none; }
.wheel .w-house { font-family: var(--font-mono); font-size: 10.5px; fill: rgba(255, 255, 255, 0.35); }
.wheel .w-angle { font-family: var(--font-mono); font-size: 12px; font-weight: 600; fill: var(--cream); letter-spacing: 0.06em; }
.wheel .w-halo { opacity: 0.12; transition: opacity 0.3s, r 0.3s; }
.wheel .w-planet { cursor: pointer; outline: none; }
.wheel .w-planet:hover .w-halo, .wheel .w-planet.on .w-halo, .wheel .w-planet:focus-visible .w-halo { opacity: 0.35; }
.wheel .w-aspect { transition: opacity 0.3s, stroke-width 0.3s; }
.wheel.focus .w-aspect { opacity: 0.08; }
.wheel.focus .w-aspect.on { opacity: 1; stroke-width: 2.2; }
.wheel.is-spin .w-spin { animation: spin-slow 240s linear infinite; transform-origin: 300px 300px; }
.wheel.is-anim .w-zodiac { animation: wheel-in 1.6s var(--ease) both; transform-origin: 300px 300px; }
.wheel.is-anim .w-houses { animation: fade-in 1s var(--ease) 0.5s both; }
.wheel.is-anim .w-planet { animation: planet-in 0.9s var(--ease-spring) both; animation-delay: var(--d); transform-origin: 300px 300px; }
.wheel.is-anim .w-aspect[style] { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw-line 1s var(--ease) forwards; animation-delay: var(--d); }
.wheel.is-anim .w-core-star { animation: core-in 1.2s var(--ease-spring) 0.3s both; transform-origin: 300px 300px; }
@keyframes wheel-in { from { transform: rotate(-120deg) scale(0.8); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes planet-in { from { opacity: 0; transform: scale(0.6) rotate(-30deg); } to { opacity: 1; transform: none; } }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes core-in { from { transform: scale(0) rotate(-180deg); } to { transform: none; } }

/* ---------- Quick match ---------- */

.quick-match {
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
  overflow: hidden;
}
.qm-orbs { position: relative; width: 160px; height: 70px; }
.qm-orbs .orb {
  position: absolute;
  top: 50%;
  width: 56px; height: 56px;
  margin-top: -28px;
  border-radius: 50%;
  filter: blur(0.5px);
  transition: transform 1.2s var(--ease-spring), box-shadow 1s;
}
.qm-orbs .orb.a { left: 0; background: radial-gradient(circle at 35% 35%, #fff4cf, #ffc978 40%, #ff6fb5); box-shadow: 0 0 40px rgba(255, 111, 181, 0.6); animation: bob 3s ease-in-out infinite; }
.qm-orbs .orb.b { right: 0; background: radial-gradient(circle at 35% 35%, #e9faff, #6ee7f9 40%, #8b7cff); box-shadow: 0 0 40px rgba(110, 231, 249, 0.6); animation: bob 3s ease-in-out 1.5s infinite; }
@keyframes bob { 0%, 100% { translate: 0 -6px; } 50% { translate: 0 6px; } }
.quick-match.merged .orb.a { transform: translateX(42px) scale(1.1); }
.quick-match.merged .orb.b { transform: translateX(-42px) scale(1.1); box-shadow: 0 0 80px rgba(255, 111, 181, 0.9); }
.qm-fields { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: end; width: 100%; max-width: 620px; text-align: left; }
.qm-amp { font-family: var(--font-display); font-style: italic; font-size: 34px; color: var(--gold); padding-bottom: 6px; }
@media (max-width: 560px) { .qm-fields { grid-template-columns: 1fr; } .qm-amp { text-align: center; padding: 0; } }
.qm-result { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; text-align: left; }
.qm-result:empty { display: none; }
@media (max-width: 620px) { .qm-result { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.qm-score { position: relative; width: 170px; height: 170px; }
.qm-score .ring { width: 100%; height: 100%; }
.qm-score .ring-fill { transition: stroke-dashoffset 1.6s var(--ease); filter: drop-shadow(0 0 8px rgba(255, 111, 181, 0.6)); }
.ring-num { position: absolute; inset: 0; display: grid; place-content: center; grid-auto-flow: column; align-items: baseline; }
.ring-num b { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-size: 56px; font-weight: 500; line-height: 1; }
.ring-num span { font-size: 20px; color: var(--muted); }
.qm-text { display: grid; gap: 8px; width: 100%; }

/* ---------- Phones ---------- */

.phones { position: relative; height: 620px; }
.phone {
  position: absolute;
  width: 250px;
  height: 520px;
  border-radius: 42px;
  padding: 10px;
  background: linear-gradient(160deg, #2b2357, #120d33);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.14), 0 40px 90px -20px rgba(0, 0, 0, 0.8), 0 0 60px -10px rgba(139, 124, 255, 0.4);
}
.phone .screen {
  width: 100%;
  height: 100%;
  border-radius: 33px;
  overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(139, 124, 255, 0.35), transparent 60%),
    radial-gradient(100% 50% at 100% 100%, rgba(255, 111, 181, 0.22), transparent 60%),
    #0b0824;
  font-size: 12px;
}
.phone.p1 { left: 50%; top: 40px; margin-left: -125px; z-index: 3; animation: float 7s ease-in-out infinite; }
.phone.p2 { left: 50%; top: 90px; margin-left: -310px; transform: rotate(-8deg) scale(0.88); z-index: 2; opacity: 0.92; animation: float-l 8s ease-in-out infinite; }
.phone.p3 { left: 50%; top: 90px; margin-left: 60px; transform: rotate(8deg) scale(0.88); z-index: 1; opacity: 0.92; animation: float-r 9s ease-in-out infinite; }
@keyframes float-l { 0%, 100% { transform: rotate(-8deg) scale(0.88) translateY(0); } 50% { transform: rotate(-6deg) scale(0.88) translateY(-12px); } }
@keyframes float-r { 0%, 100% { transform: rotate(8deg) scale(0.88) translateY(0); } 50% { transform: rotate(6deg) scale(0.88) translateY(-16px); } }
@media (max-width: 1100px) { .phone.p2 { margin-left: -280px; } .phone.p3 { margin-left: 30px; } }
@media (max-width: 640px) {
  .phones { height: 560px; }
  .phone.p2 { margin-left: -230px; }
  .phone.p3 { margin-left: -20px; }
}
.ph-status { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px 6px; font-weight: 700; font-size: 11px; }
.ph-island { width: 70px; height: 20px; border-radius: 12px; background: #000; }
.ph-pad { padding: 10px 16px; display: grid; gap: 10px; }
.ph-eyebrow { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lilac); }
.ph-glyph { font-size: 52px; background: linear-gradient(160deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-align: center; padding: 8px 0; }
.ph-headline { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 22px; line-height: 1.1; }
.ph-mini { padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); font-size: 11px; color: var(--ink-2); }
.ph-mini b { color: var(--mint); margin-right: 4px; }
.ph-mini.dont b { color: var(--pink); }
.ph-bars { display: grid; gap: 6px; margin-top: 4px; }
.ph-bars i { display: block; height: 6px; border-radius: 4px; background: var(--aurora); opacity: 0.85; }
.ph-map { width: 100%; height: auto; border-radius: 12px; background: rgba(255, 255, 255, 0.05); }
.ph-city { display: flex; justify-content: space-between; gap: 6px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); font-weight: 700; font-size: 11.5px; }
.ph-city small { color: var(--muted); font-weight: 500; font-size: 10px; }
.ph-pill { padding: 9px 10px; border-radius: 999px; background: var(--aurora); color: #1a0b2e; font-weight: 800; font-size: 10.5px; text-align: center; }
.ph-wheel { width: 100%; aspect-ratio: 1; }
.ph-wheel .wheel .w-sign { font-size: 30px; }
.ph-wheel .wheel .w-glyph { font-size: 30px; }
.ph-big3 { display: grid; gap: 6px; }
.ph-big3 span { padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); font-weight: 700; }

.waitlist { max-width: 520px; }
.waitlist .input { flex: 1; min-width: 220px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
  font-size: 14px;
}

/* ---------- Pricing art ---------- */
.price-card.plus.art-loaded {
  background-image:
    linear-gradient(180deg, rgba(13, 9, 40, 0.55), rgba(13, 9, 40, 0.9)),
    var(--art);
  background-size: cover;
  background-position: center;
}

/* ---------- Cast (mad-lib) ---------- */

.cast {
  background: radial-gradient(60% 60% at 50% 50%, rgba(139, 124, 255, 0.16), transparent 70%);
}
.madlib input[type="date"], .madlib input[type="time"] { min-width: 0; }
.madlib input::-webkit-calendar-picker-indicator { filter: invert(0.8) sepia(1) hue-rotate(5deg) saturate(3); cursor: pointer; opacity: 0.7; }

.sheet-cta {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  justify-items: start;
}
.sheet-cta p { margin: 0; }

/* ============================================================
   Birth form (shared)
   ============================================================ */

.birth-card {
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  gap: 22px;
  margin-bottom: 80px;
}
.bf { display: grid; gap: 18px; }
.bf-title { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 26px; }
.bf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .bf-row { grid-template-columns: 1fr; } }
.field .opt { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--faint); margin-left: 4px; }
.input:disabled { opacity: 0.4; }
.fine { font-size: 13.5px; margin: 0; }

/* ---------- Casting overlay ---------- */

.casting {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 28px;
  background: rgba(6, 4, 26, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  animation: fade-in 0.4s var(--ease);
  transition: opacity 0.5s var(--ease);
}
.casting.out { opacity: 0; }
.casting-orbit { position: relative; width: 180px; height: 180px; }
.casting-orbit i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: var(--pink);
  border-left-color: rgba(139, 124, 255, 0.6);
  animation: spin 1.4s linear infinite;
}
.casting-orbit i:nth-child(2) { inset: 24px; border-top-color: var(--gold); animation-duration: 1s; animation-direction: reverse; }
.casting-orbit i:nth-child(3) { inset: 48px; border-top-color: var(--cyan); animation-duration: 0.8s; }
.casting-orbit b {
  position: absolute;
  left: 50%; top: 50%;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  background: var(--aurora);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: twinkle 1.2s ease-in-out infinite;
}
.casting-text { font-family: var(--font-display); font-style: italic; font-size: 28px; margin: 0; }

/* ============================================================
   Chart reading
   ============================================================ */

.page-chart #reading { padding-top: calc(var(--nav-h) + 40px); }
.reading-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}
.reading-top h2 { font-size: clamp(48px, 7vw, 96px); }
.reading-top .mono { font-size: 13.5px; margin: 14px 0 0; }

.big3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .big3 { grid-template-columns: 1fr; } }
.b3 {
  --c1: var(--gold); --c2: var(--pink);
  padding: 26px;
  display: grid;
  gap: 6px;
  align-content: start;
  overflow: hidden;
  transition: transform 0.5s var(--ease);
  background:
    radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--c2) 26%, transparent), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}
.b3-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.b3-glyph {
  font-size: 84px;
  line-height: 1.1;
  background: linear-gradient(160deg, var(--c1), var(--c2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 30px color-mix(in srgb, var(--c2) 50%, transparent));
}
.b3-sign { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-size: 40px; line-height: 1; }
.b3-deg { font-size: 12.5px; color: var(--muted); }
.b3 p { color: var(--ink-2); margin: 8px 0 0; font-size: 15.5px; }
.locked-b3 .b3-glyph { -webkit-text-fill-color: var(--faint); font-family: var(--font-display); }
.locked-b3 .btn { justify-self: start; margin-top: 8px; }

.chart-main {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}
@media (max-width: 980px) { .chart-main { grid-template-columns: 1fr; } }
.wheel-card { padding: clamp(10px, 2vw, 28px); }
.placements h3 { margin-bottom: 14px; }
.ptable { display: grid; gap: 2px; }
.prow {
  display: grid;
  grid-template-columns: 28px 1fr 1.2fr auto 34px;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  font-size: 15px;
  transition: background 0.2s;
}
.prow:hover { background: rgba(255, 255, 255, 0.06); }
.prow .pg { font-size: 19px; text-align: center; }
.prow .pn { font-weight: 700; }
.prow .ps { color: var(--ink-2); white-space: nowrap; }
.prow .pd, .prow .ph { font-size: 12.5px; color: var(--muted); text-align: right; }

.interp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 980px) { .interp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .interp-grid { grid-template-columns: 1fr; } }
.interp {
  --c1: var(--gold); --c2: var(--pink);
  padding: 24px;
  background:
    radial-gradient(100% 50% at 0% 0%, color-mix(in srgb, var(--c1) 14%, transparent), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
}
.interp header { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.interp .pg {
  width: 48px; height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 24px;
}
.interp h4 { margin: 0; font-size: 18px; }
.interp h4 .sg { color: var(--c1); }
.interp .mono { font-size: 12px; }
.interp p { margin: 0 0 10px; color: var(--ink-2); font-size: 15.5px; }
.interp p.dom { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lilac); font-weight: 700; }

.aspect-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1040px) { .aspect-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .aspect-grid { grid-template-columns: 1fr; } }
.asp { padding: 20px; display: grid; gap: 6px; border-top: 2px solid var(--line-2); }
.asp.flow { border-top-color: var(--cyan); }
.asp.tension { border-top-color: var(--pink); }
.asp.fusion { border-top-color: var(--gold); }
.asp-top { display: flex; align-items: center; gap: 10px; font-size: 24px; }
.asp-glyph { font-family: var(--font-glyph); color: var(--muted); font-size: 18px; }
.asp .mono { font-size: 12px; }
.asp p { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-2); }
.asp-more { grid-column: 1 / -1; justify-self: center; }

.balance .card { height: 100%; }
.balance h3 { margin-bottom: 8px; }

.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .next-steps { grid-template-columns: 1fr; } }
.next {
  position: relative;
  padding: 26px;
  display: grid;
  gap: 6px;
  transition: transform 0.4s var(--ease-spring), border-color 0.3s;
}
.next:hover { transform: translateY(-4px); border-color: var(--line-2); }
.next .glyph { font-size: 30px; color: var(--gold); }
.next b { font-size: 19px; }
.next i { position: absolute; right: 24px; top: 24px; font-style: normal; font-size: 22px; transition: transform 0.3s var(--ease-spring); }
.next:hover i { transform: translateX(4px); }

/* ============================================================
   Today
   ============================================================ */

.moon-hero {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding: 12px 22px 12px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}
.moon-hero .moon-svg { filter: drop-shadow(0 0 18px rgba(255, 244, 207, 0.35)); }
.moon-hero b { display: block; font-size: 17px; }
.moon-hero .muted { font-size: 14px; }

.day-switch {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  margin-top: 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.day-switch button {
  border: 0;
  background: transparent;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--muted);
  transition: background 0.3s, color 0.3s;
}
.day-switch button[aria-selected="true"] { background: var(--aurora); color: #1a0b2e; }

.personal-cta { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.personal { padding: clamp(24px, 4vw, 40px); margin-bottom: 8px; }
.personal-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.personal-top .eyebrow { margin: 0; }
.personal .reading-headline { margin-top: 16px; font-size: clamp(30px, 4vw, 48px); }
.transits { display: grid; gap: 10px; }
.transits + .transits { margin-top: 10px; }
.transit {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
}
.transit p { margin: 4px 0 0; color: var(--ink-2); font-size: 15.5px; }
.tr-glyphs { display: flex; align-items: center; gap: 6px; font-size: 22px; padding-top: 2px; }
.locked .transits { min-height: 220px; }

.sign-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 4px 18px;
  margin-bottom: 18px;
  scrollbar-width: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.sign-strip::-webkit-scrollbar { display: none; }
.sign-strip button {
  flex: 1 0 auto;
  min-width: 88px;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 14px 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  transition: transform 0.35s var(--ease-spring), border-color 0.3s, background 0.3s, color 0.3s;
}
.sign-strip button .glyph { font-size: 28px; color: var(--c1); }
.sign-strip button:hover { transform: translateY(-3px); color: var(--ink); }
.sign-strip button[aria-selected="true"] {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--c1) 70%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c1) 22%, transparent), color-mix(in srgb, var(--c2) 10%, transparent));
  box-shadow: 0 14px 40px -16px var(--c2);
}

.today-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 980px) { .today-grid { grid-template-columns: 1fr; } }
.reading-card {
  --c1: var(--gold); --c2: var(--pink);
  padding: clamp(24px, 4vw, 44px);
  background:
    radial-gradient(90% 50% at 100% 0%, color-mix(in srgb, var(--c2) 20%, transparent), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02));
}
.reading-card.swap { animation: swap-in 0.7s var(--ease); }
@keyframes swap-in { from { opacity: 0; transform: translateY(16px) scale(0.99); } to { opacity: 1; transform: none; } }
.sign-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.sign-facts > div { display: grid; gap: 4px; }
.sign-facts b { font-size: 14.5px; }
@media (max-width: 620px) { .sign-facts { grid-template-columns: 1fr 1fr; } }

.sky-list { display: grid; gap: 2px; }
.sky-row {
  display: grid;
  grid-template-columns: 26px 1fr auto 18px;
  gap: 10px;
  align-items: center;
  padding: 9px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.sky-row:last-child { border-bottom: 0; }
.sky-row .glyph { font-size: 18px; text-align: center; }
.sky-row .mono { font-size: 13px; color: var(--ink-2); }
.sky-row .rx { color: var(--pink); font-weight: 700; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--pink), var(--violet), transparent); }
.timeline li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 10px 0; position: relative; }
.timeline .tl-g {
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  font-size: 15px;
  z-index: 1;
}
.timeline li > div { display: grid; gap: 2px; font-size: 15px; }
.timeline .mono { font-size: 12.5px; }

/* ============================================================
   Match
   ============================================================ */

.page-hero { position: relative; }
.match-form {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  gap: 24px;
  padding: clamp(24px, 4vw, 44px);
  margin-bottom: 80px;
}
.match-submit { grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px; text-align: center; }
.match-mid { display: grid; place-items: center; }
.mm-orbit { position: relative; width: 100px; height: 100px; }
.mm-orbit .orb {
  position: absolute;
  width: 40px; height: 40px;
  border-radius: 50%;
  top: 50%; left: 50%;
  margin: -20px 0 0 -20px;
  transition: transform 1.2s var(--ease-spring);
}
.mm-orbit .orb.a { background: radial-gradient(circle at 35% 35%, #fff4cf, #ffc978 40%, #ff6fb5); box-shadow: 0 0 30px rgba(255, 111, 181, 0.6); animation: orbit-a 4s linear infinite; }
.mm-orbit .orb.b { background: radial-gradient(circle at 35% 35%, #e9faff, #6ee7f9 40%, #8b7cff); box-shadow: 0 0 30px rgba(110, 231, 249, 0.6); animation: orbit-a 4s linear -2s infinite; }
@keyframes orbit-a { from { transform: rotate(0) translateX(32px) rotate(0); } to { transform: rotate(360deg) translateX(32px) rotate(-360deg); } }
.match-form.merged .mm-orbit .orb { animation-duration: 1.1s; }
@media (max-width: 860px) {
  .match-form { grid-template-columns: 1fr; }
  .match-mid { order: 0; }
}

.mr-hero {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(255, 111, 181, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}
.mr-names {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-size: clamp(28px, 4vw, 44px);
}
.mr-names i { color: var(--gold); font-style: italic; }
.mr-ring { position: relative; width: 220px; height: 220px; }
.mr-ring svg { width: 100%; height: 100%; }
.mr-ring .ring-fill { transition: stroke-dashoffset 1.8s var(--ease); filter: drop-shadow(0 0 10px rgba(255, 111, 181, 0.7)); }
.mr-ring .ring-num b { font-size: 76px; }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
@media (max-width: 980px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr; } }
.cat { padding: 22px; display: grid; gap: 6px; }
.cat-top { display: flex; justify-content: space-between; align-items: center; }
.cat-ico { font-size: 26px; }
.cat-num { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-size: 40px; font-weight: 500; line-height: 1; }
.cat h4 { margin: 4px 0 0; font-size: 18px; }
.cat p { margin: 0 0 6px; font-size: 14px; }

.mr-detail { align-items: start; }
.compare { display: grid; gap: 2px; }
.cmp-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.cmp-row:last-child { border-bottom: 0; }
.cmp-row > span:last-child { text-align: right; }
.cmp-row.head { font-weight: 800; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cmp-planet { display: inline-flex; flex-direction: column; align-items: center; font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.cmp-planet .glyph { font-size: 20px; }
.cmp-row small { color: var(--faint); font-size: 11px; }
.syn.flow { border-left: 3px solid var(--cyan); }
.syn.tension { border-left: 3px solid var(--pink); }
.syn.fusion { border-left: 3px solid var(--gold); }

/* ============================================================
   AstroMap
   ============================================================ */

.container-wide { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 20px; }
.page-hero.compact { padding-bottom: clamp(24px, 4vw, 40px); }

.map-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.map-who { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; }
.map-meta { font-size: 13px; margin-top: 6px; }
.mode-switch { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); }
.mode-switch button { border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; transition: background 0.3s, color 0.3s; }
.mode-switch button[aria-selected="true"] { background: rgba(255, 255, 255, 0.12); color: var(--ink); }
.notime-banner { padding: 12px 16px; margin-bottom: 14px; border-radius: 14px; background: rgba(255, 201, 120, 0.1); border: 1px solid rgba(255, 201, 120, 0.3); color: var(--cream); font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.map-card { position: relative; overflow: hidden; padding: 0; border-radius: 28px; }
#world { width: 100%; height: auto; display: block; cursor: crosshair; }
.m-sphere { fill: url(#m-ocean); stroke: rgba(255, 255, 255, 0.12); }
.m-grat { fill: none; stroke: rgba(255, 255, 255, 0.05); stroke-width: 0.6; }
.m-land { fill: rgba(185, 166, 255, 0.13); stroke: none; transition: fill 0.3s; }
.m-land:hover { fill: rgba(185, 166, 255, 0.2); }
.m-border { fill: none; stroke: rgba(225, 215, 255, 0.18); stroke-width: 0.5; }
.m-night { fill: rgba(2, 1, 12, 0.42); pointer-events: none; }
.m-twilight { fill: rgba(2, 1, 12, 0.14); pointer-events: none; }
.ln-vis { fill: none; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; animation: fade-in 0.8s var(--ease) both; }
.ln-glow { fill: none; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; opacity: 0.16; pointer-events: none; transition: opacity 0.25s, stroke-width 0.25s; }
.ln-DSC .ln-glow, .ln-IC .ln-glow { opacity: 0.08; }
.ln-DSC .ln-vis, .ln-IC .ln-vis { stroke-opacity: 0.75; }
.ln:hover .ln-glow { opacity: 0.4; stroke-width: 10; }
.ln-ASC .ln-vis { stroke-width: 2; }
.ln-MC .ln-vis { stroke-width: 2.4; }
.ln-DSC .ln-vis { stroke-width: 1.7; stroke-dasharray: 7 5; }
.ln-IC .ln-vis { stroke-width: 1.7; stroke-dasharray: 1.5 5; }
.ln-hit { fill: none; stroke: transparent; stroke-width: 14; pointer-events: stroke; cursor: pointer; }
.ln:hover .ln-vis { stroke-width: 4; }
#world.live .m-lines { opacity: 0.25; }
.m-transit .ln-vis { stroke-width: 1.6; stroke-dasharray: 2 6; opacity: 0.95; animation: dash-flow 2s linear infinite; }
.m-transit .ln-MC .ln-vis { stroke-dasharray: 10 6; stroke-width: 2.4; }
@keyframes dash-flow { to { stroke-dashoffset: -16; } }
.m-label { font-family: var(--font-glyph); font-size: 11px; font-weight: 700; paint-order: stroke; stroke: rgba(6, 4, 26, 0.85); stroke-width: 3px; pointer-events: none; }
.m-sun-halo { fill: rgba(255, 211, 138, 0.25); animation: halo 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.m-pulse { fill: none; stroke: var(--cream); stroke-width: 1.5; animation: pulse-ring 1.8s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse-ring { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.m-dot { fill: var(--cream); filter: drop-shadow(0 0 6px var(--gold)); }
.m-city { fill: var(--ink); font-size: 13px; font-weight: 800; text-anchor: middle; paint-order: stroke; stroke: rgba(6, 4, 26, 0.9); stroke-width: 4px; }
.hidden-svg, g.hidden { display: none; }
#world.hide-sun .pl-sun, #world.hide-sun .ln-sun { display: none; }
#world.hide-moon .pl-moon, #world.hide-moon .ln-moon { display: none; }
#world.hide-mercury .pl-mercury, #world.hide-mercury .ln-mercury { display: none; }
#world.hide-venus .pl-venus, #world.hide-venus .ln-venus { display: none; }
#world.hide-mars .pl-mars, #world.hide-mars .ln-mars { display: none; }
#world.hide-jupiter .pl-jupiter, #world.hide-jupiter .ln-jupiter { display: none; }
#world.hide-saturn .pl-saturn, #world.hide-saturn .ln-saturn { display: none; }
#world.hide-uranus .pl-uranus, #world.hide-uranus .ln-uranus { display: none; }
#world.hide-neptune .pl-neptune, #world.hide-neptune .ln-neptune { display: none; }
#world.hide-pluto .pl-pluto, #world.hide-pluto .ln-pluto { display: none; }
#world.hide-ASC .pl-ASC, #world.hide-ASC .ln-ASC { display: none; }
#world.hide-MC .pl-MC, #world.hide-MC .ln-MC { display: none; }
#world.hide-DSC .pl-DSC, #world.hide-DSC .ln-DSC { display: none; }
#world.hide-IC .pl-IC, #world.hide-IC .ln-IC { display: none; }

.map-tip {
  position: absolute;
  z-index: 5;
  max-width: 260px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(16, 11, 44, 0.96);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
  font-size: 13.5px;
  display: grid;
  gap: 4px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
}
.map-tip.on { opacity: 1; transform: none; }
.map-tip span:last-child { color: var(--ink-2); }
.map-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: rgba(6, 4, 26, 0.6); color: var(--muted); }
.live-bar {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 28px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 16px;
  border-radius: 999px;
  background: rgba(16, 11, 44, 0.86);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.live-bar .mono { font-size: 12.5px; white-space: nowrap; min-width: 92px; }
.live-bar input[type="range"] { flex: 1; accent-color: var(--pink); }
.live-bar .chip { cursor: pointer; }

.map-controls { display: grid; gap: 10px; margin: 16px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--faint);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.fchip .glyph { font-size: 16px; }
.fchip.on { color: var(--ink); border-color: color-mix(in srgb, var(--c, #fff) 55%, transparent); background: color-mix(in srgb, var(--c, #fff) 12%, transparent); }
.fchip.on .glyph { color: var(--c); }
.fchip .lsample { width: 22px; height: 0; border-top: 2px solid currentColor; }
.fchip.angle-DSC .lsample { border-top-style: dashed; }
.fchip.angle-IC .lsample { border-top-style: dotted; }

.spot { position: relative; margin-bottom: 8px; }
.spot .sheet-close { top: 12px; right: 12px; width: 36px; height: 36px; font-size: 18px; }
.spot-line { display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
.spot-line .glyph { font-size: 22px; }
.spot-line p { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }

.cat-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 14px; }
.cat-tabs button {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-2);
  transition: all 0.3s var(--ease);
}
.cat-tabs button[aria-selected="true"] { color: #1a0b2e; background: var(--c); border-color: var(--c); box-shadow: 0 10px 30px -10px var(--c); }
.city-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.city-grid.more { margin-top: 14px; }
.city-list .locked { min-height: 260px; }
@media (max-width: 980px) { .city-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .city-grid { grid-template-columns: 1fr; } }
.city {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px 12px;
  padding: 20px;
  text-align: left;
  transition: transform 0.4s var(--ease-spring), border-color 0.3s;
  animation: swap-in 0.6s var(--ease) both;
  animation-delay: var(--delay);
}
.city:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.city-rank {
  grid-row: span 2;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--c, var(--violet)) 22%, transparent);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}
.city-name b { font-size: 18px; }
.city-name small { display: block; color: var(--muted); font-size: 13px; }
.city-bar { grid-column: 2; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin: 6px 0; }
.city-bar i { display: block; height: 100%; border-radius: inherit; background: var(--c); box-shadow: 0 0 12px var(--c); }
.city-hits { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.city-why { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }

.today-wrap .locked, .today-wrap.locked { min-height: 420px; }
.today-cols { align-items: start; }
.pc { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pc:last-child { border-bottom: 0; }
.pc .city-rank { --c: var(--pink); grid-row: auto; }
.pc p { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-2); }
.ph-loc { margin: 4px 0 10px; }
#ph-list li > div { gap: 0; }
#ph-list .ph-mean { font-size: 13.5px; color: var(--muted); }
#ph-list li.power .tl-g { background: var(--aurora); color: #1a0b2e !important; border-color: transparent; box-shadow: 0 0 20px rgba(255, 111, 181, 0.5); }

/* ============================================================
   Learn
   ============================================================ */

.learn-nav {
  position: sticky;
  top: calc(var(--nav-h) + 8px);
  z-index: 20;
  display: flex;
  gap: 4px;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(13, 9, 40, 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.learn-nav::-webkit-scrollbar { display: none; }
.learn-nav a { padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink-2); white-space: nowrap; transition: background 0.25s, color 0.25s; }
.learn-nav a:hover { background: rgba(255, 255, 255, 0.1); color: var(--ink); }

.flip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1040px) { .flip-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .flip-grid { grid-template-columns: repeat(2, 1fr); } }
.flip { --c1: var(--gold); --c2: var(--pink); position: relative; aspect-ratio: 3 / 4; border: 0; padding: 0; background: none; perspective: 1000px; text-align: left; }
.flip-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.9s var(--ease-spring); }
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip:hover:not(.flipped) .flip-inner { transform: rotateY(-8deg) rotateX(4deg); }
.flip-front, .flip-back {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  border: 1px solid var(--line);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 18px;
}
.flip-front {
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--c1) 30%, transparent), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
}
.flip-front .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; z-index: -1; }
.flip-front .glyph { font-size: clamp(54px, 7vw, 84px); background: linear-gradient(160deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 8px 24px color-mix(in srgb, var(--c2) 55%, transparent)); }
.fname { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-size: clamp(22px, 2.4vw, 30px); }
.fdates { font-size: 11.5px; color: var(--muted); }
.fsym { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
.flip-back {
  transform: rotateY(180deg);
  gap: 10px;
  justify-content: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 30%, #120d33), color-mix(in srgb, var(--c2) 30%, #0b0824));
}
.ftag { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; font-style: italic; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.15; }
.fvibe { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.fmeta { font-size: 12px; color: var(--ink-2); }
.fkeys { display: flex; flex-wrap: wrap; gap: 5px; }
.fkeys i { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.flove { font-size: 12.5px; color: var(--ink-2); }
@media (max-width: 520px) { .fvibe, .flove { display: none; } }

.planet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.pcard { padding: 22px; display: grid; gap: 4px; align-content: start; transition: transform 0.5s var(--ease); }
.pcard-glyph { font-size: 38px; color: var(--c); filter: drop-shadow(0 0 16px color-mix(in srgb, var(--c) 60%, transparent)); margin-bottom: 6px; }
.pcard-tier { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.pcard b { font-size: 20px; }
.pcard-short { color: var(--c); font-weight: 700; font-size: 14px; }
.pcard p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

.house-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: center; }
@media (max-width: 900px) { .house-wrap { grid-template-columns: 1fr; } .house-wheel { max-width: 360px; margin: 0 auto; } }
.house-wheel svg { width: 100%; }
.hw-seg { fill: rgba(255, 255, 255, 0.03); stroke: rgba(255, 255, 255, 0.12); transition: fill 0.3s; cursor: pointer; }
.hw-seg:nth-child(4n+1) { fill: rgba(139, 124, 255, 0.07); }
.hw-seg.on { fill: rgba(255, 111, 181, 0.35); }
.hw-num { font-family: var(--font-display); font-size: 18px; fill: var(--ink); pointer-events: none; }
.hw-ax { font-family: var(--font-mono); font-size: 9px; fill: var(--gold); letter-spacing: 0.1em; }
.hw-center { font-family: var(--font-display); font-style: italic; font-size: 14px; fill: var(--ink-2); }
.house-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 560px) { .house-grid { grid-template-columns: 1fr; } }
.hcard {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  transition: background 0.25s, border-color 0.25s;
}
.hcard.on { background: rgba(255, 111, 181, 0.12); border-color: rgba(255, 111, 181, 0.4); }
.hnum { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(139, 124, 255, 0.2); font-family: var(--font-display); font-size: 20px; }
.hcard b { font-size: 15px; display: block; }
.hcard small { color: var(--muted); font-size: 13px; }

.aspect-learn { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1040px) { .aspect-learn { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .aspect-learn { grid-template-columns: 1fr; } }
.alearn { padding: 20px; display: grid; gap: 12px; border-top: 2px solid var(--line-2); }
.alearn.flow { border-top-color: var(--cyan); }
.alearn.tension { border-top-color: var(--pink); }
.alearn.fusion { border-top-color: var(--gold); }
.alearn-vis svg { width: 88px; height: 88px; }
.al-chord { stroke: var(--pink); stroke-width: 2; stroke-dasharray: 3 3; }
.alearn.flow .al-chord { stroke: var(--cyan); }
.alearn p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }

.el-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .el-grid { grid-template-columns: 1fr 1fr; } .mod-grid { grid-template-columns: 1fr; } }
.elcard, .modcard { padding: 22px; display: grid; gap: 6px; }
.elcard { background: radial-gradient(100% 70% at 0% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 65%), linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)); }
.elcard b, .modcard b { font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 28px; font-weight: 500; }
.elcard b { color: var(--c); }
.el-signs { font-size: 22px; letter-spacing: 4px; }
.elcard p, .modcard p { margin: 0; color: var(--muted); font-size: 14.5px; }

.angle-list { display: grid; gap: 12px; }
.angle-item { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.angle-item p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.lsample { display: block; width: 36px; height: 0; margin-top: 12px; border-top: 2.5px solid var(--gold); }
.lsample.DSC { border-top-style: dashed; }
.lsample.IC { border-top-style: dotted; }
.acg-diagram svg { width: 100%; max-width: 480px; margin: 0 auto; display: block; }
.acg-atm { animation: halo 5s ease-in-out infinite; transform-origin: 200px 200px; }
.acg-l { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.is-in .acg-l { animation: draw-line 2.2s var(--ease) forwards; }
.is-in .acg-l.ic { animation-delay: 0.3s; }
.is-in .acg-l.asc { animation-delay: 0.6s; }
.is-in .acg-l.dsc { animation-delay: 0.9s; }
.is-in .acg-l.asc2 { animation-delay: 1.2s; }
.acg-l.ic { stroke-dasharray: 2 7; stroke-dashoffset: 0; opacity: 0; }
.is-in .acg-l.ic { animation: fade-in 1s 0.6s forwards; }
.acg-l.dsc { stroke-dasharray: 8 6; stroke-dashoffset: 0; opacity: 0; }
.is-in .acg-l.dsc { animation: fade-in 1s 1s forwards; }
.acg-ping { animation: pulse-ring 2s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
.acg-t { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-2); }
.acg-t.c1 { fill: #ff9fd0; font-family: var(--font-glyph); font-weight: 700; }
.acg-t.c2 { fill: #ffd38a; font-family: var(--font-glyph); font-weight: 700; }

/* ============================================================
   Polish
   ============================================================ */

.hero-copy h1 { font-size: clamp(52px, 6.8vw, 108px); }
.qm-text .link-arrow, .sheet-cta .btn { justify-self: start; }
@media (max-width: 620px) { .qm-text .link-arrow { justify-self: center; } }
.lock-overlay { place-items: start center; padding-top: clamp(40px, 8vw, 90px); }
.lock-overlay .card { position: sticky; top: calc(var(--nav-h) + 40px); }
.m-night { fill: rgba(2, 1, 12, 0.5); }
#world.live .m-lines { opacity: 0.16; }
@media (max-width: 700px) {
  .live-bar { position: static; transform: none; width: auto; margin: 10px; border-radius: 18px; }
}
@media (max-width: 900px) {
  .hero-visual { order: 0; max-width: 380px; }
}
@media (max-width: 640px) {
  .phones { height: 540px; }
  .phone.p2 { margin-left: -205px; }
  .phone.p3 { margin-left: -45px; }
}

/* ============================================================
   Readings: hooks
   ============================================================ */

.sky-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.sky-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}
.sky-badge .glyph { font-size: 13px; }
.sky-badge.rare {
  color: #1a0b2e;
  background: var(--aurora);
  border-color: transparent;
  box-shadow: 0 6px 22px -8px rgba(255, 111, 181, 0.8);
  animation: badge-pop 0.7s var(--ease-spring) both;
}
@keyframes badge-pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }

.sky-asks {
  margin: 4px 0 22px;
  padding: 20px 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(139, 124, 255, 0.16), rgba(255, 111, 181, 0.08));
  border: 1px solid rgba(185, 166, 255, 0.25);
}
.sky-asks p {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.25;
}

.bonus-line {
  margin: -4px 0 22px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 201, 120, 0.5);
  background: rgba(255, 201, 120, 0.07);
  animation: badge-pop 0.8s var(--ease-spring) 0.3s both;
}
.bonus-line .label { color: var(--gold); }
.bonus-line p { margin: 6px 0 0; color: var(--cream); font-size: 16.5px; }

.share-chip { cursor: pointer; transition: background 0.25s, border-color 0.25s; }
.share-chip:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--line-2); }

.tomorrow-tease {
  position: relative;
  margin-top: 24px;
  padding: 22px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(255, 111, 181, 0.22), transparent 60%),
    radial-gradient(80% 120% at 0% 100%, rgba(110, 231, 249, 0.12), transparent 60%),
    rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 10px;
  justify-items: start;
}
.tt-top { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tt-top .eyebrow { margin: 0; }
.tt-count { font-size: 12.5px; color: var(--muted); }
.tt-count b { color: var(--ink); font-weight: 600; }
.tt-line {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.2;
}
.tt-blur {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink-2);
  filter: blur(7px);
  user-select: none;
  pointer-events: none;
}

.streak-row { margin-top: 14px; }
.streak-chip { font-weight: 700; color: var(--cream); border-color: rgba(255, 201, 120, 0.35); background: rgba(255, 201, 120, 0.1); }
.milestone {
  max-width: 520px;
  margin: 14px auto 0;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--aurora-soft);
  border: 1px solid rgba(255, 201, 120, 0.35);
  font-size: 15px;
  animation: badge-pop 0.8s var(--ease-spring) both;
}
.milestone b { color: var(--gold); margin-right: 6px; }

.did-it {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
}
.did-it p { margin: 4px 0 10px; font-size: 17px; }
.did-it p:last-child { margin-bottom: 0; }
.did-it .fb { cursor: pointer; }
.did-it .fb:hover { background: rgba(255, 255, 255, 0.14); }
.lock-overlay .tt-count { margin: 0; }

/* ============================================================
   Transits
   ============================================================ */

.tr-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.date-nav { display: inline-flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); }
.dn-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; font-size: 22px; color: var(--ink-2); transition: background 0.25s; }
.dn-btn:hover { background: rgba(255, 255, 255, 0.1); }
.dn-label { min-width: 120px; height: 40px; border-radius: 999px; border: 0; background: var(--aurora); color: #1a0b2e; font-weight: 800; font-size: 14.5px; padding: 0 16px; }

.tr-top { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: start; margin-bottom: 20px; }
@media (max-width: 980px) { .tr-top { grid-template-columns: 1fr; } }
.tr-lead-card { padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 10px; }
.tr-lead-card .eyebrow { margin: 0; }
.tr-lead-card .reading-headline { margin: 4px 0 0; }
.tr-lead-card .reading-body { margin: 0; }
.tr-glyphs.big { font-size: 40px; gap: 12px; }
.tr-glyphs.big .asp-glyph { font-size: 26px; }
.tr-advice { margin: 0; font-weight: 800; color: var(--cream); }

.tr-group { margin-top: 36px; }
.tr-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; }
.tr-group-head p { margin: 0; font-size: 15px; }
.tr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 860px) { .tr-grid { grid-template-columns: 1fr; } }
.tr-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.tr-card.flow { border-left-color: var(--cyan); }
.tr-card.tension { border-left-color: var(--pink); }
.tr-card.fusion { border-left-color: var(--gold); }
.tr-card .tr-glyphs { flex-direction: column; font-size: 24px; gap: 2px; }
.tr-title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 10px; align-items: baseline; }
.tr-title b { font-size: 17.5px; }
.tr-timing { font-size: 12.5px; font-weight: 800; color: var(--muted); }
.tr-timing.hot { color: var(--gold); }
.tr-meta { font-size: 12px; color: var(--faint); margin: 4px 0 8px; }
.tr-main p { margin: 0 0 8px; color: var(--ink-2); font-size: 15.5px; }
.tr-main .tr-advice { color: var(--cream); font-size: 15px; }
.tr-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.tr-felt { font-size: 13px; font-weight: 700; color: var(--cyan); }
.tr-felt:hover { text-decoration: underline; }
.up-card .locked { min-height: 200px; }

.wheel.has-transits .w-transit { cursor: pointer; }
.wheel.has-transits .w-tglyph { font-size: 20px; }
.wheel.is-anim .w-transit { animation: planet-in 0.9s var(--ease-spring) both; animation-delay: var(--d); transform-origin: 300px 300px; }
.wheel .w-tlink { opacity: 0.7; transition: opacity 0.3s, stroke-width 0.3s; }
.wheel.is-anim .w-tlink { animation: fade-in 1s var(--ease) backwards; animation-delay: var(--d); }
.wheel.tfocus .w-tlink { opacity: 0.08; }
.wheel.tfocus .w-tlink.on { opacity: 1; stroke-width: 2.4; }
.tr-sample-note { font-size: 12.5px; margin: -30px 0 20px; letter-spacing: 0.06em; }
.ph-tr { display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding: 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); }
.ph-trg { display: grid; justify-items: center; font-size: 13px; line-height: 1.1; }
.ph-tr b { display: block; font-size: 11px; }
.ph-tr span { font-size: 10.5px; color: var(--ink-2); line-height: 1.35; }
