@import url('/fonts/fonts.css');
:root {
  --bg: #0B0F19;
  --bg2: #10162A;
  --card: rgba(22, 31, 54, .65);
  --card-solid: #161F36;
  --inset: rgba(11, 15, 25, .55);
  --line: rgba(196, 181, 253, .14);
  --line-strong: rgba(196, 181, 253, .28);
  --text: #F9FAFB;
  --muted: #9CA3AF;
  --gold: #F3C969;
  --gold-soft: rgba(243, 201, 105, .14);
  --gold-line: rgba(243, 201, 105, .55);
  --gold-ink: #0B0F19;
  --lav: #A78BFA;
  --lilac: #C4B5FD;
  --lav-soft: rgba(167, 139, 250, .14);
  --ok: #86EFAC;
  --warn: #FCD34D;
  --bad: #FCA5A5;
  --radius: 16px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --symbols: 'Segoe UI Symbol', 'Noto Sans Symbols', 'Noto Sans Symbols 2', 'DejaVu Sans', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--sans); -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(520px 380px at 88% -6%, rgba(167, 139, 250, .20), transparent 70%), radial-gradient(460px 420px at -10% 38%, rgba(99, 102, 241, .10), transparent 70%), radial-gradient(420px 360px at 110% 85%, rgba(196, 181, 253, .08), transparent 70%), var(--bg); }
a { color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 8px; letter-spacing: .005em; }
h1 { font-size: 28px; }
h2 { font-size: 21px; }
h3 { font-size: 18px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }
.serif { font-family: var(--serif); }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 2px; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: rgba(11, 15, 25, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--text); }
.brand .ring { width: 40px; height: 40px; font-size: 18px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font: 700 11px/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--lilac); }
.brand-sub { font: 600 19px/1.25 var(--serif); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub:empty { display: none; }
.top-actions { display: flex; gap: 8px; flex: none; }

.ring { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold-line); background: radial-gradient(circle at 50% 35%, rgba(243, 201, 105, .16), rgba(243, 201, 105, .03) 70%); color: var(--gold); font: 22px/1 var(--symbols); box-shadow: 0 0 18px rgba(243, 201, 105, .12); }
.ring.lg { width: 56px; height: 56px; font-size: 28px; }
.ring.sm { width: 30px; height: 30px; font-size: 14px; }
.ring.lav { border-color: rgba(167, 139, 250, .6); color: var(--lilac); background: radial-gradient(circle at 50% 35%, rgba(167, 139, 250, .18), rgba(167, 139, 250, .03) 70%); box-shadow: 0 0 18px rgba(167, 139, 250, .14); }

.chip { appearance: none; border: 1px solid var(--line-strong); background: var(--lav-soft); color: var(--text); border-radius: 999px; padding: 6px 14px; font: 600 13px var(--sans); letter-spacing: .02em; cursor: pointer; min-height: 32px; }
.chip.on { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
a.chip { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.chip.on .glyph { color: var(--gold-ink); }
.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 6px 14px; font: 600 13px/1.3 var(--sans); letter-spacing: .02em; background: var(--lav-soft); border: 1px solid rgba(167, 139, 250, .35); color: var(--lilac); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }

.view { max-width: 560px; margin: 0 auto; padding: 16px; }
.banner { background: #2A2210; color: var(--warn); font-size: 14px; padding: 8px 16px; text-align: center; }

.card { position: relative; background: var(--card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); border-top-color: var(--gold-line); border-radius: var(--radius); padding: 18px 16px; margin: 0 0 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.card.gold { border-color: var(--gold-line); box-shadow: 0 0 0 1px rgba(243, 201, 105, .08) inset, 0 10px 30px rgba(0, 0, 0, .25); }
.card.flat { background: var(--inset); backdrop-filter: none; -webkit-backdrop-filter: none; border-top-color: var(--line); box-shadow: none; }
.eyebrow { font: 700 11.5px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--lilac); margin-bottom: 6px; display: block; }
.eyebrow.gold { color: var(--gold); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.card-head h2, .card-head h3 { margin: 0; }
.more { flex: none; font: 600 13px var(--sans); letter-spacing: .03em; color: var(--gold); text-decoration: none; padding: 4px 0; white-space: nowrap; }

.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spread { justify-content: space-between; }

.dateline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 14px; flex-wrap: wrap; }
.dateline .date { font: 600 13px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.dateline .date::before { content: '✦'; color: var(--gold); margin-right: 10px; }

.signcard { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 999px; background: var(--card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); margin: 0 0 14px; }
.signcard .who { flex: 1; min-width: 0; }
.signcard .nm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 600 20px/1.2 var(--serif); }
.signcard .meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.tag { display: inline-block; font: 600 12px/1.4 var(--sans); letter-spacing: .02em; padding: 2px 10px; border-radius: 999px; background: var(--lav-soft); border: 1px solid rgba(167, 139, 250, .3); color: var(--lilac); }
.tag.gold { background: var(--gold-soft); border-color: rgba(243, 201, 105, .35); color: var(--gold); }
.tag.ok { background: rgba(134, 239, 172, .12); border-color: rgba(134, 239, 172, .3); color: var(--ok); }
.iconbtn { appearance: none; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--inset); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.iconbtn svg { transition: transform .2s; }
.iconbtn[aria-expanded=true] svg { transform: rotate(180deg); }
.signgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: -4px 0 16px; }
.signgrid a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; background: var(--inset); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 13px; }
.signgrid a .glyph { font-size: 20px; width: auto; }
.signgrid a.on { border-color: var(--gold); background: var(--gold-soft); }

