/* ============================================================
   WORLD ARCHIVE — GTA 6 / VICE NIGHTS
   Cinematic neon layer · multi-depth · living UI
   Полная замена файла. Все классы сохранены.
   ============================================================ */

:root {
    --night: #07090e;
    --surface: #10131a;
    --surface-2: #161b24;
    --surface-3: #1c222e;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #f2f4f8;
    --text-dim: rgba(242, 244, 248, 0.62);
    --text-mute: rgba(242, 244, 248, 0.38);

    --pink: #ff3d8a;
    --magenta: #ff4f97;
    --coral: #ff6b5b;
    --orange: #ffb03a;
    --gold: #ffd56a;
    --cyan: #4de8ff;
    --lime: #6dff8a;

    --grad: linear-gradient(180deg, #ff3d8a 0%, #ff6b5b 50%, #ffb03a 100%);
    --grad-v: linear-gradient(180deg, #ff3d8a 0%, #ff6b5b 50%, #ffb03a 100%);
    --grad-soft: linear-gradient(180deg, rgba(255, 61, 138, 0.88) 0%, rgba(255, 107, 91, 0.85) 50%, rgba(255, 176, 58, 0.88) 100%);
    --grad-wash: linear-gradient(180deg, rgba(255, 61, 138, 0.28) 0%, rgba(255, 107, 91, 0.38) 45%, rgba(255, 176, 58, 0.45) 100%);
    --grad-edge: linear-gradient(90deg, transparent, rgba(255, 61, 138, 0.55), rgba(255, 176, 58, 0.45), transparent);

    --glow-pink: 0 0 28px rgba(255, 61, 138, 0.35);
    --glow-orange: 0 0 28px rgba(255, 176, 58, 0.28);
    --glow-soft: 0 12px 40px rgba(0, 0, 0, 0.55);

    --ease: cubic-bezier(0.22, 0.9, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);

    /* ===== ГЛАЗ ===== */
    --eye-pupil: rgb(255, 80, 160);
    /* зрачок */
    --eye-ring: rgb(255, 61, 138);
    /* кольцо */
    --eye-glow: rgb(255, 61, 138);
    /* свечение зрачка */
    --eye-pulse: rgb(255, 61, 138);
    /* импульсы по нитям */

    /* ===== СЕТКА ===== */
    --eye-grid: rgb(255, 220, 70);
    /* основные нити */
    --eye-grid-dim: rgb(255, 200, 50);
    /* связи между узлами */

    /* ===== ОРЕОЛЫ ===== */
    --eye-halo: rgb(255, 61, 138);
    /* круги вокруг глаза */

    /* ===== БЕЛОК ===== */
    --eye-sclera-in: rgb(255, 255, 255);
    /* центр белка */
    --eye-sclera-out: rgb(180, 180, 180);
    /* край белка */

    /* ===== ТЕКСТ ===== */
    --eye-text: rgb(210, 210, 210);
    /* текст вопросов */
    --eye-text-line: rgb(180, 180, 180);
    /* линия к тексту */
}

/* =========================
   BASE
========================= */

body {
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(255, 61, 138, 0.07), transparent 55%),
        radial-gradient(ellipse 80% 60% at 100% 100%, rgba(255, 176, 58, 0.04), transparent 50%),
        var(--night) !important;
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    user-select: none;
}

/* тонкий ambient noise через псевдо (лёгкий, без картинок) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px;
    mix-blend-mode: overlay;
}

/* =========================
   MESSAGE CARDS — Smooth Fill (как в примере)
   Градиент снизу вверх · текст всегда белый
========================= */

.output_text_users {
    position: relative;

    background-color: transparent !important;

    background-image:
        linear-gradient(180deg,
            rgba(7, 9, 14, 0.42) 0%,
            rgba(7, 9, 14, 0.28) 45%,
            rgba(7, 9, 14, 0.12) 100%),
        linear-gradient(180deg,
            rgba(16, 19, 26, 0.50) 0%,
            rgba(16, 19, 26, 0.50) 100%),
        linear-gradient(180deg,
            rgba(255, 61, 138, 0.85) 0%,
            rgba(255, 107, 91, 0.75) 50%,
            rgba(255, 176, 58, 0.70) 100%);

    background-size:
        100% 0%,
        100% 100%,
        100% 3px;

    background-position:
        center bottom,
        center bottom,
        center bottom;

    background-repeat: no-repeat;

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    color: #f2f4f8 !important;

    border: 1px solid var(--border) !important;

    height: 130px;
    width: 300px;

    padding: 18px 18px 16px;

    box-shadow: none !important;

    box-sizing: border-box;

    overflow: hidden;
    resize: none;

    margin: 8px;

    white-space: pre-wrap;
    word-break: break-word;

    cursor: pointer;

    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 0.15px;

    transition:
        transform 0.45s var(--ease-out),
        border-color 0.45s var(--ease),
        box-shadow 0.5s var(--ease),
        background-size 0.65s cubic-bezier(0.22, 0.9, 0.2, 1),
        text-shadow 0.4s var(--ease);

    z-index: 1;
}

.output_text_users:hover {
    /* veil растёт, surface схлопывается, gradient заполняет всё снизу вверх */
    background-size:
        100% 100%,
        100% 0%,
        100% 100%;
    border-color: rgba(255, 61, 138, 0.45) !important;
    color: #ffffff !important;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.6),
        0 0 14px rgba(0, 0, 0, 0.3);
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 61, 138, 0.18),
        0 0 42px rgba(255, 61, 138, 0.22),
        0 0 70px rgba(255, 176, 58, 0.1) !important;
}

/* random glow */
.output_text_users.random_glow {
    border-color: rgba(255, 176, 58, 0.4) !important;
    box-shadow:
        0 0 24px rgba(255, 61, 138, 0.2),
        0 0 48px rgba(255, 176, 58, 0.12) !important;
    animation: cardPulse 3.2s ease-in-out infinite;
    background-size:
        100% 0%,
        100% 100%,
        100% 4px;
}

.output_text_users.random_glow:hover {
    background-size:
        100% 100%,
        100% 0%,
        100% 100% !important;
}

@keyframes cardPulse {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.07);
    }
}

/* =========================
   MAIN INPUT
========================= */

