/* ═══════════════════════════════════════════════════════════════
   КОСМИЧЕСКИЙ ОРАКУЛ — стили
   Палитра: глубокий космос #07040f · золото #f0c75e · фиолет #a855f7
   ═══════════════════════════════════════════════════════════════ */

:root {
    --bg:        #07040f;
    --bg-2:      #120a24;
    --panel:     rgba(24, 14, 48, 0.55);
    --gold:      #f0c75e;
    --gold-2:    #d4a017;
    --gold-soft: #ffe9a8;
    --purple:    #a855f7;
    --violet:    #7c3aed;
    --text:      #ece6f7;
    --muted:     #9a8fb8;
    --rc-common:   #9fb4c7;
    --rc-rare:     #b57ee0;
    --rc-legendary: #f0c75e;
    --font-main: 'Philosopher', Georgia, 'Times New Roman', serif;
    --font-hand: 'Marck Script', 'Philosopher', cursive;
}

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

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Туманности и виньетка позади звёзд */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(1200px 620px at 82% -10%, rgba(124, 58, 237, 0.28), transparent 62%),
        radial-gradient(900px 520px at -10% 32%, rgba(88, 28, 135, 0.30), transparent 62%),
        radial-gradient(1100px 700px at 50% 112%, rgba(30, 10, 80, 0.42), transparent 62%),
        linear-gradient(180deg, #07040f 0%, #0d0722 55%, #07040f 100%);
}

#starfield {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

::selection { background: rgba(240, 199, 94, 0.35); color: #fff; }

/* ── Открытая модалка (админка / планета / QR): фон замирает ──────────
   Иначе постоянные анимации позади полупрозрачного блюра выглядят как
   дрожание самого окна, а scroll anchoring прыгает под оверлеем. */
body.modal-open { overflow: hidden; }

body.modal-open .portrait,
body.modal-open .runes span,
body.modal-open .orb-glow,
body.modal-open .mist,
body.modal-open .orb-symbol,
body.modal-open .btn-magic::after,
body.modal-open .day-fortune,
body.modal-open .fortune-stars i,
body.modal-open .fortune-shine::after,
body.modal-open .day-planet-body {
    animation-play-state: paused !important;
}

.container {
    width: min(1120px, 92%);
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

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

.grad {
    background: linear-gradient(100deg, var(--gold-soft), var(--gold) 45%, #e8a33d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ── Шапка ────────────────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(7, 4, 15, 0.68);
    border-bottom: 1px solid rgba(240, 199, 94, 0.16);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.logo {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--gold-soft);
    text-shadow: 0 0 18px rgba(240, 199, 94, 0.45);
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 0.05em;
    transition: color 0.25s;
}

.site-nav a:hover { color: var(--gold); }

.sound-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(240, 199, 94, 0.35);
    background: rgba(255, 255, 255, 0.04);
    color: var(--gold);
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}

.sound-btn:hover { background: rgba(240, 199, 94, 0.14); transform: translateY(-1px); }

/* по умолчанию показываем «вкл», при .muted — «выкл» */
.sound-btn .icon-off { display: none; }
.sound-btn.muted .icon-on  { display: none; }
.sound-btn.muted .icon-off { display: block; }
.sound-btn.muted { color: var(--muted); }

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

.hero { padding: 54px 0 20px; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(300px, 430px) 1fr;
    gap: 46px;
    align-items: start;
}

/* Портрет Оракула */
.portrait {
    position: relative;
    border-radius: 20px;
    padding: 10px;
    background: linear-gradient(160deg, rgba(240, 199, 94, 0.35), rgba(124, 58, 237, 0.16) 60%, rgba(240, 199, 94, 0.12));
    box-shadow:
        0 0 0 1px rgba(240, 199, 94, 0.40),
        0 24px 60px rgba(0, 0, 0, 0.55),
        0 0 90px rgba(124, 58, 237, 0.28);
    animation: frameGlow 6s ease-in-out infinite;
}

@keyframes frameGlow {
    50% { box-shadow:
        0 0 0 1px rgba(240, 199, 94, 0.55),
        0 24px 60px rgba(0, 0, 0, 0.55),
        0 0 120px rgba(168, 85, 247, 0.40); }
}

.portrait img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
}

.portrait figcaption {
    text-align: center;
    margin-top: 12px;
    font-family: var(--font-hand);
    font-size: 26px;
    color: var(--gold-soft);
    text-shadow: 0 0 16px rgba(240, 199, 94, 0.5);
}

/* Парящие руны вокруг портрета */
.runes span {
    position: absolute;
    z-index: 2;
    color: rgba(240, 199, 94, 0.85);
    font-size: 20px;
    text-shadow: 0 0 14px rgba(240, 199, 94, 0.9);
    animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.75; }
    50%      { transform: translateY(-12px) rotate(14deg); opacity: 1; }
}

