/* Design tokens measured from the reference app (computed styles), see research/original/design-tokens.json */
:root {
  --bg: #1f2b31;
  --bg-deep: #0a151a;
  --bg-mid: #132026;
  --card: #0e1a20;
  --card-2: #273238;
  --row: #1f2b31;
  --line: rgba(255, 255, 255, .08);
  --text: #fff;
  --text-2: rgba(255, 255, 255, .7);
  --text-3: rgba(255, 255, 255, .5);
  --green-1: #6fa600;
  --green-2: #4c7300;
  --green: #98d916;
  --tile-green: #7cb518;
  --red: #f27067;
  --badge-red: #d9554c;
  --teal: #14d5c2;
  --teal-1: #27baa7;
  --teal-2: #247583;
  --gold-1: #bfa147;
  --gold-2: #8c722a;
  --gold: #f2e6c4;
  --pro: #f9d05d;
  --nav: #1e3b48;
  --sheet: #1e3442;
  --sand: linear-gradient(50deg, #e5a87f, #ecbf98, #f7e6c4, #e5a87f);
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --head: 'Philosopher', Georgia, serif;
  --body: 'Open Sans', system-ui, sans-serif;
  --symbols: 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'DejaVu Sans', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg-deep); color: var(--text); font: 600 13px/1.45 var(--body); }
