/* ═══════════════════════════════════════════════════════════════
   КОСМИЧЕСКИЙ ОРАКУЛ — дизайн «Орбитальный пульт» (v1.28)
   Холодный вакуум, ионный циан, электрический индиго и одна горячая
   точка — солнечный янтарь для легендарных ответов.
   Подключается ПОСЛЕДНИМ: переопределяет оформление, логика не тронута.
   Шрифты: Unbounded (заголовки, цифры) · Onest (текст)
   ═══════════════════════════════════════════════════════════════ */

:root {
    --bg:        #04070d;
    --bg-2:      #08101d;
    --panel:     rgba(10, 18, 34, 0.66);
    --ink:       #e8f1ff;
    --text:      #dfe9fb;
    --muted:     #8b9dbd;
    --ion:       #5ee2f0;
    --ion-soft:  #a8f6ff;
    --volt:      #5580f7;
    --solar:     #ffb347;
    --line:      rgba(110, 200, 255, 0.16);
    --line-hot:  rgba(94, 226, 240, 0.46);
    --rc-common:    #8fa6c4;
    --rc-rare:      #7b93ff;
    --rc-legendary: #ffb347;
    --font-main: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-hand: 'Unbounded', 'Onest', sans-serif;
    --font-display: 'Unbounded', 'Onest', sans-serif;
    --cut: 14px;
}

/* ── База ─────────────────────────────────────────────────────── */

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    font-feature-settings: "ss01", "tnum" 0;
    -webkit-font-smoothing: antialiased;
}