/* Консоль оракула */
.oracle-console h1 {
    font-size: clamp(30px, 4.6vw, 50px);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: 0.01em;
    text-shadow: 0 4px 30px rgba(124, 58, 237, 0.45);
}

.lead {
    margin-top: 14px;
    color: var(--muted);
    font-size: 17px;
    max-width: 56ch;
}

/* ── Хрустальный шар ──────────────────────────────────────────── */

.orb-stage {
    display: flex;
    justify-content: center;
    padding: 30px 0 8px;
}

.orb {
    position: relative;
    width: clamp(210px, 34vw, 270px);
    aspect-ratio: 1 / 1.16;
    cursor: pointer;
    transition: transform 0.35s ease-out;
    will-change: transform;
}

.orb-glow {
    position: absolute;
    inset: -20% -14% 24%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.50), rgba(124, 58, 237, 0.18) 45%, transparent 68%);
    filter: blur(16px);
    animation: breathe 4s ease-in-out infinite;
    transition: background 0.8s;
}

@keyframes breathe {
    50% { transform: scale(1.13); opacity: 0.85; }
}

.orb-sphere {
    position: absolute;
    inset: 0 0 14%;
    border-radius: 50%;
    overflow: hidden;
    background:
        radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.95), rgba(233, 213, 255, 0.35) 13%, rgba(124, 58, 237, 0.26) 38%, rgba(23, 8, 48, 0.97) 72%);
    box-shadow:
        inset 0 -20px 44px rgba(0, 0, 0, 0.72),
        inset 0 12px 26px rgba(255, 255, 255, 0.22),
        0 0 60px rgba(168, 85, 247, 0.45),
        0 18px 40px rgba(0, 0, 0, 0.55);
    transition: box-shadow 0.8s;
}

.mist {
    position: absolute;
    width: 72%;
    height: 72%;
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.55;
    mix-blend-mode: screen;
}

.m1 {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.9), transparent 66%);
    top: 8%; left: 4%;
    animation: swirl1 7s linear infinite;
}

.m2 {
    background: radial-gradient(circle, rgba(96, 165, 250, 0.75), transparent 66%);
    bottom: 4%; right: 6%;
    animation: swirl2 9.5s linear infinite;
}

@keyframes swirl1 {
    from { transform: rotate(0deg) translateX(16%) scale(1); }
    50%  { transform: rotate(180deg) translateX(-12%) scale(1.28); }
    to   { transform: rotate(360deg) translateX(16%) scale(1); }
}

@keyframes swirl2 {
    from { transform: rotate(360deg) translateX(-14%) scale(1.1); }
    50%  { transform: rotate(180deg) translateX(12%) scale(0.9); }
    to   { transform: rotate(0deg) translateX(-14%) scale(1.1); }
}

.orb-symbol {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(34px, 6vw, 46px);
    color: var(--gold-soft);
    text-shadow: 0 0 22px rgba(240, 199, 94, 0.95), 0 0 60px rgba(240, 199, 94, 0.5);
    animation: symbolPulse 3.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes symbolPulse {
    50% { opacity: 0.55; transform: scale(0.94); }
}

.orb-base {
    position: absolute;
    left: 11%;
    right: 11%;
    bottom: 0;
    height: 15%;
    background: linear-gradient(180deg, #2a1a4a, #120a24);
    clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%);
    border-radius: 6px;
    box-shadow:
        0 12px 34px rgba(0, 0, 0, 0.65),
        0 0 26px rgba(168, 85, 247, 0.28);
}

/* Состояния шара */
.orb.thinking .mist { animation-duration: 1.5s, 1.9s; opacity: 0.95; }
.orb.thinking .orb-symbol { animation: symbolSpin 0.9s linear infinite; }
.orb.thinking .orb-sphere {
    animation: orbShake 0.55s ease-in-out infinite;
    box-shadow:
        inset 0 -20px 44px rgba(0, 0, 0, 0.7),
        inset 0 12px 26px rgba(255, 255, 255, 0.28),
        0 0 90px rgba(168, 85, 247, 0.75),
        0 18px 40px rgba(0, 0, 0, 0.55);
}
.orb.thinking .orb-glow { background: radial-gradient(circle, rgba(240, 199, 94, 0.55), rgba(168, 85, 247, 0.3) 45%, transparent 70%); }

@keyframes symbolSpin { to { transform: rotate(360deg) scale(1.15); } }

@keyframes orbShake {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-2px, 1px); }
    50% { transform: translate(2px, -1px); }
    75% { transform: translate(-1px, -2px); }
}

