:root {
  --bg: #05010f;
  --ink: #f3ecff;
  --muted: #a99cc9;
  --gold: #ffd166;
  --gold-2: #ffb347;
  --violet: #8b5cf6;
  --glass: rgba(20, 10, 45, 0.55);
  --glass-border: rgba(255, 255, 255, 0.12);
  --radius: 22px;
  --font-display: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

#cosmos { position: fixed; inset: 0; z-index: 0; display: block; }

.screen {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100dvh;
  display: none;
  padding: calc(var(--safe-top) + 28px) 16px calc(var(--safe-bottom) + 28px);
}
.screen.active { display: flex; flex-direction: column; align-items: center; animation: rise 900ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero { text-align: center; margin: 6vh 0 22px; pointer-events: none; }
.orbit-title { position: relative; display: inline-block; padding: 26px 34px; }
.orbit-title h1 {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(38px, 9vw, 72px); letter-spacing: 0.22em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff 0%, #f5e6b3 45%, var(--gold-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 40px rgba(255, 209, 102, 0.25);
}
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 209, 102, 0.28); pointer-events: none; }
.ring-a { transform: scale(1.15, .55) rotate(-8deg); animation: spin 26s linear infinite; }
.ring-b { transform: scale(1.3, .45) rotate(10deg); border-color: rgba(139, 92, 246, 0.35); animation: spin 38s linear infinite reverse; }
@keyframes spin { to { transform: scale(1.15,.55) rotate(352deg); } }
.tag { margin: 6px auto 0; max-width: 34ch; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ---------- glass ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
}

