/* ═══════════════════════════════════════════════════════════════════
   Космический Оракул — v1.47 «Тайные коды и пасхалки»
   Созвездие-пасхалка на звёздном фоне + скрытый сундук (вау-сцена)
   + ввод тайного кода из соцсетей/стримеров.
   Стилистика: «Орбитальный пульт» — futurist.css (--ion/--volt/--solar,
   срезанные углы, тонкие линии, Unbounded/Onest).
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. Канвас созвездия: выше звезды-фона (z -1), ниже контента ── */

#eggCanvas {
    position: fixed;
    inset: 0;
    z-index: -1;              /* рядом со звездлёй — позже в DOM, значит поверх неё */
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.6s ease;
}
#eggCanvas.egg-on { opacity: 1; }

/* ── 2. Шёпот созвездия (гость / кулдаун) ────────────────────────── */

.egg-whisper {
    position: fixed;
    z-index: 1250;
    max-width: min(340px, 78vw);
    padding: 12px 16px 12px 14px;
    color: #d8f6ff;
    font: 500 13.5px/1.45 'Onest', system-ui, sans-serif;
    letter-spacing: .01em;
    background:
        linear-gradient(180deg, rgba(10, 22, 38, .94), rgba(6, 12, 22, .96));
    border: 1px solid rgba(94, 226, 240, .38);
    border-left: 3px solid var(--ion, #5ee2f0);
    clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
    box-shadow: 0 10px 34px rgba(0, 0, 0, .5), 0 0 22px rgba(94, 226, 240, .14);
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
}
.egg-whisper.show { opacity: 1; transform: translateY(0); transition: opacity .3s ease, transform .3s ease; }
.egg-whisper b { color: var(--ion, #5ee2f0); font-weight: 700; }
.egg-whisper .egg-whisper-k {
    display: block;
    margin-bottom: 4px;
    font: 700 10px/1 'Unbounded', 'Onest', sans-serif;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(94, 226, 240, .8);
}

/* ── 3. Сцена «Скрытый сундук» (вау-оверлей) ─────────────────────── */

.egg-overlay {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;             /* закрытая сцена не ловит клики */
    transition: opacity .45s ease, visibility 0s linear .45s;
}
.egg-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .45s ease; }

.egg-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(130vmax 90vmax at 50% 42%, rgba(6, 10, 20, .55) 0%, rgba(3, 5, 10, .93) 52%, #03050a 100%);
}
/* звёздная вспышка при входе */
.egg-backdrop::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 42%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 244, 214, .95), rgba(255, 179, 71, .35) 45%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
}
.egg-overlay.burst .egg-backdrop::after { animation: eggBurst 1.1s ease-out .1s forwards; }
@keyframes eggBurst {
    0%   { transform: translate(-50%, -50%) scale(0);   opacity: 1; }
    55%  { transform: translate(-50%, -50%) scale(46);  opacity: .55; }
    100% { transform: translate(-50%, -50%) scale(72);  opacity: 0; }
}

/* HUD-каркас сцены: уголки прицела + координатная сетка */
.egg-frame {
    position: relative;
    width: min(560px, 94vw);
    padding: clamp(22px, 4.5vw, 40px) clamp(18px, 4vw, 36px) clamp(20px, 4vw, 34px);
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(85, 128, 247, .10), transparent 55%),
        linear-gradient(180deg, rgba(9, 16, 30, .88), rgba(5, 9, 17, .94));
    border: 1px solid rgba(94, 226, 240, .30);
    clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .65), 0 0 60px rgba(94, 226, 240, .08);
    overflow: hidden;
}
.egg-frame::before {                    /* сетка «орбитального пульта» */
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(94, 226, 240, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(94, 226, 240, .05) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}
.egg-frame::after {                     /* сканирующая линия */
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 90px;
    top: -90px;
    background: linear-gradient(180deg, transparent, rgba(94, 226, 240, .07), transparent);
    animation: eggScan 4.6s linear infinite;
    pointer-events: none;
}
@keyframes eggScan { to { transform: translateY(calc(100vh)); } }

.egg-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(94, 226, 240, .65);
    pointer-events: none;
}
.egg-corner.tl { top: 8px;    left: 8px;   border-right: 0; border-bottom: 0; }
.egg-corner.tr { top: 8px;    right: 8px;  border-left: 0;  border-bottom: 0; }
.egg-corner.bl { bottom: 8px; left: 8px;   border-right: 0; border-top: 0; }
.egg-corner.br { bottom: 8px; right: 8px;  border-left: 0;  border-top: 0; }