.style_text_input {
    background: var(--surface) !important;
    color: var(--text);
    resize: none;
    align-content: center;
    height: 70px;
    width: 100%;
    padding: 28px 24px;
    border: 1px solid var(--border) !important;
    overflow-y: auto;
    position: relative;
    caret-color: var(--magenta);
    box-shadow: none !important;
    background-image: none !important;
    animation: none !important;
    transition:
        border-color 0.4s var(--ease),
        box-shadow 0.45s var(--ease),
        background 0.4s var(--ease);
}

.style_text_input:focus {
    outline: none;
    border-color: rgba(255, 61, 138, 0.5) !important;
    background: var(--surface-2) !important;
    box-shadow:
        0 0 0 1px rgba(255, 61, 138, 0.2),
        0 0 32px rgba(255, 61, 138, 0.14),
        inset 0 0 24px rgba(255, 61, 138, 0.03) !important;
}

/* =========================
   PRICE + SEND
========================= */

.price_message {
    user-select: none;
    height: 50%;
    text-align: center;
    border: 1px solid var(--border) !important;
    background: var(--surface) !important;
    color: var(--text);
    width: 106px;
    user-select: none !important;
    position: relative;
    overflow: hidden;
    box-shadow: none !important;
    animation: none !important;
    transition: color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.4s var(--ease);
}

.price_message:hover {
    border-color: rgba(255, 176, 58, 0.45) !important;
    color: var(--orange);
    box-shadow: 0 0 20px rgba(255, 176, 58, 0.15);
}

.button_send_message {
    height: 50%;
    border: 1px solid var(--border) !important;
    width: 112px;
    background: var(--surface) !important;
    color: var(--text);
    user-select: none !important;
    position: relative;
    overflow: hidden;
    box-shadow: none !important;
    animation: none !important;
    transition:
        color 0.35s var(--ease),
        transform 0.3s var(--ease-spring),
        border-color 0.35s var(--ease),
        box-shadow 0.4s var(--ease);
    z-index: 1;
}

.button_send_message::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad);
    clip-path: inset(calc(100% - 2.5px) 0 0 0);
    transition: clip-path 0.55s var(--ease);
    z-index: -1;
}

.button_send_message:hover {
    border-color: rgba(255, 176, 58, 0.45) !important;
    color: var(--orange);
    box-shadow: 0 0 20px rgba(255, 176, 58, 0.15);
}

.button_send_message:hover::before {
    clip-path: inset(0);
}

/* =========================
   PAY FORM
========================= */

.confirm_message {
    position: fixed;
    top: 100px;
    width: 40%;
}

.pay_form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    color: var(--text);
    background: var(--surface) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    width: 100%;
    padding: 28px;
    border: 1px solid var(--border-strong);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(255, 61, 138, 0.08),
        0 0 60px rgba(255, 61, 138, 0.06);
}

#enter_name,
#enter_email,
#confirm_price {
    background: var(--night) !important;
    color: var(--text);
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
    padding: 13px 16px;
    box-sizing: border-box;
    width: 50%;
    transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#enter_name:focus,
#enter_email:focus,
#confirm_price:focus {
    outline: none;
    border-color: rgba(255, 61, 138, 0.45) !important;
    box-shadow: 0 0 20px rgba(255, 61, 138, 0.1);
}

.style_text_pay {
    background: var(--night) !important;
    color: var(--text);
    resize: none;
    height: 80px;
    width: 50%;
    padding: 20px;
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
    box-sizing: border-box;
    overflow-y: auto;
    cursor: pointer;
    transition: height 0.5s ease, width 0.5s ease, border-color 0.35s var(--ease);
}

.style_text_pay:focus {
    outline: none;
    border-color: rgba(255, 61, 138, 0.4) !important;
}

.style_text_pay2 {
    height: 250px;
    width: 100%;
}

.price-up {
    color: var(--lime);
}

.price-down {
    color: #ff5c5c;
}

/* =========================
   PAY BUTTONS
========================= */

.dop_opt {
    display: flex;
    gap: 10px;
}

#back_to_message,
#pay_to_message,
#paypal {
    background: var(--surface-2) !important;
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
    padding: 15px 20px;
    color: var(--text);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition:
        color 0.35s var(--ease),
        transform 0.3s var(--ease-spring),
        border-color 0.35s var(--ease),
        box-shadow 0.4s var(--ease);
}

#back_to_message::before,
#pay_to_message::before,
#paypal::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad);
    clip-path: inset(calc(100% - 2.5px) 0 0 0);
    transition: clip-path 0.5s var(--ease);
    z-index: -1;
}

#back_to_message:hover,
#pay_to_message:hover,
#paypal:hover {
    border-color: rgba(255, 176, 58, 0.45) !important;
    color: var(--orange);
    box-shadow: 0 0 20px rgba(255, 176, 58, 0.15);
    cursor: pointer;
}

#back_to_message:hover::before,
#pay_to_message:hover::before,
#paypal:hover::before {
    clip-path: inset(0);
}

.blocked_button {
    opacity: 0.4;
    pointer-events: none;
}

/* =========================
   RANK TABLE
========================= */

.rank_table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text);
    font-size: 12px;
    background: var(--surface) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid var(--border);
}

.rank_table th,
.rank_table td {
    padding: 9px 6px;
    text-align: center;
}

.rank_table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s var(--ease), transform 0.25s var(--ease);
}

.rank_table th {
    font-weight: 700;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, var(--magenta), var(--orange), transparent) 1;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    text-transform: uppercase;
    font-size: 11px;
}

.rank_table .empty {
    opacity: 0.25;
}

/* 1 — gold */
.rank_table tr:nth-child(2) td {
    color: #ffd56a;
    font-weight: 700;
    text-shadow: 0 0 14px rgba(255, 213, 106, 0.4);
    transition: background 0.4s var(--ease), color 0.35s var(--ease), transform 0.25s var(--ease);
}