.orb.revealed .orb-sphere {
    box-shadow:
        inset 0 -20px 44px rgba(0, 0, 0, 0.6),
        inset 0 12px 26px rgba(255, 255, 255, 0.3),
        0 0 110px rgba(240, 199, 94, 0.65),
        0 18px 40px rgba(0, 0, 0, 0.55);
}
.orb.revealed .orb-glow { background: radial-gradient(circle, rgba(240, 199, 94, 0.6), rgba(168, 85, 247, 0.28) 48%, transparent 70%); }
.orb.revealed .orb-symbol { color: #fff; text-shadow: 0 0 26px #ffe9a8, 0 0 80px #f0c75e; }

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

#askForm { margin-top: 18px; }

.input-wrap { position: relative; }

#question {
    width: 100%;
    padding: 16px 74px 16px 18px;
    font-family: var(--font-main);
    font-size: 17px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(240, 199, 94, 0.30);
    border-radius: 14px;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

#question::placeholder { color: rgba(154, 143, 184, 0.75); }

#question:focus {
    outline: none;
    border-color: rgba(240, 199, 94, 0.75);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(240, 199, 94, 0.12), 0 0 30px rgba(168, 85, 247, 0.25);
}

.input-wrap.error #question {
    border-color: #e0524d;
    box-shadow: 0 0 0 4px rgba(224, 82, 77, 0.15);
    animation: shake 0.4s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.char-count {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--muted);
    pointer-events: none;
}

/* Категории */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    font-family: var(--font-main);
    font-size: 15px;
    letter-spacing: 0.03em;
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(240, 199, 94, 0.32);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, transform 0.2s, box-shadow 0.25s;
}

.chip svg { width: 16px; height: 16px; flex: none; }

.chip:hover {
    background: rgba(240, 199, 94, 0.12);
    transform: translateY(-1px);
}

.chip.active {
    background: linear-gradient(135deg, var(--gold-soft), var(--gold) 55%, var(--gold-2));
    border-color: transparent;
    color: #241503;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(240, 199, 94, 0.35);
}

/* Главная кнопка */
.btn-magic {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 18px;
    padding: 16px 24px;
    font-family: var(--font-main);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #241503;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold) 45%, #c98f12);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow:
        0 10px 32px rgba(240, 199, 94, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transition: transform 0.2s, box-shadow 0.25s, filter 0.25s;
}

/* Блик пробегает ОДИН раз при загрузке: анимация свойства left в бесконечном
   цикле дёргала пересчёт макета каждые ~3 секунды (скачки страницы у футера,
   дрожание админки поверх блюра). Теперь — composited translateX без layout. */
.btn-magic::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    transform: translateX(-146%) skewX(-20deg);
    animation: shine 2.6s ease-out 0.6s 1 both;
    will-change: transform;
    pointer-events: none;
}

@keyframes shine {
    0%, 35% { transform: translateX(-146%) skewX(-20deg); }
    100%    { transform: translateX(255%) skewX(-20deg); }
}

.btn-magic:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow:
        0 14px 40px rgba(240, 199, 94, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.btn-magic:active:not(:disabled) { transform: translateY(0); }

.btn-magic:disabled {
    cursor: wait;
    filter: saturate(0.55) brightness(0.82);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-family: var(--font-main);
    font-size: 15px;
    color: var(--gold-soft);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(240, 199, 94, 0.35);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s;
}

.btn-ghost:hover { background: rgba(240, 199, 94, 0.14); transform: translateY(-1px); }

.btn-ghost.small { padding: 7px 14px; font-size: 14px; }

/* ── Карточка ответа ──────────────────────────────────────────── */

.answer-zone {
    margin-top: 24px;
    perspective: 1100px;
    display: none;
}

.answer-zone.visible { display: block; }

.answer-card {
    --rc: var(--rc-common);
    border: 1px solid var(--rc);
    background: linear-gradient(180deg, rgba(30, 17, 58, 0.92), rgba(14, 8, 30, 0.96));
    border-radius: 18px;
    padding: 22px 22px 18px;
    box-shadow:
        0 0 44px rgba(159, 180, 199, 0.20),
        0 22px 50px rgba(0, 0, 0, 0.5);
    animation: flipIn 0.75s cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
}

@keyframes flipIn {
    from { transform: rotateX(-70deg) translateY(18px); opacity: 0; }
    to   { transform: rotateX(0) translateY(0); opacity: 1; }
}

.answer-card.r-common {
    --rc: var(--rc-common);
    box-shadow: 0 0 44px rgba(159, 180, 199, 0.20), 0 22px 50px rgba(0, 0, 0, 0.5);
}

.answer-card.r-rare {
    --rc: var(--rc-rare);
    box-shadow: 0 0 60px rgba(181, 126, 224, 0.35), 0 22px 50px rgba(0, 0, 0, 0.5);
}

.answer-card.r-legendary {
    --rc: var(--rc-legendary);
    border-width: 2px;
    background: linear-gradient(180deg, rgba(58, 40, 10, 0.55), rgba(14, 8, 30, 0.97)), linear-gradient(180deg, rgba(30, 17, 58, 0.92), rgba(14, 8, 30, 0.96));
    box-shadow: 0 0 80px rgba(240, 199, 94, 0.45), 0 22px 50px rgba(0, 0, 0, 0.55);
    animation: flipIn 0.75s cubic-bezier(0.2, 0.9, 0.3, 1.15) both, legendaryPulse 2.4s ease-in-out 0.8s infinite;
}

@keyframes legendaryPulse {
    50% { box-shadow: 0 0 110px rgba(240, 199, 94, 0.65), 0 22px 50px rgba(0, 0, 0, 0.55); }
}

.answer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rc);
    border: 1px solid var(--rc);
    border-radius: 999px;
    padding: 5px 12px;
    margin-bottom: 14px;
}