#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; background: var(--bg); position: relative; overflow-x: hidden; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; }
p { margin: 0 0 .6em; font-weight: 400; }
a { color: var(--teal); }
button { font-family: inherit; color: inherit; }
.muted { color: var(--text-3); }
.small { font-size: 12px; }
.fine { font-size: 10px; font-weight: 400; }
.xs { font-size: 9px; letter-spacing: .12em; font-weight: 700; }
.caps { text-transform: uppercase; letter-spacing: .12em; font-size: 10px; }
.center { text-align: center; }
.gold { color: var(--gold-1); }
.white { color: #fff !important; }
.hidden, [hidden] { display: none !important; }
.screen { min-height: 100dvh; display: flex; flex-direction: column; }

/* ---------- buttons & icons ---------- */
.btn { border: 0; border-radius: var(--r-lg); padding: 14px 20px; font: 600 14px var(--body); cursor: pointer; transition: transform .12s, opacity .2s; color: #fff; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .35; cursor: default; }
.btn.wide { width: 100%; }
.btn.primary { background: linear-gradient(var(--green-1), var(--green-2)); }
.btn.gold { background: linear-gradient(var(--gold-1), var(--gold-2)); }
.btn.teal { background: linear-gradient(var(--teal-1), var(--teal-2)); font: 700 18px var(--head); border-radius: 50px; padding: 17px; width: 100%; }
.btn.secondary { background: linear-gradient(#475359, #2d3a40); font-size: 13px; }
.btn.link { background: none; color: var(--text-3); text-decoration: underline; margin-top: 10px; }
.btn.tiny { padding: 7px 14px; border-radius: 10px; font-size: 12px; flex: none; }
.btn.teal-btn { background: rgba(0, 238, 219, .12); color: var(--teal); letter-spacing: .1em; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon .fill { fill: currentColor; stroke: none; }
.icon-btn { background: none; border: 0; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; color: var(--text-2); padding: 0; }
.icon-btn.sm { width: 28px; height: 28px; }
.icon-btn.sm .icon { width: 18px; height: 18px; }
.round-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; background: none; cursor: pointer; }
.round-btn .art { width: 34px; height: 34px; }
.link-btn { background: none; border: 0; color: var(--text-2); font: 600 15px var(--head); display: flex; align-items: center; cursor: pointer; }
.link-btn .icon { width: 16px; height: 16px; }

/* ---------- zodiac emblem ---------- */
.emblem { display: inline-grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #2c4b56, #0f1f26 70%); color: var(--gold); font-family: var(--symbols); flex: none; }
.emblem.xs { width: 30px; height: 30px; font-size: 15px; }
.emblem.sm { width: 36px; height: 36px; font-size: 18px; }
.emblem.md { width: 56px; height: 56px; font-size: 26px; }
.emblem.lg { width: 84px; height: 84px; font-size: 40px; }
.emblem.xl { width: 130px; height: 130px; font-size: 64px; }
.emblem.ring { box-shadow: 0 0 0 2px rgba(255, 255, 255, .15), 0 0 0 7px rgba(255, 255, 255, .04); }
.emblem.halo { box-shadow: 0 0 0 2px rgba(255, 255, 255, .25), 0 0 26px rgba(160, 220, 255, .25); }
.emblem.glow { background: radial-gradient(circle at 50% 45%, #f7e6c4, #e5a87f 60%); color: #132026; box-shadow: 0 0 0 10px rgba(242, 230, 196, .08), 0 0 50px rgba(242, 200, 140, .35); }
.emblem.q { color: var(--text-2); font: 700 30px var(--head); background: var(--bg-deep); }

/* ---------- welcome & login ---------- */
.welcome { background: var(--sand); color: #132026; text-align: center; position: relative; overflow: hidden; }
.welcome-top { padding: 28px 24px 0; }
.welcome h1 { font: 700 36px var(--head); margin-bottom: 8px; }
.welcome-top p { font-size: 14px; max-width: 330px; margin: 0 auto; }
.wheel { fill: none; stroke: currentColor; stroke-width: 1.2; }
.wheel .core { fill: #132026; }
.wheel .glyphs text { fill: currentColor; stroke: none; font-size: 17px; text-anchor: middle; dominant-baseline: central; font-family: var(--symbols); }
.wheel .tris .tri { stroke: #c96b4f; stroke-width: 1; }
.wheel .sun { stroke: #ecbf98; stroke-width: 1.5; }
.wheel .sun circle { fill: #ecbf98; }
.wheel.hero { width: min(76vw, 300px); margin: 36px auto 0; color: #132026; }
.ridge { margin-top: auto; line-height: 0; }
.ridge .art { width: 100%; height: 70px; display: block; }
.welcome-bottom { background: #101d23; padding: 40px 22px 24px; color: var(--text); }
.welcome-new { margin: 18px 0 8px; color: var(--teal); font: 400 16px var(--body); }
.welcome-new a { font-weight: 700; color: var(--teal); }
.welcome-help { color: var(--text-3); font-size: 12px; text-align: center; }
.welcome-help a { color: var(--text-2); font-weight: 700; }
.login { background: var(--bg-mid); padding: 0 20px 24px; text-align: center; }
.login-title { font: 700 32px var(--head); margin: 20px 0 8px; }
.login-form { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 18px; }
.forgot { align-self: flex-end; margin: 10px 0 24px; font-size: 13px; }
.form-error { color: var(--red); font-size: 13px; min-height: 1em; margin: 6px 2px 0; }
.form-error:empty { display: none; }
.palm-status { color: var(--text-2); font-size: 13px; margin: 6px 2px 0; text-align: center; }

/* ---------- onboarding ---------- */
.onboarding { background: var(--bg-mid); padding: 0 16px 16px; }
.ob-head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; height: 56px; }
.brand { display: flex; justify-content: center; align-items: center; gap: 8px; font: 700 17px var(--head); color: var(--gold); }
.brand .art { width: 30px; height: 30px; }
.step-count { color: var(--text-3); font-size: 12px; text-align: center; margin: 8px 0 18px; }
.progress { height: 4px; background: var(--card-2); border-radius: 9px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-1), var(--teal)); transition: width .3s; }
.ob-body { flex: 1; }
.ob-title { font: 700 27px var(--head); text-align: center; color: var(--gold); margin-bottom: 12px; }
.ob-lead { text-align: center; color: var(--text-2); font-size: 14px; }
.ob-sub { margin-top: 110px; color: var(--text-2); font-size: 16px; text-align: center; }
.ob-foot { color: var(--text-3); font: 400 12px var(--body); text-align: center; margin-top: 18px; }
.ob-foot a { color: var(--text-3); margin: 0 3px; }
.field { width: 100%; padding: 15px 16px; border-radius: var(--r-md); border: 1px solid transparent; background: #2d3a40; color: var(--text); font: 400 16px var(--body); margin-top: 18px; }
.field:focus { outline: none; border-color: var(--teal); }
.field.slim { margin: 0; padding: 12px 14px; font-size: 13px; background: rgba(255, 255, 255, .05); }
.sign-hint { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 18px; color: var(--text-2); font-size: 14px; }
.choice-grid { display: grid; gap: 8px; margin-top: 16px; }
.choice-grid.three { grid-template-columns: repeat(3, 1fr); }
.choice-grid.two { grid-template-columns: repeat(2, 1fr); }
.choice-list { display: grid; gap: 10px; margin-top: 20px; }
.choice { background: #33464e; border: 2px solid transparent; border-radius: var(--r-lg); padding: 44px 6px 34px; font: 600 14px var(--body); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.choice.row { flex-direction: row; justify-content: flex-start; padding: 17px 20px; border-radius: var(--r-md); }
.choice-grid.two .choice { padding: 18px 6px; }
.choice.on { border-color: var(--teal); background: #2c4f55; }
.choice-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--teal-1); display: grid; place-items: center; }
.choice-icon .icon { stroke: #fff; stroke-width: 2.2; }
.suggest { list-style: none; padding: 0; margin: 8px 0 0; border-radius: var(--r-md); overflow: hidden; }
.suggest button { width: 100%; text-align: left; background: #2d3a40; border: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; font: 600 15px var(--body); display: flex; flex-direction: column; cursor: pointer; }
.suggest li.muted { padding: 12px 4px; }
.loader-wrap { text-align: center; }
.wheel.spin { width: 190px; margin: 10px auto 26px; color: var(--gold); display: block; animation: spin 14s linear infinite; }
.wheel.spin .core { fill: var(--bg-mid); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wheel.spin { animation: none; } }
.checks { list-style: none; padding: 0; text-align: left; max-width: 270px; margin: 18px auto; font-size: 15px; }
.checks li { padding: 9px 0 9px 32px; position: relative; color: var(--text-3); transition: color .3s; }
.checks li::before { content: ''; position: absolute; left: 0; top: 11px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--card-2); transition: .3s; }
.checks li.done { color: var(--text); }
.checks li.done::before { background: var(--teal-1); border-color: var(--teal-1); }

/* ---------- app shell ---------- */
.tabbed { background: var(--bg); }
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 10px 14px; position: sticky; top: 0; z-index: 5; background: var(--bg); }
.top-left { justify-self: start; }
.top-right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.top-title { font: 700 23px var(--head); color: var(--gold); text-align: center; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.pro-badge { position: relative; border: 0; cursor: pointer; background: linear-gradient(#ffe27a, #f2c445); color: #2a2510; font: 700 14px var(--body); padding: 3px 10px; border-radius: 6px; transform: skew(-6deg); }
.pro-badge::after { content: '✦'; position: absolute; top: -9px; right: -7px; color: #fff; font-size: 12px; transform: skew(6deg); }
.avatar-btn { width: 32px; height: 32px; border: 0; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #415a63, #23343b); color: #f3d9b8; display: grid; place-items: center; cursor: pointer; padding: 0; overflow: hidden; }
.avatar-btn .icon { width: 28px; height: 28px; margin-top: 6px; }
.content { flex: 1; padding: 4px 12px 96px; }
.no-tabbar .content { padding-bottom: 32px; }
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--nav); padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); z-index: 6; }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font: 400 12px var(--body); color: #5f8494; text-decoration: none; min-width: 0; }
.tab-icon { position: relative; }
.tab-icon .icon { width: 28px; height: 28px; }
.tab-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding: 0 4px; letter-spacing: .02em; }
.tabbar a.on { color: var(--teal); }
.badge-new { position: absolute; top: -6px; left: 14px; background: var(--badge-red); color: #fff; font: 600 9px var(--body); font-style: normal; padding: 0 5px; border-radius: 8px; letter-spacing: .04em; }
.badge-dot { position: absolute; top: -4px; right: -8px; width: 14px; height: 14px; border-radius: 50%; background: var(--badge-red); border: 3px solid #fff; }

.section-label { font: 700 9px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin: 28px 2px 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.card { background: var(--card); border-radius: var(--r-lg); padding: 20px; margin: 0 0 12px; position: relative; overflow: hidden; }
.card-title { font: 700 21px var(--head); color: var(--gold); margin-bottom: 8px; }
.card-title.big { font-size: 44px; }
.sheet-title { font: 700 23px var(--head); color: #fff; margin-bottom: 12px; padding-right: 30px; }
.art-card { background: radial-gradient(120% 90% at 80% 0%, #1c3440 0%, var(--card) 60%); }
.art-card > .muted { margin-bottom: 16px; }
.card-art { width: 100%; height: 190px; border-radius: var(--r-md); margin-bottom: 14px; display: block; }

/* segmented controls */
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg-deep); border-radius: 50px; padding: 5px; margin: 4px 0 16px; }
.segmented button { background: none; border: 0; color: var(--text-2); padding: 12px 4px; border-radius: 50px; font: 600 13px var(--body); cursor: pointer; }
.segmented button.on { color: #fff; }
.seg-green button.on { background: linear-gradient(var(--green-1), var(--green-2)); }
.seg-gold button.on { background: linear-gradient(var(--gold-1), var(--gold-2)); }
.seg-teal button.on { background: linear-gradient(var(--teal-1), var(--teal-2)); }
.seg-dark { border-radius: var(--r-md); }
/* Today: tabs over sliding panels; the thumb is the highlight that travels with the swipe. */
.seg-slide { position: relative; }
.seg-slide button { position: relative; z-index: 1; transition: color .25s; }
.seg-slide .seg-thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3); border-radius: 50px; background: linear-gradient(var(--green-1), var(--green-2)); transition: background .3s; will-change: transform; }
.seg-slide[data-color="teal"] .seg-thumb { background: linear-gradient(var(--teal-1), var(--teal-2)); }
.seg-slide[data-color="gold"] .seg-thumb { background: linear-gradient(var(--gold-1), var(--gold-2)); }
.seg-pager { display: flex; align-items: flex-start; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -12px; transition: height .3s ease; }
.seg-pager::-webkit-scrollbar { display: none; }
.seg-panel { flex: 0 0 100%; min-width: 0; padding: 0 12px; box-sizing: border-box; scroll-snap-align: start; scroll-snap-stop: always; }
/* Rows that scroll sideways inside a panel keep the swipe to themselves. */
.seg-panel .tiles, .seg-panel .feed-carousel, .seg-panel .carousel { overscroll-behavior-x: contain; }
.seg-dark button { border-radius: 12px; }
.seg-dark button.on { background: linear-gradient(#475359, #2d3a40); }
.underline-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 -12px 12px; }
.underline-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px; font: 600 14px var(--body); color: var(--text-3); cursor: pointer; }
.underline-tabs button.on { color: #fff; border-image: linear-gradient(90deg, transparent 25%, #fff 25%, #fff 75%, transparent 75%) 1; }

/* story tiles */
.tiles { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px 16px; padding: 0 12px; scroll-snap-type: x mandatory; }
.tiles::-webkit-scrollbar { display: none; }
.tile { flex: 0 0 116px; height: 140px; border-radius: var(--r-lg); padding: 0; border: 3px solid transparent; background: var(--card); position: relative; overflow: hidden; cursor: pointer; scroll-snap-align: start; text-align: left; }
.tile .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(19, 32, 38, 0) 40%, rgba(19, 32, 38, .9)); pointer-events: none; }
.tile > span:last-child { position: absolute; left: 9px; right: 6px; bottom: 9px; font: 600 12.5px/1.2 var(--body); text-shadow: 0 1px 6px rgba(0, 0, 0, .8); z-index: 1; }
.tile.green { border-color: var(--tile-green); }
.tile.gold { border-color: var(--gold-1); }
.tile.teal { border-color: var(--teal-1); }
.tile-badge { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 2; background: var(--badge-red); color: #fff; font: 600 10px var(--body); font-style: normal; letter-spacing: .08em; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.tile .tile-moon { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); --size: 64px !important; z-index: 1; }
.feature-tiles .tile { flex-basis: 88px; height: 120px; border: 0; background: #23343b; }
.feature-tiles .tile .art { height: 72%; }
.feature-tiles .tile::after { display: none; }
.feature-tiles .tile > span:last-child { text-align: center; left: 2px; right: 2px; bottom: 8px; font-size: 11px; text-shadow: none; }
.round-tiles { margin-bottom: 8px; }
.alt-tile { flex: 0 0 108px; height: 108px; border: 0; padding: 0; border-radius: var(--r-lg); background: #23343b; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-size: 11px; }
.alt-tile .art { width: 64px; height: 64px; }

/* feed carousel (horoscope / event / moon cards with peeking neighbours) */
.feed-carousel, .carousel { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -12px; padding: 0 12px 4px; }
.feed-carousel::-webkit-scrollbar, .carousel::-webkit-scrollbar { display: none; }
.feed-carousel { padding: 0 20px 4px; scroll-padding: 0 20px; }
.feed-card { flex: 0 0 calc(100% - 28px); scroll-snap-align: center; border-radius: var(--r-lg); padding: 24px 22px 18px; position: relative; overflow: hidden; background: radial-gradient(90% 60% at 70% 30%, #1d3640, var(--bg-deep) 75%); }
.feed-card > p.muted { font-size: 13px; margin-bottom: 14px; }
.feed-card .card-title { font-size: 25px; margin-bottom: 16px; }
.collapsible { max-height: 520px; display: flex; flex-direction: column; }
.collapsible .core { flex: 1; overflow: hidden; }
.collapsible .btn { margin-top: 10px; }
.collapsible .collapse-fade { height: 60px; margin-top: -60px; background: linear-gradient(rgba(10, 21, 26, 0), var(--bg-deep)); position: relative; pointer-events: none; }
.collapsible.expanded { max-height: none; }
.collapsible.expanded .collapse-fade { display: none; }
.pill { display: inline-flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .07); border-radius: 50px; padding: 5px 18px 5px 6px; font-size: 12px; letter-spacing: .1em; margin-bottom: 22px; align-self: flex-start; }
.planet-dots { display: flex; }
.pd { width: 24px; height: 24px; border-radius: 50%; margin-right: -8px; box-shadow: 0 0 0 1.5px #14262d, inset -3px -4px 6px rgba(0, 0, 0, .35); background: #888; display: inline-block; }
.planet-big { width: 150px; height: 150px; }
.pd-sun { background: radial-gradient(circle at 35% 35%, #ffe08a, #e09a2a); }
.pd-moon { background: radial-gradient(circle at 35% 35%, #f3eee0, #9a947f); }
.pd-mercury { background: radial-gradient(circle at 35% 35%, #d9d4cf, #7b746e); }
.pd-venus { background: radial-gradient(circle at 35% 35%, #f6e6c2, #c79a52); }
.pd-mars { background: radial-gradient(circle at 35% 35%, #f19a6c, #9c3a22); }
.pd-jupiter { background: repeating-linear-gradient(8deg, #d9b98e 0 6%, #b98b5a 6% 10%); }
.pd-saturn { background: radial-gradient(circle at 35% 35%, #f2dfaa, #b8995b); }
.pd-uranus { background: radial-gradient(circle at 35% 35%, #c9f3f3, #5cb4c0); }
.pd-neptune { background: radial-gradient(circle at 35% 35%, #8fb8ff, #2a4fa0); }
.pd-pluto { background: radial-gradient(circle at 35% 35%, #d7c3ad, #6b5644); }
.ft { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ft h4 { font: 600 15px var(--body); margin-bottom: 8px; }
.ft p { font: 400 15px/1.3 var(--body); margin: 0 0 8px; color: var(--text); }
.focus { color: var(--green); }
.troubles { color: var(--red); }
.core { margin: 22px 0 0; }
.core h4 { font: 600 17px var(--body); color: var(--text-2); margin-top: 10px; }
.core p { font-size: 14px; color: var(--text-2); }
.event-art { width: 100%; height: 200px; border-radius: var(--r-md); }
.dash { display: inline-block; width: 14px; height: 2px; background: var(--text-3); vertical-align: middle; margin: 0 4px; }

/* feedback */
.feedback { margin-top: 16px; }
.feedback-head { display: flex; justify-content: space-between; align-items: center; }
.feedback h3 { font: 600 15px var(--body); margin: 0; }
.emojis { display: flex; justify-content: space-between; margin: 14px 0; }
.emojis button { width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .05); font-size: 28px; cursor: pointer; transition: transform .15s; }
.emojis button:active { transform: scale(.9); }
.thanks { margin: 0; color: var(--text-2); }

/* reports list */
.list-card { padding: 14px; }
.report-row { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; background: var(--row); border-radius: var(--r-sm); padding: 6px 10px 6px 6px; margin-bottom: 6px; position: relative; }
.report-row b { font-size: 13px; }
.report-thumb { width: 52px; height: 40px; border-radius: 8px; }
.price-tag { position: absolute; left: 4px; bottom: 4px; background: rgba(242, 230, 196, .2); color: var(--gold); font-size: 8px; padding: 1px 4px; border-radius: 4px; }
.list-card .fine { margin: 10px 4px 0; }

/* quick reports */
.quick-head { display: flex; justify-content: space-between; align-items: baseline; }
.quick-advisor { display: flex; gap: 12px; align-items: center; margin: 8px 0 14px; }
.quick-advisor p { margin: 0; }
.pager { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 10px -4px 0; }
.pager::-webkit-scrollbar { display: none; }
.page { flex: 0 0 100%; scroll-snap-align: start; padding: 0 4px; }
.topic { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--row); border-radius: var(--r-sm); padding: 9px 10px 9px 14px; margin-bottom: 8px; font: 400 12px var(--body); }
.dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0 16px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.dots i.on { background: #fff; }
.ask { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.quick-foot { display: flex; justify-content: space-between; margin: 6px 0; }
.conf { color: var(--teal); font: 600 10px var(--body); }

/* advisors */
.adv-ava { --h: 30; position: relative; display: inline-grid; place-items: center; border-radius: 50%; flex: none; font: 700 14px var(--head); color: #fff; background: radial-gradient(circle at 40% 35%, hsl(var(--h) 45% 55%), hsl(var(--h) 40% 25%)); }
.adv-ava.sm { width: 32px; height: 32px; font-size: 12px; }
.adv-ava.md { width: 52px; height: 52px; font-size: 18px; }
.adv-ava.lg { width: 72px; height: 72px; font-size: 24px; }
.adv-ava .online { position: absolute; right: 2px; bottom: 2px; width: 12px; height: 12px; border-radius: 50%; background: #3fd17a; border: 2px solid var(--card); }
.adv-carousel { margin-top: 12px; }
.adv-card { flex: 0 0 150px; scroll-snap-align: start; background: var(--row); border-radius: var(--r-md); padding: 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.adv-card b { font: 700 16px var(--head); margin-top: 6px; }
.rating { color: var(--pro); font-size: 12px; margin: 4px 0 8px; }
.adv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.adv-grid .adv-card { background: var(--card); }

/* chats */
.chat-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 4px; text-align: left; cursor: pointer; }
.chat-row b { font: 700 17px var(--head); }
.chat-row p { margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chat-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 6px 0 12px; border-bottom: 1px solid var(--line); }
.chat-head b { display: block; font: 700 17px var(--head); }
.chat-log { display: flex; flex-direction: column; gap: 8px; padding: 14px 0 90px; min-height: 50vh; }
.chat-note { align-self: center; text-align: center; color: var(--text-3); font-size: 12px; max-width: 300px; background: rgba(255, 255, 255, .04); padding: 8px 12px; border-radius: 12px; }
.bubble { max-width: 80%; padding: 10px 14px 6px; border-radius: 18px; font: 400 14px var(--body); }
.bubble span { display: block; text-align: right; font-size: 10px; color: var(--text-3); margin-top: 2px; }
.bubble.me { align-self: flex-end; background: var(--teal-2); border-bottom-right-radius: 4px; }
.chat-input { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.chat-input .btn .icon { width: 18px; height: 18px; }
.empty { text-align: center; padding: 50px 20px; }
.empty-art { width: 110px; height: 110px; margin-bottom: 14px; }

/* luck / matches / meters */
.match-row { display: flex; gap: 14px; margin: 6px 0 16px; }
.match-row span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; }
.luck { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.luck > div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.luck-big { font: 700 25px var(--head); color: var(--gold); line-height: 28px; }
.swatch { display: inline-block; width: 28px; height: 28px; border-radius: 50%; vertical-align: middle; box-shadow: 0 0 0 3px rgba(255, 255, 255, .1); }
.meter { display: grid; grid-template-columns: 90px 1fr 48px; align-items: center; gap: 10px; margin: 10px 0; }
.meter .bar { height: 8px; background: rgba(255, 255, 255, .08); border-radius: 9px; overflow: hidden; }
.meter .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-1), var(--green)); }
.meter b { text-align: right; }

/* daily readings / trendings / events */
.reading { flex: 0 0 72%; scroll-snap-align: start; display: flex; flex-direction: column; margin: 0; }
.reading-art { width: 100%; height: 190px; margin: 6px 0 16px; border-radius: var(--r-md); }
.reading .btn { margin-top: auto; }
.trend-art { width: 100%; height: 200px; border-radius: var(--r-md); margin-bottom: 14px; }
.event-tile { flex: 0 0 64%; scroll-snap-align: start; margin: 0; min-height: 280px; display: flex; flex-direction: column; cursor: pointer; background: radial-gradient(100% 80% at 50% 40%, #1e3440, var(--bg-deep)); }
.event-tile-head { display: flex; justify-content: space-between; color: var(--text-3); }
.event-tile-head .icon { width: 20px; height: 20px; color: var(--text-2); }
.event-tile-art { flex: 1; display: grid; place-items: center; padding: 14px 0; }
.event-tile h4 { font: 700 19px var(--head); margin: 0; }
.event-hero { background: radial-gradient(100% 80% at 50% 0%, #1d3a48, var(--bg-deep)); }
.event-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.event-row h4 { font: 700 17px var(--head); margin: 4px 0 8px; }
.wheel.event-wheel { width: 110px; flex: none; color: var(--text-2); }
.wheel.event-wheel .core { fill: #24343b; }
.list { padding: 6px 16px; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; cursor: pointer; }
.list-row:last-child { border-bottom: 0; }
a.list-row { color: inherit; text-decoration: none; }
.list-row > div { flex: 1; }
.list-row b { font-size: 14px; }
.list-row p { margin: 2px 0 0; }
.list-row > .icon { width: 18px; color: var(--text-3); }
.glyph { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .06); display: grid; place-items: center; font-size: 17px; color: var(--gold); flex: none; font-family: var(--symbols); }
.glyph .icon { width: 18px; height: 18px; }

/* moon */
.moon-disc { --size: 56px; width: var(--size); height: var(--size); border-radius: 50%; flex: none; background: radial-gradient(circle at 40% 38%, #2e4048, #1a262b); position: relative; overflow: hidden; display: inline-block;
  box-shadow: 0 0 calc(var(--size) * .25) rgba(191, 227, 255, calc(.1 + var(--illum) * .3)), 0 0 calc(var(--size) * .7) rgba(191, 227, 255, calc(var(--illum) * .15)); }
/* The lit part, with a few soft craters. */
.moon-disc::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 34% 58%, rgba(156, 147, 124, .28) 0 7%, transparent 8%), radial-gradient(circle at 62% 32%, rgba(156, 147, 124, .22) 0 5%, transparent 6%),
    radial-gradient(circle at 56% 70%, rgba(156, 147, 124, .2) 0 4%, transparent 5%), radial-gradient(circle at 36% 32%, #fbf6e6, #d8d0b8 60%, #9c937c);
  clip-path: inset(0 calc((1 - var(--illum)) * 100% * (1 - var(--waxing))) 0 calc((1 - var(--illum)) * 100% * var(--waxing)) round 50%); }
.moon-disc.xl { --size: 140px; }
.moon-disc.sm { --size: 24px; }
.moon-disc.xs { --size: 18px; }
.moon-card { background: radial-gradient(100% 70% at 50% 30%, #1f3440, var(--bg-deep)); }
.moon-hero { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 8px 0 18px; }
.moon-sign { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; text-align: center; }
.sign-glyph { color: var(--pro); font-size: 22px; font-family: var(--symbols); }
.phase-strip { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; margin: 8px 0 4px; }
.phase-strip > div { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--text-3); }

/* features & compatibility */
.duo { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 6px 0 22px; }
.duo > div, .duo-pick { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .1em; background: none; border: 0; cursor: pointer; }
.plus { font-size: 26px; color: var(--text-3); margin-bottom: 30px; }
.wheel-frame { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.wheel-frame .frame-wheel { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(255, 255, 255, .35); }
.wheel-frame .frame-wheel .core, .wheel-frame .frame-wheel .sun, .wheel-frame .frame-wheel .tris { display: none; }
.wheel-frame .emblem { position: relative; width: 66px; height: 66px; font-size: 32px; }
.best { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin: 8px 0 20px; }
.best > * { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; }
.tag { font: 700 8px var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; }
.tag-love { color: #ff7a7a; background: rgba(217, 85, 76, .25); }
.tag-friendship { color: var(--teal); background: rgba(0, 238, 219, .1); }
.tag-career { color: #b886ff; background: rgba(184, 97, 255, .15); }
.kyb { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; margin: 10px 0 20px; }
.kyb > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.glyph-lg { font-size: 28px; color: #7fb8e8; font-family: var(--symbols); }
.wheel.kyb-wheel { width: 120px; color: var(--gold); }
.wheel.kyb-wheel .core { fill: var(--bg-deep); }
.palm-row, .places { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.palm-art { width: 120px; height: 110px; flex: none; border-radius: var(--r-md); }
.places-art { width: 110px; height: 110px; flex: none; border-radius: 50%; }
.rings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0; }
.ring { aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; --c: var(--teal);
  background: radial-gradient(closest-side, var(--card) 80%, transparent 82%), conic-gradient(var(--c) calc(var(--v) * 1%), rgba(255, 255, 255, .08) 0); }
.ring.love { --c: #f27067; }
.ring.career { --c: #b886ff; }
.ring.sex { --c: var(--pro); }
.ring b { font-size: 15px; }
.ring span { font-size: 9px; color: var(--text-3); }
.result p { color: var(--text-2); }
.sign-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.sign-grid button { background: rgba(255, 255, 255, .05); border: 0; border-radius: var(--r-md); padding: 12px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; font-size: 13px; }
.sign-grid small { color: var(--text-3); font-size: 9px; font-weight: 400; }

/* birth chart */
.big3 { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin: 4px 0 14px; }
.big3 > div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 14px; }
.chart-card { padding: 12px; background: radial-gradient(circle, #1b3039, var(--bg-deep) 75%); }
.chart { width: 100%; display: block; fill: none; stroke: rgba(255, 255, 255, .25); stroke-width: .8; }
.chart .inner { fill: rgba(255, 255, 255, .03); }
.chart .signs text { fill: var(--gold); stroke: none; font-size: 11px; text-anchor: middle; dominant-baseline: central; font-family: var(--symbols); }
.chart .pl { stroke: none; fill: #fff; font-size: 11px; text-anchor: middle; dominant-baseline: central; font-family: var(--symbols); }
.chart .pl-sun { fill: var(--pro); }
.chart .pl-moon { fill: #d8e6ea; }
.chart .tick { stroke: rgba(255, 255, 255, .15); }
.chart .asp.soft { stroke: var(--teal); stroke-width: .6; opacity: .7; }
.chart .asp.hard { stroke: var(--red); stroke-width: .6; opacity: .7; }
.chart .asc { stroke: var(--green); stroke-width: 1.2; }
.chart .asc-label { fill: var(--green); stroke: none; font: 700 7px var(--body); text-anchor: middle; dominant-baseline: central; }

/* tarot */
.tarot-list { display: grid; gap: 12px; }
.tarot-row { display: flex; align-items: center; gap: 18px; background: var(--nav); border: 0; border-radius: var(--r-md); padding: 14px 18px; cursor: pointer; text-align: left; font: 700 19px var(--head); color: var(--text-2); }
.tarot-row .row-art { width: 64px; height: 64px; border-radius: 12px; flex: none; }
.tarot-row span { flex: 1; }
.tarot-row .icon { color: var(--teal); }
.spread { display: flex; justify-content: center; gap: 10px; margin: 18px 0; }
.spread-slot { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tarot-card { display: block; width: 170px; height: 272px; perspective: 900px; background: none; border: 0; padding: 0; cursor: pointer; position: relative; }
.spread.n2 .tarot-card { width: 140px; height: 224px; }
.spread.n3 .tarot-card { width: 104px; height: 166px; }
.tarot-card .face { position: absolute; inset: 0; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; backface-visibility: hidden; transition: transform .7s; overflow: hidden; }
.tarot-card .back .art { width: 100%; height: 100%; }
.tarot-card .front { background: linear-gradient(160deg, #f7e6c4, #e5a87f); color: #132026; transform: rotateY(180deg); font-family: var(--head); font-size: 17px; gap: 8px; padding: 10px; text-align: center; border: 2px solid var(--gold-1); }
.tarot-card .front.rev { transform: rotateY(180deg) rotateZ(180deg); }
.tarot-card .roman { font-size: 30px; }
.tarot-card.flipped .back { transform: rotateY(180deg); }
.tarot-card.flipped .front { transform: rotateY(0); }
.tarot-card.flipped .front.rev { transform: rotateY(0) rotateZ(180deg); }

/* profile & settings */
.profile-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin: 6px 0 22px; }
.profile-head b { font: 700 18px var(--head); }
.profile-head p { margin: 2px 0 0; }
.avatar-lg { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 40%, #415a63, #23343b); color: #f3d9b8; }
.avatar-lg .icon { width: 48px; height: 48px; margin-top: 10px; }
.sun-emblem { display: flex; flex-direction: column; align-items: center; margin-bottom: 24px; }
.sun-emblem p { font: 400 16px var(--body); color: var(--text-2); margin-top: 18px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 6px; text-align: center; margin-bottom: 20px; }
.facts > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.facts b { font: 700 15px var(--head); }
.fact-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--nav); display: grid; place-items: center; color: var(--gold); font-size: 30px; margin-bottom: 6px; font-family: var(--symbols); }
.fact-icon .icon { width: 32px; height: 32px; stroke-width: 2; }
.benefits { border: 1px solid rgba(242, 230, 196, .25); background: linear-gradient(160deg, #24363d, var(--card)); }
.benefit { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font: 400 14px var(--body); }
.benefit .icon { width: 18px; height: 18px; color: var(--text-2); }
.form label { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 12px; }
.form .field { margin-top: 6px; }
.form .pick-row { margin-bottom: 8px; }
.form .pick-row label { margin-bottom: 0; }
.form .pick-row .field { margin-top: 0; }
.pick-title { font-size: 12px; color: var(--text-3); margin: 4px 0 6px; }
.form .btn.link { display: block; margin: 0 0 12px; padding: 0; font-size: 12px; }

/* bottom sheet */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0); z-index: 20; display: flex; align-items: flex-end; justify-content: center; transition: background .25s; }
.sheet-backdrop.open { background: rgba(0, 0, 0, .55); }
.sheet { width: 100%; max-width: 480px; max-height: 85dvh; overflow-y: auto; background: var(--sheet); border-radius: 40px 40px 0 0; padding: 34px 22px calc(26px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .25s ease-out; position: relative; }
.sheet-backdrop.open .sheet { transform: none; }
.sheet p { font-size: 15px; color: var(--text-2); }
.sheet-close { position: absolute; top: 18px; right: 18px; background: none; border: 0; cursor: pointer; color: var(--text-2); }
.sheet-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.tips { padding-left: 20px; font: 400 15px var(--body); color: var(--text-2); }
.tips li { margin-bottom: 10px; }

/* ---------- funnel: hero, onboarding, palm reading (design A "Night Teal") ---------- */
.btn.cta { background: var(--teal); color: #06201d; font: 700 16px var(--body); min-height: 56px; border-radius: 28px; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; box-shadow: 0 8px 30px rgba(20, 213, 194, .25); }
.btn.cta:disabled { box-shadow: none; }
.btn.ghost { background: none; border: 1.5px solid rgba(255, 255, 255, .2); min-height: 52px; border-radius: 26px; font: 600 15px var(--body); display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn.cta .icon, .btn.ghost .icon { width: 20px; height: 20px; stroke-width: 2; }

.hero { background: radial-gradient(90% 55% at 50% 34%, #173a42 0%, #0d1a20 62%); padding: 0 24px 24px; text-align: center; }
.hero-head { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.hero-head a { font-size: 14px; text-decoration: none; padding: 12px 4px; }
.hero-art { position: relative; height: 330px; display: grid; place-items: center; }
.hero-orbits { position: absolute; width: 330px; height: 330px; fill: none; stroke: var(--teal); stroke-opacity: .18; }
.hero-orbits .dash { stroke: var(--gold); stroke-opacity: .12; stroke-dasharray: 2 6; }
.hero-orbits .p1 { fill: var(--teal); stroke: none; }
.hero-orbits .p2 { fill: var(--gold); stroke: none; }
.hero-hand { position: relative; width: 178px; height: 300px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
.hero-wheel { position: relative; width: 240px; color: var(--gold); }
.hero-text { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--teal); }
.hero h1 { margin: 0; font: 700 34px/1.1 var(--head); color: var(--gold); }
.hero-text p { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .75); }
.hero-pills { display: flex; gap: 8px; justify-content: center; }
.hero-pills span { font-size: 12px; padding: 7px 12px; border-radius: 99px; }
.pill-heart { background: rgba(255, 122, 156, .12); color: #ffb3c6; }
.pill-head { background: rgba(20, 213, 194, .12); color: #7debe0; }
.pill-life { background: rgba(249, 208, 93, .12); color: #fbe39f; }
.hero-bottom { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.hero-note { margin: 0; font-size: 12px; color: rgba(255, 255, 255, .6); }
.hero-legal { margin: 0; font-size: 11px; color: rgba(255, 255, 255, .5); }
.hero-legal a { color: rgba(255, 255, 255, .7); }

.onboarding { background: #0d1a20; padding: 0 24px 24px; }
.onboarding .ob-head { grid-template-columns: 44px 1fr 44px; height: 64px; }
.onboarding .ob-head .icon-btn { margin-left: -10px; }
.onboarding .step-count { margin: 0; font-size: 12px; color: rgba(255, 255, 255, .6); }
.ob-progress { display: flex; gap: 6px; margin-bottom: 24px; }
.ob-progress i { flex: 1; height: 4px; border-radius: 2px; background: #273238; overflow: hidden; }
.ob-progress b { display: block; height: 100%; background: var(--teal); transition: width .3s; }
.onboarding .ob-body { display: flex; flex-direction: column; }
.onboarding .ob-title { font-size: 30px; line-height: 1.15; margin-bottom: 8px; }
.onboarding .ob-lead { margin-bottom: 20px; line-height: 1.5; color: rgba(255, 255, 255, .75); }
.onboarding .field { background: #14262d; border: 1.5px solid #33464e; border-radius: 14px; margin-top: 0; }
.onboarding .field:focus { border-color: var(--teal); }
.pick-row { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr; gap: 8px; }
.pick-row label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .7); }
.pick-row select { height: 54px; padding: 0 12px; font-weight: 600; appearance: none; -webkit-appearance: none; cursor: pointer; }
.pick-row select:has(option:checked[value=""]) { color: rgba(255, 255, 255, .4); }
.pick-row option { color: var(--text); background: #14262d; }
.onboarding > .btn.cta { margin-top: 20px; }
.ob-note { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #14262d; margin-bottom: 26px; text-align: left; }
.ob-note .icon { flex: none; width: 36px; height: 36px; padding: 9px; border-radius: 50%; background: rgba(20, 213, 194, .14); color: var(--teal); stroke-width: 2.4; }
.ob-note p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .8); }
.ob-note b { color: #fff; }
.ob-form { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 8px; }
.ob-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, .7); }
.ob-form .btn.cta { margin-top: 8px; }

.viewfinder { position: relative; height: 330px; border-radius: 24px; background: #14262d; display: grid; place-items: center; }
.viewfinder .hand { width: 190px; height: 320px; }
.palm-tips { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.palm-tips li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; line-height: 1.35; color: rgba(255, 255, 255, .8); text-align: center; }
.palm-tips span { width: 40px; height: 40px; border-radius: 50%; background: rgba(20, 213, 194, .12); color: var(--teal); display: grid; place-items: center; }
.palm-tips .icon { width: 20px; height: 20px; stroke-width: 2; }
.palm-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.file-btn { box-sizing: border-box; cursor: pointer; }
.palm-privacy { margin: 2px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, .6); }
.palm-privacy .icon { width: 14px; height: 14px; stroke-width: 2; }
.palm-page { padding: 8px 4px 0; display: flex; flex-direction: column; }

.palm-photo { position: relative; border-radius: 24px; overflow: hidden; background: #14262d; margin: 0 auto 12px; width: 100%; max-width: 360px; }
.palm-photo > img { display: block; width: 100%; }
.palm-photo.no-photo { display: grid; place-items: center; padding: 16px 0; background: radial-gradient(80% 70% at 50% 45%, #173a42 0%, #14262d 70%); }
.palm-photo.no-photo .hand { width: 190px; height: 320px; }
.line-chip { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border: 0; border-radius: 99px; background: rgba(13, 26, 32, .82); color: #fff; font: 600 12px/1 var(--body); white-space: nowrap; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); opacity: 0; animation: chip-in .4s ease-out .2s forwards; }
.line-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.line-pin { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(13, 26, 32, .8); pointer-events: none; }
@keyframes chip-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.palm-photo.scanning > img { filter: saturate(.7) brightness(.85); }
.palm-photo.failed > img { filter: blur(4px) brightness(.6); }
.scan-badge { position: absolute; top: 14px; left: 14px; font-size: 11px; font-weight: 700; letter-spacing: .12em; padding: 6px 10px; border-radius: 99px; background: rgba(13, 26, 32, .75); color: #7debe0; display: none; }
.palm-photo.scanning .scan-badge { display: block; }
.scan-beam { position: absolute; left: 0; right: 0; height: 22%; top: -22%; display: none; background: linear-gradient(rgba(20, 213, 194, 0), rgba(20, 213, 194, .3)); border-bottom: 2px solid var(--teal); }
.palm-photo.scanning .scan-beam { display: block; animation: palm-scan 2.4s ease-in-out infinite; }
@keyframes palm-scan { to { top: 100%; } }
.fail-icon { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(242, 112, 103, .18); color: var(--red); display: grid; place-items: center; }
.fail-icon .icon { width: 30px; height: 30px; stroke-width: 2; }
.palm-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.palm-lines path { fill: none; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 1px rgba(0, 0, 0, .7)); }
.palm-lines path.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: palm-draw 1.2s ease-out forwards; }
@keyframes palm-draw { to { stroke-dashoffset: 0; } }
.hand-dots circle { fill: #fff; }
.hand-dots { animation: hand-dots 1.6s ease-out forwards; }
@keyframes hand-dots { 0% { opacity: 0; } 25% { opacity: .9; } 100% { opacity: 0; } }
.scan-checks { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.scan-checks li { display: flex; align-items: center; gap: 12px; height: 36px; font-size: 15px; color: rgba(255, 255, 255, .5); transition: color .3s; }
.scan-checks i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #33464e; display: grid; place-items: center; transition: .3s; }
.scan-checks i .icon { width: 14px; height: 14px; stroke-width: 3; opacity: 0; color: #0d1a20; }
.scan-checks li.now { color: #fff; }
.scan-checks li.now i { border-color: var(--c); box-shadow: inset 0 0 0 4px #0d1a20; background: var(--c); }
.scan-checks li.done { color: #fff; }
.scan-checks li.done i { background: var(--c); border-color: var(--c); box-shadow: none; }
.scan-checks li.done i .icon { opacity: 1; }
.scan-fact { margin: 18px 0 0; padding: 14px 16px; border-radius: 16px; background: #14262d; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .8); }
.scan-fact b { color: var(--gold); }
.palm-error { margin-top: 6px; }
.palm-hint { margin: 10px 0 16px; text-align: center; font-size: 15px; line-height: 1.5; color: #ffb3ad; }
.fix-list { list-style: none; margin: 0; padding: 14px 16px; border-radius: 18px; background: #14262d; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.fix-list li { display: flex; align-items: center; gap: 10px; }
.fix-list .icon { width: 18px; height: 18px; color: var(--teal); stroke-width: 2.4; flex: none; }

.teaser { border-radius: 24px; background: #14262d; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.teaser-head { display: flex; align-items: center; gap: 12px; }
.teaser-head p { margin: 0; }
.teaser-head h3 { margin: 2px 0 0; font: 700 20px var(--head); }
.teaser-el { width: 44px; height: 44px; border-radius: 50%; background: rgba(249, 208, 93, .14); color: #f9d05d; display: grid; place-items: center; flex: none; }
.teaser-lock { margin-left: auto; align-self: flex-start; display: flex; align-items: center; gap: 6px; font-size: 12px; color: #7debe0; }
.teaser-lock .icon { width: 14px; height: 14px; stroke-width: 2; }
.teaser-blur { display: flex; flex-direction: column; gap: 8px; filter: blur(3px); }
.teaser-blur i { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .22); }
.teaser-blur i:nth-child(2) { width: 92%; }
.teaser-blur i:nth-child(3) { width: 70%; }
.teaser-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-size: 13px; }
.teaser-lines span, .palm-legend button { display: flex; align-items: center; gap: 8px; }
.palm-legend button { padding: 4px 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.teaser-lines i, .palm-legend i { width: 14px; height: 4px; border-radius: 2px; }

.palm-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 0 0 20px; font-size: 12px; color: rgba(255, 255, 255, .75); }
.palm-card { background: #14262d; }
.palm-card h3 { margin: 0; font: 700 19px var(--head); }
.palm-card p:last-child { margin-bottom: 0; line-height: 1.55; }
.palm-hand { display: flex; gap: 14px; align-items: flex-start; }
.palm-hand h3 { font-size: 22px; margin: 2px 0 6px; }
.palm-hands { max-width: 360px; margin: 0 auto 14px; }
.palm-other { display: flex; gap: 14px; align-items: flex-start; border: 1.5px dashed rgba(20, 213, 194, .35); }
.palm-other .palm-el { background: rgba(20, 213, 194, .12); color: var(--teal); }
.palm-other h3 { margin: 4px 0 6px; }
.palm-other .btn { margin-top: 6px; }
.palm-el { width: 48px; height: 48px; flex: none; border-radius: 50%; background: rgba(249, 208, 93, .14); color: #f9d05d; display: grid; place-items: center; }
.palm-line { padding: 16px 18px; margin-bottom: 10px; scroll-margin: 80px; }
.palm-line.flash { animation: line-flash 1.4s ease-out; }
@keyframes line-flash { 0%, 40% { box-shadow: 0 0 0 2px var(--teal); } 100% { box-shadow: 0 0 0 2px transparent; } }
.palm-line-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.palm-line-head i { width: 22px; height: 6px; border-radius: 3px; flex: none; }
.palm-line-head span { margin-left: auto; }
.palm-traits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.palm-traits .card { padding: 14px 12px; margin: 0; }
.palm-traits h3 { font-size: 15px; color: var(--gold); margin: 0 0 6px; }
.palm-advice { background: rgba(20, 213, 194, .1); }
.palm-advice .caps { color: #7debe0; font-weight: 700; margin-bottom: 6px; }
@media (max-width: 380px) { .palm-traits { grid-template-columns: 1fr; } }
/* Astro Map */
.acg-lead { margin: 0 0 14px; font-size: 14px; line-height: 1.5; }
.acg-loading { padding: 60px 0; }
.acg-card { padding: 10px; }
.acg-frame { position: relative; border-radius: var(--r-md); overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #12323d, #071116 80%); }
.acg-map { display: block; width: 100%; aspect-ratio: 3600 / 1410; touch-action: pan-y; }
.acg-land { fill: #1f3a44; stroke: #2f5562; stroke-width: 4; }
.acg-line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; opacity: .95; transition: opacity .3s; }
.acg-line.ic, .acg-line.dsc { stroke-dasharray: 5 4; }
.acg-line.dim { opacity: .15; }
.acg-how .acg-line, .acg-need .acg-line { stroke: var(--text-2); }
.acg-pin circle { stroke: #071116; vector-effect: non-scaling-stroke; stroke-width: 1.5; }
.acg-pin.city circle { fill: #fff; }
.acg-pin.born circle { fill: var(--pro); }
.acg-pin.checked circle { fill: var(--teal); }
.acg-pin text { fill: #fff; font-family: var(--body); font-weight: 700; paint-order: stroke; stroke: #071116; stroke-width: 3px; vector-effect: non-scaling-stroke; }
.acg-world { position: absolute; top: 8px; right: 8px; padding: 6px 12px; border: 0; border-radius: 20px; background: rgba(7, 17, 22, .75); color: var(--text); font: 600 12px var(--body); cursor: pointer; }
.acg-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 10px 4px 2px; font-size: 12px; color: var(--text-2); }
.acg-legend span { display: inline-flex; align-items: center; gap: 6px; }
.acg-legend i, .acg-dot { width: 10px; height: 3px; border-radius: 2px; display: inline-block; flex: none; }
.acg-dot { margin-right: 6px; vertical-align: middle; }
.acg-rank { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); font: 700 13px var(--body); flex: none; align-self: flex-start; margin-top: 2px; }
.acg-city .small:last-child { color: var(--text-2); line-height: 1.45; }
.acg-glyph { width: 28px; font: 22px var(--symbols); text-align: center; flex: none; align-self: flex-start; }
.acg-line-row { cursor: default; align-items: flex-start; }
.acg-line-row .small:last-child { color: var(--text-2); line-height: 1.45; }
.acg-check .field { margin-top: 0; }
.acg-check-result:not(:empty) { margin-top: 8px; }
.acg-check-result > p { margin: 8px 0 0; }
.acg-how { padding: 8px 16px; }
.acg-how-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.acg-how-row:last-child { border-bottom: 0; }
.acg-how-row svg { width: 40px; flex: none; margin-top: 7px; }
.acg-how-row p { margin: 0; font-size: 14px; line-height: 1.45; }
.acg-note { margin: 16px 0 8px; }
.acg-need .card-title { margin-top: 4px; }

/* Your Soulmate */
.soul-hero p:last-child { margin-bottom: 0; line-height: 1.55; }
.soul-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.soul-fact { margin: 0; padding: 16px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.soul-fact .caps { margin: 0; }
.soul-fact b { font: 700 19px var(--head); }
.soul-letters { height: 84px; display: flex; align-items: center; gap: 10px; }
.soul-letters span { font: 700 54px/1 var(--head); color: var(--gold); text-shadow: 0 0 22px rgba(255, 154, 174, .45); }
.soul-letters i { font-style: normal; color: var(--text-3); font-size: 13px; }
.soul-window + .soul-window { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.soul-window-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.soul-window-head b { font-size: 16px; }
.soul-window p { margin: 4px 0 0; }
.soul-meter { margin-left: auto; width: 64px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; flex: none; }
.soul-meter i { display: block; height: 100%; width: calc(var(--v) * 1%); border-radius: inherit; background: linear-gradient(90deg, #ff9aae, #ff5f7e); }
.soul-places { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.soul-places span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 122, 156, .12); color: #ffb3c4; font-size: 13px; }
.soul-wait { text-align: center; }
.soul-dots { display: inline-flex; gap: 6px; margin: 6px 0 4px; }
.soul-dots i { width: 8px; height: 8px; border-radius: 50%; background: #ff7a9c; animation: breathe 1.2s ease-in-out infinite; }
.soul-dots i:nth-child(2) { animation-delay: .2s; }
.soul-dots i:nth-child(3) { animation-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .soul-dots i { animation: none; } }
.onboarding .choice { background: #14262d; border: 1.5px solid #33464e; }
.onboarding .choice.on { border-color: var(--teal); background: rgba(20, 213, 194, .12); }
.onboarding .choice-icon { background: rgba(20, 213, 194, .14); color: var(--teal); }
.onboarding .choice-icon .icon { stroke: currentColor; }
.onboarding .choice-grid.three { margin-top: 28px; }

/* ---------- live palm camera (js/palm-camera.js) ---------- */
.cam { position: fixed; inset: 0; z-index: 60; background: #000; overflow: hidden; }
.cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-mask { position: absolute; inset: 0; width: 100%; height: 100%; }
.cam-dim { fill: rgba(5, 12, 15, .55); }
.cam-outline { fill: none; stroke: #fff; stroke-opacity: .9; stroke-width: 2; stroke-dasharray: 7 6; vector-effect: non-scaling-stroke; transition: stroke .2s; }
.cam.ok .cam-outline { stroke: var(--teal); stroke-opacity: 1; }
.cam.ok .cam-outline { stroke-dasharray: none; stroke-width: 3; }
.cam-close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; display: grid; place-items: center; cursor: pointer; }
.cam-hint { position: absolute; left: 50%; bottom: calc(132px + env(safe-area-inset-bottom)); transform: translateX(-50%); margin: 0; padding: 10px 18px; border-radius: 99px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 15px; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s; }
.cam.ok .cam-hint { background: var(--teal); color: #06201d; }
.cam-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 32px calc(24px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; }
.cam-side { width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; display: grid; place-items: center; cursor: pointer; }
.cam-side.off { visibility: hidden; } /* keeps its place so the shutter stays centred */
.cam-side[aria-pressed="true"] { background: #fff; color: #06201d; }
.cam-shutter { width: 80px; height: 80px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; position: relative; }
.cam-shutter::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: #fff; transition: transform .1s; }
.cam-shutter:active::after { transform: scale(.92); }
.cam-shutter svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.cam-shutter circle { fill: none; stroke-width: 4; }
.cam-shutter .ring-bg { stroke: rgba(255, 255, 255, .5); }
.cam-shutter .ring { stroke: var(--teal); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); stroke-linecap: round; }
.cam.flash::after { content: ''; position: absolute; inset: 0; background: #fff; animation: cam-flash .2s ease-out forwards; }
@keyframes cam-flash { from { opacity: .9; } to { opacity: 0; } }

/* ---------- PRO subscription: paywall, payment confirmation, locked sections ---------- */
.paywall { background: radial-gradient(90% 45% at 50% 22%, #173a42 0%, #0d1a20 62%); padding: 0 24px 24px; }
.paywall.paid { justify-content: center; text-align: center; }
.paywall-head { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.paywall-head .logo { width: 36px; height: 36px; }
.paywall-hand { width: 120px; height: 202px; margin: 4px auto 16px; display: block; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .45)); }
.paywall-wheel { width: 160px; margin: 4px auto 16px; display: block; color: var(--gold); }
.paywall-list { list-style: none; margin: 18px 0 0; padding: 16px 18px; border-radius: 20px; background: #14262d; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; font-size: 13px; }
.paywall-list li { display: flex; align-items: center; gap: 8px; }
.paywall-list .icon { width: 16px; height: 16px; color: var(--teal); stroke-width: 2.6; flex: none; }
.paywall.with-bar { padding-bottom: 96px; }
.paywall-choose { font: 700 22px var(--head); color: var(--gold); text-align: center; margin: 28px 0 14px; scroll-margin-top: 16px; }
.plans { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.plan { position: relative; display: flex; align-items: stretch; width: 100%; padding: 0; border: 2px solid #2a4651; border-radius: 18px; background: #14262d; color: var(--text); text-align: left; cursor: pointer; overflow: visible; transition: border-color .2s, background .2s; }
.plan.on { border-color: var(--teal); background: #173640; }
.plan-badge { position: absolute; top: -13px; left: 18px; padding: 4px 12px; border-radius: 20px; background: #f27067; color: #fff; font: 700 11px var(--body); letter-spacing: .04em; text-transform: uppercase; }
.plan-main { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 18px 12px 14px 18px; min-width: 0; }
.plan-name { font: 700 19px/1.2 var(--head); }
.plan-price { font-size: 15px; font-weight: 700; }
.plan-price s { color: var(--text-3); font-weight: 400; margin-left: 4px; }
.plan-then { font-size: 12px; color: var(--text-3); }
.plan-side { width: 108px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 8px; border-radius: 0 16px 16px 0; background: #3a4c54; text-align: center; transition: background .2s; }
.plan-side b { font-size: 22px; }
.plan-side span { font-size: 11px; line-height: 1.25; text-transform: uppercase; letter-spacing: .03em; }
.plan.on .plan-side { background: linear-gradient(var(--teal-1), var(--teal-2)); }
.plan:not(.on) .plan-main { opacity: .6; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 22px; padding: 12px; border-radius: 14px; border: 1.5px solid transparent; font-size: 12px; line-height: 1.5; color: var(--text-2); cursor: pointer; }
.consent input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--teal); }
.consent a { color: inherit; font-weight: 700; }
.consent.ask { border-color: var(--red); background: rgba(242, 112, 103, .08); }
.guarantee { margin: 8px 0 26px; padding: 24px 20px; border-radius: 22px; background: #173640; text-align: center; }
.guarantee-icon { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 213, 194, .14); color: var(--teal); }
.guarantee-icon .icon { width: 36px; height: 36px; stroke-width: 1.6; }
.guarantee h2 { font: 700 21px var(--head); margin: 0 0 10px; }
.guarantee p { font-size: 14px; line-height: 1.6; color: var(--text-2); margin: 0 0 10px; text-align: left; }
.guarantee p:last-child { margin: 0; }
.guarantee a { color: inherit; }
.paywall-foot { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--text-3); font-size: 13px; }
.foot-logo { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #1f3a44; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.foot-logo .logo { width: 36px; height: 36px; }
.paywall-foot b { color: var(--gold); font: 700 18px var(--head); }
.paywall-foot p { margin: 8px 0 10px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.foot-contact { display: block; width: 100%; padding: 16px; border-radius: 40px; background: #1f3540; color: var(--text-2); font: 600 15px var(--body); text-decoration: none; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; align-items: center; width: 100%; margin: 26px 0 6px; }
.foot-links a { color: #fff; font: 600 14px/1.35 var(--body); text-decoration: underline; text-underline-offset: 3px; }
.paywall-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(13, 26, 32, .96); box-shadow: 0 -8px 24px rgba(0, 0, 0, .35); max-width: 480px; margin: 0 auto; }
.offer-timer { font: 700 34px/1 var(--head); color: var(--gold); font-variant-numeric: tabular-nums; flex: none; }
.paywall-bar .btn { flex: 1; min-height: 52px; }
.paywall-test { margin: 8px 0 12px; padding: 10px 12px; border-radius: 12px; background: rgba(249, 208, 93, .12); color: var(--pro); font-size: 13px; line-height: 1.45; text-align: center; }
.get-pro { border: 1.5px solid var(--gold); background: none; color: var(--gold); font: 700 12px var(--body); padding: 4px 10px; border-radius: 8px; cursor: pointer; }
.locked-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 24px; }
.locked-card .btn { margin-top: 4px; }
.locked-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(249, 208, 93, .14); color: var(--gold); display: grid; place-items: center; }
.locked-icon .icon { width: 26px; height: 26px; stroke-width: 2; }

/* ---------- Terms and Privacy ---------- */
.legal { padding: 0 20px 40px; background: var(--bg-mid); }
.legal-title { font: 700 30px var(--head); color: var(--gold); margin: 12px 0 4px; }
.legal h2 { font: 700 18px var(--head); color: var(--gold); margin: 24px 0 8px; }
.legal p, .legal li { font: 400 14px/1.6 var(--body); color: var(--text-2); }
.legal ul { padding-left: 18px; margin: 0; }
.legal li { margin-bottom: 6px; }
.legal li b { color: var(--text); }

/* ---------- motion ---------- */
/* Ambient: stars twinkle, sparkles pulse, halos breathe, the hero hand floats, the hero's planets
   circle the orbit. Entrance: when the route changes (#app.enter) the screen fades up and its
   blocks follow one after another. Everything stops for people who ask for less motion. */
.art .twk { animation: twinkle 4s ease-in-out infinite; }
.art .spk { transform-box: fill-box; transform-origin: center; animation: sparkle 3s ease-in-out infinite; }
.art circle[fill$="-h)"], .art circle[fill$="-halo)"], .art circle[fill="url(#gPalm)"] { transform-box: fill-box; transform-origin: center; animation: breathe 5s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .2; } }
@keyframes sparkle { 0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; } 50% { transform: scale(.55) rotate(45deg); opacity: .6; } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: .75; } }

.hero-hand { animation: float 6s ease-in-out infinite; }
.hero-orbits { animation: spin 90s linear infinite; }
/* The illustrated hand (landing and reading without a photo) draws its four lines one by one. */
.hand .hl, .hand .hl-g { stroke-dasharray: 1; stroke-dashoffset: 1; animation: line-draw 1.1s ease-out .5s forwards; }
.hand g path:nth-child(3), .hand g path:nth-child(4) { animation-delay: .9s; }
.hand g path:nth-child(5), .hand g path:nth-child(6) { animation-delay: 1.3s; }
.hand g path:nth-child(7), .hand g path:nth-child(8) { animation-delay: 1.7s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes line-draw { to { stroke-dashoffset: 0; } }
.hero-pills span { animation: rise .6s ease-out both; }
.hero-pills span:nth-child(2) { animation-delay: .12s; }
.hero-pills span:nth-child(3) { animation-delay: .24s; }

/* Buttons and tiles answer the finger. */
.btn.cta { position: relative; overflow: hidden; }
.btn.cta::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-100%); animation: shine 4.5s ease-in-out 1.2s infinite; pointer-events: none; }
@keyframes shine { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.tile, .alt-tile, .card[data-go], .list-row { transition: transform .15s ease; }
.tile:active, .alt-tile:active, .list-row:active { transform: scale(.96); }
.tile .art { transition: transform .4s ease; }
@media (hover: hover) { .tile:hover .art { transform: scale(1.06); } }
.tabbar a.on .tab-icon { animation: pop .35s ease-out; }
@keyframes pop { 0% { transform: scale(.8); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.moon-hero .moon-disc { animation: breathe-glow 5s ease-in-out infinite; }
@keyframes breathe-glow { 50% { filter: brightness(1.08) drop-shadow(0 0 12px rgba(191, 227, 255, .35)); } }

/* Entrance on route change. */
#app.enter .screen { animation: fade-in .35s ease-out both; }
#app.enter .content > *, #app.enter .ob-body > *, #app.enter .paywall > *, #app.enter .legal > *, #app.enter .palm-page > * { animation: rise .45s ease-out both; }
#app.enter .content > :nth-child(2), #app.enter .ob-body > :nth-child(2), #app.enter .paywall > :nth-child(2), #app.enter .palm-page > :nth-child(2) { animation-delay: .06s; }
#app.enter .content > :nth-child(3), #app.enter .ob-body > :nth-child(3), #app.enter .paywall > :nth-child(3), #app.enter .palm-page > :nth-child(3) { animation-delay: .12s; }
#app.enter .content > :nth-child(4), #app.enter .ob-body > :nth-child(4), #app.enter .paywall > :nth-child(4), #app.enter .palm-page > :nth-child(4) { animation-delay: .18s; }
#app.enter .content > :nth-child(5), #app.enter .ob-body > :nth-child(5), #app.enter .paywall > :nth-child(5), #app.enter .palm-page > :nth-child(5) { animation-delay: .24s; }
#app.enter .content > :nth-child(n+6), #app.enter .ob-body > :nth-child(n+6), #app.enter .paywall > :nth-child(n+6), #app.enter .palm-page > :nth-child(n+6) { animation-delay: .3s; }
#app.enter .tiles .tile { animation: rise .45s ease-out both; }
#app.enter .tiles .tile:nth-child(2) { animation-delay: .05s; }
#app.enter .tiles .tile:nth-child(3) { animation-delay: .1s; }
#app.enter .tiles .tile:nth-child(4) { animation-delay: .15s; }
#app.enter .tiles .tile:nth-child(n+5) { animation-delay: .2s; }
#app.enter .paywall-list li { animation: rise .4s ease-out both; }
#app.enter .paywall-list li:nth-child(2) { animation-delay: .25s; } #app.enter .paywall-list li:nth-child(3) { animation-delay: .3s; }
#app.enter .paywall-list li:nth-child(4) { animation-delay: .35s; } #app.enter .paywall-list li:nth-child(5) { animation-delay: .4s; }
#app.enter .paywall-list li:nth-child(6) { animation-delay: .45s; }
.paywall-hand { animation: float 6s ease-in-out infinite; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Palm reading result: the lines draw themselves, the name chips pop in after them. */
.palm-lines path:not(.draw) { stroke-dasharray: 1; stroke-dashoffset: 1; animation: line-draw 1s ease-out .2s forwards; }
.line-chip { animation: chip-in .4s ease-out 1s forwards; }
.line-pin { animation: fade-in .3s ease-out .9s both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition: none !important; }
  .btn.cta::after { display: none; }
}