.rank_table tr:nth-child(2):hover td {
    background: linear-gradient(180deg, #ffd56a 0%, #ffb03a 100%);
    cursor: pointer;
    color: #0a0c10;
}

/* 2 — silver */
.rank_table tr:nth-child(3) td {
    color: #d0d4dc;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(200, 210, 220, 0.3);
    transition: background 0.4s var(--ease), color 0.35s var(--ease), transform 0.25s var(--ease);
}

.rank_table tr:nth-child(3):hover td {
    background: linear-gradient(180deg, #c8cdd6 0%, #e8ebf0 100%);
    cursor: pointer;
    color: #0a0c10;
}

/* 3 — bronze */
.rank_table tr:nth-child(4) td {
    color: #e08a4a;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(224, 138, 74, 0.35);
    transition: background 0.4s var(--ease), color 0.35s var(--ease), transform 0.25s var(--ease);
}

.rank_table tr:nth-child(4):hover td {
    background: linear-gradient(180deg, #e08a4a 0%, #ffb03a 100%);
    cursor: pointer;
    color: #0a0c10;
}

/* остальные — заливка снизу вверх */
.rank_table tr:not(:nth-child(-n+4)) td {
    transition: background 0.45s var(--ease), color 0.35s var(--ease), transform 0.25s var(--ease);
}

.rank_table tr:not(:nth-child(-n+4)):hover td {
    background: linear-gradient(180deg, #ff3d8a 0%, #ff6b5b 50%, #ffb03a 100%);
    color: #0a0c10;
    cursor: pointer;
}

/* =========================
   REFRESH + FILTERS
========================= */

.refresh_wrapper {
    position: sticky;
    top: 10px;
    display: flex;
    justify-content: center;
    width: 100%;
    pointer-events: none;
}

.refresh_btn {
    pointer-events: auto;
    background: var(--surface) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: var(--text);
    border: 1px solid var(--border) !important;
    padding: 9px 18px;
    font-size: 12px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: 0.35s var(--ease);
    width: auto;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.refresh_btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad);
    clip-path: inset(calc(100% - 2px) 0 0 0);
    transition: clip-path 0.5s var(--ease);
    z-index: -1;
}

.refresh_btn:hover {
    color: #0a0c10 !important;
    border-color: transparent !important;
    transform: scale(1.04);
    box-shadow: var(--glow-pink);
}

.refresh_btn:hover::before {
    clip-path: inset(0);
}

.viewing_user {
    text-align: center;
    margin: 12px 0;
    font-size: 14px;
    color: var(--text);
    letter-spacing: 0.6px;
}

.filters_panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
}

.filter_btn {
    background: var(--surface) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: var(--text);
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
    padding: 11px;
    cursor: pointer;
    transition: 0.35s var(--ease);
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.4px;
}

.filter_btn::after {
    content: "";
    position: absolute;
    inset: -6px;
    /* невидимая зона вокруг */
}

.filter_btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad);
    clip-path: inset(calc(100% - 2px) 0 0 0);
    transition: clip-path 0.5s var(--ease);
    z-index: -1;
}

.filter_btn:hover {
    color: #0a0c10 !important;
    border-color: transparent !important;
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(255, 61, 138, 0.2);
}

.filter_btn:hover::before {
    clip-path: inset(0);
}

.filter_group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.filter_group input {
    background: var(--night) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: var(--text);
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
    padding: 9px 11px;
    font-size: 12px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.filter_group input:focus {
    outline: none;
    border-color: rgba(255, 61, 138, 0.45) !important;
    box-shadow: 0 0 16px rgba(255, 61, 138, 0.1);
}

.filter_group button {
    background: var(--surface) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: var(--text);
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
    padding: 9px;
    cursor: pointer;
    transition: 0.3s var(--ease);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.filter_group button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad);
    clip-path: inset(calc(100% - 2px) 0 0 0);
    transition: clip-path 0.5s var(--ease);
    z-index: -1;
}

.filter_group button:hover {
    color: #0a0c10 !important;
    border-color: transparent !important;
    transform: translateY(-1px);
}

.filter_group button:hover::before {
    clip-path: inset(0);
}

.divider {
    height: 1px;
    background: var(--grad-edge);
    margin: 7px 0;
    opacity: 0.7;
}

/* =========================
   INFO LINE
========================= */

#line_users_information {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
}

#line_users_information h2 {
    letter-spacing: 1.2px;
    font-weight: 600;
    color: var(--text-dim);
}

/* =========================
   HELP
========================= */

.help_button {
    position: fixed;
    right: 15px;
    bottom: 15px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--surface) !important;
    color: var(--text);
    border: 1px solid var(--border) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    cursor: pointer;
    transition: 0.4s var(--ease);
    overflow: hidden;
}

.help_button::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--grad);
    clip-path: inset(calc(100% - 3px) 0 0 0);
    transition: clip-path 0.55s var(--ease);
    z-index: -1;
}

.help_button:hover {
    color: #0a0c10 !important;
    border-color: transparent !important;
    transform: scale(1.1);
    box-shadow: var(--glow-pink);
}

.help_button:hover::before {
    clip-path: inset(0);
}

.help_popup {
    position: fixed;
    inset: 0;
    background: rgba(7, 9, 14, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.help_content {
    width: 90%;
    max-width: 500px;
    background: var(--surface) !important;
    color: var(--text);
    border: 1px solid var(--border-strong);
    padding: 30px;
    box-sizing: border-box;
    text-align: left;
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(255, 61, 138, 0.06);
}

.help_content h2 {
    margin-top: 0;
    letter-spacing: 1.5px;
}

.help_content p {
    line-height: 1.6;
    opacity: 0.88;
}

#close_help {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    background: var(--surface-2) !important;
    color: var(--text);
    border: 1px solid var(--border) !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.35s var(--ease);
    z-index: 1;
}

#close_help::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad);
    clip-path: inset(calc(100% - 2.5px) 0 0 0);
    transition: clip-path 0.5s var(--ease);
    z-index: -1;
}

#close_help:hover {
    color: #0a0c10 !important;
    border-color: transparent !important;
}

#close_help:hover::before {
    clip-path: inset(0);
}

/* =========================
   FLOATING QUESTIONS
========================= */

#floating_questions {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.floating_question {
    position: absolute;
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    opacity: 0;
    font-weight: 600;
    text-shadow:
        2px 2px 0 #07090e,
        -2px 2px 0 #07090e,
        2px -2px 0 #07090e,
        -2px -2px 0 #07090e,
        0 0 14px rgba(0, 0, 0, 0.95);
    animation-name: floatQuestion;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
    white-space: nowrap;
    max-width: 90vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

.red_question {
    color: var(--magenta);
    text-shadow:
        2px 2px 0 #07090e,
        -2px 2px 0 #07090e,
        2px -2px 0 #07090e,
        -2px -2px 0 #07090e,
        0 0 12px rgba(255, 61, 138, 0.55),
        0 0 24px rgba(255, 61, 138, 0.25);
}

@keyframes floatQuestion {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }

    15% {
        opacity: 0.72;
    }

    85% {
        opacity: 0.72;
    }

    100% {
        opacity: 0;
        transform: translateY(-12px);
    }
}

/* =========================
   ARCHIVE INTRO
========================= */