.answer-text {
    font-size: clamp(18px, 2.4vw, 22px);
    line-height: 1.6;
    min-height: 58px;
    cursor: pointer;
}

.caret {
    display: inline-block;
    width: 10px;
    height: 1.05em;
    vertical-align: -0.15em;
    margin-left: 3px;
    background: var(--rc);
    animation: blink 0.9s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.answer-card .btn-ghost { margin-top: 14px; }

/* Искры легендарного ответа */
.spark {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 10px currentColor;
    z-index: 3;
}

.answer-card { position: relative; overflow: visible; }

/* Подсказка */
.hint {
    margin-top: 18px;
    font-size: 13.5px;
    color: rgba(154, 143, 184, 0.85);
    font-style: italic;
}

/* ── Счётчики ─────────────────────────────────────────────────── */

.stats-band {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
    margin: 56px auto 10px;
}

.stat-card {
    text-align: center;
    padding: 26px 18px;
    background: var(--panel);
    border: 1px solid rgba(240, 199, 94, 0.18);
    border-radius: 18px;
    backdrop-filter: blur(8px);
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(240, 199, 94, 0.45);
    box-shadow: 0 14px 40px rgba(124, 58, 237, 0.25);
}

.stat-num {
    font-size: clamp(34px, 5vw, 46px);
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 26px rgba(240, 199, 94, 0.55);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    margin-top: 6px;
    color: var(--muted);
    font-size: 15px;
}

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

.history { padding: 46px 0 30px; }

.history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.history-head h2 {
    font-size: clamp(24px, 3.4vw, 34px);
    letter-spacing: 0.02em;
}

.history-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    max-height: 560px;
    overflow-y: auto;
    padding: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(240, 199, 94, 0.4) transparent;
}

.history-list::-webkit-scrollbar { width: 8px; }
.history-list::-webkit-scrollbar-thumb {
    background: rgba(240, 199, 94, 0.35);
    border-radius: 8px;
}

.h-item {
    --rc: var(--rc-common);
    position: relative;
    border-left: 3px solid var(--rc);
    background: rgba(255, 255, 255, 0.035);
    border-radius: 12px;
    padding: 15px 17px 13px;
    animation: fadeUp 0.5s ease both;
}

.h-item.r-common    { --rc: var(--rc-common); }
.h-item.r-rare      { --rc: var(--rc-rare); }
.h-item.r-legendary { --rc: var(--rc-legendary); }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.h-q {
    font-style: italic;
    color: var(--muted);
    font-size: 14.5px;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.h-a {
    font-size: 16px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.h-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--muted);
}

.h-badge {
    color: var(--rc);
    border: 1px solid var(--rc);
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
    font-style: italic;
    padding: 34px 0;
}

/* ── Подвал ───────────────────────────────────────────────────── */

