/* ============================================================
   Звонок | Генератор номеров — дизайн по референсам Номерка
   ============================================================ */
:root {
    --bg: #000000;
    --card: #1c1c1e;
    --card2: #2c2c2e;
    --card3: #3a3a3c;
    --text: #ffffff;
    --muted: #98989d;
    --muted2: #6b6b70;
    --green: #30d158;
    --green-dark: #24a148;
    --red: #ff375f;
    --orange: #ff9f0a;
    --yellow: #ffd60a;
    --blue: #0a84ff;
    --purple: #bf5af2;
    --teal: #40c8e0;
    --indigo: #5e5ce6;
    --pink: #ff2d55;
    --radius: 16px;
    --nav-h: 64px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.35;
    overscroll-behavior: none;
    -webkit-font-smoothing: antialiased;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    color: inherit;
    cursor: pointer;
}

input,
select {
    font-family: inherit;
}

::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
}

.screen-root {
    padding: 8px 12px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom));
}

.screen {
    animation: fadeIn .18s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Шапка подэкрана ---------- */
.subheader {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px 0 14px;
}

.subheader h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .2px;
}

.back-btn {
    position: absolute;
    left: 0;
    top: 6px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card2);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-btn:active {
    background: var(--card3);
}

/* ---------- Верхняя панель Играть ---------- */
.topbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0 12px;
    min-width: 0;
}

.menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.menu-btn .bars {
    width: 18px;
    height: 12px;
    border-top: 2px solid #fff;
    border-bottom: 2px solid #fff;
    position: relative;
}

.menu-btn .bars::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 3px;
    height: 2px;
    background: #fff;
}

.pill {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--card2);
    border-radius: 22px;
    padding: 7px 10px;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
}

.pill .mini-progress {
    width: 34px;
    height: 5px;
    border-radius: 3px;
    background: #3a3a3c;
    overflow: hidden;
}

.pill .mini-progress i {
    display: block;
    height: 100%;
    background: var(--green);
    border-radius: 3px;
}

.pill .luck-badge {
    background: var(--yellow);
    color: #000;
    border-radius: 10px;
    font-size: 11px;
    padding: 1px 6px;
    font-weight: 800;
}

.balance-box {
    margin-left: auto;
    text-align: right;
}

.balance-box .lbl {
    font-size: 12px;
    color: var(--muted);
}

.balance-box .val {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .2px;
}

/* ---------- Вкладки ---------- */
.tabs-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tab {
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--muted);
    background: transparent;
    position: relative;
}

.tab.active {
    background: var(--card2);
    color: #fff;
}

.tab.gold-tab {
    background: linear-gradient(180deg, #ffd83d, #ffb800);
    color: #1a1a1a;
    margin-left: auto;
    box-shadow: 0 0 18px rgba(255, 190, 0, .35);
}

.tab.gold-tab::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: var(--red);
    border-radius: 50%;
    border: 2px solid #000;
}