.egg-topline {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: clamp(10px, 2vw, 16px);
    font: 700 10px/1 'Unbounded', 'Onest', sans-serif;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: rgba(94, 226, 240, .78);
}
.egg-topline i { font-style: normal; color: rgba(168, 246, 255, .5); }

/* ── сцена сундука ── */
.egg-stage {
    position: relative;
    height: clamp(190px, 30vh, 240px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: 4px 0 14px;
}

/* лучи света из сундука */
.egg-rays {
    position: absolute;
    left: 50%;
    bottom: 52px;
    width: 560px;
    height: 560px;
    transform: translateX(-50%);
    background: repeating-conic-gradient(from 0deg,
        rgba(255, 208, 112, .16) 0deg 7deg, transparent 7deg 20deg);
    border-radius: 50%;
    filter: blur(1px);
    -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 62%);
    mask-image: radial-gradient(circle, #000 0%, transparent 62%);
    opacity: 0;
    transition: opacity 1.2s ease;
}
.egg-overlay.rays .egg-rays { opacity: 1; animation: eggSpin 16s linear infinite; }
@keyframes eggSpin { to { transform: translateX(-50%) rotate(360deg); } }

/* световой столб */
.egg-beam {
    position: absolute;
    left: 50%;
    bottom: 46px;
    width: clamp(150px, 34vw, 230px);
    height: 78%;
    transform: translateX(-50%);
    background: linear-gradient(180deg,
        rgba(255, 235, 180, 0) 0%,
        rgba(255, 224, 150, .14) 45%,
        rgba(255, 208, 112, .30) 100%);
    clip-path: polygon(32% 0, 68% 0, 100% 100%, 0 100%);
    filter: blur(2px);
    opacity: 0;
    transition: opacity .9s ease;
}
.egg-overlay.rays .egg-beam { opacity: 1; }

/* сам сундук — чистый CSS */
.egg-chest {
    position: relative;
    z-index: 2;
    width: clamp(150px, 30vw, 196px);
    height: clamp(92px, 17vw, 118px);
    transform-origin: 50% 100%;
    transform: translateY(26px) scale(.6);
    opacity: 0;
    transition: transform .75s cubic-bezier(.2, 1.4, .3, 1), opacity .4s ease;
}
.egg-overlay.chest .egg-chest { transform: translateY(0) scale(1); opacity: 1; }

.egg-chest-base {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 62%;
    background:
        linear-gradient(180deg, #2a1c10 0%, #3d2a16 30%, #241708 100%);
    border: 1px solid rgba(255, 179, 71, .5);
    clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 14px, 100% 100%, 0 100%, 0 14px);
    box-shadow: inset 0 0 26px rgba(0, 0, 0, .65), 0 14px 34px rgba(0, 0, 0, .55);
}
.egg-chest-base::before {           /* золотые полосы */
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 30%, rgba(255, 179, 71, .28) 32%, transparent 36%),
        linear-gradient(180deg, transparent 66%, rgba(255, 179, 71, .22) 68%, transparent 72%);
}
.egg-chest-lid {
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 46%;
    background: linear-gradient(180deg, #46301a 0%, #33220f 100%);
    border: 1px solid rgba(255, 179, 71, .55);
    clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 100%, 0 100%);
    box-shadow: inset 0 0 18px rgba(0, 0, 0, .55);
    transform-origin: 50% 100%;
    transition: transform .85s cubic-bezier(.3, 1.25, .35, 1);
}
.egg-overlay.opened .egg-chest-lid { transform: rotateX(-108deg); }
.egg-chest-lock {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 38%;
    width: 26px;
    height: 30px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #ffca6a, #b97e22);
    clip-path: polygon(20% 0, 80% 0, 100% 26%, 100% 100%, 0 100%, 0 26%);
    box-shadow: 0 0 16px rgba(255, 190, 92, .8);
}
.egg-chest-lock::after {
    content: '';
    position: absolute;
    left: 50%; top: 52%;
    width: 8px; height: 8px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #241300;
}
.egg-glow {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 44px;
    width: 300px;
    height: 170px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(255, 214, 130, .5), rgba(255, 179, 71, .12) 55%, transparent);
    opacity: 0;
    transition: opacity .9s ease;
}
.egg-overlay.opened .egg-glow { opacity: 1; animation: eggPulse 2.6s ease-in-out infinite; }
@keyframes eggPulse { 50% { filter: brightness(1.35); } }

