/* тост про обновление */
@font-face {
    font-family: "Halvar Engschrift"; font-weight: 800; font-style: normal; font-display: swap;
    src: url("/public/fonts/HalvarEng-XBd-BcJu65vJ.woff2") format("woff2");
}
.qn {
    position: fixed; right: 20px; bottom: 20px; z-index: 2147482000;
    width: 400px; max-width: calc(100vw - 24px);
    font-family: "Inter", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    opacity: 0; transform: translateY(14px);
    transition: opacity .5s cubic-bezier(.2, .7, .2, 1), transform .5s cubic-bezier(.2, .7, .2, 1);
    pointer-events: none;
}
.qn *, .qn *::before, .qn *::after { box-sizing: border-box; }
.qn.is-on { opacity: 1; transform: none; pointer-events: auto; }
.qn.is-off { opacity: 0; transform: translateY(10px); pointer-events: none; }

.qn__card {
    position: relative; overflow: hidden;
    padding: 20px 20px 18px;
    border-radius: 16px;
    color: #dcdce0;
    background: linear-gradient(180deg, #1a1a1e, #131316);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .05);
}
/* красная кромка как у карточек */
.qn__card::before {
    content: ""; position: absolute; left: 20px; top: 0; width: 44px; height: 2px;
    background: #cf2929; box-shadow: 0 0 12px rgba(207, 41, 41, .8);
}

.qn__head { display: flex; align-items: center; gap: 16px; padding-right: 28px; }
.qn__tile {
    position: relative; flex: 0 0 auto;
    width: 64px; height: 64px; border-radius: 14px;
    display: grid; place-items: center;
    background: linear-gradient(160deg, #262041, #15122a);
    border: 1px solid rgba(170, 140, 255, .3);
    box-shadow: inset 0 -12px 20px rgba(0, 0, 0, .35), 0 0 24px -6px rgba(140, 100, 255, .55);
}
.qn__tile::before {
    content: ""; position: absolute; inset: 6px; border-radius: 50%;
    background: radial-gradient(circle, rgba(150, 110, 255, .5), transparent 65%);
    filter: blur(6px);
    animation: qnGlow 3.6s ease-in-out infinite;
}
.qn__emoji { position: relative; width: 44px; height: 44px; display: block; }
@keyframes qnGlow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.qn__kicker { margin: 0 0 4px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #ff6464; }
.qn__title {
    margin: 0;
    font-family: "Halvar Engschrift", "Montserrat", "Inter", sans-serif;
    font-size: 26px; font-weight: 800; line-height: .95; letter-spacing: .01em; text-transform: uppercase; color: #fff;
}
.qn__text { margin: 16px 0 0; font-size: 13.5px; line-height: 1.55; color: #a9a9ad; }
.qn__text + .qn__text { margin-top: 8px; }
.qn__text b { font-weight: 600; color: #ececf0; }

.qn__actions { display: flex; gap: 10px; margin-top: 18px; }
.qn__ok, .qn__dc {
    display: inline-flex; align-items: center; justify-content: center;
    height: 42px; padding: 0 18px; border-radius: 10px;
    font-family: inherit; font-size: 13.5px; font-weight: 600; line-height: 1;
    text-decoration: none; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.qn__ok { flex: 1 1 auto; border: 1px solid #cf2929; background: #cf2929; color: #fff; }
.qn__ok:hover { background: #e23434; border-color: #e23434; }
.qn__ok:active, .qn__dc:active { transform: translateY(1px); }
.qn__dc { border: 1px solid rgba(255, 255, 255, .14); background: transparent; color: #cfcfd3; white-space: nowrap; }
.qn__dc:hover { border-color: rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .04); color: #fff; }
.qn__x {
    position: absolute; top: 12px; right: 12px; z-index: 1;
    width: 28px; height: 28px; border: 0; border-radius: 8px; cursor: pointer;
    display: grid; place-items: center; color: #8c8c91; background: transparent;
    transition: background .15s ease, color .15s ease;
}
.qn__x:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.qn__x svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
.qn__ok:focus-visible, .qn__x:focus-visible, .qn__dc:focus-visible { outline: 2px solid #8b95ff; outline-offset: 2px; }

@media (max-width: 520px) {
    .qn { right: 12px; bottom: 12px; }
    .qn__card { padding: 16px 16px 14px; }
    .qn__tile { width: 54px; height: 54px; border-radius: 12px; }
    .qn__emoji { width: 38px; height: 38px; }
    .qn__title { font-size: 22px; }
    .qn__actions { flex-direction: column; }
    .qn__dc { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .qn { transition: opacity .2s ease; transform: none; }
    .qn__tile::before { animation: none; }
}