.site-footer {
    margin-top: 40px;
    padding: 26px 0 calc(26px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(240, 199, 94, 0.14);
    text-align: center;
    color: var(--muted);
    font-size: 14.5px;
}

.footer-stars {
    color: var(--gold);
    letter-spacing: 0.6em;
    margin-bottom: 8px;
    text-shadow: 0 0 14px rgba(240, 199, 94, 0.6);
}

/* ── Тост ─────────────────────────────────────────────────────── */

.toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translate(-50%, 20px);
    z-index: 90;
    padding: 13px 22px;
    background: rgba(40, 10, 14, 0.92);
    border: 1px solid rgba(224, 82, 77, 0.55);
    color: #ffd9d7;
    border-radius: 12px;
    font-size: 15px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    max-width: min(90vw, 480px);
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ── Появление блоков ─────────────────────────────────────────── */

.reveal-up { animation: revealUp 0.9s ease both; }

.reveal-up:nth-child(2) { animation-delay: 0.15s; }

@keyframes revealUp {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 940px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .portrait {
        max-width: 430px;
        margin-inline: auto;
    }

    .oracle-console { text-align: center; }

    .lead { margin-inline: auto; }

    .chips { justify-content: center; }
}

@media (max-width: 560px) {
    .hero { padding-top: 34px; }

    .header-inner { padding: 11px 0; flex-wrap: wrap; row-gap: 4px; }

    .logo { font-size: 17px; }

    .site-nav { gap: 14px; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }

    .site-nav a { font-size: 14.5px; }

    .orb { width: min(64vw, 230px); }

    .answer-card { padding: 18px 16px 14px; }

    .history-list { grid-template-columns: 1fr; max-height: none; }
}

/* ── Доступность: меньше движения ─────────────────────────────── */

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

    html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════════════════════════
   ОРБИТА СУДЕБ — галерея-планетарий
   ═══════════════════════════════════════════════════════════════ */

.gallery { padding: 66px 0 10px; }

.section-title {
    text-align: center;
    font-size: clamp(26px, 3.6vw, 38px);
    letter-spacing: 0.02em;
    text-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
}

.section-sub {
    text-align: center;
    color: var(--muted);
    max-width: 62ch;
    margin: 12px auto 0;
}

.db-error {
    margin-top: 20px;
    padding: 14px 18px;
    border: 1px solid rgba(224, 82, 77, 0.5);
    background: rgba(40, 10, 14, 0.75);
    border-radius: 12px;
    color: #ffd9d7;
    text-align: center;
}

/* Сцена планетария */
.orbit-world {
    position: relative;
    height: clamp(420px, 62vw, 640px);
    margin-top: 28px;
    overflow: hidden;
}

/* Орбитальные кольца */
.orbit-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(240, 199, 94, 0.22);
    border-radius: 50%;
    pointer-events: none;
}

.orbit-ring.ring-1 { width: 62%; aspect-ratio: 1.55 / 1; }
.orbit-ring.ring-2 { width: 86%; aspect-ratio: 1.55 / 1; opacity: 0.6; }

/* Главная планета в центре */
.orbit-center {
    --pc: #f0c75e;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: clamp(130px, 19vw, 186px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: none;
    overflow: hidden;
    background: #0d0722;
    box-shadow:
        0 0 0 1px rgba(240, 199, 94, 0.4),
        0 0 55px rgba(240, 199, 94, 0.5),
        0 0 140px rgba(168, 85, 247, 0.38),
        inset 0 -20px 46px rgba(0, 0, 0, 0.72);
    cursor: pointer;
    z-index: 4;
    padding: 0;
    transition: box-shadow 0.4s;
}

.orbit-center img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.orbit-center:hover {
    box-shadow:
        0 0 0 1px rgba(255, 233, 168, 0.65),
        0 0 80px rgba(240, 199, 94, 0.75),
        0 0 170px rgba(168, 85, 247, 0.5),
        inset 0 -20px 46px rgba(0, 0, 0, 0.72);
}

.orbit-center .planet-glyph {
    font-size: 52px;
    color: var(--gold-soft);
    text-shadow: 0 0 26px rgba(240, 199, 94, 0.9);
}

/* Планеты-спутники (создаются в app.js) */
.planet {
    --pc: #a855f7;
    position: absolute;
    left: 0;
    top: 0;
    width: var(--ps, 86px);
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 0;
    border: none;
    overflow: hidden;
    background: #0b0620;
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--pc) 35%, transparent),
        0 0 24px color-mix(in srgb, var(--pc) 55%, transparent),
        0 0 64px color-mix(in srgb, var(--pc) 22%, transparent),
        0 12px 26px rgba(0, 0, 0, 0.6),
        inset -6px -10px 22px rgba(0, 0, 0, 0.55);
    cursor: pointer;
    z-index: 2;
    will-change: transform;
    transition: filter 0.25s, box-shadow 0.25s;
}

.planet img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.planet .planet-glyph {
    font-size: 30px;
    color: #fff;
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.8);
}

.planet:hover {
    filter: brightness(1.14) saturate(1.06);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--pc) 55%, transparent),
        0 0 34px color-mix(in srgb, var(--pc) 75%, transparent),
        0 0 90px color-mix(in srgb, var(--pc) 30%, transparent),
        0 12px 26px rgba(0, 0, 0, 0.6),
        inset -6px -10px 22px rgba(0, 0, 0, 0.55);
}

/* ── Реалистичная сфера: фактура поверхности + светотень ───────
   Общие слои для всех планет (спутники, главная, планета дня).
   ::before — каменно-облачная текстура (SVG-турбулентность),
   ::after  — блик, терминатор, затемнение края и тон цвета. */

.planet::before,
.orbit-center::before,
.day-planet-body::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 150px 150px;
    mix-blend-mode: overlay;
    opacity: 0.35;
    pointer-events: none;
}