/* вспышка при открытии крышки */
.egg-flash {
    position: absolute;
    inset: 0;
    background: radial-gradient(46% 34% at 50% 58%, rgba(255, 240, 200, .9), rgba(255, 196, 96, .28) 55%, transparent 75%);
    opacity: 0;
    pointer-events: none;
}
.egg-overlay.opened .egg-flash { animation: eggFlash 1.15s ease-out .12s; }
@keyframes eggFlash { 0% { opacity: 0; } 16% { opacity: 1; } 100% { opacity: 0; } }

/* канвас частиц (монеты, искры) */
.egg-fx { position: absolute; inset: 0; pointer-events: none; }

/* ── текстовая часть сцены ── */
.egg-title {
    position: relative;
    margin: 0 0 6px;
    font: 700 clamp(17px, 3.4vw, 22px)/1.25 'Unbounded', 'Onest', sans-serif;
    letter-spacing: .02em;
    background: linear-gradient(92deg, #ffe6a6 8%, var(--solar, #ffb347) 48%, #ffdf8f 92%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}
.egg-lore {
    position: relative;
    min-height: 42px;
    margin: 0 auto 12px;
    max-width: 46ch;
    text-align: center;
    color: rgba(206, 222, 244, .85);
    font: 400 13.5px/1.55 'Onest', system-ui, sans-serif;
}
.egg-lore::after {                   /* печатный курсор */
    content: '▌';
    color: rgba(255, 208, 112, .8);
    animation: eggCaret 1s steps(2) infinite;
}
@keyframes eggCaret { 50% { opacity: 0; } }
.egg-lore.done::after { content: ''; animation: none; }

.egg-reward {
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 4px;
    font: 700 clamp(30px, 6vw, 44px)/1 'Unbounded', 'Onest', sans-serif;
    color: #ffd88a;
    text-shadow: 0 0 26px rgba(255, 179, 71, .45);
}
.egg-reward small {
    font: 700 clamp(15px, 2.6vw, 20px)/1 'Unbounded', 'Onest', sans-serif;
    color: rgba(255, 216, 138, .75);
}
.egg-balance {
    position: relative;
    margin: 0 0 16px;
    text-align: center;
    font: 500 13px/1.4 'Onest', system-ui, sans-serif;
    color: rgba(168, 246, 255, .85);
    letter-spacing: .04em;
}
.egg-balance b { color: #d8f6ff; }
.egg-actions { position: relative; display: flex; justify-content: center; gap: 12px; }
.egg-actions .btn-magic { min-width: 180px; }
.egg-actions .btn-ghost { align-self: center; }

/* ── 4. Ввод тайного кода ────────────────────────────────────────── */

/* кнопка в навигации главной */
.nav-code-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    font: 700 12px/1 'Unbounded', 'Onest', sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ion, #5ee2f0);
    background: linear-gradient(180deg, rgba(94, 226, 240, .10), rgba(94, 226, 240, .03));
    border: 1px solid rgba(94, 226, 240, .42);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    cursor: pointer;
    transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.nav-code-btn:hover {
    color: #eafcff;
    background: linear-gradient(180deg, rgba(94, 226, 240, .22), rgba(94, 226, 240, .08));
    box-shadow: 0 0 18px rgba(94, 226, 240, .25);
}

/* модалка кода на главной */
.secret-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility 0s linear .35s;
}
.secret-modal.open { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.secret-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 10, .72);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}
.secret-modal-card {
    position: relative;
    width: min(440px, 94vw);
    padding: 26px 24px 24px;
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(85, 128, 247, .10), transparent 55%),
        linear-gradient(180deg, rgba(9, 16, 30, .95), rgba(5, 9, 17, .97));
    border: 1px solid rgba(94, 226, 240, .32);
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
    transform: translateY(10px) scale(.98);
    transition: transform .35s cubic-bezier(.2, 1.2, .3, 1);
}
.secret-modal.open .secret-modal-card { transform: translateY(0) scale(1); }
.secret-modal-card h3 {
    margin: 0 0 6px;
    font: 700 17px/1.3 'Unbounded', 'Onest', sans-serif;
    background: linear-gradient(92deg, #d8f6ff, var(--ion, #5ee2f0));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.secret-modal-card .secret-modal-sub { margin: 0 0 16px; color: rgba(196, 208, 232, .75); font: 400 13.5px/1.5 'Onest', system-ui, sans-serif; }
.modal-close { position: absolute; top: 10px; right: 10px; }

.secret-input-row { display: flex; gap: 10px; }
.secret-input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    font: 700 15px/1 'Onest', system-ui, sans-serif;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #eafcff;
    background: rgba(4, 8, 15, .85);
    border: 1px solid rgba(94, 226, 240, .35);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    outline: none;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.secret-input::placeholder { color: rgba(140, 160, 190, .5); letter-spacing: .06em; font-weight: 500; }
.secret-input:focus { border-color: rgba(94, 226, 240, .75); box-shadow: 0 0 18px rgba(94, 226, 240, .18); }
.secret-input.error { border-color: rgba(255, 74, 74, .65); animation: eggShake .4s ease; }
@keyframes eggShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); }
}

