/* ==========================================================================
   Adventure Wars — оформление Mini App
   --------------------------------------------------------------------------
   Тёмное фэнтези: фоновые иллюстрации, стекло с золотой линией, собственные
   SVG-иконки. Никаких эмодзи. Структура файла:
     1. Токены          5. Панели и рамки      9. Списки и таблицы
     2. Сброс и текст   6. Кнопки             10. Экраны (вход, город, …)
     3. Каркас          7. Поля ввода         11. Модальные окна и тосты
     4. Иконки          8. Полосы и метрики   12. Адаптив
   ========================================================================== */

/* ------------------------------------------------------------ 1. Токены */
:root {
    /* Тёмная основа */
    --ink-900: #04050880;
    --ink-800: #070910;
    --ink-700: #0b0e16;
    --ink-600: #11151f;

    /* Золото */
    --gold-100: #f8ecd0;
    --gold-200: #f0dcaf;
    --gold-300: #e3c79a;
    --gold: #e0c288;
    --gold-500: #c09b56;
    --gold-700: #8a6a32;

    /* Линии и стекло */
    --line: rgba(224, 194, 136, .16);
    --line-2: rgba(224, 194, 136, .3);
    --line-3: rgba(224, 194, 136, .5);
    --glass: rgba(9, 11, 17, .58);
    --glass-2: rgba(13, 17, 25, .72);
    --glass-3: rgba(18, 23, 33, .86);

    /* Текст */
    --text: #ece6da;
    --text-2: #b5ad9c;
    --text-3: #7d7768;

    /* Акценты */
    --red: #d2554a;
    --red-dim: rgba(210, 85, 74, .5);
    --green: #5faa63;
    --green-dim: rgba(95, 170, 99, .45);
    --blue: #5b86c9;

    /* Радиусы, тени, ритм */
    --r-xs: 8px;
    --r-sm: 11px;
    --r-md: 14px;
    --r-lg: 18px;
    --r-pill: 999px;
    --shadow-1: 0 2px 10px rgba(0, 0, 0, .45);
    --shadow-2: 0 10px 30px rgba(0, 0, 0, .55);
    --shadow-3: 0 22px 60px rgba(0, 0, 0, .7);
    --glow: 0 0 22px rgba(224, 194, 136, .16);

    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --nav-h: 60px;
}

/* --------------------------------------------------- 2. Сброс и текст */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    margin: 0; padding: 0; height: 100%;
    background: #04050a;
    color: var(--text);
    font-family: Spectral, Georgia, "Times New Roman", serif;
    font-size: 15px;
    line-height: 1.45;
    font-variant-numeric: tabular-nums;
    overscroll-behavior: none;
    -webkit-font-smoothing: antialiased;
}
body { overflow: hidden; }

h1, h2, h3, .title-font {
    font-family: Cinzel, Georgia, serif;
    font-weight: 600;
    letter-spacing: .04em;
    margin: 0;
}

b, strong { font-weight: 600; color: var(--text); }