form.glass { width: min(440px, 100%); padding: 22px 20px 16px; display: grid; gap: 14px; }
label { display: grid; gap: 6px; }
label span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
input {
  width: 100%; font: 17px var(--font-body); color: var(--ink);
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px; padding: 14px 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255,209,102,.15); }
input[type=date] { color-scheme: dark; min-height: 50px; }
.error { min-height: 1em; margin: -6px 0 0; font-size: 13px; color: #ff9aa5; }

.btn-primary {
  position: relative; overflow: hidden; cursor: pointer;
  border: 0; border-radius: 16px; padding: 16px 22px;
  font: 600 16px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: #1a0b2e;
  background: linear-gradient(135deg, #ffe08a, var(--gold-2) 60%, #ff8a5c);
  box-shadow: 0 10px 30px rgba(255,179,71,.35);
  transition: transform .15s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(255,179,71,.5); }
.btn-primary:active { transform: translateY(1px) scale(.99); }
.btn-primary::after { content: ''; position: absolute; inset: -60% auto -60% -30%; width: 40%; transform: skewX(-20deg); background: rgba(255,255,255,.35); animation: sheen 3.2s ease-in-out infinite; }
@keyframes sheen { 0%,60% { left: -30%; } 100% { left: 130%; } }
.btn-primary span { position: relative; }

.btn-ghost, .link {
  background: transparent; border: 1px solid rgba(255,255,255,.14); color: var(--ink);
  border-radius: 12px; padding: 10px 14px; font: 14px var(--font-body); cursor: pointer;
}
.link { border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: 6px; }
.link:hover, .btn-ghost:hover { color: var(--gold); border-color: rgba(255,209,102,.4); }
.form-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.hidden { display: none !important; }

.privacy-note { margin: -4px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.privacy-note a { color: var(--muted); }
.hint { margin-top: auto; padding-top: 24px; color: rgba(169,156,201,.7); font-size: 13px; text-align: center; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: rgba(255,255,255,.06); border: 1px solid var(--glass-border); color: var(--ink); border-radius: 999px; padding: 8px 14px; font-size: 14px; cursor: pointer; }
.chip:hover { border-color: var(--gold); }

/* ---------- results ---------- */
.results-inner { width: min(900px, 100%); display: grid; gap: 18px; }
.results-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.results-head h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 4.5vw, 34px); letter-spacing: .04em; text-align: center; }
.muted { color: var(--muted); margin: 4px 0 0; text-align: center; font-size: 14px; }
.head-actions { display: flex; gap: 8px; justify-content: flex-end; }

.core-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.core {
  padding: 16px 14px 14px; text-align: center; cursor: pointer;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  animation: rise 800ms both; animation-delay: calc(var(--i) * 90ms);
}
.core:hover { transform: translateY(-3px); border-color: rgba(255,209,102,.45); }
.core .num {
  font-family: var(--font-display); font-size: 46px; line-height: 1; margin: 4px 0 6px;
  background: linear-gradient(180deg, #fff, var(--c, var(--gold)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--c, var(--gold)) 55%, transparent));
}
.core .lbl { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.core .ttl { font-size: 13px; color: var(--ink); margin-top: 4px; opacity: .9; }
.core.master { border-color: rgba(255,255,255,.4); box-shadow: 0 0 40px rgba(255,255,255,.12); }
.core.debt .num::after { content: ' ✦'; font-size: 14px; vertical-align: top; color: #ff9aa5; }

.flags { display: flex; flex-wrap: wrap; gap: 8px; }
.flag { border-radius: 999px; padding: 8px 14px; font-size: 13px; border: 1px solid; }
.flag.master { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.07); }
.flag.debt { border-color: rgba(255,154,165,.5); background: rgba(255,120,140,.1); color: #ffc4cb; }
.flag.lesson { border-color: rgba(126,232,240,.5); background: rgba(126,232,240,.08); color: #bff4f8; }

.readings { display: grid; gap: 14px; }
.reading { padding: 22px 22px 20px; animation: rise 800ms both; }
.reading-top { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.reading-top .big {
  font-family: var(--font-display); font-size: 58px; line-height: 1; min-width: 70px;
  background: linear-gradient(180deg, #fff, var(--c, var(--gold)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.reading-top h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 24px; letter-spacing: .03em; }
.reading-top .sub { color: var(--muted); font-size: 14px; margin: 2px 0 0; }
.reading .formula { font-size: 13px; color: var(--muted); margin: 10px 0 0; font-variant-numeric: tabular-nums; }
.reading .essence { margin: 14px 0 6px; color: var(--gold); font-style: italic; font-family: var(--font-display); font-size: 17px; }
.reading p.orb { margin: 8px 0 0; line-height: 1.65; font-size: 16px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.pair div { background: rgba(0,0,0,.28); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.pair b { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.debtcard { margin-top: 14px; border-left: 3px solid #ff9aa5; padding: 12px 14px; background: rgba(255,120,140,.07); border-radius: 0 12px 12px 0; font-size: 15px; line-height: 1.6; }
.debtcard b { color: #ffc4cb; }

.block { padding: 20px 22px; }
.block h2 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 400; font-size: 22px; letter-spacing: .03em; }
.block p { line-height: 1.6; font-size: 15px; }

.letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 14px; }
.letters .word { display: flex; gap: 4px; margin-right: 12px; margin-bottom: 8px; }
.letter { display: grid; text-align: center; min-width: 30px; }
.letter .v { font-size: 12px; color: var(--muted); }
.letter .ch { font-family: var(--font-display); font-size: 20px; padding: 4px 0; border-bottom: 2px solid transparent; }
.letter.vow .ch { color: var(--gold); border-color: var(--gold); }
.letter.con .ch { color: #b9c9ff; border-color: rgba(185,201,255,.5); }
.totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.totals div { background: rgba(0,0,0,.28); border-radius: 12px; padding: 10px; text-align: center; font-size: 14px; }
.totals b { display: block; font-size: 22px; font-family: var(--font-display); }
.tally { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; margin-top: 10px; }
.tally div { text-align: center; background: rgba(0,0,0,.28); border-radius: 10px; padding: 8px 0; font-size: 13px; }
.tally div b { display: block; font-size: 18px; font-family: var(--font-display); }
.tally div.missing { border: 1px solid rgba(126,232,240,.6); color: #bff4f8; }

.results-foot { display: flex; justify-content: center; padding: 8px 0 20px; }

/* Reading mode: on text-heavy screens the glass stops blurring the live canvas (cheap on phones). */
body.calm .glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(16, 8, 38, 0.86); }

/* ---------- star map ---------- */
.map-inner { width: min(980px, 100%); display: grid; gap: 14px; }
.map-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.map-head h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 4.5vw, 34px); letter-spacing: .04em; text-align: center; }
.tag.center { text-align: center; max-width: 100%; }
.dest { margin: 0; text-align: center; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }

.worlds { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px 12px; padding: 10px 0 20px; }
.world {
  background: transparent; border: 0; color: var(--ink); cursor: pointer; padding: 10px 6px;
  display: grid; justify-items: center; gap: 8px; border-radius: 18px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s;
  animation: rise 900ms both; animation-delay: calc(var(--i) * 110ms);
}
.world:hover, .world:focus-visible { transform: translateY(-6px) scale(1.04); background: rgba(255,255,255,.04); outline: none; }
.world:active { transform: scale(.97); }
.wname { font-family: var(--font-display); font-size: 18px; letter-spacing: .04em; }
.wsub { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.4; max-width: 18ch; }
.worlds.small { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.worlds.small .orb { width: 64px; height: 64px; }
.worlds.small .wname { font-size: 14px; }
.worlds.small .wsub { display: none; }
.other-worlds h2 { font: 12px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 6px 0 0; text-align: center; }

.orb { position: relative; width: 104px; height: 104px; border-radius: 50%; display: block; animation: float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.9s); }
.orb i { position: absolute; inset: 0; border-radius: 50%; }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-7px) } }

.orb.sun { background: radial-gradient(circle at 40% 35%, #fff7d6 0%, #ffd166 30%, #ff8a3d 65%, #b0361b 100%); box-shadow: 0 0 40px rgba(255,180,80,.7), 0 0 90px rgba(255,120,40,.35); }
.orb.sun i { background: radial-gradient(circle at 60% 60%, transparent 50%, rgba(255,255,255,.25) 100%); animation: spin 14s linear infinite; }

.orb.galaxy { background: radial-gradient(circle, #fff 0%, #e9d8ff 6%, rgba(140,90,255,.6) 20%, rgba(70,30,140,.3) 45%, transparent 70%); box-shadow: 0 0 40px rgba(150,100,255,.35); }
.orb.galaxy i { background: conic-gradient(from 0deg, transparent 0%, rgba(200,170,255,.75) 14%, transparent 30%, transparent 50%, rgba(255,190,240,.7) 64%, transparent 80%); filter: blur(4px); transform: scale(1.15, .6) rotate(-25deg); animation: spinFlat 18s linear infinite; }
@keyframes spinFlat { to { transform: scale(1.15, .6) rotate(335deg); } }

.orb.ringed { background: radial-gradient(circle at 38% 34%, #d9f6ff 0%, #6fd3ea 35%, #1d6d8e 70%, #0b2b40 100%); box-shadow: 0 0 34px rgba(90,200,240,.35); }
.orb.ringed i { inset: 34% -32%; border-radius: 50%; border: 6px solid rgba(220,240,255,.75); border-top-color: rgba(220,240,255,.15); transform: rotate(-18deg); box-shadow: 0 0 12px rgba(180,230,255,.5); }

.orb.nebula { background: radial-gradient(circle at 30% 40%, rgba(255,120,200,.9) 0%, rgba(200,60,160,.55) 25%, transparent 55%), radial-gradient(circle at 70% 60%, rgba(120,90,255,.85) 0%, rgba(80,40,200,.45) 30%, transparent 60%), radial-gradient(circle at 50% 80%, rgba(80,200,255,.6) 0%, transparent 45%); filter: blur(1.5px); border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%; box-shadow: 0 0 40px rgba(200,100,255,.35); }
.orb.nebula i { background: radial-gradient(circle at 45% 45%, #fff 0%, transparent 8%), radial-gradient(circle at 65% 30%, #fff 0%, transparent 5%), radial-gradient(circle at 30% 70%, #fff 0%, transparent 5%); }

.orb.blackhole { background: #000; box-shadow: 0 0 0 3px rgba(255,220,160,.95), 0 0 24px 6px rgba(255,150,60,.75), 0 0 60px 20px rgba(255,100,40,.3); }
.orb.blackhole i { inset: 28% -28%; border-radius: 50%; border: 8px solid transparent; border-top-color: rgba(255,170,70,.85); border-bottom-color: rgba(255,120,50,.55); transform: rotate(-30deg); filter: blur(1px); animation: spinDisk 4s linear infinite; }
@keyframes spinDisk { to { transform: rotate(330deg); } }

.orb.moon { background: radial-gradient(circle at 38% 34%, #ffffff 0%, #dcd8e6 40%, #8f8aa3 75%, #3f3a52 100%); box-shadow: 0 0 30px rgba(220,220,255,.35); }
.orb.moon i { background: radial-gradient(circle at 60% 55%, rgba(0,0,0,.18) 0 9%, transparent 10%), radial-gradient(circle at 30% 65%, rgba(0,0,0,.15) 0 6%, transparent 7%), radial-gradient(circle at 68% 28%, rgba(0,0,0,.14) 0 5%, transparent 6%); }

.orb.binary { background: transparent; }
.orb.binary::before, .orb.binary::after { content: ''; position: absolute; border-radius: 50%; }
.orb.binary::before { width: 58%; height: 58%; left: 4%; top: 22%; background: radial-gradient(circle at 40% 40%, #fff 0%, #9ec8ff 40%, #2e63c4 100%); box-shadow: 0 0 30px rgba(120,170,255,.7); animation: orbitA 5s ease-in-out infinite; }
.orb.binary::after { width: 42%; height: 42%; right: 4%; top: 40%; background: radial-gradient(circle at 40% 40%, #fff 0%, #ffd9a0 40%, #d8642a 100%); box-shadow: 0 0 26px rgba(255,170,90,.7); animation: orbitB 5s ease-in-out infinite; }
@keyframes orbitA { 0%,100% { transform: translate(0,0) } 50% { transform: translate(14px, 10px) } }
@keyframes orbitB { 0%,100% { transform: translate(0,0) } 50% { transform: translate(-16px, -12px) } }

.flag.sign { border-color: rgba(255,209,102,.5); background: rgba(255,209,102,.08); color: #ffe6a8; }

/* comet (karma) and star (astrology) orbs */
.orb.comet { background: radial-gradient(circle at 60% 40%, #fff 0%, #cfe6ff 18%, #5b8fd6 45%, #1a2e5c 75%, transparent 76%); box-shadow: 0 0 30px rgba(140,190,255,.5); }
.orb.comet i { inset: 30% -40% 30% 40%; border-radius: 50%; background: linear-gradient(90deg, rgba(200,225,255,.85), rgba(120,170,255,.3) 50%, transparent); filter: blur(4px); transform: rotate(-22deg); }
.orb.star { background: radial-gradient(circle, #fff 0%, #fff4c2 12%, rgba(255,209,102,.7) 25%, rgba(255,150,60,.25) 45%, transparent 62%); box-shadow: 0 0 40px rgba(255,209,102,.5); }
.orb.star i { inset: 8%; background: conic-gradient(from 0deg, transparent 0 20%, rgba(255,255,255,.9) 24%, transparent 28% 45%, rgba(255,255,255,.9) 49%, transparent 53% 70%, rgba(255,255,255,.9) 74%, transparent 78% 95%, rgba(255,255,255,.9) 99%); border-radius: 50%; filter: blur(1px); animation: spinRing 30s linear infinite; }
.orb.star::after { content: '☉'; position: absolute; inset: 0; display: grid; place-items: center; font: 42px var(--font-display); color: #2a1a05; }

.orb.aurora { background: radial-gradient(circle at 50% 60%, #0a1a2a 0%, #0b2f3a 40%, #05010f 75%); box-shadow: 0 0 34px rgba(80,230,180,.35); overflow: hidden; }
.orb.aurora i { inset: -20%; background: conic-gradient(from 200deg, transparent 0 10%, rgba(80,240,180,.75) 22%, rgba(120,140,255,.6) 34%, transparent 46%, transparent 60%, rgba(200,120,255,.55) 72%, transparent 84%); filter: blur(6px); animation: spinRing 16s linear infinite; }
body.no-oracle #btn-oracle-2 { display: none; }
body.no-journey .now-wrap, body.no-journey #btn-now-2 { display: none; }
body.no-subscribe #subscribe { display: none !important; }

.orb.prism { background: conic-gradient(from 30deg, #ff7eb6, #ffd166, #9be89b, #7ee8f0, #8b5cf6, #ff7eb6); box-shadow: 0 0 40px rgba(200,150,255,.45); }
.orb.prism i { inset: 18%; border-radius: 50%; background: radial-gradient(circle, #fff 0%, rgba(255,255,255,.6) 30%, rgba(20,10,45,.2) 70%); animation: spinRing 20s linear infinite; }

/* ---------- lenses ---------- */
.lens-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.lens-pick { display: grid !important; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--glass-border); background: rgba(0,0,0,.25); cursor: pointer; transition: border-color .2s, background .2s; }
.lens-pick input { grid-row: span 2; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold); }
.lens-pick .lens-t { font-family: var(--font-display); font-size: 18px; color: var(--ink); text-transform: none; letter-spacing: .02em; }
.lens-pick .lens-s { font-size: 12px; color: var(--muted); text-transform: none; letter-spacing: 0; line-height: 1.4; }
.lens-pick.on { border-color: rgba(255,209,102,.6); background: rgba(255,209,102,.08); }
.lens-card { margin-top: 16px; padding: 16px 16px 8px; border-radius: 16px; background: rgba(0,0,0,.22); border: 1px solid var(--glass-border); }
.lens-card h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--gold); }
.lens-card .lens-sub { margin: 2px 0 8px; color: var(--muted); font-size: 14px; }
.lens-card h4 { margin: 14px 0 6px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lens-card details { margin: 10px 0; }
.lens-card summary { cursor: pointer; color: var(--gold); font-size: 14px; }
.lens-card details p { line-height: 1.6; font-size: 15px; }
.lens-mine { background: rgba(255,255,255,.04); border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.lens-mine .k { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.lens-mine p { margin: 6px 0 0; line-height: 1.6; font-size: 15px; }
.verse { margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid rgba(255,209,102,.6); font-family: var(--font-display); font-size: 16px; line-height: 1.55; color: #fff; }
.verse cite { display: block; margin-top: 4px; font: 12px var(--font-body); color: var(--muted); font-style: normal; }
.or-lenses { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.or-lens { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--glass-border); background: rgba(255,255,255,.05); color: var(--muted); cursor: pointer; }
.or-lens.on { border-color: rgba(255,209,102,.6); color: var(--gold); background: rgba(255,209,102,.1); }
body.no-lenses #lenses { display: none !important; }

/* ---------- astrology ---------- */
.astro-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.astro-glyph { font-size: 64px; line-height: 1; color: var(--gold); filter: drop-shadow(0 0 16px rgba(255,209,102,.5)); }
.astro-head h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 28px; }
.astro-meta { color: var(--muted); font-size: 14px; margin: 2px 0 0; }
.astro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin: 12px 0; }
.astro-grid div { background: rgba(0,0,0,.28); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.astro-grid b { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pinn { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
.pinn div { background: rgba(0,0,0,.28); border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.45; }
.pinn .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pinn .n { font-family: var(--font-display); font-size: 28px; color: var(--gold); }

/* ---------- the oracle ---------- */
#oracle { position: fixed; inset: 0; z-index: 4; display: none; align-items: center; justify-content: center; padding: 16px; background: radial-gradient(circle at 50% 50%, rgba(5,1,15,.7), rgba(0,0,0,.92)); }
#oracle.on { display: flex; animation: jin .8s ease both; }
.or-hole { position: absolute; width: min(70vw, 520px); height: min(70vw, 520px); border-radius: 50%; background: #000; box-shadow: 0 0 0 3px rgba(255,220,160,.9), 0 0 60px 20px rgba(255,150,60,.55), 0 0 160px 60px rgba(255,100,40,.25); animation: breathe 6s ease-in-out infinite; }
.or-hole span { position: absolute; inset: 22% -30%; border-radius: 50%; border: 10px solid transparent; border-top-color: rgba(255,170,70,.7); border-bottom-color: rgba(255,120,50,.45); transform: rotate(-28deg); filter: blur(2px); animation: spinDisk 7s linear infinite; }
@keyframes breathe { 0%,100% { transform: scale(1) } 50% { transform: scale(1.04) } }
.or-panel { position: relative; width: min(720px, 100%); max-height: min(88vh, 88dvh); display: flex; flex-direction: column; padding: 18px 18px 14px; background: rgba(10, 4, 24, .82); }
.or-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.or-head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 26px; letter-spacing: .06em; color: var(--gold); }
.or-actions { display: flex; gap: 8px; }
.or-log { flex: 1; overflow-y: auto; margin: 12px 0; display: grid; gap: 10px; align-content: start; min-height: 160px; }
.or-msg { max-width: 92%; padding: 12px 16px; border-radius: 16px; line-height: 1.6; font-size: 16px; }
.or-msg p { margin: 0 0 8px; } .or-msg p:last-child { margin: 0; }
.or-msg.oracle { background: rgba(255,209,102,.08); border: 1px solid rgba(255,209,102,.25); font-family: var(--font-display); font-size: 17px; }
.or-msg.you { background: rgba(255,255,255,.08); justify-self: end; }
.or-msg.thinking { color: var(--gold); animation: pulseText 1.2s ease-in-out infinite; }
@keyframes pulseText { 0%,100% { opacity: .4 } 50% { opacity: 1 } }
.or-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.or-chip { background: rgba(255,255,255,.06); border: 1px solid var(--glass-border); color: var(--muted); border-radius: 999px; padding: 7px 12px; font-size: 13px; cursor: pointer; }
.or-chip:hover { color: var(--gold); border-color: rgba(255,209,102,.5); }
.or-form { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.or-mic { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,209,102,.5); background: rgba(255,209,102,.1); color: var(--gold); font-size: 22px; cursor: pointer; display: grid; place-items: center; transition: transform .2s, background .2s; }
.or-mic:hover { transform: scale(1.06); background: rgba(255,209,102,.2); }
.or-mic.live { background: #ff5c6c; color: #fff; border-color: #ff8a95; animation: micPulse 1.4s ease-out infinite; }
@keyframes micPulse { 0% { box-shadow: 0 0 0 0 rgba(255,92,108,.6) } 100% { box-shadow: 0 0 0 18px rgba(255,92,108,0) } }
.or-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--muted); }
.or-hands { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.or-hands input { accent-color: var(--gold); width: 16px; height: 16px; }
.or-mic-status { font-size: 12px; color: #ffe6a8; }
.or-form .btn-primary { padding: 12px 18px; }
body.oracle-open #cosmos { filter: blur(2px); }

.orb.sigil { background: radial-gradient(circle at 50% 50%, #fff3c4 0%, #ffd166 18%, #b8860b 45%, #3a2a05 70%, #0b0716 100%); box-shadow: 0 0 34px rgba(255,209,102,.5); }
.orb.sigil i { inset: 12%; border-radius: 50%; border: 2px dashed rgba(255,240,200,.85); animation: spinRing 22s linear infinite; }
.orb.sigil::after { content: 'Σ'; position: absolute; inset: 0; display: grid; place-items: center; font: 40px var(--font-display); color: #2a1a05; text-shadow: 0 0 8px rgba(255,255,255,.6); }
@keyframes spinRing { to { transform: rotate(360deg); } }

/* ---------- the revelation ---------- */
.reveal { display: grid; gap: 28px; padding: 10px 0 20px; }
.rv-hero { text-align: center; padding: 30px 8px 10px; }
.rv-hook { max-width: 46ch; margin: 0 auto 26px; color: var(--muted); font-size: 15px; line-height: 1.6; font-style: italic; }
.rv-name {
  margin: 0; font-family: var(--font-display); font-weight: 400; letter-spacing: .06em;
  font-size: clamp(34px, 7vw, 66px); line-height: 1.1;
  background: linear-gradient(180deg, #fff 0%, #f5e6b3 50%, var(--gold-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgba(255,209,102,.25));
  animation: rise 1.6s cubic-bezier(.2,.8,.2,1) both;
}
.rv-born { color: var(--muted); margin: 12px 0 0; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
.rv-scroll { margin-top: 34px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: rgba(169,156,201,.6); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); opacity: .6 } 50% { transform: translateY(6px); opacity: 1 } }

.rv-block, .rv-letter, .rv-today { opacity: 0; transform: translateY(26px); transition: opacity 1.4s ease, transform 1.4s cubic-bezier(.2,.8,.2,1); }
.rv-block.in, .rv-letter.in, .rv-today.in { opacity: 1; transform: none; }
.rv-block { max-width: 720px; margin: 0 auto; text-align: center; padding: 26px 12px; }
.rv-eyebrow { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.rv-num {
  font-family: var(--font-display); font-size: clamp(88px, 18vw, 150px); line-height: .95; margin: 0 0 8px;
  background: linear-gradient(180deg, #fff 0%, #ffe3a3 45%, var(--gold-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 40px rgba(255,190,80,.35));
}
.rv-title { margin: 0 0 14px; font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 4vw, 32px); letter-spacing: .04em; }
.rv-text { font-family: var(--font-display); font-size: clamp(18px, 2.3vw, 22px); line-height: 1.7; margin: 10px 0 0; color: #f7f1ff; }
.rv-lead { font-size: clamp(19px, 2.6vw, 25px); }
.rv-karma .rv-text { font-size: clamp(17px, 2.1vw, 20px); color: #ffe0e6; }
.rv-letter { max-width: 680px; margin: 10px auto 0; padding: 34px 28px; border-top: 1px solid rgba(255,209,102,.35); border-bottom: 1px solid rgba(255,209,102,.35); text-align: left; }
.rv-dear { font-family: var(--font-display); font-size: 26px; margin: 0 0 8px; color: var(--gold); }
.rv-sign { text-align: center; color: var(--gold); font-size: 22px; margin: 22px 0 0; }
.rv-today { max-width: 680px; margin: 0 auto; padding: 22px 24px; }
.rv-aff { font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); line-height: 1.4; margin: 6px 0 10px; color: #fff; }

/* ---------- subscribe ---------- */
.subscribe form { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; align-items: end; }
.subscribe form label:nth-child(3), .subscribe form .check, .subscribe form .error, .subscribe form button { grid-column: 1 / -1; }
.subscribe select { width: 100%; font: 16px var(--font-body); color: var(--ink); background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 13px 14px; }
.subscribe select option { color: #000; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold); }
.check span { text-transform: none; letter-spacing: 0; font-size: 14px; }
.sub-lead { line-height: 1.6; margin: 0 0 14px; color: var(--muted); }
.sub-done { text-align: center; padding: 10px 0; line-height: 1.6; }
@media (max-width: 640px) { .subscribe form { grid-template-columns: 1fr; } .rv-letter { padding: 26px 16px; } }

/* ---------- the worksheet (paper) ---------- */
.sheet { background: #f4efe4; color: #1e1a14; border-radius: 10px; padding: 22px 24px 26px; box-shadow: 0 30px 80px rgba(0,0,0,.55); font-family: "Segoe UI", Helvetica, Arial, sans-serif; }
.sheet h2 { margin: 0; text-align: center; font: 700 clamp(18px, 3.4vw, 26px)/1.2 "Segoe UI", Helvetica, Arial, sans-serif; letter-spacing: .01em; }
.ws-head p { text-align: center; margin: 4px 0 14px; font-style: italic; color: #5a5245; font-size: 13px; }
.ws-id { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; font-size: 14px; }
.ws-id span { color: #5a5245; }
.ws-id b { border-bottom: 1px solid #1e1a14; padding: 0 6px 2px; }
.sheet h3 { margin: 20px 0 8px; font: 700 15px/1.2 "Segoe UI", Helvetica, Arial, sans-serif; letter-spacing: .04em; border-bottom: 2px solid #1e1a14; padding-bottom: 4px; }
.sheet h3 small { font-weight: 400; font-style: italic; letter-spacing: 0; color: #5a5245; }
.ws-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.ws-note { font-size: 13px; line-height: 1.5; margin: 6px 0; color: #2a2419; }
.ws-dim { color: #6b6255; }
.sheet table { border-collapse: collapse; width: 100%; font-size: 13px; color: #1e1a14; }
.sheet td, .sheet th { border: 1px solid #8f8778; padding: 5px 6px; text-align: center; vertical-align: middle; }
.ws-chart th { background: #2a2419; color: #fff; }
.ws-chart td.miss { background: #ffe0e0; color: #9b1c1c; font-weight: 700; outline: 2px solid #9b1c1c; }
.ws-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0; }
.ws-grid th { text-align: left; background: #e6dfd0; white-space: nowrap; font-weight: 600; }
.ws-grid td { min-width: 28px; height: 32px; font-weight: 600; }
.ws-grid td.gap { background: #e6dfd0; border-left: 0; border-right: 0; min-width: 12px; }
.ws-grid td.tot { background: #fff7d6; font-weight: 800; min-width: 48px; }
.ws-grid tr:nth-child(2) td { background: #d9d2c2; font-size: 16px; }
.ws-grid .v { color: #a3660a; } .ws-grid .c { color: #1f3d7a; }
.ws-items td { text-align: left; }
.ws-items .ws-lbl { width: 26%; background: #e6dfd0; } .ws-items .ws-lbl i { display: block; font-size: 12px; color: #5a5245; }
.ws-items .ws-f { font-size: 13px; line-height: 1.5; }
.ws-items .ws-eq { width: 14%; text-align: right; font-size: 18px; white-space: nowrap; }
.circ { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border: 2px solid #9b1c1c; border-radius: 50%; color: #9b1c1c; font-weight: 800; padding: 0 3px; }
.ws-story { font-size: 15px; line-height: 1.65; background: #fff7d6; border-left: 4px solid #b8860b; padding: 12px 14px; margin: 8px 0 12px; }
.ws-soul td { text-align: left; font-size: 13px; line-height: 1.45; }
.ws-soul th { background: #2a2419; color: #fff; text-align: left; }
.ws-soul .ws-num { font-family: var(--font-display); font-size: 22px; text-align: center; white-space: nowrap; }
@media (max-width: 640px) { .ws-two, .ws-id { grid-template-columns: 1fr; } .sheet { padding: 16px 12px 20px; } .ws-items .ws-lbl { width: 34%; } }

/* ---------- Be Here Now ---------- */
.now-wrap { display: flex; justify-content: center; padding: 6px 0 24px; }
.btn-now {
  position: relative; cursor: pointer; border: 1px solid rgba(255,209,102,.55); color: var(--ink);
  background: radial-gradient(circle at 50% 0%, rgba(255,209,102,.28), rgba(20,10,45,.7) 70%);
  border-radius: 999px; padding: 18px 34px; display: grid; justify-items: center; gap: 4px;
  box-shadow: 0 0 40px rgba(255,190,80,.25), inset 0 1px 0 rgba(255,255,255,.15);
  transition: transform .25s, box-shadow .25s;
}
.btn-now:hover { transform: translateY(-3px); box-shadow: 0 0 70px rgba(255,190,80,.45); }
.btn-now span:not(.now-glow) { font-family: var(--font-display); font-size: 24px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); position: relative; }
.btn-now small { font-size: 12px; color: var(--muted); position: relative; }
.now-glow { position: absolute; inset: -2px; border-radius: inherit; box-shadow: 0 0 0 0 rgba(255,209,102,.5); animation: pulse 2.8s ease-out infinite; pointer-events: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,209,102,.45); } 100% { box-shadow: 0 0 0 22px rgba(255,209,102,0); } }
.btn-ghost.gold { border-color: rgba(255,209,102,.5); color: var(--gold); }

#journey { position: fixed; inset: 0; z-index: 4; background: #000; display: none; overflow: hidden; }
#journey.on { display: block; animation: jin 1.6s ease both; }
@keyframes jin { from { opacity: 0; } to { opacity: 1; } }
#journey .slide { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; opacity: 0; transition: opacity 1.8s ease; will-change: transform, opacity; }
#journey .slide.on { opacity: 1; }
@keyframes fly { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.45) translate(-3%, 2%); } }
.j-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.55) 100%), linear-gradient(to top, rgba(0,0,0,.75), transparent 35%), linear-gradient(to bottom, rgba(0,0,0,.5), transparent 25%); pointer-events: none; }
.j-top { position: absolute; top: calc(var(--safe-top) + 14px); left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.j-voice { max-width: 55%; background: rgba(0,0,0,.5); color: var(--ink); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 9px 10px; font: 13px var(--font-body); }
.j-caption {
  position: absolute; left: 50%; bottom: calc(var(--safe-bottom) + 84px); transform: translateX(-50%);
  width: min(820px, calc(100% - 32px)); margin: 0; text-align: center;
  font-family: var(--font-display); font-size: clamp(19px, 2.6vw, 28px); line-height: 1.45; color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.9), 0 0 2px #000; opacity: 0;
}
.j-caption.show { animation: capIn 1.2s ease forwards; }
@keyframes capIn { from { opacity: 0; transform: translateX(-50%) translateY(12px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.j-bottom { position: absolute; left: 16px; right: 16px; bottom: calc(var(--safe-bottom) + 18px); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.j-bottom .btn-ghost { background: rgba(0,0,0,.5); }
.j-credit { margin-left: auto; font-size: 11px; color: rgba(255,255,255,.6); text-shadow: 0 1px 6px #000; }
body.journey #cosmos { visibility: hidden; }

/* ---------- extended sections ---------- */
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.lists div { background: rgba(0,0,0,.28); border-radius: 12px; padding: 10px 14px 10px 26px; font-size: 14px; }
.lists b { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px -12px; }
.lists ul { margin: 0; padding: 0 0 0 4px; line-height: 1.55; }
.note { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.note b { color: var(--ink); }
.cycles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }
.cycles div { background: rgba(0,0,0,.28); border-radius: 12px; padding: 12px; }
.cycles .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cycles .n { font-family: var(--font-display); font-size: 34px; line-height: 1.1; color: var(--gold); }
.cycles .t { font-size: 13px; margin-top: 4px; line-height: 1.45; }
.chart { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; }
.grid9 { display: grid; grid-template-columns: repeat(3, 64px); gap: 6px; }
.grid9 div { height: 64px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); display: grid; place-items: center; font-family: var(--font-display); font-size: 22px; color: var(--muted); position: relative; }
.grid9 div.on { color: var(--gold); border-color: rgba(255,209,102,.45); box-shadow: inset 0 0 20px rgba(255,209,102,.12); }
.grid9 div small { position: absolute; top: 4px; right: 7px; font: 10px var(--font-body); color: var(--muted); }
.arrow { margin: 6px 0; font-size: 14px; line-height: 1.5; }
.arrow b { color: var(--gold); }
.arrow.lesson b { color: #bff4f8; }
.tool { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.tool div { background: rgba(0,0,0,.28); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.tool b { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.compare-form { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; align-items: end; }
.compare-form .error { grid-column: 1 / -1; }
.compare-form button { grid-column: 1 / -1; }
.cmp { margin-top: 14px; }
.cmp table td:first-child { color: var(--muted); }
.cmp .ok { color: #9be89b; }
.cmp .warn { color: #ffc4cb; }
.famous { margin-top: 10px; font-size: 14px; color: var(--muted); }
@media (max-width: 640px) {
  .lists, .compare-form, .chart { grid-template-columns: 1fr; }
}

/* ---------- guide ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
td, th { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

#flash { position: fixed; inset: 0; z-index: 5; background: #f7f2ff; opacity: 0; pointer-events: none; transition: opacity 1.4s ease; }
#flash.on { opacity: 1; transition: none; }

@media (max-width: 640px) {
  .results-head { grid-template-columns: 1fr; text-align: center; }
  .head-actions { justify-content: center; }
  .grid-2, .pair { grid-template-columns: 1fr; }
  .reading { padding: 18px 16px; }
  .core-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .screen.active, .core, .reading { animation: none; }
  .btn-primary::after, .ring { animation: none; }
}

/* =====================================================================
   Mobile and iPhone polish
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { overflow-x: clip; }
button, a, .world, .core, .lens-pick, .chip, .or-chip, .or-lens { touch-action: manipulation; }

/* grid children may shrink below their content, so wide tables scroll inside their own box */
.results-inner, .map-inner { grid-template-columns: minmax(0, 1fr); }
.results-inner > *, .map-inner > * { min-width: 0; }
.sheet, .block, .reading, .lens-card { overflow-wrap: anywhere; }
.ws-scroll { overscroll-behavior-x: contain; }

/* respect the notch and home indicator in landscape too */
.screen { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }

/* hover lifts only where there is a real pointer, so taps do not leave cards stuck "raised" */
@media (hover: none) {
  .world:hover, .world:focus-visible { transform: none; background: transparent; }
  .core:hover { transform: none; }
  .btn-primary:hover, .btn-now:hover { transform: none; }
}

/* iOS date field: keep its height and left-aligned value when empty */
input[type=date] { display: block; -webkit-appearance: none; appearance: none; text-align: left; }
input[type=date]::-webkit-date-and-time-value { text-align: left; }

@media (max-width: 640px) {
  /* entry */
  .hero { margin: 3vh 0 16px; }
  .orbit-title { padding: 18px 8px; max-width: 100%; }
  .orbit-title h1 { font-size: clamp(30px, 10.5vw, 44px); letter-spacing: .12em; }
  .ring-a, .ring-b { inset: 0 6%; }
  .tag { font-size: 14px; }
  form.glass { padding: 18px 16px 14px; }
  .hint { text-align: left; max-width: 62%; align-self: flex-start; font-size: 12px; }

  /* star map */
  .map-head { grid-template-columns: auto 1fr; }
  .map-head > div:last-child { display: none; }
  .map-head h1 { font-size: 22px; text-align: right; }
  .map-head .muted { text-align: right; }
  .worlds { gap: 14px 8px; }
  .orb { width: 88px; height: 88px; }
  .wname { font-size: 16px; }

  /* reading header: back + actions on one row, name below */
  .results-head { grid-template-columns: 1fr auto; grid-template-areas: "back actions" "title title"; gap: 10px; }
  .results-head > button:first-child { grid-area: back; justify-self: start; }
  .results-head > div:nth-child(2) { grid-area: title; }
  .results-head .head-actions { grid-area: actions; }
  .results-head .btn-ghost { padding: 9px 12px; font-size: 13px; }
  .results-head h1 { font-size: 24px; }

  /* reading content */
  .core-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .core { padding: 12px 8px 10px; }
  .core .num { font-size: 38px; }
  .core .lbl { font-size: 10px; letter-spacing: .1em; }
  .flag { font-size: 12px; padding: 6px 11px; }
  .reading-top .big { font-size: 46px; min-width: 0; }
  .reading-top h2 { font-size: 20px; }
  .reading p.body, .reading .body { font-size: 15.5px; }
  .block { padding: 16px 14px; }
  .totals { grid-template-columns: 1fr; }
  .tally { gap: 3px; } .tally div { font-size: 11px; padding: 6px 0; }
  .grid9 { grid-template-columns: repeat(3, 56px); } .grid9 div { height: 56px; }
  .rv-block { padding: 20px 4px; }
  .rv-letter { padding: 24px 12px; }
  .worlds.small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .worlds.small .orb { width: 54px; height: 54px; }
  .worlds.small .wname { font-size: 12px; }
  .btn-now { padding: 16px 22px; width: 100%; }
  .btn-now span:not(.now-glow) { font-size: 20px; }
  .sheet { padding: 14px 10px 18px; border-radius: 8px; }
  .ws-items .ws-lbl { width: 34%; font-size: 12px; } .ws-items .ws-f { font-size: 12px; } .ws-items .ws-eq { font-size: 15px; }
  .ws-soul td, .ws-soul th { font-size: 12px; }
  table { font-size: 13px; }
  td, th { padding: 6px 6px; }

  /* the Oracle becomes a full-screen conversation */
  #oracle { padding: 0; align-items: stretch; }
  .or-hole { width: 120vw; height: 120vw; top: 18%; left: -10vw; }
  .or-panel { width: 100%; max-height: none; height: 100vh; height: 100dvh; border-radius: 0; border: 0;
    padding: calc(env(safe-area-inset-top) + 12px) max(14px, env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + 10px) max(14px, env(safe-area-inset-left)); }
  .or-head h2 { font-size: 22px; }
  .or-log { margin: 10px 0; }
  .or-msg { max-width: 100%; font-size: 15.5px; padding: 10px 13px; }
  .or-msg.oracle { font-size: 16px; }
  .or-chips, .or-lenses { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .or-chips::-webkit-scrollbar, .or-lenses::-webkit-scrollbar { display: none; }
  .or-chip, .or-lens { white-space: nowrap; flex: 0 0 auto; }
  #oracle.asked .or-chips { display: none; }
  .or-form { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 6px; }
  .or-mic { width: 46px; height: 46px; }
  .or-form .btn-primary { padding: 12px 14px; }
  .or-foot { font-size: 12px; }

  /* Be Here Now */
  .j-top { top: calc(env(safe-area-inset-top) + 10px); }
  .j-voice { max-width: 58%; font-size: 12px; }
  .j-caption { bottom: calc(env(safe-area-inset-bottom) + 96px); font-size: 19px; }
  .j-bottom { bottom: calc(env(safe-area-inset-bottom) + 14px); }
  .j-credit { flex-basis: 100%; margin-left: 0; order: 3; }

  /* lenses */
  .lens-card { padding: 14px 12px 6px; }
  .lens-card h3 { font-size: 21px; }
  .verse { font-size: 15px; }
}

/* short phones in landscape */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { margin: 8px 0; }
  .orbit-title h1 { font-size: 30px; }
  .j-caption { bottom: 64px; font-size: 16px; }
}

/* =====================================================================
   Accounts, Soul Profile, connections, messages, palm, eye, sky
   ===================================================================== */
/* account button */
.acct-btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.acct-corner { position: absolute; top: calc(var(--safe-top) + 14px); right: max(16px, env(safe-area-inset-right)); z-index: 3; background: rgba(10,4,24,.55); border: 1px solid var(--glass-border); color: var(--ink); border-radius: 999px; padding: 6px 12px 6px 6px; font: 14px var(--font-body); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.acct-corner:not(:has(.acct-avatar)) { padding: 8px 14px; }
.acct-avatar, .avatar-sm, .avatar-big { display: inline-grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #ffe08a, #ff8a5c); color: #1a0b2e; font-weight: 700; font-family: var(--font-display); }
.acct-avatar { width: 28px; height: 28px; font-size: 15px; }
.avatar-sm { width: 36px; height: 36px; font-size: 17px; flex: 0 0 36px; }
.avatar-big { width: 72px; height: 72px; font-size: 34px; flex: 0 0 72px; }
.acct-label { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-badge { min-width: 20px; height: 20px; border-radius: 999px; background: #ff5c6c; color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; padding: 0 6px; }

/* nudges */
.entry-cta { display: flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.entry-cta p { margin: 0; }
.big-cta { text-align: center; border-color: rgba(255,209,102,.45); background: radial-gradient(circle at 50% 0%, rgba(255,209,102,.16), var(--glass) 70%); }
.big-cta h2 { font-family: var(--font-display); font-weight: 400; color: var(--gold); margin: 0 0 6px; font-size: 26px; }
.big-cta p { line-height: 1.6; color: #f1e9ff; max-width: 62ch; margin: 0 auto 14px; }
.acct-cta.inline { margin-top: 14px; padding: 12px 14px; border-radius: 14px; border: 1px dashed rgba(255,209,102,.5); background: rgba(255,209,102,.06); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.acct-cta.inline p { margin: 0; font-size: 14px; }
.or-msg.nudge { border-style: dashed; }
.or-msg.nudge .btn-ghost { margin-top: 8px; }

/* typed date */
.date-row { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.cal-btn { width: 50px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.35); font-size: 20px; cursor: pointer; }
.cal-native { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* account sheet */
#acct-modal { position: fixed; inset: 0; z-index: 6; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(3,0,10,.72); }
#acct-modal.on { display: flex; animation: jin .4s ease both; }
.acct-sheet { position: relative; width: min(440px, 100%); padding: 22px 20px 16px; background: rgba(14,6,32,.94); max-height: 92vh; max-height: 92dvh; overflow-y: auto; }
.acct-x { position: absolute; top: 10px; right: 10px; padding: 6px 10px; }
.acct-tabs { display: flex; gap: 6px; margin: 0 40px 10px 0; }
.acct-tab { flex: 1; padding: 10px; border-radius: 12px; border: 1px solid var(--glass-border); background: transparent; color: var(--muted); font: 14px var(--font-body); cursor: pointer; }
.acct-tab.on { color: #1a0b2e; background: linear-gradient(135deg, #ffe08a, var(--gold-2)); border-color: transparent; font-weight: 600; }
.acct-reason { color: #f1e9ff; line-height: 1.55; font-size: 15px; margin: 6px 0 12px; }
#acct-form { display: grid; gap: 12px; }
#acct-form .check span { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--muted); }
#acct-form .check a { color: var(--gold); }

/* soul profile */
.profile-head { display: flex; gap: 16px; align-items: flex-start; }
.profile-head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 28px; }
.soc-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.soc-links a { font-size: 13px; color: var(--gold); border: 1px solid rgba(255,209,102,.35); border-radius: 999px; padding: 4px 10px; text-decoration: none; }
.profile-h { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin: 10px 0 0; color: var(--gold); }
.soul-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.soul-card { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.soul-card h3 { margin: 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.soul-card p { margin: 0; line-height: 1.55; font-size: 14.5px; }
.soul-card .btn-ghost { margin-top: auto; align-self: flex-start; }
.big-num { font-family: var(--font-display); font-size: 44px !important; color: var(--gold); line-height: 1 !important; }
.big3 { font-family: var(--font-display); font-size: 18px !important; line-height: 1.6 !important; }
.pitch h2 { font-family: var(--font-display); font-weight: 400; color: var(--gold); margin: 0 0 8px; }
.pitch-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.settings { display: grid; gap: 12px; }
.settings textarea, .settings select { width: 100%; font: 16px var(--font-body); color: var(--ink); background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 12px 14px; }
.settings select option { color: #000; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.danger { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.danger-btn { color: #ff9aa5; border-color: rgba(255,154,165,.4); }
.connect-search { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 10px; }
.person { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.pmeta { flex: 1; min-width: 0; font-size: 14px; }
.pmeta .muted { display: inline; text-align: left; font-size: 13px; }
.pbio { color: #e6dcff; font-size: 13px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pact { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.compat { margin: 0 0 8px 48px; padding: 8px 12px; border-left: 2px solid rgba(255,209,102,.5); font-size: 13.5px; line-height: 1.55; color: #f1e9ff; }
.compat p { margin: 4px 0; }
#conn-lists h4 { margin: 14px 0 2px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.thread { width: 100%; display: flex; gap: 12px; align-items: center; padding: 10px 6px; border: 0; border-bottom: 1px solid rgba(255,255,255,.07); background: transparent; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.thread .tmeta { flex: 1; min-width: 0; display: grid; }
.thread .tmeta .muted { text-align: left; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.thread.unread b { color: var(--gold); }

/* messages */
#msg-sheet { position: fixed; inset: 0; z-index: 6; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(3,0,10,.7); }
#msg-sheet.on { display: flex; }
.msg-panel { width: min(560px, 100%); height: min(80vh, 720px); display: flex; flex-direction: column; padding: 12px; background: rgba(12,5,28,.95); }
.msg-head { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--glass-border); }
.msg-head > div:nth-child(2) { display: grid; }
.msg-head .muted { text-align: left; margin: 0; font-size: 12px; }
.msg-menu { display: flex; gap: 2px; }
.msg-list { flex: 1; overflow-y: auto; padding: 12px 2px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 82%; padding: 9px 12px 6px; border-radius: 16px; line-height: 1.45; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg time { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }
.msg.mine { align-self: flex-end; background: linear-gradient(135deg, rgba(255,209,102,.25), rgba(255,138,92,.2)); border-bottom-right-radius: 4px; }
.msg.theirs { align-self: flex-start; background: rgba(255,255,255,.08); border-bottom-left-radius: 4px; }
.msg-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding-top: 8px; }
.msg-form .btn-primary { padding: 12px 16px; }
#msg-why { margin: 4px 0; text-align: center; }

/* toast */
#toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 24px); transform: translate(-50%, 20px); z-index: 9; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: rgba(20,10,45,.96); border: 1px solid rgba(255,209,102,.4); color: var(--ink); font-size: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* palm and eye */
.palm-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin-top: 12px; }
.palm-cols h3 { font-family: var(--font-display); font-weight: 400; font-size: 20px; margin: 0 0 8px; color: var(--gold); }
.palm-cols > div { display: grid; gap: 10px; align-content: start; }
.seg { display: flex; gap: 6px; }
.seg label { flex: 1; display: flex !important; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 12px; border: 1px solid var(--glass-border); cursor: pointer; font-size: 14px; }
.seg label:has(input:checked) { border-color: rgba(255,209,102,.6); background: rgba(255,209,102,.1); color: var(--gold); }
.seg input { accent-color: var(--gold); }
.tips { text-align: left !important; font-size: 13px !important; line-height: 1.5; margin: 0 !important; }
.photo-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.file-btn { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.previews { display: flex; gap: 8px; flex-wrap: wrap; }
.prev { position: relative; }
.prev img { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; border: 1px solid var(--glass-border); display: block; }
.prev button { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #ff5c6c; color: #fff; cursor: pointer; font-size: 15px; line-height: 1; }
.reading-wait { display: flex; align-items: center; gap: 14px; padding: 18px; }
.reading-wait p { margin: 0; font-family: var(--font-display); font-size: 18px; color: var(--gold); }
.orbit-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,209,102,.25); border-top-color: var(--gold); animation: spinRing 1s linear infinite; }
.retake { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(126,232,240,.08); border: 1px solid rgba(126,232,240,.4); line-height: 1.55; }
.guided { margin-top: 14px; padding: 16px; }
.guided h3 { font-family: var(--font-display); font-weight: 400; margin: 4px 0 12px; font-size: 20px; line-height: 1.4; }
.opts { display: grid; gap: 8px; }
.opt { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--glass-border); background: rgba(0,0,0,.25); color: var(--ink); font: 15px var(--font-body); cursor: pointer; }
.opt:hover, .opt:focus-visible { border-color: rgba(255,209,102,.6); }
.pat-list { display: grid; gap: 6px; }
.pat-list .check span { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ink); }
.pat-list .muted { display: inline; font-size: 12px; text-align: left; }
.kb { margin-top: 16px; }
.kb summary { cursor: pointer; color: var(--gold); }
.kb h3 { font-family: var(--font-display); font-weight: 400; color: var(--gold); margin: 16px 0 6px; }
.kb h4 { margin: 12px 0 4px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kb p { line-height: 1.6; font-size: 14.5px; }
.result { margin-top: 16px; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,209,102,.4); color: var(--gold); font-size: 13px; margin: 2px; }

/* sky */
.sky-form { display: grid; gap: 12px; margin-top: 10px; }
.time-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.time-row select { font: 16px var(--font-body); color: var(--ink); background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 0 12px; }
.time-row select option { color: #000; }
.cities { display: grid; gap: 4px; }
.city { text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--glass-border); background: rgba(0,0,0,.3); color: var(--ink); font: 15px var(--font-body); cursor: pointer; display: grid; }
.city .muted { text-align: left; margin: 0; font-size: 12px; }
.big3-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 4px; }
.big3-card { text-align: center; padding: 14px 8px; }
.big3-card .k { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.big3-card .g { font-size: 44px; line-height: 1.15; color: var(--gold); filter: drop-shadow(0 0 14px rgba(255,209,102,.45)); }
.big3-card .s { font-family: var(--font-display); font-size: 18px; }
.tiny { font-size: 11px !important; margin: 4px 0 0 !important; }
.planet-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.planet-table > div { display: grid; grid-template-columns: 24px 1fr; gap: 0 8px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.04); font-size: 14px; }
.planet-table .pg { grid-row: span 3; color: var(--gold); font-size: 18px; }
.planet-table .muted { text-align: left; margin: 0; font-size: 12px; }
.elements { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.elements div { text-align: center; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.04); display: grid; }
.elements span { font-family: var(--font-display); font-size: 24px; color: var(--gold); }

/* new world orbs */
.orb.wheel { background: radial-gradient(circle, #0b0b2a 0 38%, transparent 39%), conic-gradient(#ff7eb6 0 30deg, #ffd166 0 60deg, #9be89b 0 90deg, #7ee8f0 0 120deg, #8b5cf6 0 150deg, #ff7eb6 0 180deg, #ffd166 0 210deg, #9be89b 0 240deg, #7ee8f0 0 270deg, #8b5cf6 0 300deg, #ff7eb6 0 330deg, #ffd166 0); box-shadow: 0 0 34px rgba(140,160,255,.45); }
.orb.wheel i { inset: 30%; border-radius: 50%; background: radial-gradient(circle, #fff 0%, #ffe9a8 30%, transparent 70%); animation: spinRing 24s linear infinite; }
.orb.hand { background: radial-gradient(circle at 50% 55%, #ffd9b8 0%, #e8a27a 45%, #6b3a2a 80%, transparent 82%); box-shadow: 0 0 30px rgba(255,170,120,.45); }
.orb.hand::after { content: '✋'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.orb.iris { background: radial-gradient(circle, #000 0 16%, #3a8f7a 18%, #6fd3b0 34%, #2e5f9a 52%, #10203a 62%, #f4f4ff 64%, #d8d8f0 80%, transparent 82%); box-shadow: 0 0 34px rgba(120,220,220,.45); }
.orb.iris i { inset: 18%; border-radius: 50%; background: repeating-conic-gradient(rgba(255,255,255,.18) 0 4deg, transparent 4deg 12deg); mask: radial-gradient(circle, transparent 0 22%, #000 24% 60%, transparent 62%); -webkit-mask: radial-gradient(circle, transparent 0 22%, #000 24% 60%, transparent 62%); animation: spinRing 40s linear infinite; }
.orb.soul { background: radial-gradient(circle at 40% 35%, #fff 0%, #ffd1f0 20%, #b57cff 50%, #3a1a6e 80%, transparent 82%); box-shadow: 0 0 40px rgba(200,140,255,.55); }
.orb.soul::after { content: '✦'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; color: #fff; text-shadow: 0 0 16px #fff; }

@media (max-width: 640px) {
  .acct-corner .acct-label { display: none; }
  .acct-corner { padding: 4px; }
  .acct-corner:not(:has(.acct-avatar)) .acct-label { display: inline; }
  .results-head .acct-btn .acct-label { display: none; }
  .two, .palm-cols { grid-template-columns: 1fr; }
  .profile-head { gap: 12px; } .avatar-big { width: 56px; height: 56px; font-size: 26px; flex-basis: 56px; }
  .soul-grid { grid-template-columns: 1fr; }
  .big3-card .g { font-size: 34px; } .big3-card .s { font-size: 15px; }
  .elements span { font-size: 20px; }
  .compat { margin-left: 0; }
  #msg-sheet, #acct-modal { padding: 0; align-items: stretch; }
  .msg-panel { width: 100%; height: 100vh; height: 100dvh; border-radius: 0; padding: calc(env(safe-area-inset-top) + 8px) 12px calc(env(safe-area-inset-bottom) + 8px); }
  .acct-sheet { width: 100%; max-height: none; height: 100%; border-radius: 0; padding-top: calc(env(safe-area-inset-top) + 18px); }
  .big-cta h2 { font-size: 22px; }
}
.synth .small, .synth-actions .small { font-size: 13px; }