.archive_intro {
    position: relative;
    width: 100%;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 70px;
    z-index: 2;
    pointer-events: none;
    animation: introFlicker 7s infinite;
}

.archive_intro h2 {
    color: var(--text);
    line-height: 1.55;
    letter-spacing: 2.2px;
    font-weight: 700;
    text-shadow:
        0 0 12px rgba(255, 61, 138, 0.18),
        0 0 28px rgba(255, 176, 58, 0.08);
}

.archive_intro p {
    min-height: 30px;
    margin-top: 20px;
    color: var(--text);
    opacity: 0;
    letter-spacing: 1.2px;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.06);
    animation: subtitleFade 3s ease forwards;
    animation-delay: 5s;
}

.archive_intro h2::after {
    content: "_";
    animation: blinkCursor 1.1s infinite;
    color: var(--magenta);
}

@keyframes subtitleFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 0.68;
        transform: translateY(0);
    }
}

@keyframes blinkCursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes introFlicker {

    0%,
    94%,
    100% {
        opacity: 1;
    }

    95% {
        opacity: 0.9;
    }

    97% {
        opacity: 1;
    }

    98% {
        opacity: 0.94;
    }
}

/* =========================
   FUTURE TRANSMISSION
========================= */

.future_typing {
    color: var(--magenta) !important;
    text-shadow:
        0 0 10px rgba(255, 61, 138, 0.7),
        0 0 22px rgba(255, 61, 138, 0.35);
    caret-color: var(--magenta);
}

.future_glitch {
    position: fixed;
    animation: futureGlitch 0.13s infinite;
}

.future_glitch::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.07;
    background-image: radial-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 3px 3px;
    mix-blend-mode: screen;
    animation: staticNoise 0.11s infinite;
}

@keyframes futureGlitch {
    0% {
        transform: translate(0, 0);
        filter: brightness(1);
    }

    25% {
        transform: translate(-1px, 1px);
    }

    50% {
        transform: translate(1px, -1px);
        filter: brightness(1.1);
    }

    75% {
        transform: translate(-1px, 0);
    }

    100% {
        transform: translate(0, 0);
        filter: brightness(1);
    }
}

@keyframes staticNoise {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-1px, 1px);
    }

    50% {
        transform: translate(1px, -1px);
    }

    75% {
        transform: translate(1px, 1px);
    }

    100% {
        transform: translate(0, 0);
    }
}

#particles_bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.28;
}

/* =========================
   HINTS
========================= */

:root {
    --hint-input-bottom: 95px;
    --hint-input-left: 52%;
    --hint-filters-top: 195px;
    --hint-filters-left: 18px;
    --hint-leaderboard-top: 195px;
    --hint-leaderboard-right: 18px;
    --hint-lastmessage-bottom: 280px;
    --hint-lastmessage-right: 20%;
}

.site_hint {
    position: fixed;
    opacity: 0.78;
    pointer-events: auto;
    transition: opacity 0.3s ease, transform 0.35s var(--ease);
    will-change: opacity, transform;
}

.site_hint:hover {
    opacity: 0.96 !important;
    transform: translateY(-5px);
}

.site_hint_content {
    background: var(--surface) !important;
    color: var(--text);
    padding: 15px 17px;
    width: 260px;
    font-size: 13.5px;
    line-height: 1.55;
    border: 1px solid var(--border-strong);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 61, 138, 0.06);
    animation: hintBreath 5.5s ease-in-out infinite;
}

.site_hint button {
    margin-top: 14px;
    width: 100%;
    background: var(--night);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.3s var(--ease);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.site_hint button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad);
    clip-path: inset(calc(100% - 2px) 0 0 0);
    transition: clip-path 0.45s var(--ease);
    z-index: -1;
}

.site_hint button:hover {
    color: #0a0c10 !important;
    border-color: transparent !important;
}

.site_hint button:hover::before {
    clip-path: inset(0);
}

#hint_input {
    bottom: var(--hint-input-bottom);
    left: var(--hint-input-left);
    transform: translateX(-50%);
}

#hint_filters {
    top: var(--hint-filters-top);
    left: var(--hint-filters-left);
}

#hint_leaderboard {
    top: var(--hint-leaderboard-top);
    right: var(--hint-leaderboard-right);
}

#hint_lastmessage {
    bottom: var(--hint-lastmessage-bottom);
    right: var(--hint-lastmessage-right);
}

@keyframes hintBreath {

    0%,
    100% {
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 61, 138, 0.04);
    }

    50% {
        box-shadow: 0 14px 44px rgba(0, 0, 0, 0.55), 0 0 40px rgba(255, 61, 138, 0.12);
    }
}

/* =========================
   DAILY VISITORS
========================= */

.daily-visitors {
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 13px;
    color: var(--text-mute);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

/* =========================
   LIVE TRANSMISSIONS
========================= */

.live_transmission_panel {
    width: 100%;
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.live_transmission_title {
    color: var(--magenta);
    font-size: 11.5px;
    letter-spacing: 3.5px;
    font-weight: 700;
    text-transform: uppercase;
    padding-left: 2px;
    position: relative;
    display: inline-block;
    animation: liveStreamFlicker 2.6s linear infinite;
    text-shadow:
        0 0 12px rgba(255, 61, 138, 0.75),
        0 0 28px rgba(255, 61, 138, 0.35);
}

@keyframes liveStreamFlicker {

    0%,
    100% {
        opacity: 0.72;
    }

    18% {
        opacity: 0.96;
    }

    42% {
        opacity: 0.65;
    }

    63% {
        opacity: 0.94;
    }

    81% {
        opacity: 0.76;
    }
}

.live_transmission_title::after {
    content: "●";
    color: var(--magenta);
    margin-left: 7px;
    animation: liveDotPulse 1.7s ease-in-out infinite;
    display: inline-block;
}

@keyframes liveDotPulse {

    0%,
    100% {
        opacity: 0.35;
        transform: scale(0.75);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

#live_transmission_input {
    background: var(--surface) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: var(--text);
    border: 1px solid var(--border) !important;
    width: 100%;
    height: 80px;
    resize: none;
    padding: 15px;
    box-sizing: border-box;
    font-size: 12px;
    overflow: hidden;
    box-shadow: none !important;
    animation: none !important;
    transition: border-color 0.35s var(--ease), box-shadow 0.4s var(--ease);
}

#live_transmission_input:focus {
    outline: none;
    border-color: rgba(255, 61, 138, 0.45) !important;
    box-shadow: 0 0 24px rgba(255, 61, 138, 0.12) !important;
}

#send_transmission_button {
    background: var(--surface) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: var(--text);
    border: 1px solid var(--border) !important;
    height: 44px;
    cursor: pointer;
    box-shadow: none !important;
    animation: none !important;
    position: relative;
    overflow: hidden;
    transition: 0.35s var(--ease);
    z-index: 1;
    letter-spacing: 1px;
}

#send_transmission_button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad);
    clip-path: inset(calc(100% - 2.5px) 0 0 0);
    transition: clip-path 0.5s var(--ease);
    z-index: -1;
}

