/* ============================================================
   ALL STARS — Telegram Mini App (стиль по макетам Pixso)
   Чёрный фон • серые карточки с белой рамкой • белые пилюли
   ============================================================ */

:root {
    --bg: #000000;            /* фон приложения */
    --card: #2f2e2e;          /* серые карточки и кнопки */
    --card-press: #3a3939;
    --tab-pad: #212121;       /* подложка активной вкладки */
    --white: #ffffff;
    --text: #ffffff;
    --muted: #b9b9b9;
    --dim: #8a8a8a;
    --placeholder: #666666;
    --disabled: #3c3c3c;      /* "Скоро..." */
    --sel: #d6bf00;           /* жёлтая рамка выбранного */
    --red: #c50000;
    --logo-red: #ff0000;
    --border: rgba(255, 255, 255, .92);

    --r-card: 22px;
    --r-pill: 30px;

    --font: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-logo: 'Montserrat', 'Arial Black', sans-serif;

    --tabbar-h: 84px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* Тонкие тёмные полосы прокрутки (десктоп) */
* { scrollbar-width: thin; scrollbar-color: #2e2e2e transparent; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2e2e2e; border-radius: 4px; }

html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.4;
    overscroll-behavior-y: none;
}

.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; color: inherit; }

/* ---------- Заставка (по макету: лого + плывущий вниз фон «ALL») ---------- */
#splash {
    position: fixed; inset: 0; z-index: 100;
    background: var(--bg);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 30px;
    overflow: hidden;
    transition: opacity .35s ease;
}
#splash.fade { opacity: 0; pointer-events: none; }
#splash-logo, .splash-spinner { position: relative; z-index: 2; }
#splash-logo svg { width: 250px; height: auto; filter: drop-shadow(0 4px 30px rgba(0, 0, 0, .9)); }
.splash-spinner {
    width: 30px; height: 30px;
    border: 3px solid var(--card);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Фон заставки: две одинаковые половины, цикл сдвига на 50% = бесшовная
   медленная прокрутка вниз */
#splash-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.splash-scroll {
    position: absolute; left: -30px; right: -30px; top: 0;
    animation: splashDown 60s linear infinite;
}
.splash-half { padding: 0; }
.splash-row {
    font-size: 34px;
    letter-spacing: 6px;
    line-height: 1.6;
    font-weight: 700;
    color: rgba(255, 255, 255, .055);
}
.splash-half .splash-row:nth-child(even) { margin-left: -44px; }
@keyframes splashDown {
    from { transform: translateY(-50%); }
    to   { transform: translateY(0); }
}

/* ---------- Каркас ---------- */
#app { min-height: 100dvh; display: flex; flex-direction: column; }

#screen {
    flex: 1;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 8px 14px calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 20px);
    display: flex;
    flex-direction: column;
}

/* Экран — колонка на всю высоту: блок .menu-buttons прижимается к низу */
.screen-col {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100%;
}

/* ---------- Шапка ---------- */
.header {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 14px 14px 0;
}
.header-logo { display: flex; }
.header-logo svg { height: 40px; width: auto; }

.header-row {
    display: flex; align-items: center; gap: 8px;
    margin-top: 12px;
}
.player-chip {
    flex: 1;
    display: flex; align-items: center; gap: 9px;
    background: var(--card);
    border-radius: 15px;
    height: 40px;
    padding: 0 12px;
    font-size: 15.5px; font-weight: 600;
    min-width: 0;
    transition: background .15s;
}
.player-chip:active { background: var(--card-press); }
.player-chip svg { width: 21px; height: 21px; flex-shrink: 0; }
.player-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hbtn {
    width: 40px; height: 40px; flex-shrink: 0;
    background: var(--card);
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, transform .1s;
    position: relative;
}
.hbtn:active { background: var(--card-press); transform: scale(.94); }
.hbtn svg { width: 21px; height: 21px; }
.hbtn.yt svg { color: var(--red); }