.planet::after,
.orbit-center::after,
.day-planet-body::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.12) 14%, transparent 32%),
        radial-gradient(circle at 74% 84%, rgba(1, 0, 10, 0.58), transparent 55%),
        radial-gradient(circle at 50% 50%, transparent 56%, rgba(2, 0, 10, 0.4) 84%, rgba(2, 0, 10, 0.78) 100%),
        linear-gradient(205deg, color-mix(in srgb, var(--pc) 16%, transparent), transparent 46%);
    pointer-events: none;
}

.planet .planet-tag,
.orbit-center .planet-tag {
    position: absolute;
    left: 50%;
    bottom: -26px;
    transform: translateX(-50%);
    font-size: 12.5px;
    letter-spacing: 0.1em;
    color: var(--gold-soft);
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(240, 199, 94, 0.7);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.planet:hover .planet-tag,
.orbit-center:hover .planet-tag { opacity: 1; }

.planet-glyph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   МОДАЛКА ПЛАНЕТЫ (галерея фото)
   ═══════════════════════════════════════════════════════════════ */

.planet-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.planet-modal[hidden] { display: none; }

.planet-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 2, 12, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.planet-modal-card {
    --pc: #a855f7;
    position: relative;
    width: min(880px, 94vw);
    max-height: 86vh;
    max-height: min(86vh, 86dvh);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: linear-gradient(180deg, rgba(30, 17, 58, 0.96), rgba(12, 7, 26, 0.98));
    border: 1px solid var(--pc);
    border-radius: 20px;
    padding: 26px 26px 22px;
    box-shadow:
        0 0 70px color-mix(in srgb, var(--pc) 35%, transparent),
        0 30px 70px rgba(0, 0, 0, 0.6);
    animation: flipIn 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.12) both;
}

.planet-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(240, 199, 94, 0.4);
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold-soft);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}

.planet-modal-close:hover { background: rgba(240, 199, 94, 0.16); transform: rotate(90deg); }

.planet-modal-title {
    font-size: 26px;
    margin-bottom: 6px;
    color: var(--gold-soft);
    text-shadow: 0 0 18px color-mix(in srgb, var(--pc) 60%, transparent);
}

.planet-modal-count {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 18px;
}

/* Мозаика: размер класса s/m/l из админки */
.planet-modal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 150px;
    gap: 12px;
}

.pm-photo {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    cursor: zoom-in;
    padding: 0;
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.3s, box-shadow 0.3s;
}

.pm-photo:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 24px color-mix(in srgb, var(--pc) 35%, transparent);
}

.pm-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pm-photo .pm-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 12px 8px;
    font-size: 13px;
    color: #fff;
    background: linear-gradient(transparent, rgba(5, 2, 12, 0.88));
    text-align: left;
}

.pm-photo.sz-l { grid-column: span 2; grid-row: span 2; }
.pm-photo.sz-s { grid-row: span 1; }

.planet-modal-grid.zoomed .pm-photo:not(.zoom) { display: none; }
.planet-modal-grid.zoomed { grid-template-columns: 1fr; grid-auto-rows: minmax(320px, 56vh); }
.planet-modal-grid.zoomed .pm-photo.zoom { grid-column: 1 / -1; grid-row: 1 / -1; cursor: zoom-out; }

/* ═══════════════════════════════════════════════════════════════
   ПЛАНЕТА ДНЯ
   ═══════════════════════════════════════════════════════════════ */

.day-section { padding: 66px 0 10px; }

.day-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 26px;
    min-height: 380px;
}

.day-planet {
    --pc: #a855f7;
    position: relative;
    width: clamp(150px, 22vw, 200px);
    aspect-ratio: 1;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.day-planet-glow {
    position: absolute;
    inset: -26%;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--pc) 55%, transparent), transparent 68%);
    filter: blur(14px);
    animation: breathe 4.4s ease-in-out infinite;
    transition: background 0.6s;
}

.day-planet-body {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #0d0722;
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--pc) 40%, transparent),
        0 0 46px color-mix(in srgb, var(--pc) 60%, transparent),
        0 0 110px color-mix(in srgb, var(--pc) 26%, transparent),
        inset 0 -16px 36px rgba(0, 0, 0, 0.72);
    transition: transform 0.55s cubic-bezier(0.3, 0.9, 0.3, 1.2), box-shadow 0.55s;
}

.day-planet-body img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.day-planet-name {
    position: absolute;
    left: 50%;
    bottom: -34px;
    transform: translateX(-50%);
    font-family: var(--font-hand);
    font-size: 26px;
    color: var(--gold-soft);
    white-space: nowrap;
    text-shadow: 0 0 16px rgba(240, 199, 94, 0.6);
}

.day-planet:hover .day-planet-body {
    transform: scale(1.05);
    box-shadow:
        0 0 70px color-mix(in srgb, var(--pc) 75%, transparent),
        0 0 150px color-mix(in srgb, var(--pc) 35%, transparent),
        inset 0 -16px 36px rgba(0, 0, 0, 0.72);
}