/* ---------- Рекламные баннеры ---------- */
.ad-banner {
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 10px;
    position: relative;
    background: linear-gradient(135deg, #3d2410, #241505);
    border: 1px solid rgba(255, 159, 10, .35);
}

.ad-banner .ad-title {
    font-size: 17px;
    font-weight: 800;
}

.ad-banner .ad-sub {
    font-size: 13px;
    color: #c9a06a;
    margin-top: 3px;
}

.ad-banner .ad-mark {
    position: absolute;
    right: 12px;
    bottom: 8px;
    font-size: 10px;
    color: var(--muted2);
    letter-spacing: .5px;
}

.ad-banner.plain {
    background: var(--card);
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ad-banner.plain .ad-emoji {
    font-size: 30px;
}

.ad-banner.plain .ad-title {
    font-size: 15px;
}

/* ---------- Строка редкости ---------- */
.rarity-row {
    background: var(--card);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.rarity-row .rr-left {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.rarity-row .rr-name {
    font-size: 15px;
    font-weight: 700;
}

.rarity-row .rr-dots {
    display: flex;
    gap: 5px;
}

.rarity-row .rr-dots i {
    width: 14px;
    height: 4px;
    border-radius: 2px;
    background: #3a3a3c;
}

.rarity-row .rr-dots i.on {
    background: #d1d1d6;
}

.rarity-row .rr-price {
    font-size: 17px;
    font-weight: 800;
}

/* ---------- Табличка номера ---------- */
/* ---------- Табличка номера + свечение редкости ---------- */
.plate-halo {
    position: relative;
    padding: 16px 0;
    --halo: transparent;
}

.plate-halo::before {
    content: '';
    position: absolute;
    inset: -22px -40px;
    background: radial-gradient(ellipse at center, var(--halo) 0%, transparent 70%);
    opacity: .8;
    pointer-events: none;
}

.plate-halo.halo-uncommon {
    --halo: rgba(48, 209, 88, .55);
}

.plate-halo.halo-rare {
    --halo: rgba(10, 132, 255, .55);
}

.plate-halo.halo-epic {
    --halo: rgba(191, 90, 242, .55);
}

.plate-halo.halo-legendary {
    --halo: rgba(255, 159, 10, .6);
}

.plate-halo.halo-mythic {
    --halo: rgba(255, 45, 85, .6);
}

.plate-halo.halo-divine {
    --halo: rgba(255, 214, 10, .65);
}

.plate-halo.halo-secret {
    --halo: rgba(64, 200, 224, .65);
}

.plate {
    position: relative;
    z-index: 1;
    background: transparent;
    color: #fff;
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
    height: clamp(84px, 27vw, 108px);
}

.plate-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: clamp(18px, 7.5vw, 34px);
    letter-spacing: -.5px;
    padding: 0 6px;
    white-space: nowrap;
    overflow: hidden;
}

.plate-side {
    width: clamp(46px, 15vw, 66px);
    flex: none;
    border-left: 1px solid rgba(255, 255, 255, .25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    background: transparent;
}

.plate-side .ps-code {
    font-size: 21px;
    font-weight: 900;
    line-height: 1;
}

.plate-side .ps-rus {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.plate-side .ps-flag {
    font-size: 15px;
    line-height: 1;
}

.plate.gold-plate {
    background: linear-gradient(160deg, #ffe9a3, #f5c542);
    color: #1a1a1a;
    border: 2px solid #7a5a00;
}

.plate.gold-plate .plate-side {
    border-left: 1px solid #7a5a00;
}

.plate.small {
    height: 60px;
    width: 150px;
    max-width: 150px;
    min-width: 150px;
    flex: none;
}

.plate.small .plate-main {
    font-size: 12px;
    letter-spacing: -.3px;
}

.plate.small .plate-side {
    width: 36px;
    border-left-width: 1px;
}

.plate.small .ps-code {
    font-size: 12px;
}

.plate.small .ps-rus {
    font-size: 7px;
}

.plate.small .ps-flag {
    font-size: 9px;
}

.plate.spin-anim .plate-main {
    animation: shuffleBlur .09s linear infinite;
}

@keyframes shuffleBlur {
    from {
        filter: blur(1.4px);
        transform: scaleY(1.03);
    }

    to {
        filter: blur(.5px);
        transform: scaleY(.99);
    }
}

.plate.settled {
    animation: settlePop .5s cubic-bezier(.18, .9, .28, 1.35);
}

@keyframes settlePop {
    0% {
        transform: scale(.9);
        filter: brightness(1.8) blur(2px);
    }

    55% {
        transform: scale(1.04);
        filter: brightness(1.1);
    }

    100% {
        transform: scale(1);
        filter: none;
    }
}

.plate-pattern {
    text-align: center;
    font-size: 15.5px;
    font-weight: 700;
    color: #e8e8ed;
    margin-bottom: 12px;
}

.plate-pattern .pmult {
    color: var(--green);
    font-weight: 800;
}

/* ---------- Кнопки под табличкой ---------- */
.plate-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.chip-btn {
    background: var(--card2);
    border-radius: 14px;
    padding: 11px 22px;
    font-size: 15px;
    font-weight: 700;
}

.chip-btn.round svg {
    width: 20px;
    height: 20px;
}

.chip-btn.round {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.sell-hint {
    text-align: center;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 14px;
}

/* ---------- Нижние контролы крутки ---------- */
.spin-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.spin-controls .chip-btn {
    flex: 1;
    text-align: center;
    padding: 11px 8px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spin-controls .chip-btn.fixed {
    flex: 0 0 auto;
}

.cta-btn {
    width: 100%;
    border-radius: 18px;
    padding: 16px;
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(180deg, #35d95c, #28b44a);
    box-shadow: 0 6px 24px rgba(48, 209, 88, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cta-btn:active {
    transform: scale(.98);
}

.cta-btn .cta-price {
    background: rgba(0, 0, 0, .28);
    border-radius: 12px;
    padding: 3px 12px;
    font-size: 16px;
    font-weight: 800;
}

.cta-btn.disabled {
    background: var(--card3);
    box-shadow: none;
    color: #b0b0b5;
}

.cta-btn.disabled .cta-price {
    background: rgba(0, 0, 0, .3);
}

/* ---------- Нижняя навигация ---------- */
.bottom-nav {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 456px;
    height: var(--nav-h);
    background: rgba(28, 28, 30, .92);
    backdrop-filter: blur(14px);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 6px;
    z-index: 50;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .6);
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    padding: 8px 0;
    border-radius: 16px;
}

.nav-item .nav-ico {
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item .nav-ico svg {
    width: 22px;
    height: 22px;
    display: block;
}

.nav-item.active {
    background: var(--card2);
    color: #fff;
}

.nav-item.active .nav-ico {
    color: var(--green);
}

/* ---------- Карточки, списки ---------- */
.card {
    background: var(--card);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 10px;
}

.section-h {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 18px 4px 10px;
}

.list-item {
    background: var(--card);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
}

.list-item:active {
    background: var(--card2);
}

.icon-sq {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}

.icon-sq svg {
    width: 24px;
    height: 24px;
    display: block;
}

.icon-sq.big {
    width: 54px;
    height: 54px;
    font-size: 26px;
    border-radius: 16px;
}

.icon-sq.big svg {
    width: 30px;
    height: 30px;
}

.li-body {
    flex: 1;
    min-width: 0;
}

.li-title {
    font-size: 16px;
    font-weight: 700;
}

.li-sub {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
}

.li-right {
    color: var(--muted);
    font-size: 13px;
    text-align: right;
    flex: none;
}

/* ---------- Ещё: карточка уровня ---------- */
.level-card {
    display: flex;
    align-items: center;
    gap: 14px;
}

.level-ring {
    position: relative;
    width: 64px;
    height: 64px;
    flex: none;
}

.level-ring svg {
    transform: rotate(-90deg);
}

.level-ring .ring-num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
}

.level-card .lc-mid {
    flex: 1;
}

.level-card .lc-title {
    font-size: 19px;
    font-weight: 800;
}

.level-card .lc-sub {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
}

.level-card .lc-right {
    text-align: right;
}

.level-card .lc-right .lbl {
    font-size: 12px;
    color: var(--muted);
}

.level-card .lc-right .val {
    font-size: 19px;
    font-weight: 800;
}

/* ---------- Поиск ---------- */
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card);
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 14px;
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 15px;
}

.search-box input::placeholder {
    color: var(--muted2);
}

.search-box .ico {
    color: var(--muted);
    display: flex;
    align-items: center;
}

.search-box .ico svg {
    width: 18px;
    height: 18px;
}

/* ---------- Сетка быстрых действий ---------- */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.quick-item {
    background: var(--card);
    border-radius: var(--radius);
    padding: 12px 4px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.quick-item:active {
    background: var(--card2);
}

.quick-item .icon-sq {
    width: 44px;
    height: 44px;
    font-size: 20px;
    border-radius: 13px;
}

.quick-item .q-label {
    font-size: 12px;
    font-weight: 600;
    color: #e8e8ed;
    text-align: center;
}

.quick-item .q-badge {
    position: absolute;
    top: 6px;
    right: 10px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid #000;
}

/* ---------- Магазин (оранжевая карточка) ---------- */
.shop-card {
    border-radius: 22px;
    padding: 18px;
    margin-bottom: 14px;
    position: relative;
    background: linear-gradient(135deg, #ffc94d 0%, #ff9d2e 55%, #ff8a00 100%);
    color: #1a1a1a;
    box-shadow: 0 8px 30px rgba(255, 150, 0, .25);
}

.shop-card .sc-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.shop-card .sc-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex: none;
}

.shop-card .sc-title {
    font-size: 24px;
    font-weight: 900;
}

.shop-card .sc-sub {
    font-size: 14px;
    font-weight: 600;
    margin-top: 2px;
}

.shop-card .sc-open {
    margin-left: auto;
    background: #1a1a1a;
    color: #ffb340;
    font-weight: 800;
    font-size: 15px;
    border-radius: 14px;
    padding: 11px 20px;
    flex: none;
}

.shop-card .sc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.shop-card .sc-chip {
    background: rgba(255, 255, 255, .5);
    border-radius: 12px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
}

/* ---------- Сетки 2 колонки ---------- */
.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.tile {
    background: var(--card);
    border-radius: 20px;
    padding: 16px;
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 108px;
}

.tile:active {
    background: var(--card2);
}

.tile .t-title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
}

.tile .t-sub {
    font-size: 13px;
    color: var(--muted);
}

.tile.wide {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 14px;
}

.tile.wide .t-body {
    flex: 1;
}

/* ---------- Рынок ---------- */
.seg-row {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.seg {
    padding: 9px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
}

.seg.active {
    background: var(--card2);
    color: #fff;
}

.chips-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 10px;
    padding-bottom: 2px;
}

.chips-row::-webkit-scrollbar {
    display: none;
}

.f-chip {
    padding: 9px 15px;
    border-radius: 20px;
    background: var(--card);
    color: #d1d1d6;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
}

.f-chip.active {
    background: #fff;
    color: #000;
    font-weight: 700;
}

.f-chip .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: 1px;
}

.lot {
    background: var(--card);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.lot .buy-btn {
    flex: none;
    padding: 10px 13px;
}

.lot .lot-mid {
    flex: 1;
    min-width: 0;
}

.lot .lot-price {
    font-size: 17px;
    font-weight: 800;
}

.lot .lot-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.lot .top-badge {
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    border-radius: 8px;
    padding: 2px 7px;
}

.lot .rar-name {
    font-size: 13px;
    font-weight: 700;
}

.lot .lot-info {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 4px;
}

.lot .lot-seller {
    font-size: 12px;
    color: var(--muted2);
    margin-top: 2px;
}

.buy-btn {
    background: var(--green);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    border-radius: 12px;
    padding: 10px 16px;
    flex: none;
}

.buy-btn:active {
    filter: brightness(.9);
}

.buy-btn.gray {
    background: var(--card3);
}

/* ---------- Друзья ---------- */
.friends-hero {
    text-align: center;
    padding: 26px 18px;
}

.friends-hero .fh-icon {
    font-size: 54px;
    line-height: 1;
}

.friends-hero .fh-svg {
    color: #3b9eff;
    margin-bottom: 12px;
}

.friends-hero .fh-svg svg {
    width: 64px;
    height: 64px;
}

.friends-hero .fh-title {
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 10px;
}

.friends-hero .fh-sub {
    font-size: 15px;
    color: #c7c7cc;
}

.friends-hero .fh-fire {
    font-size: 15px;
    color: var(--orange);
    font-weight: 600;
    margin-top: 10px;
}

.reward-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border-bottom: 1px solid #2a2a2c;
    font-size: 14.5px;
}

.reward-row:last-child {
    border-bottom: none;
}

.reward-row .rr-text {
    flex: 1;
}

.reward-row .rr-reward {
    color: var(--muted);
    text-align: right;
    font-size: 13.5px;
}

.invite-btn {
    width: 100%;
    margin-top: 12px;
}

/* ---------- Модалки / шиты ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn .15s ease;
}

.modal-sheet {
    background: #1f1f22;
    border-radius: 22px 22px 0 0;
    width: 100%;
    max-width: 480px;
    padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
    max-height: 86vh;
    overflow-y: auto;
    animation: slideUp .22s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(60px);
        opacity: .4;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

.modal-center .modal-sheet {
    border-radius: 22px;
    max-width: 400px;
    margin: auto 16px;
}

.modal-title {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 14px;
    text-align: center;
}

.modal-close {
    position: absolute;
}

.sheet-handle {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: #3a3a3c;
    margin: 0 auto 14px;
}

/* ---------- Формы ---------- */
.field {
    margin-bottom: 12px;
}

.field label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    background: var(--card2);
    border: none;
    border-radius: 12px;
    padding: 12px 14px;
    color: #fff;
    font-size: 15px;
    outline: none;
}

.field input:focus {
    box-shadow: 0 0 0 2px var(--green);
}

.btn {
    width: 100%;
    border-radius: 14px;
    padding: 14px;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    background: var(--card2);
}

.btn.green {
    background: linear-gradient(180deg, #35d95c, #28b44a);
}

.btn.red {
    background: var(--red);
}

.btn.gray {
    background: var(--card3);
}

.btn:disabled {
    opacity: .55;
    filter: grayscale(.5);
}

.btn-row {
    display: flex;
    gap: 8px;
}

.btn-row .btn {
    flex: 1;
}

/* ---------- Тосты ---------- */
#toast-root {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    width: max-content;
    max-width: 90vw;
}

.toast {
    background: #2c2c2e;
    color: #fff;
    border-radius: 14px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
    animation: toastIn .25s ease;
    text-align: center;
}

.toast.green {
    background: #1d7a37;
}

.toast.red {
    background: #a12b44;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Колесо ---------- */
.wheel-wrap {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 10px auto;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 6px solid #3a3a3c;
    transition: transform 3.4s cubic-bezier(.15, .8, .2, 1);
}

.wheel .sector {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 50%;
    height: 50%;
    transform-origin: 0 0;
}

.wheel-pointer {
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 26px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6));
}

.wheel-label {
    position: absolute;
    left: 58%;
    top: 50%;
    transform-origin: 0 0;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

/* ---------- Кубики ---------- */
.dice-row {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 18px 0;
}

.dice {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #fff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 900;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
}

.dice.rolling {
    animation: shake .4s infinite;
}

@keyframes shake {

    0%,
    100% {
        transform: rotate(0);
    }

    25% {
        transform: rotate(12deg);
    }

    75% {
        transform: rotate(-12deg);
    }
}

/* ---------- Гонки ---------- */
.race-track {
    background: var(--card2);
    border-radius: 14px;
    padding: 10px 12px;
    margin-bottom: 8px;
    position: relative;
    height: 46px;
}

.race-track .runner {
    position: absolute;
    top: 6px;
    font-size: 22px;
    transition: left 2.6s cubic-bezier(.2, .7, .3, 1);
}

.race-track .finish {
    position: absolute;
    right: 8px;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: repeating-linear-gradient(45deg, #fff 0 6px, #000 6px 12px);
}

/* ---------- Прогресс-бары ---------- */
.progress {
    height: 8px;
    border-radius: 4px;
    background: #3a3a3c;
    overflow: hidden;
}

.progress i {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: var(--green);
    transition: width .3s;
}

.progress.orange i {
    background: var(--orange);
}

.progress.blue i {
    background: var(--blue);
}

/* ---------- Разное ---------- */
.row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spacer {
    flex: 1;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 13px;
}

.center {
    text-align: center;
}

.mt8 {
    margin-top: 8px;
}

.mt12 {
    margin-top: 12px;
}

.mt16 {
    margin-top: 16px;
}

.mb8 {
    margin-bottom: 8px;
}

.mb12 {
    margin-bottom: 12px;
}

.bold {
    font-weight: 800;
}

.money {
    font-weight: 800;
}

.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 40px 20px;
    font-size: 15px;
}

.empty-state .es-ico {
    font-size: 44px;
    margin-bottom: 10px;
}

.countdown {
    font-variant-numeric: tabular-nums;
}

.badge-star {
    color: var(--yellow);
    font-weight: 800;
}

.rar-chip {
    font-size: 12px;
    font-weight: 800;
    border-radius: 8px;
    padding: 2px 8px;
    display: inline-block;
}

.divider {
    height: 1px;
    background: #2a2a2c;
    margin: 4px 0;
}

.version-note {
    text-align: center;
    color: var(--muted2);
    font-size: 12px;
    padding: 16px 0 4px;
}

/* Контейнеры-призы */
.prize-pop {
    text-align: center;
    padding: 10px 0 4px;
}

.prize-pop .pp-ico {
    font-size: 52px;
}

.prize-pop .pp-title {
    font-size: 20px;
    font-weight: 800;
    margin: 8px 0 4px;
}

.prize-pop .pp-sub {
    color: var(--muted);
    font-size: 14px;
}

/* Список результатов мульти-крутки */
.spin-result-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 46vh;
    overflow-y: auto;
}

.spin-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card2);
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 14px;
}

.spin-result-item .srr-name {
    flex: 1;
    font-weight: 700;
}

.spin-result-item .srr-price {
    font-weight: 800;
}

@media (max-width: 370px) {
    .pill {
        padding: 6px 8px;
        font-size: 11.5px;
    }

    .balance-box .val {
        font-size: 16px;
    }

    .balance-box .lbl {
        font-size: 11px;
    }

    .tab {
        padding: 9px 13px;
        font-size: 14px;
    }

    .cta-btn {
        font-size: 17px;
    }

    .cta-btn .cta-price {
        font-size: 14px;
    }

    .quick-item .q-label {
        font-size: 11px;
    }
}

@media (min-width: 481px) {
    body {
        background: #0a0a0a;
    }

    .app {
        box-shadow: 0 0 60px rgba(0, 0, 0, .8);
        min-height: 100vh;
        background: #000;
    }
}