/* HORARY_BOT_V1 · дизайн-система «Аврора» для хорара.
   Токены, шрифтовые стеки, геометрия и ключевые кадры перенесены из
   ASTROLOGINYA (коммит 4746d98, frontend/miniapp/src/styles.css,
   frontend/tokens/*). Компоновка — по утверждённому концепту
   references/HORARY_AURORA_APPROVED_CONCEPT.png. Бинарных шрифтов нет. */

:root {
  --danger: #F08A76;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ui-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --glyph: "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols 2", var(--ui);
  --emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", var(--ui);
  --col: 430px;
  --tail: 96px;
}

.c-aur {
  --bg: #06080F; --surf: #141B31; --surf2: #1C2540;
  --ink: #EEF2FC; --ink2: #A7B2CE; --ink3: #6E7995;
  --a1: #7C96FF; --a2: #5FE3D0; --a3: #F3B478;
  --line: rgba(238,242,252,.09);
  --grad: linear-gradient(115deg, var(--a1), var(--a2));
  background: radial-gradient(128% 80% at 50% -8%, #17244E 0%, #0A0F22 50%, #06080F 100%) fixed;
  color: var(--ink);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--ui); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- небо: аврора, звёзды, метеоры ---------- */
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora { position: absolute; inset: -30%; filter: blur(64px); opacity: .5; }
.aurora i { position: absolute; display: block; border-radius: 50%; }
.aurora i:nth-child(1) { width: 380px; height: 300px; left: 4%; top: 12%;
  background: radial-gradient(circle, rgba(124,150,255,.85), transparent 70%); animation: drift-a 24s ease-in-out infinite; }
.aurora i:nth-child(2) { width: 340px; height: 280px; right: 2%; top: 30%;
  background: radial-gradient(circle, rgba(95,227,208,.7), transparent 70%); animation: drift-b 31s ease-in-out infinite; }
.aurora i:nth-child(3) { width: 260px; height: 220px; left: 34%; top: 0%;
  background: radial-gradient(circle, rgba(243,180,120,.35), transparent 70%); animation: drift-a 27s ease-in-out infinite reverse; }
.stars { position: absolute; inset: 0; animation: drift-sky 90s linear infinite alternate; }
.star { position: absolute; width: var(--s, 2px); height: var(--s, 2px); border-radius: 50%; background: #DCE6FF;
  left: var(--x); top: var(--y); box-shadow: 0 0 6px rgba(220,230,255,.8);
  animation: twinkle var(--d, 5s) ease-in-out var(--w, 0s) infinite; }
.star.warm { background: #FFE6C8; box-shadow: 0 0 6px rgba(243,180,120,.8); }
.shoot { position: absolute; width: 120px; height: 1.5px; opacity: 0;
  background: linear-gradient(90deg, rgba(244,248,255,0), rgba(244,248,255,.95)); border-radius: 2px; }
.shoot-a { top: 9%; left: -18%; animation: shoot-a 11s linear 2s infinite; }
.shoot-b { top: 34%; left: -22%; animation: shoot-b 15s linear 6s infinite; }
.shoot-c { top: 58%; left: -20%; animation: shoot-a 19s linear 10s infinite; }

/* ---------- оболочка ---------- */
.app { position: relative; z-index: 1; max-width: var(--col); margin: 0 auto; min-height: 100vh;
  padding-bottom: calc(var(--tail) + env(safe-area-inset-bottom)); }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; min-height: 52px;
  padding: calc(8px + env(safe-area-inset-top)) 18px 8px; background: rgba(8,12,28,.55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.brand-star { color: #DCE6FF; filter: drop-shadow(0 0 6px rgba(124,150,255,.9)); }
.top-mark { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.top-back { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--a2);
  padding: 8px 6px 8px 0; min-height: 44px; font-weight: 600; }
.top-side { margin-left: auto; color: var(--ink3); font-size: 12.5px; }
.screen { padding: 18px 18px 0; outline: none; animation: enter .35s ease both; }

.nav { position: fixed; z-index: 6; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: var(--col);
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: rgba(16,22,44,.84); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-top: 1px solid var(--line); }
.nav button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 56px;
  background: none; border: 0; color: var(--ink3); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; }
.nav button.is-on { color: var(--a2); }
.nav button.is-on::before { content: ""; position: absolute; top: -6px; width: 34px; height: 3px; border-radius: 0 0 3px 3px; background: var(--a2);
  box-shadow: 0 0 12px rgba(95,227,208,.8); }

/* ---------- типографика ---------- */
h1 { font-size: 30px; line-height: 1.12; margin: 6px 0 10px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 21px; line-height: 1.2; margin: 4px 0 8px; font-weight: 700; }
.lead { color: var(--ink2); margin: 0 0 16px; }
.sect-t { color: var(--a2); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 22px 0 10px; }
.muted { color: var(--ink3); font-size: 13px; }
.mono { font-family: var(--ui-mono); font-size: 12.5px; }

/* ---------- кнопки ---------- */
.primary-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; border: 0;
  border-radius: 18px; background: var(--grad); color: #060B18; font-weight: 700; font-size: 16px;
  box-shadow: 0 10px 30px rgba(95,227,208,.22), inset 0 1px 0 rgba(255,255,255,.35); position: relative; overflow: hidden;
  transition: transform .16s ease, box-shadow .18s; }
.primary-button::after { content: ""; position: absolute; inset: 0; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); animation: sheen 4.5s ease-in-out 1.2s infinite; }
.primary-button:active { transform: scale(.985); }
.primary-button:disabled { opacity: .45; box-shadow: none; }
.primary-button:disabled::after { display: none; }
.secondary-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; border-radius: 16px;
  background: var(--surf2); border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.link-button { background: none; border: 0; color: var(--a2); font-weight: 600; padding: 10px 0; min-height: 44px; }
.danger-button { width: 100%; min-height: 52px; border-radius: 16px; background: rgba(240,138,118,.08);
  border: 1px solid rgba(240,138,118,.35); color: var(--danger); font-weight: 600; }

/* ---------- карточки ---------- */
.card { background: rgba(20,27,49,.78); border: 1px solid var(--line); border-radius: 24px; padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.card + .card { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; min-height: 64px; padding: 12px 14px;
  background: rgba(20,27,49,.78); border: 1px solid var(--line); border-radius: 20px; color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.row + .row { margin-top: 10px; }
.row .emo { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; font-family: var(--emoji); font-size: 19px;
  background: linear-gradient(140deg, rgba(124,150,255,.22), rgba(95,227,208,.14)); border: 1px solid rgba(124,150,255,.18); }
.row b { display: block; font-weight: 600; }
.row span.sub { display: block; color: var(--ink2); font-size: 13px; }
.row .chev { margin-left: auto; color: var(--ink3); flex: 0 0 auto; }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--surf2); border: 1px solid var(--line); color: var(--ink2); }
.chip.is-on, .chip.accent { background: var(--grad); color: #060B18; border-color: transparent; }
.chip.warn { color: var(--a3); border-color: rgba(243,180,120,.35); background: rgba(243,180,120,.08); }
.badge-test { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--a3); border: 1px solid rgba(243,180,120,.4); border-radius: 999px; padding: 2px 9px; }

/* ---------- главная ---------- */
.hero { position: relative; padding: 4px 0 6px; }
.hero h1 { font-size: 32px; max-width: 12ch; }
.hero .lead { max-width: 30ch; }
.hero-moon { position: absolute; right: -6px; top: -4px; width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #F7F2E4 0%, #D9D2C2 38%, #8E8AA0 70%, #4B4C66 100%);
  box-shadow: 0 0 40px rgba(220,230,255,.35), inset -14px -10px 26px rgba(10,12,30,.55); animation: halo 7s ease-in-out infinite; }
.hero-moon::before, .hero-moon::after { content: ""; position: absolute; border-radius: 50%; background: rgba(90,88,110,.35); }
.hero-moon::before { width: 18px; height: 14px; left: 22px; top: 30px; }
.hero-moon::after { width: 11px; height: 10px; left: 52px; top: 54px; }
.wheel-stage { position: relative; width: min(86%, 330px); margin: 0 auto 4px; aspect-ratio: 1; }
.wheel-stage .planet-far { position: absolute; border-radius: 50%; }
.planet-far.p1 { width: 34px; height: 34px; left: 2%; top: 64%; background: radial-gradient(circle at 35% 35%, #9fb1ff, #3b4a8f 70%);
  box-shadow: 0 0 18px rgba(124,150,255,.55); animation: phase 9s ease-in-out infinite alternate; }
.planet-far.p2 { width: 22px; height: 22px; right: 4%; top: 12%; background: radial-gradient(circle at 35% 35%, #ffe2bd, #a8743f 70%);
  box-shadow: 0 0 14px rgba(243,180,120,.5); animation: phase 12s ease-in-out infinite alternate-reverse; }
.planet-far.p3 { width: 16px; height: 16px; right: 10%; bottom: 8%; background: radial-gradient(circle at 35% 35%, #c9fff6, #2f8f84 70%);
  box-shadow: 0 0 12px rgba(95,227,208,.5); animation: phase 8s ease-in-out infinite alternate; }
.wheel { width: 100%; height: 100%; overflow: visible; }
.wheel .rotor { transform-origin: 50% 50%; transform-box: fill-box; animation: aur-spin 160s linear infinite; }
.wheel .rotor-rev { transform-origin: 50% 50%; transform-box: fill-box; animation: aur-spin 240s linear infinite reverse; }
.wheel .ring { fill: none; stroke: rgba(238,241,250,.22); stroke-width: 1; }
.wheel .ring-glow { fill: none; stroke: url(#wheel-grad); stroke-width: 2; filter: drop-shadow(0 0 6px rgba(124,150,255,.8)); }
.wheel .spoke { stroke: rgba(238,241,250,.10); stroke-width: 1; }
.wheel .chord { stroke: var(--a2); stroke-width: 1; opacity: .55; }
.wheel .glyph { fill: #DCE6FF; font-family: var(--glyph); font-size: 15px; text-anchor: middle; dominant-baseline: central; }
.wheel .dot { fill: var(--a1); filter: drop-shadow(0 0 5px rgba(124,150,255,.95)); animation: dot-pulse 5s ease-in-out infinite; }
.wheel .dot:nth-of-type(2n) { fill: var(--a2); animation-delay: 1.6s; }
.wheel .core { fill: #EEF2FC; filter: drop-shadow(0 0 10px rgba(220,230,255,.95)); }
.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px 8px; margin: 0 0 12px; }
.topic { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 2px; min-height: 68px; border-radius: 18px;
  background: none; border: 0; color: var(--ink2); font-size: 12px; }
.topic .emo { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-family: var(--emoji); font-size: 20px;
  background: rgba(20,27,49,.85); border: 1px solid rgba(124,150,255,.25); box-shadow: 0 0 16px rgba(124,150,255,.18); }
.how { display: grid; gap: 10px; margin-top: 6px; }
.how .step { display: flex; gap: 12px; align-items: flex-start; }
.how .num { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px;
  color: #060B18; background: var(--grad); }

/* ---------- вопрос ---------- */
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cat { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 92px; padding: 14px; text-align: left;
  border-radius: 20px; background: rgba(20,27,49,.78); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14px;
  line-height: 1.25; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); transition: border-color .18s, box-shadow .18s, transform .16s; }
.cat .emo { font-family: var(--emoji); font-size: 22px; }
.cat.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 64px; }
.cat.wide .sub { display: block; color: var(--ink3); font-weight: 500; font-size: 12.5px; }
.cat.is-on { border-color: rgba(95,227,208,.7); box-shadow: 0 0 0 1px rgba(95,227,208,.4), 0 0 26px rgba(95,227,208,.22), inset 0 1px 0 rgba(255,255,255,.08);
  background: linear-gradient(150deg, rgba(124,150,255,.22), rgba(95,227,208,.12)); }
.cat:active { transform: scale(.985); }
.field { display: flex; flex-direction: column; gap: 7px; margin-top: 16px; }
.field > label, .field-label { font-weight: 600; font-size: 14px; }
.field-label .opt { color: var(--ink3); font-weight: 500; }
.field textarea, .field input { width: 100%; border-radius: 16px; border: 1px solid var(--line); background: rgba(12,17,34,.85);
  color: var(--ink); padding: 13px 14px; font-size: 16px; outline: none; }
.field textarea { min-height: 104px; resize: none; line-height: 1.4; }
.field textarea:focus, .field input:focus { border-color: rgba(124,150,255,.65); box-shadow: 0 0 0 3px rgba(124,150,255,.18); }
.field .counter { align-self: flex-end; color: var(--ink3); font-size: 12px; }
.hint { color: var(--ink3); font-size: 12.5px; margin: 2px 0 0; }
.field-error { color: var(--danger); font-size: 13px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(12,17,34,.85); border: 1px solid var(--line); }
.seg button { min-height: 44px; border-radius: 12px; border: 0; background: none; color: var(--ink2); font-weight: 600; }
.seg button.is-on { background: var(--grad); color: #060B18; }
.dt { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; }
.dt input { color-scheme: dark; }
.suggest { margin-top: 6px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: rgba(14,19,38,.96); }
.suggest button { display: flex; width: 100%; justify-content: space-between; gap: 10px; text-align: left; padding: 11px 14px; min-height: 48px;
  background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.suggest button:last-child { border-bottom: 0; }
.suggest small { color: var(--ink3); white-space: nowrap; }
.place-pill { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 16px; background: rgba(12,17,34,.85); border: 1px solid rgba(95,227,208,.35); }
.place-pill b { font-weight: 600; }
.place-pill small { color: var(--ink3); display: block; }
.place-pill button { margin-left: auto; }
.sticky-cta { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); padding: 14px 0 6px; z-index: 3;
  background: linear-gradient(180deg, rgba(6,8,15,0), rgba(6,8,15,.86) 40%); }

/* ---------- лист (sheet) ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 34; background: rgba(3,5,12,.6); backdrop-filter: blur(3px); animation: enter .2s ease both; }
.sheet { position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; margin: 0 auto; width: 100%; max-width: 520px; max-height: 92vh; overflow: auto;
  padding: 10px 18px calc(20px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: #0F1530; border: 1px solid var(--line);
  box-shadow: 0 -20px 60px rgba(0,0,0,.5); animation: rise .28s ease both; }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: rgba(238,242,252,.2); margin: 0 auto 10px; }
.facts { display: grid; gap: 8px; margin: 12px 0 16px; }
.fact { display: flex; justify-content: space-between; gap: 14px; padding: 11px 14px; border-radius: 14px; background: var(--surf2); }
.fact span:first-child { color: var(--ink2); font-size: 13.5px; }
.fact span:last-child { text-align: right; font-weight: 600; font-size: 14px; }
.notice { padding: 12px 14px; border-radius: 14px; font-size: 13.5px; color: var(--ink2);
  background: rgba(124,150,255,.08); border: 1px solid rgba(124,150,255,.22); margin: 10px 0; }
.notice.warn { background: rgba(243,180,120,.08); border-color: rgba(243,180,120,.3); color: #F6D2AE; }
.sheet .actions { display: grid; gap: 10px; margin-top: 8px; }

/* ---------- ответ ---------- */
.answer-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.answer-meta { color: var(--ink3); font-size: 13px; }
.verdict { display: flex; gap: 14px; align-items: flex-start; }
.verdict .orb { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 36% 34%, #FFF6DD, #F3B478 55%, #8a5a2a 100%); box-shadow: 0 0 26px rgba(243,180,120,.55); animation: halo 6s ease-in-out infinite; }
.verdict .orb::after { content: ""; position: absolute; inset: 0 0 0 14px; border-radius: 50%; background: rgba(15,21,48,.92); transform: translateX(10px); }
.verdict.neg .orb { background: radial-gradient(circle at 36% 34%, #E6ECFF, #7C96FF 55%, #2c3b78 100%); box-shadow: 0 0 26px rgba(124,150,255,.5); }
.verdict.neutral .orb { background: radial-gradient(circle at 36% 34%, #E9FFFB, #5FE3D0 55%, #1d6b62 100%); box-shadow: 0 0 26px rgba(95,227,208,.45); }
.verdict h2 { margin: 2px 0 2px; font-size: 22px; }
.verdict .q { color: var(--ink2); font-size: 14px; margin: 0; }
.answer-text { margin: 14px 0 0; font-size: 15.5px; line-height: 1.55; color: #E3E8F7; }
.gauge { display: grid; justify-items: center; margin-top: 4px; }
.gauge svg { width: 100%; max-width: 280px; }
.gauge .track { fill: none; stroke: rgba(238,242,252,.10); stroke-width: 12; stroke-linecap: round; }
.gauge .seg-on { fill: none; stroke: url(#g-grad); stroke-width: 12; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(95,227,208,.55));
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.4s ease .2s forwards; }
.gauge .lbl { fill: var(--ink); font-size: 16px; font-weight: 700; text-anchor: middle; }
.gauge .lbls { display: flex; justify-content: space-between; width: 100%; max-width: 280px; color: var(--ink3); font-size: 12px; }
.gauge .lbls .on { color: var(--a2); font-weight: 700; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.tile { padding: 10px 8px; border-radius: 16px; background: var(--surf2); border: 1px solid var(--line); text-align: center; min-height: 92px;
  display: flex; flex-direction: column; justify-content: space-between; }
.tile small { color: var(--ink3); font-size: 11px; line-height: 1.25; }
.tile .g { font-family: var(--glyph); font-size: 22px; color: #DCE6FF; }
.tile b { font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.details-toggle { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; text-align: left; }
.details { margin-top: 12px; }
.details h3 { color: var(--a2); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 18px 0 8px; }
.details ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.details li { padding: 10px 12px; border-radius: 14px; background: var(--surf2); font-size: 14px; color: #DCE3F5; }
.details li.invalid { opacity: .7; }
.details .sig b { display: block; }
.details .sig small { display: block; color: var(--ink3); margin-top: 3px; }
.chart-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.chart-table td { padding: 7px 6px; border-bottom: 1px solid var(--line); }
.chart-table td:first-child { font-family: var(--glyph); width: 26px; color: #DCE6FF; }
.chart-table td:last-child { text-align: right; color: var(--ink2); }
.real-wheel { width: 100%; max-width: 360px; display: block; margin: 8px auto 0; }
.real-wheel .zring { fill: rgba(20,27,49,.6); stroke: rgba(238,241,250,.25); }
.real-wheel .zline, .real-wheel .hline { stroke: rgba(238,241,250,.14); }
.real-wheel .axis { stroke: var(--a2); stroke-width: 1.4; }
.real-wheel .zg { fill: #C9D3F2; font-family: var(--glyph); font-size: 12px; text-anchor: middle; dominant-baseline: central; }
.real-wheel .pg { fill: #fff; font-family: var(--glyph); font-size: 15px; text-anchor: middle; dominant-baseline: central; }
.real-wheel .pg.sig { fill: var(--a2); }
.real-wheel .hn { fill: var(--ink3); font-size: 9px; text-anchor: middle; dominant-baseline: central; }
.real-wheel .tick { stroke: rgba(255,255,255,.55); }
.disclaimer { font-size: 12.5px; color: var(--ink3); margin-top: 12px; }

/* ---------- история ---------- */
.hist-item .headline { margin-left: auto; flex: 0 0 auto; }
.empty { text-align: center; padding: 36px 10px; color: var(--ink2); }
.empty .big { font-size: 42px; font-family: var(--emoji); }

/* ---------- пакеты ---------- */
.pack { display: flex; gap: 14px; align-items: center; }
.pack + .pack { margin-top: 12px; }
.orbit { position: relative; flex: 0 0 auto; width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,150,255,.25), rgba(15,21,48,0) 70%); border: 1px solid rgba(124,150,255,.25); }
.orbit .spin { position: absolute; inset: 0; animation: aur-spin var(--t, 18s) linear infinite; }
.orbit .sphere { position: absolute; left: 50%; top: 50%; width: var(--size, 18px); height: var(--size, 18px); margin: calc(var(--size, 18px) / -2);
  border-radius: 50%; transform: rotate(var(--a)) translateY(var(--r, 0px));
  background: radial-gradient(circle at 34% 30%, #FFFFFF, var(--c, #9fb1ff) 45%, rgba(20,27,60,.9) 100%);
  box-shadow: 0 0 14px var(--c, #9fb1ff); }
.pack .price { margin-left: auto; text-align: right; color: var(--ink3); font-size: 12.5px; }
.pack h3 { margin: 0; font-size: 16px; }
.pack p { margin: 2px 0 0; color: var(--ink2); font-size: 13px; }

/* ---------- онбординг ---------- */
.onboarding { position: fixed; inset: 0; z-index: 30; overflow: auto; display: flex; flex-direction: column;
  background: radial-gradient(120% 70% at 50% 0%, rgba(27,42,92,.86) 0%, rgba(10,15,34,.9) 55%, rgba(6,8,15,.94) 100%); }
.ob-inner { position: relative; z-index: 1; flex: 1; max-width: var(--col); width: 100%; margin: 0 auto; display: flex; flex-direction: column;
  padding: calc(24px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom)); }
.ob-art { position: relative; flex: 1; min-height: 300px; display: grid; place-items: center; }
.ob-art .giant-moon { width: 210px; height: 210px; border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, #FBF7EA 0%, #DCD5C4 36%, #8E8AA0 68%, #3E3F58 100%);
  box-shadow: 0 0 90px rgba(220,230,255,.45), inset -30px -22px 60px rgba(8,10,26,.6); animation: halo 7s ease-in-out infinite; }
.ob-art .giant-planet { width: 190px; height: 190px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 34% 30%, #FFE7C4 0%, #E3A562 40%, #7a4a22 78%, #3b2412 100%); box-shadow: 0 0 80px rgba(243,180,120,.45); }
.ob-art .giant-planet::after { content: ""; position: absolute; left: -36px; right: -36px; top: 46%; height: 26px; border-radius: 50%;
  border: 3px solid rgba(255,226,189,.55); transform: rotate(-14deg); box-shadow: 0 0 18px rgba(243,180,120,.4); }
.ob-dots { display: flex; gap: 6px; justify-content: center; margin: 14px 0; }
.ob-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(238,242,252,.22); }
.ob-dots i.on { width: 22px; border-radius: 4px; background: var(--a2); }
.ob-text h1 { font-size: 28px; }
.legal-check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: rgba(20,27,49,.85);
  border: 1px solid var(--line); margin-top: 10px; }
.legal-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: #5FE3D0; flex: 0 0 auto; }
.legal-check span { font-size: 14px; }
.legal-check button { padding: 0; min-height: 0; }

/* ---------- прочее ---------- */
.toast { position: fixed; z-index: 40; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px);
  max-width: min(92vw, 420px); padding: 12px 16px; border-radius: 14px; background: #1F2A4D; border: 1px solid var(--line); color: var(--ink);
  font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.loading { display: grid; place-items: center; gap: 14px; padding: 48px 0; color: var(--ink2); }
.loader { width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(124,150,255,.2); border-top-color: var(--a2);
  animation: spin 1.1s linear infinite; box-shadow: 0 0 24px rgba(95,227,208,.25); }
.guest-banner { margin: 0 0 14px; }
.reveal { animation: rise .45s ease both; animation-delay: var(--delay, 0s); }
.attrib { color: var(--ink3); font-size: 11.5px; margin-top: 18px; }

@media (hover: none), (pointer: coarse) {
  .row, .cat, .secondary-button { min-height: 52px; }
}

/* Анимации на паузе, когда вкладка скрыта (класс ставит app.js) */
.is-hidden *, .is-hidden *::before, .is-hidden *::after { animation-play-state: paused !important; }
/* Слабые устройства: упрощённое небо */
.lite .aurora { filter: blur(40px); opacity: .35; }
.lite .stars { animation: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .gauge .seg-on { stroke-dashoffset: 0; }
}

/* ---------- ключевые кадры (из Aurora 4746d98) ---------- */
@keyframes drift-a { 0%, 100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(16%, 11%, 0) scale(1.16); } }
@keyframes drift-b { 0%, 100% { transform: translate3d(0,0,0) scale(1.06); } 50% { transform: translate3d(-15%, -13%, 0) scale(.9); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes aur-spin { to { transform: rotate(360deg); } }
@keyframes dot-pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes sheen { 0% { transform: translateX(-110%); } 60%, 100% { transform: translateX(320%); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes drift-sky { from { transform: translate3d(0,0,0); } to { transform: translate3d(-2.6%, 1.7%, 0); } }
@keyframes shoot-a { 0%, 89% { opacity: 0; transform: translate3d(0,0,0) rotate(17deg); } 91% { opacity: .9; } 100% { opacity: 0; transform: translate3d(480px, 150px, 0) rotate(17deg); } }
@keyframes shoot-b { 0%, 92% { opacity: 0; transform: translate3d(0,0,0) rotate(-11deg); } 94% { opacity: .7; } 100% { opacity: 0; transform: translate3d(430px, -86px, 0) rotate(-11deg); } }
@keyframes twinkle { 0%, 100% { opacity: .14; transform: scale(.8); } 50% { opacity: .8; transform: scale(1); } }
@keyframes halo { 0%, 100% { opacity: .9; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes phase { from { transform: translateX(-6px); } to { transform: translateX(10px); } }
@keyframes enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

/* служебные модификаторы (вместо inline-стилей: их блокирует CSP) */
.spaced { margin-top: 12px; }
.flush { margin: 0 !important; }
.answer-actions { margin-top: 14px; display: grid; gap: 10px; }
.grant-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ob-wheel { width: 280px; }
.actions { display: grid; gap: 10px; }
.cta-block { margin: 20px 0 8px; }