#send_transmission_button:hover {
    color: #0a0c10 !important;
    border-color: transparent !important;
    box-shadow: var(--glow-pink);
}

#send_transmission_button:hover::before {
    clip-path: inset(0);
}

.transmission_locked {
    background: rgba(255, 255, 255, 0.025) !important;
    color: rgba(255, 255, 255, 0.38) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    opacity: 0.82;
    cursor: default !important;
    animation: none !important;
}

.transmission_locked:hover {
    background: rgba(255, 255, 255, 0.025) !important;
    color: rgba(255, 255, 255, 0.38) !important;
}

.transmission_input_locked {
    background: rgba(255, 255, 255, 0.015) !important;
    color: rgba(255, 255, 255, 0.32) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    opacity: 0.75;
    cursor: default !important;
}

#live_transmission_status {
    color: var(--text-mute);
    font-size: 10px;
    text-align: center;
    letter-spacing: 2px;
    margin-top: 8px;
}

.live_transmission {
    position: fixed;
    z-index: 3;
    color: var(--orange);
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    max-width: 340px;
    line-height: 1.5;
    letter-spacing: 1px;
    text-shadow:
        0 0 14px rgba(255, 176, 58, 0.3),
        0 0 28px rgba(255, 61, 138, 0.12);
    animation: liveTransmissionAppear 5s linear forwards;
}

@keyframes liveTransmissionAppear {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
        filter: blur(3px);
    }

    8% {
        opacity: 0.88;
        filter: blur(0);
    }

    58% {
        opacity: 0.88;
    }

    100% {
        opacity: 0;
        transform: translateY(-12px) scale(1.02);
        filter: blur(2px);
    }
}

/* =========================
   START BUTTON — премиум
========================= */

.start_container {
    position: fixed;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 290px;
    padding: 0 20px;
    box-sizing: border-box;
}

.start_btn {
    background: #fff;
    color: #0a0c10;
    border: 2px solid #fff;
    padding: 18px 32px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    transition: all 0.45s var(--ease);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.start_btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad);
    clip-path: inset(100% 0 0 0);
    transition: clip-path 0.6s var(--ease);
    z-index: -1;
}

.start_btn:hover {
    background: transparent;
    border-color: transparent;
    color: #0a0c10;
    transform: translateY(-4px);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(255, 61, 138, 0.3);
}

.start_btn:hover::before {
    clip-path: inset(0);
}

.start_btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
    transform: translateX(-120%) skewX(-18deg);
    transition: none;
    z-index: 1;
    pointer-events: none;
}

.start_btn:hover::after {
    animation: startShimmer 0.85s var(--ease) forwards;
}

@keyframes startShimmer {
    0% {
        transform: translateX(-120%) skewX(-18deg);
    }

    100% {
        transform: translateX(140%) skewX(-18deg);
    }
}

.message_text {
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: translateY(25px);
}

/* =========================
   SETTINGS
========================= */

.settings_button {
    position: fixed;
    right: 15px;
    bottom: 72px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--surface) !important;
    color: var(--text);
    border: 1px solid var(--border) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    transition: 0.4s var(--ease);
    overflow: hidden;
}

.settings_button::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--grad);
    clip-path: inset(calc(100% - 3px) 0 0 0);
    transition: clip-path 0.55s var(--ease);
    z-index: -1;
}

.settings_button:hover {
    color: #0a0c10 !important;
    border-color: transparent !important;
    transform: scale(1.1);
    box-shadow: var(--glow-pink);
}

.settings_button:hover::before {
    clip-path: inset(0);
}

.settings_popup {
    border: 1px solid var(--border-strong);
    position: fixed;
    right: 15px;
    bottom: 128px;
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 16px;
    background: var(--surface) !important;
    color: var(--text);
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(255, 61, 138, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateX(16px);
    transition: opacity 0.35s ease, transform 0.35s var(--ease), visibility 0.35s;
    pointer-events: none;
}

.settings_popup_open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.settings_popup label {
    display: flex;
    align-items: center;
    gap: 11px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text);
    user-select: none;
    transition: 0.2s ease;
}

.settings_popup label:hover {
    color: rgba(255, 255, 255, 0.92);
}

.settings_popup input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 17px;
    height: 17px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: var(--night);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.settings_popup input[type="checkbox"]:hover {
    border-color: rgba(255, 61, 138, 0.7);
    box-shadow: 0 0 12px rgba(255, 61, 138, 0.18);
}

.settings_popup input[type="checkbox"]:checked {
    background: var(--magenta);
    border-color: var(--magenta);
    box-shadow: 0 0 14px rgba(255, 61, 138, 0.35);
}

.settings_popup input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 9px;
    border: solid #0a0c10;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.hidden_transmissions {
    opacity: 0 !important;
    transition: opacity 0.8s ease;
}