/* Дропдаун (язык) */
.dropdown {
    position: absolute;
    top: 47px; right: 0;
    z-index: 50;
    width: 190px;
    background: #000;
    border: 2px solid var(--border);
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .7);
    animation: dropIn .16s ease;
    text-align: left;
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } }
.dropdown-title { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.lang-row {
    display: flex; align-items: center; gap: 9px;
    width: 100%;
    padding: 7px 6px;
    border-radius: 10px;
    font-size: 14.5px; font-weight: 500;
    transition: background .15s;
}
.lang-row:active { background: var(--card); }
.lang-row img { width: 22px; height: 22px; border-radius: 50%; }
.lang-row .check { margin-left: auto; width: 16px; height: 16px; color: var(--sel); }

/* ---------- Нижняя навигация ---------- */
.tabbar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    background: rgba(0, 0, 0, .92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
/* Нет доступа к тесту: прячем нижнюю навигацию и правые кнопки шапки — отклонённый
   не видит вкладок (роутер и так не пускает дальше экрана блокировки). */
body.app-locked .tabbar { display: none !important; }
body.app-locked .header .header-row { visibility: hidden; }
.tabbar-inner {
    max-width: 480px; height: 100%;
    margin: 0 auto;
    display: flex;
    padding: 6px 10px;
    gap: 6px;
}
.tab-btn {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px;
    border-radius: 15px;
    color: var(--white);
    font-size: 12px; font-weight: 600;
    letter-spacing: .2px;
    transition: background .18s, opacity .18s;
    opacity: .75;
}
.tab-btn svg { width: 26px; height: 26px; }
.tab-btn.active { background: var(--tab-pad); opacity: 1; }

/* ---------- Кнопки ---------- */
.pill {
    touch-action: manipulation;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    width: 100%;
    height: 50px;
    border-radius: var(--r-pill);
    font-size: 17px; font-weight: 600;
    transition: transform .1s, background .15s;
    user-select: none;
}
.pill:active { transform: scale(.98); }
.pill svg { width: 21px; height: 21px; }
.pill-white { background: var(--white); color: #000; box-shadow: 0 4px 20px rgba(255, 255, 255, .12); }
.pill-gray { background: var(--card); color: var(--white); }
.pill[disabled] { opacity: .45; pointer-events: none; }
.pill + .pill { margin-top: 12px; }

/* CTA-кнопки всегда внизу экрана (когда контента мало — прижимаются к низу) */
.menu-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 22px; }

/* ---------- Карточки (серые с белой рамкой) ---------- */
.panel {
    position: relative;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--r-card);
    overflow: hidden;
}
.panel-body { position: relative; z-index: 2; padding: 16px; }
.panel.center { text-align: center; }

/* Рекламный баннер */
.ad-banner {
    height: 210px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 30px;
}
.ad-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}
.ad-banner .ad-text { position: relative; z-index: 2; font-size: 18px; color: var(--muted); font-weight: 500; }
.ad-carousel {
    margin-top: 14px;
    height: 120px;
    border-radius: 20px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 14px;
}
.ad-carousel .arr { display: flex; padding: 8px; color: var(--white); z-index: 2; }
.ad-carousel .arr svg { width: 22px; height: 22px; }
.ad-carousel .ad-text { position: relative; z-index: 2; font-size: 17px; color: var(--muted); font-weight: 500; }

/* Водяной знак ALL: чуть шире блока, чтобы у краёв не было пустот */
.watermark { position: absolute; top: -6px; bottom: -6px; left: -24px; right: -24px; overflow: hidden; z-index: 1; pointer-events: none; }
.wm-row {
    font-family: var(--font);
    font-weight: 700;
    font-size: 25px;
    letter-spacing: 3px;
    line-height: 1.5;
    white-space: nowrap;
    color: rgba(255, 255, 255, .05);
    user-select: none;
}
.wm-row:nth-child(even) { margin-left: -34px; }

/* ---------- Типографика ---------- */
.h1 { font-size: 23px; font-weight: 700; margin: 20px 0 12px; }
.h2 { font-size: 19px; font-weight: 600; margin: 18px 0 10px; }
.h-row { display: flex; align-items: center; justify-content: space-between; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 12.5px; }
.soon { color: var(--disabled); font-size: 17px; font-weight: 600; text-align: center; padding: 14px 0; }

