/* Aura — стилі. Спершу мобільний, далі планшет/ПК (min-width). */

:root {
  --bg: #07051a;
  --bg2: #0f0b2c;
  --ink: #f1ecff;
  --muted: #aaa3d6;
  --dim: #77719f;
  --gold: #e8c47c;
  --gold-2: #f8e2ac;
  --violet: #8b7bff;
  --rose: #ff86bd;
  --teal: #59d8cc;
  --glass: rgba(24, 18, 58, 0.62);
  --glass-2: rgba(34, 26, 80, 0.72);
  --line: rgba(170, 160, 255, 0.16);
  --line-2: rgba(232, 196, 124, 0.45);
  --radius: 18px;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(139, 123, 255, 0.22), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(255, 134, 189, 0.12), transparent 60%),
    radial-gradient(1000px 800px at 50% 110%, rgba(89, 216, 204, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  overflow-x: hidden;
}
button, input, select { font: inherit; color: inherit; }
a { color: var(--gold); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#starfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.page { position: relative; z-index: 1; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- Верхня панель ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(7, 5, 26, 0.55);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font: 600 26px/1 var(--serif); letter-spacing: 0.06em; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch button { background: none; border: 0; padding: 6px 10px; font-size: 13px; color: var(--muted); cursor: pointer; }
.lang-switch button[aria-pressed='true'] { background: rgba(232, 196, 124, 0.16); color: var(--gold); }
.btn-login {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: rgba(232, 196, 124, 0.08);
  color: var(--gold-2); border-radius: 999px; padding: 7px 14px; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn-login img { width: 22px; height: 22px; border-radius: 50%; }
.btn-login:hover { background: rgba(232, 196, 124, 0.18); }

/* ---------- Герой і форма ---------- */
.hero { padding: 28px 0 40px; }
.hero-grid { display: grid; gap: 22px; }
.hero-text { text-align: center; }
.orb { width: 132px; height: 132px; margin: 6px auto 8px; position: relative; }
.orb svg { width: 100%; height: 100%; overflow: visible; }
.orb .ring-1 { animation: spin 60s linear infinite; transform-origin: 50% 50%; }
.orb .ring-2 { animation: spin 90s linear infinite reverse; transform-origin: 50% 50%; }
.orb .core { filter: drop-shadow(0 0 10px rgba(232, 196, 124, 0.8)); animation: pulse 4s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: 0.75; transform: scale(0.96); } }
.kicker { margin: 0; color: var(--gold); letter-spacing: 0.22em; text-transform: uppercase; font-size: 12px; }
.hero h1 {
  margin: 6px 0 8px; font: 600 clamp(44px, 12vw, 84px)/1 var(--serif); letter-spacing: 0.04em;
  background: linear-gradient(120deg, #fff 0%, var(--gold-2) 40%, var(--rose) 75%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { margin: 0 auto; max-width: 30em; color: var(--muted); font-size: 16px; }
.hero-hook { margin: 14px auto 0; color: var(--ink); font: italic 500 20px/1.35 var(--serif); max-width: 24em; }

.glass {
  background: var(--glass); border: 1px solid var(--line); border-radius: 24px; padding: 20px 16px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.form h2 { margin: 0 0 4px; font: 600 26px/1.2 var(--serif); color: var(--gold-2); text-align: center; }
.field { margin-top: 14px; }
.field > label, .field > .label { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.field .hint { color: var(--dim); font-size: 12px; text-align: right; }
.input {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 14px; border: 1px solid rgba(170, 160, 255, 0.25);
  background: rgba(10, 7, 32, 0.7); color: var(--ink); font-size: 16px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 196, 124, 0.18); }
.input::placeholder { color: var(--dim); }
input[type='date'].input, input[type='time'].input { -webkit-appearance: none; appearance: none; }
input[type='date']::-webkit-calendar-picker-indicator, input[type='time']::-webkit-calendar-picker-indicator { filter: invert(0.8) sepia(0.5) hue-rotate(5deg); cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid rgba(170, 160, 255, 0.28); background: rgba(10, 7, 32, 0.6); color: var(--ink);
  border-radius: 999px; padding: 9px 16px; cursor: pointer; font-size: 15px; transition: all 0.2s;
}
.chip[aria-pressed='true'] { border-color: var(--gold); color: var(--gold-2); background: rgba(232, 196, 124, 0.12); box-shadow: 0 0 18px rgba(232, 196, 124, 0.18); }

/* Шепіт зірок: миттєвий попередній перегляд після введення дати */
.whispers { min-height: 0; overflow: hidden; transition: min-height 0.4s; }
.whispers.on { min-height: 64px; }
.whispers-title { margin: 12px 0 6px; font: italic 500 16px var(--serif); color: var(--gold); text-align: center; }
.whispers-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.whisper {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--line-2); background: rgba(232, 196, 124, 0.08); color: var(--gold-2);
  opacity: 0; transform: translateY(6px) scale(0.96); animation: whisper-in 0.6s forwards;
}
.whisper b { font-weight: 500; font-size: 17px; }
@keyframes whisper-in { to { opacity: 1; transform: none; } }

/* Пошук місця */
.place-box { position: relative; }
.place-results { list-style: none; margin: 6px 0 0; padding: 4px; border-radius: 14px; border: 1px solid rgba(170, 160, 255, 0.25); background: #120d34; max-height: 260px; overflow: auto; }
.place-results li { padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 15px; }
.place-results li:hover, .place-results li[aria-selected='true'] { background: rgba(139, 123, 255, 0.18); }
.place-results small { color: var(--dim); display: block; font-size: 12px; }
.place-status { font-size: 13px; color: var(--muted); margin-top: 6px; }
.place-actions { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 14px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--gold); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.place-chosen { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(232, 196, 124, 0.06); }
.place-chosen .name { font-size: 15px; }
.place-chosen .prec { font-size: 12px; color: var(--gold); display: block; }

.btn-main {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; margin-top: 20px;
  border: 0; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 17px; color: #261904; letter-spacing: 0.02em;
  background: linear-gradient(110deg, #f3d9a0 0%, #e8c47c 45%, #ffb37c 100%);
  box-shadow: 0 10px 30px rgba(232, 196, 124, 0.35); position: relative; overflow: hidden; transition: transform 0.15s;
}
.btn-main::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%); transform: translateX(-100%); animation: shine 3.5s infinite; }
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
.btn-main:active { transform: scale(0.98); }
.btn-main[disabled] { opacity: 0.6; cursor: wait; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(170, 160, 255, 0.3); background: rgba(10, 7, 32, 0.5); color: var(--ink); cursor: pointer; font-size: 15px; text-decoration: none;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.form-error { color: #ff9a9a; font-size: 14px; margin-top: 10px; text-align: center; }
.privacy-note { font-size: 12px; color: var(--dim); text-align: center; margin: 12px 0 0; }

/* ---------- Ритуал ---------- */
.ritual { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(5, 3, 18, 0.88); backdrop-filter: blur(6px); animation: fade-in 0.4s; }
.ritual-inner { text-align: center; padding: 20px; }
.ritual svg { width: min(70vw, 300px); height: min(70vw, 300px); }
.ritual .r-outer { animation: spin 6s linear infinite; transform-origin: 50% 50%; }
.ritual .r-inner { animation: spin 4s linear infinite reverse; transform-origin: 50% 50%; }
.ritual .r-rune { opacity: 0; animation: rune-flash 2.8s ease-in-out infinite; }
@keyframes rune-flash { 20%, 60% { opacity: 1; } 80% { opacity: 0; } }
.ritual-text { margin-top: 18px; font: italic 500 22px var(--serif); color: var(--gold-2); min-height: 1.5em; transition: opacity 0.3s; }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Результат ---------- */
.result { padding: 10px 0 60px; }
.result-head { text-align: center; padding: 18px 0 8px; }
.result-head h2 { margin: 0; font: 600 clamp(30px, 8vw, 50px)/1.1 var(--serif); color: var(--gold-2); }
.result-head .born { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.result-head .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.section { margin-top: 34px; opacity: 0; transform: translateY(24px); transition: opacity 0.8s, transform 0.8s; }
.section.in { opacity: 1; transform: none; }
.section-title { margin: 0 0 14px; text-align: center; font: 600 clamp(26px, 6vw, 36px)/1.15 var(--serif); color: var(--gold-2); }
.section-sub { text-align: center; color: var(--muted); margin: -6px auto 16px; max-width: 34em; font-size: 15px; }

.aura-grid { display: grid; gap: 18px; align-items: center; }
.aura-frame { position: relative; width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 1; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 0 80px rgba(139, 123, 255, 0.25); }
.aura-frame canvas { width: 100%; height: 100%; display: block; }
.aura-frame .drawing { position: absolute; inset: auto 0 14px; text-align: center; font: italic 16px var(--serif); color: var(--gold-2); transition: opacity 0.6s; }
.aura-traits { display: grid; gap: 10px; }
.trait { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); }
.trait .sw { width: 26px; height: 26px; border-radius: 50%; flex: none; box-shadow: 0 0 14px currentColor; }
.trait b { font-weight: 600; }
.trait p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* Прогноз дня */
.daily { padding: 18px 16px; }
.daily-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.daily-top h3 { margin: 0; font: 600 28px var(--serif); color: var(--gold-2); }
.daily-date { color: var(--muted); font-size: 14px; }
.daily-moon { color: var(--teal); font-size: 14px; margin-top: 4px; }
.daily-text { margin: 12px 0 0; font-size: 17px; }
.daily-advice { margin: 10px 0 0; padding: 10px 12px; border-left: 2px solid var(--gold); background: rgba(232, 196, 124, 0.06); border-radius: 0 12px 12px 0; color: var(--gold-2); font-size: 15px; }
.scores { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-top: 16px; }
.score label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.bar { height: 6px; border-radius: 99px; background: rgba(170, 160, 255, 0.15); margin-top: 5px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--violet), var(--gold)); transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.daily-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.meta { text-align: center; padding: 10px 6px; border-radius: 14px; background: rgba(10, 7, 32, 0.55); border: 1px solid var(--line); }
.meta .k { font-size: 12px; color: var(--dim); }
.meta .v { font: 600 22px/1.3 var(--serif); color: var(--gold-2); }
.meta .v svg { width: 22px; height: 30px; vertical-align: middle; }
.meta .s { font-size: 12px; color: var(--muted); }
.countdown { text-align: center; margin-top: 14px; font-size: 14px; color: var(--muted); }
.countdown b { color: var(--gold); font-variant-numeric: tabular-nums; font-weight: 500; }

/* Telegram */
.tg { border-color: rgba(42, 171, 238, 0.45); background: linear-gradient(160deg, rgba(20, 40, 80, 0.7), rgba(24, 18, 58, 0.7)); }
.tg h3 { margin: 0; font: 600 26px var(--serif); }
.tg p { margin: 6px 0 0; color: var(--muted); }
.btn-tg { background: linear-gradient(110deg, #2aabee, #229ed9); color: #fff; box-shadow: 0 10px 30px rgba(42, 171, 238, 0.3); }
.btn-tg svg { width: 22px; height: 22px; }
.tg-steps { margin: 12px 0 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.tg-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; color: var(--muted); cursor: pointer; }
.tg-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.tg-state { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(89, 216, 204, 0.1); border: 1px solid rgba(89, 216, 204, 0.35); color: #bff3ec; font-size: 14px; }
.tg-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.tg-row select { min-height: 40px; border-radius: 10px; background: #120d34; border: 1px solid var(--line); padding: 6px 10px; }
.tg-preview { margin-top: 14px; background: #17212b; border-radius: 16px; padding: 12px; }
.tg-msg { background: #182533; border: 1px solid #24364a; border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-size: 14px; color: #e8eef5; white-space: pre-line; }
.tg-head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 13px; color: #8fa4b8; }
.tg-head span { width: 28px; height: 28px; border-radius: 50%; background: #2a2160; display: grid; place-items: center; color: var(--gold); font-family: var(--serif); font-weight: 600; }

/* Картки систем */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.card { cursor: pointer; border: 0; padding: 0; background: none; text-align: center; color: inherit; min-height: 150px; }
.card .nm, .card .sys { display: block; }
/* Переворот 2D (стискання по ширині), сторони міняються посередині — працює в будь-якому браузері. */
.card-inner { display: block; position: relative; width: 100%; height: 100%; min-height: 150px; }
.card.flipped .card-inner { animation: card-flip 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes card-flip { 0% { transform: scaleX(1); } 50% { transform: scaleX(0.02) scaleY(1.04); } 100% { transform: scaleX(1); } }
.card-face { position: absolute; inset: 0; border-radius: 16px; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 6px; transition: opacity 0s linear 0.4s; }
.card-back { background: repeating-linear-gradient(45deg, rgba(139, 123, 255, 0.10) 0 6px, transparent 6px 12px), var(--glass-2); }
.card-back::before { content: '✦'; font-size: 28px; color: var(--gold); opacity: 0.7; }
.card-front { background: var(--glass); opacity: 0; }
.card.flipped .card-back { opacity: 0; }
.card.flipped .card-front { opacity: 1; box-shadow: 0 0 24px rgba(232, 196, 124, 0.12); }
.card:hover .card-front { border-color: var(--line-2); }
.card .sym { font: 600 34px/1.1 var(--serif); color: var(--gold-2); min-height: 40px; display: flex; align-items: center; }
.card .sym svg { width: 26px; height: 42px; }
.card .nm { margin-top: 6px; font-size: 14px; font-weight: 600; line-height: 1.25; }
.card .sys { font-size: 11.5px; color: var(--dim); margin-top: 2px; }
.cards-hint { text-align: center; font-size: 13px; color: var(--dim); margin-top: 10px; }

/* Нижня шторка / модальне вікно */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(4, 2, 14, 0.7); display: flex; align-items: flex-end; justify-content: center; animation: fade-in 0.25s; }
.sheet { width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; background: #140f38; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 24px 24px 0 0; padding: 10px 18px 26px; animation: sheet-up 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes sheet-up { from { transform: translateY(100%); } }
.sheet-grip { width: 44px; height: 5px; border-radius: 9px; background: rgba(170, 160, 255, 0.35); margin: 0 auto 12px; }
.sheet-close { float: right; background: none; border: 0; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 6px; }
.sheet h3 { margin: 4px 0 0; font: 600 28px/1.2 var(--serif); color: var(--gold-2); }
.sheet .big { font: 600 64px/1.1 var(--serif); color: var(--gold); text-align: center; margin: 8px 0; }
.sheet .big svg { width: 44px; height: 72px; }
.sheet .meaning { color: var(--teal); margin: 4px 0 0; }
.sheet p { margin: 10px 0 0; }
.sheet .kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin-top: 12px; font-size: 14px; }
.sheet .kv span:nth-child(odd) { color: var(--dim); }
.badge { display: inline-block; font-size: 12px; border-radius: 999px; padding: 3px 10px; margin-top: 10px; }
.badge.historic { background: rgba(89, 216, 204, 0.14); color: #9ff0e6; }
.badge.modern { background: rgba(232, 196, 124, 0.14); color: var(--gold-2); }
.badge.science { background: rgba(120, 160, 255, 0.16); color: #b8ccff; }
.sheet .origin { color: var(--dim); font-size: 13px; }

/* Небо */
.sky-wrap { max-width: 560px; margin: 0 auto; }
.sky-canvas { width: 100%; aspect-ratio: 1; display: block; border-radius: 50%; box-shadow: 0 0 80px rgba(89, 216, 204, 0.12), inset 0 0 40px rgba(0, 0, 0, 0.6); }
.sky-caption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 10px; }
.sky-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.sky-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }

/* Факти */
.facts { padding: 6px 16px; }
.fact { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fact:last-child { border-bottom: 0; }
.fact .k { color: var(--muted); font-size: 14px; flex: none; max-width: 48%; }
.fact .v { text-align: right; font-size: 15px; }
.fact .v small { display: block; color: var(--dim); font-size: 12px; }
.fact .v.gold { color: var(--gold-2); font: 600 20px var(--serif); }

/* Відомі люди */
.famous { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.person { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); text-decoration: none; color: var(--ink); min-width: 0; }
.person img, .person .ph { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; background: #241b5a; display: grid; place-items: center; color: var(--gold); font-family: var(--serif); }
.person .t { min-width: 0; }
.person b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person small { display: block; color: var(--dim); font-size: 12px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.source { text-align: center; font-size: 12px; color: var(--dim); margin-top: 8px; }

/* Звідки знання */
.origins { padding: 6px 16px; }
.origin-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.origin-row:last-child { border-bottom: 0; }
.origin-row .h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.origin-row .h b { font-weight: 600; font-size: 15px; }
.origin-row .badge { margin-top: 0; white-space: nowrap; }
.origin-row p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* Карта */
.map-modal { position: fixed; inset: 0; z-index: 70; background: rgba(4, 2, 14, 0.85); display: flex; flex-direction: column; }
.map-head { padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.map-head b { font: 600 20px var(--serif); color: var(--gold-2); }
#map { flex: 1; margin: 0 12px; border-radius: 18px; border: 1px solid var(--line-2); }
.map-foot { padding: 12px 16px 18px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.map-foot .picked { font-size: 14px; color: var(--muted); flex: 1 1 200px; }
.map-pin { width: 22px; height: 22px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 0 18px var(--gold); }
.leaflet-container { background: #0b0826; font: inherit; }
.map-modal .leaflet-tile-pane { filter: invert(1) hue-rotate(200deg) brightness(0.85) contrast(0.9); }
.pulse { animation: pulse-btn 1.6s ease-in-out infinite; }
@keyframes pulse-btn { 50% { box-shadow: 0 0 0 10px rgba(42, 171, 238, 0.15), 0 10px 30px rgba(42, 171, 238, 0.3); } }

footer { position: relative; z-index: 1; text-align: center; color: var(--dim); font-size: 13px; padding: 30px 16px 40px; border-top: 1px solid var(--line); }
footer a { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: #241b5a; border: 1px solid var(--line-2); color: var(--gold-2); padding: 10px 16px; border-radius: 999px; font-size: 14px; animation: fade-in 0.3s; }

/* ---------- Планшет і ПК ---------- */
@media (min-width: 720px) {
  .wrap { padding: 0 24px; }
  .glass { padding: 26px 26px; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .card, .card-inner { min-height: 170px; }
  .famous { grid-template-columns: repeat(3, 1fr); }
  .sheet-backdrop { align-items: center; }
  .sheet { border-radius: 24px; border-bottom: 1px solid var(--line-2); }
  .daily { padding: 24px 26px; }
  .scores { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 980px) {
  .hero { padding: 56px 0 70px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 48px; }
  .hero-text { text-align: left; }
  .orb { margin: 0 0 10px; width: 150px; height: 150px; }
  .hero .sub, .hero-hook { margin-left: 0; }
  .aura-grid { grid-template-columns: 1.1fr 0.9fr; gap: 32px; }
  .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
  .duo > .section { margin-top: 34px; }
  .cards { grid-template-columns: repeat(5, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .section { opacity: 1; transform: none; }
}