.gear_open {
    animation: gearOpen 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.gear_close {
    animation: gearClose 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes gearOpen {
    0% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes gearClose {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* =========================
   MOBILE HINTS
========================= */

@media (max-width: 768px) {

    #hint_filters,
    #hint_leaderboard,
    #hint_lastmessage {
        display: none !important;
    }

    #hint_input {
        bottom: 105px;
        left: 50%;
        transform: translateX(-50%);
        max-width: 86vw;
        opacity: 0.82;
    }

    .site_hint_content {
        width: auto;
        max-width: 240px;
        padding: 13px 15px;
        font-size: 13px;
    }

    .site_hint button {
        padding: 9px 14px;
        font-size: 13px;
    }
}

/* =========================
   MOBILE TABS
========================= */

.mobile_tabs {
    display: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 9999px;
    overflow: hidden;
    margin: 15px auto;
    width: 94%;
    max-width: 400px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

@media (max-width: 768px) {
    .mobile_tabs {
        display: flex;
    }

    .mobile_tab {
        flex: 1;
        padding: 15px 10px;
        font-size: 14px;
        font-weight: 600;
        background: var(--night);
        color: var(--text);
        border: none;
        border-right: 1px solid var(--border);
        cursor: pointer;
        transition: all 0.35s var(--ease);
        text-transform: uppercase;
        letter-spacing: 0.7px;
        position: relative;
        overflow: hidden;
    }

    .mobile_tab:last-child {
        border-right: none;
    }

    .mobile_tab:hover {
        color: #ddd;
        background: rgba(255, 255, 255, 0.05);
    }

    .mobile_tab.active {
        background: var(--grad-v);
        color: #0a0c10;
        font-weight: 700;
    }

    .world_archive {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .left_box {
        width: 80%;
        height: auto;
    }

    .right_box {
        width: 75%;
        max-width: none;
        height: 520px;
        overflow-y: auto;
    }

    .right_box::-webkit-scrollbar {
        display: none;
    }

    .live_transmission_panel {
        width: 80%;
        order: -1;
        margin: 8px 0;
    }

    .center_box {
        width: 100%;
        order: 10;
        margin-top: 25px;
    }

    .filters_panel,
    .live_transmission_panel,
    .right_box {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
        display: none !important;
    }

    .filters_panel.mobile_active,
    .live_transmission_panel.mobile_active,
    .right_box.mobile_active {
        display: flex !important;
        opacity: 1;
        transform: translateY(0);
    }

    .right_box.mobile_active {
        display: block !important;
    }

    .live_transmission_panel.mobile_active {
        animation: fadeInCenter 0.5s ease forwards;
        flex-direction: column;
        padding: 20px 18px;
    }

    @keyframes fadeInCenter {
        from {
            opacity: 0;
            transform: scale(0.96) translateY(15px);
        }

        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }

    .live_transmission_title {
        font-size: 15px;
        text-align: center;
    }

    .filter_btn,
    .filter_group button,
    .filter_group input {
        font-size: 13px;
        padding: 10px;
    }

    .rank_table {
        font-size: 10.5px;
    }
}

#c {
    position: fixed;
    inset: 0;
    overflow: hidden;
    touch-action: none;
}

@media (max-width: 768px) {
    #c {
        height: 100%;
    }
}

#hud {
    position: fixed;
    top: 30px;
    left: 30px;
    letter-spacing: 4px;
}

.small {
    opacity: 0.5;
    font-size: 12px;
    margin-top: 8px;
}

/* =========================
   PROMO CONFIRM
========================= */

.promo_confirm {
    position: fixed;
    inset: 0;
    background: rgba(7, 9, 14, 0.92);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
}

.promo_confirm.active {
    display: flex;
    animation: fadePromo 0.25s ease;
}

.promo_confirm_box {
    width: 90%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    padding: 30px;
    text-align: center;
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.65),
        0 0 50px rgba(255, 61, 138, 0.08);
}

.promo_confirm_title {
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--lime);
    margin-bottom: 18px;
}

.promo_confirm_text {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 26px;
    line-height: 1.65;
}

.promo_confirm_buttons {
    display: flex;
    gap: 10px;
}

.promo_confirm_buttons button {
    flex: 1;
    height: 44px;
    background: var(--night);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: 0.3s var(--ease);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.promo_confirm_buttons button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad);
    clip-path: inset(calc(100% - 2px) 0 0 0);
    transition: clip-path 0.45s var(--ease);
    z-index: -1;
}

.promo_confirm_buttons button:hover {
    color: #0a0c10;
    border-color: transparent;
}

.promo_confirm_buttons button:hover::before {
    clip-path: inset(0);
}

@keyframes fadePromo {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#message {
    position: fixed;
    top: 80px;
    left: 30px;
    background: rgba(16, 19, 26, 0.96);
    color: #ff7a7a;
    padding: 9px 16px;
    font-size: 13px;
    border: 1px solid rgba(255, 61, 138, 0.35);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    white-space: nowrap;
}

/* =========================
   PARTNER
========================= */

.invite_btn {
    width: 100%;
    padding: 11px;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-dim);
    cursor: pointer;
    transition: 0.3s var(--ease);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.invite_btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad);
    clip-path: inset(calc(100% - 2px) 0 0 0);
    transition: clip-path 0.45s var(--ease);
    z-index: -1;
}

.invite_btn:hover {
    color: #0a0c10 !important;
    border-color: transparent !important;
}

.invite_btn:hover::before {
    clip-path: inset(0);
}

.partner_popup {
    position: fixed;
    inset: 0;
    background: rgba(7, 9, 14, 0.9);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
}

.partner_popup.active {
    display: flex;
}

.partner_content {
    width: min(92%, 650px);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    padding: 30px;
    color: var(--text-dim);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
}

.partner_content h2 {
    text-align: center;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: var(--text);
}

.partner_percent {
    text-align: center;
    font-size: 38px;
    font-weight: bold;
    color: var(--lime);
    margin: 22px 0;
    text-shadow:
        0 0 14px rgba(109, 255, 138, 0.55),
        0 0 32px rgba(109, 255, 138, 0.25);
}

.partner_content input,
.partner_content textarea {
    width: 100%;
    box-sizing: border-box;
    margin-top: 10px;
    padding: 13px;
    background: var(--night);
    border: 1px solid var(--border);
    color: var(--text);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.partner_content input:focus,
.partner_content textarea:focus {
    outline: none;
    border-color: rgba(255, 61, 138, 0.45);
    box-shadow: 0 0 18px rgba(255, 61, 138, 0.1);
}

.partner_login_content form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.partner_content textarea {
    min-height: 120px;
    resize: vertical;
}

.partner_content button {
    width: 100%;
    margin-top: 12px;
    padding: 13px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-dim);
    cursor: pointer;
    transition: 0.3s var(--ease);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.partner_content button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad);
    clip-path: inset(calc(100% - 2px) 0 0 0);
    transition: clip-path 0.45s var(--ease);
    z-index: -1;
}

.partner_content button:hover {
    color: #0a0c10 !important;
    border-color: transparent !important;
}

.partner_content button:hover::before {
    clip-path: inset(0);
}

.partner_login_popup {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(7, 9, 14, 0.9);
    backdrop-filter: blur(8px);
}

.partner_login_popup.active {
    display: flex;
}

.partner_login_content {
    width: 700px;
    max-width: 90%;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
}

.partner_login_content h2 {
    text-align: center;
    font-size: 20px;
    letter-spacing: 3px;
    color: var(--text);
}