.secret-msg { min-height: 20px; margin: 10px 0 0; font: 500 13px/1.5 'Onest', system-ui, sans-serif; }
.secret-msg.err { color: #ff8a8a; }
.secret-msg.ok  { color: #ffd88a; }

/* раскодировка — скрамбл строки */
.secret-decoded {
    margin: 14px 0 0;
    padding: 12px 14px;
    text-align: center;
    font: 700 16px/1.4 'Unbounded', 'Onest', sans-serif;
    letter-spacing: .14em;
    color: #ffd88a;
    background: linear-gradient(180deg, rgba(255, 179, 71, .10), rgba(255, 179, 71, .03));
    border: 1px solid rgba(255, 179, 71, .4);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    display: none;
}
.secret-decoded.show { display: block; animation: eggPop .5s cubic-bezier(.2, 1.4, .3, 1); }
@keyframes eggPop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* карточка в кабинете */
.secret-card { position: relative; }
.secret-card .secret-input-row { max-width: 460px; }
.secret-result {
    display: none;
    margin-top: 14px;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(255, 179, 71, .10), rgba(255, 179, 71, .03));
    border: 1px solid rgba(255, 179, 71, .42);
    clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}
.secret-result.show { display: block; animation: eggPop .5s cubic-bezier(.2, 1.4, .3, 1); }
.secret-result b {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 7px;
    font: 700 19px/1 'Unbounded', 'Onest', sans-serif;
    color: #ffd88a;
}
.secret-result span { display: block; margin-top: 4px; color: rgba(206, 222, 244, .85); font: 400 13px/1.5 'Onest', system-ui, sans-serif; }

/* золотой выброс искр вокруг карточки/кнопки */
.secret-burst {
    position: fixed;
    z-index: 1290;
    width: 0;
    height: 0;
    pointer-events: none;
}
.secret-burst i {
    position: absolute;
    left: 0; top: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
    animation: eggSpark 1s ease-out forwards;
}
@keyframes eggSpark {
    from { transform: translate(0, 0) scale(1); opacity: 1; }
    to   { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; }
}

/* ── 5. Админка: чип кода с копированием ─────────────────────────── */

.sc-code-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 9px;
    font: 700 12px/1.5 'Onest', monospace, sans-serif;
    letter-spacing: .1em;
    color: var(--ion, #5ee2f0);
    background: rgba(94, 226, 240, .08);
    border: 1px solid rgba(94, 226, 240, .3);
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    cursor: pointer;
    white-space: nowrap;
}
.sc-code-chip:hover { background: rgba(94, 226, 240, .18); }
.sc-row-off { opacity: .48; }

/* строки кодов и событий переносятся — узкие колонки не ломаются */
#scCodesList .admin-row,
#secretRecent .admin-row {
    flex-wrap: wrap;
    white-space: normal;
    row-gap: 5px;
}
#scCodesList .admin-row small { flex-basis: 100%; }
#scCodesList .admin-row .btn-ghost { margin-left: auto; white-space: nowrap; }
#scCodesList .admin-row .btn-ghost + .btn-ghost { margin-left: 0; }

/* ── 6. Доступность и мобильные ──────────────────────────────────── */