/* ---------- Выбор режима ---------- */
.mode-wide {
    display: flex; align-items: center; justify-content: center; gap: 20px;
    height: 50px;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--r-pill);
    font-size: 15px; font-weight: 600;
    width: 100%;
    transition: border-color .15s, box-shadow .15s;
    margin-bottom: 14px;
}
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mode-card {
    aspect-ratio: 1;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 20px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px;
    font-size: 14px; font-weight: 600;
    transition: border-color .15s, box-shadow .15s, transform .1s;
}
.mode-card:active { transform: scale(.96); }
.mode-card .persons, .mode-wide .persons { display: flex; gap: 2px; }
.mode-card .persons svg, .mode-wide .persons svg { width: 15px; height: 17px; }
.mode-card .vs-split { display: flex; flex-direction: column; gap: 4px; align-items: center; }

.selectable.selected {
    border-color: var(--sel);
    box-shadow: 0 0 0 1px var(--sel), 0 0 18px rgba(214, 191, 0, .25);
}

/* ---------- Выбор карты ---------- */
.map-card {
    position: relative;
    width: 100%;
    height: 158px;
    border: 2px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    background: var(--card);
    transition: border-color .15s, box-shadow .15s;
}
.map-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.map-card .map-label {
    position: absolute; left: 12px; bottom: 10px;
    font-weight: 700; font-size: 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .8);
}
.map-card.selected { border-color: var(--sel); box-shadow: 0 0 0 1px var(--sel), 0 0 18px rgba(214, 191, 0, .25); }

/* ---------- Выбор оружия ---------- */
.weapon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.weapon-cell {
    height: 52px;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; font-weight: 600;
    transition: border-color .15s, box-shadow .15s, transform .1s;
}
.weapon-cell:active { transform: scale(.97); }
.weapon-cell.wide { grid-column: 1 / -1; }

/* ---------- Предупреждение ---------- */
.warn-panel { margin: 14px 0; }
.warn-panel .panel-body { padding: 16px 14px; text-align: center; font-size: 16.5px; line-height: 1.45; }
.warn-panel b { display: block; margin-bottom: 8px; font-size: 17px; }
.warn-panel .q-inline { display: inline-flex; vertical-align: -4px; width: 19px; height: 19px; margin-left: 3px; }