/* Вакуум: два холодных свечения и тонкая координатная сетка, что гаснет к краям */
body::before {
    background:
        radial-gradient(900px 520px at 88% -8%, rgba(85, 128, 247, 0.22), transparent 64%),
        radial-gradient(760px 480px at -6% 30%, rgba(94, 226, 240, 0.10), transparent 64%),
        radial-gradient(1000px 600px at 50% 116%, rgba(40, 70, 170, 0.22), transparent 64%),
        linear-gradient(rgba(120, 190, 255, 0.045) 1px, transparent 1px) 0 0 / 72px 72px,
        linear-gradient(90deg, rgba(120, 190, 255, 0.045) 1px, transparent 1px) 0 0 / 72px 72px,
        linear-gradient(180deg, #04070d 0%, #070d1a 55%, #04070d 100%);
    -webkit-mask-image: none;
}

::selection { background: rgba(94, 226, 240, 0.34); color: #fff; }

:focus-visible {
    outline: 2px solid var(--ion);
    outline-offset: 3px;
    border-radius: 2px;
}

html { scrollbar-color: rgba(94, 226, 240, 0.4) #04070d; scrollbar-width: thin; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; }

[class*="badge"], [class*="chip"], [class*="label"] { text-transform: none !important; }

.grad {
    background: linear-gradient(95deg, #a8f6ff 0%, #5ee2f0 32%, #6c8cff 68%, #b58cff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ── Шапка: тонкая бортовая панель ────────────────────────────── */

.site-header {
    background: rgba(4, 7, 13, 0.72);
    border-bottom: 0;
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-hot) 20%, var(--line) 70%, transparent);
}

.header-inner { padding: 12px 0; }

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.01em;
    color: var(--ink);
    text-shadow: none;
}

.site-nav { gap: 6px; }

.site-nav a {
    position: relative;
    padding: 8px 11px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--muted);
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 11px; right: 11px; bottom: 3px;
    height: 1px;
    background: var(--ion);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }

.site-nav .nav-cta {
    margin-left: 8px;
    padding: 8px 16px;
    color: #031016;
    background: var(--ion);
    border: 0;
    border-radius: 0;
    font-weight: 600;
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
    box-shadow: none;
}
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover { background: var(--ion-soft); color: #031016; }

.sound-btn {
    width: 36px; height: 36px;
    border-radius: 2px;
    border: 1px solid var(--line);
    color: var(--ion);
    background: rgba(94, 226, 240, 0.04);
}
.sound-btn:hover { background: rgba(94, 226, 240, 0.12); border-color: var(--line-hot); transform: none; }

/* ── Общие «HUD-панели»: тонкая рамка + угловые маркеры ───────── */

.stat-card, .moon-card, .qotd-card, .day-fortune, .answer-card,
.planet-modal-card, .note-card, .notes-cta, .card-glass, .gpanel, .compat-card {
    --br: var(--ion);
    --fill-a: rgba(13, 24, 46, 0.78);
    --fill-b: rgba(6, 12, 25, 0.86);
    background:
        linear-gradient(var(--br), var(--br)) 0 0 / 16px 1px no-repeat,
        linear-gradient(var(--br), var(--br)) 0 0 / 1px 16px no-repeat,
        linear-gradient(var(--br), var(--br)) 100% 0 / 16px 1px no-repeat,
        linear-gradient(var(--br), var(--br)) 100% 0 / 1px 16px no-repeat,
        linear-gradient(var(--br), var(--br)) 0 100% / 16px 1px no-repeat,
        linear-gradient(var(--br), var(--br)) 0 100% / 1px 16px no-repeat,
        linear-gradient(var(--br), var(--br)) 100% 100% / 16px 1px no-repeat,
        linear-gradient(var(--br), var(--br)) 100% 100% / 1px 16px no-repeat,
        linear-gradient(180deg, var(--fill-a), var(--fill-b));
    background-origin: border-box;
    border: 1px solid var(--line);
    border-radius: 2px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ── Секция гадания ───────────────────────────────────────────── */

.hero { padding: 48px 0 12px; }

.hero-grid {
    grid-template-columns: minmax(300px, 410px) 1fr;
    gap: 54px;
}

/* Портрет — «окно сканера»: рамка-визир, строчная развёртка, подпись-табло */
.portrait {
    padding: 0;
    border-radius: 2px;
    background: #050a14;
    box-shadow: 0 0 0 1px var(--line), 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 90px rgba(85, 128, 247, 0.16);
    animation: none;
    overflow: visible;
}

.portrait::before {
    content: "";
    position: absolute;
    inset: -7px;
    z-index: 3;
    pointer-events: none;
    --br: var(--ion);
    background:
        linear-gradient(var(--br), var(--br)) 0 0 / 22px 2px no-repeat,
        linear-gradient(var(--br), var(--br)) 0 0 / 2px 22px no-repeat,
        linear-gradient(var(--br), var(--br)) 100% 0 / 22px 2px no-repeat,
        linear-gradient(var(--br), var(--br)) 100% 0 / 2px 22px no-repeat,
        linear-gradient(var(--br), var(--br)) 0 100% / 22px 2px no-repeat,
        linear-gradient(var(--br), var(--br)) 0 100% / 2px 22px no-repeat,
        linear-gradient(var(--br), var(--br)) 100% 100% / 22px 2px no-repeat,
        linear-gradient(var(--br), var(--br)) 100% 100% / 2px 22px no-repeat;
}

.portrait::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        repeating-linear-gradient(180deg, rgba(120, 220, 255, 0.07) 0 1px, transparent 1px 4px),
        linear-gradient(180deg, transparent 55%, rgba(4, 7, 13, 0.92));
}

.portrait img {
    border-radius: 2px;
    aspect-ratio: 4 / 5;
    filter: saturate(0.92) contrast(1.06) hue-rotate(-6deg);
}

.portrait figcaption {
    position: absolute;
    left: 18px; right: 18px; bottom: 14px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    text-align: left;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--ink);
    text-shadow: none;
}

.portrait figcaption::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--ion);
    box-shadow: 0 0 10px var(--ion);
    animation: livePulse 2.4s ease-in-out infinite;
}

@keyframes livePulse { 50% { opacity: 0.25; } }

.runes span {
    color: var(--ion);
    font-size: 14px;
    text-shadow: 0 0 10px rgba(94, 226, 240, 0.8);
    animation-duration: 8s;
}