.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 12.5px; }
.tiny { font-size: 11px; line-height: 1.35; }
.center { text-align: center; }
.italic { font-style: italic; }
.gold { color: var(--gold-200); }
.lack { color: #eb8a80; }
.nowrap { white-space: nowrap; }
.caps {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 10px;
    color: var(--text-3);
    font-family: Cinzel, serif;
}

.row { display: flex; align-items: center; gap: 8px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 8px; }

/* ------------------------------------------------------------ 3. Каркас */
.bg {
    position: fixed; inset: 0; z-index: 0;
    background-color: #04050a;
    background-size: cover;
    background-position: center;
    transition: background-image .4s ease;
}
/* затемнение + виньетка, чтобы текст всегда читался */
.bg::after {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(130% 90% at 50% 0%, rgba(4, 5, 10, .14), rgba(4, 5, 10, .58) 78%),
        linear-gradient(180deg, rgba(4, 5, 10, .74) 0%, rgba(4, 5, 10, .2) 30%,
                        rgba(4, 5, 10, .34) 62%, rgba(4, 5, 10, .88) 100%);
}
/* очень слабое зерно — убирает «плоскость» градиентов */
.bg::before {
    content: ""; position: absolute; inset: 0; opacity: .5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
    pointer-events: none;
}

.app {
    position: relative; z-index: 1;
    height: 100%; max-width: 520px; margin: 0 auto;
    display: flex; flex-direction: column;
}

.screen { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.screen-body {
    flex: 1; min-height: 0;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 12px 13px calc(16px + var(--safe-bottom));
    scrollbar-width: thin;
    scrollbar-color: var(--line-2) transparent;
    animation: screenIn .26s ease both;
}
.screen-body::-webkit-scrollbar { width: 3px; }
.screen-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
@keyframes screenIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

/* всё, что реагирует на нажатие, ведёт себя как кнопка */
[data-act] { cursor: pointer; touch-action: manipulation; }
[data-act][disabled] { cursor: default; }

/* ----------------------------------------------------------- 4. Иконки */
.ic {
    width: 1.15em; height: 1.15em;
    display: inline-block; vertical-align: -.2em; flex: none;
    fill: none; stroke: currentColor;
    stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.ic-filled { fill: currentColor; stroke: currentColor; stroke-width: .9; }
.ic.lg { width: 1.5em; height: 1.5em; }
.ic.xl { width: 26px; height: 26px; }
.ic.xxl { width: 34px; height: 34px; }
.ic.gold { color: var(--gold-200); }
.ic.dim { color: var(--text-3); }

/* значение с иконкой: 1 200 монет */
.val { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.val .ic { color: var(--gold); }
.val.red .ic { color: var(--red); }
.val.green .ic { color: var(--green); }

/* -------------------------------------------------- 5. Панели и рамки */
.panel {
    position: relative;
    background: var(--glass);
    backdrop-filter: blur(10px) saturate(1.1);
    -webkit-backdrop-filter: blur(10px) saturate(1.1);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, .05);
    padding: 13px 14px;
    margin-bottom: 11px;
}
.panel.tight { padding: 10px 12px; }
.panel.flat { box-shadow: none; background: rgba(9, 11, 17, .42); }

/* золотые уголки — «рамка дорогого издания» */
.panel.framed::before, .panel.framed::after {
    content: ""; position: absolute; width: 13px; height: 13px;
    border: 1px solid var(--line-3); pointer-events: none;
}
.panel.framed::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; border-radius: 3px 0 0 0; }
.panel.framed::after { bottom: 6px; right: 6px; border-left: 0; border-top: 0; border-radius: 0 0 3px 0; }

.panel-title {
    display: flex; align-items: center; gap: 10px;
    font-family: Cinzel, serif; font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .14em;
    color: var(--gold-200);
    margin-bottom: 10px;
}
.panel-title::before, .panel-title::after {
    content: ""; height: 1px; flex: 1;
    background: linear-gradient(90deg, transparent, var(--line-2));
}
.panel-title::after { background: linear-gradient(270deg, transparent, var(--line-2)); }
.panel-title.left::before { display: none; }

/* разделитель с ромбом */
.divider {
    position: relative; height: 1px; margin: 12px 0;
    background: linear-gradient(90deg, transparent, var(--line-2) 20%,
                var(--line-2) 80%, transparent);
}
.divider::after {
    content: ""; position: absolute; top: -3px; left: 50%;
    width: 5px; height: 5px; margin-left: -3px;
    background: var(--gold-500); transform: rotate(45deg);
    box-shadow: 0 0 8px rgba(224, 194, 136, .5);
}

.badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 10.5px; line-height: 1;
    padding: 4px 8px; border-radius: var(--r-pill);
    border: 1px solid var(--line-2);
    background: rgba(6, 8, 13, .6);
    color: var(--gold-200); white-space: nowrap;
}
.badge .ic { width: 1em; height: 1em; }
.badge.red { border-color: var(--red-dim); color: #f0a49c; }
.badge.green { border-color: var(--green-dim); color: #a7dcaa; }
.badge.quiet { border-color: var(--line); color: var(--text-2); }

/* ----------------------------------------------------------- 6. Кнопки */
.btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    width: 100%; padding: 12px 14px;
    font-family: Cinzel, serif; font-size: 13.5px; font-weight: 600;
    letter-spacing: .03em;
    color: var(--text);
    background: linear-gradient(180deg, rgba(30, 36, 50, .92), rgba(14, 18, 26, .95));
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, .06);
    cursor: pointer; text-decoration: none;
    transition: transform .09s ease, filter .18s ease, border-color .18s ease;
}
.btn:hover { border-color: var(--line-3); }
.btn:active { transform: translateY(1px) scale(.995); filter: brightness(1.1); }
.btn .ic { color: var(--gold); }

.btn.gold {
    color: #2b2008;
    background: linear-gradient(180deg, #f3ddad 0%, #dfc188 46%, #c3a05c 100%);
    border-color: #f0dcaf;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .3);
    box-shadow: var(--shadow-1), var(--glow), inset 0 1px 0 rgba(255, 255, 255, .55),
                inset 0 -1px 0 rgba(0, 0, 0, .18);
}
.btn.gold .ic { color: #3a2c0c; }
.btn.danger {
    color: #ffe9e6;
    background: linear-gradient(180deg, #8e332b, #5b1a15);
    border-color: #b4574d;
}
.btn.danger .ic { color: #ffd9d4; }
.btn.ghost {
    background: rgba(8, 10, 16, .5);
    border-color: var(--line);
    color: var(--text-2);
}
.btn.ghost .ic { color: var(--text-2); }
.btn.small { width: auto; padding: 8px 11px; font-size: 12px; border-radius: var(--r-xs); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; filter: grayscale(.5); }

.btn-row { display: flex; gap: 9px; }
.btn-row > .btn { flex: 1; }
.btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.link {
    display: inline-flex; align-items: center; gap: 5px;
    color: var(--gold-200); font-size: 13px; cursor: pointer;
    border-bottom: 1px solid var(--line-2); padding-bottom: 1px;
}
.link:hover { border-color: var(--gold-500); }

/* сегментированный переключатель */
.tabs { display: flex; gap: 6px; margin-bottom: 11px; }
.tabs button {
    flex: 1; padding: 9px 5px; cursor: pointer;
    font-family: Cinzel, serif; font-size: 11.5px; letter-spacing: .05em;
    color: var(--text-2);
    background: rgba(8, 10, 16, .55);
    border: 1px solid var(--line);
    border-radius: var(--r-xs);
    transition: color .18s, border-color .18s, background .18s;
}
.tabs button.active {
    color: #2b2008; border-color: #f0dcaf;
    background: linear-gradient(180deg, #f1dab0, #c9a562);
    box-shadow: var(--glow);
}

/* --------------------------------------------------------- 7. Поля ввода */
.field { margin-bottom: 10px; }
.field label {
    display: block; margin-bottom: 5px;
    font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em;
    color: var(--text-3); font-family: Cinzel, serif;
}
input[type=text], input[type=password], input[type=number], textarea {
    width: 100%; padding: 12px 13px;
    font-family: Spectral, Georgia, serif; font-size: 15px;
    color: var(--text);
    background: rgba(4, 6, 11, .72);
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, .5);
    transition: border-color .18s, box-shadow .18s;
}
input::placeholder { color: var(--text-3); }
input:focus, textarea:focus {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, .5), 0 0 0 3px rgba(224, 194, 136, .1);
}
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button { display: none; }

/* степпер «− значение +» */
.stepper { display: flex; align-items: center; justify-content: center; gap: 10px; }
.stepper .step-btn {
    width: 38px; height: 38px; flex: none;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; cursor: pointer;
    color: var(--gold-200);
    background: rgba(8, 10, 16, .7);
    border: 1px solid var(--line-2);
}
.stepper .step-btn:active { transform: scale(.94); }
.stepper .step-value {
    min-width: 104px; padding: 7px 10px; text-align: center;
    font-family: Cinzel, serif; font-size: 16px; color: var(--gold-100);
    background: rgba(4, 6, 11, .66);
    border: 1px solid var(--line-2); border-radius: var(--r-sm);
}

/* ------------------------------------------------- 8. Полосы и метрики */
.bar {
    position: relative; flex: 1;
    height: 13px; min-width: 76px;
    background: rgba(0, 0, 0, .62);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: var(--r-pill);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .8);
    overflow: hidden;
}
.bar > i {
    position: absolute; inset: 0 auto 0 0; display: block;
    border-radius: var(--r-pill);
    transition: width .4s cubic-bezier(.2, .7, .2, 1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
}
.bar.hp > i { background: linear-gradient(90deg, #7d1f18, #d2554a); }
.bar.energy > i { background: linear-gradient(90deg, #2c6b33, #62bd69); }
.bar.exp > i { background: linear-gradient(90deg, #8a6a1f, #e6c479); }
.bar.boss > i { background: linear-gradient(90deg, #5e100f, #d8483f 70%, #f08b7f); }
.bar > span {
    position: relative; z-index: 2; display: block;
    font-size: 9px; line-height: 13px; text-align: center;
    color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .9);
    letter-spacing: .02em;
}
.bar.tall { height: 20px; }
.bar.tall > span { font-size: 11.5px; line-height: 20px; }
.bar.slim { height: 7px; }
.bar.slim > span { display: none; }

.progress {
    height: 7px; border-radius: var(--r-pill); overflow: hidden;
    background: rgba(0, 0, 0, .55);
    border: 1px solid rgba(255, 255, 255, .07);
}
.progress > i {
    display: block; height: 100%;
    background: linear-gradient(90deg, #a9862f, #eccd8b);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
    transition: width .4s ease;
}

/* ------------------------------------------------------------ 9. HUD */
.hud {
    display: flex; align-items: center; gap: 10px;
    padding: calc(8px + var(--safe-top)) 13px 9px;
    background: linear-gradient(180deg, rgba(4, 5, 9, .96) 0%, rgba(4, 5, 9, .72) 70%,
                rgba(4, 5, 9, 0) 100%);
}
.hud-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.hud-name { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.hud-name .nick {
    font-family: Cinzel, serif; font-size: 13.5px; font-weight: 600;
    color: var(--gold-100); letter-spacing: .03em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px;
}
.hud-lvl {
    font-family: Cinzel, serif; font-size: 10px; letter-spacing: .06em;
    padding: 2px 7px; border-radius: var(--r-pill);
    border: 1px solid var(--line-2); color: var(--gold-200);
    background: rgba(6, 8, 13, .7);
}
.hud-meters { display: flex; align-items: center; gap: 8px; }
.hud-meter { display: flex; align-items: center; gap: 5px; flex: 1; }
.hud-meter .ic { width: 13px; height: 13px; }
.hud-meter.hp .ic { color: #e07a70; }
.hud-meter.en .ic { color: #7fcd86; }
.hud-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.hud-money {
    display: flex; align-items: center; gap: 5px;
    font-size: 12.5px; color: var(--text);
}
.hud-money .ic { width: 14px; height: 14px; color: var(--gold); }

/* --------------------------------------------- 10. Шапка раздела и меню */
.page-head {
    display: flex; align-items: center; gap: 10px;
    padding: 4px 12px 10px;
}
.page-head .back {
    width: 36px; height: 36px; flex: none;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; cursor: pointer;
    color: var(--gold-200);
    background: rgba(8, 11, 18, .8);
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow-1);
    transition: border-color .18s, transform .09s;
}
.page-head .back:active { transform: scale(.94); }
.page-head h1 {
    flex: 1; text-align: center;
    font-size: 15px; letter-spacing: .1em; text-transform: uppercase;
    color: var(--gold-100);
    text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}
.page-head .head-right { min-width: 36px; text-align: right; font-size: 12px; }

.nav {
    display: flex; align-items: stretch;
    background: linear-gradient(0deg, rgba(3, 4, 8, .98), rgba(3, 4, 8, .82));
    border-top: 1px solid var(--line);
    padding-bottom: var(--safe-bottom);
    box-shadow: 0 -12px 30px rgba(0, 0, 0, .5);
}
.nav button {
    position: relative; flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; min-height: var(--nav-h); padding: 8px 2px;
    background: none; border: 0; cursor: pointer;
    color: var(--text-3);
    font-family: Cinzel, serif; font-size: 9.5px;
    letter-spacing: .06em; text-transform: uppercase;
    transition: color .2s;
}
.nav button .ic { width: 21px; height: 21px; }
.nav button.active { color: var(--gold-100); }
.nav button.active .ic { filter: drop-shadow(0 0 8px rgba(224, 194, 136, .55)); }
.nav button.active::before {
    content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 30px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ------------------------------------------------- 11. Экран входа */
.auth-wrap {
    position: relative;
    flex: 1; display: flex; flex-direction: column; justify-content: center;
    padding: 16px 18px calc(24px + var(--safe-bottom));
    overflow-y: auto;
}
/* название держим сверху, а окно входа центрируем по всей высоте экрана */
.auth-logo {
    position: absolute; top: 30px; left: 18px; right: 18px;
    margin: 0; text-align: center;
    font-family: Cinzel, serif; font-size: 30px; font-weight: 700;
    letter-spacing: .07em; color: var(--gold-100);
    text-shadow: 0 3px 18px rgba(0, 0, 0, .95), 0 0 40px rgba(224, 194, 136, .3);
}
.auth-logo .sub {
    display: block; margin-top: 7px;
    font-family: Spectral, serif; font-size: 11px; font-style: italic;
    letter-spacing: .22em; text-transform: uppercase; color: var(--text-2);
    text-shadow: 0 2px 8px rgba(0, 0, 0, .9);
}
.auth-card {
    position: relative;
    margin: 0;
    background: var(--glass-2);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line-2);
    border-radius: var(--r-lg);
    padding: 18px 17px 20px;
    box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255, 255, 255, .06);
}

/* --------------------------------------------- 12. Главное меню (город) */
.city-layout {
    flex: 1; min-height: 0; display: flex; flex-direction: column;
    padding: 4px 11px calc(10px + var(--safe-bottom));
    overflow-y: auto;
}
.city-plate {
    align-self: center;
    display: flex; align-items: center; gap: 8px;
    padding: 7px 18px; border-radius: var(--r-pill);
    background: var(--glass-2);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow-2);
    font-family: Cinzel, serif; font-size: 13px; letter-spacing: .08em;
    text-transform: uppercase; color: var(--gold-100);
}
.city-plate .ic { color: var(--gold); }

.reminder {
    display: flex; align-items: center; gap: 9px;
    margin-top: 10px; padding: 10px 13px;
    border: 1px solid var(--red-dim); border-radius: var(--r-md);
    background: linear-gradient(180deg, rgba(74, 15, 12, .72), rgba(40, 8, 6, .7));
    backdrop-filter: blur(8px);
    font-size: 12.5px; color: #f3d6d2;
    box-shadow: var(--shadow-1);
}
.reminder .ic { color: #ef9c92; flex: none; }
.reminder.live {
    border-color: var(--green-dim);
    background: linear-gradient(180deg, rgba(19, 58, 25, .7), rgba(10, 32, 14, .7));
    color: #d6efd8;
}
.reminder.live .ic { color: #8fd694; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
.reminder.pulse { animation: pulse 2.4s infinite ease-in-out; }

.circles {
    flex: 1; display: flex; justify-content: space-between; align-items: stretch;
    gap: 6px; margin: 12px 0 10px;
}
.circle-col { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.circle {
    position: relative;
    width: 94px; height: 94px; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; padding: 8px 6px; cursor: pointer;
    background: radial-gradient(120% 120% at 32% 22%, rgba(38, 45, 62, .92),
                rgba(7, 9, 14, .95) 70%);
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow-2), inset 0 0 20px rgba(0, 0, 0, .7),
                inset 0 1px 0 rgba(255, 255, 255, .07);
    color: var(--text);
    font-family: Cinzel, serif; font-size: 10px; line-height: 1.2;
    letter-spacing: .05em; text-transform: uppercase; text-align: center;
    transition: transform .12s ease, border-color .2s ease, box-shadow .2s ease;
}
.circle::after {
    content: ""; position: absolute; inset: 4px; border-radius: 50%;
    border: 1px solid rgba(224, 194, 136, .1); pointer-events: none;
}
.circle:active { transform: scale(.94); }
.circle:hover { border-color: var(--line-3); box-shadow: var(--shadow-2), var(--glow); }
.circle .ic { width: 25px; height: 25px; color: var(--gold-200); }
.circle.accent { border-color: rgba(210, 85, 74, .55); }
.circle.accent .ic { color: #f0a49c; }
.circle.accent::after { border-color: rgba(210, 85, 74, .22); }

.big-buttons { display: flex; gap: 10px; }
.big-btn {
    position: relative; flex: 1; cursor: pointer;
    padding: 14px 10px 13px; text-align: center;
    border-radius: var(--r-md);
    background: linear-gradient(180deg, rgba(20, 25, 36, .86), rgba(6, 8, 13, .93));
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, .06);
    transition: transform .1s ease, border-color .2s;
}
.big-btn:active { transform: translateY(1px) scale(.99); }
.big-btn .ic { width: 22px; height: 22px; color: var(--gold-200); margin-bottom: 4px; }
.big-btn .label {
    display: block; font-family: Cinzel, serif; font-size: 16px; font-weight: 600;
    letter-spacing: .06em; color: var(--gold-100);
}
.big-btn .sub {
    display: block; margin-top: 3px;
    font-family: Spectral, serif; font-size: 10.5px; color: var(--text-3);
}

/* красная метка «есть новое» */
.dot {
    position: absolute; top: 7px; right: 9px;
    min-width: 18px; height: 18px; padding: 0 4px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--r-pill);
    background: linear-gradient(180deg, #e0574c, #9e2a21);
    border: 1px solid #f0958c;
    color: #fff; font-family: Spectral, serif; font-size: 10px; font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .65);
}
.dot .ic { width: 11px; height: 11px; color: #fff; }
.circle .dot { top: 9px; right: 11px; }

/* ---------------------------------------------------------- 13. Профиль */
.profile-top {
    display: grid; grid-template-columns: 1fr 142px 1fr; gap: 7px;
    align-items: stretch;
}
.slot-col { display: grid; grid-template-rows: repeat(5, 1fr); gap: 7px; }
.slot {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; min-height: 46px; padding: 6px 4px; cursor: pointer;
    overflow: hidden; word-break: break-word; text-align: center;
    background: linear-gradient(180deg, rgba(14, 18, 27, .8), rgba(6, 8, 13, .84));
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, .04);
    font-size: 9.5px; line-height: 1.15; color: var(--text-3);
    transition: border-color .2s, transform .09s;
}
.slot:active { transform: scale(.97); }
.slot .ic { width: 17px; height: 17px; color: var(--text-2); }
.slot.filled { border-color: var(--line-2); color: var(--text); }
.slot.filled .ic { color: var(--gold-200); }

.avatar {
    position: relative; width: 100%; height: 100%; min-height: 158px;
    border-radius: var(--r-md); overflow: hidden; cursor: pointer;
    background: rgba(6, 8, 13, .8) center/cover no-repeat;
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, .06);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; text-align: center; padding: 10px;
    font-size: 10.5px; color: var(--text-3);
}
.avatar .ic { width: 30px; height: 30px; color: var(--text-3); }
.avatar.has-image::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(4, 5, 10, .75));
}

.stat-chips { display: flex; gap: 6px; margin-top: 9px; }
.stat-chip {
    flex: 1; min-width: 0; padding: 6px 4px; text-align: center;
    background: rgba(6, 8, 13, .8);
    border: 1px solid var(--line); border-radius: var(--r-xs);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.stat-chip .ic { width: 14px; height: 14px; }
.stat-chip.hp .ic { color: #e07a70; }
.stat-chip.def .ic { color: #8fb0d8; }
.stat-chip.atk .ic { color: var(--gold-200); }
.stat-chip b {
    display: block; margin-top: 2px;
    font-size: 11.5px; color: var(--gold-100); white-space: nowrap;
}

/* ----------------------------------------------------------- 14. Навыки */
.skill {
    position: relative;
    background: var(--glass);
    backdrop-filter: blur(9px);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 12px 13px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.skill-head { display: flex; align-items: center; gap: 7px; }
.skill-head .ic { width: 18px; height: 18px; color: var(--gold-200); }
.skill-head .name {
    font-family: Cinzel, serif; font-size: 13px; letter-spacing: .06em;
    text-transform: uppercase; color: var(--gold-100);
}
.skill-head .value { font-size: 16px; font-weight: 600; color: var(--text); }
.skill-head .extra { font-size: 11.5px; color: var(--text-3); }
.skill-next { font-size: 11.5px; color: #8ac48f; margin: 6px 0 7px; font-style: italic; }
.skill-hint { font-size: 11.5px; color: var(--text-2); margin-bottom: 10px; }

/* --------------------------------------------------- 15. Карточки, списки */
.card {
    background: var(--glass);
    backdrop-filter: blur(9px);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden; margin-bottom: 11px;
    box-shadow: var(--shadow-2);
}
.card-img { width: 100%; height: 124px; object-fit: cover; display: block; }
.card-body { padding: 12px 13px; }
.card-title {
    font-family: Cinzel, serif; font-size: 14px; letter-spacing: .04em;
    color: var(--gold-100);
}
.card.locked { opacity: .68; }

.item-card {
    position: relative;
    padding: 11px 12px 11px 14px; margin-bottom: 9px;
    background: var(--glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.item-card::before {
    content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--rarity, var(--line-2));
    box-shadow: 0 0 10px var(--rarity, transparent);
}
.item-title { font-family: Cinzel, serif; font-size: 13px; letter-spacing: .03em; }
.item-card .ic { width: 15px; height: 15px; }
.stars { letter-spacing: .1em; font-size: 10px; }

.market-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.market-item {
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    padding: 15px 8px; cursor: pointer; text-align: center;
    background: linear-gradient(180deg, rgba(16, 20, 30, .78), rgba(7, 9, 15, .86));
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, .05);
    font-family: Cinzel, serif; font-size: 12.5px; letter-spacing: .04em;
    color: var(--text);
    transition: transform .1s, border-color .2s;
}
.market-item:active { transform: scale(.98); }
.market-item:hover { border-color: var(--line-2); }
.market-item .ic { width: 25px; height: 25px; color: var(--gold-200); }

.gear-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.gear-slot {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; min-height: 78px; padding: 8px 5px; cursor: pointer;
    text-align: center; overflow: hidden; word-break: break-word;
    background: linear-gradient(180deg, rgba(14, 18, 27, .78), rgba(6, 8, 13, .84));
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--r-sm);
    font-size: 9.5px; color: var(--text-3);
}
.gear-slot .ic { width: 18px; height: 18px; color: var(--text-2); }
.gear-slot.filled { border-color: var(--line-2); }
.gear-slot.filled .ic { color: var(--gold-200); }
.gear-slot .name { font-size: 9.5px; color: var(--text); line-height: 1.15; }
.gear-slot .bonus { font-size: 9px; color: var(--gold); display: flex; gap: 4px; }
.gear-slot .bonus .ic { width: 10px; height: 10px; }

/* строки рейтинга */
.lb-row {
    display: grid; grid-template-columns: 28px 1fr auto auto;
    gap: 9px; align-items: center;
    padding: 7px 9px; border-radius: var(--r-xs); font-size: 13px;
}
.lb-row + .lb-row { margin-top: 2px; }
.lb-row:nth-child(odd) { background: rgba(255, 255, 255, .028); }
.lb-row.me {
    background: linear-gradient(90deg, rgba(224, 194, 136, .16), rgba(224, 194, 136, .05));
    border: 1px solid var(--line-2);
}
.lb-place { font-family: Cinzel, serif; color: var(--gold); text-align: center; }
.lb-row.top1 .lb-place { color: #f6e2b2; text-shadow: 0 0 10px rgba(246, 226, 178, .6); }
.lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-dmg { font-variant-numeric: tabular-nums; color: var(--text); }
.lb-prize {
    min-width: 46px; text-align: right; font-size: 11px; color: var(--gold-200);
    display: inline-flex; align-items: center; gap: 3px; justify-content: flex-end;
}

.ach-row {
    display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center;
    padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .05);
}
.ach-row .ic { width: 22px; height: 22px; color: var(--text-3); }
.ach-row.done .ic { color: var(--gold-200); filter: drop-shadow(0 0 7px rgba(224, 194, 136, .5)); }
.ach-row.claimed { opacity: .5; }

/* ------------------------------------------------- 16. Бой: мобы и боссы */
.boss-art, .mob-art {
    position: relative; border-radius: var(--r-md); overflow: hidden;
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow-2);
    background: rgba(6, 8, 13, .8);
}
.boss-art img { width: 100%; height: 196px; object-fit: cover; display: block; }
.mob-art img { width: 100%; height: 214px; object-fit: cover; display: block; }
.boss-art .overlay {
    position: absolute; inset: auto 0 0 0; padding: 11px 13px 12px;
    background: linear-gradient(0deg, rgba(4, 5, 9, .96), rgba(4, 5, 9, .55) 60%, transparent);
}
.floor-badge {
    position: absolute; top: 9px; left: 9px;
    padding: 4px 11px; border-radius: var(--r-pill);
    background: rgba(4, 5, 9, .85); border: 1px solid var(--line-2);
    font-family: Cinzel, serif; font-size: 11px; letter-spacing: .06em;
    color: var(--gold-100);
}
.mob-art .no-img {
    height: 214px; display: flex; align-items: center; justify-content: center;
    color: var(--text-3); font-size: 12px;
}

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.stat-box {
    padding: 8px 6px; text-align: center; font-size: 10.5px; color: var(--text-3);
    background: rgba(6, 8, 13, .72);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: var(--r-xs);
}
.stat-box .ic { width: 15px; height: 15px; color: var(--gold-200); }
.stat-box b { display: block; margin-top: 2px; font-size: 13px; color: var(--text); }

.log { max-height: 152px; overflow-y: auto; font-size: 12.5px; }
.log-line { padding: 4px 0; border-bottom: 1px dashed rgba(255, 255, 255, .06); }
.log-line.player { color: #d3e8d3; }
.log-line.mob { color: #f1bdb8; }
.log-line.system { color: var(--gold-200); font-style: italic; }
.log-line .crit { color: #ffd76e; font-weight: 700; }

.float-damage {
    position: absolute; left: 50%; top: 38%;
    transform: translateX(-50%);
    font-family: Cinzel, serif; font-size: 27px; font-weight: 700;
    color: #ffdf94; text-shadow: 0 3px 14px rgba(0, 0, 0, .95);
    pointer-events: none; animation: floatUp .95s ease-out forwards;
}
@keyframes floatUp {
    0% { opacity: 0; transform: translate(-50%, 12px) scale(.8); }
    25% { opacity: 1; transform: translate(-50%, -6px) scale(1.12); }
    100% { opacity: 0; transform: translate(-50%, -58px) scale(1); }
}

/* -------------------------------------------- 17. Колесо фортуны */
.wheel-box { position: relative; display: flex; justify-content: center; margin: 4px 0 14px; }
.wheel {
    width: 232px; height: 232px; border-radius: 50%;
    border: 2px solid var(--gold-500);
    box-shadow: 0 0 34px rgba(224, 194, 136, .25), inset 0 0 26px rgba(0, 0, 0, .75);
    transition: transform 3.6s cubic-bezier(.12, .72, .05, 1);
    background: conic-gradient(
        #3b2c13 0deg 32.7deg, #151b28 32.7deg 65.4deg, #3b2c13 65.4deg 98.1deg,
        #151b28 98.1deg 130.8deg, #3b2c13 130.8deg 163.5deg, #151b28 163.5deg 196.2deg,
        #3b2c13 196.2deg 228.9deg, #151b28 228.9deg 261.6deg, #3b2c13 261.6deg 294.3deg,
        #151b28 294.3deg 327deg, #3b2c13 327deg 360deg);
}
.wheel-pointer {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    z-index: 2; color: var(--gold-100);
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .8));
}
.wheel-pointer .ic { width: 26px; height: 26px; }
.wheel-hub {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 84px; height: 84px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 35% 30%, rgba(40, 46, 63, .95), rgba(6, 8, 13, .97));
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow-2);
}
.wheel-hub .ic { width: 30px; height: 30px; color: var(--gold-200); }

/* ------------------------------------------------------------- 18. Чат */
.chat-list { display: flex; flex-direction: column; gap: 7px; }
.chat-msg {
    padding: 8px 11px; font-size: 13px;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: var(--r-sm);
}
.chat-msg.me {
    border-color: var(--line-2);
    background: linear-gradient(180deg, rgba(224, 194, 136, .13), rgba(224, 194, 136, .05));
}
.chat-msg .who {
    font-family: Cinzel, serif; font-size: 11px; letter-spacing: .05em;
    color: var(--gold-200);
}
.chat-msg .at { float: right; font-size: 10px; color: var(--text-3); }
.chat-form {
    display: flex; gap: 8px; align-items: center;
    padding: 9px 11px calc(9px + var(--safe-bottom));
    background: rgba(3, 4, 8, .95);
    border-top: 1px solid var(--line);
}
.chat-form input { flex: 1; }
.chat-form .btn { width: auto; padding: 11px 14px; }

/* ------------------------------------------------- 19. Модальные окна */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 60;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    background: rgba(2, 3, 6, .72);
    backdrop-filter: blur(5px);
    animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
    position: relative; width: 100%; max-width: 420px;
    max-height: 86vh; overflow-y: auto; padding: 18px 17px 19px;
    background: linear-gradient(180deg, rgba(16, 20, 30, .93), rgba(9, 11, 17, .95));
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line-2);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255, 255, 255, .07);
    animation: popIn .22s cubic-bezier(.2, .9, .3, 1.1);
}
@keyframes popIn { from { transform: scale(.93); opacity: .3; } to { transform: none; opacity: 1; } }
.modal h2 {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    margin-bottom: 12px;
    font-size: 15px; letter-spacing: .09em; text-transform: uppercase;
    color: var(--gold-100); text-align: center;
}
.modal h2 .ic { width: 20px; height: 20px; color: var(--gold-200); }
.modal .close-x {
    position: absolute; top: 12px; right: 12px;
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    background: rgba(255, 255, 255, .06); color: var(--text-2);
    border: 1px solid rgba(255, 255, 255, .08);
}
.modal .close-x:active { transform: scale(.93); }

.reward-line {
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
    font-size: 15px; color: var(--gold-100);
}
.reward-line .val .ic { width: 17px; height: 17px; }

/* ----------------------------------------------------------- 20. Тосты */
.toasts {
    position: fixed; left: 0; right: 0; top: calc(9px + var(--safe-top));
    z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 7px;
    pointer-events: none;
}
.toast {
    display: flex; align-items: center; gap: 8px;
    max-width: 88%; padding: 10px 15px;
    background: linear-gradient(180deg, rgba(16, 20, 30, .97), rgba(9, 11, 17, .97));
    border: 1px solid var(--line-2);
    border-radius: var(--r-pill);
    box-shadow: var(--shadow-2);
    font-size: 13px; text-align: center;
    animation: toastIn .24s cubic-bezier(.2, .9, .3, 1.1);
}
.toast .ic { width: 16px; height: 16px; flex: none; color: var(--gold-200); }
.toast.error { border-color: var(--red-dim); }
.toast.error .ic { color: #ef9c92; }
.toast.success { border-color: var(--green-dim); }
.toast.success .ic { color: #8fd694; }
@keyframes toastIn { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* --------------------------------------------------------- 21. Загрузка */
.loader { padding: 26px 0; display: flex; flex-direction: column; gap: 11px; }
.sk {
    height: 14px; border-radius: 7px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .04) 25%,
                rgba(255, 255, 255, .09) 37%, rgba(255, 255, 255, .04) 63%);
    background-size: 400% 100%;
    animation: shimmer 1.3s ease-in-out infinite;
}
.sk.lg { height: 92px; border-radius: var(--r-md); }
.sk.sm { height: 11px; width: 60%; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ----------------------------------------------------------- 22. Адаптив */
@media (max-height: 720px) {
    .circle { width: 82px; height: 82px; font-size: 9px; gap: 3px; }
    .circle .ic { width: 21px; height: 21px; }
    .circle-col { gap: 9px; }
    .big-btn .label { font-size: 14.5px; }
    .avatar { min-height: 136px; }
    .auth-logo { font-size: 26px; }
}
/* невысокие экраны: название в общем потоке, страница скроллится */
@media (max-height: 660px) {
    .auth-wrap { justify-content: flex-start; }
    .auth-logo { position: static; margin: 12px 0 16px; font-size: 24px; }
    .auth-card { margin: 0 0 12px; }
}

@media (max-width: 370px) {
    .circle { width: 78px; height: 78px; }
    .market-item { font-size: 11.5px; }
    .hud-name .nick { max-width: 104px; }
}
@media (min-width: 560px) {
    .app { box-shadow: 0 0 80px rgba(0, 0, 0, .8); }
}

/* ------------------------------------------------- предметы с артом */
.item-thumb {
    width: 46px; height: 46px; flex: none;
    border-radius: 9px; object-fit: cover; display: block;
    border: 1px solid var(--line);
    background: rgba(4, 6, 11, .7);
    box-shadow: inset 0 0 12px rgba(0, 0, 0, .6);
}
.item-thumb.sm { width: 30px; height: 30px; border-radius: 7px; }
.item-thumb.xs { width: 22px; height: 22px; border-radius: 6px; }
.item-thumb.lg { width: 64px; height: 64px; border-radius: 11px; }

/* строка витрины: арт — описание — цена и кнопка */
.shop-row {
    display: grid; grid-template-columns: 46px 1fr auto;
    gap: 11px; align-items: center;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, .05);
}
.shop-row:first-of-type { border-top: 0; }
.shop-row .name {
    font-family: Cinzel, serif; font-size: 13px; letter-spacing: .02em;
}
.shop-row .meta { font-size: 10.5px; color: var(--text-3); margin-top: 1px; }
.shop-row .bonus { font-size: 11.5px; margin-top: 4px; }
.shop-row .buy { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.shop-row .price { font-size: 12px; white-space: nowrap; }
.shop-row.locked { opacity: .55; }

/* заголовок комплекта */
.set-head {
    display: flex; align-items: center; gap: 10px;
    padding-bottom: 9px; margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
}
.set-head .set-title {
    font-family: Cinzel, serif; font-size: 13.5px; letter-spacing: .06em;
    text-transform: uppercase;
}
.set-head .set-sub { font-size: 10.5px; color: var(--text-3); margin-top: 2px; }

/* слот с артом надетой вещи */
.slot .slot-art, .gear-slot .slot-art {
    width: 22px; height: 22px; border-radius: 6px; object-fit: cover;
    border: 1px solid var(--line);
}
.gear-slot .slot-art { width: 30px; height: 30px; border-radius: 7px; }

/* ------------------------------------------------------- аватары героя */
.avatar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.avatar-tile {
    position: relative; cursor: pointer;
    border-radius: var(--r-md); overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(6, 8, 13, .8);
    box-shadow: var(--shadow-1);
    transition: transform .1s ease, border-color .2s ease, box-shadow .2s ease;
}
.avatar-tile:active { transform: scale(.98); }
.avatar-tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.avatar-tile .caption {
    position: absolute; inset: auto 0 0 0; padding: 22px 9px 8px;
    background: linear-gradient(0deg, rgba(4, 5, 9, .96), rgba(4, 5, 9, .7) 55%, transparent);
    font-family: Cinzel, serif; font-size: 11px; line-height: 1.2;
    color: var(--text);
}
.avatar-tile .state {
    position: absolute; top: 8px; right: 8px;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 8px; border-radius: var(--r-pill);
    background: rgba(4, 5, 9, .82); border: 1px solid var(--line-2);
    font-size: 10px; color: var(--gold-200);
}
.avatar-tile .state .ic { width: 11px; height: 11px; }
.avatar-tile.current {
    border-color: var(--gold-500);
    box-shadow: var(--shadow-2), var(--glow);
}
.avatar-tile.current .state { border-color: var(--gold-500); color: var(--gold-100); }
.avatar-tile.locked img { filter: grayscale(.55) brightness(.62); }

/* --------------------------------------------- фокус с клавиатуры */
:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 2px;
    border-radius: 6px;
}
.circle:focus-visible, .avatar-tile:focus-visible { outline-offset: 3px; }

/* ----------------------------------------------- отсчёт восстановления в шапке */
.hud-regen {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.regen-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 7px 1px 5px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: rgba(0, 0, 0, .28);
    color: var(--text-3);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
}
.regen-chip svg { width: 11px; height: 11px; opacity: .85; }
.regen-chip b { font-weight: 600; color: var(--text-2); }
.regen-chip.en svg { color: #62bd69; }
.regen-chip.hp svg { color: var(--red); }

/* ------------------------------------------------------- поздравление с уровнем */
.levelup { text-align: center; }
.levelup-badge {
    position: relative;
    width: 76px;
    height: 76px;
    margin: 2px auto 10px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, rgba(224, 194, 136, .3), transparent 70%);
    border: 1px solid var(--line-2);
    box-shadow: var(--glow), inset 0 0 18px rgba(224, 194, 136, .1);
}
.levelup-badge svg {
    position: absolute;
    width: 74px;
    height: 74px;
    color: rgba(224, 194, 136, .2);
}
.levelup-badge b {
    position: relative;
    font-size: 30px;
    line-height: 1;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}
.levelup h2 { justify-content: center; margin-bottom: 4px; }