.partner_login_description {
    text-align: center;
    opacity: 0.78;
    line-height: 1.7;
}

.partner_login_content input {
    background: var(--night);
    color: var(--text);
    border: none;
    box-shadow: inset 0 0 0 1px var(--border);
    padding: 18px;
    transition: box-shadow 0.3s var(--ease);
}

.partner_login_content input:focus {
    outline: none;
    box-shadow:
        inset 0 0 0 1px rgba(255, 61, 138, 0.45),
        0 0 18px rgba(255, 61, 138, 0.1);
}

.partner_login_content button {
    background: var(--surface-2);
    color: var(--text);
    border: none;
    padding: 18px;
    box-shadow: inset 0 0 0 1px var(--border);
    transition: 0.3s var(--ease);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.partner_login_content button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad);
    clip-path: inset(calc(100% - 2px) 0 0 0);
    transition: clip-path 0.45s var(--ease);
    z-index: -1;
}

.partner_login_content button:hover {
    color: #0a0c10 !important;
    cursor: pointer;
}

.partner_login_content button:hover::before {
    clip-path: inset(0);
}

.partner_login_info {
    opacity: 0.5;
    text-align: center;
    font-size: 13px;
}

/* =========================
   PERFORMANCE POPUP
========================= */

.performance_popup {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 360px;
    max-width: calc(100vw - 30px);
    background: rgba(7, 9, 14, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-strong);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 0 50px rgba(255, 61, 138, 0.12);
    padding: 24px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
    transition: 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.performance_popup.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.performance_title {
    color: var(--text);
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.performance_text {
    color: var(--text-dim);
    line-height: 1.55;
    font-size: 13px;
}

.performance_buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.performance_buttons button {
    flex: 1;
    background: var(--night);
    color: var(--text);
    border: 0;
    padding: 14px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 1px;
    box-shadow: inset 0 0 0 1px var(--border);
    transition: 0.3s var(--ease);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.performance_buttons button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad);
    clip-path: inset(calc(100% - 2px) 0 0 0);
    transition: clip-path 0.45s var(--ease);
    z-index: -1;
}

.performance_buttons button:hover {
    color: #0a0c10;
}

.performance_buttons button:hover::before {
    clip-path: inset(0);
}

#enable_performance {
    box-shadow:
        inset 0 0 0 1px rgba(255, 61, 138, 0.65),
        0 0 20px rgba(255, 61, 138, 0.2);
    animation: performancePulse 2.2s infinite;
}

@keyframes performancePulse {
    0% {
        box-shadow:
            inset 0 0 0 1px rgba(255, 61, 138, 0.4),
            0 0 8px rgba(255, 61, 138, 0.1);
    }

    50% {
        box-shadow:
            inset 0 0 0 1px rgba(255, 61, 138, 0.95),
            0 0 28px rgba(255, 61, 138, 0.4);
    }

    100% {
        box-shadow:
            inset 0 0 0 1px rgba(255, 61, 138, 0.4),
            0 0 8px rgba(255, 61, 138, 0.1);
    }
}

@media (max-width: 768px) {
    .performance_popup {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
    }

    .performance_buttons {
        flex-direction: column;
    }
}

.performance_fps_box {
    margin: 18px 0;
    text-align: center;
}

.performance_fps_title {
    font-size: 11px;
    letter-spacing: 2px;
    opacity: 0.5;
}

#performance_fps_value {
    margin-top: 6px;
    font-size: 42px;
    font-weight: bold;
    transition: 0.3s;
    text-shadow: 0 0 16px currentColor;
}

/* =========================
   LIVING COLUMNS
========================= */

.living-host {
    width: 100%;
    display: block;
    box-sizing: border-box;
}

.archive_text.classic-grid {
    opacity: 1 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center;
    gap: 12px;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    perspective: none !important;
}

.archive_text.classic-grid .output_text_users {
    display: block !important;
    width: 300px !important;
    height: 130px !important;
    margin: 8px !important;
    visibility: visible !important;
}

.living-stage {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    gap: 12px;
    width: 100%;
    height: calc(100vh - 110px);
    min-height: 560px;
    max-height: none;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    perspective: 1100px;
}

.living-stage::before,
.living-stage::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    z-index: 6;
    pointer-events: none;
}

.living-stage::before {
    top: 0;
    height: 44px;
    background: linear-gradient(180deg, rgba(7, 9, 14, 0.9) 0%, transparent 100%);
}

.living-stage::after {
    bottom: 0;
    height: 52px;
    background: linear-gradient(0deg, rgba(7, 9, 14, 0.88) 0%, transparent 100%);
}

.living-column {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.living-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    will-change: transform;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.living-track .output_text_users {
    display: block !important;
    width: calc(100% - 12px) !important;
    max-width: none !important;
    height: 130px !important;
    min-height: 130px !important;
    margin: 8px 6px !important;
    box-sizing: border-box !important;
    opacity: 1;
    visibility: visible !important;
    position: relative;
    z-index: 1;
    transform-origin: center center;
    resize: none !important;
}

.living-track .output_text_users.is-hot {
    z-index: 3;
    border-color: rgba(255, 61, 138, 0.45) !important;
    box-shadow:
        0 0 28px rgba(255, 61, 138, 0.2) !important;
}

.living-track .output_text_users.is-focusing {
    z-index: 5;
}

.living-track .output_text_users.ghost {
    opacity: 0.05 !important;
    pointer-events: none !important;
}

.living-track .output_text_users.output_text_users_click {
    width: calc(100% - 12px) !important;
    height: 130px !important;
    overflow: hidden !important;
}

/* VIEWER */
.living-viewer {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.living-viewer.open {
    pointer-events: auto;
    opacity: 1;
}

.living-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 9, 14, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.living-viewer-card {
    position: fixed;
    background: rgba(16, 19, 26, 0.98);
    border: 1px solid var(--border-strong);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(255, 61, 138, 0.08);
    z-index: 2;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    max-height: 70vh;
}

.living-viewer-card .inner {
    flex: 1 1 auto;
    padding: 24px 24px 18px;
    overflow-y: auto;
    overflow-x: hidden;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.55;
    font-size: 14px;
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease 0.12s, transform 0.35s ease 0.12s;
}

.living-viewer-card.ready .inner {
    opacity: 1;
    transform: translateY(0);
}

.living-viewer-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    opacity: 0.75;
    font-size: 12px;
    margin-bottom: 12px;
}

.living-viewer-code {
    font-weight: 800;
    letter-spacing: 0.5px;
    color: rgba(242, 244, 248, 0.92);
    text-shadow: 0 0 10px rgba(255, 61, 138, 0.35);
}

.living-viewer-close {
    margin-top: 16px;
    background: var(--night);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 11px 16px;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.3s var(--ease);
    z-index: 1;
}

.living-viewer-close::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad);
    clip-path: inset(calc(100% - 2px) 0 0 0);
    transition: clip-path 0.45s var(--ease);
    z-index: -1;
}