/* Кольцо планеты дня (как у Сатурна): передняя дуга видна,
   верхняя растворяется — создаёт объём */
.day-planet::after {
    content: "";
    position: absolute;
    left: -16%;
    right: -16%;
    top: 35%;
    height: 30%;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--pc) 60%, #ffe9a8);
    border-top-color: transparent;
    box-shadow:
        0 0 18px color-mix(in srgb, var(--pc) 45%, transparent),
        inset 0 0 12px rgba(255, 233, 168, 0.25);
    transform: rotate(-14deg);
    z-index: 3;
    pointer-events: none;
    transition: transform 0.7s cubic-bezier(0.7, 0, 0.84, 0), opacity 0.5s;
}

/* Схлопывание: планета сжимается в точку и вспыхивает */
.day-planet.collapsing { pointer-events: none; }

.day-planet.collapsing .day-planet-body {
    transform: scale(0.12);
    transition: transform 0.75s cubic-bezier(0.7, 0, 0.84, 0);
    box-shadow: 0 0 90px color-mix(in srgb, var(--pc) 90%, transparent);
}

.day-planet.collapsing::after {
    transform: rotate(-14deg) scale(0.15);
    opacity: 0;
}

.day-planet.collapsing .day-planet-glow {
    background: radial-gradient(circle, #ffffff, transparent 66%);
    opacity: 0;
    transition: opacity 0.8s;
}

.day-planet.collapsing .day-planet-name { opacity: 0; transition: opacity 0.4s; }

/* Возврат после вспышки */
.day-planet.expanded .day-planet-body {
    transform: scale(1);
    transition: transform 0.7s cubic-bezier(0.2, 1.2, 0.3, 1);
    box-shadow:
        0 0 110px color-mix(in srgb, var(--pc) 85%, transparent),
        inset 0 -16px 36px rgba(0, 0, 0, 0.7);
}

.day-planet.expanded .day-planet-name { opacity: 1; transition: opacity 0.8s; }

/* ── Предсказание дня: всегда висит, выделяется и светится звёздочками ── */

.day-fortune {
    --pc: #a855f7;
    --rc: var(--gold);
    position: relative;
    margin-top: 64px;
    width: min(680px, 92%);
    text-align: center;
    background:
        radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--pc) 16%, transparent), transparent 60%),
        linear-gradient(180deg, rgba(34, 19, 64, 0.94), rgba(14, 8, 30, 0.97));
    border: 1px solid color-mix(in srgb, var(--pc) 55%, rgba(240, 199, 94, 0.55));
    border-radius: 20px;
    padding: 26px 28px 20px;
    box-shadow:
        0 0 40px color-mix(in srgb, var(--pc) 30%, transparent),
        0 0 90px rgba(240, 199, 94, 0.18),
        0 24px 60px rgba(0, 0, 0, 0.55);
    animation:
        flipIn 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.15) both,
        dayFloat 5.4s ease-in-out 1s infinite,
        dayGlow 3.6s ease-in-out 1.2s infinite;
}

/* Лёгкое парение баннера */
@keyframes dayFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}

/* Пульсация ауры */
@keyframes dayGlow {
    0%, 100% {
        box-shadow:
            0 0 40px color-mix(in srgb, var(--pc) 30%, transparent),
            0 0 90px rgba(240, 199, 94, 0.18),
            0 24px 60px rgba(0, 0, 0, 0.55);
    }
    50% {
        box-shadow:
            0 0 70px color-mix(in srgb, var(--pc) 55%, transparent),
            0 0 140px rgba(240, 199, 94, 0.42),
            0 24px 60px rgba(0, 0, 0, 0.55);
    }
}

/* Мерцающие звёздочки вокруг предсказания */
.fortune-stars i {
    position: absolute;
    left: var(--x, 50%);
    top: var(--y, 0%);
    font-style: normal;
    color: #ffe9a8;
    font-size: 15px;
    text-shadow:
        0 0 8px rgba(255, 233, 168, 0.95),
        0 0 22px rgba(240, 199, 94, 0.7);
    animation: starTwinkle 2.6s ease-in-out infinite;
    animation-delay: var(--d, 0s);
    pointer-events: none;
    z-index: 2;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.7) rotate(0deg); }
    50%      { opacity: 1;   transform: scale(1.18) rotate(18deg); }
}

/* Пролетающий блик по поверхности баннера */
.fortune-shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
}

.fortune-shine::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 240, 200, 0.22), transparent);
    transform: translateX(-156%) skewX(-18deg);
    animation: fortuneShine 4.4s ease-out 1.2s 1 both;
    will-change: transform;
}

@keyframes fortuneShine {
    0%, 30% { transform: translateX(-156%) skewX(-18deg); }
    100%    { transform: translateX(300%) skewX(-18deg); }
}