.oracle-console h1 {
    font-size: clamp(27px, 3.7vw, 44px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    text-shadow: none;
}

.lead {
    margin-top: 16px;
    color: var(--muted);
    font-size: 16.5px;
    line-height: 1.65;
    max-width: 54ch;
}

/* ── Шар: голографическая сфера с меридианами ─────────────────── */

.orb-stage { padding: 26px 0 4px; }

.orb-glow {
    background: radial-gradient(circle, rgba(85, 128, 247, 0.45), rgba(94, 226, 240, 0.12) 46%, transparent 68%);
}

.orb-sphere {
    background:
        radial-gradient(circle at 34% 26%, rgba(220, 250, 255, 0.85), rgba(94, 226, 240, 0.22) 14%, rgba(40, 80, 200, 0.18) 40%, rgba(5, 10, 26, 0.97) 74%);
    box-shadow:
        inset 0 -22px 46px rgba(0, 0, 0, 0.75),
        inset 0 0 0 1px rgba(168, 246, 255, 0.35),
        inset 0 12px 28px rgba(168, 246, 255, 0.18),
        0 0 60px rgba(85, 128, 247, 0.5),
        0 18px 40px rgba(0, 0, 0, 0.55);
}

/* меридианы и параллели */
.orb-sphere::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 50%;
    pointer-events: none;
    background:
        repeating-linear-gradient(180deg, rgba(168, 246, 255, 0.16) 0 1px, transparent 1px 22px),
        repeating-radial-gradient(ellipse 36% 50% at 50% 50%, transparent 0 17px, rgba(168, 246, 255, 0.14) 17px 18px);
    -webkit-mask-image: radial-gradient(circle, #000 58%, transparent 98%);
    mask-image: radial-gradient(circle, #000 58%, transparent 98%);
}

.orb-symbol {
    z-index: 3;
    color: var(--ion-soft);
    text-shadow: 0 0 22px rgba(94, 226, 240, 0.95), 0 0 60px rgba(94, 226, 240, 0.5);
}

.orb-base {
    left: 6%; right: 6%;
    height: 11%;
    background: radial-gradient(ellipse at 50% 0%, rgba(94, 226, 240, 0.55), rgba(85, 128, 247, 0.14) 55%, transparent 72%);
    clip-path: none;
    border-radius: 50%;
    box-shadow: none;
    border-top: 1px solid rgba(168, 246, 255, 0.45);
}

.orb.thinking .orb-glow,
.orb.revealed .orb-glow { background: radial-gradient(circle, rgba(94, 226, 240, 0.55), rgba(85, 128, 247, 0.26) 48%, transparent 70%); }

.orb.thinking .orb-sphere {
    box-shadow:
        inset 0 -22px 46px rgba(0, 0, 0, 0.7),
        inset 0 0 0 1px rgba(168, 246, 255, 0.6),
        0 0 100px rgba(94, 226, 240, 0.7),
        0 18px 40px rgba(0, 0, 0, 0.55);
}

.orb.revealed .orb-sphere {
    box-shadow:
        inset 0 -22px 46px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 220, 160, 0.7),
        0 0 110px rgba(255, 179, 71, 0.55),
        0 18px 40px rgba(0, 0, 0, 0.55);
}
.orb.revealed .orb-symbol { color: #fff; text-shadow: 0 0 26px #ffe2b0, 0 0 80px var(--solar); }

/* ── Форма вопроса ────────────────────────────────────────────── */

#question {
    padding: 16px 74px 16px 18px;
    font-family: var(--font-main);
    font-size: 16px;
    color: var(--ink);
    background: rgba(8, 16, 32, 0.78);
    border: 1px solid var(--line);
    border-left: 2px solid var(--ion);
    border-radius: 2px;
}
#question::placeholder { color: rgba(139, 157, 189, 0.7); }
#question:focus {
    border-color: var(--line-hot);
    border-left-color: var(--ion);
    background: rgba(10, 20, 40, 0.9);
    box-shadow: 0 0 0 3px rgba(94, 226, 240, 0.1), 0 0 36px rgba(85, 128, 247, 0.22);
}
.input-wrap.error #question { border-color: #ff6b81; border-left-color: #ff6b81; box-shadow: 0 0 0 3px rgba(255, 107, 129, 0.14); }