@media (max-width: 480px) {
    .egg-frame { width: 100%; }
    .egg-stage { height: 176px; }
    .egg-rays { width: 420px; height: 420px; }
    .egg-topline i { display: none; }
    .secret-input-row { flex-direction: column; }
    .secret-input-row .btn-magic { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    #eggCanvas { transition: none; }
    .egg-overlay, .secret-modal, .secret-modal-card { transition: none; }
    .egg-overlay.burst .egg-backdrop::after,
    .egg-overlay.rays .egg-rays,
    .egg-frame::after,
    .egg-overlay.opened .egg-glow,
    .egg-lore::after,
    .secret-burst i { animation: none !important; }
    .egg-overlay.opened .egg-chest-lid { transition: none; }
}

/* без горизонтального скролла при любых лучах/сценах */
html.egg-page { overflow-x: hidden; }

/* ═══════════════════════════════════════════════════════════════════
   v1.60 — надстройки: кликабельный шёпот, карточка кабинета,
   вкладка админки «Пасхалки», тост копирования
   ═══════════════════════════════════════════════════════════════════ */

/* ссылка «Зарегистрируйся» внутри шёпота должна нажиматься */
.egg-whisper.show { pointer-events: auto; }
.egg-whisper a { font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(94, 226, 240, .5); }

/* карточка тайного кода в кабинете */
.secret-card {
    margin: 18px 0 8px;
    padding: 20px 22px;
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(85, 128, 247, .08), transparent 55%),
        linear-gradient(180deg, rgba(9, 16, 30, .72), rgba(5, 9, 17, .82));
    border: 1px solid rgba(94, 226, 240, .28);
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.secret-card .secret-card-title {
    margin: 0 0 6px;
    font: 700 16px/1.3 'Unbounded', 'Onest', sans-serif;
    background: linear-gradient(92deg, #d8f6ff, var(--ion, #5ee2f0));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.secret-card .secret-card-sub {
    margin: 0 0 14px;
    max-width: 60ch;
    color: rgba(196, 208, 232, .78);
    font: 400 13.5px/1.55 'Onest', system-ui, sans-serif;
}
.secret-card .secret-result b { gap: 8px; }
.secret-card .secret-result b small {
    font: 700 14px/1 'Unbounded', 'Onest', sans-serif;
    color: rgba(255, 216, 138, .75);
}

/* вкладка админки «Пасхалки ✦» */
.sc-admin-title {
    margin: 0 0 6px;
    font: 700 18px/1.3 'Unbounded', 'Onest', sans-serif;
    background: linear-gradient(92deg, #ffe6a6, var(--solar, #ffb347));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sc-admin-sub { margin: 0 0 14px; max-width: 72ch; color: rgba(196, 208, 232, .75); font: 400 13px/1.55 'Onest', system-ui, sans-serif; }
.sc-admin-sub::after {
    content: attr(data-stats);
    display: block;
    margin-top: 4px;
    color: rgba(168, 246, 255, .65);
    font: 700 11px/1.4 'Unbounded', 'Onest', sans-serif;
    letter-spacing: .08em;
}
.sc-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
.sc-admin-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.sc-admin-msg { font: 500 13px/1.4 'Onest', system-ui, sans-serif; color: #ff8a8a; }
.sc-admin-msg.ok { color: #ffd88a; }
.sc-admin-h {
    margin: 22px 0 10px;
    font: 700 12px/1 'Unbounded', 'Onest', sans-serif;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(94, 226, 240, .8);
}
.sc-admin-add { max-width: 640px; }
.sc-reward-input { flex: 0 0 130px; letter-spacing: .04em; }
.sc-admin-hint { margin: 8px 0 12px; color: rgba(140, 160, 190, .65); font: 400 12px/1.5 'Onest', system-ui, sans-serif; }
.sc-admin-empty { color: rgba(140, 160, 190, .6); font: 400 13px/1.5 'Onest', system-ui, sans-serif; padding: 6px 0; }
#scCodesList .admin-row, #secretRecent .admin-row { align-items: center; }

/* тост копирования кода */
.sc-toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    z-index: 1500;
    transform: translate(-50%, 14px);
    padding: 11px 18px;
    color: #d8f6ff;
    font: 500 13.5px/1.4 'Onest', system-ui, sans-serif;
    background: linear-gradient(180deg, rgba(10, 22, 38, .95), rgba(6, 12, 22, .97));
    border: 1px solid rgba(94, 226, 240, .4);
    clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
    box-shadow: 0 10px 34px rgba(0, 0, 0, .5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
}
.sc-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 480px) {
    .secret-card { padding: 16px 14px; }
    .sc-reward-input { flex-basis: 100%; }
}