.segment { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 999px; background: var(--inset); border: 1px solid var(--line); margin: 0 0 16px; }
.segment a { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 999px; color: var(--text); text-decoration: none; font: 600 15px var(--sans); }
.segment a.on { background: var(--gold); color: var(--gold-ink); box-shadow: 0 4px 16px rgba(243, 201, 105, .25); }

.guide-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.guide-head h2 { font-size: 20px; margin: 0; }
.guide-head .eyebrow { margin-bottom: 2px; }
.forecast { font: italic 400 20px/1.6 var(--serif); color: var(--text); margin: 14px 0 16px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fact { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 12px; background: var(--inset); border: 1px solid var(--line); font-size: 14px; min-width: 0; }
.fact span { color: var(--muted); font-size: 12.5px; letter-spacing: .04em; }
.fact b { font-weight: 600; color: var(--text); text-align: right; }
.fact.wide { grid-column: 1 / -1; }
.fact.wide b { color: var(--gold); }

.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--gold); color: var(--gold-ink); font: 700 16px var(--sans); letter-spacing: .01em; cursor: pointer; text-decoration: none; width: 100%; box-shadow: 0 6px 22px rgba(243, 201, 105, .22); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); box-shadow: none; }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid rgba(252, 165, 165, .45); box-shadow: none; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.inline { width: auto; }
.row > .btn { flex: 1; }