.char-count { font-size: 11.5px; font-variant-numeric: tabular-nums; }

.chips { gap: 8px; }

.chip {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--text);
    background: rgba(94, 226, 240, 0.03);
    border: 1px solid var(--line);
    border-radius: 2px;
}
.chip:hover { background: rgba(94, 226, 240, 0.1); border-color: var(--line-hot); transform: none; }
.chip.active {
    background: var(--ion);
    border-color: var(--ion);
    color: #031016;
    font-weight: 600;
    box-shadow: 0 0 22px rgba(94, 226, 240, 0.28);
}

.btn-magic {
    margin-top: 16px;
    padding: 17px 24px;
    font-family: var(--font-display);
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #031016;
    background: linear-gradient(100deg, #a8f6ff, #5ee2f0 46%, #6c9bff);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    box-shadow: none;
}
.btn-magic:hover:not(:disabled) { transform: none; filter: brightness(1.1) saturate(1.1); box-shadow: none; }
.btn-magic:disabled { filter: saturate(0.4) brightness(0.7); }

/* Компактная версия (v1.34): раньше жила только в admin.css — на игровых
   страницах «small» молча разворачивался в большую кнопку и перекрывал текст */
.btn-magic.small {
    width: auto;
    margin-top: 0;
    padding: 10px 18px;
    font-size: 13.5px;
    flex: none;
}

.btn-ghost {
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ion-soft);
    background: rgba(94, 226, 240, 0.04);
    border: 1px solid var(--line-hot);
    border-radius: 2px;
}
.btn-ghost:hover { background: rgba(94, 226, 240, 0.14); transform: none; }

/* ── Ответ оракула: «пакет данных» ────────────────────────────── */

.answer-card {
    --rc: var(--rc-common);
    --br: var(--rc);
    border: 1px solid color-mix(in srgb, var(--rc) 55%, transparent);
    padding: 22px 24px 18px;
    box-shadow: 0 0 44px color-mix(in srgb, var(--rc) 16%, transparent), 0 22px 50px rgba(0, 0, 0, 0.5);
}
.answer-card.r-common    { --rc: var(--rc-common); box-shadow: 0 0 44px rgba(143, 166, 196, 0.12), 0 22px 50px rgba(0, 0, 0, 0.5); }
.answer-card.r-rare      { --rc: var(--rc-rare);   box-shadow: 0 0 60px rgba(123, 147, 255, 0.28), 0 22px 50px rgba(0, 0, 0, 0.5); }
.answer-card.r-legendary {
    --rc: var(--rc-legendary);
    border-width: 1px;
    --fill-a: rgba(54, 34, 8, 0.55);
    box-shadow: 0 0 80px rgba(255, 179, 71, 0.3), 0 22px 50px rgba(0, 0, 0, 0.55);
}
@keyframes legendaryPulse { 50% { box-shadow: 0 0 110px rgba(255, 179, 71, 0.5), 0 22px 50px rgba(0, 0, 0, 0.55); } }

.answer-badge {
    gap: 8px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 2px;
    background: color-mix(in srgb, var(--rc) 12%, transparent);
}

.answer-text {
    font-family: var(--font-main);
    font-size: clamp(18px, 2.2vw, 21px);
    line-height: 1.55;
    font-weight: 400;
}

.caret { width: 8px; border-radius: 0; }

.hint { font-style: normal; font-size: 13px; color: rgba(139, 157, 189, 0.8); max-width: 60ch; }

/* ── Заголовки секций: узел + линия ───────────────────────────── */

.section-title,
.history-head h2 {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    font-family: var(--font-display);
    font-size: clamp(20px, 2.6vw, 30px);
    font-weight: 600;
    letter-spacing: -0.015em;
    text-shadow: none;
}

.section-title::before,
.history-head h2::before {
    content: "";
    flex: none;
    width: 10px; height: 10px;
    background: var(--ion);
    box-shadow: 0 0 14px var(--ion);
    transform: rotate(45deg);
}