.day-fortune .answer-badge {
    --rc: var(--gold);
    box-shadow: 0 0 18px rgba(240, 199, 94, 0.35);
}

.day-fortune .answer-text {
    font-size: clamp(17px, 2.4vw, 20px);
    min-height: 52px;
    color: #f6f1e4;
    text-shadow: 0 0 22px rgba(240, 199, 94, 0.25);
}

/* ── Адаптив для новых секций ─────────────────────────────────── */

@media (max-width: 700px) {
    .planet-modal-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 120px;
    }

    .day-stage { min-height: 330px; }

    .day-fortune { margin-top: 56px; }
}

@media (max-width: 560px) {
    .orbit-world { height: 380px; }

    .orbit-ring.ring-2 { width: 96%; }
    .orbit-ring.ring-1 { width: 70%; }

    .orbit-center { width: 108px; }
}

@media (max-width: 560px) {
    .planet { width: calc(var(--ps, 86px) * 0.64); }
    .planet .planet-tag { font-size: 10.5px; bottom: -20px; }
    .orbit-center { width: 100px; }
}

/* ═══════════ Этап 4: заметки судьбы + ссылка кабинета ═══════════ */

.site-nav .nav-cta {
    padding: 7px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(240, 199, 94, 0.16), rgba(168, 85, 247, 0.16));
    border: 1px solid rgba(240, 199, 94, 0.45);
    color: #ffe9a8;
    font-weight: 700;
    transition: box-shadow .25s, transform .25s;
}

.site-nav .nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 22px rgba(240, 199, 94, 0.35);
}

.notes-section {
    padding: 74px 0 30px;
    position: relative;
}

.notes-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1180px;
    margin: 26px auto 0;
    padding: 0 20px;
}

.note-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 20px 16px;
    border-radius: 4px 18px 4px 18px;
    background:
        linear-gradient(160deg, rgba(64, 44, 24, 0.5), rgba(28, 18, 12, 0.72) 58%),
        linear-gradient(180deg, rgba(30, 18, 58, 0.5), rgba(13, 8, 28, 0.75));
    background-blend-mode: screen;
    border: 1px solid rgba(240, 199, 94, 0.3);
    color: #efe6ff;
    text-decoration: none;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 233, 168, 0.14);
    transition: transform .3s cubic-bezier(.2, .9, .3, 1.2), box-shadow .3s, border-color .3s;
    position: relative;
    overflow: hidden;
    min-height: 170px;
}

.note-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(180px 60px at 18% 0%, rgba(240, 199, 94, 0.14), transparent 70%),
        repeating-linear-gradient(0deg, transparent 0 26px, rgba(240, 199, 94, 0.045) 26px 27px);
    pointer-events: none;
}

.note-card.tilt-1 { transform: rotate(-1.4deg); }
.note-card.tilt-2 { transform: rotate(1.1deg); }
.note-card.tilt-3 { transform: rotate(-0.6deg); }

a.note-card:hover {
    transform: translateY(-6px) rotate(0deg) scale(1.02);
    border-color: rgba(240, 199, 94, 0.65);
    box-shadow: 0 22px 50px rgba(168, 85, 247, 0.3), 0 0 24px rgba(240, 199, 94, 0.2);
}

.note-rune {
    font-size: 20px;
    color: #f0c75e;
    text-shadow: 0 0 12px rgba(240, 199, 94, 0.6);
}

.note-label {
    font-weight: 700;
    color: #ffe9a8;
    font-size: 15px;
    letter-spacing: .3px;
}

.note-question {
    font-family: 'Marck Script', cursive;
    font-size: 17px;
    color: #d8ccf5;
    line-height: 1.3;
}

.note-snippet {
    font-size: 13px;
    line-height: 1.5;
    color: #c9bce8;
    flex: 1;
}

.note-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    font-size: 12px;
    color: #9a8fb8;
    border-top: 1px dashed rgba(240, 199, 94, 0.25);
    padding-top: 8px;
    margin-top: 4px;
}

.note-meta b { color: #ffe9a8; }

.note-empty { opacity: .5; cursor: default; }
.note-empty .note-label { color: #9a8fb8; }

.notes-cta {
    max-width: 680px;
    margin: 40px auto 0;
    text-align: center;
    padding: 30px 26px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(48, 26, 90, 0.5), rgba(14, 8, 30, 0.8));
    border: 1px solid rgba(240, 199, 94, 0.3);
}

.notes-cta p { color: #c9bce8; margin: 8px 0 16px; line-height: 1.6; }
.notes-cta .cta-glyphs { font-size: 18px; letter-spacing: 12px; color: #f0c75e; }

@media (max-width: 560px) {
    .notes-board { grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 12px; }
    .note-card { min-height: 150px; padding: 14px; }
}

@media (max-width: 400px) {
    .notes-board { grid-template-columns: 1fr; }
}