/* ---------- Списки игроков ---------- */
.player-row2 {
    display: flex; align-items: center; gap: 12px;
    background: var(--card);
    border-radius: 20px;
    height: 56px;
    padding: 0 14px;
    margin-bottom: 10px;
}
.player-row2 svg.pico { width: 22px; height: 22px; flex-shrink: 0; }
.player-row2 .nick { flex: 1; font-size: 16.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-row2 .you { font-size: 11px; color: #000; background: var(--white); border-radius: 7px; padding: 2px 7px; font-weight: 700; }
.player-row2 .row-x { display: flex; padding: 6px; color: var(--white); opacity: .8; }
.player-row2 .row-x svg { width: 17px; height: 17px; }
.player-row2.searching .nick { color: var(--muted); animation: pulseTxt 1.2s ease-in-out infinite; }
.team-box { position: relative; border: 1.6px solid rgba(255,255,255,.22); border-radius: 14px; padding: 16px 12px 8px; margin: 16px 0 6px; }
.team-box .team-label { position: absolute; top: -10px; left: 14px; background: var(--bg); padding: 0 9px; font-size: 13px; font-weight: 800; letter-spacing: .3px; color: var(--white); }
@keyframes pulseTxt { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.creds-row2 .val.searching { color: var(--muted); animation: pulseTxt 1.2s ease-in-out infinite; }

/* Галочка готовности игрока (фаза подтверждения) */
.ready-mark {
    width: 26px; height: 26px; flex-shrink: 0;
    border: 2px solid var(--dim);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: transparent;
    transition: all .25s;
}
.ready-mark svg { width: 14px; height: 14px; }
.ready-mark.on { border-color: var(--sel); background: rgba(214, 191, 0, .12); color: var(--sel); }

/* Таймер фазы готовности */
.ready-timer {
    text-align: center;
    font-size: 34px; font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin: 4px 0 8px;
}

/* ---------- Данные лобби ---------- */
.creds-row2 {
    display: flex; align-items: center;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 20px;
    height: 52px;
    padding: 0 16px;
    margin-bottom: 12px;
    font-size: 17px; font-weight: 600;
}
.creds-row2 .val { flex: 1; text-align: center; letter-spacing: .5px; }
.creds-row2 .copy-btn { display: flex; padding: 6px; color: var(--white); }
.creds-row2 .copy-btn svg { width: 20px; height: 20px; }
.creds-row2 .copy-btn:active { color: var(--sel); }
.creds-row2 .refresh-id-btn {
    display: flex; align-items: center; justify-content: center;
    padding: 6px; margin-right: 4px; flex: 0 0 auto;
    background: none; border: none; cursor: pointer;
    color: var(--muted);
}
.creds-row2 .refresh-id-btn svg { width: 20px; height: 20px; }
.creds-row2 .refresh-id-btn:active { color: var(--sel); }
.creds-row2 .refresh-id-btn[disabled] { opacity: .3; pointer-events: none; }
.creds-row2 .refresh-id-btn.used { opacity: .3; }

/* Таймер-кольцо */
.timer-wrap { display: flex; flex-direction: column; align-items: center; margin: 20px 0; }
.timer-ring { position: relative; width: 220px; height: 220px; }
.timer-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-ring .track { stroke: var(--card); }
.timer-ring .prog { stroke: var(--white); transition: stroke-dashoffset 1s linear; }
.timer-num {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 56px; font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ---------- Поля ввода ---------- */
.input2 {
    width: 100%;
    height: 52px;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 0 16px;
    font-size: 16px;
    color: var(--text);
    outline: none;
    transition: border-color .15s;
    margin-bottom: 12px;
}
.input2::placeholder { color: var(--placeholder); }
.input2:focus { border-color: var(--sel); }

/* ---------- Рейтинг ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 16px; }
.dd-wrap { position: relative; flex: 1; }
/* Широкий фильтр — занимает весь ряд (например, оружие в профиле) */
.dd-wrap.dd-wide { flex-basis: 100%; }
.dd-wrap.dd-wide .dropdown { width: 220px; }
.hbtn-wrap { position: relative; flex-shrink: 0; }
.filter-dd {
    width: 100%;
    height: 48px;
    background: var(--card);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 15px; font-weight: 600;
    transition: background .15s;
}
.filter-dd:active { background: var(--card-press); }
.filter-dd svg { width: 17px; height: 17px; }
.dd-wrap .dropdown { top: 54px; left: 50%; right: auto; transform: translateX(-50%); width: 170px; }
.dd-opt {
    display: flex; align-items: center; gap: 8px;
    width: 100%;
    padding: 8px 8px;
    border-radius: 10px;
    font-size: 14.5px; font-weight: 500;
}
.dd-opt:active { background: var(--card); }
.dd-opt .check { margin-left: auto; width: 15px; height: 15px; color: var(--sel); }

.rank-row2 {
    display: flex; align-items: center; gap: 11px;
    background: var(--card);
    border-radius: 20px;
    height: 58px;
    padding: 0 14px;
    margin-bottom: 10px;
}
.rank-row2 .place2 { width: 30px; font-weight: 700; font-size: 14px; color: var(--dim); flex-shrink: 0; }
.rank-row2 .place2.top { color: var(--sel); }
.rank-row2 svg.pico { width: 22px; height: 22px; flex-shrink: 0; }
.rank-row2 .nick { flex: 1; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row2 .pts { display: flex; align-items: baseline; gap: 4px; font-weight: 700; font-size: 15.5px; }
.rank-row2 .pts .pts-cap { font-size: 11px; color: var(--dim); font-weight: 600; }
.rank-row2.me { border: 2px solid var(--border); }

/* ---------- Пригласить ---------- */
.invite-title { font-size: 27px; font-weight: 700; line-height: 1.25; margin: 18px 0 14px; }
.invite-conditions { text-align: left; margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.inv-status { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.inv-status.done { display: inline-flex; align-items: center; gap: 5px; color: var(--sel); }
.inv-status.done svg { width: 15px; height: 15px; }
.stat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.stat-card {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 12px;
    min-height: 96px;
    display: flex; flex-direction: column; justify-content: space-between;
}
.stat-card .cap { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat-card .val-row { display: flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 700; }
.stat-card .val-row svg { width: 22px; height: 22px; }
.stat-card .val-row .gold { color: var(--sel); }

/* ---------- Профиль ---------- */
.pts-chip {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    background: var(--white);
    color: #000;
    border-radius: 15px;
    height: 40px;
    padding: 0 14px;
    font-size: 15.5px; font-weight: 700;
    flex: 1;
}
.pts-chip svg { width: 19px; height: 19px; }

/* Чип звёзд (игровая валюта) */
.stars-chip {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    background: var(--card);
    border-radius: 15px;
    height: 40px;
    padding: 0 14px;
    font-size: 15.5px; font-weight: 700;
    transition: background .15s;
}
.stars-chip:active { background: var(--card-press); }
.stars-chip svg { width: 18px; height: 18px; color: var(--sel); }
.gameid-line { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.gameid-line b { color: var(--white); }

.stats-panel .row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 2px;
    font-size: 15.5px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.stats-panel .row:last-child { border-bottom: none; }
.stats-panel .row b { font-size: 16.5px; }

/* ---------- Модалки ---------- */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 60;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 22px;
    animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
.modal-panel {
    position: relative;
    width: 100%; max-width: 400px;
    max-height: 86dvh;
    overflow: hidden;            /* фон ALL не создаёт полос прокрутки */
    display: flex;
    background: #000;
    border: 2px solid var(--border);
    border-radius: 30px;
    animation: popIn .2s ease;
}
@keyframes popIn { from { transform: scale(.94); opacity: .5; } }
.modal-inner {
    position: relative; z-index: 2;
    padding: 26px 20px 22px;
    width: 100%;
    max-height: calc(86dvh - 4px);
    overflow-y: auto;            /* прокручивается контент, а не вся панель */
}
.modal-x {
    position: absolute; top: 14px; right: 14px; z-index: 3;
    display: flex; padding: 8px;
    color: var(--white);
    background: rgba(255, 255, 255, .08);
    border-radius: 50%;
}
.modal-x svg { width: 17px; height: 17px; }
.modal-title { font-size: 21px; font-weight: 700; text-align: center; margin-bottom: 14px; }
.modal-text { font-size: 15.5px; line-height: 1.5; text-align: center; color: var(--text); }
.modal-text.left { text-align: left; white-space: pre-line; }
.modal-panel .pill { margin-top: 16px; }
.modal-logo { display: flex; justify-content: center; margin: 6px 0 16px; }
.modal-logo svg { height: 52px; width: auto; }

/* ---------- Тосты ---------- */
#toast-root {
    position: fixed; top: 14px; left: 0; right: 0; z-index: 80;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    pointer-events: none;
    padding: 0 16px;
}
.toast {
    display: flex; align-items: center; gap: 8px;
    background: #1c1c1c;
    border: 1px solid var(--border);
    font-size: 14px; font-weight: 600;
    padding: 10px 16px;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .6);
    animation: toastIn .25s ease;
    max-width: 92%;
}
.toast svg { width: 17px; height: 17px; flex-shrink: 0; }
.toast.ok svg { color: var(--sel); }
.toast.err svg { color: var(--red); }
.toast.out { opacity: 0; transform: translateY(-8px); transition: all .25s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- Разное ---------- */
.back-btn {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--white);
    font-size: 15px; font-weight: 600;
    padding: 8px 10px 8px 2px;
    margin-top: 6px;
    opacity: .85;
}
.back-btn svg { width: 21px; height: 21px; }

/* Текстовая ссылка (например, «Не помню результаты») */
.link-text {
    display: block;
    width: 100%;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 6px 0 2px;
}
.link-text:active { color: var(--white); }

.screen-enter { animation: screenIn .22s ease; }
@keyframes screenIn { from { opacity: 0; transform: translateY(8px); } }

.divider { height: 1px; background: rgba(255, 255, 255, .1); margin: 20px 0; }

.ban-note {
    border: 1px solid rgba(197, 0, 0, .34);
    background: linear-gradient(180deg, rgba(197, 0, 0, .13), rgba(197, 0, 0, .05));
    border-radius: 16px;
    padding: 13px 16px;
    font-size: 13.5px;
    line-height: 1.45;
    color: #ffdada;
    margin: 14px 0;
    text-align: center;
    box-shadow: 0 6px 20px rgba(197, 0, 0, .09);
}