.section-title::after,
.history-head h2::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--line-hot), transparent 85%);
}

.history-head h2 { flex: 1; }

.section-sub {
    text-align: left;
    margin: 12px 0 0;
    max-width: 64ch;
    color: var(--muted);
    font-size: 15.5px;
}

.section-sub strong { font-weight: 600; }

.gallery { padding: 72px 0 10px; }
.day-section, .moon-section, .qotd-section, .notes-section { padding-top: 76px; }

/* ── Орбита судеб ─────────────────────────────────────────────── */

.orbit-ring { border: 1px solid rgba(94, 226, 240, 0.14); }
.orbit-ring.ring-2 { border: 1px dashed rgba(94, 226, 240, 0.12); opacity: 1; }

.orbit-center {
    box-shadow:
        0 0 0 1px rgba(168, 246, 255, 0.5),
        0 0 0 9px rgba(4, 7, 13, 0.9),
        0 0 0 10px rgba(94, 226, 240, 0.3),
        0 0 70px rgba(94, 226, 240, 0.4),
        0 0 150px rgba(85, 128, 247, 0.3),
        inset 0 -20px 46px rgba(0, 0, 0, 0.72);
}
.orbit-center:hover {
    box-shadow:
        0 0 0 1px rgba(168, 246, 255, 0.8),
        0 0 0 9px rgba(4, 7, 13, 0.9),
        0 0 0 10px rgba(94, 226, 240, 0.6),
        0 0 90px rgba(94, 226, 240, 0.6),
        0 0 170px rgba(85, 128, 247, 0.45),
        inset 0 -20px 46px rgba(0, 0, 0, 0.72);
}

.planet .planet-tag,
.orbit-center .planet-tag {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--ink);
    text-shadow: none;
    padding: 3px 8px;
    background: rgba(4, 7, 13, 0.85);
    border: 1px solid var(--line-hot);
    border-radius: 2px;
}

.planet-modal-backdrop { background: rgba(2, 4, 10, 0.86); }

.planet-modal-card {
    --br: var(--pc);
    border: 1px solid color-mix(in srgb, var(--pc) 50%, transparent);
    padding: 28px 28px 24px;
    box-shadow: 0 0 80px color-mix(in srgb, var(--pc) 22%, transparent), 0 30px 70px rgba(0, 0, 0, 0.65);
}

.planet-modal-close {
    width: 34px; height: 34px;
    border-radius: 2px;
    border: 1px solid var(--line-hot);
    color: var(--ion-soft);
    font-size: 13px;
}
.planet-modal-close:hover { background: rgba(94, 226, 240, 0.14); transform: none; }

.planet-modal-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    text-shadow: none;
}

.pm-photo { border-radius: 2px; border-color: var(--line); }
.pm-photo:hover { transform: none; box-shadow: 0 0 0 1px var(--line-hot), 0 0 30px color-mix(in srgb, var(--pc) 30%, transparent); }

/* ── Планета дня ──────────────────────────────────────────────── */

.day-planet-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--ink);
    text-shadow: none;
}

.day-planet::after { border-width: 1px; border-top-color: transparent; }

.day-fortune {
    --br: color-mix(in srgb, var(--pc) 70%, var(--ion));
    margin-top: 70px;
    padding: 28px 30px 22px;
    border-color: color-mix(in srgb, var(--pc) 45%, transparent);
    box-shadow: 0 0 60px color-mix(in srgb, var(--pc) 18%, transparent), 0 24px 60px rgba(0, 0, 0, 0.55);
    animation: flipIn 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
}
.day-fortune .answer-text { font-size: clamp(17px, 2vw, 20px); }

/* ── Луна ─────────────────────────────────────────────────────── */

.moon-card { margin-top: 28px; }
.moon-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.moon-power { border-radius: 2px; font-size: 12px; }

/* ── Вопрос дня ───────────────────────────────────────────────── */

.qotd-card { margin-top: 28px; }
.qotd-text {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.01em;
}
.qotd-opt, .qotd-btn, .qotd-arch-toggle, .qotd-answer { border-radius: 2px; }
.qotd-badge { border-radius: 2px; font-size: 12px; letter-spacing: 0.02em; }

