:root {
  --ink: #f8f5ed;
  --muted: #aaa6b8;
  --bg: #10101d;
  --panel: rgba(255,255,255,.075);
  --line: rgba(255,255,255,.12);
  --coral: #ff907d;
  --lilac: #c8b9ff;
  --sage: #a8c5a1;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; min-height: var(--tg-viewport-stable-height, 100vh); color: var(--ink); background: radial-gradient(circle at 80% -10%, #383057 0, transparent 35%), radial-gradient(circle at 0 35%, #252143 0, transparent 40%), var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.sky { position: fixed; inset: 0; pointer-events: none; overflow: hidden; opacity: .7; }
.sky span { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: white; box-shadow: 42px 82px white, 131px 26px #c8b9ff, 245px 92px white, 330px 43px white, 390px 175px #ff907d, 83px 241px white, 310px 300px #c8b9ff, 25px 460px white, 365px 590px white, 160px 650px #c8b9ff; }
.sky span:nth-child(1) { left: 3%; top: 2%; }
.sky span:nth-child(2) { left: 24%; top: 31%; transform: scale(.65); opacity: .55; }
.sky span:nth-child(3) { right: 5%; top: 54%; transform: scale(.45); opacity: .4; }
.app-shell { position: relative; max-width: 540px; min-height: 100vh; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 20px calc(104px + env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; border: 0; background: none; padding: 0; text-align: left; }
.brand-mark { flex: 0 0 38px; width: 38px; height: 38px; filter: drop-shadow(0 0 16px rgba(200,185,255,.18)); }
.brand-lockup { display: grid; min-width: 0; gap: 3px; line-height: 1; }
.brand-lockup b { white-space: nowrap; letter-spacing: .12em; font-size: 10px; font-weight: 900; }
.brand-lockup small { color: var(--muted); letter-spacing: .13em; font-size: 6px; font-weight: 750; }
.language-toggle { min-width: 38px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: rgba(255,255,255,.055); font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.user-chip { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: linear-gradient(135deg, var(--lilac), var(--coral)); color: #201b2a; font-weight: 800; }
.view { display: none; animation: rise .38s ease both; }
.view.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.sign-hero { display: flex; align-items: end; justify-content: space-between; padding: 52px 2px 30px; }
.eyebrow { margin: 0 0 9px; color: var(--coral); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 14vw, 70px); line-height: .83; letter-spacing: -.05em; font-weight: 500; }
h1 em { color: var(--lilac); font-size: .42em; font-weight: 400; letter-spacing: -.02em; }
.zodiac-orb { display: grid; place-items: center; flex: 0 0 94px; height: 94px; border: 1px solid rgba(200,185,255,.36); border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.17), rgba(200,185,255,.05) 58%, transparent); box-shadow: inset 0 0 30px rgba(200,185,255,.08), 0 16px 55px rgba(0,0,0,.22); }
.zodiac-orb span { font-family: Georgia, serif; font-size: 39px; line-height: 1; }
.zodiac-orb small { color: var(--muted); font-size: 7px; letter-spacing: .18em; font-weight: 800; }
.period-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.16); }
.period-tab { border: 0; border-radius: 10px; padding: 11px 6px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; }
.period-tab.active { color: #231e2d; background: var(--ink); }
.reading-card { position: relative; margin-top: 14px; padding: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.045)); backdrop-filter: blur(18px); box-shadow: 0 22px 65px rgba(0,0,0,.22); }
.card-topline { display: flex; justify-content: flex-end; align-items: center; }
.cosmic-score { display: flex; align-items: baseline; gap: 2px; color: var(--muted); font-size: 10px; }
.cosmic-score b { color: var(--ink); font-size: 14px; }
.reading-loader { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; border-radius: inherit; background: rgba(16,16,29,.62); backdrop-filter: blur(5px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, visibility .18s ease; }
.reading-card.is-loading .reading-loader { opacity: 1; visibility: visible; }
.loading-orbit { position: relative; width: 42px; height: 42px; border: 2px solid rgba(200,185,255,.2); border-top-color: var(--lilac); border-right-color: var(--coral); border-radius: 50%; animation: orbit-spin .8s linear infinite; box-shadow: 0 0 24px rgba(200,185,255,.16); }
.loading-orbit::after { content: ""; position: absolute; top: 3px; right: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 12px rgba(255,144,125,.7); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.reading { min-height: 112px; margin: 25px 0 28px; font-family: Georgia, serif; font-size: 22px; line-height: 1.42; letter-spacing: -.018em; }
.meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.meter { display: grid; grid-template-columns: 1fr auto; gap: 7px; align-items: center; color: var(--muted); font-size: 9px; }
.meter b { color: var(--ink); font-size: 10px; }
.meter i { grid-column: 1 / -1; height: 3px; overflow: hidden; background: rgba(255,255,255,.1); border-radius: 4px; }
.meter u { display: block; width: 50%; height: 100%; border-radius: 4px; background: var(--coral); text-decoration: none; transition: width .5s ease; }
.meter:nth-child(2) u { background: var(--lilac); }.meter:nth-child(3) u { background: var(--sage); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 30px 2px 13px; }
.section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.section-heading span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.toolkit-grid { display: grid; grid-template-columns: 1.45fr .85fr; gap: 11px; }
.tool-card { position: relative; min-height: 142px; padding: 18px; overflow: hidden; border-radius: 21px; }
.tool-card::after { content: ""; position: absolute; width: 110px; height: 110px; border: 1px solid currentColor; border-radius: 50%; opacity: .12; right: -45px; bottom: -48px; }
.affirmation-card { color: #27222c; background: var(--coral); }
.lucky-card { color: #25212c; background: var(--lilac); }
.tool-card p { margin: 14px 0 7px; font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.tool-card h3 { max-width: 230px; margin: 0; font-family: Georgia, serif; font-size: 17px; line-height: 1.25; font-weight: 500; }
.tool-icon { font-size: 18px; }
.lucky-card strong { display: block; font-family: Georgia, serif; font-size: 48px; line-height: .9; font-weight: 400; }
.lucky-card small { font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.color-dot { display: inline-block; width: 8px; height: 8px; margin: 11px 5px 0 0; border: 1px solid rgba(0,0,0,.2); border-radius: 50%; background: var(--sage); }
.share-button { width: 100%; margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.04); font-size: 12px; font-weight: 750; }
.share-button span { margin-right: 6px; color: var(--coral); }
.disclaimer { margin: 14px auto 2px; color: #777383; text-align: center; font-size: 8px; }.disclaimer a { color: var(--muted); text-underline-offset: 2px; }
.seo-intro { margin-top: 30px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.035); }
.seo-intro h2 { margin: 0; font-family: Georgia, serif; font-size: 20px; line-height: 1.2; font-weight: 500; }
.seo-intro p { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.page-intro { padding: 55px 2px 32px; }.page-intro.compact { padding-bottom: 25px; }
.page-intro h1 { font-size: clamp(45px, 13vw, 65px); }
.page-intro > p:last-child { max-width: 330px; margin: 24px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.match-picker { display: grid; grid-template-columns: 1fr 45px 1fr; align-items: center; }
.match-sign { min-width: 0; padding: 22px 8px 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); }
.match-sign span { display: block; font-family: Georgia, serif; color: var(--lilac); font-size: 42px; }.match-sign b { display: block; margin-top: 8px; font-family: Georgia, serif; font-size: 18px; }.match-sign small { color: var(--muted); font-size: 7px; letter-spacing: .16em; }
.orbit-link { position: relative; z-index: 1; display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; margin: 0 -1px; background: var(--coral); color: #27222c; box-shadow: 0 0 30px rgba(255,144,125,.28); }
.compatibility-card { display: grid; grid-template-columns: 78px 1fr; gap: 18px; align-items: center; margin-top: 15px; padding: 20px; border-radius: 23px; color: #24202b; background: var(--sage); }
.score-ring { display: grid; place-items: center; grid-template-columns: auto auto; width: 72px; height: 72px; border: 1px solid rgba(0,0,0,.2); border-radius: 50%; }.score-ring strong { font-family: Georgia, serif; font-size: 29px; }.score-ring small { font-size: 10px; }
.compatibility-card h2 { margin: 3px 0 0; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }.compatibility-card div > p { margin: 0; font-size: 7px; font-weight: 900; letter-spacing: .14em; }.compatibility-card > p { grid-column: 1 / -1; margin: 0; font-size: 12px; line-height: 1.55; }
.quick-insights { display: grid; gap: 8px; margin-top: 14px; }.quick-insights div { display: grid; grid-template-columns: 35px 1fr auto; align-items: center; padding: 13px 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }.quick-insights span { color: var(--coral); font-size: 20px; }.quick-insights p { margin: 0; color: var(--muted); font-size: 11px; }.quick-insights b { font-family: Georgia, serif; font-size: 13px; font-weight: 500; }
.sign-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.sign-grid-heading { display: flex; justify-content: space-between; align-items: center; margin: 4px 2px 11px; }.sign-grid-heading span { color: var(--coral); font-size: 8px; font-weight: 900; letter-spacing: .16em; }.sign-grid-heading small { color: var(--muted); font-size: 8px; }
.sign-option { position: relative; min-height: 104px; padding: 13px 8px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.045); text-align: center; }.sign-option.active { color: #24202b; border-color: transparent; background: var(--lilac); }.sign-option .glyph { display: block; font-family: Georgia, serif; font-size: 31px; }.sign-option b { display: block; margin-top: 5px; overflow-wrap: anywhere; font-family: Georgia, serif; font-size: 14px; font-weight: 500; }.sign-option small { color: var(--muted); font-size: 7px; }.sign-option.active small { color: rgba(36,32,43,.6); }
.profile-note { display: flex; gap: 14px; margin-top: 14px; padding: 18px; border-radius: 18px; background: var(--coral); color: #2b232b; }.profile-note > span { font-size: 22px; }.profile-note b { font-family: Georgia, serif; font-size: 16px; font-weight: 500; }.profile-note p { margin: 5px 0 0; font-size: 10px; line-height: 1.45; opacity: .75; }
.bottom-nav { position: fixed; z-index: 20; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3, 1fr); width: min(calc(100% - 28px), 510px); padding: 5px; transform: translateX(-50%); border: 1px solid var(--line); border-radius: 22px; background: rgba(25,23,38,.88); box-shadow: 0 16px 50px rgba(0,0,0,.35); backdrop-filter: blur(20px); }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; border-radius: 17px; padding: 10px 4px 9px; color: #7e798a; background: transparent; }.nav-item span { font-size: 21px; line-height: 1; }.nav-item b { font-size: 9px; line-height: 1.15; letter-spacing: .03em; }.nav-item.active { color: var(--ink); background: rgba(255,255,255,.075); }.nav-item.active span { color: var(--coral); }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 104px; padding: 11px 17px; border-radius: 100px; color: #24202b; background: var(--ink); font-size: 11px; font-weight: 750; opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: .25s ease; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 700px) { body::before { content: ""; position: fixed; inset: 0; background: radial-gradient(circle at 50% 50%, transparent 0 280px, rgba(0,0,0,.16)); pointer-events: none; }.app-shell { border-inline: 1px solid rgba(255,255,255,.05); } }
@media (max-width: 420px) { .user-chip > span:first-child { display: none; } }
@media (max-width: 360px) { .app-shell { padding-inline: 14px; }.reading-card { padding: 18px; }.sign-hero { padding-top: 38px; }.zodiac-orb { flex-basis: 82px; height: 82px; }.section-heading span { display: none; }.sign-option b { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