.living-viewer-close:hover {
    color: #0a0c10 !important;
    border-color: transparent !important;
}

.living-viewer-close:hover::before {
    clip-path: inset(0);
}

@media (max-width: 768px) {
    .living-stage {
        height: calc(100vh - 200px);
        min-height: 380px;
        gap: 6px;
    }

    .living-track .output_text_users {
        height: 96px !important;
        min-height: 96px !important;
        font-size: 70% !important;
        padding: 12px !important;
        margin: 6px 3px !important;
    }
}

.living-viewer,
.living-viewer * {
    user-select: text !important;
    -webkit-user-select: text !important;
}

.living-viewer-close {
    user-select: none !important;
    -webkit-user-select: none !important;
}

.under_line {
    width: 100%;
    height: 2px;
    margin: 24px 0;
    border: none;
    background: linear-gradient(90deg,
            transparent 0%,
            #ff3d8a 20%,
            #ff6b5b 50%,
            #ffb03a 80%,
            transparent 100%);
    box-shadow:
        0 0 12px rgba(255, 61, 138, 0.55),
        0 0 28px rgba(255, 176, 58, 0.25);
    filter: blur(1px);
    animation: underLinePulse 3.5s ease-in-out infinite;
}

@keyframes underLinePulse {

    0%,
    100% {
        opacity: 0.65;
        filter: blur(1px);
        box-shadow:
            0 0 10px rgba(255, 61, 138, 0.4),
            0 0 22px rgba(255, 176, 58, 0.15);
    }

    50% {
        opacity: 1;
        filter: blur(1.5px);
        box-shadow:
            0 0 18px rgba(255, 61, 138, 0.7),
            0 0 36px rgba(255, 176, 58, 0.35);
    }
}

/* =========================
   BRICK CARDS — fixed sizes, random order
   (только когда Living Columns выключены)
========================= */

.archive_text.classic-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
}

.archive_text.classic-grid .output_text_users {
    height: 130px !important;
    margin: 6px !important;
    flex-shrink: 0;
}

/* Desktop — 5 фиксированных ширин */
.archive_text.classic-grid .output_text_users.card-w1 {
    width: 220px !important;
}

.archive_text.classic-grid .output_text_users.card-w2 {
    width: 260px !important;
}

.archive_text.classic-grid .output_text_users.card-w3 {
    width: 300px !important;
}

.archive_text.classic-grid .output_text_users.card-w4 {
    width: 340px !important;
}

.archive_text.classic-grid .output_text_users.card-w5 {
    width: 280px !important;
}

/* Mobile — те же 5 классов, но меньше, больше разброс */
@media (max-width: 768px) {
    .archive_text.classic-grid {
        gap: 8px;
        padding: 0 6px;
    }

    .archive_text.classic-grid .output_text_users {
        height: 80px !important;
        margin: 4px !important;
        font-size: 60% !important;
        padding: 6px !important;
    }

    .archive_text.classic-grid .output_text_users.card-w1 {
        width: 140px !important;
    }

    .archive_text.classic-grid .output_text_users.card-w2 {
        width: 170px !important;
    }

    .archive_text.classic-grid .output_text_users.card-w3 {
        width: 200px !important;
    }

    .archive_text.classic-grid .output_text_users.card-w4 {
        width: 230px !important;
    }

    .archive_text.classic-grid .output_text_users.card-w5 {
        width: 160px !important;
    }
}

/* Z-INDEX */
#c {
    z-index: -99 !important;
}

#particles_bg {
    z-index: -1 !important;
}

#floating_questions {
    z-index: 1 !important;
}

.refresh_wrapper {
    z-index: 10 !important;
}

#hud {
    z-index: 20 !important;
}

.daily-visitors {
    z-index: 50 !important;
}

#message {
    z-index: 100 !important;
}

.confirm_message {
    z-index: 900 !important;
}

.start_container {
    z-index: 1000 !important;
}

.message_text {
    z-index: 1000 !important;
}

.site_hint {
    z-index: 4800 !important;
}

.help_button,
.settings_button {
    z-index: 5000 !important;
}

.settings_popup {
    z-index: 5001 !important;
}

#partner_menu {
    z-index: 5002 !important;
}

.help_popup {
    z-index: 6000 !important;
}

.living-viewer {
    z-index: 9000 !important;
}

.partner_popup,
.partner_login_popup {
    z-index: 9500 !important;
}

.performance_popup {
    z-index: 9600 !important;
}

.promo_confirm {
    z-index: 9700 !important;
}

body::before {
    z-index: 9998 !important;
}

.style_text_input {
    z-index: 1000 !important;
}

/* ===== Archive code overlay ===== */
.card-shell {
    position: relative;
    display: inline-block;
    vertical-align: top;
}

.card-code {
    position: absolute;
    right: 12px;
    top: 8px;
    z-index: 10;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
    pointer-events: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;

    /* как слой surface карточки — без hover не видно */
    background: linear-gradient(180deg,
            rgba(7, 9, 14, 0.42) 0%,
            rgba(7, 9, 14, 0.28) 45%,
            rgba(7, 9, 14, 0.12) 100%);

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow:
        0 0 2px rgba(7, 9, 14, 0.28),
        0 0 4px rgba(7, 9, 14, 0.12);
    transition: color .3s ease, opacity .3s ease, font-size .3s ease, text-shadow .3s ease;
}

@media (max-width: 768px) {
    .card-code {
        font-size: 18px;
        right: 8px;
        top: 6px;
    }
}

.card-shell.is-open .card-code {
    color: rgba(242, 244, 248, 0.92);
    opacity: 1;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 0 12px rgba(255, 61, 138, 0.45);
}

/* Living Columns + archive code */
.living-track .card-shell {
    display: block !important;
    width: calc(100% - 12px) !important;
    margin: 8px 6px !important;
    box-sizing: border-box !important;
}

.living-track .card-shell .output_text_users {
    width: 100% !important;
    margin: 0 !important;
}

.living-track .card-shell .card-code {
    right: 10px;
    top: 6px;
}