/* ── Счётчики: показания приборов ─────────────────────────────── */

.stats-band { margin-top: 70px; gap: 14px; }

.stat-card {
    position: relative;
    text-align: left;
    padding: 24px 22px 22px;
}
.stat-card:hover { transform: none; border-color: var(--line-hot); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.stat-card::after {
    content: "";
    position: absolute;
    left: 22px; bottom: 0;
    width: 44px; height: 2px;
    background: linear-gradient(90deg, var(--ion), transparent);
}
.stat-num {
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--ink);
    text-shadow: none;
}
.stat-label { margin-top: 8px; font-size: 14px; }

/* ── Хроника ──────────────────────────────────────────────────── */

.history-list { scrollbar-color: rgba(94, 226, 240, 0.4) transparent; }
.history-list::-webkit-scrollbar-thumb { background: rgba(94, 226, 240, 0.35); border-radius: 0; }

.h-item {
    background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 7%, transparent), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--line);
    border-left: 2px solid var(--rc);
    border-radius: 2px;
}
.h-q { font-style: normal; font-size: 13.5px; }
.h-badge { border-radius: 2px; font-size: 11.5px; letter-spacing: 0.01em; padding: 2px 8px; }
.empty { font-style: normal; }

/* ── Заметки ──────────────────────────────────────────────────── */

.note-card, .note-card.tilt-1, .note-card.tilt-2, .note-card.tilt-3 { transform: none; }
.note-card { --br: var(--line-hot); box-shadow: none; }
a.note-card:hover { transform: none; --br: var(--ion); border-color: var(--line-hot); box-shadow: 0 0 40px rgba(94, 226, 240, 0.12); }
.note-label, .note-question { font-family: var(--font-main); }
.notes-cta { --br: var(--ion); }

/* ── Подвал, тост ─────────────────────────────────────────────── */

.site-footer {
    position: relative;
    border-top: 0;
    font-size: 13.5px;
}
.site-footer::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-hot) 30%, var(--line-hot) 70%, transparent);
}
.footer-stars { color: var(--ion); letter-spacing: 0.9em; text-shadow: none; opacity: 0.7; }

.toast {
    background: rgba(26, 8, 14, 0.94);
    border: 1px solid rgba(255, 107, 129, 0.5);
    border-left: 3px solid #ff6b81;
    border-radius: 2px;
    color: #ffd9de;
    text-align: left;
}

.db-error { border-radius: 2px; border-color: rgba(255, 107, 129, 0.5); background: rgba(26, 8, 14, 0.8); }

/* ── Адаптив ──────────────────────────────────────────────────── */

@media (max-width: 940px) {
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .portrait { max-width: 400px; }
    .oracle-console { text-align: left; }
    .lead { margin-inline: 0; }
    .chips { justify-content: flex-start; }
}

@media (max-width: 560px) {
    .logo { font-size: 12.5px; }
    .site-nav a { padding: 6px 7px; font-size: 13px; }
    .site-nav .nav-cta { margin-left: 2px; padding: 6px 12px; }
    .oracle-console h1 { font-size: 26px; }
    .section-title, .history-head h2 { font-size: 19px; gap: 12px; }
    .answer-card { padding: 18px 16px 14px; }
}

.oracle-console h1 .grad { display: block; }

/* Заголовки без неонового «свечения» */
h1, h2, h3, h4, .card-title { text-shadow: none !important; }

/* Пустые клетки календаря не должны растягиваться на всю строку */
.ritual-day.empty { grid-column: auto; padding: 0; text-align: initial; font-style: normal; }

input[type="search"] { background: rgba(8, 16, 32, 0.78); color: var(--ink); border: 1px solid var(--line); border-radius: 2px; padding: 7px 10px; font-family: inherit; }

a.btn-magic { display: inline-block; text-align: center; text-decoration: none; }
.palm-cta .btn-magic, .notes-cta .btn-magic { width: auto; margin-top: 18px; padding-inline: 34px; }