label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .03em; color: var(--muted); margin: 12px 0 6px; }
input, select, textarea { width: 100%; font: 16px var(--sans); color: var(--text); background: var(--inset); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; color-scheme: dark; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(243, 201, 105, .18); }
select option { background: var(--card-solid); color: var(--text); }
textarea { min-height: 96px; resize: vertical; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--gold); padding: 0; }
.check { display: flex; gap: 10px; align-items: center; color: var(--text); margin: 12px 0; font-weight: 500; letter-spacing: 0; font-size: 15px; }
.suggest { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; }
.suggest li { padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; background: var(--card-solid); }
.suggest li:last-child { border-bottom: 0; }
.suggest li.picked, .suggest li:hover { background: #222B4A; }

.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 6; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(11, 15, 25, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 10px; font-size: 12px; font-weight: 500; color: var(--muted); text-decoration: none; }
.tabs a svg { width: 24px; height: 24px; }
.tabs a.on { color: var(--gold); font-weight: 700; }

.disclaimer { font-size: 12.5px; color: var(--muted); text-align: center; margin: 22px 8px 8px; letter-spacing: .02em; }
.disclaimer::before, .disclaimer::after { content: '✦'; color: var(--lav); margin: 0 6px; }

.mini { display: grid; grid-template-columns: 132px 1fr; gap: 12px; align-items: center; }
.mini .wheel { max-width: 132px; margin: 0; }
.mini-facts { display: grid; gap: 8px; min-width: 0; }
.mini-facts .fact { flex-direction: column; align-items: flex-start; gap: 2px; }
.mini-facts .fact b { text-align: left; font-family: var(--serif); font-size: 17px; }
.mini-facts .fact b .glyph { color: var(--gold); }

.duo { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; padding: 16px 8px; border-radius: 14px; background: var(--inset); border: 1px solid var(--line); text-align: center; }
.duo .side { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.duo .side b { font-weight: 600; font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duo .side span { font-size: 12.5px; color: var(--muted); }
.duo .link { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--lilac); max-width: 92px; }
.duo .link svg { display: block; margin: 0 auto 4px; }
.quote { font: italic 400 17px/1.55 var(--serif); text-align: center; color: var(--text); margin: 14px 4px 4px; }

.tarot { perspective: 900px; }
.tarot-stage { position: relative; border-radius: 14px; border: 1px solid var(--gold-line); padding: 22px 14px 18px; background: repeating-linear-gradient(45deg, rgba(243, 201, 105, .05) 0 1px, transparent 1px 16px), repeating-linear-gradient(-45deg, rgba(243, 201, 105, .05) 0 1px, transparent 1px 16px), var(--inset); text-align: center; }
.tarot-stage::before, .tarot-stage::after { content: '✦'; position: absolute; color: var(--gold); font-size: 12px; top: 10px; left: 12px; }
.tarot-stage::after { left: auto; right: 12px; }
.tarot-card { position: relative; width: 150px; height: 240px; margin: 0 auto 16px; transform-style: preserve-3d; transition: transform .7s; cursor: pointer; }
.tarot-card.open { transform: rotateY(180deg); }
.tarot-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 12px; border: 1px solid var(--gold); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px; }
.tarot-back { background: radial-gradient(circle at 50% 50%, rgba(243, 201, 105, .12), transparent 60%), repeating-linear-gradient(45deg, #141B30 0 9px, #10162A 9px 18px); color: var(--gold); }
.tarot-back svg { width: 84px; height: 84px; }
.tarot-front { transform: rotateY(180deg); background: linear-gradient(180deg, #1E2848, #10162A); }
.tarot-front .num { font-family: var(--serif); color: var(--gold); font-size: 22px; }
.tarot-front .glyph { font-size: 52px; margin: 8px 0; color: var(--gold); width: auto; }
.tarot-front .nm { font-family: var(--serif); font-size: 17px; }
.tarot-stage .btn { width: auto; max-width: 100%; }
.tarot-stage .hint { color: var(--lilac); font-size: 13.5px; margin: 12px 0 0; }
#tarot-text { margin-top: 16px; }
#tarot-text h3 { font-size: 20px; }

.planets { display: grid; gap: 0; font-size: 14px; margin-top: 12px; border-radius: 12px; background: var(--inset); border: 1px solid var(--line); padding: 4px 14px; }
.planets div { display: flex; gap: 8px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); }
.planets div:last-child { border-bottom: 0; }
.planets div .muted { margin-left: auto; text-align: right; }
.glyph { color: var(--gold); width: 1.2em; text-align: center; font-family: var(--symbols); }
.wheel { display: block; width: 100%; max-width: 358px; height: auto; margin: 0 auto 8px; }
.wheel-wrap { padding: 12px; margin-bottom: 16px; }
.big3 { display: grid; gap: 12px; }
.big3 .card { margin: 0; }
.big3 .card-head { align-items: center; justify-content: flex-start; margin-bottom: 8px; }
.subtle { font-size: 14px; color: var(--muted); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 4px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 600; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.report h3 { margin-top: 18px; }
.report .asp { color: var(--muted); font-size: 14px; margin-top: -4px; }
.locked { text-align: center; }
.locked .ring { margin: 0 auto 12px; }
.locked p { color: var(--muted); }

.score { width: 140px; height: 140px; margin: 6px auto 10px; display: block; }
.bubble { background: var(--inset); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; margin: 0 0 10px; }
.bubble.me { background: var(--lav-soft); border-color: rgba(167, 139, 250, .3); margin-left: 32px; border-bottom-right-radius: 6px; }
.bubble.astro { margin-right: 12px; font: italic 400 17px/1.6 var(--serif); border-top-color: var(--gold-line); border-bottom-left-radius: 6px; }
.person { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.person:last-child { border-bottom: 0; }
.person .who { min-width: 0; }
.person .who b { display: block; font-family: var(--serif); font-size: 17px; font-weight: 600; }
.person .who span { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-slot { border: 1px dashed var(--line-strong); border-radius: var(--radius); min-height: 60px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; margin: 0 0 16px; }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 9; background: var(--gold); color: var(--gold-ink); font-weight: 700; padding: 12px 14px; border-radius: 999px; text-align: center; }
.err { color: var(--bad); font-size: 14px; margin-top: 6px; }
.status-grid { display: grid; grid-template-columns: 74px repeat(7, 1fr); gap: 3px; font-size: 11px; }
.status-grid div { padding: 4px 2px; text-align: center; border-radius: 4px; background: var(--inset); }
.status-grid .s { background: rgba(134, 239, 172, .18); color: var(--ok); }
.status-grid .d { background: var(--gold-soft); color: var(--gold); }
.status-grid .h { background: transparent; color: var(--muted); text-align: left; }
.page-head { margin: 4px 0 14px; }
.page-head h1 { margin: 0 0 4px; }
pre.mail { white-space: pre-wrap; font: 14px/1.5 var(--sans); color: var(--text); margin: 0; }
dialog { background: var(--card-solid); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; max-width: 360px; }
dialog::backdrop { background: rgba(0, 0, 0, .6); }
@media (prefers-reduced-motion: reduce) { .tarot-card, .iconbtn svg { transition: none; } }
body.plain { padding-bottom: 24px; }
.plain-head { padding: 14px 16px; border-bottom: 1px solid var(--line); font: 600 13px var(--sans); color: var(--muted); }
.plain-head a { color: var(--gold); text-decoration: none; font: 600 20px var(--serif); margin-right: 6px; }
.plain-main { max-width: 560px; margin: 0 auto; padding: 16px; }
.duo .score { width: 96px; height: 96px; margin: 0 auto; }
.duo .link:has(.score) { max-width: 100px; }
::placeholder { color: #9CA3AF; opacity: 1; }
