:root {
    --bg-dark: #090011;
    --bg-deep: #140021;
    --primary: #ff3bd4;
    --primary-dark: #b30086;
    --secondary: #4de3ff;
    --gold: #ffd36a;
    --gold-strong: #ffb800;
    --danger: #ff4d6d;
    --success: #34ff9c;
    --text-white: #ffffff;
    --text-soft: rgba(255,255,255,0.78);
    --panel-bg: rgba(255,255,255,0.06);
    --panel-border: rgba(255,255,255,0.14);
    --shadow-pink: 0 0 25px rgba(255, 59, 212, 0.28);
    --shadow-blue: 0 0 25px rgba(77, 227, 255, 0.22);
    --shadow-gold: 0 0 25px rgba(255, 211, 106, 0.30);
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    user-select: none; 
}

body {
    font-family: 'Russo One', sans-serif;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 75, 145, 0.20) 0%, transparent 22%),
        radial-gradient(circle at 85% 15%, rgba(77, 227, 255, 0.16) 0%, transparent 20%),
        radial-gradient(circle at 50% 80%, rgba(255, 211, 106, 0.10) 0%, transparent 25%),
        linear-gradient(135deg, #120018 0%, #090011 45%, #040008 100%);
    color: var(--text-white);
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.35;
    background-image:
        radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px);
    background-size: 32px 32px;
    animation: moveStars 18s linear infinite;
}

@keyframes moveStars {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-32px);
    }
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,0.02), rgba(255,255,255,0.01)),
        radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.45) 100%);
    z-index: -1;
    pointer-events: none;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.screen {
    display: none;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}
.screen.active { 
    display: flex; 
    animation: fadeIn 0.5s ease; 
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* HEADER */
.header-bar,
.game-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border-radius: 20px;
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-pink), inset 0 1px 0 rgba(255,255,255,0.08);
}

.logo {
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: 1px;
    flex: 0 0 auto;
    background: linear-gradient(90deg, var(--gold), #fff1a8, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 18px rgba(255, 211, 106, 0.22);
}
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}


.balance-container {
    background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 211, 106, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    box-shadow: var(--shadow-gold);
    transition: all 0.3s;
    white-space: nowrap;
    flex: 0 0 auto;
}

.gem-icon { 
    font-size: 18px; 
    filter: drop-shadow(0 0 5px var(--secondary)); 
}

/* Анимации баланса */
.balance-pop {
    animation: popEffect 0.4s ease-out;
    color: #00ff88 !important;
    border-color: #00ff88 !important;
}

.balance-loss {
    animation: shakeEffect 0.3s ease-out;
    color: #ff4444 !important;
    border-color: #ff4444 !important;
}

@keyframes popEffect {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); text-shadow: 0 0 10px #00ff88; }
    100% { transform: scale(1); }
}

@keyframes shakeEffect {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* LOBBY */
.section-title {
    text-align: center;
    margin-bottom: 18px;
    color: var(--gold);
    font-size: 28px;
    letter-spacing: 1px;
    text-shadow: 0 0 14px rgba(255, 211, 106, 0.35);
}

.games-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 15px; 
    width: 100%; 
}

.game-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.14);
    transition: 0.25s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}

.game-card:hover {
    border-color: rgba(255, 211, 106, 0.65);
    transform: translateY(-4px) scale(1.015);
    box-shadow:
        0 14px 34px rgba(0,0,0,0.30),
        0 0 24px rgba(255, 211, 106, 0.20);
}

.card-image {
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    display: none;
}

.card-content {
    padding: 14px 12px 16px;
    text-align: center;
}

.card-content h3 {
    font-size: 20px;
    margin-bottom: 6px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.12);
}
.card-content p {
    color: var(--text-soft);
    font-size: 14px;
}

.btn-refill { 
    margin-top: 20px; 
    background: transparent; 
    border: 1px dashed rgba(255,255,255,0.3); 
    color: #fff; 
    padding: 10px; 
    border-radius: 10px; 
    cursor: pointer; 
    width: 100%; 
    transition: 0.2s;
}

.btn-refill:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

.btn-support {
    display: block;
    margin-top: 15px;
    text-align: center;
    color: #ff5e00;
    text-decoration: none;
    font-weight: bold;
    padding: 10px;
    border: 1px solid #ff5e00;
    border-radius: 10px;
    transition: 0.2s;
    width: 100%;
}

.btn-support:hover {
    background: rgba(255, 94, 0, 0.1);
    box-shadow: 0 0 10px rgba(255, 94, 0, 0.3);
}

/* GAME GRID 5x4 */
/* Контейнер всего слота */
.slot-container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 22px;
    position: relative;
    border-radius: 28px;
    overflow: hidden;

    background:
        linear-gradient(180deg, #1b1e4a, #0c0f2e) padding-box,
        linear-gradient(145deg, #ffd76a, #ffb347, #fff2a8) border-box;

    border: 4px solid transparent;

    box-shadow:
        0 20px 50px rgba(0,0,0,0.6),
        0 0 40px rgba(255, 200, 80, 0.25),
        inset 0 0 20px rgba(255, 230, 150, 0.1);
}
.slot-container::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 20px;
    border: 1px solid rgba(255, 240, 180, 0.35);
    pointer-events: none;
}

.slot-container::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 28px;
    pointer-events: none;
    box-shadow:
        inset 0 0 24px rgba(255, 211, 106, 0.08),
        inset 0 -20px 40px rgba(0,0,0,0.25);
}

.slot-container.win-pulse {
    animation: borderPulse 1s infinite alternate;
}

@keyframes borderPulse {
    from { box-shadow: 0 0 20px rgba(255, 0, 222, 0.4), 0 0 40px rgba(0, 242, 255, 0.2); }
    to { box-shadow: 0 0 30px rgba(255, 0, 222, 0.8), 0 0 60px rgba(0, 242, 255, 0.5); }
}

.slot-title { 
    font-size: 24px; 
    margin-bottom: 15px; 
    color: var(--gold); 
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Сетка 5x5 */
.grid-wrapper {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 14px;
    border-radius: 22px;

    background:
        radial-gradient(circle at top center, rgba(120,180,255,0.15), transparent 30%),
        linear-gradient(180deg, #1a3a8f, #0c1c55);

    border: 2px solid rgba(255, 230, 160, 0.22);

    box-shadow:
        inset 0 0 40px rgba(0,0,0,0.5),
        inset 0 10px 25px rgba(255,255,255,0.05);
}
.grid-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.15),
        transparent
    );
    pointer-events: none;
}
.grid-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.15),
        transparent
    );
    pointer-events: none;
}
/* Сама ячейка с картинкой */
.cell {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
        rgba(18, 10, 36, 0.82);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow:
        inset 0 0 12px rgba(255,255,255,0.04),
        0 4px 10px rgba(0,0,0,0.16);
    transition: transform 0.2s, box-shadow 0.2s;
    transform-origin: center bottom;
}
.cell:hover {
    transform: translateY(-3px);
    box-shadow:
        0 6px 15px rgba(0,0,0,0.3),
        0 0 10px rgba(255,255,255,0.1);
}
/* Картинка внутри ячейки */
.cell img {
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: none;
}

.cell::after {
    content: attr(data-multiplier);
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(255, 215, 0, 0.9);
    color: #000;
    font-weight: bold;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 5px;
    z-index: 2;
    display: none;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.cell[data-multiplier]:not([data-multiplier=""])::after {
    display: block;
}

.blur-effect { filter: blur(3px); }

.message-box { 
    height: 30px; 
    font-size: 18px; 
    margin-bottom: 15px; 
    color: var(--secondary); 
    font-weight: bold; 
    text-shadow: 0 0 5px rgba(0, 242, 255, 0.5);
}

.controls {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.spin-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.btn-spin {
    padding: 14px 22px;
    border: none;
    border-radius: 14px;
    color: white;
    font-family: inherit;
    font-size: 18px;
    cursor: pointer;
    transition: 0.18s ease;
    min-width: 140px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    color: #1b1200;
    box-shadow: 0 6px 0 #a56e00, var(--shadow-gold);
}
/* MODAL WIN */
.modal {
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.9); 
    z-index: 100; 
    justify-content: center; 
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal.active { 
    display: flex; 
    animation: fadeIn 0.3s; 
}

.modal-content {
    background:
        radial-gradient(circle at top, rgba(255,255,255,0.08), transparent 40%),
        linear-gradient(135deg, #2a063d, #12001f 70%);
    padding: 34px;
    border-radius: 24px;
    text-align: center;
    border: 2px solid rgba(255, 211, 106, 0.75);
    box-shadow: 0 0 60px rgba(255, 211, 106, 0.30), 0 0 30px rgba(255, 59, 212, 0.20);
    transform: scale(0.8);
    animation: popIn 0.5s forwards;
}

@keyframes popIn { 
    to { transform: scale(1); } 
}

.win-title { 
    font-size: 40px; 
    color: #fff; 
    text-shadow: 2px 2px 0 #000; 
    margin-bottom: 10px; 
}

.win-amount { 
    font-size: 60px; 
    color: var(--gold); 
    text-shadow: 0 0 20px rgba(255,215,0,0.8); 
    font-weight: bold; 
}

.win-subtitle { 
    font-size: 20px; 
    color: #fff; 
    margin-bottom: 20px; 
}

.btn-collect { 
    background: var(--gold); 
    color: #000; 
    border: none; 
    padding: 10px 30px; 
    font-size: 20px; 
    border-radius: 50px; 
    cursor: pointer; 
    font-weight: bold; 
    transition: 0.2s;
}
/* Бонус панель */
.bonus-panel {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid #00ff88;
    border-radius: 15px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

.btn-bonus {
    background: #00ff88;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    font-family: inherit;
}

.btn-bonus:disabled {
    background: #555;
    color: #aaa;
    cursor: not-allowed;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}


/* Адаптивность для мобильных */
/* Для экранов меньше 600px (мобильные) */
@media (max-width: 600px) {
    .slot-container {
        max-width: 95%; /* Почти на всю ширину экрана */
        padding: 10px;
    }
    
    .grid-wrapper {
        gap: 4px; /* Уменьшаем расстояние между картинками */
        padding: 5px;
    }
    
    .cell {
        border-radius: 4px;
    }
}
.tabs-shell {
    width: 100%;
    max-width: 560px; /* 👈 ограничиваем */
    margin: 0 auto 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
@media (max-width: 600px) {
    .tabs-shell {
        max-width: 100%;
    }
}

.tabs-shell::before,
.tabs-shell::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 18px;
    z-index: 2;
    pointer-events: none;
}

.tabs-shell::before {
    left: 0;
    background: linear-gradient(to right, rgba(20, 0, 33, 0.95), rgba(20, 0, 33, 0));
}

.tabs-shell::after {
    right: 0;
    background: linear-gradient(to left, rgba(20, 0, 33, 0.95), rgba(20, 0, 33, 0));
}

.tabs-nav {
    display: flex;
    gap: 8px;
    padding: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
}

.tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: rgba(255,255,255,0.04);
    color: var(--text-soft);
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    transition: 0.25s ease;
    scroll-snap-align: start;
}


@media (max-width: 600px) {
    .tabs-shell {
        border-radius: 16px;
    }

    .tabs-nav {
        padding: 7px;
        gap: 7px;
    }

    .tab-btn {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 11px;
        border-radius: 10px;
    }
}
.btn-claim-bonus:disabled { background: #555; color: #aaa; cursor: not-allowed; }

.vip-card {
    border: 2px solid #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    margin-top: 15px;
    cursor: pointer;
}
.vip-card:hover { transform: scale(1.02); }

.coming-soon-block {
    margin-top: 20px;
    opacity: 0.7;
}

.btn-soon {
    background: transparent;
    border: 1px dashed #aaa;
    color: #aaa;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: default;
}

.btn-reset-vip {
    margin-top: 30px;
    background: transparent;
    border: none;
    color: #555;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
}

/* === СТИЛИ ДЛЯ СЛОТА RONALDO === */
.ronaldo-bg {
    /* Убедись, что путь совпадает с тем, где лежат твои фото */
    background: url('image/ronaldo/1.jpg') center/cover no-repeat;
}

/* Золотая рамка для VIP-карточки */
.vip-card {
    border: 2px solid #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    transition: transform 0.2s;
}

.vip-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
}



.spin-limit-display {
    background: rgba(0,0,0,0.5);
    padding: 5px 10px;
    border-radius: 10px;
    display: inline-block;
}


#ronaldo-win-limit-display {
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}


/* === СЕТКА ТАРИФОВ === */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.pricing-card {
    background: rgba(20, 20, 20, 0.95);
    border: 2px solid #444;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    border-color: #fff;
}       

.active-card {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    border-color: gold !important;
    transform: scale(1.02);
}

.card-header {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    color: #000;
}

.card-header h3 { margin: 0; font-size: 20px; }
.price-tag { font-size: 24px; font-weight: 800; margin-top: 5px; }
.price {
    font-size: 20px;
    margin-top: 5px;
    font-weight: 800;
}

.card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.perks-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    font-size: 14px;
    text-align: left;
}

.perks-list li {
    margin-bottom: 8px;
    color: #ddd;
    display: flex;
    align-items: center;
}

.perks-list li::before {
    content: "✔";
    color: #00ff88;
    margin-right: 8px;
    font-weight: bold;
}

.btn-buy-vip {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, #ffd700, #ffaa00);
    color: #000;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: filter 0.2s;
}

.btn-buy-vip:hover { filter: brightness(1.1); }


.vip-info-box {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid #ffd700;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.btn-back-to-store {
    background: transparent;
    border: 1px solid #555;
    color: #aaa;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}
.btn-back-to-store:hover { border-color: #fff; color: #fff; }

/* Адаптив */
@media (max-width: 600px) {
    .pricing-grid { grid-template-columns: 1fr; }
}

.btn-buy-level {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: linear-gradient(to right, #00ff88, #00cc6a);
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-buy-level:hover {
    opacity: 0.9;
}

.btn-current-level {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: #555;
    color: #fff;
    font-weight: bold;
    cursor: default;
}

.btn-locked-level {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: #333;
    color: #888;
    font-weight: bold;
    cursor: not-allowed;
}

/* === СЕТКА СЛОТОВ ВНУТРИ VIP === */
.vip-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.mini-slot-card {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 5px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
}

.mini-slot-card:hover {
    background: rgba(255,255,255,0.15);
}

.mini-img {
    height: 60px;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    margin-bottom: 5px;
}

/* Адаптив для мобильных */
@media (max-width: 600px) {
    .pricing-grid {
        grid-template-columns: 1fr; /* Одна колонка на телефоне */
    }
}





/* === ОБЩИЕ КНОПКИ НАЗАД === */
.btn-back-game {
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 100;
    padding: 15px 25px; /* Было 10px 20px */
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid #fff;
    color: #fff;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.btn-back-game:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}
@media (max-width: 768px) {
    .mines-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .mines-controls-panel {
        width: 100%;
        padding: 20px;
    }

    .mines-grid-container {
        max-width: 100%;
        gap: 8px;
        padding: 10px;
    }

    .mine-cell {
        font-size: 32px;
        border-radius: 10px;
    }

    .balance-display-top {
        font-size: 24px;
        padding: 10px 20px;
    }

    .current-win-display {
        font-size: 20px;
        padding: 10px 15px;
    }

    .btn-cashout-mines,
    .btn-start-mines {
        padding: 15px;
        font-size: 20px;
    }

    #mines-bet-input {
        padding: 12px;
        font-size: 20px;
    }

    .btn-action {
        padding: 10px;
        font-size: 16px;
    }

    .btn-mine-count {
        padding: 12px 0;
        font-size: 16px;
    }

    .info-row {
        font-size: 16px;
    }

    .game-title-mines {
        font-size: 28px;
    }

    .btn-back-game {
        padding: 10px 15px;
        font-size: 16px;
        top: 15px;
        left: 15px;
    }
}





.mine-cell:hover {
    background: #444;
}





.rocket-body {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;         /* 👈 Меньше, чем у пилота */
    filter: drop-shadow(0 0 10px rgba(255, 100, 0, 0.5));
}


@keyframes fireFlicker {
    0% { transform: translateX(-50%) scale(1); height: 30px; }
    100% { transform: translateX(-50%) scale(1.3); height: 40px; }
}



.btn-crash-start {
    background: linear-gradient(to bottom, #00ff88, #00cc6a);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    color: #000;
}

@keyframes pulseMultiplier {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#multiplier-display.crashing {
    color: #ff4444 !important;
    text-shadow: 0 0 20px #ff0000 !important;
    animation: shake 0.5s infinite;
}

#multiplier-display.winning {
    color: #00ff88 !important;
    text-shadow: 0 0 20px #00ff00 !important;
}

/* Пилот (Мелстрой) */
#pilot-jet {
    transition: all 0.1s linear;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* Траектория */
#flight-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 0.1s linear;
}




/* === ЧАСТИЦЫ ДВИГАТЕЛЯ (МОНЕТЫ, ГЕМЫ, ОГОНЬ, КУБОК) === */
.particle {
    position: absolute;
    width: 18px;       /* 👈 Размер частиц (маленькие) */
    height: 18px;
    background-size: contain; /* Вписывает картинку целиком */
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 1;
    animation: fallDown 1.2s forwards;
}

@keyframes fallDown {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(100px) scale(0.5); }
}

/* Привязка картинок к классам */
.coin { background-image: url('image/coin.png'); }
.gem-particle { background-image: url('image/gem_particle.png'); }
.fire-particle { background-image: url('image/fire_particle.png'); }
.trophy { background-image: url('image/trophy.png'); }

/* Анимации текста множителя */
#multiplier-display.crashing {
    color: #ff4444 !important;
    text-shadow: 0 0 20px #ff0000 !important;
    animation: shake 0.5s infinite;
}

#multiplier-display.winning {
    color: #00ff88 !important;
    text-shadow: 0 0 20px #00ff00 !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(-50%) translateX(0); }
    25% { transform: translateX(-50%) translateX(-5px); }
    75% { transform: translateX(-50%) translateX(5px); }
}


/* === ШИРОКИЙ ЭКРАН CRASH GAME === */

#crash-screen {
    display: none;
    position: fixed; /* 👈 Фиксируем на весь экран */
    top: 0;
    left: 0;
    width: 100vw;      /* 👈 Вся ширина viewport */
    height: 100vh;     /* 👈 Вся высота viewport */
    background: linear-gradient(to bottom, #0f0c29, #302b63);
    overflow: hidden;
    z-index: 999;      /* Поверх всего */
}

#game-area {
    position: relative;
    width: 100%;       /* 👈 Полная ширина */
    height: 75%;       /* 👈 Чуть больше места для полёта */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 0 50px;   /* 👈 Отступы по бокам, чтобы ракета не прилипала к краям */
    box-sizing: border-box;
}

#rocket-container {
    position: relative;
    width: 250px;      /* 👈 Увеличим ракету */
    height: 300px;
    transition: transform 0.1s linear;
}

#pilot-face {
    position: absolute;
    top: 40px;         /* 👈 Поднимем лицо повыше */
    left: 50%;
    transform: translateX(-50%);
    width: 100px;       /* 👈 Увеличим лицо */
    z-index: 3;
}

#rocket-body {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
}

#engine-effects {
    position: absolute;
    bottom: 150px;     /* 👈 Ниже сопла */
    left: 50%;
    transform: translateX(-50%);
    width: 80px;       /* 👈 Шире область для частиц */
    height: 80px;
    z-index: 1;
}

#multiplier-display {
    position: absolute;
    top: 20%;          /* Можно чуть ниже, если нужно */
    right: 10%;        /* 👈 Вместо left: 50%, ставим right: 10% — справа */
    left: auto;        /* 👈 Сбрасываем left */
    transform: none;   /* 👈 Убираем центрирование */
    font-size: 80px;   /* 👈 Уменьшаем размер, чтобы не была огромной */
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 30px #9d4edd, 0 0 60px rgba(157, 78, 221, 0.5);
    z-index: 5;
    pointer-events: none;
    text-align: right; /* Выравниваем текст по правому краю */
}

#control-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    padding: 30px 50px;
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: center;
    border-top: 3px solid #9d4edd;
    box-sizing: border-box;
}

#crash-bet-input {
    width: 140px;
    padding: 12px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    background: #222;
    color: #fff;
    border: 2px solid #555;
    border-radius: 8px;
}

#crash-btn {
    padding: 20px 60px;
    font-size: 22px;
    font-weight: bold;
    background: linear-gradient(to bottom, #9d4edd, #7b2cbf);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    box-shadow: 0 0 20px #9d4edd;
    transition: all 0.2s ease;
}

#crash-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px #9d4edd;
}

.btn-back-game {
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 100;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #fff;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.btn-back-game:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Частицы — оставляем маленькими, но увеличиваем разброс */
.particle {
    position: absolute;
    width: 30px;       /* 👈 Чуть крупнее, чем было */
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 1;
    animation: fallDown 1.5s forwards;
}

@keyframes fallDown {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(200px) scale(0.5); }
}

.coin { background-image: url('image/coin.png'); }
.gem-particle { background-image: url('image/gem_particle.png'); }
.fire-particle { background-image: url('image/fire_particle.png'); }
.trophy { background-image: url('image/trophy.png'); }

/* Анимации текста */
#multiplier-display.crashing {
    color: #ff4444 !important;
    text-shadow: 0 0 30px #ff0000, 0 0 60px rgba(255, 0, 0, 0.5) !important;
}

#multiplier-display.winning {
    color: #00ff88 !important;
    text-shadow: 0 0 30px #00ff00, 0 0 60px rgba(0, 255, 0, 0.5) !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(-50%) translateX(0); }
    25% { transform: translateX(-50%) translateX(-8px); }
    75% { transform: translateX(-50%) translateX(8px); }
}



#control-panel button:not(#crash-btn) {
    padding: 12px 20px;
    font-size: 18px;
    border-radius: 8px;
}



/* === MINES GAME STYLES === */

#mines-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    max-width: 600px;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.mine-cell {
    background: linear-gradient(145deg, #2a1b3d, #1a0b2e);
    border: 2px solid #7b2cbf;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.mine-cell:hover:not(.revealed) {
    transform: scale(1.05);
    border-color: #9d4edd;
    box-shadow: 0 0 15px #9d4edd;
}

.mine-cell.revealed {
    cursor: default;
    background: linear-gradient(145deg, #1a0b2e, #0f0518);
    border-color: #00ff88; /* оставляем зелёным для успеха */
    box-shadow: 0 0 10px #00ff88;
}

.mine-cell.mine-hit {
    background: linear-gradient(145deg, #3a1a1a, #290f0f);
    border-color: #ff4444;
    animation: shakeCell 0.5s infinite;
    box-shadow: 0 0 15px #ff4444;
}

@keyframes shakeCell {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Эффект при мине */
.mine-explosion-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 0, 0, 0.3);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 48px;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 0 20px #000;
    animation: flashRed 0.5s ease-out;
}

@keyframes flashRed {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Множители */
.multiplier-badge {
    padding: 8px 16px;
    background: #2a1b3d;
    border: 1px solid #9d4edd;
    border-radius: 8px;
    color: #e0aaff;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
}


.multiplier-badge.active {
    background: #9d4edd;
    color: #fff;
    box-shadow: 0 0 10px #9d4edd;
}

#mines-start-btn {
    background: linear-gradient(to bottom, #9d4edd, #7b2cbf);
    box-shadow: 0 0 20px #9d4edd;
}

#mines-cashout-btn {
    background: linear-gradient(to bottom, #00ff88, #00cc6a);
    box-shadow: 0 0 20px #00ff88;
}
#mines-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #1a0b2e 0%, #4a1c6d 100%);
    overflow: hidden;
    z-index: 998;
    padding: 20px;
    box-sizing: border-box;
}




/* === НОВЫЙ ДИЗАЙН MINES (Фиолетово-серый) === */
.mines-wrapper {
    display: flex;
    gap: 30px;
    width: 100%;
    max-width: 1400px; /* Было 900px — увеличиваем */
    margin: 0 auto;
    height: calc(100vh - 40px); /* Чтобы не выходило за экран */
    align-items: stretch;
}

/* Левая панель */
.mines-controls-panel {
    background: rgba(30, 30, 36, 0.95);
    padding: 25px;
    border-radius: 20px;
    width: 380px; /* Было 320px */
    border: 1px solid #444;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0; /* Не сжимать */
}

.game-title-mines {
    color: #bb86fc;
    text-align: center;
    margin: 0 0 20px 0;
    font-size: 36px; /* Было 28px */
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(187, 134, 252, 0.5);
}

.control-group label {
    display: block;
    color: #aaa;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: bold;
}

/* Поле ввода ставки */
#mines-bet-input {
    width: 100%;
    background: #2b2b35;
    border: 2px solid #3f3f4a;
    color: #fff;
    padding: 15px; /* Было 12px */
    border-radius: 10px;
    font-size: 24px; /* Было 18px */
    text-align: center;
    outline: none;
    transition: 0.3s;
}

#mines-bet-input:focus {
    border-color: #bb86fc;
    box-shadow: 0 0 15px rgba(187, 134, 252, 0.3);
}

/* Кнопки /2 x2 MAX */
.bet-actions-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-action {
    flex: 1;
    padding: 12px; /* Было 8px */
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px; /* Было 14px */
    cursor: pointer;
    transition: transform 0.1s;
    color: #000;
}

.btn-action:active { transform: scale(0.95); }

.half { background: #cf6679; color: white; }   /* Красный оттенок */
.double { background: #03dac6; color: black; } /* Бирюзовый */
.max { background: #bb86fc; color: black; }    /* Фиолетовый */

/* Кнопки выбора мин */
.mines-count-buttons {
    display: flex;
    gap: 8px;
}

.btn-mine-count {
    flex: 1;
    padding: 15px 0; /* Было 10px */
    background: #2b2b35;
    border: 2px solid #3f3f4a;
    color: #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px; /* Было 14px */
}

.btn-mine-count:hover {
    background: #383842;
}

.btn-mine-count.active {
    background: #bb86fc;
    color: #000;
    border-color: #bb86fc;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(187, 134, 252, 0.5);
}

/* Кнопки Старт и Забрать */
.btn-start-mines, .btn-cashout-mines {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: filter 0.2s;
}

.btn-start-mines {
    width: 100%;
    padding: 20px;
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(45deg, #bb86fc, #9d4edd);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
    box-shadow: 0 0 25px rgba(187, 134, 252, 0.4);
}

.btn-start-mines:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(187, 134, 252, 0.6);
}

.btn-cashout-mines {
    width: 100%;
    padding: 20px; /* Было 15px */
    font-size: 24px; /* Было 18px */
    font-weight: bold;
    background: linear-gradient(45deg, #03dac6, #018786);
    color: black;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
    box-shadow: 0 0 25px rgba(3, 218, 198, 0.4);
    animation: pulse-green 1.5s infinite;
}
.btn-cashout-mines:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(3, 218, 198, 0.6);
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(3, 218, 198, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(3, 218, 198, 0); }
    100% { box-shadow: 0 0 0 0 rgba(3, 218, 198, 0); }
}

/* Инфо блок */
.mines-info-box {
    background: #15151a;
    padding: 20px; /* Было 15px */
    border-radius: 12px;
    border: 1px solid #333;
    margin-top: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px; /* Было 8px */
    font-size: 18px; /* Было 14px */
    color: #ddd;
    font-weight: bold;
}

.info-row:last-child { margin-bottom: 0; }

/* Правая часть */
.mines-game-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.balance-display-top {
    font-size: 32px; /* Было 24px */
    color: #bb86fc;
    font-weight: bold;
    margin-bottom: 30px;
    background: rgba(0,0,0,0.4);
    padding: 15px 30px;
    border-radius: 25px;
    border: 2px solid #bb86fc;
    box-shadow: 0 0 20px rgba(187, 134, 252, 0.3);
    text-align: center;
}

.mines-grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px; /* Увеличиваем отступы между ячейками */
    width: 100%;
    max-width: 700px; /* Было 500px — теперь больше */
    aspect-ratio: 1 / 1;
    padding: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 20px;
    border: 2px solid #bb86fc;
    box-shadow: 0 0 30px rgba(187, 134, 252, 0.2);
}

/* Ячейки поля */
.mine-cell {
    background: linear-gradient(145deg, #2a1b3d, #1a0b2e);
    border: 2px solid #7b2cbf;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);

    aspect-ratio: 1 / 1;   /* главное */
    width: 100%;
}

.mine-cell:hover:not(.revealed) {
    background: linear-gradient(145deg, #383842, #2a2a35);
    border-color: #bb86fc;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(187, 134, 252, 0.4);
}

.mine-cell.revealed {
    background: linear-gradient(145deg, #1a1a20, #0f0f15);
    border-color: #555;
    cursor: default;
    transform: none;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}
@keyframes glowGem {
    from { box-shadow: inset 0 0 20px rgba(3, 218, 198, 0.3), 0 0 15px rgba(3, 218, 198, 0.2); }
    to { box-shadow: inset 0 0 30px rgba(3, 218, 198, 0.5), 0 0 25px rgba(3, 218, 198, 0.4); }
}

.mine-cell.gem {
    background: linear-gradient(145deg, #1a2e1a, #0f1f0f);
    border-color: #03dac6;
    box-shadow: inset 0 0 20px rgba(3, 218, 198, 0.3), 0 0 15px rgba(3, 218, 198, 0.2);
    animation: glowGem 1.5s infinite alternate;
}
.mine-cell.mine-hit {
    background: linear-gradient(145deg, #2e1a1a, #1f0f0f);
    border-color: #cf6679;
    box-shadow: inset 0 0 20px rgba(207, 102, 121, 0.3), 0 0 15px rgba(207, 102, 121, 0.2);
    animation: shakeCell 0.5s, flashRed 0.5s;
}

.current-win-display {
    margin-top: 30px;
    font-size: 28px; /* Было 20px */
    color: #fff;
    text-align: center;
    background: rgba(0,0,0,0.3);
    padding: 15px 25px;
    border-radius: 15px;
    border: 1px solid #03dac6;
    box-shadow: 0 0 15px rgba(3, 218, 198, 0.2);
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .mines-wrapper {
        flex-direction: column;
    }
    .mines-controls-panel {
        width: 100%;
    }
}


button,
.btn-buy-key,
.btn-collect,
.btn-trade,
.btn-collect-profit,
.btn-upgrade-biz,
.btn-unlock,
.btn-buy-vip,
.btn-buy-level,
.btn-bonus {
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

button:hover,
.btn-buy-key:hover,
.btn-collect:hover,
.btn-trade:hover,
.btn-collect-profit:hover,
.btn-upgrade-biz:hover,
.btn-unlock:hover,
.btn-buy-vip:hover,
.btn-buy-level:hover,
.btn-bonus:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}


.hero-banner {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    margin-bottom: 24px;
    padding: 24px 20px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top, rgba(255, 211, 106, 0.10), transparent 35%),
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 18px 45px rgba(0,0,0,0.35), var(--shadow-gold);
    text-align: center;
    backdrop-filter: blur(12px);
}

.hero-badge {
    display: inline-block;
    padding: 8px 14px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(255, 211, 106, 0.12);
    border: 1px solid rgba(255, 211, 106, 0.35);
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 34px;
    line-height: 1.15;
    margin-bottom: 12px;
    color: #fff;
    text-shadow: 0 0 20px rgba(255,255,255,0.12);
}

.hero-subtitle {
    color: var(--text-soft);
    font-size: 15px;
    margin-bottom: 18px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    border: none;
    border-radius: 14px;
    padding: 14px 20px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
}

.hero-btn-primary {
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    color: #1b1200;
    box-shadow: 0 6px 0 #a56e00, var(--shadow-gold);
}

.hero-btn-secondary {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 6px 0 #6f0053, var(--shadow-pink);
}

.sub-section-title {
    text-align: center;
    margin: 22px 0 14px;
    color: var(--secondary);
    font-size: 20px;
    text-shadow: 0 0 14px rgba(77, 227, 255, 0.20);
    margin-top: 30px;
}



.featured-grid {
    margin-bottom: 8px;
}

@media (min-width: 700px) {
    .featured-grid {
        grid-template-columns: 1fr 1fr;
    }

    .games-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.mines-bg {
    background: linear-gradient(135deg, #6a00ff, #2e0057);
}



.featured-grid .game-card {
    transform: scale(1.02);
    border: 1px solid rgba(255, 211, 106, 0.4);
}

.featured-grid .card-image {
    height: 140px;
}


.featured-grid .game-card:hover {
    box-shadow: 0 0 25px rgba(255, 211, 106, 0.6);
}

.daily-panel {
    margin-bottom: 20px;
    background:
        radial-gradient(circle at top, rgba(255, 211, 106, 0.08), transparent 35%),
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
    border: 1px solid rgba(255, 211, 106, 0.35);
    border-radius: 20px;
    padding: 18px;
    text-align: center;
    box-shadow: var(--shadow-gold);
    width: 100%;
}

.daily-panel h3 {
    color: var(--gold);
    margin-bottom: 8px;
}

.daily-panel p {
    color: var(--text-soft);
    margin-bottom: 12px;
}

#daily-reward-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}


.shop-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

@media (min-width: 700px) {
    .market-shop-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.shop-owned {
    margin-bottom: 12px;
    color: var(--gold);
    font-size: 14px;
}

.wheel-panel {
    text-align: center;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-wheel {
    margin-top: 15px;
    padding: 16px 24px;
    border-radius: 14px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    color: #1b1200;
    box-shadow: 0 6px 0 #a56e00;
}

.wheel-result {
    margin-top: 20px;
    font-size: 20px;
    color: var(--gold);
}


.wheel-panel {
    text-align: center;
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.wheel-window {
    position: relative;
    width: 100%;
    max-width: 560px;
    height: 120px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 18px;
    border: 2px solid rgba(255, 211, 106, 0.5);
    background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(255,255,255,0.03));
    box-shadow: inset 0 0 20px rgba(0,0,0,0.35), 0 0 18px rgba(255, 211, 106, 0.18);
}

.wheel-track {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 12px;
    padding: 0 12px;
    will-change: transform;
}

.wheel-item {
    min-width: 110px;
    height: 84px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
    flex-shrink: 0;
}

.wheel-item-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.wheel-item-label {
    font-size: 14px;
    text-align: center;
    padding: 0 6px;
}

.wheel-item.common {
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
}

.wheel-item.rare {
    background: linear-gradient(180deg, rgba(77,227,255,0.22), rgba(77,227,255,0.08));
    border-color: rgba(77,227,255,0.4);
}

.wheel-item.epic {
    background: linear-gradient(180deg, rgba(199,125,255,0.25), rgba(199,125,255,0.08));
    border-color: rgba(199,125,255,0.5);
}

.wheel-item.legendary {
    background: linear-gradient(180deg, rgba(255,211,106,0.28), rgba(255,184,0,0.12));
    border-color: rgba(255,211,106,0.7);
    box-shadow: 0 0 16px rgba(255,211,106,0.2);
}

.wheel-pointer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 20px solid var(--gold);
    filter: drop-shadow(0 0 8px rgba(255, 211, 106, 0.45));
    z-index: 3;
}

.btn-wheel {
    margin-top: 10px;
    padding: 16px 28px;
    border-radius: 14px;
    border: none;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    color: #1b1200;
    box-shadow: 0 6px 0 #a56e00, var(--shadow-gold);
    transition: transform 0.18s ease, filter 0.18s ease;
}

.btn-wheel:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.btn-wheel:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.wheel-result {
    margin-top: 18px;
    min-height: 28px;
    font-size: 22px;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255,211,106,0.3);
}


.wheel-result {
    margin-top: 18px;
    min-height: 28px;
    font-size: 22px;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255,211,106,0.3);
    transition: all 0.25s ease;
}


.vip-card {
    min-height: 420px;
    padding: 26px 22px;
    border-radius: 22px;
    text-align: left;
    color: white;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 2px solid rgba(255,255,255,0.12);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vip-title {
    font-size: 34px;
    line-height: 1.05;
    margin-bottom: 20px;
    color: white;
}
.vip-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.vip-benefits li {
    font-size: 20px;
    line-height: 1.25;
    color: rgba(255,255,255,0.92);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.vip-benefits li::before {
    content: "✦";
    color: var(--gold);
    font-size: 18px;
    line-height: 1.2;
    margin-top: 2px;
}
.vip-price {
    font-size: 32px;
    font-weight: 900;
    color: var(--gold);
    margin-top: auto;
    margin-bottom: 18px;
    text-shadow: 0 0 14px rgba(255, 211, 106, 0.22);
}
.vip-buy-btn {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 16px 18px;
    font-family: inherit;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    color: #1b1200;
    box-shadow: 0 6px 0 #a56e00, var(--shadow-gold);
    transition: transform 0.18s ease, filter 0.18s ease;
}
.vip-buy-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}
.vip-level-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
}

.vip-card:hover {
    transform: translateY(-6px);
}

.vip-card h3 {
    margin-bottom: 10px;
}

.vip-card button {
    margin-top: 15px;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: gold;
    cursor: pointer;
    font-weight: bold;
}

.vip-bronze {
    border: 2px solid #cd7f32;
}

.vip-silver {
    border: 2px solid #c0c0c0;
}

.vip-gold {
    border: 2px solid gold;
}

.vip-legend {
    border: 2px solid #00ffff;
    box-shadow: 0 0 20px #00ffff;
}

.vip-bronze {
    border-color: #ff9d2f;
    box-shadow: 0 0 24px rgba(255, 157, 47, 0.20);
}

.vip-bronze .vip-level-badge {
    color: #ffb45b;
    border-color: rgba(255, 157, 47, 0.35);
}

.vip-silver {
    border-color: #d9e1ea;
    box-shadow: 0 0 24px rgba(217, 225, 234, 0.18);
}

.vip-silver .vip-level-badge {
    color: #eef4ff;
    border-color: rgba(217, 225, 234, 0.35);
}

.vip-gold {
    border-color: #ffd700;
    box-shadow: 0 0 28px rgba(255, 215, 0, 0.22);
}

.vip-gold .vip-level-badge {
    color: #ffe66b;
    border-color: rgba(255, 215, 0, 0.35);
}

.vip-legend {
    border-color: #00f0ff;
    box-shadow: 0 0 32px rgba(0, 240, 255, 0.28);
}

.vip-legend .vip-level-badge {
    color: #7ef9ff;
    border-color: rgba(0, 240, 255, 0.35);
}
@media (max-width: 700px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .vip-card {
        min-height: 380px;
        padding: 22px 18px;
    }

    .vip-title {
        font-size: 28px;
    }

    .vip-benefits li {
        font-size: 18px;
    }

    .vip-price {
        font-size: 28px;
    }
}


.vip-zone-card {
    border: 1px solid rgba(255, 211, 106, 0.45);
    box-shadow:
        0 10px 28px rgba(0,0,0,0.35),
        0 0 22px rgba(255, 211, 106, 0.12);
}

.vip-zone-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow:
        0 14px 34px rgba(0,0,0,0.42),
        0 0 28px rgba(255, 211, 106, 0.22);
}

.vip-zone-bg {
    height: 140px;
    position: relative;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 211, 106, 0.22), transparent 22%),
        radial-gradient(circle at 80% 25%, rgba(255, 59, 212, 0.18), transparent 22%),
        linear-gradient(135deg, #2a063d 0%, #12001f 55%, #050009 100%);
    overflow: hidden;
}

.vip-zone-bg::before {
    content: "👑";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    opacity: 0.16;
    filter: drop-shadow(0 0 18px rgba(255, 211, 106, 0.25));
}

.vip-zone-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(9,0,17,0.82), rgba(9,0,17,0.15));
}

.vip-zone-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #1b1200;
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    box-shadow: 0 4px 12px rgba(255, 211, 106, 0.22);
}

.vip-zone-card .card-content h3 {
    color: var(--gold);
    text-shadow: 0 0 12px rgba(255, 211, 106, 0.20);
}

.vip-zone-card .card-content p {
    color: rgba(255,255,255,0.82);
}

.vip-zone-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
}

.vip-zone-action-btn {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 14px 16px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 6px 0 #6f0053, var(--shadow-pink);
}

.vip-zone-action-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}


/* === VIP STORE === */
.vip-store-panel {
    width: 100%;
    padding: 24px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top, rgba(255, 211, 106, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 18px 45px rgba(0,0,0,0.35), var(--shadow-gold);
    backdrop-filter: blur(10px);
}

.vip-store-header {
    text-align: center;
    margin-bottom: 24px;
}

.vip-store-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 211, 106, 0.12);
    border: 1px solid rgba(255, 211, 106, 0.35);
    color: var(--gold);
    font-size: 13px;
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.vip-store-title {
    font-size: 34px;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 0 18px rgba(255,255,255,0.12);
}

.vip-store-subtitle {
    color: var(--text-soft);
    font-size: 15px;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

.vip-status-box {
    margin-bottom: 24px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    text-align: center;
}

.vip-status-label {
    color: var(--text-soft);
    font-size: 13px;
    margin-bottom: 6px;
}

.vip-status-value {
    color: var(--gold);
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 14px rgba(255, 211, 106, 0.3);
}

.vip-products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.vip-product-card {
    position: relative;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 10px 30px rgba(0,0,0,0.28);
    transition: 0.25s ease;
    overflow: hidden;
}

.vip-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(0,0,0,0.35), var(--shadow-pink);
}

.vip-product-level {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    color: #fff;
}

.vip-product-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #fff;
}

.vip-product-price {
    font-size: 22px;
    color: var(--gold);
    font-weight: bold;
    margin-bottom: 16px;
    text-shadow: 0 0 14px rgba(255, 211, 106, 0.25);
}

.vip-product-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.vip-product-benefits li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    color: var(--text-soft);
    line-height: 1.5;
}

.vip-product-benefits li::before {
    content: "✦";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary);
}

.vip-product-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    padding: 13px 16px;
    border-radius: 14px;
    font-weight: bold;
    color: #111;
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    box-shadow: 0 6px 0 #a56e00, var(--shadow-gold);
    transition: 0.18s ease;
}

.vip-product-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.vip-tier-1 {
    border-color: rgba(255, 211, 106, 0.30);
}

.vip-tier-2 {
    border-color: rgba(77, 227, 255, 0.35);
}

.vip-tier-3 {
    border-color: rgba(255, 59, 212, 0.35);
}

.vip-tier-4 {
    border-color: rgba(52, 255, 156, 0.35);
}

.vip-promo-box {
    padding: 22px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
}

.vip-promo-title {
    font-size: 24px;
    color: #fff;
    margin-bottom: 10px;
}

.vip-promo-text {
    color: var(--text-soft);
    margin-bottom: 16px;
    line-height: 1.5;
}

.vip-promo-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.vip-promo-form input {
    flex: 1;
    min-width: 220px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(0,0,0,0.35);
    color: #fff;
    font-family: inherit;
    outline: none;
}

.vip-promo-form input::placeholder {
    color: rgba(255,255,255,0.42);
}

.vip-promo-btn {
    border: none;
    padding: 14px 20px;
    border-radius: 14px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    color: white;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    box-shadow: 0 6px 0 #6f0053, var(--shadow-pink);
    transition: 0.18s ease;
}

.vip-promo-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.vip-message {
    margin-top: 14px;
    min-height: 20px;
    font-size: 14px;
    color: var(--secondary);
}

@media (max-width: 768px) {
    .vip-products-grid {
        grid-template-columns: 1fr;
    }

    .vip-store-title {
        font-size: 28px;
    }

    .vip-product-title {
        font-size: 22px;
    }
}   


/* === VIP DETAILS BLOCK === */
.vip-details-box {
    margin-bottom: 28px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}

.vip-details-title {
    font-size: 26px;
    color: #fff;
    margin-bottom: 10px;
    text-align: center;
}

.vip-details-subtitle {
    color: var(--text-soft);
    text-align: center;
    line-height: 1.6;
    font-size: 14px;
    max-width: 760px;
    margin: 0 auto 20px;
}

.vip-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.vip-details-card {
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.10);
}

.vip-details-head {
    margin-bottom: 14px;
}

.vip-details-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    color: white;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
}

.vip-details-head h4 {
    font-size: 22px;
    color: var(--gold);
    margin: 0;
}

.vip-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vip-details-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    color: var(--text-soft);
    line-height: 1.5;
}

.vip-details-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary);
}

@media (max-width: 768px) {
    .vip-details-grid {
        grid-template-columns: 1fr;
    }

    .vip-details-title {
        font-size: 22px;
    }

    .vip-details-head h4 {
        font-size: 20px;
    }
}


/* === VIP ZONE SLOTS UI === */
.vip-zone-slot-card {
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 8px 20px rgba(0,0,0,0.22);
}

.vip-slot-preview {
    height: 80px;
    margin-bottom: 10px;
    border-radius: 10px;
    background:
        radial-gradient(circle at top, rgba(255, 211, 106, 0.15), transparent 35%),
        linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.10);
}

.vip-slot-title {
    font-size: 16px;
    color: #fff;
    margin-bottom: 6px;
}

.vip-slot-desc {
    font-size: 13px;
    color: var(--text-soft);
    min-height: 34px;
    margin-bottom: 10px;
}

.vip-slot-btn {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 10px 12px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    color: #1b1200;
    box-shadow: 0 4px 0 #a56e00;
}

.vip-slot-btn:disabled {
    background: #555;
    color: #bbb;
    box-shadow: none;
    cursor: not-allowed;
}


/* === VIP DAILY REWARDS MODAL === */
.vip-rewards-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.vip-rewards-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vip-rewards-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
}

.vip-rewards-content {
    position: relative;
    z-index: 2;
    width: min(1100px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    border-radius: 28px;
    padding: 24px;
    background:
        radial-gradient(circle at top, rgba(255, 211, 106, 0.10), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 24px 60px rgba(0,0,0,0.45), var(--shadow-gold);
    backdrop-filter: blur(14px);
}

.vip-rewards-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.vip-rewards-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 211, 106, 0.12);
    border: 1px solid rgba(255, 211, 106, 0.35);
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.vip-rewards-title {
    font-size: 32px;
    color: #fff;
    margin-bottom: 8px;
}

.vip-rewards-subtitle {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
    max-width: 720px;
}

.vip-rewards-close {
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    font-size: 22px;
    color: white;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    box-shadow: 0 6px 0 #6f0053, var(--shadow-pink);
    flex-shrink: 0;
}

.vip-rewards-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
}

.vip-rewards-level,
.vip-rewards-current-day {
    color: var(--text-soft);
    font-size: 15px;
}

.vip-rewards-level span,
.vip-rewards-current-day span {
    color: var(--gold);
    font-weight: bold;
}

.vip-rewards-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.vip-reward-day {
    position: relative;
    min-height: 130px;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 8px 22px rgba(0,0,0,0.22);
    transition: 0.2s ease;
    cursor: pointer;
    overflow: hidden;
}

.vip-reward-day:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 211, 106, 0.40);
}

.vip-reward-day.locked {
    opacity: 0.45;
    cursor: not-allowed;
}

.vip-reward-day.claimed {
    border-color: rgba(52, 255, 156, 0.45);
    box-shadow: 0 0 18px rgba(52, 255, 156, 0.16);
}

.vip-reward-day.available {
    border-color: rgba(255, 211, 106, 0.45);
    box-shadow: 0 0 18px rgba(255, 211, 106, 0.16);
}

.vip-reward-day.selected {
    transform: translateY(-3px);
    border-color: rgba(77, 227, 255, 0.55);
    box-shadow: 0 0 20px rgba(77, 227, 255, 0.18);
}

.vip-reward-day-number {
    font-size: 14px;
    color: var(--text-soft);
    margin-bottom: 10px;
}

.vip-reward-day-number span {
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin-right: 6px;
}

.vip-reward-icon {
    font-size: 34px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(77, 227, 255, 0.18));
}

.vip-reward-amount {
    font-size: 20px;
    color: var(--gold);
    font-weight: bold;
    margin-bottom: 6px;
}

.vip-reward-label {
    color: var(--text-soft);
    font-size: 13px;
}

.vip-reward-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.4px;
}

.vip-reward-day.claimed .vip-reward-status {
    background: rgba(52, 255, 156, 0.16);
    color: var(--success);
}

.vip-reward-day.available .vip-reward-status {
    background: rgba(255, 211, 106, 0.16);
    color: var(--gold);
}

.vip-reward-day.locked .vip-reward-status {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.65);
}

.vip-rewards-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
}

.vip-rewards-selected-text {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.5;
}

.vip-rewards-claim-btn {
    border: none;
    border-radius: 14px;
    padding: 14px 22px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    color: #1b1200;
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    box-shadow: 0 6px 0 #a56e00, var(--shadow-gold);
    min-width: 220px;
}

.vip-rewards-claim-btn:disabled {
    background: #555;
    color: #bbb;
    box-shadow: none;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .vip-rewards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .vip-rewards-content {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        padding: 18px;
        border-radius: 22px;
    }

    .vip-rewards-title {
        font-size: 26px;
    }

    .vip-rewards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .vip-reward-day {
        min-height: 120px;
        padding: 12px;
    }

    .vip-reward-amount {
        font-size: 18px;
    }

    .vip-rewards-claim-btn {
        width: 100%;
        min-width: 0;
    }
}


/* === VIP REWARDS VISUAL UPGRADE === */
.vip-reward-day {
    backdrop-filter: blur(10px);
}

.vip-reward-day.available {
    background:
        radial-gradient(circle at top, rgba(255, 211, 106, 0.14), transparent 45%),
        linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
    border-color: rgba(255, 211, 106, 0.55);
    box-shadow:
        0 0 22px rgba(255, 211, 106, 0.14),
        0 8px 22px rgba(0,0,0,0.24);
    animation: vipRewardPulse 1.8s infinite;
}

.vip-reward-day.claimed {
    background:
        radial-gradient(circle at top, rgba(52, 255, 156, 0.10), transparent 45%),
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border-color: rgba(52, 255, 156, 0.40);
}

.vip-reward-day.claimed .vip-reward-icon {
    filter: grayscale(0.15) drop-shadow(0 0 8px rgba(52, 255, 156, 0.18));
}

.vip-reward-day.locked {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border-color: rgba(255,255,255,0.08);
    opacity: 0.42;
    filter: grayscale(0.15);
}

.vip-reward-day.selected {
    transform: translateY(-4px) scale(1.015);
}

.vip-reward-day.available.selected {
    border-color: rgba(77, 227, 255, 0.60);
    box-shadow:
        0 0 26px rgba(77, 227, 255, 0.16),
        0 10px 24px rgba(0,0,0,0.25);
}

.vip-reward-day-number {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.vip-reward-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

.vip-reward-day.available .vip-reward-icon {
    background: rgba(255, 211, 106, 0.10);
    border-color: rgba(255, 211, 106, 0.24);
}

.vip-reward-amount {
    letter-spacing: 0.4px;
}

.vip-reward-label {
    opacity: 0.9;
}

.vip-reward-status {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.vip-rewards-selected-text {
    font-size: 15px;
}

.vip-rewards-footer {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

@keyframes vipRewardPulse {
    0% {
        transform: translateY(0);
        box-shadow:
            0 0 18px rgba(255, 211, 106, 0.10),
            0 8px 22px rgba(0,0,0,0.24);
    }
    50% {
        transform: translateY(-2px);
        box-shadow:
            0 0 28px rgba(255, 211, 106, 0.18),
            0 10px 26px rgba(0,0,0,0.26);
    }
    100% {
        transform: translateY(0);
        box-shadow:
            0 0 18px rgba(255, 211, 106, 0.10),
            0 8px 22px rgba(0,0,0,0.24);
    }
}

/* === LOCKED VIP SLOTS === */
.vip-zone-slot-card {
    position: relative;
}

.vip-slot-level-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.5px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--gold);
}

.locked-slot {
    opacity: 0.72;
    filter: grayscale(0.2);
}

.locked-slot .vip-slot-preview {
    background:
        linear-gradient(135deg, rgba(0,0,0,0.35), rgba(255,255,255,0.03)),
        radial-gradient(circle at center, rgba(255,255,255,0.06), transparent 55%);
    position: relative;
}

.locked-slot .vip-slot-preview::after {
    content: "🔒";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: rgba(0,0,0,0.18);
    border-radius: 10px;
}

.locked-slot .vip-slot-btn {
    background: #444;
    color: #ddd;
    box-shadow: none;
}

.locked-slot .vip-slot-btn:hover {
    transform: none;
    filter: none;
}

/* === VIP SLOT PREVIEWS === */
.vip-slot-preview {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.vip-slot-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9,0,17,0.72), rgba(9,0,17,0.15));
}

.vip-preview-ronaldo {
    background:
        radial-gradient(circle at top, rgba(255, 211, 106, 0.24), transparent 35%),
        linear-gradient(135deg, #5a3900, #1a1200 60%, #090011);
}

.vip-preview-shrek {
    background:
        radial-gradient(circle at top, rgba(52, 255, 156, 0.20), transparent 35%),
        linear-gradient(135deg, #1d5c2b, #0f2a14 60%, #090011);
}

.vip-preview-spongebob {
    background:
        radial-gradient(circle at top, rgba(255, 230, 80, 0.20), transparent 35%),
        linear-gradient(135deg, #8a6d00, #2c2200 60%, #090011);
}

.vip-preview-speed {
    background:
        radial-gradient(circle at top, rgba(77, 227, 255, 0.20), transparent 35%),
        linear-gradient(135deg, #00495a, #001a24 60%, #090011);
}

.vip-slot-title {
    font-size: 17px;
    color: #fff;
    margin-bottom: 6px;
}

.vip-slot-status {
    font-size: 12px;
    color: var(--gold);
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.vip-slot-desc {
    font-size: 13px;
    color: var(--text-soft);
    min-height: 40px;
    margin-bottom: 12px;
    line-height: 1.45;
}

.vip-zone-slot-card {
    padding: 14px;
    border-radius: 16px;
    background:
        radial-gradient(circle at top, rgba(255,255,255,0.05), transparent 35%),
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 10px 22px rgba(0,0,0,0.24);
    transition: 0.22s ease;
}

.vip-zone-slot-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(0,0,0,0.28), var(--shadow-pink);
}

.vip-zone-slot-card .vip-slot-btn {
    margin-top: 2px;
}


/* === VIP SLOT THEMES === */

body.vip-theme-ronaldo {
    background:
        radial-gradient(circle at top, rgba(255, 211, 106, 0.25), transparent 40%),
        linear-gradient(180deg, #2b1a00, #090011);
}

body.vip-theme-shrek {
    background:
        radial-gradient(circle at top, rgba(52, 255, 156, 0.25), transparent 40%),
        linear-gradient(180deg, #0f2a14, #090011);
}

body.vip-theme-spongebob {
    background:
        radial-gradient(circle at top, rgba(255, 230, 80, 0.25), transparent 40%),
        linear-gradient(180deg, #2c2200, #090011);
}

body.vip-theme-speed {
    background:
        radial-gradient(circle at top, rgba(77, 227, 255, 0.25), transparent 40%),
        linear-gradient(180deg, #001a24, #090011);
}

/* === VIP SLOT UI THEMES === */

/* Общие переходы */
.slot-container,
.btn-spin,
.win-amount,
.win-title,
.message-box,
.cell,
.grid-wrapper {
    transition: all 0.25s ease;
}

/* ===== RONALDO ===== */
body.vip-theme-ronaldo .slot-container {
    border-color: rgba(255, 211, 106, 0.65);
    box-shadow:
        0 18px 45px rgba(0,0,0,0.45),
        0 0 30px rgba(255, 211, 106, 0.22);
}

body.vip-theme-ronaldo .grid-wrapper {
    border-color: rgba(255, 211, 106, 0.28);
    box-shadow: inset 0 0 30px rgba(255, 211, 106, 0.08);
}

body.vip-theme-ronaldo .cell {
    border-color: rgba(255, 211, 106, 0.20);
}

body.vip-theme-ronaldo .btn-spin {
    background: linear-gradient(180deg, #ffe27a, #ffb800);
    color: #1b1200;
    box-shadow: 0 6px 0 #9a6a00, 0 0 22px rgba(255, 211, 106, 0.25);
}

body.vip-theme-ronaldo .message-box,
body.vip-theme-ronaldo .win-title,
body.vip-theme-ronaldo .win-amount,
body.vip-theme-ronaldo .slot-title {
    color: #ffd36a;
    text-shadow: 0 0 14px rgba(255, 211, 106, 0.35);
}

/* ===== SHREK ===== */
body.vip-theme-shrek .slot-container {
    border-color: rgba(52, 255, 156, 0.55);
    box-shadow:
        0 18px 45px rgba(0,0,0,0.45),
        0 0 30px rgba(52, 255, 156, 0.18);
}

body.vip-theme-shrek .grid-wrapper {
    border-color: rgba(52, 255, 156, 0.22);
    box-shadow: inset 0 0 30px rgba(52, 255, 156, 0.08);
}

body.vip-theme-shrek .cell {
    border-color: rgba(52, 255, 156, 0.18);
}

body.vip-theme-shrek .btn-spin {
    background: linear-gradient(180deg, #7dffb8, #25d67b);
    color: #052111;
    box-shadow: 0 6px 0 #0c8d4c, 0 0 22px rgba(52, 255, 156, 0.22);
}

body.vip-theme-shrek .message-box,
body.vip-theme-shrek .win-title,
body.vip-theme-shrek .win-amount,
body.vip-theme-shrek .slot-title {
    color: #7dffb8;
    text-shadow: 0 0 14px rgba(52, 255, 156, 0.30);
}

/* ===== SPONGEBOB ===== */
body.vip-theme-spongebob .slot-container {
    border-color: rgba(255, 230, 80, 0.58);
    box-shadow:
        0 18px 45px rgba(0,0,0,0.45),
        0 0 30px rgba(255, 230, 80, 0.18);
}

body.vip-theme-spongebob .grid-wrapper {
    border-color: rgba(255, 230, 80, 0.24);
    box-shadow: inset 0 0 30px rgba(255, 230, 80, 0.08);
}

body.vip-theme-spongebob .cell {
    border-color: rgba(255, 230, 80, 0.18);
}

body.vip-theme-spongebob .btn-spin {
    background: linear-gradient(180deg, #fff07a, #ffd24a);
    color: #2a2200;
    box-shadow: 0 6px 0 #b08a00, 0 0 22px rgba(255, 230, 80, 0.22);
}

body.vip-theme-spongebob .message-box,
body.vip-theme-spongebob .win-title,
body.vip-theme-spongebob .win-amount,
body.vip-theme-spongebob .slot-title {
    color: #ffe55e;
    text-shadow: 0 0 14px rgba(255, 230, 80, 0.30);
}

/* ===== SPEED ===== */
body.vip-theme-speed .slot-container {
    border-color: rgba(77, 227, 255, 0.60);
    box-shadow:
        0 18px 45px rgba(0,0,0,0.45),
        0 0 30px rgba(77, 227, 255, 0.18);
}

body.vip-theme-speed .grid-wrapper {
    border-color: rgba(77, 227, 255, 0.25);
    box-shadow: inset 0 0 30px rgba(77, 227, 255, 0.08);
}

body.vip-theme-speed .cell {
    border-color: rgba(77, 227, 255, 0.20);
}

body.vip-theme-speed .btn-spin {
    background: linear-gradient(180deg, #7cf0ff, #24cfff);
    color: #021820;
    box-shadow: 0 6px 0 #0c89a7, 0 0 22px rgba(77, 227, 255, 0.22);
}

body.vip-theme-speed .message-box,
body.vip-theme-speed .win-title,
body.vip-theme-speed .win-amount,
body.vip-theme-speed .slot-title {
    color: #7cf0ff;
    text-shadow: 0 0 14px rgba(77, 227, 255, 0.30);
}




/* === VIP THEME ANIMATIONS === */
@keyframes vipGlowGold {
    0% { box-shadow: 0 0 18px rgba(255, 211, 106, 0.12); }
    50% { box-shadow: 0 0 30px rgba(255, 211, 106, 0.22); }
    100% { box-shadow: 0 0 18px rgba(255, 211, 106, 0.12); }
}

@keyframes vipGlowGreen {
    0% { box-shadow: 0 0 18px rgba(52, 255, 156, 0.10); }
    50% { box-shadow: 0 0 28px rgba(52, 255, 156, 0.20); }
    100% { box-shadow: 0 0 18px rgba(52, 255, 156, 0.10); }
}

@keyframes vipGlowYellow {
    0% { box-shadow: 0 0 18px rgba(255, 230, 80, 0.10); }
    50% { box-shadow: 0 0 28px rgba(255, 230, 80, 0.20); }
    100% { box-shadow: 0 0 18px rgba(255, 230, 80, 0.10); }
}

@keyframes vipGlowBlue {
    0% { box-shadow: 0 0 18px rgba(77, 227, 255, 0.10); }
    50% { box-shadow: 0 0 28px rgba(77, 227, 255, 0.20); }
    100% { box-shadow: 0 0 18px rgba(77, 227, 255, 0.10); }
}

body.vip-theme-ronaldo .slot-container.win-pulse {
    animation: vipGlowGold 1.1s infinite alternate;
}

body.vip-theme-shrek .slot-container.win-pulse {
    animation: vipGlowGreen 1.1s infinite alternate;
}

body.vip-theme-spongebob .slot-container.win-pulse {
    animation: vipGlowYellow 1.1s infinite alternate;
}

body.vip-theme-speed .slot-container.win-pulse {
    animation: vipGlowBlue 0.8s infinite alternate;
}


/* === VIP THEME OVERRIDE FIX === */

body.vip-theme-ronaldo .slot-container {
    border: 2px solid rgba(255, 211, 106, 0.85) !important;
    box-shadow:
        0 0 35px rgba(255, 211, 106, 0.35),
        0 0 70px rgba(255, 211, 106, 0.18),
        0 18px 45px rgba(0,0,0,0.55) !important;
}

body.vip-theme-ronaldo .grid-wrapper {
    border: 1px solid rgba(255, 211, 106, 0.35) !important;
    box-shadow:
        inset 0 0 28px rgba(255, 211, 106, 0.10),
        0 0 18px rgba(255, 211, 106, 0.08) !important;
}

body.vip-theme-ronaldo .cell {
    border: 1px solid rgba(255, 211, 106, 0.22) !important;
}

body.vip-theme-ronaldo .btn-spin {
    background: linear-gradient(180deg, #ffe27a, #ffb800) !important;
    color: #1b1200 !important;
    box-shadow:
        0 0 20px rgba(255, 211, 106, 0.45),
        0 6px 0 #9a6a00 !important;
}

body.vip-theme-ronaldo .slot-title,
body.vip-theme-ronaldo .message-box,
body.vip-theme-ronaldo .win-title,
body.vip-theme-ronaldo .win-amount {
    color: #ffd36a !important;
    text-shadow:
        0 0 16px rgba(255, 211, 106, 0.45),
        0 0 32px rgba(255, 211, 106, 0.20) !important;
}

body.vip-theme-ronaldo .slot-container.win-pulse {
    animation: none !important;
    box-shadow:
        0 0 45px rgba(255, 211, 106, 0.45),
        0 0 85px rgba(255, 211, 106, 0.20),
        0 18px 45px rgba(0,0,0,0.55) !important;
}

/* === VIP THEME OVERRIDE FIX: SHREK / SPONGEBOB / SPEED === */

body.vip-theme-shrek .slot-container {
    border: 2px solid rgba(52, 255, 156, 0.85) !important;
    box-shadow:
        0 0 35px rgba(52, 255, 156, 0.30),
        0 0 70px rgba(52, 255, 156, 0.14),
        0 18px 45px rgba(0,0,0,0.55) !important;
}

body.vip-theme-shrek .grid-wrapper {
    border: 1px solid rgba(52, 255, 156, 0.35) !important;
    box-shadow:
        inset 0 0 28px rgba(52, 255, 156, 0.10),
        0 0 18px rgba(52, 255, 156, 0.06) !important;
}

body.vip-theme-shrek .cell {
    border: 1px solid rgba(52, 255, 156, 0.24) !important;
}

body.vip-theme-shrek .btn-spin {
    background: linear-gradient(180deg, #7dffb8, #25d67b) !important;
    color: #052111 !important;
    box-shadow:
        0 0 20px rgba(52, 255, 156, 0.40),
        0 6px 0 #0c8d4c !important;
}

body.vip-theme-shrek .slot-title,
body.vip-theme-shrek .message-box,
body.vip-theme-shrek .win-title,
body.vip-theme-shrek .win-amount {
    color: #7dffb8 !important;
    text-shadow:
        0 0 16px rgba(52, 255, 156, 0.40),
        0 0 32px rgba(52, 255, 156, 0.18) !important;
}

body.vip-theme-shrek .slot-container.win-pulse {
    animation: none !important;
    box-shadow:
        0 0 45px rgba(52, 255, 156, 0.35),
        0 0 85px rgba(52, 255, 156, 0.18),
        0 18px 45px rgba(0,0,0,0.55) !important;
}

/* ===== SPONGEBOB ===== */

body.vip-theme-spongebob .slot-container {
    border: 2px solid rgba(255, 230, 80, 0.88) !important;
    box-shadow:
        0 0 35px rgba(255, 230, 80, 0.32),
        0 0 70px rgba(255, 230, 80, 0.16),
        0 18px 45px rgba(0,0,0,0.55) !important;
}

body.vip-theme-spongebob .grid-wrapper {
    border: 1px solid rgba(255, 230, 80, 0.38) !important;
    box-shadow:
        inset 0 0 28px rgba(255, 230, 80, 0.10),
        0 0 18px rgba(255, 230, 80, 0.07) !important;
}

body.vip-theme-spongebob .cell {
    border: 1px solid rgba(255, 230, 80, 0.24) !important;
}

body.vip-theme-spongebob .btn-spin {
    background: linear-gradient(180deg, #fff07a, #ffd24a) !important;
    color: #2a2200 !important;
    box-shadow:
        0 0 20px rgba(255, 230, 80, 0.42),
        0 6px 0 #b08a00 !important;
}

body.vip-theme-spongebob .slot-title,
body.vip-theme-spongebob .message-box,
body.vip-theme-spongebob .win-title,
body.vip-theme-spongebob .win-amount {
    color: #ffe55e !important;
    text-shadow:
        0 0 16px rgba(255, 230, 80, 0.42),
        0 0 32px rgba(255, 230, 80, 0.18) !important;
}

body.vip-theme-spongebob .slot-container.win-pulse {
    animation: none !important;
    box-shadow:
        0 0 45px rgba(255, 230, 80, 0.38),
        0 0 85px rgba(255, 230, 80, 0.18),
        0 18px 45px rgba(0,0,0,0.55) !important;
}

/* ===== SPEED ===== */

body.vip-theme-speed .slot-container {
    border: 2px solid rgba(77, 227, 255, 0.88) !important;
    box-shadow:
        0 0 35px rgba(77, 227, 255, 0.32),
        0 0 70px rgba(77, 227, 255, 0.16),
        0 18px 45px rgba(0,0,0,0.55) !important;
}

body.vip-theme-speed .grid-wrapper {
    border: 1px solid rgba(77, 227, 255, 0.38) !important;
    box-shadow:
        inset 0 0 28px rgba(77, 227, 255, 0.10),
        0 0 18px rgba(77, 227, 255, 0.07) !important;
}

body.vip-theme-speed .cell {
    border: 1px solid rgba(77, 227, 255, 0.24) !important;
}

body.vip-theme-speed .btn-spin {
    background: linear-gradient(180deg, #7cf0ff, #24cfff) !important;
    color: #021820 !important;
    box-shadow:
        0 0 20px rgba(77, 227, 255, 0.42),
        0 6px 0 #0c89a7 !important;
}

body.vip-theme-speed .slot-title,
body.vip-theme-speed .message-box,
body.vip-theme-speed .win-title,
body.vip-theme-speed .win-amount {
    color: #7cf0ff !important;
    text-shadow:
        0 0 16px rgba(77, 227, 255, 0.42),
        0 0 32px rgba(77, 227, 255, 0.18) !important;
}

body.vip-theme-speed .slot-container.win-pulse {
    animation: none !important;
    box-shadow:
        0 0 45px rgba(77, 227, 255, 0.38),
        0 0 85px rgba(77, 227, 255, 0.18),
        0 18px 45px rgba(0,0,0,0.55) !important;
}


.daily-calendar-content {
    width: min(1100px, 95vw);
    max-height: 90vh;
    overflow-y: auto;
    text-align: left;
    position: relative;
}

.daily-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(180deg, #ff3bd4, #b30086);
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 59, 212, 0.35);
}

.daily-calendar-header {
    margin-bottom: 20px;
}

.daily-calendar-header h2 {
    font-size: 38px;
    color: white;
    margin-bottom: 10px;
}

.daily-calendar-header p {
    color: rgba(255,255,255,0.75);
    font-size: 16px;
}

.daily-calendar-badge {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 211, 106, 0.4);
    color: #ffd36a;
    margin-bottom: 16px;
    background: rgba(255,255,255,0.05);
}

.daily-calendar-topbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px 20px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    flex-wrap: wrap;
}

.daily-calendar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.daily-card {
    min-height: 170px;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
    transition: 0.25s ease;
}

.daily-card.day-claimed {
    border-color: rgba(52, 255, 156, 0.55);
    box-shadow: 0 0 22px rgba(52, 255, 156, 0.15);
}

.daily-card.day-current {
    border-color: rgba(255, 211, 106, 0.7);
    box-shadow: 0 0 24px rgba(255, 211, 106, 0.18);
    transform: translateY(-2px);
}

.daily-card.day-locked {
    opacity: 0.6;
}

.daily-day {
    font-size: 20px;
    color: #fff;
    margin-bottom: 18px;
}

.daily-gem {
    font-size: 44px;
    margin-bottom: 10px;
}

.daily-amount {
    font-size: 34px;
    color: #ffd36a;
    margin-bottom: 10px;
}

.daily-subtext {
    color: rgba(255,255,255,0.65);
    font-size: 14px;
}

.daily-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.daily-status.claimed {
    background: rgba(52,255,156,0.18);
    color: #34ff9c;
}

.daily-status.current {
    background: rgba(255,211,106,0.18);
    color: #ffd36a;
}

.daily-status.locked {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.45);
}

.daily-calendar-footer {
    margin-top: 24px;
    text-align: center;
}

.daily-vip-hint {
    color: #ffd36a;
    opacity: 0.95;
}

@media (max-width: 900px) {
    .daily-calendar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .daily-calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .daily-calendar-header h2 {
        font-size: 28px;
    }

    .daily-amount {
        font-size: 28px;
    }
}


.win-cell {
    animation: winGlow 0.8s ease-in-out infinite alternate;
    box-shadow: 
        0 0 10px rgba(255, 215, 0, 0.7),
        0 0 20px rgba(255, 0, 200, 0.4);
    border: 2px solid #ffd700 !important;
    z-index: 3;
}

@keyframes winGlow {
    from {
        transform: scale(1);
        filter: brightness(1);
    }
    to {
        transform: scale(1.08);
        filter: brightness(1.3);
    }
}

.win-cell-strong {
    animation: winPulseStrong 0.55s ease-in-out infinite alternate;
    box-shadow:
        0 0 14px rgba(255, 215, 0, 0.95),
        0 0 28px rgba(255, 0, 200, 0.55),
        inset 0 0 10px rgba(255,255,255,0.18);
    border: 2px solid #ffd700 !important;
    z-index: 4;
}

.slot-win-flash {
    animation: slotFlash 0.5s ease-in-out 2;
}

@keyframes winPulseStrong {
    from {
        transform: scale(1);
        filter: brightness(1);
    }
    to {
        transform: scale(1.12);
        filter: brightness(1.45);
    }
}

@keyframes slotFlash {
    0% {
        box-shadow:
            0 18px 45px rgba(0,0,0,0.45),
            0 0 0 rgba(255,215,0,0);
    }
    50% {
        box-shadow:
            0 18px 45px rgba(0,0,0,0.45),
            0 0 35px rgba(255,215,0,0.65),
            0 0 70px rgba(255,0,200,0.28);
    }
    100% {
        box-shadow:
            0 18px 45px rgba(0,0,0,0.45),
            0 0 0 rgba(255,215,0,0);
    }
}

.btn-spin.ready-pulse {
    animation: spinReadyPulse 1.2s ease-in-out infinite;
}

@keyframes spinReadyPulse {
    0%, 100% {
        transform: translateY(0);
        filter: brightness(1);
    }
    50% {
        transform: translateY(-1px);
        filter: brightness(1.08);
    }
}

.btn-buy-gems:hover {
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 0 24px rgba(255, 211, 106, 0.55);
    filter: brightness(1.05);
}

.gems-shop-header h2 {
    font-size: 34px;
    color: #fff;
    margin-bottom: 8px;
}

.gems-shop-header p {
    color: rgba(255,255,255,0.72);
    font-size: 15px;
}




.gems-pack-card:hover {
    transform: translateY(-4px) scale(1.015);
    border-color: rgba(255, 211, 106, 0.45);
    box-shadow: 0 0 24px rgba(255, 59, 212, 0.18), 0 0 26px rgba(255, 211, 106, 0.18);
}

.gems-pack-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    color: #fff;
}

.gems-pack-title {
    font-size: 18px;
    color: #ffd36a;
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.gems-pack-amount {
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.gems-pack-bonus {
    font-size: 14px;
    color: #34ff9c;
    margin-bottom: 10px;
}

.gems-pack-price {
    font-size: 28px;
    color: #ffd36a;
    margin-bottom: 10px;
    text-shadow: 0 0 12px rgba(255, 211, 106, 0.25);
}

.gems-pack-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.72);
    margin-bottom: 18px;
    min-height: 36px;
}


.gems-pack-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 0 22px rgba(255, 59, 212, 0.45);
}

.gems-pack-card.popular {
    border-color: rgba(255, 59, 212, 0.45);
    box-shadow: 0 0 26px rgba(255, 59, 212, 0.18);
}

.gems-pack-card.best {
    border-color: rgba(255, 211, 106, 0.45);
    box-shadow: 0 0 24px rgba(255, 211, 106, 0.16);
}

.gems-pack-card.vip {
    background: linear-gradient(180deg, rgba(255, 211, 106, 0.12), rgba(255,255,255,0.04));
    border-color: rgba(255, 211, 106, 0.55);
    box-shadow: 0 0 28px rgba(255, 211, 106, 0.22);
}

@media (max-width: 700px) {
    .gems-packs-grid {
        grid-template-columns: 1fr;
    }

    .gems-pack-amount {
        font-size: 30px;
    }

    .gems-pack-price {
        font-size: 24px;
    }
}


.gems-pack-card.popular {
    border-color: rgba(255, 59, 212, 0.55);
    box-shadow:
        0 0 30px rgba(255, 59, 212, 0.22),
        0 0 50px rgba(255, 59, 212, 0.10);
    transform: scale(1.02);
}

.gems-pack-card.vip {
    background:
        radial-gradient(circle at top, rgba(255, 211, 106, 0.12), transparent 35%),
        linear-gradient(180deg, rgba(255, 211, 106, 0.10), rgba(255,255,255,0.04));
    border-color: rgba(255, 211, 106, 0.65);
    box-shadow:
        0 0 32px rgba(255, 211, 106, 0.22),
        0 0 55px rgba(255, 211, 106, 0.10);
}

.gems-pack-card.popular .gems-pack-btn {
    background: linear-gradient(135deg, #ff4bd8, #c40092);
    box-shadow: 0 0 22px rgba(255, 59, 212, 0.42);
}

.gems-pack-card.vip .gems-pack-btn {
    background: linear-gradient(135deg, #ffd36a, #ffb800);
    color: #2a1400;
    box-shadow: 0 0 22px rgba(255, 211, 106, 0.40);
}

.gems-pack-old-price {
    font-size: 16px;
    color: rgba(255,255,255,0.35);
    text-decoration: line-through;
    margin-bottom: 4px;
}

.gems-pack-discount {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #ff4d6d, #ff1744);
    box-shadow: 0 0 14px rgba(255, 77, 109, 0.35);
    z-index: 2;
}

.gems-pack-discount.hot {
    background: linear-gradient(135deg, #ff6a00, #ff2d55);
    box-shadow: 0 0 16px rgba(255, 90, 0, 0.35);
}

.gems-pack-discount.gold {
    background: linear-gradient(135deg, #ffd36a, #ffb800);
    color: #2a1400;
    box-shadow: 0 0 16px rgba(255, 211, 106, 0.35);
}

.gems-pack-discount.vip-sale {
    background: linear-gradient(135deg, #fff1a8, #ffd36a);
    color: #2a1400;
    box-shadow: 0 0 18px rgba(255, 211, 106, 0.4);
}

.gems-pack-old-price {
    font-size: 16px;
    color: rgba(255,255,255,0.35);
    text-decoration: line-through;
    margin-bottom: 4px;
}


.purchase-confirm-content {
    width: min(520px, 92vw);
    position: relative;
    padding: 30px;
}

.purchase-confirm-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-family: inherit;
    background: rgba(255,255,255,0.08);
    color: white;
}

.purchase-confirm-header {
    text-align: center;
    margin-bottom: 22px;
}

.purchase-confirm-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 211, 106, 0.12);
    border: 1px solid rgba(255, 211, 106, 0.35);
    color: #ffd36a;
    font-size: 12px;
    letter-spacing: 1px;
}

.purchase-confirm-header h2 {
    font-size: 30px;
    margin-bottom: 8px;
}

.purchase-confirm-header p {
    font-size: 14px;
    color: rgba(255,255,255,0.72);
}

.purchase-confirm-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.purchase-confirm-pack {
    font-size: 18px;
    color: #ffd36a;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.purchase-confirm-amount {
    font-size: 34px;
    color: #fff;
    margin-bottom: 10px;
}

.purchase-confirm-bonus {
    font-size: 15px;
    color: #34ff9c;
    margin-bottom: 12px;
}

.purchase-confirm-price {
    font-size: 32px;
    color: #ffd36a;
    text-shadow: 0 0 12px rgba(255, 211, 106, 0.25);
}

.purchase-confirm-actions {
    display: flex;
    gap: 12px;
}

.purchase-back-btn,
.purchase-pay-btn {
    flex: 1;
    border: none;
    border-radius: 14px;
    padding: 14px 16px;
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.purchase-back-btn {
    background: rgba(255,255,255,0.08);
    color: white;
    border: 1px solid rgba(255,255,255,0.14);
}

.purchase-pay-btn {
    background: linear-gradient(135deg, #ff3bd4, #b30086);
    color: white;
    box-shadow: 0 0 18px rgba(255, 59, 212, 0.35);
}

.purchase-back-btn:hover,
.purchase-pay-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

@media (max-width: 560px) {
    .purchase-confirm-actions {
        flex-direction: column;
    }
}

.btn-profile {
    border: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
    color: white;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-profile:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 16px rgba(255,255,255,0.12);
}

.auth-modal-content {
    width: min(520px, 92vw);
    position: relative;
    padding: 30px;
}

.auth-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-family: inherit;
    background: rgba(255,255,255,0.08);
    color: white;
}

.auth-header {
    text-align: center;
    margin-bottom: 20px;
}

.auth-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 211, 106, 0.12);
    border: 1px solid rgba(255, 211, 106, 0.35);
    color: #ffd36a;
    font-size: 12px;
    letter-spacing: 1px;
}

.auth-header h2 {
    font-size: 30px;
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 14px;
    color: rgba(255,255,255,0.72);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-form input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: white;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.auth-btn {
    border: none;
    border-radius: 14px;
    padding: 14px 16px;
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    background: linear-gradient(135deg, #ff3bd4, #b30086);
    color: white;
    box-shadow: 0 0 18px rgba(255, 59, 212, 0.35);
}

.auth-btn-secondary {
    background: rgba(255,255,255,0.08);
    color: white;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: none;
}


.leaderboard-theme-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.leaderboard-theme-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: white;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: 0.2s ease;
}

.leaderboard-theme-btn:hover,
.leaderboard-theme-btn.active {
    background: linear-gradient(135deg, rgba(255, 211, 106, 0.22), rgba(255, 59, 212, 0.18));
    color: #fff;
    border-color: rgba(255, 211, 106, 0.45);
    box-shadow: 0 0 18px rgba(255, 211, 106, 0.18);
    transform: translateY(-1px);
}

.current-user-row {
    background: linear-gradient(90deg, rgba(77, 227, 255, 0.12), rgba(255, 211, 106, 0.08)) !important;
    box-shadow: inset 0 0 0 1px rgba(77, 227, 255, 0.20);
}

.current-user-row:hover {
    background: linear-gradient(90deg, rgba(77, 227, 255, 0.18), rgba(255, 211, 106, 0.10)) !important;
}

.me-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: bold;
    color: #001018;
    background: linear-gradient(180deg, #4de3ff, #9af2ff);
    vertical-align: middle;
}

.current-user-score {
    color: #7ff5ff !important;
    text-shadow: 0 0 12px rgba(77, 227, 255, 0.18);
}


.leaderboard-panel-pretty {
    width: 100%;
    margin-top: 20px;
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 18px 45px rgba(0,0,0,0.35), 0 0 30px rgba(255, 211, 106, 0.08);
    backdrop-filter: blur(10px);
}

.leaderboard-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.leaderboard-panel-head h3 {
    font-size: 24px;
    color: var(--gold);
    margin-bottom: 6px;
}

.leaderboard-subtext {
    color: rgba(255,255,255,0.65);
    font-size: 14px;
}

.leaderboard-table-wrap {
    overflow: hidden;
    border-radius: 18px;
    background: rgba(0,0,0,0.24);
    border: 1px solid rgba(255,255,255,0.08);
}

.pretty-table {
    width: 100%;
    border-collapse: collapse;
}

.pretty-table thead {
    background: linear-gradient(90deg, rgba(255, 211, 106, 0.14), rgba(255, 59, 212, 0.10));
}

.pretty-table th {
    text-align: left;
    padding: 16px 14px;
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pretty-table td {
    padding: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    vertical-align: middle;
}

.pretty-table tbody tr:last-child td {
    border-bottom: none;
}

.leaderboard-row {
    transition: 0.2s ease;
}

.leaderboard-row:hover {
    background: rgba(255,255,255,0.04);
}

.top-row {
    background: linear-gradient(90deg, rgba(255, 211, 106, 0.06), rgba(255,255,255,0.02));
}

.leaderboard-rank {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: white;
    font-size: 18px;
}

.rank-gold {
    background: linear-gradient(180deg, rgba(255,215,0,0.22), rgba(255,179,0,0.10));
    border-color: rgba(255,215,0,0.35);
    box-shadow: 0 0 15px rgba(255,215,0,0.15);
}

.rank-silver {
    background: linear-gradient(180deg, rgba(210,210,210,0.22), rgba(170,170,170,0.10));
    border-color: rgba(220,220,220,0.25);
}

.rank-bronze {
    background: linear-gradient(180deg, rgba(205,127,50,0.26), rgba(140,70,20,0.10));
    border-color: rgba(205,127,50,0.30);
}

.rank-default {
    color: rgba(255,255,255,0.85);
}

.leaderboard-player {
    display: flex;
    align-items: center;
    gap: 12px;
}

.leaderboard-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 59, 212, 0.24), rgba(77, 227, 255, 0.18));
    border: 1px solid rgba(255,255,255,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 0 18px rgba(255, 59, 212, 0.10);
}

.leaderboard-player-meta {
    display: flex;
    flex-direction: column;
}

.leaderboard-player-name {
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.leaderboard-player-theme {
    color: rgba(255,255,255,0.50);
    font-size: 12px;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.leaderboard-score {
    font-size: 18px;
    font-weight: bold;
    color: var(--gold);
    text-align: right;
    white-space: nowrap;
}

.leaderboard-score span {
    color: white;
    opacity: 0.9;
}

.leaderboard-empty {
    padding: 30px 10px !important;
}

.leaderboard-empty-box {
    text-align: center;
    padding: 24px 10px;
}

.leaderboard-empty-icon {
    font-size: 34px;
    margin-bottom: 10px;
}

.leaderboard-empty-title {
    color: white;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 6px;
}

.leaderboard-empty-subtitle {
    color: rgba(255,255,255,0.55);
    font-size: 14px;
}

@media (max-width: 600px) {
    .pretty-table th,
    .pretty-table td {
        padding: 12px 10px;
    }

    .leaderboard-player-name {
        font-size: 14px;
    }

    .leaderboard-score {
        font-size: 15px;
    }

    .leaderboard-rank {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-radius: 12px;
    }

    .leaderboard-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}



.leaderboard-mode-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.leaderboard-mode-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: white;
    padding: 10px 16px;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    transition: 0.2s ease;
}

.leaderboard-mode-btn:hover,
.leaderboard-mode-btn.active {
    background: linear-gradient(135deg, rgba(255, 211, 106, 0.22), rgba(255, 59, 212, 0.16));
    border-color: rgba(255, 211, 106, 0.45);
    box-shadow: 0 0 18px rgba(255, 211, 106, 0.14);
}



.my-rank-card {
    width: 100%;
    margin: 18px 0 16px;
    padding: 18px 20px;
    border-radius: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(77, 227, 255, 0.12), rgba(255, 211, 106, 0.10));
    border: 1px solid rgba(77, 227, 255, 0.22);
    box-shadow: 0 12px 30px rgba(0,0,0,0.26), 0 0 18px rgba(77, 227, 255, 0.08);
    backdrop-filter: blur(10px);
}

.my-rank-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.my-rank-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
}

.my-rank-title {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    letter-spacing: 1px;
}

.my-rank-subtitle {
    margin-top: 4px;
    font-size: 17px;
    font-weight: bold;
    color: #fff;
}

.my-rank-right {
    text-align: right;
}

.my-rank-position {
    font-size: 28px;
    color: var(--gold);
    font-weight: bold;
    line-height: 1;
}

.my-rank-value {
    margin-top: 6px;
    font-size: 16px;
    color: #7ff5ff;
    font-weight: bold;
}

@media (max-width: 600px) {
    .my-rank-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .my-rank-right {
        text-align: left;
    }
}
#mines-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    max-width: 600px;
    width: 100%;
}

.mine-cell {
    aspect-ratio: 1 / 1;
}


/* =========================
   VIP CIRCLE WHEEL
========================= */

.vip-wheel-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
}

.vip-wheel-panel,
.vip-wheel-sidecard {
    background:
        radial-gradient(circle at top, rgba(255,255,255,0.08), transparent 35%),
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.35), var(--shadow-pink);
    backdrop-filter: blur(12px);
}

.vip-wheel-panel {
    padding: 22px 18px 24px;
    text-align: center;
}

.vip-wheel-topbar {
    margin-bottom: 18px;
}

.vip-wheel-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,211,106,0.24), rgba(255,184,0,0.12));
    border: 1px solid rgba(255,211,106,0.4);
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-gold);
}

.vip-wheel-subtext {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.45;
}

.vip-wheel-stage {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 12px 0 20px;
}

.vip-wheel-wrap {
    position: relative;
    width: min(92vw, 440px);
    height: min(92vw, 440px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vip-wheel {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid rgba(210, 220, 235, 0.55);
    box-shadow:
        inset 0 0 0 10px rgba(10, 16, 28, 0.55),
        inset 0 0 40px rgba(255,255,255,0.06),
        0 16px 40px rgba(0,0,0,0.45),
        0 0 26px rgba(255, 211, 106, 0.12);
    transition: transform 5.4s cubic-bezier(0.08, 0.82, 0.17, 1);
    overflow: hidden;
    background: #1b1631;
}

.vip-wheel::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    pointer-events: none;
}

.vip-wheel-center {
    position: absolute;
    width: 34%;
    height: 34%;
    min-width: 120px;
    min-height: 120px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 35%),
        linear-gradient(180deg, #2f2036, #120d1d 70%);
    border: 6px solid rgba(230, 235, 245, 0.35);
    box-shadow:
        inset 0 0 24px rgba(255,255,255,0.05),
        0 0 22px rgba(255, 140, 80, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
}

.vip-wheel-core-glow {
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,140,80,0.26), transparent 68%);
    filter: blur(8px);
}

.vip-wheel-core-text {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    line-height: 1.05;
    font-size: 22px;
    letter-spacing: 1px;
    text-shadow: 0 0 16px rgba(255,140,80,0.35);
}

.vip-wheel-arrow {
    position: absolute;
    right: calc(50% - min(46vw, 220px) - 20px);
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 26px solid transparent;
    border-bottom: 26px solid transparent;
    border-right: 38px solid #f4f6fb;
    filter: drop-shadow(0 0 14px rgba(255,255,255,0.25));
    z-index: 6;
}

.vip-wheel-arrow::after {
    content: "";
    position: absolute;
    top: -18px;
    left: 8px;
    width: 0;
    height: 0;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-right: 26px solid #d83c2f;
}

.vip-wheel-segment {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 46%;
    height: 46%;
    transform-origin: 0% 0%;
    clip-path: polygon(0 0, 100% 10%, 100% 90%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 22px;
}

.vip-wheel-segment.common {
    background: linear-gradient(135deg, rgba(112, 75, 185, 0.95), rgba(195, 52, 194, 0.95));
}

.vip-wheel-segment.rare {
    background: linear-gradient(135deg, rgba(81, 90, 204, 0.96), rgba(110, 62, 228, 0.96));
}

.vip-wheel-segment.epic {
    background: linear-gradient(135deg, rgba(210, 56, 205, 0.96), rgba(138, 49, 208, 0.96));
}

.vip-wheel-segment.legendary {
    background: linear-gradient(135deg, rgba(226, 72, 47, 0.98), rgba(190, 32, 38, 0.98));
}

.vip-wheel-segment-content {
    width: 88px;
    text-align: center;
    transform: rotate(90deg);
    color: #fff;
    text-shadow: 0 0 10px rgba(0,0,0,0.35);
}

.vip-wheel-segment-icon {
    font-size: 30px;
    margin-bottom: 6px;
}

.vip-wheel-segment-label {
    font-size: 11px;
    line-height: 1.15;
}

.vip-wheel-segment.glow {
    box-shadow: inset 0 0 28px rgba(255,255,255,0.16), 0 0 30px rgba(255,211,106,0.18);
}

.btn-wheel-large {
    min-width: 240px;
    font-size: 18px;
}

.wheel-result {
    margin-top: 18px;
    min-height: 30px;
    font-size: 20px;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255,211,106,0.3);
    transition: all 0.25s ease;
}

.vip-wheel-sidecard {
    padding: 18px;
}

.vip-wheel-side-title {
    font-size: 20px;
    color: var(--gold);
    margin-bottom: 14px;
    text-align: center;
}

.vip-wheel-rewards-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.vip-wheel-preview-item {
    border-radius: 14px;
    padding: 12px 10px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: white;
    min-height: 88px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: inset 0 0 14px rgba(255,255,255,0.04);
}

.vip-wheel-preview-item.common {
    background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
}

.vip-wheel-preview-item.rare {
    background: linear-gradient(180deg, rgba(77,227,255,0.18), rgba(77,227,255,0.07));
    border-color: rgba(77,227,255,0.35);
}

.vip-wheel-preview-item.epic {
    background: linear-gradient(180deg, rgba(199,125,255,0.22), rgba(199,125,255,0.08));
    border-color: rgba(199,125,255,0.45);
}

.vip-wheel-preview-item.legendary {
    background: linear-gradient(180deg, rgba(255,211,106,0.22), rgba(255,184,0,0.09));
    border-color: rgba(255,211,106,0.6);
    box-shadow: 0 0 16px rgba(255,211,106,0.14);
}

.vip-wheel-preview-icon {
    font-size: 22px;
    margin-bottom: 6px;
}

.vip-wheel-preview-label {
    font-size: 12px;
    line-height: 1.2;
}

.vip-wheel-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.vip-wheel-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: 13px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.common { background: rgba(255,255,255,0.4); }
.legend-dot.rare { background: #4de3ff; }
.legend-dot.epic { background: #c77dff; }
.legend-dot.legendary { background: #ffd36a; }

.vip-wheel-panel.win-legendary {
    animation: vipLegendPulse 1s ease-in-out 3;
}

@keyframes vipLegendPulse {
    0%, 100% {
        box-shadow: 0 18px 45px rgba(0,0,0,0.35), 0 0 0 rgba(255,211,106,0.0);
    }
    50% {
        box-shadow: 0 18px 45px rgba(0,0,0,0.35), 0 0 34px rgba(255,211,106,0.42);
    }
}

@media (min-width: 900px) {
    .vip-wheel-layout {
        grid-template-columns: 1.15fr 0.85fr;
        align-items: start;
    }
}

@media (max-width: 640px) {
    .vip-wheel-wrap {
        width: min(94vw, 360px);
        height: min(94vw, 360px);
    }

    .vip-wheel-arrow {
        right: calc(50% - min(47vw, 180px) - 16px);
        border-top-width: 20px;
        border-bottom-width: 20px;
        border-right-width: 28px;
    }

    .vip-wheel-arrow::after {
        top: -14px;
        left: 6px;
        border-top-width: 14px;
        border-bottom-width: 14px;
        border-right-width: 20px;
    }

    .vip-wheel-segment-content {
        width: 68px;
    }

    .vip-wheel-segment-icon {
        font-size: 22px;
    }

    .vip-wheel-segment-label {
        font-size: 9px;
    }

    .vip-wheel-core-text {
        font-size: 18px;
    }
}

.legend-dot.mythic {
    background: #ff3b3b;
    box-shadow: 0 0 10px rgba(255, 59, 59, 0.55);
}

.vip-wheel-segment.mythic {
    background: linear-gradient(135deg, rgba(255,70,70,0.98), rgba(145,0,0,0.98));
}

.vip-wheel-preview-item.mythic {
    background: linear-gradient(180deg, rgba(255,70,70,0.22), rgba(145,0,0,0.10));
    border-color: rgba(255,70,70,0.55);
    box-shadow: 0 0 16px rgba(255,70,70,0.18);
}

.vip-wheel-panel.win-mythic {
    animation: vipMythicPulse 1s ease-in-out 4;
}

@keyframes vipMythicPulse {
    0%, 100% {
        box-shadow: 0 18px 45px rgba(0,0,0,0.35), 0 0 0 rgba(255,70,70,0);
    }
    50% {
        box-shadow: 0 18px 45px rgba(0,0,0,0.35), 0 0 38px rgba(255,70,70,0.5);
    }
}

/* Чтобы справа реально влезали все награды */
.vip-wheel-rewards-preview {
    grid-template-columns: 1fr 1fr;
    max-height: 470px;
    overflow-y: auto;
    padding-right: 4px;
}



/* ===== FIX HEADER MOBILE ===== */

.logo {
    flex-shrink: 0;
}

.balance-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 100%;
}
.btn-buy-gems,
.btn-profile {
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    padding: 10px 14px;
    min-height: 42px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    color: #fff;
    white-space: nowrap;
}

.btn-buy-gems {
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    color: #1b1200;
    font-weight: 700;
    box-shadow: var(--shadow-gold);
}

#lobby-balance {
    white-space: nowrap;
}


.btn-profile {
    background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
    font-weight: 700;
}

.btn-profile:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(255,255,255,0.12);
    filter: brightness(1.05);
}

@media (max-width: 600px) {
    .screen {
        padding: 12px;
    }

    .header-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }

    .logo {
        font-size: 20px;
        text-align: center;
    }

    .header-actions {
        justify-content: center;
        width: 100%;
    }

    .balance-container,
    .btn-buy-gems,
    .btn-profile {
        flex: 1 1 100%;
        justify-content: center;
        width: 100%;
    }
}

/* ===== FIX HEADER MOBILE FINAL ===== */
@media (max-width: 600px) {

    .header-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }

    .logo {
        text-align: center;
        font-size: 20px;
    }

    .balance-container {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        padding: 10px;
        border-radius: 14px;
    }

    .balance-container button {
        flex: 1 1 100%;
        width: 100%;
        margin-top: 6px;
    }

    .btn-buy-gems,
    .btn-profile {
        width: 100%;
        min-height: 44px;
    }
}


/* ===== HEADER REBUILD ===== */
.header-bar {
    width: 100%;
    margin-bottom: 20px;
    padding: 14px;
    background:
        radial-gradient(circle at top, rgba(255, 211, 106, 0.08), transparent 35%),
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border-radius: 24px;
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-pink), inset 0 1px 0 rgba(255,255,255,0.08);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

.logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffe27a, #ffd36a);
    box-shadow:
        0 0 20px rgba(255, 211, 106, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.35);
    flex: 0 0 auto;
}

.logo-text {
    font-size: 24px;
    line-height: 0.95;
    letter-spacing: 1px;
    color: #ffd36a;
    text-shadow: 0 0 18px rgba(255, 211, 106, 0.18);
    flex: 0 1 auto;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 1 auto;
    min-width: 0;
}

.balance-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
    border: 1px solid rgba(255, 211, 106, 0.35);
    box-shadow: var(--shadow-gold);
    white-space: nowrap;
    flex: 0 0 auto;
}

.gem-icon {
    font-size: 18px;
    line-height: 1;
}

#lobby-balance {
    font-size: 22px;
    line-height: 1;
    color: #fff;
}

.btn-buy-gems,
.btn-profile {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    white-space: nowrap;
    flex: 0 0 auto;
}

.btn-buy-gems {
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    color: #1b1200;
    box-shadow: 0 6px 0 #a56e00, var(--shadow-gold);
}

.btn-profile {
    background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
    color: #fff;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 0 18px rgba(255,255,255,0.08);
}

.btn-buy-gems:hover,
.btn-profile:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.btn-buy-gems:active,
.btn-profile:active {
    transform: translateY(1px);
}

/* desktop/tablet */
@media (max-width: 900px) {
    .logo-text {
        font-size: 21px;
    }

    #lobby-balance {
        font-size: 20px;
    }

    .btn-buy-gems,
    .btn-profile {
        padding: 0 14px;
        font-size: 13px;
    }
}

/* mobile */
@media (max-width: 600px) {
    .screen {
        padding: 12px;
    }

    .header-bar {
        padding: 12px;
        border-radius: 20px;
    }

    .header-top {
        flex-direction: column;
        align-items: stretch;
    }

    .logo-block {
        justify-content: flex-start;
    }

    .logo-text {
        font-size: 18px;
    }

    .logo-icon {
        width: 24px;
        height: 24px;
        border-radius: 7px;
    }

    .header-right {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .balance-container {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 46px;
        padding: 0 14px;
    }

    .btn-buy-gems,
    .btn-profile {
        width: 100%;
        min-height: 46px;
        padding: 0 12px;
        font-size: 13px;
    }

    #lobby-balance {
        font-size: 20px;
    }
}

/* very small phones */
@media (max-width: 380px) {
    .header-right {
        grid-template-columns: 1fr;
    }

    .btn-buy-gems,
    .btn-profile,
    .balance-container {
        grid-column: auto;
    }
}

/* ===== HEADER FINAL FIX ===== */

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 22px;
    line-height: 1;
    color: #ffd36a;
}

.logo-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: linear-gradient(180deg, #ffe27a, #ffd36a);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {

    .header-bar {
        flex-direction: column;
        padding: 12px;
    }

    .header-top {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .header-right {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .balance-container {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
    }

    .btn-buy-gems,
    .btn-profile {
        width: 100%;
        min-height: 44px;
    }

    .logo-block {
        justify-content: center;
    }
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

html, body {
    overflow-x: hidden;
}

@media (max-width: 600px) {
    .screen {
        max-width: 100%;
        padding: 12px;
    }

    .tabs-shell {
        width: 100%;
        max-width: 100%;
    }
}



.win-cell {
    box-shadow:
        0 0 0 2px rgba(255, 211, 106, 0.95),
        0 0 18px rgba(255, 211, 106, 0.65);
    transform: scale(1.03);
    transition: 0.2s ease;
}




.collection-topbar {
    width: 100%;
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.collection-stat {
    flex: 1;
    min-width: 160px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: #fff;
}

.collection-theme-picker {
    width: 100%;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.collection-theme-picker select {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(20, 8, 30, 0.95);
    color: #fff;
    font-family: inherit;
}

.collection-summary {
    width: 100%;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 211, 106, 0.08);
    border: 1px solid rgba(255, 211, 106, 0.25);
    color: var(--gold);
}

.collection-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.collection-card {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    align-items: center;
}

.collection-card img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 12px;
    background: #12091a;
}

.collection-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.collection-card-title {
    font-size: 15px;
    color: #fff;
}

.collection-card-meta {
    font-size: 13px;
    color: rgba(255,255,255,0.72);
}

.collection-progress-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    overflow: hidden;
}

.collection-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4de3ff, #ffd36a);
    width: 0%;
}

.collection-rarity-common { color: #d7d7d7; }
.collection-rarity-rare { color: #4de3ff; }
.collection-rarity-epic { color: #c86cff; }
.collection-rarity-legendary { color: #ffd36a; }

@media (max-width: 600px) {
    .collection-card {
        grid-template-columns: 72px 1fr;
    }

    .collection-card img {
        width: 72px;
        height: 72px;
    }
}


.reward-preview {
    width: 100%;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 0 18px rgba(255, 211, 106, 0.12);
}

.reward-preview-image {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    background: #12091a;
}

.reward-preview-title {
    color: #fff;
    font-size: 15px;
}

.reward-preview-meta {
    color: var(--gold);
    font-size: 14px;
    margin-top: 4px;
}

.reward-preview-extra {
    color: var(--secondary);
    font-size: 13px;
    margin-top: 4px;
}


.collection-group {
    padding: 16px;
    margin-bottom: 10px;
    border-radius: 14px;
    background: rgba(255,255,255,0.07);
    cursor: pointer;
    color: #fff;
}

.collection-theme-card {
    padding: 14px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    color: #fff;
    cursor: pointer;
}

.path-node {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-right: 10px;
}

.path-node img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
}

.node-stage {
    font-size: 12px;
    color: #ffd36a;
}

.collection-group-card,
.collection-theme-card {
    width: 100%;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    cursor: pointer;
    transition: 0.2s ease;
}

.collection-group-card:hover,
.collection-theme-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 211, 106, 0.45);
    box-shadow: 0 0 18px rgba(255, 211, 106, 0.14);
}

.collection-group-title,
.collection-theme-title,
.collection-subheader-title {
    color: #fff;
    font-size: 18px;
}

.collection-group-meta,
.collection-theme-progress {
    margin-top: 6px;
    color: rgba(255,255,255,0.72);
    font-size: 14px;
}

.collection-subheader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 12px 0 16px;
    flex-wrap: wrap;
}

.collection-back-btn {
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    font-family: inherit;
    cursor: pointer;
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.collection-path {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.path-node {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    text-align: center;
}

.path-node img {
    width: 100%;
    max-width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto 10px;
    display: block;
}

.node-title {
    color: #fff;
    font-size: 14px;
}

.node-rarity,
.node-stage,
.node-progress {
    margin-top: 4px;
    font-size: 13px;
}

@media (max-width: 600px) {
    .collection-path {
        grid-template-columns: 1fr 1fr;
    }
}

#collection-themes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.collection-theme-card {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    cursor: pointer;
    transition: 0.2s ease;
}

.collection-theme-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 211, 106, 0.45);
    box-shadow: 0 0 18px rgba(255, 211, 106, 0.14);
}

.collection-theme-title,
.collection-subheader-title {
    color: #fff;
    font-size: 18px;
}

.collection-theme-progress {
    margin-top: 6px;
    color: rgba(255,255,255,0.72);
    font-size: 14px;
}

.collection-subheader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 12px 0 16px;
    flex-wrap: wrap;
}

.collection-back-btn {
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    font-family: inherit;
    cursor: pointer;
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.collection-path {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.path-node {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    text-align: center;
}

.path-node img {
    width: 100%;
    max-width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto 10px;
    display: block;
}

.node-title {
    color: #fff;
    font-size: 14px;
}

.node-rarity,
.node-stage,
.node-progress {
    margin-top: 4px;
    font-size: 13px;
}

@media (max-width: 600px) {
    #collection-themes,
    .collection-path {
        grid-template-columns: 1fr;
    }
}

.collection-page {
    width: 100%;
    margin: 0 auto;
}

.collection-page-subtitle {
    text-align: center;
    color: var(--text-soft);
    margin-bottom: 20px;
    font-size: 15px;
}

.collection-theme-list {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.theme-showcase-card {
    width: 100%;
    min-height: 120px;
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.12);
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 35%),
        linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    box-shadow: 0 10px 28px rgba(0,0,0,0.28);
    transition: 0.22s ease;
}

.theme-showcase-card:hover {
    transform: translateY(-4px) scale(1.012);
    border-color: rgba(255,211,106,0.45);
    box-shadow:
        0 18px 34px rgba(0,0,0,0.34),
        0 0 24px rgba(255,211,106,0.14);
}
.theme-showcase-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}


@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.collection-detail-hero.animate-in {
    animation: fadeSlideUp 0.35s ease forwards;
}

.collection-card-detail {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
}

.collection-card-detail.animate-in {
    animation: fadeSlideUp 0.42s ease forwards;
}

.collection-card-detail:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow:
        0 14px 28px rgba(0,0,0,0.30),
        0 0 18px rgba(255,211,106,0.10);
    transition: 0.22s ease;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(12px);
    }
}

.collection-detail-hero {
    opacity: 0;
}

.collection-detail-hero.animate-in {
    animation: fadeSlideUp 0.35s ease forwards;
}

.collection-card-detail {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
}

.collection-card-detail.animate-in {
    animation: fadeSlideUp 0.42s ease forwards;
}

.collection-detail-view.closing .collection-detail-hero,
.collection-detail-view.closing .collection-card-detail {
    animation: fadeSlideDown 0.22s ease forwards;
}
.collection-card-detail-status.in-progress {
    background: rgba(77, 227, 255, 0.12);
    color: #7eefff;
}

.theme-showcase-cover-wrap {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.08);
}

.theme-showcase-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.theme-showcase-main {
    min-width: 0;
}

.theme-showcase-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.theme-showcase-title {
    font-size: 28px;
    color: #fff;
    line-height: 1.05;
}

.theme-showcase-percent {
    font-size: 24px;
    color: var(--text-white);
    opacity: 0.9;
}

.theme-showcase-subtitle {
    color: var(--text-soft);
    font-size: 15px;
    margin-bottom: 12px;
}

.theme-showcase-progress {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    overflow: hidden;
}

.theme-showcase-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #3aa8ff, #69d3ff);
}

.collection-detail-top {
    width: 100%;
    margin-bottom: 14px;
}

.collection-back-btn {
    border: none;
    border-radius: 14px;
    padding: 12px 16px;
    font-family: inherit;
    cursor: pointer;
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.collection-detail-hero {
    width: 100%;
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 18px;
    align-items: center;
    padding: 20px;
    border-radius: 26px;
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,0.12);
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.10), transparent 35%),
        linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
}

.collection-detail-hero-cover img {
    width: 96px;
    height: 96px;
    border-radius: 18px;
    object-fit: cover;
    display: block;
}

.collection-detail-hero-title {
    font-size: 32px;
    color: #fff;
    margin-bottom: 8px;
}

.collection-detail-hero-subtitle {
    color: var(--text-soft);
    margin-bottom: 12px;
}

.collection-detail-hero-progress {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    overflow: hidden;
    margin-bottom: 10px;
}

.collection-detail-hero-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3aa8ff, #69d3ff);
}

.collection-detail-hero-percent {
    color: #fff;
    opacity: 0.92;
    font-size: 16px;
}

.collection-detail-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.collection-card-detail {
    border-radius: 22px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 10px 24px rgba(0,0,0,0.24);
}

.collection-card-detail-image-wrap img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    margin-bottom: 12px;
}

.collection-card-detail-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.collection-card-detail-name {
    color: #fff;
    font-size: 18px;
}

.collection-card-detail-rarity {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--gold);
}

.collection-card-detail-progress-text,
.collection-card-detail-stage {
    color: var(--text-soft);
    font-size: 14px;
    margin-bottom: 8px;
}

.collection-card-detail-progress-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    overflow: hidden;
    margin-bottom: 10px;
}

.collection-card-detail-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3aa8ff, #69d3ff);
}

.milestone-rail {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin-top: 6px;
}

.milestone-dot {
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
}

.milestone-dot.done {
    background: linear-gradient(90deg, #ffd36a, #ffb800);
    box-shadow: 0 0 10px rgba(255, 211, 106, 0.35);
}

.milestone-dot.active {
    background: linear-gradient(90deg, #4de3ff, #9ff3ff);
    box-shadow: 0 0 10px rgba(77, 227, 255, 0.35);
}

.collection-rarity-common { color: #d7d7d7; }
.collection-rarity-rare { color: #4de3ff; }
.collection-rarity-epic { color: #c86cff; }
.collection-rarity-legendary { color: #ffd36a; }

.theme-brain {
    background:
        radial-gradient(circle at top right, rgba(77,227,255,0.18), transparent 35%),
        linear-gradient(135deg, rgba(70,90,140,0.32), rgba(20,20,40,0.55));
}

.theme-helin {
    background:
        radial-gradient(circle at top right, rgba(255,211,106,0.18), transparent 35%),
        linear-gradient(135deg, rgba(120,90,40,0.32), rgba(30,20,20,0.55));
}

.theme-lexapaws {
    background:
        radial-gradient(circle at top right, rgba(255,140,80,0.18), transparent 35%),
        linear-gradient(135deg, rgba(110,55,25,0.32), rgba(25,15,15,0.55));
}

.theme-litwin {
    background:
        radial-gradient(circle at top right, rgba(180,255,120,0.18), transparent 35%),
        linear-gradient(135deg, rgba(55,90,45,0.32), rgba(18,30,18,0.55));
}

.theme-melstroy {
    background:
        radial-gradient(circle at top right, rgba(255,90,90,0.18), transparent 35%),
        linear-gradient(135deg, rgba(110,35,35,0.32), rgba(25,12,12,0.55));
}

.theme-nikkifn {
    background:
        radial-gradient(circle at top right, rgba(80,180,255,0.18), transparent 35%),
        linear-gradient(135deg, rgba(35,60,110,0.32), rgba(12,16,30,0.55));
}

.theme-rejiboi {
    background:
        radial-gradient(circle at top right, rgba(255,120,220,0.18), transparent 35%),
        linear-gradient(135deg, rgba(90,40,90,0.32), rgba(22,14,28,0.55));
}

.theme-rostick {
    background:
        radial-gradient(circle at top right, rgba(255,180,80,0.18), transparent 35%),
        linear-gradient(135deg, rgba(120,70,20,0.32), rgba(30,20,10,0.55));
}

.theme-sasich {
    background:
        radial-gradient(circle at top right, rgba(200,200,200,0.18), transparent 35%),
        linear-gradient(135deg, rgba(70,70,70,0.32), rgba(22,22,22,0.55));
}

.theme-skibiditoilet {
    background:
        radial-gradient(circle at top right, rgba(220,220,255,0.18), transparent 35%),
        linear-gradient(135deg, rgba(80,80,100,0.32), rgba(18,18,26,0.55));
}

.theme-slovopatsana {
    background:
        radial-gradient(circle at top right, rgba(255,210,120,0.18), transparent 35%),
        linear-gradient(135deg, rgba(120,85,30,0.32), rgba(28,20,12,0.55));
}

@media (max-width: 768px) {
    .theme-showcase-card {
        grid-template-columns: 64px 1fr;
        padding: 16px;
        min-height: 108px;
    }

    .theme-showcase-cover-wrap {
        width: 64px;
        height: 64px;
    }

    .theme-showcase-title {
        font-size: 22px;
    }

    .theme-showcase-percent {
        font-size: 20px;
    }

    .collection-detail-hero {
        grid-template-columns: 80px 1fr;
    }

    .collection-detail-hero-cover img {
        width: 80px;
        height: 80px;
    }

    .collection-detail-hero-title {
        font-size: 26px;
    }

    .collection-detail-grid {
        grid-template-columns: 1fr;
    }
}

.collection-card-detail-status {
    display: inline-block;
    width: fit-content;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.collection-card-detail-status.locked {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.65);
}

.collection-card-detail-status.in\ progress {
    background: rgba(77, 227, 255, 0.12);
    color: #7eefff;
}

.collection-card-detail-status.completed {
    background: rgba(255, 211, 106, 0.14);
    color: #ffd36a;
    box-shadow: 0 0 12px rgba(255, 211, 106, 0.18);
}

.status-completed {
    border-color: rgba(255, 211, 106, 0.35);
    box-shadow:
        0 10px 24px rgba(0,0,0,0.24),
        0 0 18px rgba(255, 211, 106, 0.12);
}

.milestone-rail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.milestone-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.milestone-label {
    font-size: 10px;
    color: rgba(255,255,255,0.65);
    text-align: center;
    line-height: 1.2;
}

.theme-complete-badge {
    margin-top: 12px;
    display: inline-block;
    padding: 10px 14px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(255,211,106,0.16), rgba(255,184,0,0.12));
    border: 1px solid rgba(255,211,106,0.28);
    color: #ffd36a;
    font-size: 13px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 16px rgba(255,211,106,0.12);
}
.theme-showcase-complete {
    border-color: rgba(255,211,106,0.35);
    box-shadow:
        0 18px 34px rgba(0,0,0,0.34),
        0 0 24px rgba(255,211,106,0.20);
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.collection-detail-hero.animate-in {
    animation: fadeSlideUp 0.35s ease forwards;
}

.collection-card-detail {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
}

.collection-card-detail.animate-in {
    animation: fadeSlideUp 0.42s ease forwards;
}

.collection-card-detail:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow:
        0 14px 28px rgba(0,0,0,0.30),
        0 0 18px rgba(255,211,106,0.10);
    transition: 0.22s ease;
}


.collection-card-detail[data-rarity="common"] {
    border: 1px solid rgba(255,255,255,0.08);
}

.collection-card-detail[data-rarity="rare"] {
    border: 1px solid rgba(77,227,255,0.4);
    box-shadow: 0 0 18px rgba(77,227,255,0.15);
}

.collection-card-detail[data-rarity="epic"] {
    border: 1px solid rgba(183,77,255,0.5);
    box-shadow: 0 0 20px rgba(183,77,255,0.25);
}

.collection-card-detail[data-rarity="legendary"] {
    border: 1px solid rgba(255,200,80,0.7);
    box-shadow: 0 0 25px rgba(255,200,80,0.35);
}

.collection-card-detail {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.collection-card-detail:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}

.collection-card-detail.completed {
    box-shadow: 
        0 0 25px rgba(255,215,100,0.35),
        0 0 60px rgba(255,215,100,0.15);
    border-color: rgba(255,215,100,0.9);
}

.collection-card-detail.completed::after {
    content: "✔";
    position: absolute;
    top: 10px;
    right: 10px;
    background: gold;
    color: black;
    font-weight: bold;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.collection-card-progress-fill {
    background: linear-gradient(90deg, #ffd36a, #ff9f2f);
    box-shadow: 0 0 10px rgba(255, 200, 80, 0.5);
}
.reward-line {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    font-size: 12px;
    opacity: 0.8;
}
.collection-card-detail.rarity-common {
    border: 1px solid rgba(255,255,255,0.08);
}

.collection-card-detail.rarity-rare {
    border: 1px solid rgba(77,227,255,0.4);
    box-shadow: 0 0 18px rgba(77,227,255,0.15);
}

.collection-card-detail.rarity-epic {
    border: 1px solid rgba(183,77,255,0.5);
    box-shadow: 0 0 20px rgba(183,77,255,0.25);
}

.collection-card-detail.rarity-legendary {
    border: 1px solid rgba(255,200,80,0.7);
    box-shadow: 0 0 25px rgba(255,200,80,0.35);
}

.collection-card-detail.completed {
    box-shadow:
        0 0 25px rgba(255,215,100,0.35),
        0 0 60px rgba(255,215,100,0.15);
    border-color: rgba(255,215,100,0.9);
    position: relative;
}

.collection-card-detail.completed::after {
    content: "✔";
    position: absolute;
    top: 10px;
    right: 10px;
    background: gold;
    color: black;
    font-weight: bold;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.collection-card-detail {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* редкости */
.collection-card-detail.rarity-common {
    border: 1px solid rgba(255,255,255,0.08);
}

.collection-card-detail.rarity-rare {
    border: 1px solid rgba(77, 227, 255, 0.40);
    box-shadow: 0 0 18px rgba(77, 227, 255, 0.15);
}

.collection-card-detail.rarity-epic {
    border: 1px solid rgba(183, 77, 255, 0.50);
    box-shadow: 0 0 20px rgba(183, 77, 255, 0.22);
}

.collection-card-detail.rarity-legendary {
    border: 1px solid rgba(255, 200, 80, 0.70);
    box-shadow: 0 0 25px rgba(255, 200, 80, 0.30);
}

/* hover */
.collection-card-detail:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 40px rgba(0,0,0,0.40);
}

/* completed */
.collection-card-detail.completed {
    position: relative;
    border-color: rgba(255, 215, 100, 0.95);
    box-shadow:
        0 0 25px rgba(255, 215, 100, 0.35),
        0 0 60px rgba(255, 215, 100, 0.15);
}

.collection-card-detail.completed::after {
    content: "✔";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: gold;
    color: black;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
}

/* статусы */
.collection-card-detail-status.locked {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.65);
}

.collection-card-detail-status.in-progress {
    background: rgba(77, 227, 255, 0.12);
    color: #7eefff;
}

.collection-card-detail-status.completed {
    background: rgba(255, 211, 106, 0.14);
    color: #ffd36a;
    box-shadow: 0 0 12px rgba(255, 211, 106, 0.18);
}
.milestone-rail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.milestone-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 6px 4px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

.milestone-dot {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
}

.milestone-dot.done {
    background: linear-gradient(90deg, #ffd36a, #ffb800);
    box-shadow: 0 0 10px rgba(255, 211, 106, 0.35);
}

.milestone-dot.active {
    background: linear-gradient(90deg, #4de3ff, #9ff3ff);
    box-shadow: 0 0 10px rgba(77, 227, 255, 0.35);
}

.milestone-label {
    font-size: 10px;
    color: rgba(255,255,255,0.72);
    text-align: center;
    line-height: 1.2;
}
.theme-showcase-card.theme-showcase-complete {
    border-color: rgba(255,211,106,0.45);
    box-shadow:
        0 18px 34px rgba(0,0,0,0.34),
        0 0 24px rgba(255,211,106,0.22);
    position: relative;
}

.theme-showcase-card.theme-showcase-complete::after {
    content: "100%";
    position: absolute;
    top: 12px;
    right: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,211,106,0.18), rgba(255,184,0,0.14));
    border: 1px solid rgba(255,211,106,0.28);
    color: #ffd36a;
    font-size: 12px;
    letter-spacing: 0.4px;
}
.game-screen-themed {
    background-image: url('image/slot-bg-main.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.game-screen-themed::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(7, 4, 20, 0.35) 0%,
        rgba(7, 4, 20, 0.55) 45%,
        rgba(7, 4, 20, 0.78) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.game-screen-themed > * {
    position: relative;
    z-index: 1;
}
.slot-container::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 20px;
    border: 1px solid rgba(255, 230, 160, 0.35);
    pointer-events: none;
}

.slot-container::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 28px;
    pointer-events: none;
    box-shadow:
        inset 0 0 24px rgba(255, 211, 106, 0.08),
        inset 0 -20px 40px rgba(0,0,0,0.25);
}
@keyframes slotDropIn {
    0% {
        opacity: 0;
        transform: translateY(-90px) scale(0.92);
        filter: blur(6px);
    }

    70% {
        opacity: 1;
        transform: translateY(8px) scale(1.02);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes slotLandBounce {
    0% {
        transform: translateY(0) scale(1);
    }

    35% {
        transform: translateY(-6px) scale(1.02);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

.cell.drop-anim img {
    animation: slotDropIn 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.cell.drop-land img {
    animation: slotLandBounce 0.18s ease-out;
}
.cell.win-cell {
    z-index: 2;
    transform: translateY(-6px) scale(1.04);
    border-color: rgba(255, 215, 100, 0.95);
    box-shadow:
        0 0 18px rgba(255, 215, 100, 0.45),
        0 0 36px rgba(255, 215, 100, 0.22),
        inset 0 0 16px rgba(255,255,255,0.12);
}

.cell.win-cell img {
    filter:
        drop-shadow(0 0 8px rgba(255, 215, 100, 0.5))
        drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.cell.dim-cell {
    opacity: 0.45;
    transform: scale(0.98);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

@keyframes winPulse {
    0% {
        transform: translateY(-6px) scale(1.02);
    }
    50% {
        transform: translateY(-8px) scale(1.06);
    }
    100% {
        transform: translateY(-6px) scale(1.02);
    }
}

.cell.win-cell.pulse {
    animation: winPulse 0.6s ease-in-out 2;
}
.cell.win-cell {
    z-index: 2;
    transform: translateY(-6px) scale(1.04);
    border-color: rgba(255, 215, 100, 0.95);
    box-shadow:
        0 0 18px rgba(255, 215, 100, 0.45),
        0 0 36px rgba(255, 215, 100, 0.22),
        inset 0 0 16px rgba(255,255,255,0.12);
}

.cell.win-cell img {
    filter:
        drop-shadow(0 0 8px rgba(255, 215, 100, 0.5))
        drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.cell.dim-cell {
    opacity: 0.45;
    transform: scale(0.98);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

@keyframes winPulse {
    0% {
        transform: translateY(-6px) scale(1.02);
    }
    50% {
        transform: translateY(-8px) scale(1.06);
    }
    100% {
        transform: translateY(-6px) scale(1.02);
    }
}

.cell.win-cell.pulse {
    animation: winPulse 0.6s ease-in-out 2;
}
#game-screen {
    max-width: 1000px;
    width: 100%;
}

.slot-scene {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 110px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 16px 24px;
    overflow: hidden;
}

.slot-scene-bg {
    position: absolute;
    inset: 0;
    border-radius: 32px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: saturate(1.05) contrast(1.02);
    transform: scale(1.03);
}

.slot-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 32px;
    background:
        linear-gradient(180deg, rgba(6,10,28,0.18) 0%, rgba(6,10,28,0.48) 55%, rgba(6,10,28,0.72) 100%);
    pointer-events: none;
}
.slot-scene.theme-brain .slot-scene-bg {
    background-image: url('image/themes/brain-bg.jpg');
}

.slot-scene.theme-shrek .slot-scene-bg {
    background-image: url('image/themes/shrek-bg.jpg');
}

.slot-scene.theme-spongebob .slot-scene-bg {
    background-image: url('image/themes/spongebob-bg.jpg');
}

.slot-scene.theme-speed .slot-scene-bg {
    background-image: url('image/themes/speed-bg.jpg');
}
.slot-container {
    position: relative;
    z-index: 2;
    width: min(860px, 100%);
    padding: 26px 26px 20px;
    border-radius: 34px;
    overflow: visible;
    background:
        linear-gradient(180deg, rgba(28, 34, 88, 0.96), rgba(12, 16, 44, 0.96)) padding-box,
        linear-gradient(145deg, #f8df8e, #c98a2d, #fff3b0, #a86618) border-box;
    border: 6px solid transparent;
    box-shadow:
        0 24px 60px rgba(0,0,0,0.45),
        0 0 40px rgba(255, 207, 98, 0.22),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.slot-container::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 24px;
    border: 1px solid rgba(255, 240, 190, 0.45);
    pointer-events: none;
}

.slot-container::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 40px;
    background: radial-gradient(circle at top, rgba(255,255,255,0.15), transparent 35%);
    pointer-events: none;
    z-index: -1;
}
.slot-frame-decor {
    position: absolute;
    inset: -18px;
    pointer-events: none;
    z-index: 3;
    background:
        url('image/ui/vine-top-left.png') top left / 160px auto no-repeat,
        url('image/ui/vine-top-right.png') top right / 160px auto no-repeat,
        url('image/ui/vine-bottom-left.png') bottom left / 180px auto no-repeat,
        url('image/ui/vine-bottom-right.png') bottom right / 180px auto no-repeat;
}
.slot-stage {
    position: relative;
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 28px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(12,18,48,0.82), rgba(7,11,28,0.94)),
        url('image/ui/slot-stage-wood.jpg') center/cover no-repeat;
    border: 2px solid rgba(255, 230, 160, 0.22);
    box-shadow:
        inset 0 0 30px rgba(0,0,0,0.45),
        inset 0 14px 28px rgba(255,255,255,0.05),
        0 10px 24px rgba(0,0,0,0.24);
}

.slot-stage-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(255,255,255,0.12), transparent 22%, transparent 78%, rgba(0,0,0,0.2)),
        radial-gradient(circle at center, transparent 35%, rgba(0,0,0,0.22) 100%);
}
.slot-scene.theme-shrek .slot-stage {
    background:
        linear-gradient(180deg, rgba(26, 44, 18, 0.72), rgba(10, 20, 8, 0.92)),
        url('image/ui/stage-swamp.jpg') center/cover no-repeat;
}

.slot-scene.theme-speed .slot-stage {
    background:
        linear-gradient(180deg, rgba(42, 18, 8, 0.72), rgba(18, 8, 4, 0.92)),
        url('image/ui/stage-wood.jpg') center/cover no-repeat;
}

.slot-scene.theme-brain .slot-stage {
    background:
        linear-gradient(180deg, rgba(24, 35, 88, 0.75), rgba(8, 14, 40, 0.92)),
        url('image/ui/stage-neon.jpg') center/cover no-repeat;
}
.grid-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 6px;
    border-radius: 20px;
    background: rgba(5, 8, 24, 0.34);
}

.cell {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015)),
        rgba(10, 12, 32, 0.72);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        inset 0 0 18px rgba(0,0,0,0.35),
        inset 0 10px 18px rgba(255,255,255,0.04);
}

.cell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0.08), transparent 30%);
    z-index: 2;
}
.cell.drop-anim .slot-img {
    animation: slotDrop 540ms cubic-bezier(.18,.88,.24,1) forwards;
}

.cell.drop-land .slot-img {
    animation: slotLand 180ms ease-out;
}

@keyframes slotDrop {
    0% {
        transform: translateY(-180%) scale(0.92);
        opacity: 0;
        filter: blur(10px);
    }
    55% {
        transform: translateY(10%) scale(1.02);
        opacity: 1;
        filter: blur(1px);
    }
    75% {
        transform: translateY(-4%) scale(0.995);
        opacity: 1;
        filter: blur(0);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes slotLand {
    0% { transform: translateY(0) scale(1); }
    35% { transform: translateY(4%) scale(0.985); }
    100% { transform: translateY(0) scale(1); }
}
.slot-scene-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}
#game-screen.screen {
    max-width: 100%;
    width: 100%;
    padding: 0;
    align-items: stretch;
    justify-content: flex-start;
}
#game-screen {
    align-items: stretch;
}

.slot-scene {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 110px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    border-radius: 28px;
}
#game-screen.screen {
    max-width: 100%;
    padding: 0;
}

.slot-scene {
    min-height: 100vh;
    border-radius: 0;
}
.slot-container {
    width: min(980px, 100%);
    padding: 16px 16px 14px;
}

.slot-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.slot-stage {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 22px;
}

.grid-wrapper {
    gap: 8px;
    padding: 8px;
    border-radius: 18px;
}

.cell {
    border-radius: 12px;
}

.message-box {
    height: auto;
    min-height: 24px;
    font-size: 16px;
    margin-bottom: 10px;
}

.reward-preview {
    margin-top: 8px;
    margin-bottom: 10px;
}

.btn-spin {
    min-width: 180px;
    padding: 12px 24px;
    font-size: 18px;
}
.grid-wrapper {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cell {
    aspect-ratio: 1 / 1;
    max-height: clamp(78px, 11vw, 132px);
}

.slot-container {
    max-height: calc(100vh - 120px);
}
#game-screen.screen {
    max-width: 1400px;
    width: 100%;
    padding: 10px 16px 16px;
    align-items: stretch;
}

#game-screen .game-header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 12px;
}

.slot-scene {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 110px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    overflow: hidden;
    border-radius: 28px;
}

.slot-container {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 14px 14px 12px;
    border-radius: 28px;
}

.slot-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.slot-stage {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 22px;
}

.grid-wrapper {
    gap: 8px;
    padding: 8px;
    border-radius: 18px;
}

.cell {
    border-radius: 12px;
}

.message-box {
    min-height: 24px;
    height: auto;
    margin-bottom: 10px;
    font-size: 16px;
}

.spin-controls {
    margin-top: 8px;
}

.btn-spin {
    min-width: 180px;
    padding: 12px 24px;
    font-size: 18px;
}
#game-screen.screen {
    max-width: 100%;
    width: 100%;
    padding: 0;
    align-items: stretch;
}
.slot-scene {
    position: relative;
    width: 100%;
    height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}
.slot-scene-bg {
    position: absolute;
    inset: 0;

    background: url("img/bg.jpg") center/cover no-repeat;

    filter: brightness(0.75);
}
.slot-container {
    position: relative;
    z-index: 2;

    width: min(1100px, 92vw);

    padding: 16px;
    border-radius: 28px;

    background: linear-gradient(180deg, #1c2147, #0e1333);
    box-shadow: 0 20px 80px rgba(0,0,0,0.6);
}
.grid-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);

    gap: 8px;
    padding: 10px;
}
.cell {
    aspect-ratio: 1 / 1;

    border-radius: 14px;
    overflow: hidden;

    background: #0b0f2c;

    max-height: clamp(80px, 12vw, 140px);
}
.btn-spin {
    display: block;
    margin: 12px auto 0;

    padding: 14px 28px;
    font-size: 20px;

    border-radius: 14px;
    background: linear-gradient(180deg, #ffd95e, #f7b500);

    border: none;
}
#game-screen.screen {
    max-width: 100%;
    width: 100%;
    padding: 0;
    align-items: stretch;
    justify-content: flex-start;
}
.slot-container {
    position: relative;
    z-index: 2;
    width: min(980px, 92vw);
    padding: 14px 14px 16px;
    border-radius: 28px;
    background: linear-gradient(180deg, #1c2147, #0e1333);
    box-shadow: 0 20px 80px rgba(0,0,0,0.55);
    overflow: hidden;
}
.grid-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 8px;
    border-radius: 20px;
}
.cell {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: #09113a;
    min-height: 110px;
    max-height: 150px;
}
.slot-title,
.message-box {
    display: none;
}

.reward-preview {
    display: none !important;
}
/* ==== TEMP CLEANUP SLOT UI ==== */
.slot-title,
.message-box {
    display: none !important;
}

.reward-preview {
    display: none !important;
}
/* ==== NEW SLOT SCREEN CLEAN LAYOUT ==== */
#game-screen.screen {
    max-width: 100%;
    width: 100%;
    padding: 0;
    align-items: stretch;
    justify-content: flex-start;
}

#game-screen .game-header {
    width: min(1400px, 94vw);
    margin: 18px auto 12px;
    padding: 12px 18px;
    border-radius: 24px;
    backdrop-filter: blur(16px);
}

.slot-scene {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 110px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px 24px;
    overflow: hidden;
}

.slot-container {
    width: min(980px, 92vw);
    margin: 0 auto;
    padding: 16px;
    border-radius: 30px;
    overflow: hidden;
}

.slot-stage {
    padding: 12px;
    border-radius: 24px;
}

.grid-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 10px;
    border-radius: 20px;
    overflow: hidden;
}

.cell {
    aspect-ratio: 1 / 1;
    min-height: 110px;
    max-height: 150px;
    border-radius: 16px;
}

.spin-controls {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.btn-spin {
    min-width: 220px;
    padding: 14px 30px;
    font-size: 22px;
    border-radius: 16px;
}
/* ============================= */
/* CLEAN SLOT UI — FINAL PASS 1  */
/* ============================= */

/* скрываем временный текстовый мусор */
.slot-title,
.message-box,
.reward-preview {
    display: none !important;
}

/* игровой экран на всю ширину */
#game-screen.screen {
    max-width: 100%;
    width: 100%;
    padding: 0;
    align-items: stretch;
    justify-content: flex-start;
}

/* верхняя панель */
#game-screen .game-header {
    width: min(1400px, 94vw);
    margin: 16px auto 10px;
    padding: 14px 18px;
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.12),
        rgba(255,255,255,0.05)
    );
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}

/* кнопка назад */
#game-screen .btn-back {
    border: none;
    background: rgba(255,255,255,0.14);
    color: #fff;
    font-family: inherit;
    font-size: 18px;
    padding: 10px 18px;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.2s ease;
}

#game-screen .btn-back:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-1px);
}

/* энергия справа */
#game-screen .balance-container.small {
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 18px;
    border: 1px solid rgba(255, 211, 106, 0.35);
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.10),
        rgba(255,255,255,0.04)
    );
}

/* сцена */
.slot-scene {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 108px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px 24px;
    overflow: hidden;
}

/* затемнение фона темы */
.slot-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(6,10,24,0.18) 0%,
        rgba(6,10,24,0.42) 48%,
        rgba(6,10,24,0.66) 100%
    );
    pointer-events: none;
}

/* сам слот */
.slot-container {
    position: relative;
    z-index: 2;
    width: min(960px, 92vw);
    margin: 0 auto;
    padding: 16px;
    border-radius: 30px;
    overflow: hidden;

    background:
        linear-gradient(180deg, #20265a, #0d1335) padding-box,
        linear-gradient(145deg, #ffd76a, #ffb347, #fff2a8) border-box;

    border: 4px solid transparent;

    box-shadow:
        0 18px 50px rgba(0,0,0,0.45),
        0 0 30px rgba(255, 200, 80, 0.16),
        inset 0 0 18px rgba(255, 230, 150, 0.08);
}

.slot-container::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 22px;
    border: 1px solid rgba(255, 240, 180, 0.24);
    pointer-events: none;
}

/* внутренняя сцена барабанов */
.slot-stage {
    padding: 12px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top, rgba(255,255,255,0.05), transparent 30%),
        linear-gradient(180deg, rgba(18,24,68,0.92), rgba(7,11,32,0.96));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        inset 0 0 26px rgba(0,0,0,0.36),
        inset 0 10px 20px rgba(255,255,255,0.03);
}

/* сетка 3x5 */
.grid-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 8px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(5, 8, 24, 0.18);
}

/* ячейки */
.cell {
    aspect-ratio: 1 / 1;
    min-height: 110px;
    max-height: 150px;
    border-radius: 16px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)),
        rgba(8, 13, 46, 0.92);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow:
        inset 0 10px 18px rgba(255,255,255,0.03),
        inset 0 -12px 18px rgba(0,0,0,0.18);
}

.cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* только кнопка play */
.spin-controls {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.btn-spin {
    min-width: 220px;
    padding: 14px 30px;
    font-size: 22px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;

    background: linear-gradient(180deg, #ffd95e, #f7b500);
    color: #1b1200;
    box-shadow:
        0 6px 0 #a56e00,
        0 0 20px rgba(255, 211, 106, 0.25);
}

/* адаптив */
@media (max-width: 900px) {
    .slot-container {
        width: min(96vw, 760px);
        padding: 12px;
    }

    .slot-stage {
        padding: 10px;
    }

    .grid-wrapper {
        gap: 8px;
        padding: 6px;
    }

    .cell {
        min-height: 84px;
        max-height: 120px;
        border-radius: 12px;
    }

    .btn-spin {
        min-width: 180px;
        font-size: 18px;
        padding: 12px 22px;
    }
}
/* ============================= */
/* DECORATIVE SLOT FRAME         */
/* ============================= */

.slot-container {
    position: relative;
    overflow: visible;
}

.slot-frame-decor {
    position: absolute;
    inset: -20px;
    pointer-events: none;
    z-index: 4;
    background:
        url("image/ui/vine-top-left.png") top left / 180px auto no-repeat,
        url("image/ui/vine-top-right.png") top right / 180px auto no-repeat,
        url("image/ui/vine-bottom-left.png") bottom left / 200px auto no-repeat,
        url("image/ui/vine-bottom-right.png") bottom right / 200px auto no-repeat;
}

/* дополнительный мягкий свет по краям */
.slot-container::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 34px;
    pointer-events: none;
    z-index: 1;
    box-shadow:
        0 0 30px rgba(255, 215, 106, 0.08),
        0 0 70px rgba(255, 215, 106, 0.04);
}
.slot-stage {
    position: relative;
    background:
        radial-gradient(circle at top center, rgba(255,255,255,0.06), transparent 28%),
        linear-gradient(180deg, rgba(24,31,78,0.96), rgba(7,12,34,0.98));
}

.slot-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(255,255,255,0.05), transparent 24%, transparent 76%, rgba(0,0,0,0.10)),
        radial-gradient(circle at center, transparent 45%, rgba(0,0,0,0.16) 100%);
}
.cell {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015)),
        rgba(5, 11, 46, 0.95);
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow:
        inset 0 10px 16px rgba(255,255,255,0.03),
        inset 0 -12px 18px rgba(0,0,0,0.22),
        0 2px 8px rgba(0,0,0,0.12);
}

.cell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0.04), transparent 30%);
}
/* ===================================== */
/* ORNATE MINIMAL SLOT FRAME             */
/* ===================================== */

.slot-title,
.message-box,
.reward-preview {
    display: none !important;
}

#game-screen.screen {
    max-width: 100%;
    width: 100%;
    padding: 0;
    align-items: stretch;
    justify-content: flex-start;
}

#game-screen .game-header {
    width: min(1400px, 94vw);
    margin: 16px auto 10px;
    padding: 14px 18px;
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.10),
        rgba(255,255,255,0.04)
    );
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}

#game-screen .btn-back {
    border: none;
    background: rgba(255,255,255,0.14);
    color: #fff;
    font-family: inherit;
    font-size: 18px;
    padding: 10px 18px;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.2s ease;
}

#game-screen .btn-back:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-1px);
}

#game-screen .balance-container.small {
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 18px;
    border: 1px solid rgba(255, 211, 106, 0.32);
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.10),
        rgba(255,255,255,0.04)
    );
}

.slot-scene {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 108px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px 24px;
    overflow: hidden;
}

.slot-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(6,10,24,0.18) 0%,
        rgba(6,10,24,0.42) 48%,
        rgba(6,10,24,0.66) 100%
    );
    pointer-events: none;
}

.slot-container--ornate {
    position: relative;
    z-index: 2;
    width: min(980px, 92vw);
    margin: 0 auto;
    padding: 20px 20px 18px;
    border-radius: 30px;
    overflow: visible;

    background:
        linear-gradient(180deg, #22295e, #0d1437) padding-box,
        linear-gradient(180deg, #ffde7d, #d49a21 55%, #fff0b3) border-box;

    border: 3px solid transparent;

    box-shadow:
        0 18px 50px rgba(0,0,0,0.42),
        0 0 24px rgba(255, 201, 82, 0.15),
        inset 0 0 16px rgba(255, 239, 180, 0.06);
}

.slot-container--ornate::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 22px;
    border: 1px solid rgba(255, 235, 178, 0.26);
    pointer-events: none;
}

.slot-container--ornate::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 34px;
    pointer-events: none;
    box-shadow:
        0 0 16px rgba(255, 208, 90, 0.10),
        0 0 34px rgba(255, 208, 90, 0.05);
}

/* угловые элементы */
.slot-ornament {
    position: absolute;
    width: 28px;
    height: 28px;
    z-index: 5;
    pointer-events: none;
}

.slot-ornament::before,
.slot-ornament::after {
    content: "";
    position: absolute;
    background: linear-gradient(180deg, #ffd96d, #d59617);
    box-shadow: 0 0 10px rgba(255, 210, 100, 0.18);
}

/* top-left */
.slot-ornament--tl {
    top: -8px;
    left: -8px;
}
.slot-ornament--tl::before {
    width: 24px;
    height: 5px;
    top: 6px;
    left: 2px;
    transform: rotate(-22deg);
    border-radius: 4px;
}
.slot-ornament--tl::after {
    width: 5px;
    height: 24px;
    top: 2px;
    left: 6px;
    transform: rotate(-22deg);
    border-radius: 4px;
}

/* top-right */
.slot-ornament--tr {
    top: -8px;
    right: -8px;
}
.slot-ornament--tr::before {
    width: 24px;
    height: 5px;
    top: 6px;
    right: 2px;
    transform: rotate(22deg);
    border-radius: 4px;
}
.slot-ornament--tr::after {
    width: 5px;
    height: 24px;
    top: 2px;
    right: 6px;
    transform: rotate(22deg);
    border-radius: 4px;
}

/* bottom-left */
.slot-ornament--bl {
    bottom: -8px;
    left: -8px;
}
.slot-ornament--bl::before {
    width: 24px;
    height: 5px;
    bottom: 6px;
    left: 2px;
    transform: rotate(22deg);
    border-radius: 4px;
}
.slot-ornament--bl::after {
    width: 5px;
    height: 24px;
    bottom: 2px;
    left: 6px;
    transform: rotate(22deg);
    border-radius: 4px;
}

/* bottom-right */
.slot-ornament--br {
    bottom: -8px;
    right: -8px;
}
.slot-ornament--br::before {
    width: 24px;
    height: 5px;
    bottom: 6px;
    right: 2px;
    transform: rotate(-22deg);
    border-radius: 4px;
}
.slot-ornament--br::after {
    width: 5px;
    height: 24px;
    bottom: 2px;
    right: 6px;
    transform: rotate(-22deg);
    border-radius: 4px;
}

/* центральные ромбы на сторонах */
.slot-gem {
    position: absolute;
    width: 18px;
    height: 18px;
    transform: rotate(45deg);
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(180deg, #ffd96d, #d49a21);
    border: 1px solid rgba(255, 246, 204, 0.45);
    box-shadow:
        0 0 10px rgba(255, 210, 100, 0.18),
        inset 0 1px 2px rgba(255,255,255,0.25);
}

.slot-gem--top {
    top: -8px;
    left: 50%;
    margin-left: -9px;
}
.slot-gem--bottom {
    bottom: -8px;
    left: 50%;
    margin-left: -9px;
}
.slot-gem--left {
    left: -8px;
    top: 50%;
    margin-top: -9px;
}
.slot-gem--right {
    right: -8px;
    top: 50%;
    margin-top: -9px;
}

.slot-stage {
    position: relative;
    padding: 12px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top center, rgba(255,255,255,0.05), transparent 28%),
        linear-gradient(180deg, rgba(22,30,77,0.97), rgba(8,12,36,0.98));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        inset 0 0 26px rgba(0,0,0,0.36),
        inset 0 10px 20px rgba(255,255,255,0.03);
}

.slot-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(255,255,255,0.04), transparent 28%),
        radial-gradient(circle at center, transparent 45%, rgba(0,0,0,0.12) 100%);
}

.grid-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 8px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(5, 8, 24, 0.14);
}

.cell {
    position: relative;
    aspect-ratio: 1 / 1;
    min-height: 110px;
    max-height: 150px;
    border-radius: 16px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015)),
        rgba(6, 12, 48, 0.96);
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow:
        inset 0 10px 16px rgba(255,255,255,0.03),
        inset 0 -12px 18px rgba(0,0,0,0.22),
        0 2px 8px rgba(0,0,0,0.12);
}

.cell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0.04), transparent 30%);
}

.cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spin-controls {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.btn-spin {
    min-width: 240px;
    padding: 15px 34px;
    font-size: 22px;
    border-radius: 18px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(180deg, #ffdf60, #f4bd19);
    color: #241600;
    box-shadow:
        0 6px 0 #a56e00,
        0 0 18px rgba(255, 211, 106, 0.18);
}

@media (max-width: 900px) {
    .slot-container--ornate {
        width: min(96vw, 760px);
        padding: 14px;
    }

    .slot-stage {
        padding: 10px;
    }

    .grid-wrapper {
        gap: 8px;
        padding: 6px;
    }

    .cell {
        min-height: 84px;
        max-height: 120px;
        border-radius: 12px;
    }

    .btn-spin {
        min-width: 180px;
        font-size: 18px;
        padding: 12px 24px;
    }
}
/* ==== SLOT COLUMN DIVIDERS ==== */
.grid-wrapper {
    position: relative;
}

.grid-wrapper::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 18px;
    pointer-events: none;
    z-index: 3;
    background:
        linear-gradient(to right,
            transparent 19.6%,
            rgba(255, 214, 102, 0.22) 19.9%,
            rgba(255, 214, 102, 0.22) 20.1%,
            transparent 20.4%,

            transparent 39.6%,
            rgba(255, 214, 102, 0.22) 39.9%,
            rgba(255, 214, 102, 0.22) 40.1%,
            transparent 40.4%,

            transparent 59.6%,
            rgba(255, 214, 102, 0.22) 59.9%,
            rgba(255, 214, 102, 0.22) 60.1%,
            transparent 60.4%,

            transparent 79.6%,
            rgba(255, 214, 102, 0.22) 79.9%,
            rgba(255, 214, 102, 0.22) 80.1%,
            transparent 80.4%
        );
    box-shadow: inset 0 0 0 1px rgba(255, 228, 160, 0.06);
}
/* ==== SLOT CELLS TUNING ==== */
.cell {
    transform: translateZ(0);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.cell:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 10px 16px rgba(255,255,255,0.03),
        inset 0 -12px 18px rgba(0,0,0,0.22),
        0 6px 14px rgba(0,0,0,0.18);
}

.cell img {
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.35));
}
/* ===================================== */
/* SLOT FRAME UPGRADE                    */
/* ===================================== */

.slot-container--ornate {
    background:
        linear-gradient(180deg, #22295e, #0d1437) padding-box,
        linear-gradient(180deg, #ffde7d, #d49a21 55%, #fff0b3) border-box;
    border: 3px solid transparent;
    box-shadow:
        0 20px 50px rgba(0,0,0,0.42),
        0 0 18px rgba(255, 201, 82, 0.12),
        inset 0 0 16px rgba(255, 239, 180, 0.06);
}

.slot-container--ornate::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 22px;
    border: 1px solid rgba(255, 235, 178, 0.24);
    pointer-events: none;
}

.slot-container--ornate::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 34px;
    pointer-events: none;
    box-shadow:
        0 0 16px rgba(255, 208, 90, 0.10),
        0 0 36px rgba(255, 208, 90, 0.04);
}

/* stage глубже и дороже */
.slot-stage {
    position: relative;
    padding: 12px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top center, rgba(255,255,255,0.05), transparent 28%),
        linear-gradient(180deg, rgba(20,29,74,0.98), rgba(6,10,31,1));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        inset 0 0 26px rgba(0,0,0,0.38),
        inset 0 10px 20px rgba(255,255,255,0.03);
}

.slot-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(255,255,255,0.04), transparent 24%, transparent 76%, rgba(0,0,0,0.12)),
        radial-gradient(circle at center, transparent 45%, rgba(0,0,0,0.14) 100%);
}

/* сетка + разделители барабанов */
.grid-wrapper {
    position: relative;
    z-index: 2;
    background: rgba(5, 8, 24, 0.14);
}

.grid-wrapper::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 18px;
    pointer-events: none;
    z-index: 4;
    background:
        linear-gradient(to right,
            transparent 19.6%,
            rgba(255, 214, 102, 0.18) 19.9%,
            rgba(255, 214, 102, 0.18) 20.1%,
            transparent 20.4%,

            transparent 39.6%,
            rgba(255, 214, 102, 0.18) 39.9%,
            rgba(255, 214, 102, 0.18) 40.1%,
            transparent 40.4%,

            transparent 59.6%,
            rgba(255, 214, 102, 0.18) 59.9%,
            rgba(255, 214, 102, 0.18) 60.1%,
            transparent 60.4%,

            transparent 79.6%,
            rgba(255, 214, 102, 0.18) 79.9%,
            rgba(255, 214, 102, 0.18) 80.1%,
            transparent 80.4%
        );
}

/* ячейки ближе к окнам барабана */
.cell {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015)),
        rgba(6, 12, 48, 0.96);
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow:
        inset 0 10px 16px rgba(255,255,255,0.03),
        inset 0 -12px 18px rgba(0,0,0,0.22),
        0 2px 8px rgba(0,0,0,0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.cell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0.04), transparent 30%);
    z-index: 2;
}

.cell:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 10px 16px rgba(255,255,255,0.03),
        inset 0 -12px 18px rgba(0,0,0,0.22),
        0 6px 14px rgba(0,0,0,0.18);
}

.cell img {
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.35));
}
/* ===================================== */
/* SLOT DROP ANIMATION                   */
/* ===================================== */

.cell.reel-spin {
    overflow: hidden;
}

.cell.reel-spin img {
    animation: reelDrop 560ms cubic-bezier(.16,.84,.22,1) forwards;
}

.cell.reel-land img {
    animation: reelLand 180ms ease-out;
}

@keyframes reelDrop {
    0% {
        transform: translateY(-180%) scale(0.92);
        opacity: 0;
        filter: blur(10px);
    }
    45% {
        transform: translateY(12%) scale(1.02);
        opacity: 1;
        filter: blur(2px);
    }
    72% {
        transform: translateY(-4%) scale(0.995);
        opacity: 1;
        filter: blur(0);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes reelLand {
    0% {
        transform: translateY(0) scale(1);
    }
    35% {
        transform: translateY(4%) scale(0.985);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 22px;
    background: rgba(9, 0, 17, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.main-header__left,
.main-header__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.main-header__logo {
    font-size: 22px;
    color: var(--gold);
    text-shadow: 0 0 12px rgba(255, 211, 106, 0.35);
}

.main-header__nav-btn {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
}

.main-header__nav-btn:hover {
    border-color: rgba(255, 211, 106, 0.45);
}

.main-header__energy {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255, 211, 106, 0.35);
}

.main-header__profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

.main-header__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #ffd36a, #ffb800);
    color: #1b1200;
    font-weight: bold;
}

.main-header__nickname {
    font-size: 14px;
    color: #fff;
}

.main-header__vip {
    font-size: 12px;
    color: var(--gold);
}
.energy-mini-bar {
    width: 70px;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.12);
}

.energy-mini-bar__fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #34ff9c, #4de3ff);
    transition: width 0.25s ease;
}
.header-bar {
    display: none !important;
}
.bonus-panel.daily-panel {
    display: none;
}
.tabs-shell {
    width: 100%;
    max-width: 720px;
    margin: 18px auto 26px;
    border-radius: 16px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.tabs-nav {
    justify-content: center;
    gap: 10px;
    padding: 10px;
}

.tab-btn {
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.72);
    font-size: 13px;
}

.tab-btn.active {
    background: rgba(255, 211, 106, 0.12);
    border-color: rgba(255, 211, 106, 0.28);
    color: #fff;
}
.home-info-strip {
    width: 100%;
    max-width: 980px;
    margin: 24px auto 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.home-info-card {
    padding: 18px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.10);
    text-align: center;
    box-shadow: 0 10px 26px rgba(0,0,0,0.18);
}

.home-info-icon {
    font-size: 26px;
    margin-bottom: 10px;
}

.home-info-title {
    font-size: 18px;
    color: var(--gold);
    margin-bottom: 8px;
}

.home-info-text {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-soft);
}
@media (max-width: 800px) {
    .home-info-strip {
        grid-template-columns: 1fr;
    }
}
.featured-grid {
    margin-bottom: 26px;
}

.featured-grid .game-card {
    max-width: 760px;
    margin: 0 auto;
    border-radius: 24px;
}

.featured-grid .card-image {
    height: 220px;
}

.featured-grid .card-content h3 {
    font-size: 28px;
}

.featured-grid .card-content p {
    font-size: 16px;
}
.sub-section-title {
    text-align: center;
    margin: 18px 0 18px;
    color: var(--secondary);
    font-size: 24px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 14px rgba(77, 227, 255, 0.22);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

@media (max-width: 700px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
}
.hero-banner {
    width: 100%;
    max-width: 860px;
    margin: 34px auto 0;
    padding: 34px 28px;
    text-align: center;
    border-radius: 28px;
    background:
        radial-gradient(circle at top center, rgba(255,255,255,0.06), transparent 35%),
        linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow:
        0 0 50px rgba(255, 211, 106, 0.08),
        0 16px 36px rgba(0,0,0,0.24);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    margin-bottom: 18px;
    font-size: 14px;
    color: var(--gold);
    border: 1px solid rgba(255, 211, 106, 0.24);
    background: rgba(255, 211, 106, 0.06);
}

.hero-title {
    font-size: 56px;
    line-height: 0.98;
    margin-bottom: 18px;
    color: #fff;
}

.hero-subtitle {
    max-width: 620px;
    margin: 0 auto 24px;
    font-size: 18px;
    line-height: 1.45;
    color: var(--text-soft);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-btn {
    border: none;
    border-radius: 16px;
    padding: 14px 22px;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s ease;
}

.hero-btn-primary {
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    color: #1b1200;
    box-shadow: 0 8px 0 #a56e00;
}

.hero-btn-secondary {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.10);
}

@media (max-width: 700px) {
    .hero-title {
        font-size: 38px;
    }

    .hero-subtitle {
        font-size: 16px;
    }
}
.collection-card-detail {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.collection-card-detail:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.28);
}

.collection-card-detail-open {
    margin-top: 12px;
    font-size: 13px;
    color: var(--gold);
    opacity: 0.95;
}

/* MODAL CARD PATH */
.card-path-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
}

.card-path-modal.active {
    display: block;
}

.card-path-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(6px);
}

.card-path-modal__content {
    position: relative;
    z-index: 2;
    width: min(920px, calc(100% - 32px));
    margin: 60px auto;
    border-radius: 24px;
    padding: 24px;
    background:
        radial-gradient(circle at top center, rgba(255,255,255,0.05), transparent 32%),
        linear-gradient(135deg, rgba(24,18,48,0.98), rgba(10,8,28,0.98));
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.card-path-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
}

.card-path-modal__header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
}

.card-path-modal__image-wrap {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
}

.card-path-modal__image-wrap img {
    width: 100%;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.card-path-modal__title {
    font-size: 30px;
    margin-bottom: 8px;
    color: #fff;
}

.card-path-modal__rarity {
    display: inline-block;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.8px;
    color: var(--gold);
    border: 1px solid rgba(255, 211, 106, 0.22);
    background: rgba(255, 211, 106, 0.06);
}

.card-path-modal__progress-text {
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--text-soft);
}

.card-path-modal__progress-bar {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
}

.card-path-modal__progress-fill {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), var(--primary));
    transition: width 0.25s ease;
}

.card-path-modal__section-title {
    margin-bottom: 14px;
    font-size: 22px;
    color: var(--gold);
}

.card-path-stages {
    display: grid;
    gap: 12px;
}

.card-path-stage {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
}

.card-path-stage.done {
    border-color: rgba(52,255,156,0.32);
    background: rgba(52,255,156,0.08);
}

.card-path-stage.active {
    border-color: rgba(255,211,106,0.35);
    box-shadow: 0 0 20px rgba(255,211,106,0.08);
}

.card-path-stage__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.card-path-stage__step {
    font-size: 18px;
    color: #fff;
}

.card-path-stage__reward {
    font-size: 13px;
    color: var(--gold);
}

.card-path-stage__value,
.card-path-stage__state {
    font-size: 14px;
    color: var(--text-soft);
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 700px) {
    .card-path-modal__content {
        width: min(100% - 20px, 100%);
        margin: 20px auto;
        padding: 18px;
    }

    .card-path-modal__header {
        grid-template-columns: 1fr;
    }

    .card-path-modal__title {
        font-size: 24px;
    }

    .card-path-stage__top {
        flex-direction: column;
        align-items: flex-start;
    }
}
.main-header__level {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    position: relative;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255, 211, 106, 0.22);
    overflow: hidden;
}

.main-header__level-number {
    font-size: 18px;
    color: var(--gold);
    z-index: 2;
}

.main-header__level-label {
    font-size: 9px;
    color: rgba(255,255,255,0.65);
    z-index: 2;
    margin-top: -18px;
}

.main-header__level-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background: rgba(255,255,255,0.08);
}

.main-header__level-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--primary));
}
.main-header__level {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255, 211, 106, 0.25);
    color: var(--gold);
    font-size: 12px;
}

.main-header__level strong {
    font-size: 16px;
    color: #fff;
}

.main-header__level span {
    font-size: 11px;
    color: var(--gold);
}
.card-path-stage.claimable {
    border-color: rgba(255, 211, 106, 0.55);
    background: rgba(255, 211, 106, 0.08);
    box-shadow: 0 0 22px rgba(255, 211, 106, 0.10);
}

.card-path-stage__reward-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255, 211, 106, 0.22);
    color: var(--gold);
    font-size: 13px;
}

.card-path-claim-btn {
    margin-top: 12px;
    padding: 10px 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    color: #1b1200;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 5px 0 #a56e00;
}

.card-path-claim-btn:hover {
    transform: translateY(-2px);
}
.main-header__resource {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    color: #fff;
    font-size: 14px;
}
.main-header__profile {
    cursor: pointer;
}

.player-profile-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3200;
}

.player-profile-modal.active {
    display: block;
}

.player-profile-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(6px);
}

.player-profile-modal__content {
    position: relative;
    z-index: 2;
    width: min(720px, calc(100% - 32px));
    margin: 70px auto;
    padding: 26px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, rgba(255, 211, 106, 0.08), transparent 32%),
        linear-gradient(135deg, rgba(24,18,48,0.98), rgba(10,8,28,0.98));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 24px 70px rgba(0,0,0,0.50);
}

.player-profile-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
}

.player-profile-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.player-profile-avatar {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    color: #1b1200;
    font-size: 30px;
    box-shadow: var(--shadow-gold);
}

.player-profile-name {
    font-size: 30px;
    color: #fff;
}

.player-profile-vip {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--gold);
    border: 1px solid rgba(255, 211, 106, 0.28);
    background: rgba(255, 211, 106, 0.06);
    font-size: 12px;
}

.player-profile-level {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 18px;
}

.player-profile-level-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--text-soft);
}

.player-profile-level-row b {
    color: var(--gold);
}

.player-profile-xp-bar {
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
}

.player-profile-xp-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--primary));
}

.player-profile-resources {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

.player-profile-resource {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}

.player-profile-resource span {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

.player-profile-resource b {
    display: block;
    font-size: 22px;
    color: #fff;
}

.player-profile-resource small {
    display: block;
    margin-top: 5px;
    color: var(--text-soft);
}

.player-profile-coming h3 {
    color: var(--gold);
    margin-bottom: 12px;
}

.player-profile-coming-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.player-profile-coming-grid div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.045);
    border: 1px dashed rgba(255,255,255,0.12);
    color: var(--text-soft);
    text-align: center;
    font-size: 13px;
}

@media (max-width: 700px) {
    .player-profile-resources,
    .player-profile-coming-grid {
        grid-template-columns: 1fr;
    }
}
.header-bar,
.game-header {
    display: none !important;
}
.game-screen-themed::before,
.game-screen-themed::after,
.slot-scene::before,
.slot-scene::after {
    display: none !important;
}

#game-screen {
    background: transparent !important;
}

.slot-scene {
    background: transparent !important;
}
.main-header__logo {
    border: none;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    font-size: 24px;
    letter-spacing: 1px;
    color: var(--gold);
    text-shadow: 0 0 14px rgba(255, 211, 106, 0.35);
    padding: 0;
}

.main-header__logo:hover {
    transform: scale(1.03);
    filter: brightness(1.15);
}
#game-screen {
    background:
        linear-gradient(rgba(5, 0, 15, 0.45), rgba(5, 0, 15, 0.75)),
        url("image/backgrounds/slot-bg.jpg") center / cover no-repeat fixed !important;
    max-width: none;
    min-height: calc(100vh - 90px);
}
/* === CHARACTERS FINAL CLEAN === */

#characters-screen {
  background: none !important;
  max-width: none !important;
  width: 100% !important;
  min-height: calc(100vh - 90px) !important;
  padding-top: 80px !important;
}

.characters-container {
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 180px 1fr 140px !important;
  gap: 18px !important;
  align-items: center !important;
}

.characters-stage {
  position: relative !important;
  width: 100% !important;
  max-width: 760px !important;
  height: 460px !important;
  background: url("image/characters/stage.png") center / cover no-repeat !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55) !important;
}

#active-character {
    height: 72vh !important;
    max-height: 720px !important;
    width: auto !important;
    object-fit: contain !important;
    margin-bottom: 8px !important;
    transform-origin: center bottom;
    filter: drop-shadow(0 40px 50px rgba(0,0,0,0.75));
}

#active-pet {
  position: absolute !important;
  left: 20% !important;
  bottom: 70px !important;
  height: 120px !important;
  width: auto !important;
  z-index: 4 !important;
}

.characters-sidebar,
.character-tabs {
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-radius: 18px !important;
  padding: 14px !important;
}
.character-stage {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100vh;
}

#active-character {
    max-height: 80vh;
    object-fit: contain;
    filter: drop-shadow(0 30px 40px rgba(0,0,0,0.6));
}
#characters-screen {
    min-height: 100vh;
    background: url("image/backgrounds/your-bg.jpg") center/cover no-repeat !important;
    justify-content: center;
    align-items: center;
}
#characters-screen:not(.active) {
    display: none !important;
}
.character-stage {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

#active-character {
    max-height: 85vh;
    object-fit: contain;
    filter: drop-shadow(0 40px 80px rgba(0,0,0,0.9));
    z-index: 2;
}
#characters-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 40%, rgba(0,0,0,0.8));
    pointer-events: none;
}
#characters-screen::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,200,100,0.4), transparent);
    filter: blur(40px);
}
#active-character {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.characters-container {
    position: relative !important;
    width: 100% !important;
    height: calc(100vh - 90px) !important;
}

.characters-sidebar {
    position: absolute !important;
    left: 32px !important;
    top: 120px !important;
    width: 260px !important;
    z-index: 20 !important;
}

.character-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 14px;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.18);
    cursor: pointer;
}

.character-list-item.active {
    border-color: var(--gold);
    box-shadow: 0 0 18px rgba(255, 211, 106, 0.35);
}

.character-list-avatar img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.character-list-name {
    color: white;
    font-size: 14px;
}

.character-list-status {
    color: var(--gold);
    font-size: 11px;
}
/* === CHARACTER SCREEN / RPG LAYOUT === */

#characters-screen {
    min-height: calc(100vh - 90px) !important;
    height: calc(100vh - 90px) !important;
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.65), transparent 35%, rgba(0,0,0,0.72)),
        url("image/backgrounds/your-bg.jpg") center/cover no-repeat !important;
}

.characters-container {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
}

.characters-back-btn {
    position: absolute;
    top: 24px;
    left: 28px;
    z-index: 50;
    padding: 12px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-family: inherit;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.characters-back-btn:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

/* ЛЕВАЯ ПАНЕЛЬ */
.characters-sidebar {
    position: absolute !important;
    left: 12px !important;
    top: 105px !important;
    width: 300px !important;
    z-index: 20 !important;
    padding: 14px !important;
    border-radius: 24px !important;
    background: rgba(8, 4, 12, 0.72) !important;
    border: 1px solid rgba(255, 211, 106, 0.28) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}

.characters-arrow {
    width: 100%;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.05);
    color: var(--gold);
    font-family: inherit;
    cursor: pointer;
    margin-bottom: 10px;
}

.characters-arrow:last-child {
    margin-top: 10px;
    margin-bottom: 0;
}

#characters-list {
    max-height: 270px;
    overflow: hidden;
}

.character-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 78px;
    padding: 10px 14px;
    margin-bottom: 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.14);
    cursor: pointer;
    transition: 0.2s;
}

.character-list-item:hover,
.character-list-item.active {
    border-color: var(--gold);
    box-shadow: 0 0 22px rgba(255, 211, 106, 0.28);
    transform: translateX(4px);
}

.character-list-avatar img {
    width: 48px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.6));
}

.character-list-name {
    font-size: 16px;
    color: white;
}

/* ЦЕНТР */
.character-stage {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    pointer-events: none;
}

#active-character {
    height: 78vh !important;
    max-height: 780px !important;
    width: auto !important;
    object-fit: contain !important;
    margin-top: 40px !important;
    filter: drop-shadow(0 40px 50px rgba(0,0,0,0.75));
}

/* ПИТОМЕЦ РЯДОМ */
.active-pet-placeholder {
    position: absolute;
    bottom: 48px;
    left: calc(50% + 210px);
    width: 96px;
    height: 96px;
    border-radius: 24px;
    border: 1px dashed rgba(255, 211, 106, 0.45);
    background: rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    gap: 4px;
    animation: petFloat 2.4s ease-in-out infinite;
}

.active-pet-placeholder span {
    font-size: 32px;
}

.active-pet-placeholder small {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}

@keyframes petFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ПРАВЫЙ СВИТОК */
.character-info-scroll {
    position: absolute;
    right: 12px;
    top: 96px;
    width: 320px;
    min-height: 580px;
    z-index: 20;
    padding: 28px 24px;
    color: #3a210c;
    background:
        radial-gradient(circle at top, rgba(255,255,255,0.35), transparent 35%),
        linear-gradient(180deg, #e5c17b, #b9853f);
    border: 2px solid #5a3514;
    border-radius: 18px;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.5),
        inset 0 0 25px rgba(80, 35, 10, 0.35);
}

.character-info-scroll::before,
.character-info-scroll::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    height: 16px;
    background: rgba(90, 53, 20, 0.35);
    border-radius: 999px;
}

.character-info-scroll::before {
    top: 10px;
}

.character-info-scroll::after {
    bottom: 10px;
}

.scroll-title {
    text-align: center;
    font-size: 20px;
    color: #3a210c;
    margin-bottom: 12px;
}

.scroll-character-name {
    text-align: center;
    font-size: 24px;
    color: #1e1006;
    margin-bottom: 14px;
}

.scroll-divider {
    height: 1px;
    background: rgba(58, 33, 12, 0.35);
    margin: 14px 0;
}

.scroll-section-title {
    font-size: 15px;
    margin-bottom: 8px;
    color: #2a1607;
}

.scroll-empty-text {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(42, 22, 7, 0.75);
}

.equipment-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 12px 0 18px;
}

.equipment-slot {
    height: 72px;
    border-radius: 14px;
    border: 1px dashed rgba(58, 33, 12, 0.45);
    background: rgba(255,255,255,0.22);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.equipment-slot span {
    font-size: 22px;
}

.equipment-slot small {
    font-size: 10px;
}

.equipment-slot.active {
    border-style: solid;
    box-shadow: inset 0 0 14px rgba(255,255,255,0.35);
}

.equipment-slot.locked {
    opacity: 0.55;
    filter: grayscale(1);
}

.pet-slot {
    height: 58px;
    border-radius: 14px;
    border: 1px dashed rgba(58, 33, 12, 0.45);
    background: rgba(255,255,255,0.22);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
}

.pet-slot span {
    font-size: 24px;
}

.pet-slot small {
    font-size: 11px;
}
/* === CHARACTER CHANGE ANIMATION === */

#active-character.character-change {
    animation: characterSwitch 0.35s ease;
}

@keyframes characterSwitch {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.94);
        filter: blur(4px) drop-shadow(0 40px 50px rgba(0,0,0,0.75));
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0) drop-shadow(0 40px 50px rgba(0,0,0,0.75));
    }
}
.pet-body {
    font-size: 34px;
    animation: petIdle 1.8s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 211, 106, 0.55));
}

.pet-shadow {
    width: 44px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.35);
    animation: petShadow 1.8s ease-in-out infinite;
}

@keyframes petIdle {
    0%, 100% {
        transform: translateY(0) rotate(-3deg);
    }

    50% {
        transform: translateY(-10px) rotate(4deg);
    }
}

@keyframes petShadow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.35;
    }

    50% {
        transform: scale(0.75);
        opacity: 0.18;
    }
}
/* === ACTIVE PET ON CHARACTER SCREEN === */

.active-pet {
    position: absolute;
    bottom: 130px;
    left: calc(50% + 190px);
    width: 155px;
    height: 155px;
    z-index: 8;
    pointer-events: none;
}

.active-pet img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: petIdle 2s ease-in-out infinite;
    filter: drop-shadow(0 18px 18px rgba(0,0,0,0.55));
}

.active-pet .pet-shadow {
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 62px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0,0,0,0.38);
    transform: translateX(-50%);
    animation: petShadow 2s ease-in-out infinite;
}

@keyframes petIdle {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-8px) rotate(3deg);
    }
}

@keyframes petShadow {
    0%, 100% {
        opacity: 0.38;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 0.2;
        transform: translateX(-50%) scale(0.78);
    }
}
.character-style-switcher {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255, 211, 106, 0.35);
    backdrop-filter: blur(10px);
    color: white;
    pointer-events: auto;
}

.character-style-switcher button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 211, 106, 0.45);
    background: rgba(255,255,255,0.08);
    color: var(--gold);
    font-size: 24px;
    cursor: pointer;
}

.character-style-switcher span {
    font-size: 13px;
    min-width: 90px;
    text-align: center;
}
/* === FINAL CHARACTER SCREEN POSITION FIX === */

#characters-screen .characters-sidebar {
    left: 8px !important;
    top: 95px !important;
    width: 300px !important;
}

#characters-screen .character-info-scroll {
    right: 8px !important;
    top: 92px !important;
    width: 320px !important;
}

#characters-screen #active-character {
    height: 80vh !important;
    max-height: 800px !important;
    margin-bottom: 18px !important;
}

#characters-screen .active-pet {
    bottom: 145px !important;
    left: calc(50% + 135px) !important;
    width: 165px !important;
    height: 165px !important;
}
#characters-list {
    height: 300px !important;
    max-height: 300px !important;
    overflow: hidden !important;
    position: relative !important;
    transition: transform 0.25s ease;
}
.characters-list-window {
    height: 300px;
    overflow: hidden;
    position: relative;
}
#characters-list {
    transition: transform 0.25s ease;
}
#characters-screen .character-style-switcher {
    position: absolute !important;
    top: 110px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 80 !important;

    display: flex !important;
    align-items: center !important;
    gap: 12px !important;

    padding: 10px 16px !important;
    border-radius: 999px !important;

    background: rgba(0,0,0,0.65) !important;
    border: 1px solid rgba(255, 211, 106, 0.55) !important;
    color: #fff !important;

    pointer-events: auto !important;
}

.character-style-switcher button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 211, 106, 0.5);
    background: rgba(255,255,255,0.08);
    color: var(--gold);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.character-style-switcher span {
    font-size: 13px;
    min-width: 90px;
    text-align: center;
}
/* === STYLE SWITCHER FINAL POSITION === */

#characters-screen .character-style-switcher {
    position: absolute !important;
    bottom: 42px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 80 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 16px !important;
    border-radius: 999px !important;
    background: rgba(0,0,0,0.65) !important;
    border: 1px solid rgba(255, 211, 106, 0.55) !important;
    color: #fff !important;
    pointer-events: auto !important;
}

#characters-screen .character-style-switcher button {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 211, 106, 0.6) !important;
    background: rgba(255,255,255,0.08) !important;
    color: var(--gold) !important;
    font-size: 28px !important;
    cursor: pointer !important;
}

#characters-screen .character-style-switcher span {
    font-size: 13px !important;
    min-width: 90px !important;
    text-align: center !important;
}
/* === STYLE SWITCHER TOP FIX === */

#characters-screen .character-style-switcher {
    position: absolute !important;
    top: 120px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 120 !important;

    width: auto !important;
    height: auto !important;
    min-height: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;

    padding: 8px 14px !important;
    border-radius: 999px !important;

    background: rgba(0,0,0,0.62) !important;
    border: 1px solid rgba(255, 211, 106, 0.55) !important;
    backdrop-filter: blur(10px) !important;

    color: #fff !important;
    pointer-events: auto !important;
    overflow: visible !important;
}

#characters-screen .character-style-switcher button {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;

    border-radius: 50% !important;
    border: 1px solid rgba(255, 211, 106, 0.65) !important;
    background: rgba(255,255,255,0.08) !important;

    color: var(--gold) !important;
    font-size: 24px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

#characters-screen .character-style-switcher span {
    font-size: 13px !important;
    min-width: 88px !important;
    text-align: center !important;
    white-space: nowrap !important;
}
/* === NEW TOP STYLE SWITCHER === */

#characters-screen .character-style-top-switcher {
    position: absolute !important;
    top: 118px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 150 !important;

    display: flex !important;
    align-items: center !important;
    gap: 12px !important;

    padding: 8px 14px !important;
    border-radius: 999px !important;
    background: rgba(0,0,0,0.65) !important;
    border: 1px solid rgba(255, 211, 106, 0.55) !important;
    backdrop-filter: blur(10px) !important;
    color: #fff !important;
    pointer-events: auto !important;
}

#characters-screen .character-style-top-switcher button {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 211, 106, 0.65) !important;
    background: rgba(255,255,255,0.08) !important;
    color: var(--gold) !important;
    font-size: 24px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

#characters-screen .character-style-top-switcher span {
    font-size: 13px !important;
    min-width: 88px !important;
    text-align: center !important;
    white-space: nowrap !important;
}
/* === STYLE SWITCHER REAL TOP FIX === */

#characters-screen .character-style-top-switcher {
    position: absolute !important;
    top: 105px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 999 !important;

    display: flex !important;
    align-items: center !important;
    gap: 12px !important;

    padding: 8px 14px !important;
    border-radius: 999px !important;
    background: rgba(0,0,0,0.72) !important;
    border: 1px solid rgba(255, 211, 106, 0.6) !important;
    color: #fff !important;
    pointer-events: auto !important;
}

#characters-screen .character-style-top-switcher button {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 211, 106, 0.65) !important;
    background: rgba(255,255,255,0.08) !important;
    color: var(--gold) !important;
    font-size: 24px !important;
    cursor: pointer !important;
}

#characters-screen .character-style-top-switcher span {
    font-size: 13px !important;
    min-width: 88px !important;
    text-align: center !important;
}
/* === SEASON PASS UI === */

.pass-page {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.pass-subtitle {
    text-align: center;
    color: var(--text-soft);
    margin: -8px 0 18px;
    font-size: 14px;
}

.pass-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

.pass-tab-btn {
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 211, 106, 0.35);
    background: rgba(0,0,0,0.35);
    color: var(--text-soft);
    font-family: inherit;
    cursor: pointer;
}

.pass-tab-btn.active {
    color: #1b1200;
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    box-shadow: var(--shadow-gold);
}

.pass-track-shell {
    position: relative;
    padding: 22px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top, rgba(255, 211, 106, 0.12), transparent 35%),
        linear-gradient(180deg, rgba(12, 5, 18, 0.92), rgba(35, 16, 8, 0.88));
    border: 1px solid rgba(255, 211, 106, 0.35);
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
    overflow: hidden;
}

.pass-chain {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 18px;
    opacity: 0.45;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 211, 106, 0.75) 0 10px,
        transparent 10px 20px
    );
}

.pass-chain-left {
    left: 14px;
}

.pass-chain-right {
    right: 14px;
}

.pass-track-header {
    display: grid;
    grid-template-columns: 1fr 110px 1fr;
    gap: 14px;
    margin-bottom: 14px;
    color: var(--gold);
    text-align: center;
    font-size: 13px;
}

.pass-track {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pass-row {
    display: grid;
    grid-template-columns: 1fr 110px 1fr;
    gap: 14px;
    align-items: center;
}

.pass-reward {
    min-height: 82px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pass-reward.premium {
    border-color: rgba(255, 211, 106, 0.35);
}

.pass-reward.free {
    border-color: rgba(77, 227, 255, 0.25);
}

.pass-reward-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 24px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.12);
}

.pass-reward-text {
    font-size: 13px;
    color: #fff;
}

.pass-level {
    position: relative;
    display: grid;
    place-items: center;
}

.pass-level::before {
    content: "";
    position: absolute;
    top: -42px;
    bottom: -42px;
    width: 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 211, 106, 0.15), rgba(255, 211, 106, 0.45));
    z-index: 0;
}

.pass-candle {
    position: relative;
    z-index: 2;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 30px;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.18);
    filter: grayscale(1);
}

.pass-candle.lit {
    filter: none;
    box-shadow:
        0 0 18px rgba(255, 211, 106, 0.55),
        0 0 40px rgba(255, 120, 40, 0.25);
    animation: candlePulse 1.6s ease-in-out infinite;
}

.pass-level-number {
    margin-top: 6px;
    font-size: 12px;
    color: var(--gold);
}

.pass-row.locked {
    opacity: 0.55;
}

@keyframes candlePulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.07);
    }
}

@media (max-width: 700px) {
    .pass-track-header,
    .pass-row {
        grid-template-columns: 1fr 70px 1fr;
        gap: 8px;
    }

    .pass-reward {
        min-height: 74px;
        padding: 8px;
    }

    .pass-reward-text {
        font-size: 11px;
    }
}
/* === CHARACTERS SCREEN V2 === */

#characters-screen-v2 {
    max-width: none !important;
    width: 100% !important;
    min-height: calc(100vh - 90px);
    padding: 0 !important;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(120, 0, 180, 0.25), transparent 35%),
        linear-gradient(90deg, rgba(0,0,0,0.9), transparent 35%, rgba(0,0,0,0.85)),
        url("image/characters/stage.png") center/cover no-repeat;
}

.characters-v2-back {
    position: absolute;
    top: 24px;
    left: 28px;
    z-index: 20;
    padding: 12px 22px;
    border-radius: 10px;
    border: 1px solid rgba(255,211,106,0.45);
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-family: inherit;
    cursor: pointer;
}

.characters-v2-title {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    padding: 14px 60px;
    font-size: 34px;
    color: var(--gold);
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,211,106,0.45);
    border-radius: 14px;
    text-shadow: 0 0 18px rgba(255,211,106,0.45);
}

.characters-v2-layout {
    position: relative;
    width: 100%;
    height: calc(100vh - 90px);
}

/* ЛЕВАЯ ИНФА */
.characters-v2-info {
    position: absolute;
    left: 42px;
    top: 130px;
    width: 330px;
    z-index: 10;
}

.characters-v2-info h1 {
    font-size: 34px;
    margin-bottom: 12px;
}

.v2-rarity {
    display: inline-block;
    padding: 8px 18px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: linear-gradient(180deg, #9b1c1c, #4a0707);
    color: #ffd6d6;
    border: 1px solid rgba(255,255,255,0.18);
}

.characters-v2-info p {
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
    margin-bottom: 22px;
}

.v2-stats {
    border: 1px solid rgba(255,211,106,0.35);
    background: rgba(0,0,0,0.45);
    border-radius: 14px;
    overflow: hidden;
}

.v2-stats div {
    display: flex;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.v2-stats div:last-child {
    border-bottom: none;
}

/* ЦЕНТР */
.characters-v2-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

.v2-character-glow {
    position: absolute;
    bottom: 120px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(160,0,255,0.45), transparent 70%);
    filter: blur(45px);
    animation: v2GlowPulse 2.4s ease-in-out infinite;
}

#v2-active-character {
    position: relative;
    z-index: 3;
    max-height: 72vh;
    object-fit: contain;
    filter: drop-shadow(0 35px 45px rgba(0,0,0,0.8));
}

.v2-pedestal {
    position: absolute;
    bottom: 70px;
    width: 360px;
    height: 90px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.8), transparent 70%);
    z-index: 1;
}

.v2-pet {
    position: absolute;
    bottom: 110px;
    left: calc(50% + 210px);
    z-index: 4;
}

.v2-pet img {
    width: 130px;
    animation: petIdle 2s ease-in-out infinite;
}

/* ПРАВАЯ ПАНЕЛЬ */
.characters-v2-actions {
    position: absolute;
    right: 42px;
    top: 160px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 10;
}

.characters-v2-actions button {
    width: 130px;
    height: 100px;
    border-radius: 14px;
    border: 1px solid rgba(255,211,106,0.45);
    background: rgba(0,0,0,0.55);
    color: var(--gold);
    font-family: inherit;
    font-size: 26px;
    cursor: pointer;
}

.characters-v2-actions button span {
    display: block;
    font-size: 13px;
    margin-top: 8px;
}

/* НИЖНЯЯ КАРУСЕЛЬ */
.characters-v2-carousel {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(0,0,0,0.62);
    border: 1px solid rgba(255,211,106,0.35);
    backdrop-filter: blur(10px);
}

.v2-character-card {
    width: 120px;
    height: 120px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    color: #fff;
}

.v2-character-card.active {
    border-color: var(--gold);
    box-shadow: 0 0 24px rgba(255,211,106,0.45);
}

.v2-character-card img {
    height: 74px;
    object-fit: contain;
}

.v2-character-card span {
    font-size: 12px;
    text-align: center;
}

@keyframes v2GlowPulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}
/* === МОДАЛКА СТИЛЕЙ === */
.character-styles-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.character-styles-modal.active {
    display: flex;
}

.character-styles-box {
    background: linear-gradient(135deg, #1a0026, #0a0014);
    border: 2px solid var(--gold);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 900px;
    text-align: center;
    box-shadow: 0 0 40px rgba(255, 211, 106, 0.3);
}

.character-styles-box h2 {
    color: var(--gold);
    margin-bottom: 20px;
}

.character-styles-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 26px;
    color: white;
    cursor: pointer;
}

.character-styles-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* КАРТОЧКА СКИНА */
.style-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.2s;
}

.style-card:hover {
    transform: scale(1.05);
    border-color: var(--gold);
}

.style-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
}

.style-rarity {
    margin: 8px 0;
    font-size: 12px;
}

/* РЕДКОСТИ */
.style-basic { border-color: gray; }
.style-rare { border-color: #3aa0ff; }
.style-epic { border-color: #b04dff; }
.style-mythic { border-color: #ff6a00; }

.style-card button {
    width: 100%;
    padding: 6px;
    border: none;
    border-radius: 8px;
    background: var(--gold);
    cursor: pointer;
    font-weight: bold;
}
/* === NEW HEROES SCREEN === */

#heroes-screen {
    min-height: calc(100vh - 90px);
    max-width: 100%;
    padding: 20px 40px;
    background:
        radial-gradient(circle at center, rgba(147, 37, 255, 0.22), transparent 38%),
        linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.45)),
        url("image/ui/hero-bg.png") center/cover no-repeat;
}

.hero-select-screen {
    width: 100%;
    max-width: 1280px;
    min-height: 560px;
    display: grid;
    grid-template-columns: 320px 1fr 150px;
    gap: 25px;
    align-items: center;
    position: relative;
}

.hero-left-panel {
    z-index: 2;
}

.hero-left-panel h1 {
    font-size: 42px;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 0 0 18px rgba(255,255,255,0.25);
}

.hero-rarity {
    display: inline-block;
    padding: 8px 22px;
    margin-bottom: 18px;
    background: linear-gradient(180deg, #8b1010, #3d0505);
    border: 1px solid #ff6868;
    color: #ffd1a1;
    font-size: 18px;
}

#hero-desc {
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
    margin-bottom: 24px;
}

.hero-stats {
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,211,106,0.35);
    padding: 14px;
    margin-bottom: 20px;
}

.hero-stats div {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #d6c3a0;
}

.hero-stats div:last-child {
    border-bottom: none;
}

.hero-stats b {
    color: #fff;
}

.hero-ability {
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,211,106,0.35);
    padding: 14px;
    color: #d6c3a0;
}

.hero-ability strong {
    color: #ffd36a;
}

.hero-ability p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.hero-center-panel {
    position: relative;
    height: 560px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-glow {
    opacity: 0.4;
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198, 54, 255, 0.65), transparent 65%);
    filter: blur(60px);
}


.hero-main-img {
    position: relative;
    z-index: 2;
    object-fit: contain;
    height: 500px;
    max-width: 620px;
    object-fit: contain;
    filter: drop-shadow(0 0 28px rgba(201, 64, 255, 0.7));
}

.hero-select-btn {
    position: absolute;
    bottom: 10px;
    z-index: 4;
    padding: 13px 38px;
    background: linear-gradient(180deg, #2c163b, #09000f);
    color: #ffd36a;
    border: 2px solid rgba(255,211,106,0.7);
    border-radius: 12px;
    font-family: inherit;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(190, 67, 255, 0.45);
}

.hero-right-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 3;
}

.hero-right-panel button {
    width: 130px;
    height: 100px;
    background: linear-gradient(180deg, rgba(42, 25, 20, 0.95), rgba(8, 3, 4, 0.95));
    border: 2px solid rgba(255,211,106,0.45);
    color: #d6b06a;
    font-family: inherit;
    font-size: 30px;
    cursor: pointer;
    border-radius: 10px;
}

.hero-right-panel span {
    display: block;
    font-size: 14px;
    margin-top: 6px;
}

.heroes-carousel {
    width: 100%;
    max-width: 1100px;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 14px;
    overflow-x: auto;
    padding: 16px;
}

.hero-card {
    width: 150px;
    min-width: 150px;
    height: 120px;
    background: rgba(0,0,0,0.55);
    border: 2px solid rgba(255,211,106,0.35);
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: 0.2s;
    overflow: hidden;
}

.hero-card.active {
    border-color: #ff55ff;
    box-shadow: 0 0 22px rgba(255, 85, 255, 0.8);
}

.hero-card img {
    width: 100%;
    height: 80px;
    object-fit: contain;
}

.hero-card div {
    color: #ffd36a;
    font-size: 13px;
}
.hero-skins-list {
    position: absolute;
    bottom: 70px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

.hero-skin-btn {
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(0,0,0,0.65);
    color: white;
    border: 2px solid #777;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
}

.hero-skin-btn[data-rarity="default"] {
    border-color: #b8b8b8;
    box-shadow: 0 0 12px rgba(184,184,184,0.35);
}

.hero-skin-btn[data-rarity="rare"] {
    border-color: #3aa0ff;
    box-shadow: 0 0 12px rgba(58,160,255,0.45);
}

.hero-skin-btn[data-rarity="epic"] {
    border-color: #b84dff;
    box-shadow: 0 0 12px rgba(184,77,255,0.5);
}

.hero-skin-btn[data-rarity="mythic"] {
    border-color: #ff7a1a;
    box-shadow: 0 0 12px rgba(255,122,26,0.55);
}

.hero-skin-btn.active {
    transform: scale(1.08);
    background: rgba(255,211,106,0.18);
}

#hero-rarity[data-rarity="default"] {
    border-color: #b8b8b8;
}

#hero-rarity[data-rarity="rare"] {
    border-color: #3aa0ff;
    color: #9ed0ff;
}

#hero-rarity[data-rarity="epic"] {
    border-color: #b84dff;
    color: #ddb2ff;
}

#hero-rarity[data-rarity="mythic"] {
    border-color: #ff7a1a;
    color: #ffd0a0;
    
}
.hero-center-panel {
    position: relative;
}

.hero-bg-art {
    position: absolute;
    width: 500px;
    height: 600px;
    background: radial-gradient(circle, rgba(170,0,255,0.6) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
}
.hero-rarity {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
}
.hero-right-panel .side-btn {
    width: 130px;
    height: 110px;
    padding: 0;
    border: none;
    background: transparent;
    overflow: hidden;
}

.hero-right-panel .side-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.heroes-carousel-wrap {
    position: relative;
    width: 860px;
    max-width: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
}

.heroes-carousel {
    width: 760px;
    display: flex;
    gap: 16px;
    overflow: hidden;
    scroll-behavior: smooth;
    padding: 16px 8px;
}

.hero-card {
    flex: 0 0 175px;
    width: 175px;
    height: 145px;
}

.hero-card img {
    width: 100%;
    height: 95px;
    object-fit: contain;
}

.heroes-arrow {
    width: 70px;
    height: 70px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 5;
}

.heroes-arrow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.heroes-arrow:hover {
    transform: scale(1.08);
    filter: brightness(1.2);
}
/* === СТИЛИ ЭКРАНА СТИЛЕЙ === */

.styles-title {
    text-align: center;
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 20px;
}

.styles-layout {
    display: flex;
    gap: 20px;
}

/* САЙДБАР */
.styles-sidebar {
    width: 180px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.style-rarity {
    padding: 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.style-rarity.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-pink);
}

/* ЦЕНТР */
.styles-center {
    flex: 1;
    display: flex;
    gap: 20px;
    align-items: center;
}

.style-preview {
    width: 250px;
    height: 350px;
    background: radial-gradient(circle, #2a003a, #000);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.style-preview img {
    max-height: 100%;
}

/* ИНФА */
.style-info {
    flex: 1;
}

.style-stats {
    margin: 15px 0;
}

.style-level {
    margin: 10px 0;
}

/* КНОПКА */
.btn-main {
    padding: 12px 20px;
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

/* КАРУСЕЛЬ */
.styles-carousel {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.style-card {
    min-width: 120px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    text-align: center;
}

.style-card.locked {
    opacity: 0.5;
}
/* === FIX STYLES SCREEN LAYOUT === */

#styles-screen {
    max-width: 1200px;
    padding-top: 30px;
}

.styles-layout {
    width: 100%;
    max-width: 900px;
    display: grid;
    grid-template-columns: 180px 280px 260px;
    gap: 24px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.styles-sidebar {
    width: 180px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.style-rarity {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.styles-center {
    display: contents;
}

.style-preview {
    width: 280px;
    height: 430px;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: radial-gradient(circle at center, rgba(180, 55, 255, 0.35), rgba(0,0,0,0.75));
}

.style-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    display: block;
}

.style-info {
    width: 260px;
    align-self: center;
}

#style-name {
    font-size: 28px;
    margin-bottom: 6px;
}

#style-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 18px;
}

.style-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

#style-level {
    margin-bottom: 12px;
    color: var(--gold);
}

#style-action-btn {
    width: 100%;
    min-height: 46px;
    font-family: inherit;
    font-size: 14px;
}

.styles-carousel {
    width: 100%;
    max-width: 900px;
    justify-content: center;
    margin-top: 28px;
}

.style-card {
    width: 180px;
    min-width: 180px;
    height: 130px;
    overflow: hidden;
}

.style-card img {
    width: 100%;
    height: 85px;
    object-fit: contain;
}
/* === СТИЛИ ЭКРАНА СТИЛЕЙ === */

#styles-screen {
    max-width: 1200px;
    padding-top: 35px;
}

.styles-title {
    text-align: center;
    font-size: 34px;
    color: var(--gold);
    margin-bottom: 28px;
}

.styles-layout {
    width: 100%;
    display: grid;
    grid-template-columns: 190px 300px 280px;
    gap: 26px;
    align-items: center;
    justify-content: center;
}

.styles-center {
    display: contents;
}

.styles-sidebar {
    width: 190px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.style-rarity {
    height: 50px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    cursor: pointer;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
}

.style-rarity.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-pink);
}

.style-preview {
    width: 300px;
    height: 430px;
    background: radial-gradient(circle, rgba(155, 35, 255, 0.35), rgba(0,0,0,0.9));
    border-radius: 22px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.style-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
}

.style-info {
    width: 280px;
}

#style-name {
    font-size: 30px;
    margin-bottom: 6px;
}

#style-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 18px;
}

.style-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
}

#style-level {
    margin: 14px 0;
    color: var(--gold);
}

.btn-main,
#style-action-btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    color: #1b1200;
}

.styles-carousel {
    margin-top: 30px;
    display: flex;
    gap: 14px;
    justify-content: center;
    width: 100%;
}

.style-card {
    width: 180px;
    min-width: 180px;
    height: 140px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    cursor: pointer;
    text-align: center;
    overflow: hidden;
}

.style-card img {
    width: 100%;
    height: 90px;
    object-fit: contain;
}
/* === DOTA STYLE SCREEN === */

.styles-dota-screen {
    max-width: none;
    min-height: calc(100vh - 90px);
    padding: 0;
    overflow: hidden;
}

.styles-dota-bg {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(90deg, rgba(0,0,0,0.6), rgba(10,0,20,0.9)),
        url("image/ui/styles-bg.jpg") center/cover no-repeat;
    z-index: -1;
}


.styles-dota-layout {
    width: 100%;
    max-width: 1180px;
    min-height: 720px;
    display: grid;
    grid-template-columns: 52% 48%;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
    padding: 70px 40px 30px;
}

.styles-dota-hero {
    position: relative;
    height: 620px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.styles-dota-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(188, 58, 255, 0.45), transparent 70%);
    filter: blur(8px);
    bottom: 80px;
}

.styles-dota-hero img {
    position: relative;
    z-index: 2;
    max-width: 95%;
    max-height: 600px;
    object-fit: contain;
    filter: drop-shadow(0 35px 45px rgba(0,0,0,0.65));
}

.styles-dota-panel {
    width: 100%;
    max-width: 500px;
    padding: 26px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
    border: 1px solid rgba(255, 211, 106, 0.25);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 55px rgba(0,0,0,0.45);
}

.styles-dota-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.styles-dota-label {
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 2px;
}

#styles-character-name {
    font-size: 42px;
    line-height: 1;
    margin-top: 6px;
}

.style-rarity-badge {
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid rgba(255,255,255,0.18);
}

.style-rarity-badge.common { color: #ddd; }
.style-rarity-badge.rare { color: #3aa0ff; }
.style-rarity-badge.epic { color: #b84dff; }
.style-rarity-badge.legendary { color: var(--gold); }

#style-name {
    font-size: 30px;
    margin-bottom: 6px;
}

#style-desc {
    color: rgba(255,255,255,0.72);
    font-size: 14px;
    margin-bottom: 18px;
}

.style-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 16px 0;
}

.style-stats div {
    padding: 10px;
    border-radius: 12px;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
}

.style-stats b {
    color: var(--gold);
    float: right;
}

.styles-dota-level {
    color: var(--gold);
    margin: 14px 0;
}

.styles-dota-rarities {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 16px 0;
}

.styles-dota-rarities .style-rarity {
    height: 42px;
    font-size: 11px;
    border-radius: 12px;
}

.styles-dota-items {
    display: flex;
    gap: 10px;
    min-height: 112px;
    margin: 14px 0 18px;
    overflow-x: auto;
}

.style-card {
    width: 104px;
    min-width: 104px;
    height: 108px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    cursor: pointer;
}

.style-card img {
    width: 100%;
    height: 72px;
    object-fit: contain;
}

.style-card div {
    font-size: 11px;
    color: var(--text-soft);
}

.style-card.locked {
    opacity: 0.65;
}

.styles-dota-main-btn {
    width: 100%;
    min-height: 52px;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 16px;
    color: #211400;
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    cursor: pointer;
    box-shadow: 0 8px 0 #9b6800, var(--shadow-gold);
}

.styles-dota-cost {
    margin-top: 14px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    text-align: center;
}
.styles-dota-upgrade-btn {
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
    border: 1px solid rgba(255, 211, 106, 0.55);
    border-radius: 14px;
    font-family: inherit;
    font-size: 15px;
    color: var(--gold);
    background: rgba(255, 211, 106, 0.08);
    cursor: pointer;
}

.styles-dota-upgrade-btn:hover {
    background: rgba(255, 211, 106, 0.15);
    box-shadow: var(--shadow-gold);
}

.styles-dota-upgrade-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.styles-dota-upgrade-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.upgrade-title {
    font-size: 15px;
}

.upgrade-cost-line {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.cost-ok {
    color: #34ff9c;
}

.cost-bad {
    color: #ff4d6d;
}
.style-card.equipped {
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.style-card.equipped::after {
    content: "ВЫБРАН";
    display: block;
    margin-top: 2px;
    font-size: 10px;
    color: var(--gold);
}
.shop-item {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0;
}

.shop-title {
    font-weight: bold;
    font-size: 16px;
}

.shop-desc {
    opacity: 0.7;
    margin: 5px 0;
}

.shop-item button {
    background: gold;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

#shop-screen {
    max-width: 1250px;
    padding-top: 40px;
}

#shop-screen h2 {
    font-size: 42px;
    color: var(--gold);
    margin-bottom: 24px;
}

.shop-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.shop-tabs button {
    padding: 14px 28px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: white;
    font-family: inherit;
    cursor: pointer;
}

.shop-tabs button.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-pink);
    color: var(--gold);
}

#shop-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.shop-item {
    min-height: 240px;
    padding: 20px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top, rgba(170, 60, 255, 0.18), transparent 45%),
        rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 18px 45px rgba(0,0,0,0.35);
    text-align: center;
}

.shop-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 14px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 58px;
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.12);
}

.shop-title {
    font-size: 18px;
    color: var(--gold);
    margin-bottom: 8px;
}

.shop-desc {
    min-height: 42px;
    font-size: 13px;
    color: rgba(255,255,255,0.72);
    margin-bottom: 16px;
}

.shop-item button {
    width: 100%;
    min-height: 42px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, #8f35ff, #5514b8);
    color: white;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(143, 53, 255, 0.35);
}
/* === SHOP === */

.shop-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.shop-tab {
    padding: 10px 20px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    cursor: pointer;
}

.shop-tab.active {
    background: linear-gradient(45deg, #ff00cc, #7b00ff);
}

.shop-grid {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.shop-grid.active {
    display: grid;
}

.shop-card {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}

.shop-card:hover {
    transform: translateY(-5px);
    border-color: #ff00cc;
}

.shop-card img {
    width: 100px;
    margin-bottom: 10px;
}

.shop-card h3 {
    margin-bottom: 10px;
}

.shop-card button {
    margin-top: 10px;
    padding: 10px;
    width: 100%;
    border: none;
    border-radius: 10px;
    background: linear-gradient(45deg, #a100ff, #ff00cc);
    color: #fff;
    cursor: pointer;
}
/* === FIX SHOP ICONS === */

.shop-icon-wrap {
    width: 120px;
    height: 110px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-item-img {
    max-width: 120px;
    max-height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(165, 70, 255, 0.55));
}

.shop-item {
    min-height: 270px;
}

.shop-title-main {
    text-align: center;
    color: #ffd36a;
    font-size: 44px;
    margin-bottom: 28px;
}
/* === SHOP V2 REFERENCE STYLE === */

#shop-screen {
    max-width: none;
    width: 100%;
    padding: 0;
}

.shop-v2 {
    width: 100%;
    min-height: calc(100vh - 90px);
    display: grid;
    grid-template-columns: 230px 1fr;
    background:
        radial-gradient(circle at 20% 10%, rgba(126, 0, 255, 0.22), transparent 28%),
        radial-gradient(circle at 80% 20%, rgba(93, 0, 180, 0.16), transparent 30%),
        linear-gradient(180deg, #080010, #030007);
    border-top: 1px solid rgba(125, 48, 255, 0.25);
}

.shop-v2-sidebar {
    padding: 28px 12px;
    background: linear-gradient(180deg, rgba(30, 0, 55, 0.9), rgba(5, 0, 12, 0.95));
    border-right: 1px solid rgba(140, 55, 255, 0.25);
}

.shop-v2-side-item {
    height: 82px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 18px;
    color: rgba(255,255,255,0.68);
    font-size: 17px;
    border: 1px solid rgba(125, 48, 255, 0.16);
    background: rgba(255,255,255,0.03);
    margin-bottom: 8px;
}

.shop-v2-side-item.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(151, 28, 255, 0.85), rgba(85, 0, 160, 0.55));
    border-color: rgba(205, 91, 255, 0.75);
    box-shadow: 0 0 22px rgba(160, 40, 255, 0.35);
}

.shop-v2-main {
    padding: 28px 26px 40px;
}

.shop-v2-top h1 {
    font-size: 40px;
    letter-spacing: 3px;
    color: #fff;
    text-shadow: 0 0 18px rgba(178, 80, 255, 0.45);
    margin-bottom: 20px;
}

.shop-v2-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-bottom: 22px;
    border: 1px solid rgba(120, 50, 255, 0.28);
    background: rgba(9, 0, 22, 0.75);
}

.shop-v2-tabs button {
    height: 50px;
    border: none;
    border-right: 1px solid rgba(120, 50, 255, 0.22);
    background: transparent;
    color: rgba(255,255,255,0.62);
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
}

.shop-v2-tabs button.active {
    color: #fff;
    background: linear-gradient(180deg, #8d21ff, #4b087e);
    box-shadow: inset 0 0 18px rgba(255,255,255,0.18), 0 0 18px rgba(150, 40, 255, 0.45);
}

.shop-v2-section-title {
    color: #bd57ff;
    font-size: 24px;
    letter-spacing: 1px;
    margin: 12px 0;
    text-transform: uppercase;
}

.shop-v2-section-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shop-v2-see-all {
    color: #bd57ff;
    font-size: 14px;
}

.shop-v2-recommend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.shop-v2-pack-card,
.shop-v2-chest-card,
.shop-v2-small-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(137, 48, 255, 0.35);
    background:
        radial-gradient(circle at 50% 20%, rgba(132, 38, 255, 0.22), transparent 45%),
        linear-gradient(180deg, rgba(25, 6, 43, 0.95), rgba(7, 0, 17, 0.95));
    box-shadow: inset 0 0 20px rgba(120, 40, 255, 0.08);
}

.shop-v2-pack-card {
    min-height: 260px;
    padding: 16px;
    text-align: center;
}

.shop-v2-pack-card h3 {
    font-size: 17px;
    color: #fff;
    margin-bottom: 4px;
}

.shop-v2-pack-card img {
    width: 170px;
    height: 125px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(170, 80, 255, 0.6));
}

.shop-v2-badge {
    position: absolute;
    top: 0;
    right: -34px;
    width: 120px;
    transform: rotate(35deg);
    background: #d82172;
    color: #fff;
    font-size: 10px;
    padding: 5px 0;
}

.shop-v2-rewards {
    color: rgba(255,255,255,0.78);
    font-size: 15px;
    margin: 4px 0 10px;
}

.shop-v2-pack-card button,
.shop-v2-chest-card button,
.shop-v2-small-card button {
    min-width: 150px;
    height: 38px;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    background: linear-gradient(180deg, #9d2dff, #4b087e);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 0 16px rgba(150, 40, 255, 0.35);
}

.shop-v2-chest-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.shop-v2-chest-card {
    min-height: 220px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
}

.shop-v2-chest-card img {
    width: 145px;
    height: 105px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(170, 80, 255, 0.55));
}

.shop-v2-chest-card h3 {
    color: #fff;
    font-size: 17px;
    margin-top: 6px;
}

.shop-v2-chest-card p {
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    margin: 8px 0 12px;
}

.shop-v2-currency-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.shop-v2-small-card {
    min-height: 180px;
    padding: 12px;
    text-align: center;
}

.shop-v2-small-card img {
    width: 90px;
    height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(170, 80, 255, 0.5));
}

.shop-v2-small-card h3 {
    color: #fff;
    font-size: 14px;
    margin-top: 6px;
}

.shop-v2-small-card strong {
    display: block;
    color: #ffd36a;
    margin: 5px 0 8px;
}

.shop-v2-pack-card:hover,
.shop-v2-chest-card:hover,
.shop-v2-small-card:hover {
    transform: translateY(-3px);
    border-color: rgba(206, 93, 255, 0.9);
    box-shadow: 0 0 24px rgba(150, 40, 255, 0.22);
}

@media (max-width: 900px) {
    .shop-v2 {
        grid-template-columns: 1fr;
    }

    .shop-v2-sidebar {
        display: none;
    }

    .shop-v2-recommend-grid,
    .shop-v2-chest-grid,
    .shop-v2-currency-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-v2-tabs {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* === SHOP V3 FINAL LIKE REFERENCE === */

.shop-screen-v3 {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    align-items: stretch !important;
}

.shop-v3 {
    width: 100%;
    min-height: calc(100vh - 94px);
    display: grid;
    grid-template-columns: 245px 1fr;
    background:
        radial-gradient(circle at 25% 10%, rgba(122, 0, 255, 0.22), transparent 30%),
        radial-gradient(circle at 70% 50%, rgba(55, 0, 120, 0.18), transparent 34%),
        linear-gradient(180deg, #07000e, #030007);
    border-top: 1px solid rgba(136, 58, 255, 0.22);
}

.shop-v3-sidebar {
    padding: 28px 12px;
    background: linear-gradient(180deg, rgba(31, 0, 63, 0.92), rgba(4, 0, 12, 0.96));
    border-right: 1px solid rgba(128, 50, 255, 0.28);
}

.shop-v3-side {
    width: 100%;
    height: 92px;
    margin-bottom: 8px;
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    text-align: left;
    gap: 10px;
    padding: 0 16px;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(132, 50, 255, 0.20);
    font-family: inherit;
    font-size: 17px;
}

.shop-v3-side span {
    display: block;
}

.shop-v3-side small {
    grid-column: 2;
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    margin-top: -28px;
}

.shop-v3-side.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(132, 24, 255, 0.95), rgba(66, 0, 130, 0.55));
    border-color: rgba(202, 87, 255, 0.8);
    box-shadow: inset 0 0 18px rgba(255,255,255,0.08), 0 0 22px rgba(150, 40, 255, 0.4);
}

.shop-v3-main {
    padding: 18px 24px 34px;
}

.shop-v3-header {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 16px;
}

.shop-v3-back {
    width: 58px;
    height: 58px;
    font-size: 46px;
    line-height: 1;
    color: #9d4dff;
    background: rgba(80, 0, 140, 0.18);
    border: 1px solid rgba(150, 60, 255, 0.35);
    font-family: inherit;
}

.shop-v3-header h1 {
    font-size: 40px;
    color: #f5edff;
    letter-spacing: 3px;
    text-shadow: 0 0 18px rgba(160, 60, 255, 0.55);
    margin-right: auto;
}

.shop-v3-balances {
    display: flex;
    gap: 12px;
}

.shop-v3-balances div {
    height: 44px;
    min-width: 145px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 8px;
    background: rgba(12, 0, 28, 0.88);
    border: 1px solid rgba(120, 45, 255, 0.45);
    color: #d9c8ff;
    box-shadow: inset 0 0 12px rgba(130, 40, 255, 0.12);
}

.shop-v3-balances img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.shop-v3-balances b {
    margin-left: auto;
    color: #b04cff;
    font-size: 26px;
}

.shop-v3-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 54px;
    margin-bottom: 16px;
    border: 1px solid rgba(120, 50, 255, 0.30);
    background: rgba(7, 0, 20, 0.9);
}

.shop-v3-tabs button {
    border: none;
    border-right: 1px solid rgba(120, 50, 255, 0.24);
    background: transparent;
    color: rgba(255,255,255,0.58);
    font-family: inherit;
    font-size: 15px;
}

.shop-v3-tabs button.active {
    color: #fff;
    background: linear-gradient(180deg, #8425ff, #4a087a);
    box-shadow: 0 0 20px rgba(150, 40, 255, 0.55);
}

.shop-v3-section {
    margin-bottom: 12px;
}

.shop-v3-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shop-v3-row-title {
    color: #b94dff;
    font-size: 24px;
    text-transform: uppercase;
    margin: 8px 0 10px;
    text-shadow: 0 0 12px rgba(180, 60, 255, 0.35);
}

.shop-v3-see {
    color: #b94dff;
    font-size: 14px;
}

.shop-v3-pack-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.shop-v3-chest-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.shop-v3-currency-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.shop-v3-pack-card,
.shop-v3-chest-card,
.shop-v3-small-card {
    position: relative;
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(130, 45, 255, 0.40);
    background:
        radial-gradient(circle at 50% 20%, rgba(140, 45, 255, 0.22), transparent 42%),
        linear-gradient(180deg, rgba(24, 7, 44, 0.96), rgba(6, 0, 15, 0.98));
    box-shadow: inset 0 0 22px rgba(115, 35, 255, 0.08);
}

.shop-v3-pack-card {
    height: 270px;
    padding: 14px;
}

.shop-v3-pack-card h3,
.shop-v3-chest-card h3,
.shop-v3-small-card h3 {
    color: #f5e8ff;
    font-size: 16px;
    margin-bottom: 4px;
}

.shop-v3-pack-card img {
    width: 170px;
    height: 125px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(160, 80, 255, 0.6));
}

.shop-v3-badge {
    position: absolute;
    top: 0;
    right: -36px;
    width: 122px;
    transform: rotate(35deg);
    background: #d62975;
    color: #fff;
    font-size: 10px;
    padding: 5px 0;
}

.shop-v3-rewards {
    color: rgba(255,255,255,0.74);
    font-size: 14px;
    margin-bottom: 10px;
}

.shop-v3-chest-card {
    height: 220px;
    padding: 12px;
    cursor: pointer;
}

.shop-v3-chest-card > img {
    width: 150px;
    height: 105px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(160, 80, 255, 0.6));
}

.shop-v3-chest-card p {
    color: rgba(255,255,255,0.48);
    font-size: 13px;
    margin: 6px 0 10px;
}

.shop-v3-small-card {
    height: 176px;
    padding: 10px;
}

.shop-v3-small-card > img {
    width: 88px;
    height: 68px;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(160, 80, 255, 0.5));
}

.shop-v3-small-card strong {
    display: block;
    color: #ffd36a;
    font-size: 16px;
    margin: 4px 0 8px;
}

.shop-v3-pack-card button,
.shop-v3-chest-card button,
.shop-v3-small-card button {
    height: 36px;
    min-width: 135px;
    padding: 0 18px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(180deg, #982cff, #4b087e);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 0 16px rgba(150, 40, 255, 0.35);
}

.shop-v3-chest-card button img,
.shop-v3-small-card button img {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.shop-v3-pack-card:hover,
.shop-v3-chest-card:hover,
.shop-v3-small-card:hover {
    transform: translateY(-3px);
    border-color: rgba(205, 90, 255, 0.95);
    box-shadow: 0 0 24px rgba(150, 40, 255, 0.25);
}

@media (max-width: 1000px) {
    .shop-v3 {
        grid-template-columns: 1fr;
    }

    .shop-v3-sidebar {
        display: none;
    }

    .shop-v3-balances {
        display: none;
    }

    .shop-v3-pack-grid,
    .shop-v3-chest-grid,
    .shop-v3-currency-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Убираем ресурсы внутри магазина */
.shop-v3-balances {
    display: none !important;
}

/* Шапка магазина после удаления ресурсов */
.shop-v3-header {
    justify-content: flex-start;
}

.shop-v3-header h1 {
    margin-right: 0 !important;
}
/* === SHOP V3 CARD SIZE TUNING === */

.shop-v3-pack-card {
    height: 310px !important;
    padding: 18px !important;
}

.shop-v3-pack-card img {
    width: 190px !important;
    height: 145px !important;
}

.shop-v3-small-card {
    height: 230px !important;
    padding: 18px !important;
}

.shop-v3-small-card > img {
    width: 120px !important;
    height: 96px !important;
}

.shop-v3-small-card h3 {
    font-size: 17px !important;
}

.shop-v3-small-card strong {
    font-size: 18px !important;
    min-height: 42px;
}

.shop-v3-small-card button {
    min-width: 155px !important;
    height: 40px !important;
}

#shop-v3-pass.shop-v3-currency-grid,
#shop-v3-energy-grid.shop-v3-currency-grid {
    grid-template-columns: repeat(3, minmax(240px, 1fr)) !important;
}

#shop-v3-currency.shop-v3-currency-grid {
    grid-template-columns: repeat(3, minmax(240px, 1fr)) !important;
}

#shop-v3-packs.shop-v3-pack-grid {
    grid-template-columns: repeat(4, minmax(240px, 1fr)) !important;
}
.shop-v3-tabs {
    display: none !important;
}

.shop-v3-main {
    padding-top: 24px !important;
}
.shop-v3-pack-card img,
.shop-v3-chest-card img,
.shop-v3-small-card img {
    object-fit: contain;
    image-rendering: auto;
    transition: transform 0.2s ease;
}

.shop-v3-pack-card:hover img,
.shop-v3-chest-card:hover img,
.shop-v3-small-card:hover img {
    transform: scale(1.05);
}
/* === NEW HEADER V2 === */

.main-header {
    display: none !important;
}

.main-header-v2 {
    width: 100%;
    height: 104px;
    display: grid;
    grid-template-columns: 320px 1fr 520px;
    align-items: center;
    gap: 18px;
    padding: 12px 24px;
    background:
        linear-gradient(180deg, rgba(24, 4, 45, 0.98), rgba(5, 0, 14, 0.98)),
        radial-gradient(circle at center, rgba(150, 40, 255, 0.22), transparent 45%);
    border-bottom: 1px solid rgba(170, 70, 255, 0.35);
    box-shadow:
        0 0 35px rgba(130, 40, 255, 0.22),
        inset 0 -1px 0 rgba(255,255,255,0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-v2-profile {
    height: 78px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 14px;
    border: 1px solid rgba(155, 70, 255, 0.35);
    background: linear-gradient(90deg, rgba(62, 8, 100, 0.85), rgba(8, 0, 18, 0.75));
    box-shadow: inset 0 0 22px rgba(140, 40, 255, 0.12);
}

.header-v2-avatar {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #ffd36a, #b67800);
    color: #210014;
    font-size: 30px;
    font-weight: 900;
    box-shadow: 0 0 18px rgba(255, 211, 106, 0.35);
}

.header-v2-player {
    flex: 1;
}

.header-v2-name {
    color: #fff;
    font-size: 18px;
    margin-bottom: 8px;
}

.header-v2-level-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-v2-level {
    min-width: 38px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(180deg, #8d2cff, #4b087e);
    border: 1px solid rgba(210, 110, 255, 0.65);
    border-radius: 8px;
}

.header-v2-xp {
    flex: 1;
    height: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(155, 70, 255, 0.35);
    overflow: hidden;
}

.header-v2-xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #7f20ff, #ff3bd4);
    box-shadow: 0 0 12px rgba(255, 59, 212, 0.55);
}

.header-v2-nav {
    height: 78px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border: 1px solid rgba(155, 70, 255, 0.28);
    background: rgba(7, 0, 18, 0.65);
}

.header-v2-nav button {
    border: none;
    border-right: 1px solid rgba(155, 70, 255, 0.20);
    background: transparent;
    color: rgba(255,255,255,0.68);
    font-family: inherit;
    font-size: 22px;
    cursor: pointer;
}

.header-v2-nav button span {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    text-transform: uppercase;
}

.header-v2-nav button.active {
    color: #fff;
    background:
        radial-gradient(circle at center, rgba(170, 50, 255, 0.45), transparent 60%),
        linear-gradient(180deg, rgba(120, 25, 255, 0.72), rgba(50, 0, 95, 0.72));
    box-shadow: 0 0 20px rgba(150, 40, 255, 0.45);
}
.header-v2-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    padding-right: 10px;
}


.header-v2-resource {
    height: 48px;
    min-width: 128px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    background: rgba(8, 0, 20, 0.9);
    border: 1px solid rgba(155, 70, 255, 0.42);
    border-radius: 10px;
    color: #e8dcff;
    font-size: 17px;
    box-shadow: inset 0 0 14px rgba(150, 40, 255, 0.12);
}

.header-v2-resource img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.header-v2-resource b {
    margin-left: auto;
    color: #b94dff;
    font-size: 26px;
}

.header-v2-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(155, 70, 255, 0.35);
    background: rgba(255,255,255,0.04);
    color: #fff;
    cursor: pointer;
}

@media (max-width: 1100px) {
    .main-header-v2 {
        grid-template-columns: 1fr;
        height: auto;
    }

    .header-v2-right {
        justify-content: center;
        flex-wrap: wrap;
    }
}
.shop-v3-side img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(180, 70, 255, 0.65));
}

.shop-v3-side {
    grid-template-columns: 62px 1fr !important;
}
/* === SIDEBAR EFFECTS === */

.shop-v3-side {
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.shop-v3-side::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at left, rgba(170,50,255,0.4), transparent 60%);
    opacity: 0;
    transition: 0.3s;
}

.shop-v3-side:hover::before {
    opacity: 1;
}

.shop-v3-side.active {
    background: linear-gradient(135deg, #7f20ff, #ff3bd4);
    box-shadow:
        0 0 25px rgba(170, 50, 255, 0.6),
        inset 0 0 20px rgba(255,255,255,0.15);
}

.shop-v3-side.active span {
    color: #fff;
}

.shop-v3-side.active img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 18px #ff3bd4);
}
/* === CARD UPGRADE === */

.shop-v3-pack-card,
.shop-v3-chest-card,
.shop-v3-small-card {
    background:
        linear-gradient(180deg, rgba(30, 0, 60, 0.95), rgba(10, 0, 25, 0.95));
    border: 1px solid rgba(180, 70, 255, 0.3);
    box-shadow:
        inset 0 0 20px rgba(170, 50, 255, 0.1),
        0 8px 25px rgba(0,0,0,0.5);
}

/* hover сильнее */
.shop-v3-pack-card:hover,
.shop-v3-chest-card:hover,
.shop-v3-small-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow:
        0 15px 40px rgba(170, 50, 255, 0.5),
        0 0 30px rgba(170, 50, 255, 0.4);
}
.shop-v3-pack-card button,
.shop-v3-small-card button {
    background: linear-gradient(180deg, #ff3bd4, #7f20ff);
    box-shadow: 0 0 15px rgba(255, 59, 212, 0.5);
    border: none;
}
/* === CHEST OPENING CINEMATIC === */

.chest-opening-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chest-opening-screen.active {
    display: flex;
}

.chest-opening-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(155, 45, 255, 0.25), transparent 35%),
        radial-gradient(circle at 50% 80%, rgba(255, 211, 106, 0.12), transparent 30%),
        rgba(0,0,0,0.88);
    backdrop-filter: blur(8px);
}

.chest-opening-content {
    position: relative;
    z-index: 2;
    width: 520px;
    max-width: 94vw;
    padding: 34px;
    text-align: center;
    border-radius: 28px;
    background:
        radial-gradient(circle at top, rgba(180, 70, 255, 0.22), transparent 42%),
        linear-gradient(180deg, rgba(30, 0, 60, 0.96), rgba(5, 0, 15, 0.98));
    border: 2px solid rgba(180, 70, 255, 0.65);
    box-shadow:
        0 0 80px rgba(155, 45, 255, 0.45),
        inset 0 0 30px rgba(255,255,255,0.05);
}

.chest-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

#chest-opening-title {
    color: #ffd36a;
    font-size: 30px;
    margin-bottom: 22px;
    text-shadow: 0 0 20px rgba(255, 211, 106, 0.45);
}

.chest-stage {
    position: relative;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chest-glow {
    position: absolute;
    width: 260px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(180,70,255,0.55), transparent 65%);
    filter: blur(8px);
    animation: chestGlowPulse 1.4s infinite alternate;
}

@keyframes chestGlowPulse {
    from { transform: scale(0.95); opacity: 0.65; }
    to { transform: scale(1.15); opacity: 1; }
}

#opening-chest-img {
    position: relative;
    z-index: 3;
    width: 260px;
    height: 190px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(180, 70, 255, 0.8));
}

#opening-chest-img.shake {
    animation: chestShake 0.16s infinite;
}

@keyframes chestShake {
    0% { transform: translateX(0) rotate(0deg) scale(1); }
    25% { transform: translateX(-8px) rotate(-4deg) scale(1.04); }
    50% { transform: translateX(8px) rotate(4deg) scale(1.06); }
    75% { transform: translateX(-5px) rotate(-2deg) scale(1.04); }
    100% { transform: translateX(0) rotate(0deg) scale(1); }
}

.chest-flash {
    position: absolute;
    z-index: 4;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    pointer-events: none;
}

.chest-flash.active {
    animation: chestFlashBoom 0.75s forwards;
}

@keyframes chestFlashBoom {
    0% { opacity: 0; transform: scale(0.2); }
    35% { opacity: 1; transform: scale(8); }
    100% { opacity: 0; transform: scale(18); }
}

#chest-opening-status {
    color: rgba(255,255,255,0.78);
    margin-bottom: 18px;
}

#chest-open-action {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(180deg, #ff3bd4, #7f20ff);
    color: #fff;
    font-family: inherit;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 0 24px rgba(255, 59, 212, 0.45);
}
/* === REWARD SCREEN === */

.reward-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.reward-screen.active {
    display: flex;
}

.reward-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(155,45,255,0.25), transparent 35%),
        rgba(0,0,0,0.88);
    backdrop-filter: blur(8px);
}

.reward-content {
    position: relative;
    z-index: 2;
    width: 760px;
    max-width: 95vw;
    padding: 34px;
    border-radius: 28px;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(180,70,255,0.18), transparent 42%),
        linear-gradient(180deg, rgba(25,0,50,0.96), rgba(5,0,15,0.98));

    border: 2px solid rgba(180,70,255,0.55);

    box-shadow:
        0 0 70px rgba(155,45,255,0.45),
        inset 0 0 30px rgba(255,255,255,0.05);
}

.reward-content h1 {
    color: #ffd36a;
    margin-bottom: 28px;
    font-size: 38px;
}

.reward-list {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.reward-card {
    width: 180px;
    min-height: 220px;
    padding: 18px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(35,0,70,0.95), rgba(10,0,25,0.98));

    border: 2px solid rgba(180,70,255,0.3);

    text-align: center;

    animation: rewardAppear 0.45s ease;
}

@keyframes rewardAppear {
    from {
        opacity: 0;
        transform: translateY(25px) scale(0.85);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.reward-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 14px;
}

.reward-card h3 {
    color: #fff;
    font-size: 17px;
    margin-bottom: 8px;
}

.reward-card strong {
    color: #ffd36a;
    font-size: 22px;
}

.reward-card.common {
    box-shadow: 0 0 18px rgba(200,200,200,0.2);
}

.reward-card.rare {
    box-shadow: 0 0 24px rgba(70,140,255,0.45);
}

.reward-card.epic {
    box-shadow: 0 0 28px rgba(180,70,255,0.55);
}

.reward-card.legendary {
    box-shadow: 0 0 38px rgba(255,210,70,0.75);
}

.reward-content button {
    width: 240px;
    height: 56px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(180deg, #ff3bd4, #7f20ff);
    color: #fff;
    font-family: inherit;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 0 24px rgba(255,59,212,0.45);
}
/* === CHESTS INVENTORY === */

.chests-inventory-screen {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
}

.chests-inventory-page {
    width: 100%;
    min-height: calc(100vh - 104px);
    display: grid;
    grid-template-columns: 250px 1fr;
    background:
        radial-gradient(circle at 70% 10%, rgba(120, 35, 255, 0.22), transparent 32%),
        linear-gradient(180deg, #06000d, #020006);
}

.inventory-sidebar {
    padding: 26px 14px;
    border-right: 1px solid rgba(180, 70, 255, 0.25);
    background: linear-gradient(180deg, rgba(30, 0, 60, 0.95), rgba(5, 0, 14, 0.98));
}

.inventory-side {
    width: 100%;
    height: 92px;
    margin-bottom: 10px;
    border: 1px solid rgba(180, 70, 255, 0.25);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.68);
    font-family: inherit;
    font-size: 18px;
    text-align: left;
    padding: 0 22px;
}

.inventory-side.active {
    color: #fff;
    background: linear-gradient(135deg, #7f20ff, #ff3bd4);
    box-shadow: 0 0 25px rgba(170, 50, 255, 0.5);
}

.chests-inventory-main {
    padding: 34px;
}

.chests-inventory-header {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 28px;
}

.chests-inventory-header h1 {
    font-size: 48px;
    color: #fff;
}

.chests-inventory-header p {
    color: rgba(255,255,255,0.65);
    margin-top: 6px;
}

.chests-title-line {
    text-align: center;
    color: #bd57ff;
    font-size: 24px;
    margin-bottom: 28px;
}

.inventory-chests-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 20px;
}

.inventory-chest-card {
    min-height: 420px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(180, 70, 255, 0.35);
    background:
        radial-gradient(circle at 50% 25%, rgba(170, 50, 255, 0.22), transparent 45%),
        linear-gradient(180deg, rgba(25,0,55,0.95), rgba(5,0,15,0.98));
    box-shadow: inset 0 0 24px rgba(170, 50, 255, 0.08);
}

.inventory-chest-card h3 {
    color: #fff;
    font-size: 19px;
    margin-bottom: 18px;
}

.inventory-chest-card img {
    width: 210px;
    height: 165px;
    object-fit: contain;
    filter: drop-shadow(0 0 22px rgba(170, 70, 255, 0.65));
}

.inventory-chest-count {
    color: #fff;
    font-size: 34px;
    margin: 22px 0;
}

.inventory-chest-card button {
    width: 220px;
    height: 54px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, #ff3bd4, #7f20ff);
    color: #fff;
    font-family: inherit;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 0 22px rgba(255, 59, 212, 0.38);
}

.inventory-chest-card button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: rgba(255,255,255,0.08);
}

.inventory-chest-card.common {
    box-shadow: 0 0 22px rgba(180,180,180,0.15);
}

.inventory-chest-card.rare {
    box-shadow: 0 0 28px rgba(70,140,255,0.35);
}

.inventory-chest-card.epic {
    box-shadow: 0 0 34px rgba(180,70,255,0.45);
}

.inventory-chest-card.legendary {
    box-shadow: 0 0 44px rgba(255,210,70,0.55);
}
/* === INVENTORY SCREEN === */


.inventory-grid {
    width: 100%;
    display: grid;
     grid-template-columns:
        repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 28px;
    padding: 24px;
}

.inventory-card {
    position: relative;
    min-height: 330px;
    padding: 22px 18px;
    border-radius: 24px;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(255, 211, 106, 0.14), transparent 38%),
        linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035));
    border: 1px solid rgba(255, 211, 106, 0.24);
    box-shadow:
        0 18px 45px rgba(0,0,0,0.35),
        0 0 24px rgba(179,0,255,0.16),
        inset 0 1px 0 rgba(255,255,255,0.08);
    overflow: hidden;
    transition: 0.22s ease;
}

.inventory-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 211, 106, 0.65);
    box-shadow:
        0 24px 55px rgba(0,0,0,0.45),
        0 0 32px rgba(255, 211, 106, 0.28);
}

.inventory-card img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 18px rgba(255, 211, 106, 0.25));
}

.inventory-card h3 {
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #fff;
}

.inventory-card div[id$="-count"] {
    font-size: 34px;
    color: var(--gold);
    margin-bottom: 16px;
    text-shadow: 0 0 14px rgba(255, 211, 106, 0.45);
}

.inventory-card button {
    width: 100%;
    padding: 13px 16px;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 15px;
    color: #1c0b00;
    cursor: pointer;
    background: linear-gradient(180deg, #ffe08a, #ffb800);
    box-shadow: 0 5px 0 #9b6500, 0 0 20px rgba(255, 211, 106, 0.28);
    transition: 0.18s ease;
}

.inventory-card button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.inventory-card button:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #9b6500;
}

@media (max-width: 900px) {
    .inventory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .inventory-grid {
        grid-template-columns: 1fr;
    }

    .inventory-card {
        min-height: auto;
    }
}
.chest-reward-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.78);
    backdrop-filter: blur(8px);
}

.chest-reward-modal.active {
    display: flex;
}

.chest-reward-box {
    width: min(420px, 92vw);
    padding: 32px 26px;
    border-radius: 28px;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(255, 211, 106, 0.22), transparent 45%),
        linear-gradient(180deg, #241033, #0c0614);
    border: 1px solid rgba(255, 211, 106, 0.55);
    box-shadow:
        0 0 55px rgba(255, 211, 106, 0.28),
        0 0 80px rgba(179, 0, 255, 0.22);
    animation: rewardPop 0.28s ease forwards;
}

@keyframes rewardPop {
    from {
        transform: scale(0.82) translateY(18px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.chest-reward-title {
    font-size: 30px;
    color: var(--gold);
    margin-bottom: 18px;
    text-shadow: 0 0 18px rgba(255, 211, 106, 0.55);
}

.chest-reward-icon {
    width: 130px;
    height: 130px;
    object-fit: contain;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 24px rgba(255, 211, 106, 0.42));
}

.chest-reward-text {
    font-size: 22px;
    color: #fff;
    margin-bottom: 24px;
}

.chest-reward-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 16px;
    font-family: inherit;
    font-size: 17px;
    cursor: pointer;
    color: #1b0c00;
    background: linear-gradient(180deg, #ffe08a, #ffb800);
    box-shadow: 0 5px 0 #9b6500;
}
.chest-reward-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.78);
    backdrop-filter: blur(8px);
}

.chest-reward-modal.active {
    display: flex;
}

.chest-reward-box {
    width: min(430px, 92vw);
    padding: 34px 28px;
    border-radius: 28px;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(255, 211, 106, 0.22), transparent 45%),
        linear-gradient(180deg, #241033, #0c0614);
    border: 1px solid rgba(255, 211, 106, 0.55);
    box-shadow:
        0 0 55px rgba(255, 211, 106, 0.28),
        0 0 80px rgba(179, 0, 255, 0.22);
    animation: rewardPop 0.28s ease forwards;
}

@keyframes rewardPop {
    from {
        transform: scale(0.82) translateY(18px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.chest-reward-title {
    font-size: 30px;
    color: var(--gold);
    margin-bottom: 18px;
    text-shadow: 0 0 18px rgba(255, 211, 106, 0.55);
}

.chest-reward-icon {
    width: 130px;
    height: 130px;
    object-fit: contain;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 24px rgba(255, 211, 106, 0.42));
}

.chest-reward-text {
    font-size: 22px;
    color: #fff;
    margin-bottom: 24px;
}

.chest-reward-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 16px;
    font-family: inherit;
    font-size: 17px;
    cursor: pointer;
    color: #1b0c00;
    background: linear-gradient(180deg, #ffe08a, #ffb800);
    box-shadow: 0 5px 0 #9b6500;
}
.chest-shake {
    animation: chestShake 0.16s infinite;
}

@keyframes chestShake {
    0% { transform: rotate(-3deg) scale(1); }
    50% { transform: rotate(3deg) scale(1.05); }
    100% { transform: rotate(-3deg) scale(1); }
}

.reward-pop {
    animation: rewardItemPop 0.32s ease;
}

@keyframes rewardItemPop {
    from {
        transform: scale(0.4);
        opacity: 0;
        filter: blur(6px);
    }
    to {
        transform: scale(1);
        opacity: 1;
        filter: blur(0);
    }
}
.chest-opening-box {
    width: min(720px, 94vw);
}

.chest-rewards-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.chest-reward-card {
    opacity: 0;
    transform: translateY(18px) scale(0.8);
    padding: 16px 10px;
    border-radius: 18px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.16);
    animation: rewardCardIn 0.32s ease forwards;
}

.chest-reward-card img {
    width: 74px;
    height: 74px;
    object-fit: contain;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 14px rgba(255, 211, 106, 0.35));
}

.chest-reward-card-title {
    font-size: 13px;
    color: rgba(255,255,255,0.72);
    margin-bottom: 6px;
}

.chest-reward-card-amount {
    font-size: 22px;
    color: var(--gold);
    text-shadow: 0 0 12px rgba(255, 211, 106, 0.42);
}

@keyframes rewardCardIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.inventory-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 20px 0 26px;
    flex-wrap: wrap;
}

.inventory-tab-btn {
    padding: 12px 22px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
    font-family: inherit;
    cursor: pointer;
    transition: 0.2s ease;
}

.inventory-tab-btn.active,
.inventory-tab-btn:hover {
    color: #fff;
    border-color: rgba(255, 211, 106, 0.65);
    background: linear-gradient(180deg, rgba(255,211,106,0.22), rgba(255,255,255,0.06));
    box-shadow: 0 0 22px rgba(255, 211, 106, 0.22);
}


.cloth-inventory-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.cloth-theme-card {
    padding: 18px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top, rgba(255, 211, 106, 0.12), transparent 38%),
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
    border: 1px solid rgba(255,255,255,0.13);
    box-shadow: 0 16px 38px rgba(0,0,0,0.32);
}

.cloth-theme-title {
    font-size: 20px;
    color: var(--gold);
    margin-bottom: 14px;
    text-align: center;
    text-shadow: 0 0 14px rgba(255, 211, 106, 0.4);
}

.cloth-rarity-list {
    display: grid;
    gap: 10px;
}

.cloth-rarity-row {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.1);
}

.cloth-rarity-row img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.cloth-rarity-row span {
    text-transform: uppercase;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
}

.cloth-rarity-row b {
    font-size: 20px;
    color: #fff;
}

.cloth-rarity-row.rarity-common {
    border-color: rgba(180,180,180,0.25);
}

.cloth-rarity-row.rarity-rare {
    border-color: rgba(77, 227, 255, 0.35);
}

.cloth-rarity-row.rarity-epic {
    border-color: rgba(180, 70, 255, 0.45);
}

.cloth-rarity-row.rarity-legendary {
    border-color: rgba(255, 211, 106, 0.55);
}

.inventory-empty {
    text-align: center;
    padding: 40px;
    color: rgba(255,255,255,0.65);
}
/* === INVENTORY TABS === */

.inventory-tabs {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 22px 0 30px;
    flex-wrap: wrap;
}

.inventory-tab-btn {
    min-width: 140px;
    padding: 13px 22px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.14);
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    color: rgba(255,255,255,0.68);
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: 0.22s ease;
}

.inventory-tab-btn:hover,
.inventory-tab-btn.active {
    color: #fff;
    border-color: rgba(255, 211, 106, 0.75);
    background:
        radial-gradient(circle at top, rgba(255, 211, 106, 0.22), transparent 55%),
        linear-gradient(180deg, rgba(255,211,106,0.18), rgba(255,255,255,0.05));
    box-shadow:
        0 0 24px rgba(255, 211, 106, 0.22),
        inset 0 1px 0 rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

/* === CLOTH INVENTORY === */

.cloth-inventory-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 10px;
}

.cloth-theme-card {
    position: relative;
    padding: 18px;
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at top, rgba(255, 211, 106, 0.13), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.032));
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow:
        0 18px 42px rgba(0,0,0,0.34),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

.cloth-theme-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle, rgba(179,0,255,0.16), transparent 55%);
    opacity: 0;
    transition: 0.25s ease;
    pointer-events: none;
}

.cloth-theme-card:hover::before {
    opacity: 1;
}

.cloth-theme-title {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: 20px;
    color: var(--gold);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 15px rgba(255, 211, 106, 0.45);
}

.cloth-rarity-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
}

.cloth-rarity-row {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 15px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.1);
}

.cloth-rarity-row img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.16));
}

.cloth-rarity-row span {
    text-transform: uppercase;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
}

.cloth-rarity-row b {
    min-width: 34px;
    text-align: right;
    font-size: 21px;
    color: #fff;
    text-shadow: 0 0 12px rgba(255,255,255,0.2);
}

/* rarity colors */

.cloth-rarity-row.rarity-common {
    border-color: rgba(160,160,160,0.35);
}

.cloth-rarity-row.rarity-rare {
    border-color: rgba(77, 227, 255, 0.48);
    box-shadow: inset 0 0 18px rgba(77, 227, 255, 0.06);
}

.cloth-rarity-row.rarity-epic {
    border-color: rgba(190, 70, 255, 0.55);
    box-shadow: inset 0 0 18px rgba(190, 70, 255, 0.08);
}

.cloth-rarity-row.rarity-legendary {
    border-color: rgba(255, 211, 106, 0.62);
    box-shadow:
        inset 0 0 18px rgba(255, 211, 106, 0.09),
        0 0 16px rgba(255, 211, 106, 0.08);
}

.inventory-empty {
    padding: 42px;
    text-align: center;
    color: rgba(255,255,255,0.62);
    border-radius: 22px;
    background: rgba(255,255,255,0.045);
    border: 1px dashed rgba(255,255,255,0.16);
}

@media (max-width: 600px) {
    .inventory-tab-btn {
        min-width: 100%;
    }

    .cloth-inventory-grid {
        grid-template-columns: 1fr;
    }
}

.resources-inventory-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

.resource-inventory-card {
    padding: 24px;
    border-radius: 24px;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(255, 211, 106, 0.14), transparent 45%),
        linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.032));
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 18px 42px rgba(0,0,0,0.34);
}

.resource-inventory-card img {
    width: 86px;
    height: 86px;
    object-fit: contain;
    margin-bottom: 14px;
}

.resource-inventory-title {
    font-size: 17px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 8px;
}

.resource-inventory-amount {
    font-size: 30px;
    color: var(--gold);
    text-shadow: 0 0 14px rgba(255, 211, 106, 0.42);
}
/* === INVENTORY REFERENCE LAYOUT === */


.inventory-layout {
    width: 100%;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 26px;
}

.inventory-sidebar {
    min-height: 720px;
    padding: 18px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
    border: 1px solid rgba(170, 70, 255, 0.28);
    box-shadow: 0 20px 55px rgba(0,0,0,0.35);
}

.inventory-side-btn span:first-child {
    font-size: 26px;
}

.inventory-side-btn:hover,
.inventory-side-btn.active {
    color: #fff;
    border-color: rgba(255, 59, 212, 0.85);
    background:
        radial-gradient(circle at left, rgba(255, 59, 212, 0.32), transparent 60%),
        linear-gradient(180deg, rgba(160, 32, 255, 0.48), rgba(90, 12, 150, 0.45));
    box-shadow:
        0 0 24px rgba(255, 59, 212, 0.36),
        inset 0 1px 0 rgba(255,255,255,0.12);
}

.inventory-main {
    min-height: 720px;
}

.inventory-main-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.inventory-main-header h1 {
    font-size: 46px;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 0 18px rgba(255,255,255,0.22);
}

.inventory-main-header p {
    margin-top: 8px;
    font-size: 17px;
    color: rgba(255,255,255,0.62);
}

.inventory-info-box {
    max-width: 340px;
    padding: 18px 22px;
    border-radius: 16px;
    color: rgba(255,255,255,0.72);
    background: rgba(80, 20, 130, 0.26);
    border: 1px solid rgba(180, 70, 255, 0.35);
    box-shadow: 0 0 22px rgba(180, 70, 255, 0.12);
}

.inventory-section-title {
    margin: 12px 0 24px;
    text-align: center;
    color: var(--primary);
    font-size: 24px;
    letter-spacing: 1px;
    text-shadow: 0 0 18px rgba(255, 59, 212, 0.42);
}

/* сундуки */

.inventory-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(210px, 1fr));
    gap: 18px;
}

.inventory-card {
    min-height: 360px;
    padding: 22px 18px 24px;
    border-radius: 18px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 24%, rgba(255, 59, 212, 0.13), transparent 45%),
        linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025));
    border: 1px solid rgba(180, 70, 255, 0.34);
    box-shadow:
        0 18px 45px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.08);
    transition: 0.24s ease;
}

.inventory-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 59, 212, 0.78);
    box-shadow:
        0 24px 56px rgba(0,0,0,0.46),
        0 0 28px rgba(255, 59, 212, 0.25);
}

.inventory-card img {
    width: 185px;
    height: 165px;
    object-fit: contain;
    margin: 8px 0 14px;
    filter: drop-shadow(0 0 24px rgba(255, 59, 212, 0.22));
}

.inventory-card h3 {
    font-size: 18px;
    min-height: 44px;
    color: #fff;
    margin-bottom: 10px;
}

.inventory-card div[id$="-count"] {
    font-size: 36px;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 0 18px rgba(255,255,255,0.28);
}

.inventory-card button {
    width: 100%;
    padding: 15px 16px;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(180deg, #b92cff, #6d00d8);
    box-shadow:
        0 5px 0 #3b006f,
        0 0 22px rgba(185, 44, 255, 0.32);
    transition: 0.18s ease;
}

.inventory-card button:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
}

.inventory-card button:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #3b006f;
}

/* ткани */

.cloth-inventory-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 18px;
}

.cloth-theme-card {
    padding: 18px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top, rgba(255, 59, 212, 0.11), transparent 45%),
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
    border: 1px solid rgba(180, 70, 255, 0.3);
    box-shadow: 0 16px 38px rgba(0,0,0,0.32);
}

.cloth-theme-title {
    text-align: center;
    font-size: 20px;
    color: var(--gold);
    margin-bottom: 14px;
}

.cloth-rarity-list {
    display: grid;
    gap: 10px;
}

.cloth-rarity-row {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.1);
}

.cloth-rarity-row img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.cloth-rarity-row span {
    text-transform: uppercase;
    color: rgba(255,255,255,0.72);
    font-size: 13px;
}

.cloth-rarity-row b {
    font-size: 21px;
    color: #fff;
}

.cloth-rarity-row.rarity-common { border-color: rgba(170,170,170,0.35); }
.cloth-rarity-row.rarity-rare { border-color: rgba(77,227,255,0.45); }
.cloth-rarity-row.rarity-epic { border-color: rgba(190,70,255,0.55); }
.cloth-rarity-row.rarity-legendary { border-color: rgba(255,211,106,0.62); }

/* ресурсы */

.resources-inventory-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

.resource-inventory-card {
    padding: 24px;
    border-radius: 22px;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(255,211,106,0.14), transparent 45%),
        linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025));
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 18px 42px rgba(0,0,0,0.34);
}

.resource-inventory-card img {
    width: 86px;
    height: 86px;
    object-fit: contain;
    margin-bottom: 14px;
}

.resource-inventory-title {
    font-size: 17px;
    color: rgba(255,255,255,0.74);
    margin-bottom: 8px;
}

.resource-inventory-amount {
    font-size: 30px;
    color: var(--gold);
    text-shadow: 0 0 14px rgba(255,211,106,0.42);
}

.inventory-empty {
    padding: 44px;
    text-align: center;
    color: rgba(255,255,255,0.62);
    border-radius: 20px;
    background: rgba(255,255,255,0.045);
    border: 1px dashed rgba(255,255,255,0.16);
}

/* mobile */

@media (max-width: 900px) {
    .inventory-layout {
        grid-template-columns: 1fr;
    }

    .inventory-sidebar {
        min-height: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .inventory-main-header {
        flex-direction: column;
    }

    .inventory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .inventory-sidebar {
        grid-template-columns: 1fr;
    }

    .inventory-grid {
        grid-template-columns: 1fr;
    }

    .inventory-main-header h1 {
        font-size: 34px;
    }
}
/* ===== INVENTORY ===== */

.inventory-layout {
    display: flex;
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

.inventory-sidebar {
    width: 240px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inventory-side-btn:hover {
    background: rgba(255,255,255,0.1);
}

.inventory-side-btn.active {
    background: linear-gradient(90deg,#7b2cff,#ff3bd4);
    border-color: transparent;
}

.inventory-main {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 20px;
}

.inventory-header {
    margin-bottom: 20px;
}

.inventory-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.inventory-header p {
    color: rgba(255,255,255,0.7);
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
    gap: 20px;
}

.inventory-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
}

.inventory-card h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.inventory-count {
    font-size: 40px;
    margin-bottom: 20px;
    color: #ffd36a;
}

.inventory-card button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg,#7b2cff,#ff3bd4);
    color: white;
    font-family: inherit;
    cursor: pointer;
    font-size: 16px;
}

.inventory-empty {
    padding: 60px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 20px;
}


@media (max-width: 900px) {

    .inventory-layout {
        flex-direction: column;
    }

    .inventory-sidebar {
        width: 100%;
    }

}
/* === INVENTORY V3 CLEAN === */

#inventory-v3-screen {
    max-width: 1500px;
    padding: 28px;
}

.inventory-v3 {
    width: 100%;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 26px;
}

.inventory-v3-sidebar {
    padding: 18px;
    border-radius: 24px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(180,70,255,0.25);
}

.inventory-v3-btn {
    width: 100%;
    height: 72px;
    margin-bottom: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.65);
    font-family: inherit;
    font-size: 18px;
    cursor: pointer;
}

.inventory-v3-btn.active,
.inventory-v3-btn:hover {
    color: #fff;
    background: linear-gradient(180deg, rgba(160,32,255,0.65), rgba(90,12,150,0.55));
    border-color: rgba(255,59,212,0.7);
    box-shadow: 0 0 24px rgba(255,59,212,0.28);
}

.inventory-v3-main {
    min-height: 680px;
}

.inventory-v3-main h1 {
    font-size: 48px;
    color: #fff;
    margin-bottom: 8px;
}

.inventory-v3-main p {
    color: rgba(255,255,255,0.62);
    margin-bottom: 28px;
}

.inventory-v3-tab {
    display: none;
}

.inventory-v3-tab.active {
    display: block;
}

.inventory-v3-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(210px, 1fr));
    gap: 20px;
}

.inventory-v3-card {
    min-height: 340px;
    padding: 22px;
    text-align: center;
    border-radius: 22px;
    background:
        radial-gradient(circle at top, rgba(255,59,212,0.14), transparent 45%),
        linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025));
    border: 1px solid rgba(180,70,255,0.32);
    box-shadow: 0 18px 44px rgba(0,0,0,0.35);
}

.inventory-v3-card img {
    width: 180px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 16px;
}

.inventory-v3-card h3 {
    font-size: 18px;
    min-height: 44px;
    margin-bottom: 10px;
}

.inventory-v3-card div {
    font-size: 34px;
    color: var(--gold);
    margin-bottom: 18px;
}

.inventory-v3-card button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(180deg, #b92cff, #6d00d8);
    box-shadow: 0 5px 0 #3b006f;
}

.inventory-v3-cloth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.inventory-v3-cloth-card {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(180,70,255,0.28);
}

.inventory-v3-cloth-card h3 {
    color: var(--gold);
    text-align: center;
    margin-bottom: 14px;
}

.inventory-v3-cloth-row {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(0,0,0,0.25);
    margin-bottom: 8px;
}

.inventory-v3-cloth-row img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.inventory-v3-cloth-row span {
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
}

.inventory-v3-cloth-row b {
    color: #fff;
    font-size: 20px;
}

@media (max-width: 900px) {
    .inventory-v3 {
        grid-template-columns: 1fr;
    }

    .inventory-v3-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.inventory-v3-card button.disabled,
.inventory-v3-card button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: linear-gradient(180deg, #333, #1d1d1d);
    box-shadow: none;
}
/* === INVENTORY V3 JUICE === */

.inventory-v3-main h1 {
    background: linear-gradient(180deg, #fff, #ffd36a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 34px rgba(255, 211, 106, 0.25);
}

.inventory-v3-chests-grid {
    align-items: stretch;
}

.chest-card-v3 {
    position: relative;
    overflow: hidden;
    min-height: 410px;
    isolation: isolate;
}

.chest-card-v3::before {
    content: "";
    position: absolute;
    inset: -40%;
    z-index: -1;
    opacity: 0.55;
    background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 58%);
    animation: chestAuraSpin 7s linear infinite;
}

.chest-card-v3::after {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: 21px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08), transparent 40%),
        radial-gradient(circle at 50% 15%, rgba(255,255,255,0.1), transparent 36%);
    pointer-events: none;
}

@keyframes chestAuraSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.chest-card-rarity {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 1px;
    background: rgba(0,0,0,0.42);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.8);
}

.chest-card-v3 img {
    width: 210px;
    height: 170px;
    margin-top: 28px;
    transition: 0.25s ease;
}

.chest-card-v3:hover img {
    transform: translateY(-8px) scale(1.06);
}

.chest-card-v3 p {
    min-height: 46px;
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.35;
    color: rgba(255,255,255,0.58);
}

.chest-common-v3 {
    border-color: rgba(160,160,160,0.36);
    box-shadow: 0 18px 44px rgba(0,0,0,0.35), 0 0 26px rgba(180,180,180,0.08);
}

.chest-rare-v3 {
    border-color: rgba(77,227,255,0.45);
    box-shadow: 0 18px 44px rgba(0,0,0,0.35), 0 0 32px rgba(77,227,255,0.16);
}

.chest-epic-v3 {
    border-color: rgba(190,70,255,0.6);
    box-shadow: 0 18px 44px rgba(0,0,0,0.35), 0 0 38px rgba(190,70,255,0.22);
}

.chest-legendary-v3 {
    border-color: rgba(255,211,106,0.72);
    box-shadow: 0 18px 44px rgba(0,0,0,0.35), 0 0 42px rgba(255,211,106,0.24);
}

.chest-common-v3 .chest-card-rarity { color: #ddd; }
.chest-rare-v3 .chest-card-rarity { color: #4de3ff; }
.chest-epic-v3 .chest-card-rarity { color: #d15cff; }
.chest-legendary-v3 .chest-card-rarity { color: #ffd36a; }

.inventory-v3-card button.disabled,
.inventory-v3-card button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    color: rgba(255,255,255,0.55);
    background: linear-gradient(180deg, #302734, #1a1420);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.inventory-v3-sidebar {
    position: sticky;
    top: 110px;
    height: fit-content;
}

.inventory-v3-btn {
    text-align: left;
    padding-left: 24px;
    position: relative;
    overflow: hidden;
}

.inventory-v3-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transform: translateX(-100%);
    transition: 0.35s ease;
}

.inventory-v3-btn:hover::after {
    transform: translateX(100%);
}
.inventory-v4 {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.inventory-v4-sidebar {
    display: flex;
    flex-direction: column;
    width: 240px;
}

.inventory-v4-btn {
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 14px;
    border: none;
    background: #2c1b4a;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

.inventory-v4-btn.active, .inventory-v4-btn:hover {
    background: linear-gradient(135deg,#8e2be2,#ff4500);
}

.inventory-v4-main {
    flex: 1;
}

.inventory-v4-main h1 {
    font-size: 42px;
    margin-bottom: 6px;
}

.inventory-v4-main p {
    margin-bottom: 20px;
    color: rgba(255,255,255,0.7);
}

.inventory-v4-tab {
    display: none;
}

.inventory-v4-tab.active {
    display: block;
}

.inventory-v4-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
    gap: 20px;
}

.inventory-v4-card {
    background: rgba(255,255,255,0.05);
    padding: 18px;
    border-radius: 18px;
    text-align: center;
    position: relative;
    transition: transform 0.3s;
}

.inventory-v4-card.opening {
    transform: scale(1.05);
    box-shadow: 0 0 18px rgba(255,215,0,0.6);
}

.inventory-v4-card img {
    width: 180px;
    height: 150px;
    margin-bottom: 10px;
}

.inventory-v4-card button:disabled {
    background: #555;
    cursor: not-allowed;
}

.chest-card-rarity {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    background: rgba(0,0,0,0.5);
    color: #fff;
}

.chest-reward {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    background: gold;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
    animation: pop-up 1s ease forwards;
}

@keyframes pop-up {
    0% {opacity:0; transform: translate(-50%,0) scale(0.5);}
    50% {opacity:1; transform: translate(-50%,-20px) scale(1.2);}
    100% {opacity:0; transform: translate(-50%,-40px) scale(1);}
}
/* === Ткани и ресурсы V4 === */

.inventory-v4-cloth-card {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 16px;
}

.inventory-v4-cloth-card h3 {
    color: #ffd36a;
    text-align: center;
    margin-bottom: 12px;
}

.inventory-v4-cloth-row {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 14px;
    margin-bottom: 8px;
    background: rgba(0,0,0,0.25);
    transition: 0.25s;
}

.inventory-v4-cloth-row:hover {
    background: rgba(77,227,255,0.18);
    transform: scale(1.02);
}

.inventory-v4-cloth-row img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.inventory-v4-cloth-row span {
    color: rgba(255,255,255,0.75);
    font-weight: bold;
}

.inventory-v4-cloth-row b {
    font-size: 18px;
    color: #fff;
}

/* Цвет редкости */
.inventory-v4-cloth-row.rarity-common { border-left: 4px solid #aaa; }
.inventory-v4-cloth-row.rarity-rare { border-left: 4px solid #4de3ff; }
.inventory-v4-cloth-row.rarity-epic { border-left: 4px solid #d15cff; }
.inventory-v4-cloth-row.rarity-legendary { border-left: 4px solid #ffd36a; }

/* Ресурсы */
.resource-card-v4 {
    background: rgba(255,255,255,0.05);
    padding: 14px;
    border-radius: 18px;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
}

.resource-card-v4:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 18px rgba(255,215,106,0.4);
}

.resource-card-v4 img {
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
}

.resource-card-v4 h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.resource-card-v4 .resource-count {
    font-size: 20px;
    font-weight: bold;
    color: #ffd36a;
}
/* Искры редкости */
.inventory-v4-cloth-row.rarity-rare:hover {
    box-shadow: 0 0 14px #4de3ff, 0 0 28px rgba(77,227,255,0.3);
}

.inventory-v4-cloth-row.rarity-epic:hover {
    box-shadow: 0 0 14px #d15cff, 0 0 28px rgba(209,92,255,0.3);
}

.inventory-v4-cloth-row.rarity-legendary:hover {
    box-shadow: 0 0 18px #ffd36a, 0 0 36px rgba(255,211,106,0.4);
}
.chest-particle {
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none;
    z-index: 20;
}
/* Glow и sparkle для редких сундуков */
.chest-rare-v4:hover {
    box-shadow: 0 0 24px #4de3ff, 0 0 36px rgba(77,227,255,0.4);
    transform: scale(1.03);
}

.chest-epic-v4:hover {
    box-shadow: 0 0 28px #d15cff, 0 0 42px rgba(209,92,255,0.4);
    transform: scale(1.04);
}

.chest-legendary-v4:hover {
    box-shadow: 0 0 32px #ffd36a, 0 0 48px rgba(255,211,106,0.5);
    transform: scale(1.05);
}
.inventory-v4-card.glow {
    box-shadow: 0 0 40px #ffd36a, 0 0 80px rgba(255,211,106,0.35);
    animation: chest-glow 1.2s ease-out forwards;
}

@keyframes chest-glow {
    0% { box-shadow: 0 0 0px transparent; }
    50% { box-shadow: 0 0 40px #ffd36a, 0 0 80px rgba(255,211,106,0.35); }
    100% { box-shadow: 0 0 0px transparent; }
}
.resource-card-v4.pulse {
    transform: scale(1.08);
    box-shadow: 0 0 28px #ffd36a, 0 0 42px rgba(255,211,106,0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}
.cloth-particle {
    position: absolute;
    right: 10px;
    top: -10px;
    font-weight: bold;
    color: #ffd36a;
    animation: cloth-pop 0.8s ease forwards;
}

@keyframes cloth-pop {
    0% {opacity:0; transform: translateY(0) scale(0.5);}
    50% {opacity:1; transform: translateY(-12px) scale(1.2);}
    100% {opacity:0; transform: translateY(-24px) scale(1);}
}
@media(max-width:900px) {
    .inventory-v4 { flex-direction: column; }
    .inventory-v4-sidebar { flex-direction: row; width: 100%; overflow-x:auto; }
    .inventory-v4-btn { flex:1; margin-right:8px; }
    .inventory-v4-grid { grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); }
}
/* Inventory Section */
.inventory-section {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  background-color: #0f0f14;
  color: #fff;
}

.inventory-sidebar {
  width: 200px;
}

.inventory-sidebar ul {
  list-style: none;
  padding: 0;
}

.inventory-sidebar li {
  padding: 1rem;
  cursor: pointer;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  background-color: #1a1a1a;
}

.inventory-sidebar li.active {
  background: linear-gradient(90deg, #ff00ff, #00ffff);
  font-weight: bold;
}

.inventory-main {
  display: flex;
  flex: 1;
  gap: 2rem;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
  flex: 3;
}

.inventory-grid .inventory-item {
  background: #1a1a1a;
  border-radius: 8px;
  text-align: center;
  padding: 0.5rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.3s;
}

.inventory-grid .inventory-item:hover {
  border-color: #ff00ff;
}

.inventory-preview {
  flex: 1;
  background: #1a1a1a;
  border-radius: 8px;
  padding: 1rem;
}

.inventory-preview img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

#useItemBtn {
  padding: 0.5rem 1rem;
  background: #ff00ff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.header-link-btn{
    width:100%;
    height:100%;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    text-decoration:none;
    color:white;
}
.collection-page{
    width:100%;
    max-width:1180px;
    margin:0 auto;
}

.collection-page-subtitle{
    text-align:center;
    color:rgba(255,255,255,0.72);
    margin-bottom:26px;
}

.collection-theme-list{
    display:grid;
    grid-template-columns:1fr;
    gap:18px;
    width:100%;
    max-width:860px;
    margin:0 auto;
}

.collection-theme-card-v2{
    min-height:150px;
    padding:18px;

    display:grid;
    grid-template-columns:110px 1fr 150px;
    gap:18px;
    align-items:center;

    border-radius:26px;
    border:1px solid rgba(255,255,255,0.10);

    background:
        radial-gradient(circle at top right, rgba(255,59,212,0.16), transparent 35%),
        linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));

    box-shadow:0 16px 36px rgba(0,0,0,0.28);
    cursor:pointer;

    transition:0.25s ease;
}

.collection-theme-card-v2:hover{
    transform:translateY(-6px) scale(1.01);
    border-color:rgba(255,211,106,0.45);
    box-shadow:
        0 22px 46px rgba(0,0,0,0.36),
        0 0 24px rgba(255,59,212,0.18);
}

.collection-theme-cover-v2{
    width:110px;
    height:110px;
    border-radius:22px;
    overflow:hidden;

    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.14);
}

.collection-theme-cover-v2 img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.collection-theme-info-v2{
    min-width:0;
}

.collection-theme-top-v2{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
}

.collection-theme-top-v2 h3{
    font-size:34px;
    color:white;
}

.collection-theme-top-v2 span{
    color:#ffd36a;
    font-size:28px;
}

.collection-theme-info-v2 p{
    margin-top:6px;
    color:rgba(255,255,255,0.72);
}

.collection-theme-progress-v2{
    height:12px;
    margin-top:14px;
    overflow:hidden;
    border-radius:999px;
    background:rgba(255,255,255,0.10);
}

.collection-theme-progress-v2 div{
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg,#ff47d7,#ffd36a);
    box-shadow:0 0 14px rgba(255,59,212,0.45);
}

.collection-theme-reward-v2{
    margin-top:12px;
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    font-size:13px;
}

.collection-theme-reward-v2 span{
    color:rgba(255,255,255,0.55);
}

.collection-theme-reward-v2 b{
    color:#ffd36a;
}

.collection-theme-open-v2{
    height:58px;
    border:none;
    border-radius:18px;

    background:linear-gradient(180deg,#ff47d7,#7a2cff);
    color:white;

    font-family:'Russo One';
    font-size:18px;

    cursor:pointer;
    box-shadow:0 0 20px rgba(255,59,212,0.35);
}

@media (max-width:800px){
    .collection-theme-card-v2{
        grid-template-columns:80px 1fr;
    }

    .collection-theme-hero-v2{
    width:100%;
    max-width:1180px;
    margin:0 auto 26px;
    padding:22px;

    display:grid;
    grid-template-columns:170px 1fr 260px;
    gap:20px;
    align-items:center;

    border-radius:28px;
    border:1px solid rgba(255,255,255,0.12);

    background:
        radial-gradient(circle at top right, rgba(255,211,106,0.16), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));

    box-shadow:0 18px 44px rgba(0,0,0,0.32);
}

.collection-back-btn-v2{
    grid-column:1 / -1;

    width:max-content;
    height:46px;

    padding:0 18px;

    border:none;
    border-radius:14px;

    background:rgba(255,255,255,0.08);
    color:white;

    font-family:'Russo One';
    cursor:pointer;
}

.collection-theme-hero-cover-v2{
    width:170px;
    height:170px;

    border-radius:28px;
    overflow:hidden;

    border:1px solid rgba(255,255,255,0.14);
    background:rgba(255,255,255,0.08);
}

.collection-theme-hero-cover-v2 img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.collection-theme-hero-info-v2 h2{
    font-size:46px;
    margin-bottom:8px;
}

.collection-theme-hero-info-v2 p{
    color:rgba(255,255,255,0.72);
    margin-bottom:14px;
}

.collection-theme-hero-progress-v2{
    height:14px;
    border-radius:999px;
    overflow:hidden;
    background:rgba(255,255,255,0.10);
}

.collection-theme-hero-progress-v2 div{
    height:100%;
    background:linear-gradient(90deg,#ff47d7,#ffd36a);
    box-shadow:0 0 18px rgba(255,59,212,0.45);
}

.collection-theme-hero-info-v2 span{
    display:block;
    margin-top:10px;
    color:#ffd36a;
}

.collection-theme-hero-reward-v2{
    padding:20px;
    border-radius:22px;
    background:rgba(0,0,0,0.24);
    border:1px solid rgba(255,211,106,0.22);
}

.collection-theme-hero-reward-v2 div{
    color:rgba(255,255,255,0.62);
    margin-bottom:8px;
}

.collection-theme-hero-reward-v2 b{
    color:#ffd36a;
}

#collection-detail-grid{
    width:100%;
    max-width:1180px;
    margin:0 auto;

    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:18px;
}

.collection-card-v2{
    position:relative;
    min-height:390px;
    padding:18px;

    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;

    border-radius:24px;
    border:1px solid rgba(255,255,255,0.12);

    background:
        radial-gradient(circle at top, rgba(255,255,255,0.08), transparent 40%),
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));

    cursor:pointer;
    transition:0.25s ease;
}

.collection-card-v2:hover{
    transform:translateY(-6px);
}

.collection-card-rarity-v2{
    align-self:flex-start;
    padding:7px 10px;
    border-radius:999px;
    background:rgba(255,255,255,0.08);
    font-size:12px;
    text-transform:uppercase;
}

.collection-card-img-v2{
    width:150px;
    height:150px;
    margin:12px 0;
    border-radius:22px;
    overflow:hidden;
    background:rgba(255,255,255,0.08);
}

.collection-card-img-v2 img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.collection-card-v2 h3{
    font-size:22px;
    margin-bottom:10px;
}

.collection-card-status-v2{
    color:rgba(255,255,255,0.65);
    font-size:13px;
    margin-bottom:12px;
}

.collection-card-progress-text-v2{
    margin-top:auto;
    margin-bottom:8px;
    color:white;
}

.collection-card-progress-v2{
    width:100%;
    height:10px;
    border-radius:999px;
    overflow:hidden;
    background:rgba(255,255,255,0.10);
    margin-bottom:14px;
}

.collection-card-progress-v2 div{
    height:100%;
    background:linear-gradient(90deg,#ff47d7,#ffd36a);
}

.collection-card-path-btn-v2{
    width:100%;
    height:48px;

    border:none;
    border-radius:16px;

    background:linear-gradient(180deg,#ff47d7,#7a2cff);
    color:white;

    font-family:'Russo One';
    cursor:pointer;
}

.collection-card-v2.rarity-common{
    border-color:rgba(180,180,180,0.35);
}

.collection-card-v2.rarity-rare{
    border-color:rgba(0,162,255,0.65);
    box-shadow:0 0 18px rgba(0,162,255,0.18);
}

.collection-card-v2.rarity-epic{
    border-color:rgba(208,0,255,0.7);
    box-shadow:0 0 22px rgba(208,0,255,0.22);
}

.collection-card-v2.rarity-legendary{
    border-color:rgba(255,179,0,0.8);
    box-shadow:0 0 26px rgba(255,179,0,0.28);
}

@media (max-width:1000px){
    .collection-theme-hero-v2{
        grid-template-columns:130px 1fr;
    }

    .collection-theme-hero-reward-v2{
        grid-column:1 / -1;
    }

    #collection-detail-grid{
        grid-template-columns:repeat(2, 1fr);
    }
}

@media (max-width:560px){
    .collection-theme-hero-v2{
        grid-template-columns:1fr;
    }

    .collection-theme-hero-cover-v2{
        width:100%;
        height:220px;
    }

    #collection-detail-grid{
        grid-template-columns:1fr;
    }
}
    .collection-theme-open-v2{
        grid-column:1 / -1;
    }

    .collection-theme-cover-v2{
        width:80px;
        height:80px;
    }

    .collection-theme-top-v2 h3{
        font-size:24px;
    }
}
.card-path-hero{
    grid-column:1 / -1;

    display:grid;
    grid-template-columns:220px 1fr;
    gap:24px;
    align-items:center;

    width:100%;
}

.card-path-preview{
    width:220px;
    height:270px;

    position:relative;
    overflow:hidden;

    border-radius:28px;
    background:rgba(255,255,255,0.08);
    border:2px solid rgba(255,255,255,0.16);
}

.card-path-preview img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.card-path-preview span{
    position:absolute;
    left:14px;
    bottom:14px;

    padding:8px 12px;
    border-radius:999px;

    background:rgba(0,0,0,0.65);
    color:#ffd36a;

    text-transform:uppercase;
    font-size:13px;
}

.card-path-info h2{
    font-size:52px;
    margin-bottom:8px;
}

.card-path-info p{
    color:#ffd36a;
    margin-bottom:18px;
}

.card-path-progress-text{
    font-size:24px;
    margin-bottom:16px;
}

.card-path-help{
    max-width:620px;
    padding:16px;
    border-radius:18px;

    background:rgba(255,255,255,0.06);
    color:rgba(255,255,255,0.7);
}

.card-path-grid-v2{
    width:100%;
    max-width:1180px;
    margin:0 auto;

    display:grid;
    grid-template-columns:repeat(5, 1fr);
    gap:16px;
}

.card-path-reward{
    min-height:260px;
    padding:16px;

    border-radius:22px;
    border:1px solid rgba(255,255,255,0.12);

    background:
        radial-gradient(circle at top, rgba(255,255,255,0.08), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.025));

    text-align:center;
}

.card-path-reward.done{
    border-color:rgba(52,255,156,0.6);
    box-shadow:0 0 18px rgba(52,255,156,0.16);
}

.card-path-reward.locked{
    opacity:0.7;
}

.card-path-level{
    color:#ffd36a;
    margin-bottom:8px;
}

.card-path-need{
    color:rgba(255,255,255,0.72);
    margin-bottom:14px;
}

.card-path-reward-img{
    width:82px;
    height:82px;
    margin:0 auto 12px;
}

.card-path-reward-img img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.card-path-reward-title{
    font-size:18px;
    margin-bottom:6px;
}

.card-path-reward-count{
    font-size:24px;
    margin-bottom:14px;
}

.card-path-reward button{
    width:100%;
    height:42px;

    border:none;
    border-radius:14px;

    background:linear-gradient(180deg,#34ff9c,#139f5d);
    color:#04100a;

    font-family:'Russo One';
}

.card-path-reward button:disabled{
    background:#272335;
    color:rgba(255,255,255,0.38);
}

@media (max-width:950px){
    .card-path-grid-v2{
        grid-template-columns:repeat(3, 1fr);
    }
}

@media (max-width:600px){
    .card-path-hero{
        grid-template-columns:1fr;
    }

    .card-path-preview{
        width:100%;
        height:320px;
    }

    .card-path-grid-v2{
        grid-template-columns:repeat(2, 1fr);
    }

    .card-path-info h2{
        font-size:34px;
    }
}
.card-path-reward.claimable{
    border-color:rgba(255,211,106,0.8);
    box-shadow:
        0 0 24px rgba(255,211,106,0.35),
        inset 0 0 18px rgba(255,211,106,0.08);
}

.card-path-reward.claimable button{
    background:linear-gradient(180deg,#ffd36a,#ff9f1c);
    color:#1b1200;
    box-shadow:0 0 18px rgba(255,211,106,0.42);
    cursor:pointer;
}

.card-path-reward.claimed{
    border-color:rgba(52,255,156,0.55);
    opacity:0.85;
}

.card-path-reward.claimed button{
    background:#1f5c3d;
    color:#b8ffd9;
}

.card-path-reward.locked{
    filter:grayscale(0.35);
}
.card-path-main-progress{
    width:100%;
    max-width:620px;
    height:14px;

    margin-bottom:16px;

    overflow:hidden;
    border-radius:999px;

    background:rgba(255,255,255,0.10);
}

.card-path-main-progress div{
    height:100%;

    border-radius:999px;

    background:linear-gradient(90deg,#ff47d7,#ffd36a);
    box-shadow:0 0 18px rgba(255,59,212,0.45);
}

.card-path-stats{
    max-width:620px;

    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:12px;

    margin-bottom:16px;
}

.card-path-stats div{
    padding:14px;

    border-radius:18px;

    background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,255,255,0.08);
}

.card-path-stats span{
    display:block;

    color:rgba(255,255,255,0.55);
    font-size:12px;

    margin-bottom:6px;
}

.card-path-stats b{
    color:#ffd36a;
    font-size:20px;
}

@media (max-width:600px){
    .card-path-stats{
        grid-template-columns:1fr;
    }
}   
.collection-rarity-filter-v2{
    grid-column:1 / -1;

    display:flex;
    gap:10px;
    flex-wrap:wrap;

    margin-top:4px;
}

.collection-rarity-filter-v2 button{
    height:42px;
    padding:0 16px;

    border:none;
    border-radius:14px;

    background:rgba(255,255,255,0.08);
    color:rgba(255,255,255,0.72);

    font-family:'Russo One';
    cursor:pointer;

    transition:0.2s;
}

.collection-rarity-filter-v2 button:hover{
    transform:translateY(-2px);
    color:white;
}

.collection-rarity-filter-v2 button.active{
    background:linear-gradient(180deg,#ff47d7,#7a2cff);
    color:white;
    box-shadow:0 0 18px rgba(255,59,212,0.35);
}
.collection-theme-hero-v2{
    width:100%;
    max-width:1180px;
    margin:0 auto 26px;
    padding:22px;

    display:grid;
    grid-template-columns:170px 1fr 260px;
    gap:20px;
    align-items:center;

    border-radius:28px;
    border:1px solid rgba(255,255,255,0.12);

    background:
        radial-gradient(circle at top right, rgba(255,211,106,0.16), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));

    box-shadow:0 18px 44px rgba(0,0,0,0.32);
}
.theme-reward-btn-v2{
    width:100%;
    height:46px;
    margin-top:14px;

    border:none;
    border-radius:14px;

    background:linear-gradient(180deg,#ffd36a,#ff9f1c);
    color:#1b1200;

    font-family:'Russo One';
    cursor:pointer;

    box-shadow:0 0 18px rgba(255,211,106,0.35);
}

.theme-reward-btn-v2:disabled{
    background:#272335;
    color:rgba(255,255,255,0.4);
    box-shadow:none;
    cursor:not-allowed;
}
.collection-theme-card-v2,
.collection-card-v2,
.card-path-reward{
    animation: collectionFadeUp 0.35s ease both;
}

@keyframes collectionFadeUp{
    from{
        opacity:0;
        transform:translateY(16px) scale(0.97);
    }

    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }
}

.collection-card-v2.status-completed::after{
    content:"СОБРАНО";
    position:absolute;
    top:14px;
    right:14px;
    padding:7px 10px;
    border-radius:999px;
    background:rgba(52,255,156,0.16);
    color:#34ff9c;
    font-size:11px;
    border:1px solid rgba(52,255,156,0.35);
}

.collection-card-v2.status-locked{
    opacity:0.72;
    filter:grayscale(0.22);
}

.collection-theme-hero-v2.theme-completed{
    border-color:rgba(255,211,106,0.65);
    box-shadow:
        0 18px 44px rgba(0,0,0,0.32),
        0 0 30px rgba(255,211,106,0.22);
}  
/* ============================= */
/* BATTLE PASS SCREEN V2 */
/* ============================= */

.battle-pass-screen {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 26px 22px 60px;
}

.pass-hero {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr 0.9fr;
    gap: 22px;
    align-items: stretch;
    padding: 28px;
    border-radius: 32px;
    background:
        radial-gradient(circle at 70% 40%, rgba(255, 59, 212, 0.20), transparent 35%),
        radial-gradient(circle at 90% 20%, rgba(255, 211, 106, 0.14), transparent 25%),
        linear-gradient(135deg, rgba(15, 5, 28, 0.96), rgba(26, 8, 45, 0.94));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 24px 80px rgba(0,0,0,0.45);
}

.pass-label {
    color: var(--gold);
    font-size: 18px;
    margin-bottom: 8px;
}

.pass-title-block h1 {
    font-size: 54px;
    color: #ff62ff;
    text-shadow: 0 0 24px rgba(255, 59, 212, 0.55);
    margin-bottom: 12px;
}

.pass-title-block p {
    color: var(--text-soft);
    max-width: 420px;
    line-height: 1.5;
}

.pass-timer {
    margin-top: 22px;
    display: inline-flex;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-soft);
}

.pass-timer b {
    color: var(--gold);
}

.pass-progress-card,
.pass-premium-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border-radius: 26px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.12);
}

.pass-level-badge {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    font-size: 38px;
    color: white;
    background: linear-gradient(180deg, #9b35ff, #4b118d);
    border: 2px solid rgba(255,255,255,0.18);
    box-shadow: 0 0 28px rgba(155, 53, 255, 0.55);
}

.pass-xp-area {
    flex: 1;
}

.pass-xp-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: white;
}

.pass-xp-bar {
    height: 16px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
}

.pass-xp-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7a2cff, #ff47d7, #ffd36a);
    box-shadow: 0 0 16px rgba(255, 71, 215, 0.6);
}

.pass-xp-area small {
    display: block;
    margin-top: 8px;
    color: var(--text-soft);
}

.pass-plus-btn {
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    color: #1b1200;
    font-size: 34px;
    font-family: inherit;
    cursor: pointer;
    box-shadow: var(--shadow-gold);
}

.pass-premium-card {
    border-color: rgba(255, 211, 106, 0.35);
    box-shadow: inset 0 0 28px rgba(255, 211, 106, 0.08);
}

.pass-premium-icon {
    font-size: 58px;
    filter: drop-shadow(0 0 16px rgba(255, 211, 106, 0.6));
}

.pass-premium-card h3 {
    color: var(--gold);
    font-size: 22px;
    margin-bottom: 8px;
}

.pass-premium-card p {
    color: var(--text-soft);
    font-size: 13px;
}

.pass-premium-card button,
.pass-claim-all-btn {
    border: none;
    border-radius: 16px;
    padding: 14px 22px;
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    color: #1b1200;
    font-family: inherit;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: var(--shadow-gold);
}

.pass-switcher {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 26px 0;
}

.pass-switch-btn {
    padding: 15px 24px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: var(--text-soft);
    font-family: inherit;
    cursor: pointer;
    transition: 0.25s;
}

.pass-switch-btn.active {
    color: #1b1200;
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    box-shadow: var(--shadow-gold);
}

.pass-road-wrapper {
    padding: 22px;
    border-radius: 30px;
    background:
        radial-gradient(circle at center, rgba(255, 59, 212, 0.14), transparent 40%),
        linear-gradient(180deg, rgba(10, 3, 22, 0.96), rgba(17, 5, 32, 0.96));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 20px 70px rgba(0,0,0,0.45);
    overflow-x: auto;
}

.pass-road-header {
    min-width: 1160px;
    display: grid;
    grid-template-columns: 140px 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
    color: var(--gold);
    text-transform: uppercase;
}

.pass-road {
    min-width: 1160px;
}

.pass-road-levels {
    display: grid;
    grid-template-columns: 140px repeat(10, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.pass-line-title {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--gold);
    text-align: center;
}

.pass-reward-card {
    min-height: 150px;
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    position: relative;
}

.pass-reward-card.premium {
    border-color: rgba(255, 211, 106, 0.45);
    box-shadow: inset 0 0 24px rgba(255, 211, 106, 0.08);
}

.pass-reward-card.current {
    border-color: #ff47d7;
    box-shadow: 0 0 26px rgba(255, 71, 215, 0.45);
}

.pass-reward-icon {
    font-size: 42px;
}

.pass-reward-name {
    font-size: 13px;
    color: white;
    line-height: 1.3;
}

.pass-reward-amount {
    color: var(--gold);
    font-size: 14px;
}

.pass-reward-card button {
    width: 100%;
    padding: 9px;
    border: none;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    color: var(--text-soft);
    font-family: inherit;
    cursor: pointer;
}

.pass-reward-card.claimable button {
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    color: #1b1200;
}

.pass-level-row {
    display: grid;
    grid-template-columns: 140px repeat(10, 1fr);
    gap: 12px;
    margin: 12px 0;
}

.pass-level-node {
    height: 54px;
    border-radius: 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    display: grid;
    place-items: center;
    color: white;
    font-size: 22px;
}

.pass-level-node.current {
    background: linear-gradient(180deg, #ff47d7, #7a2cff);
    box-shadow: 0 0 24px rgba(255, 71, 215, 0.55);
}

.pass-bottom-panel {
    display: grid;
    grid-template-columns: 1fr 1.4fr 260px;
    gap: 18px;
    margin-top: 24px;
}

.pass-bottom-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
}

.pass-bottom-icon {
    font-size: 42px;
}

.pass-bottom-card h3 {
    color: white;
    margin-bottom: 6px;
}

.pass-bottom-card p {
    color: var(--text-soft);
    font-size: 13px;
}

@media (max-width: 1000px) {
    .pass-hero,
    .pass-bottom-panel {
        grid-template-columns: 1fr;
    }

    .pass-title-block h1 {
        font-size: 40px;
    }
}
/* ============================= */
/* BATTLE PASS SCREEN V2 */
/* ============================= */

.battle-pass-screen {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 26px 22px 60px;
}

.pass-hero {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr 0.9fr;
    gap: 22px;
    align-items: stretch;
    padding: 28px;
    border-radius: 32px;
    background:
        radial-gradient(circle at 70% 40%, rgba(255, 59, 212, 0.20), transparent 35%),
        radial-gradient(circle at 90% 20%, rgba(255, 211, 106, 0.14), transparent 25%),
        linear-gradient(135deg, rgba(15, 5, 28, 0.96), rgba(26, 8, 45, 0.94));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 24px 80px rgba(0,0,0,0.45);
}

.pass-label {
    color: var(--gold);
    font-size: 18px;
    margin-bottom: 8px;
}

.pass-title-block h1 {
    font-size: 54px;
    color: #ff62ff;
    text-shadow: 0 0 24px rgba(255, 59, 212, 0.55);
    margin-bottom: 12px;
}

.pass-title-block p {
    color: var(--text-soft);
    max-width: 420px;
    line-height: 1.5;
}

.pass-timer {
    margin-top: 22px;
    display: inline-flex;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-soft);
}

.pass-timer b {
    color: var(--gold);
}

.pass-progress-card,
.pass-premium-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border-radius: 26px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.12);
}

.pass-level-badge {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    font-size: 38px;
    color: white;
    background: linear-gradient(180deg, #9b35ff, #4b118d);
    border: 2px solid rgba(255,255,255,0.18);
    box-shadow: 0 0 28px rgba(155, 53, 255, 0.55);
}

.pass-xp-area {
    flex: 1;
}

.pass-xp-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: white;
}

.pass-xp-bar {
    height: 16px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
}

.pass-xp-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7a2cff, #ff47d7, #ffd36a);
    box-shadow: 0 0 16px rgba(255, 71, 215, 0.6);
}

.pass-xp-area small {
    display: block;
    margin-top: 8px;
    color: var(--text-soft);
}

.pass-plus-btn {
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    color: #1b1200;
    font-size: 34px;
    font-family: inherit;
    cursor: pointer;
    box-shadow: var(--shadow-gold);
}

.pass-premium-card {
    border-color: rgba(255, 211, 106, 0.35);
    box-shadow: inset 0 0 28px rgba(255, 211, 106, 0.08);
}

.pass-premium-icon {
    font-size: 58px;
    filter: drop-shadow(0 0 16px rgba(255, 211, 106, 0.6));
}

.pass-premium-card h3 {
    color: var(--gold);
    font-size: 22px;
    margin-bottom: 8px;
}

.pass-premium-card p {
    color: var(--text-soft);
    font-size: 13px;
}

.pass-premium-card button,
.pass-claim-all-btn {
    border: none;
    border-radius: 16px;
    padding: 14px 22px;
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    color: #1b1200;
    font-family: inherit;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: var(--shadow-gold);
}

.pass-switcher {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 26px 0;
}

.pass-switch-btn {
    padding: 15px 24px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: var(--text-soft);
    font-family: inherit;
    cursor: pointer;
    transition: 0.25s;
}

.pass-switch-btn.active {
    color: #1b1200;
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    box-shadow: var(--shadow-gold);
}

.pass-road-wrapper {
    padding: 22px;
    border-radius: 30px;
    background:
        radial-gradient(circle at center, rgba(255, 59, 212, 0.14), transparent 40%),
        linear-gradient(180deg, rgba(10, 3, 22, 0.96), rgba(17, 5, 32, 0.96));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 20px 70px rgba(0,0,0,0.45);
    overflow-x: auto;
}

.pass-road-header {
    min-width: 1160px;
    display: grid;
    grid-template-columns: 140px 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
    color: var(--gold);
    text-transform: uppercase;
}

.pass-road {
    min-width: 1160px;
}

.pass-road-levels {
    display: grid;
    grid-template-columns: 140px repeat(10, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.pass-line-title {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--gold);
    text-align: center;
}

.pass-reward-card {
    min-height: 150px;
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    position: relative;
}

.pass-reward-card.premium {
    border-color: rgba(255, 211, 106, 0.45);
    box-shadow: inset 0 0 24px rgba(255, 211, 106, 0.08);
}

.pass-reward-card.current {
    border-color: #ff47d7;
    box-shadow: 0 0 26px rgba(255, 71, 215, 0.45);
}

.pass-reward-icon {
    font-size: 42px;
}

.pass-reward-name {
    font-size: 13px;
    color: white;
    line-height: 1.3;
}

.pass-reward-amount {
    color: var(--gold);
    font-size: 14px;
}

.pass-reward-card button {
    width: 100%;
    padding: 9px;
    border: none;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    color: var(--text-soft);
    font-family: inherit;
    cursor: pointer;
}

.pass-reward-card.claimable button {
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    color: #1b1200;
}

.pass-level-row {
    display: grid;
    grid-template-columns: 140px repeat(10, 1fr);
    gap: 12px;
    margin: 12px 0;
}

.pass-level-node {
    height: 54px;
    border-radius: 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    display: grid;
    place-items: center;
    color: white;
    font-size: 22px;
}

.pass-level-node.current {
    background: linear-gradient(180deg, #ff47d7, #7a2cff);
    box-shadow: 0 0 24px rgba(255, 71, 215, 0.55);
}

.pass-bottom-panel {
    display: grid;
    grid-template-columns: 1fr 1.4fr 260px;
    gap: 18px;
    margin-top: 24px;
}

.pass-bottom-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
}

.pass-bottom-icon {
    font-size: 42px;
}

.pass-bottom-card h3 {
    color: white;
    margin-bottom: 6px;
}

.pass-bottom-card p {
    color: var(--text-soft);
    font-size: 13px;
}

@media (max-width: 1000px) {
    .pass-hero,
    .pass-bottom-panel {
        grid-template-columns: 1fr;
    }

    .pass-title-block h1 {
        font-size: 40px;
    }
}
/* === BATTLE PASS 30 LEVELS FIX === */

.pass-road-header,
.pass-road {
    min-width: 3300px;
}

.pass-road-levels,
.pass-level-row {
    grid-template-columns: 140px repeat(30, 1fr);
}

.pass-road-wrapper {
    scroll-behavior: smooth;
}

.pass-road-wrapper::-webkit-scrollbar {
    height: 12px;
}

.pass-road-wrapper::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 999px;
}

.pass-road-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #7a2cff, #ff47d7, #ffd36a);
    border-radius: 999px;
}

.pass-reward-card {
    min-width: 130px;
}
/* === PASS REWARD MODAL === */

.pass-reward-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.78);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.pass-reward-modal.active {
    display: flex;
}

.pass-reward-modal-card {
    width: 360px;
    max-width: calc(100% - 32px);
    padding: 34px 26px;
    text-align: center;
    border-radius: 30px;
    background:
        radial-gradient(circle at top, rgba(255,211,106,0.25), transparent 40%),
        linear-gradient(180deg, #231033, #100719);
    border: 2px solid rgba(255,211,106,0.7);
    box-shadow:
        0 0 50px rgba(255,211,106,0.25),
        0 0 80px rgba(255,59,212,0.2);
    animation: passModalPop 0.28s ease;
}

@keyframes passModalPop {
    from {
        transform: scale(0.82) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.pass-reward-modal-label {
    color: var(--gold);
    font-size: 14px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.pass-reward-modal-icon {
    font-size: 82px;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 20px rgba(255,211,106,0.7));
}

.pass-reward-modal-card h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.pass-reward-modal-card p {
    color: var(--gold);
    font-size: 24px;
    margin-bottom: 22px;
}

.pass-reward-modal-card button {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 14px 20px;
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    color: #1b1200;
    font-family: inherit;
    cursor: pointer;
}
/* === PASS REWARD RARITIES === */

.pass-reward-card.common {
    border-color: rgba(255,255,255,0.12);
}

.pass-reward-card.rare {
    border-color: rgba(77, 227, 255, 0.7);
    box-shadow:
        inset 0 0 20px rgba(77, 227, 255, 0.08),
        0 0 18px rgba(77, 227, 255, 0.12);
}

.pass-reward-card.epic {
    border-color: rgba(170, 77, 255, 0.75);
    box-shadow:
        inset 0 0 25px rgba(170, 77, 255, 0.12),
        0 0 22px rgba(170, 77, 255, 0.18);
}

.pass-reward-card.legendary {
    border-color: rgba(255, 211, 106, 0.95);
    box-shadow:
        inset 0 0 30px rgba(255, 211, 106, 0.14),
        0 0 28px rgba(255, 211, 106, 0.25);
}

.pass-reward-card.legendary::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(
            135deg,
            transparent,
            rgba(255,255,255,0.08),
            transparent
        );
    pointer-events: none;
}
/* === FINAL PASS REWARD === */

.pass-reward-card.final-reward {
    transform: scale(1.08);
    z-index: 5;
    background:
        radial-gradient(circle at top, rgba(255,211,106,0.22), transparent 45%),
        linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
}

.pass-reward-card.final-reward::after {
    content: "FINAL";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    letter-spacing: 1px;
    color: #1b1200;
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    padding: 5px 8px;
    border-radius: 999px;
    box-shadow: var(--shadow-gold);
}

.pass-reward-card.final-reward .pass-reward-icon {
    font-size: 58px;
    filter: drop-shadow(0 0 18px rgba(255,211,106,0.7));
}

.pass-reward-card.final-reward .pass-reward-name {
    font-size: 15px;
}

.pass-reward-card.final-reward .pass-reward-amount {
    font-size: 16px;
}
/* === PREMIUM LOCK === */

.pass-reward-card.locked-premium {
    opacity: 0.72;
    overflow: hidden;
}

.pass-reward-card.locked-premium::before {
    content: "🔒 PREMIUM";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,0.15),
            rgba(0,0,0,0.75)
        );

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--gold);
    font-size: 14px;
    letter-spacing: 1px;

    backdrop-filter: blur(3px);

    z-index: 5;
}
/* === PASS QUESTS === */

.pass-quests-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.pass-quest {
    padding: 14px;
    border-radius: 18px;
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.08),
            rgba(255,255,255,0.03)
        );

    border: 1px solid rgba(255,255,255,0.12);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pass-quest-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pass-quest-title {
    font-size: 14px;
    color: white;
}

.pass-quest-progress {
    width: 220px;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
}

.pass-quest-progress div {
    height: 100%;
    background:
        linear-gradient(
            90deg,
            #7a2cff,
            #ff47d7,
            #ffd36a
        );
}

.pass-quest-xp {
    color: var(--gold);
    font-size: 13px;
}

.pass-quest button {
    border: none;
    border-radius: 14px;
    padding: 10px 14px;
    background:
        linear-gradient(
            180deg,
            var(--gold),
            var(--gold-strong)
        );

    color: #1b1200;
    font-family: inherit;
    cursor: pointer;
}
/* ============================= */
/* QUESTS SCREEN */
/* ============================= */

.quests-screen {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 28px 22px 70px;
}

.quests-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 32px;
    border-radius: 32px;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 211, 106, 0.16), transparent 30%),
        radial-gradient(circle at 20% 40%, rgba(255, 59, 212, 0.18), transparent 35%),
        linear-gradient(135deg, rgba(15, 5, 28, 0.96), rgba(28, 9, 48, 0.94));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 24px 80px rgba(0,0,0,0.45);
}

.quests-label {
    color: var(--gold);
    font-size: 18px;
    margin-bottom: 8px;
}

.quests-hero h1 {
    font-size: 54px;
    color: #ff62ff;
    text-shadow: 0 0 24px rgba(255, 59, 212, 0.55);
    margin-bottom: 10px;
}

.quests-hero p {
    color: var(--text-soft);
    max-width: 620px;
    line-height: 1.5;
}

.quests-summary-card {
    min-width: 280px;
    padding: 24px;
    border-radius: 26px;
    background: rgba(0,0,0,0.34);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    gap: 18px;
}

.quests-summary-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    font-size: 42px;
    background: linear-gradient(180deg, #9b35ff, #4b118d);
    box-shadow: 0 0 28px rgba(155, 53, 255, 0.55);
}

.quests-summary-card h3 {
    color: var(--text-soft);
    font-size: 14px;
    margin-bottom: 8px;
}

.quests-summary-card b {
    color: var(--gold);
    font-size: 24px;
}

.quests-tabs {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 26px 0;
}

.quest-tab-btn {
    padding: 15px 24px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: var(--text-soft);
    font-family: inherit;
    cursor: pointer;
    transition: 0.25s;
}

.quest-tab-btn.active {
    color: #1b1200;
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    box-shadow: var(--shadow-gold);
}

.quests-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

.quests-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.quest-card {
    padding: 22px;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
    border: 1px solid rgba(255,255,255,0.12);
    display: grid;
    grid-template-columns: 70px 1fr 190px;
    gap: 18px;
    align-items: center;
    transition: 0.25s;
}

.quest-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 211, 106, 0.45);
    box-shadow: 0 0 24px rgba(255, 211, 106, 0.12);
}

.quest-card.completed {
    border-color: rgba(52, 255, 156, 0.55);
    box-shadow: 0 0 24px rgba(52, 255, 156, 0.12);
}

.quest-icon {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    font-size: 36px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
}

.quest-info h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.quest-info p {
    color: var(--text-soft);
    font-size: 14px;
    margin-bottom: 14px;
}

.quest-progress-bar {
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
}

.quest-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7a2cff, #ff47d7, #ffd36a);
    box-shadow: 0 0 16px rgba(255, 71, 215, 0.45);
}

.quest-meta {
    text-align: right;
}

.quest-meta b {
    display: block;
    color: var(--gold);
    margin-bottom: 12px;
}

.quest-meta span {
    display: block;
    color: var(--text-soft);
    font-size: 13px;
    margin-bottom: 14px;
}

.quest-meta button {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 13px 18px;
    background: rgba(255,255,255,0.08);
    color: var(--text-soft);
    font-family: inherit;
    cursor: not-allowed;
}

.quest-card.completed .quest-meta button {
    cursor: pointer;
    color: #1b1200;
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    box-shadow: var(--shadow-gold);
}

.quests-side-panel {
    position: sticky;
    top: 110px;
    align-self: start;
    padding: 24px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top, rgba(255,211,106,0.15), transparent 40%),
        linear-gradient(180deg, rgba(23, 13, 39, 0.96), rgba(12, 7, 20, 0.96));
    border: 1px solid rgba(255,255,255,0.12);
}

.quests-side-panel h2 {
    color: var(--gold);
    font-size: 24px;
    margin-bottom: 20px;
}

.quest-side-reward {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    margin-bottom: 14px;
}

.quest-side-reward span {
    font-size: 34px;
}

.quest-side-reward b {
    color: white;
}

.quest-side-reward p {
    margin-top: 6px;
    color: var(--text-soft);
    font-size: 12px;
}

@media (max-width: 1000px) {
    .quests-hero,
    .quests-layout {
        grid-template-columns: 1fr;
    }

    .quests-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .quest-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .quest-icon {
        margin: 0 auto;
    }

    .quest-meta {
        text-align: center;
    }

    .quests-hero h1 {
        font-size: 38px;
    }
}
/* =========================
   PROFILE SCREEN
========================= */

#profile-screen {
    display: none;
    min-height: 100vh;
    padding: 40px;
    background:
        radial-gradient(circle at top left, rgba(255,0,140,0.15), transparent 35%),
        radial-gradient(circle at top right, rgba(0,140,255,0.12), transparent 35%),
        #07010f;
}

.profile-back-btn {
    padding: 14px 26px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(135deg,#2a083f,#13051f);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 30px;
}

.profile-page {
    max-width: 1400px;
    margin: 0 auto;
}

.profile-hero-card {
    display: flex;
    align-items: center;
    gap: 35px;
    padding: 40px;
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(255,0,128,0.14), rgba(0,140,255,0.08)),
        #12031d;

    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 0 40px rgba(255,0,180,0.12);
}

.profile-avatar-big {
    width: 140px;
    height: 140px;
    border-radius: 30px;
    background: linear-gradient(135deg,#ffd54a,#ffb300);
    color: #1a0627;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    font-weight: 900;
}

.profile-main-info h1 {
    font-size: 54px;
    margin: 10px 0;
    color: white;
}

.profile-label {
    color: #ffcc52;
    font-weight: 800;
    letter-spacing: 2px;
}

.profile-level-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

#profile-level {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    background: linear-gradient(135deg,#8a2cff,#5f00c7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    color: white;
}

.profile-xp-bar {
    width: 420px;
    height: 18px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
}

#profile-xp-fill {
    width: 64%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg,#a100ff,#ff4fd8,#ffcf59);
}

#profile-xp-text {
    color: #ddd;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
    gap: 24px;
    margin-top: 30px;
}

.profile-card {
    padding: 28px;
    border-radius: 28px;
    background: rgba(18,4,34,0.92);
    border: 1px solid rgba(255,255,255,0.05);
}

.profile-card h3 {
    margin-bottom: 24px;
    font-size: 28px;
    color: white;
}

.profile-resource-row,
.profile-stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 20px;
    color: #ddd;
}

.profile-character-preview {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-character-preview img {
    width: 110px;
    height: 110px;
    object-fit: contain;
}
.profile-change-hero-btn {
    margin-top: 24px;
    width: 100%;
    padding: 15px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    background: linear-gradient(180deg, #ff47d7, #7a2cff);
    color: white;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 0 24px rgba(255, 71, 215, 0.28);
}
.inventory-items-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px;
    padding: 22px;
}

.inventory-item-card {
    min-height: 220px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.12);
    text-align: center;
    cursor: pointer;
}

.inventory-item-card img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 14px;
}

.inventory-item-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.inventory-item-card p {
    color: var(--gold);
    font-size: 18px;
}
.inventory-items-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px;
    padding: 22px;
}

.inventory-item-card {
    min-height: 220px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.12);
    text-align: center;
    cursor: pointer;
}

.inventory-item-card img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 14px;
}

.inventory-item-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.inventory-item-card p {
    color: var(--gold);
    font-size: 18px;
}
.inventory-item {
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.06),
        rgba(255,255,255,0.03)
    );

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 18px;

    padding: 18px;

    min-height: 180px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: 0.25s;
    position: relative;

    overflow: hidden;
}

.inventory-item:hover {
    transform: translateY(-6px) scale(1.02);
}

.inventory-item img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    margin-bottom: 12px;
}

.inventory-item h4 {
    font-size: 16px;
    text-align: center;
    margin-bottom: 6px;
}

.inventory-item p {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}

.rarity-common {
    border-color: rgba(255,255,255,0.10);
}

.rarity-rare {
    border-color: #4dc3ff;
    box-shadow: 0 0 18px rgba(77,195,255,0.25);
}

.rarity-epic {
    border-color: #d54dff;
    box-shadow: 0 0 24px rgba(213,77,255,0.35);
}

.rarity-legendary {
    border-color: #ffcc4d;
    box-shadow: 0 0 30px rgba(255,204,77,0.45);
}
.inventory-item {
    position: relative;
    background:
        linear-gradient(180deg,
        rgba(255,255,255,0.08),
        rgba(255,255,255,0.03));

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 18px;

    padding: 18px 14px;

    min-height: 210px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition:
        transform .25s,
        box-shadow .25s,
        border-color .25s;

    overflow: hidden;

    backdrop-filter: blur(10px);
}

.inventory-item:hover {
    transform: translateY(-6px) scale(1.03);
}

.inventory-item img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 14px;

    filter:
        drop-shadow(0 0 12px rgba(255,255,255,0.18));
}

.inventory-item h4 {
    font-size: 17px;
    text-align: center;
    margin-bottom: 8px;
    color: white;
}

.inventory-item p {
    color: rgba(255,255,255,0.75);
    font-size: 15px;
}

.rarity-common {
    box-shadow:
        0 0 12px rgba(255,255,255,0.08);
}

.rarity-rare {
    border-color: #3ea6ff;

    box-shadow:
        0 0 18px rgba(62,166,255,0.28);
}

.rarity-epic {
    border-color: #c03eff;

    box-shadow:
        0 0 22px rgba(192,62,255,0.35);
}

.rarity-legendary {
    border-color: #ffb300;

    box-shadow:
        0 0 28px rgba(255,179,0,0.45);
}
.preview-image {
    width: 180px;
    height: 180px;

    border-radius: 22px;

    background:
        linear-gradient(180deg,
        rgba(255,255,255,0.08),
        rgba(255,255,255,0.03));

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 22px;

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow:
        0 0 25px rgba(255,255,255,0.08);
}

.preview-image img {
    width: 130px;
    height: 130px;
    object-fit: contain;
}
/* === INVENTORY FINAL FIX === */

.inventory-section {
    width: 100%;
    max-width: 1500px;
    margin: 30px auto;
    padding: 28px;
    display: grid;
    grid-template-columns: 230px 1fr 330px;
    gap: 24px;
}

.inventory-main {
    min-height: 650px;
    padding: 24px;
    border-radius: 26px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.10);
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(4, 180px);
    gap: 18px;
    justify-content: start;
    align-content: start;
    padding: 0;
}

.inventory-item {
    width: 180px;
    height: 230px;
    border-radius: 22px;
    padding: 18px;
    background:
        radial-gradient(circle at top, rgba(255,255,255,0.08), transparent 45%),
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
    border: 1px solid rgba(255,255,255,0.10);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.inventory-item img {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.inventory-item h4 {
    font-size: 15px;
    text-align: center;
}

.inventory-item p {
    color: var(--gold);
    font-size: 17px;
}

.inventory-preview {
    min-height: 650px;
    padding: 24px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top, rgba(255,59,212,0.10), transparent 40%),
        rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.10);
}

.preview-image {
    width: 170px;
    height: 170px;
    margin: 0 auto 24px;
}

.preview-image img {
    width: 125px;
    height: 125px;
}
.inventory-item.selected {
    border: 2px solid #ff00cc;
    transform: translateY(-4px);
    box-shadow:
        0 0 25px rgba(255,0,204,0.45),
        0 0 60px rgba(255,0,204,0.18);
}
/* === ACHIEVEMENTS SCREEN === */

.achievements-screen {
    width: 100%;
    padding: 30px 34px;
}

.achievements-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.achievements-head h2 {
    font-size: 42px;
    color: #fff;
    text-shadow: 0 0 18px rgba(255, 59, 212, 0.45);
}

.achievements-head p {
    color: rgba(255,255,255,0.7);
    margin-top: 8px;
    font-size: 16px;
}

#achievements-sort {
    background: rgba(255,255,255,0.07);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    padding: 14px 18px;
    font-family: inherit;
}

.achievements-categories {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.achievement-filter {
    min-height: 58px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
    color: #fff;
    font-family: inherit;
    cursor: pointer;
}

.achievement-filter.active {
    background: linear-gradient(180deg, #b93dff, #6f20c9);
    border-color: rgba(255,255,255,0.35);
    box-shadow: 0 0 24px rgba(185, 61, 255, 0.35);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.achievement-card {
    min-height: 128px;
    display: grid;
    grid-template-columns: 82px 1fr 86px;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(255, 59, 212, 0.14), transparent 45%),
        linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 14px 28px rgba(0,0,0,0.25);
}

.achievement-card.completed {
    border-color: rgba(52, 255, 156, 0.42);
}

.achievement-card.locked {
    opacity: 0.85;
}

.achievement-medal {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #26113a, #12081d);
    border: 1px solid rgba(255, 211, 106, 0.35);
    box-shadow: inset 0 0 18px rgba(255,255,255,0.05);
}

.achievement-medal-icon {
    font-size: 34px;
    filter: drop-shadow(0 0 8px rgba(255, 211, 106, 0.45));
}

.achievement-info h3 {
    font-size: 17px;
    color: #fff;
    margin-bottom: 5px;
}

.achievement-info p {
    font-size: 12px;
    color: rgba(255,255,255,0.68);
    margin-bottom: 10px;
}

.achievement-progress {
    width: 100%;
    height: 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    overflow: hidden;
}

.achievement-progress div {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8d35ff, #ff3bd4, #ffd36a);
}

.achievement-info span {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    text-align: right;
}

.achievement-status {
    display: flex;
    justify-content: center;
    align-items: center;
}

.achievement-status b {
    color: var(--gold);
    font-size: 18px;
}

.achievement-status button {
    width: 100%;
    padding: 11px 8px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    color: #1b1200;
    font-family: inherit;
    cursor: pointer;
}

.achievements-footer {
    margin-top: 22px;
    padding: 18px 22px;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 220px 1fr 260px 150px;
    gap: 18px;
    align-items: center;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.12);
}

.achievements-footer span {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

.achievements-footer b {
    display: block;
    margin-top: 4px;
    color: #d96bff;
    font-size: 28px;
}

.achievements-footer-bar {
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
}

#achievements-total-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #8d35ff, #ff3bd4);
}

.achievements-footer button {
    padding: 14px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(180deg, #9b35ff, #6a1cc4);
    color: #fff;
    font-family: inherit;
    cursor: pointer;
}

@media (max-width: 1100px) {
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .achievements-categories {
        grid-template-columns: repeat(3, 1fr);
    }

    .achievements-footer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .achievements-screen {
        padding: 20px 14px;
    }

    .achievements-head {
        flex-direction: column;
    }

    .achievements-head h2 {
        font-size: 32px;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .achievement-card {
        grid-template-columns: 64px 1fr;
    }

    .achievement-status {
        grid-column: 1 / -1;
    }

    .achievements-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}
.achievement-card.medal-bronze .achievement-medal {
    border-color: #b87333;
    box-shadow: 0 0 18px rgba(184, 115, 51, 0.35);
}

.achievement-card.medal-silver .achievement-medal {
    border-color: #c0c0c0;
    box-shadow: 0 0 18px rgba(192, 192, 192, 0.35);
}

.achievement-card.medal-gold .achievement-medal {
    border-color: #ffd36a;
    box-shadow: 0 0 22px rgba(255, 211, 106, 0.45);
}

.achievement-card.medal-epic .achievement-medal {
    border-color: #b93dff;
    box-shadow: 0 0 24px rgba(185, 61, 255, 0.5);
}

.achievement-card.medal-legendary .achievement-medal {
    border-color: #ff9f1c;
    box-shadow:
        0 0 26px rgba(255, 159, 28, 0.55),
        0 0 42px rgba(255, 59, 212, 0.28);
}
.achievements-reset-test {
    background: transparent !important;
    border: 1px dashed rgba(255,255,255,0.25) !important;
    color: rgba(255,255,255,0.45) !important;
}

.achievements-reset-test:hover {
    color: #ff4d6d !important;
    border-color: rgba(255, 77, 109, 0.6) !important;
}
.medals-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.78);
    backdrop-filter: blur(8px);
    padding: 20px;
}

.medals-modal.active {
    display: flex;
}

.medals-modal-card {
    width: min(1100px, 100%);
    max-height: 86vh;
    overflow: auto;
    border-radius: 26px;
    padding: 24px;
    background:
        radial-gradient(circle at top, rgba(255, 59, 212, 0.18), transparent 42%),
        linear-gradient(180deg, #1a0828, #090011);
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 0 60px rgba(255, 59, 212, 0.22);
}

.medals-modal-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.medals-modal-head h2 {
    font-size: 34px;
    color: #fff;
}

.medals-modal-head p {
    margin-top: 6px;
    color: rgba(255,255,255,0.65);
}

.medals-modal-head button {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: none;
    background: rgba(255,255,255,0.09);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
}

.medals-modal-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.medal-item {
    min-height: 190px;
    padding: 16px;
    border-radius: 20px;
    text-align: center;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.12);
}

.medal-item-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    font-size: 34px;
    background: #13091f;
    border: 1px solid rgba(255,255,255,0.15);
}

.medal-item h3 {
    font-size: 14px;
    margin-bottom: 6px;
}

.medal-item p {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 12px;
}

.medal-item button {
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(180deg, var(--gold), var(--gold-strong));
    color: #1b1200;
    font-family: inherit;
    cursor: pointer;
}

.medal-item button:disabled {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.35);
    cursor: not-allowed;
}

.medal-item.locked {
    opacity: 0.55;
}

.medal-item.equipped {
    border-color: rgba(52, 255, 156, 0.65);
    box-shadow: 0 0 22px rgba(52, 255, 156, 0.22);
}

.medal-item.medal-bronze .medal-item-icon { border-color: #b87333; }
.medal-item.medal-silver .medal-item-icon { border-color: #c0c0c0; }
.medal-item.medal-gold .medal-item-icon { border-color: #ffd36a; }
.medal-item.medal-epic .medal-item-icon { border-color: #b93dff; }
.medal-item.medal-legendary .medal-item-icon { border-color: #ff9f1c; }

@media (max-width: 900px) {
    .medals-modal-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .medals-modal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.equipped-achievement-badge {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    color: #fff;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    width: fit-content;
}

.equipped-achievement-badge span {
    font-size: 16px;
}

.equipped-achievement-badge b {
    font-weight: 600;
}

.equipped-achievement-badge.medal-bronze {
    border-color: #b87333;
    box-shadow: 0 0 12px rgba(184,115,51,0.35);
}

.equipped-achievement-badge.medal-silver {
    border-color: #c0c0c0;
    box-shadow: 0 0 14px rgba(192,192,192,0.35);
}

.equipped-achievement-badge.medal-gold {
    border-color: #ffd36a;
    box-shadow: 0 0 16px rgba(255,211,106,0.45);
}

.equipped-achievement-badge.medal-epic {
    border-color: #b93dff;
    box-shadow: 0 0 18px rgba(185,61,255,0.45);
}

.equipped-achievement-badge.medal-legendary {
    border-color: #ff9f1c;
    box-shadow:
        0 0 20px rgba(255,159,28,0.5),
        0 0 32px rgba(255,59,212,0.24);
}
.achievement-toast {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 320px;
    padding: 16px 18px;
    border-radius: 20px;
    background:
        radial-gradient(circle at top left, rgba(255, 211, 106, 0.24), transparent 45%),
        linear-gradient(180deg, rgba(35, 14, 54, 0.96), rgba(12, 4, 22, 0.96));
    border: 1px solid rgba(255, 211, 106, 0.55);
    box-shadow:
        0 0 32px rgba(255, 211, 106, 0.22),
        0 18px 42px rgba(0,0,0,0.45);
    transform: translateX(130%);
    opacity: 0;
    transition: 0.35s ease;
}

.achievement-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.achievement-toast-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    font-size: 30px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255, 211, 106, 0.45);
}

.achievement-toast-label {
    color: var(--gold);
    font-size: 13px;
}

.achievement-toast-title {
    color: #fff;
    font-size: 19px;
    margin-top: 4px;
}
.equipped-achievement-badge {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    color: #fff;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    width: fit-content;
}

.equipped-achievement-badge span {
    font-size: 16px;
}
.profile-page-v2 {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
}

.profile-hero-v2 {
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 40px;
    border-radius: 32px;
    background:
        linear-gradient(135deg,
        rgba(255,255,255,0.08),
        rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.08);
}

.profile-avatar-v2 {
    width: 140px;
    height: 140px;
    border-radius: 32px;
    background: linear-gradient(135deg,#ffcc4d,#ff8a00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: #111;
    font-weight: bold;
}

.profile-main-v2 {
    flex: 1;
}

.profile-top-v2 {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.profile-top-v2 h1 {
    font-size: 54px;
}

.profile-level-bar-v2 {
    width: 100%;
    height: 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
    margin: 12px 0;
}

.profile-level-fill-v2 {
    width: 55%;
    height: 100%;
    background:
        linear-gradient(90deg,#b93dff,#ff4fd8,#ffd36a);
}

.profile-stats-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    margin-top: 28px;
}

.profile-stat-card-v2 {
    padding: 28px;
    border-radius: 24px;
    background:
        linear-gradient(135deg,
        rgba(255,255,255,0.08),
        rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}

.profile-stat-card-v2 span {
    font-size: 38px;
}

.profile-stat-card-v2 h3 {
    font-size: 42px;
    margin: 12px 0;
}

.profile-medal-v2 {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
}

.profile-medal-v2.empty {
    opacity: 0.6;
}

@media (max-width: 900px) {

    .profile-hero-v2 {
        flex-direction: column;
        text-align: center;
    }

    .profile-top-v2 {
        flex-direction: column;
    }

    .profile-stats-grid-v2 {
        grid-template-columns: 1fr 1fr;
    }
}
.profile-showcase-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 28px;
}

.profile-character-card-v2,
.profile-pet-card-v2 {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    border-radius: 32px;

    background:
        radial-gradient(circle at top,
        rgba(255,255,255,0.12),
        transparent 40%),

        linear-gradient(135deg,
        rgba(255,255,255,0.06),
        rgba(255,255,255,0.02));

    border: 1px solid rgba(255,255,255,0.08);
}

.profile-showcase-label {
    position: absolute;
    top: 18px;
    left: 18px;

    padding: 8px 14px;
    border-radius: 999px;

    background: rgba(0,0,0,0.32);

    font-size: 12px;
    letter-spacing: 1px;

    color: #ffd36a;
}

.profile-character-preview-v2,
.profile-pet-preview-v2 {
    width: 100%;
    height: 320px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-character-preview-v2 img {
    max-height: 280px;
    object-fit: contain;

    filter:
        drop-shadow(0 0 22px rgba(185,61,255,0.35))
        drop-shadow(0 0 42px rgba(255,211,106,0.22));

    transition: 0.3s;
}

.profile-character-preview-v2 img:hover {
    transform: scale(1.04);
}

.profile-pet-preview-v2 img {
    max-height: 220px;
    object-fit: contain;

    filter:
        drop-shadow(0 0 18px rgba(255,255,255,0.25));
}

.profile-character-info-v2 {
    padding: 0 28px 28px;
    text-align: center;
}

.profile-character-info-v2 h3 {
    font-size: 34px;
    margin-bottom: 10px;
}

.profile-character-info-v2 p {
    color: rgba(255,255,255,0.65);
}

@media (max-width: 1000px) {

    .profile-showcase-v2 {
        grid-template-columns: 1fr;
    }
}
/* === COLLECTION REWORK V3 === */

.collection-page {
    width: 100%;
}

.collection-page-subtitle {
    text-align: center;
    margin: -8px 0 24px;
    color: rgba(255,255,255,0.62);
    font-size: 14px;
}

.collection-theme-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* FEATURED */

.collection-featured-card {
    position: relative;
    width: 100%;
    min-height: 320px;
    border-radius: 30px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.06);
    box-shadow:
        0 24px 60px rgba(0,0,0,0.45),
        0 0 35px rgba(255,59,212,0.18);
    transition: 0.35s ease;
}

.collection-featured-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow:
        0 30px 70px rgba(0,0,0,0.55),
        0 0 45px rgba(255,59,212,0.35);
}

.collection-featured-bg {
    position: absolute;
    inset: 0;
}

.collection-featured-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    filter: blur(1px) saturate(1.2);
    transform: scale(1.05);
}

.collection-featured-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5,0,12,0.95), rgba(5,0,12,0.55), rgba(5,0,12,0.2)),
        radial-gradient(circle at 20% 25%, rgba(255,59,212,0.28), transparent 35%);
}

.collection-featured-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
    padding: 34px;
}

.collection-featured-label {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,59,212,0.18);
    border: 1px solid rgba(255,59,212,0.35);
    color: #ff71df;
    font-size: 12px;
    margin-bottom: 14px;
}

.collection-featured-content h2 {
    font-size: 54px;
    line-height: 0.95;
    margin-bottom: 12px;
    color: #ffd36a;
    text-shadow: 0 0 22px rgba(255,211,106,0.28);
}

.collection-featured-percent {
    font-size: 58px;
    color: white;
    margin-bottom: 4px;
}

.collection-featured-content p {
    color: rgba(255,255,255,0.72);
    margin-bottom: 16px;
}

.collection-featured-bar {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    overflow: hidden;
    margin-bottom: 18px;
}

.collection-featured-bar div {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff3bd4, #ffd36a);
    box-shadow: 0 0 18px rgba(255,59,212,0.55);
    transition: width 0.7s ease;
}

.collection-featured-content button {
    border: none;
    padding: 14px 22px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffd36a, #ffb800);
    color: #1c1200;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 0 #9b6900;
}

/* GRID */

.collection-themes-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.collection-theme-card-v3 {
    position: relative;
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 16px;
    padding: 16px;
    min-height: 160px;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.09), transparent 35%),
        linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 16px 34px rgba(0,0,0,0.32);
    transition: 0.28s ease;
}

.collection-theme-card-v3:hover {
    transform: translateY(-5px);
    border-color: rgba(255,211,106,0.55);
    box-shadow:
        0 20px 45px rgba(0,0,0,0.45),
        0 0 24px rgba(255,211,106,0.18);
}

.collection-theme-card-v3::before {
    content: "";
    position: absolute;
    top: -80%;
    left: -60%;
    width: 38%;
    height: 250%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.22),
        transparent
    );
    transform: rotate(25deg);
    transition: 0.75s ease;
}

.collection-theme-card-v3:hover::before {
    left: 125%;
}

.theme-card-img-v3 {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(0,0,0,0.35);
}

.theme-card-img-v3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theme-card-rank-v3 {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(0,0,0,0.72);
    border: 1px solid rgba(255,255,255,0.18);
    color: #ffd36a;
    font-size: 10px;
}

.theme-card-body-v3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.theme-card-head-v3 {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.theme-card-head-v3 h3 {
    font-size: 26px;
    line-height: 1;
}

.theme-card-head-v3 b {
    color: #ffd36a;
    font-size: 22px;
}

.theme-card-meta-v3 {
    margin-top: 8px;
    color: rgba(255,255,255,0.64);
    font-size: 13px;
}

.theme-card-progress-v3 {
    margin-top: 14px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    overflow: hidden;
}

.theme-card-progress-v3 div {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #4de3ff, #ff3bd4, #ffd36a);
    box-shadow: 0 0 14px rgba(255,59,212,0.45);
    transition: width 0.7s ease;
}

.theme-card-reward-v3 {
    margin-top: 12px;
    color: rgba(255,255,255,0.72);
    font-size: 12px;
}

/* Лёгкая живая анимация */
.collection-featured-card,
.collection-theme-card-v3 {
    animation: collectionAppear 0.45s ease both;
}

@keyframes collectionAppear {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile */

@media (max-width: 800px) {
    .collection-themes-showcase {
        grid-template-columns: 1fr;
    }

    .collection-featured-content h2 {
        font-size: 40px;
    }

    .collection-featured-percent {
        font-size: 42px;
    }
}

@media (max-width: 520px) {
    .collection-theme-card-v3 {
        grid-template-columns: 90px 1fr;
        min-height: 130px;
        padding: 12px;
    }

    .theme-card-head-v3 h3 {
        font-size: 19px;
    }

    .theme-card-head-v3 b {
        font-size: 18px;
    }

    .collection-featured-card {
        min-height: 280px;
    }

    .collection-featured-content {
        padding: 24px;
    }
}
/* === COLLECTION THEME DETAIL V3 === */

.collection-detail-hero {
    position: relative;
    width: 100%;
    min-height: 340px;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 22px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.06);
    box-shadow:
        0 24px 60px rgba(0,0,0,0.45),
        0 0 35px rgba(255,59,212,0.18);
}

.collection-theme-hero-bg-v3 {
    position: absolute;
    inset: 0;
}

.collection-theme-hero-bg-v3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    filter: blur(1px) saturate(1.25);
    transform: scale(1.06);
}

.collection-detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5,0,12,0.97), rgba(5,0,12,0.65), rgba(5,0,12,0.25)),
        radial-gradient(circle at 20% 20%, rgba(255,59,212,0.25), transparent 35%);
}

.collection-back-btn-v2 {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 4;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(0,0,0,0.42);
    color: white;
    padding: 10px 14px;
    border-radius: 14px;
    font-family: inherit;
    cursor: pointer;
}

.collection-theme-hero-content-v3 {
    position: relative;
    z-index: 3;
    padding: 78px 34px 34px;
    max-width: 560px;
}

.collection-theme-label-v3 {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,59,212,0.18);
    border: 1px solid rgba(255,59,212,0.35);
    color: #ff71df;
    font-size: 12px;
    margin-bottom: 14px;
}

.collection-theme-hero-content-v3 h2 {
    font-size: 58px;
    line-height: 0.95;
    margin-bottom: 18px;
    color: #ffd36a;
    text-shadow: 0 0 24px rgba(255,211,106,0.28);
}

.collection-theme-percent-v3 {
    font-size: 52px;
    color: white;
}

.collection-theme-percent-v3 span {
    font-size: 15px;
    color: rgba(255,255,255,0.62);
    margin-left: 8px;
}

.collection-theme-hero-content-v3 p {
    color: rgba(255,255,255,0.72);
    margin: 8px 0 14px;
}

.collection-theme-hero-progress-v3 {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    overflow: hidden;
}

.collection-theme-hero-progress-v3 div {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff3bd4, #4de3ff, #ffd36a);
    box-shadow: 0 0 18px rgba(255,59,212,0.55);
}

.collection-theme-vault-v3 {
    position: absolute;
    right: 28px;
    top: 80px;
    z-index: 3;
    width: 230px;
    padding: 18px;
    border-radius: 24px;
    text-align: center;
    background: rgba(0,0,0,0.42);
    border: 1px solid rgba(255,211,106,0.38);
    box-shadow: 0 0 24px rgba(255,211,106,0.16);
}

.vault-title-v3 {
    color: #ffd36a;
    font-size: 12px;
}

.vault-chest-v3 {
    font-size: 58px;
    margin: 8px 0;
    filter: drop-shadow(0 0 18px rgba(255,211,106,0.55));
    animation: chestFloat 2s ease-in-out infinite;
}

@keyframes chestFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

.collection-theme-vault-v3 b {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.78);
    line-height: 1.4;
    margin-bottom: 12px;
}

.theme-reward-btn-v3 {
    position: relative;
overflow: hidden;
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 11px;
    font-family: inherit;
    cursor: pointer;
    background: linear-gradient(180deg, #ffd36a, #ffb800);
    color: #1c1200;
}

.theme-reward-btn-v3:disabled {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.42);
    cursor: not-allowed;
}

.collection-rarity-filter-v3 {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 22px;
    z-index: 4;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.collection-rarity-filter-v3 button {
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(0,0,0,0.42);
    color: rgba(255,255,255,0.72);
    padding: 9px 12px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
}

.collection-rarity-filter-v3 button.active,
.collection-rarity-filter-v3 button:hover {
    background: rgba(255,59,212,0.22);
    color: white;
    border-color: rgba(255,59,212,0.5);
}

/* Карточки внутри темы */

.collection-detail-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.collection-card-v2 {
    position: relative;
    min-height: 330px;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    padding: 12px;
    background:
        radial-gradient(circle at top, rgba(255,255,255,0.12), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025));
    border: 1px solid rgba(255,255,255,0.13);
    box-shadow: 0 18px 34px rgba(0,0,0,0.34);
    transition: 0.28s ease;
}

.collection-card-v2:hover {
    rotate: -1deg;
    transform: translateY(-7px) scale(1.015);
    box-shadow:
        0 24px 45px rgba(0,0,0,0.46),
        0 0 28px rgba(255,59,212,0.22);

}

.collection-card-v2::before {
    content: "";
    position: absolute;
    top: -70%;
    left: -70%;
    width: 40%;
    height: 240%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.24),
        transparent
    );
    transform: rotate(25deg);
    transition: 0.75s ease;
}

.collection-card-v2:hover::before {
    left: 125%;
}

.collection-card-rarity-v3 {
    position: absolute;
    z-index: 3;
    top: 14px;
    left: 14px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 10px;
    text-transform: uppercase;
    background: rgba(0,0,0,0.68);
    border: 1px solid rgba(255,255,255,0.16);
}

.collection-card-image-v3 {
    height: 190px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(0,0,0,0.35);
    margin-bottom: 14px;
}

.collection-card-image-v3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-card-info-v3 h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.collection-card-progress-text-v3 {
    font-size: 13px;
    color: rgba(255,255,255,0.68);
    margin-bottom: 8px;
}

.collection-card-progress-v3 {
    height: 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.13);
    overflow: hidden;
    margin-bottom: 14px;
}

.collection-card-progress-v3 div {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #4de3ff, #ff3bd4);
    box-shadow: 0 0 14px rgba(255,59,212,0.45);
}

.collection-card-info-v3 button {
    width: 100%;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.07);
    color: white;
    padding: 10px;
    border-radius: 14px;
    font-family: inherit;
    cursor: pointer;
}

.rarity-common {
    border-color: rgba(255,255,255,0.16);
}

.rarity-rare {
    border-color: rgba(77,227,255,0.45);
    box-shadow: 0 18px 34px rgba(0,0,0,0.34), 0 0 18px rgba(77,227,255,0.12);
}

.rarity-epic {
    border-color: rgba(255,59,212,0.48);
    box-shadow: 0 18px 34px rgba(0,0,0,0.34), 0 0 22px rgba(255,59,212,0.16);
}

.rarity-legendary {
    border-color: rgba(255,211,106,0.62);
    box-shadow: 0 18px 34px rgba(0,0,0,0.34), 0 0 24px rgba(255,211,106,0.2);
    animation: legendaryGlow 2s ease-in-out infinite alternate;
}

@keyframes legendaryGlow {
    from {
        box-shadow: 0 18px 34px rgba(0,0,0,0.34), 0 0 18px rgba(255,211,106,0.18);
    }
    to {
        box-shadow: 0 18px 34px rgba(0,0,0,0.34), 0 0 34px rgba(255,211,106,0.42);
    }
}

@media (max-width: 1050px) {
    .collection-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .collection-theme-vault-v3 {
        position: relative;
        top: auto;
        right: auto;
        width: calc(100% - 68px);
        margin: 0 34px 82px;
    }

    .collection-detail-hero {
        min-height: auto;
    }
}

@media (max-width: 560px) {
    .collection-detail-grid {
        grid-template-columns: 1fr;
    }

    .collection-theme-hero-content-v3 h2 {
        font-size: 40px;
    }

    .collection-theme-percent-v3 {
        font-size: 38px;
    }
}
/* === CARD PATH VIEW === */

.collection-card-path-view {
    width: 100%;
    margin-top: 24px;
}

.card-path-panel {
    position: relative;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 34px;
    width: 100%;
    padding: 34px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(255,59,212,0.18), transparent 32%),
        linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025));
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 24px 60px rgba(0,0,0,0.48);
    animation: cardPathAppear 0.35s ease both;
}

@keyframes cardPathAppear {
    0% {
        opacity: 0;
        transform:
            perspective(1200px)
            rotateX(18deg)
            scale(0.92)
            translateY(30px);

        filter: blur(10px);
    }

    50% {
        opacity: 1;
        transform:
            perspective(1200px)
            rotateX(-4deg)
            scale(1.02)
            translateY(-4px);

        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform:
            perspective(1200px)
            rotateX(0deg)
            scale(1)
            translateY(0);

        filter: blur(0);
    }
}

.card-path-back {
    position: absolute;
    top: 20px;
    left: 20px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(0,0,0,0.4);
    color: white;
    padding: 10px 14px;
    border-radius: 14px;
    font-family: inherit;
    cursor: pointer;
}

.card-path-left {
    padding-top: 42px;
}

.card-path-image {
    height: 360px;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 0 34px rgba(255,59,212,0.22);
}

.card-path-image img {
    transition: transform 0.45s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-path-image:hover img {
    transform: scale(1.06);
}
.card-path-rarity {
    margin-top: 14px;
    text-align: center;
    text-transform: uppercase;
    color: #ffd36a;
}

.card-path-right {
    padding-top: 52px;
}

.card-path-level {
    color: #ffd36a;
    font-size: 18px;
    margin-bottom: 12px;
}

.card-path-right h2 {
    font-size: 46px;
    margin-bottom: 12px;
}

.card-path-right p {
    color: rgba(255,255,255,0.68);
    max-width: 580px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.card-path-progress {
    height: 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.13);
    overflow: hidden;
    margin-bottom: 30px;
}

.card-path-progress div {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff3bd4, #4de3ff, #ffd36a);
    box-shadow: 0 0 18px rgba(255,59,212,0.55);
}

.card-path-milestones {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.card-path-reward {
    position: relative;
    text-align: center;
    opacity: 0.55;
}

.card-path-reward.done {
    opacity: 1;
}

.reward-dot {
    width: 42px;
    height: 42px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    font-size: 12px;
}

.card-path-reward.done .reward-dot {
    background: linear-gradient(180deg, #34ff9c, #0dbb68);
    color: #001b0d;
    box-shadow: 0 0 18px rgba(52,255,156,0.35);
}

.reward-box {
    height: 76px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 30px;
    background: rgba(0,0,0,0.32);
    border: 1px solid rgba(255,255,255,0.12);
}

.card-path-panel.rarity-legendary {
    border-color: rgba(255,211,106,0.6);
}

.card-path-panel.rarity-epic {
    border-color: rgba(255,59,212,0.55);
}

.card-path-panel.rarity-rare {
    border-color: rgba(77,227,255,0.55);
}

@media (max-width: 850px) {
    .card-path-panel {
        grid-template-columns: 1fr;
    }

    .card-path-milestones {
        grid-template-columns: repeat(3, 1fr);
    }

    .card-path-image {
        height: 300px;
    }
}
.card-path-panel::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 32px;
    padding: 2px;
    background: linear-gradient(120deg, transparent, rgba(255,59,212,0.7), rgba(255,211,106,0.7), transparent);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.45;
    pointer-events: none;
    animation: pathBorderGlow 3s linear infinite;
}

@keyframes pathBorderGlow {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

.card-path-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 30px;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08), transparent 22%),
        radial-gradient(circle at 80% 70%, rgba(255,211,106,0.08), transparent 24%);
}
.reward-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reward-icon {
    font-size: 28px;
    line-height: 1;
}

.reward-amount {
    font-size: 11px;
    color: rgba(255,255,255,0.75);
}
.card-path-claim-btn {
    border: none;
    margin-bottom: 28px;
    padding: 14px 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, #34ff9c, #0dbb68);
    color: #001b0d;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 0 #05733d, 0 0 22px rgba(52,255,156,0.28);
}

.card-path-reward.claimed {
    opacity: 0.35;
}

.card-path-reward.claimed .reward-dot {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.45);
}

.card-path-reward.claimed .reward-box::after {
    content: "ПОЛУЧЕНО";
    position: absolute;
    font-size: 9px;
    color: #34ff9c;
    bottom: 6px;
}

.game-toast-message {
    position: fixed;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%) translateY(30px);
    z-index: 9999;
    padding: 14px 20px;
    border-radius: 999px;
    background: rgba(0,0,0,0.78);
    border: 1px solid rgba(255,255,255,0.18);
    color: white;
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
}

.game-toast-message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.card-path-claim-btn {
    position: relative;
    overflow: hidden;
    border: none;
    margin-bottom: 28px;
    padding: 14px 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, #34ff9c, #0dbb68);
    color: #001b0d;
    font-family: inherit;
    font-size: 15px;
    letter-spacing: 0.5px;
    cursor: pointer;

    box-shadow:
        0 8px 0 #05733d,
        0 0 22px rgba(52,255,156,0.28);

    transition: transform 0.2s ease;
    animation: claimButtonPulse 2s ease-in-out infinite;
}

.card-path-claim-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.card-path-claim-btn:active {
    transform: translateY(3px);
    box-shadow:
        0 3px 0 #05733d,
        0 0 12px rgba(52,255,156,0.22);
}

/* Блик */
.card-path-claim-btn::before {
    content: "";
    position: absolute;
    top: -60%;
    left: -80%;
    width: 35%;
    height: 240%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.45),
        transparent
    );

    transform: rotate(25deg);
    animation: claimButtonShine 3s linear infinite;
}

/* Пульсация */
@keyframes claimButtonPulse {
    0%, 100% {
        box-shadow:
            0 8px 0 #05733d,
            0 0 18px rgba(52,255,156,0.22);
    }

    50% {
        box-shadow:
            0 8px 0 #05733d,
            0 0 34px rgba(52,255,156,0.48);
    }
}

/* Движение блика */
@keyframes claimButtonShine {
    0% {
        left: -90%;
    }

    100% {
        left: 140%;
    }
}
.card-path-claim-btn.disabled {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.42);
    box-shadow: none;
    cursor: not-allowed;
    animation: none;
}

.card-path-claim-btn.disabled::before {
    display: none;
}

.card-path-claim-btn.disabled:hover {
    transform: none;
}
.reward-burst-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(8px);
}

.reward-burst-modal.active {
    display: flex;
}

.reward-burst-card {
    position: relative;
    width: min(420px, 92vw);
    padding: 34px;
    text-align: center;
    border-radius: 30px;
    background:
        radial-gradient(circle at top, rgba(255,211,106,0.22), transparent 42%),
        linear-gradient(135deg, #2a063d, #100018);
    border: 1px solid rgba(255,211,106,0.55);
    box-shadow:
        0 0 50px rgba(255,211,106,0.25),
        0 0 35px rgba(255,59,212,0.22);
    animation: rewardBurstPop 0.35s ease both;
    overflow: hidden;
}

.reward-burst-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        conic-gradient(
            from 0deg,
            transparent,
            rgba(255,211,106,0.22),
            transparent,
            rgba(255,59,212,0.18),
            transparent
        );
    animation: rewardBurstRotate 5s linear infinite;
}

.reward-burst-card > * {
    position: relative;
    z-index: 2;
}

.reward-burst-label {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,211,106,0.12);
    border: 1px solid rgba(255,211,106,0.34);
    color: #ffd36a;
    font-size: 12px;
    margin-bottom: 14px;
}

.reward-burst-icon {
    font-size: 70px;
    filter: drop-shadow(0 0 20px rgba(255,211,106,0.75));
    animation: rewardIconFloat 1.8s ease-in-out infinite;
}

.reward-burst-card h2 {
    font-size: 36px;
    margin: 8px 0;
}

.reward-burst-card p {
    color: rgba(255,255,255,0.72);
    margin-bottom: 22px;
}

.reward-burst-card button {
    border: none;
    padding: 13px 24px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffd36a, #ffb800);
    color: #1c1200;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 7px 0 #9b6900;
}

@keyframes rewardBurstPop {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes rewardBurstRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rewardIconFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.06);
    }
}
.card-path-next-text {
    margin-top: -18px;
    margin-bottom: 24px;
    color: rgba(255,255,255,0.62);
    font-size: 13px;
}

.card-path-level {
    display: inline-flex;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255,211,106,0.12);
    border: 1px solid rgba(255,211,106,0.35);
    color: #ffd36a;
    box-shadow: 0 0 18px rgba(255,211,106,0.16);
}
.card-path-reward.done:not(.claimed) {
    opacity: 1;
    animation: rewardAvailablePulse 1.7s ease-in-out infinite;
}

.card-path-reward.done:not(.claimed) .reward-dot {
    background: linear-gradient(180deg, #ffd36a, #ffb800);
    color: #1c1200;
    box-shadow: 0 0 18px rgba(255,211,106,0.45);
}

.reward-status-text {
    font-size: 8px;
    color: rgba(255,255,255,0.5);
}

.card-path-reward.done:not(.claimed) .reward-status-text {
    color: #ffd36a;
}

.card-path-reward.claimed .reward-status-text {
    color: #34ff9c;
}

@keyframes rewardAvailablePulse {
    0%, 100% {
        transform: translateY(0);
        filter: brightness(1);
    }
    50% {
        transform: translateY(-3px);
        filter: brightness(1.25);
    }
}
.collection-card-v2 {
    transform-style: preserve-3d;
}

.collection-card-v2:hover .collection-card-image-v3 img {
    transform: scale(1.08);
}

.collection-card-image-v3 img {
    transition: transform 0.4s ease;
}

/* Плавающее свечение */
.collection-card-v2::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08), transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(255,59,212,0.10), transparent 26%);
    animation: cardAmbientGlow 4s ease-in-out infinite alternate;
}

@keyframes cardAmbientGlow {
    from {
        opacity: 0.45;
    }

    to {
        opacity: 1;
    }
}

.theme-rank-badge-v3 {
    display: inline-flex;
    margin: 8px 0 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 1px;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.16);
    color: rgba(255,255,255,0.75);
}

.rank-rookie {
    color: rgba(255,255,255,0.75);
}

.rank-collector {
    color: #4de3ff;
    box-shadow: 0 0 16px rgba(77,227,255,0.22);
}

.rank-hunter {
    color: #ff3bd4;
    box-shadow: 0 0 18px rgba(255,59,212,0.25);
}

.rank-elite {
    color: #ffd36a;
    box-shadow: 0 0 20px rgba(255,211,106,0.32);
}

.rank-master {
    color: #34ff9c;
    border-color: rgba(52,255,156,0.45);
    box-shadow: 0 0 26px rgba(52,255,156,0.35);
    animation: masterRankPulse 1.8s ease-in-out infinite;
}

@keyframes masterRankPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.04);
        filter: brightness(1.25);
    }
}
.collection-theme-vault-v3:has(.theme-reward-btn-v3:not(:disabled)) {
    animation: vaultReadyPulse 1.8s ease-in-out infinite;
    border-color: rgba(52,255,156,0.65);
}

.collection-theme-vault-v3:has(.theme-reward-btn-v3:not(:disabled)) .vault-chest-v3 {
    animation: chestFloat 1.4s ease-in-out infinite, chestReadyShake 2.4s ease-in-out infinite;
}

@keyframes vaultReadyPulse {
    0%, 100% {
        box-shadow: 0 0 24px rgba(52,255,156,0.18);
    }
    50% {
        box-shadow: 0 0 42px rgba(52,255,156,0.42);
    }
}

@keyframes chestReadyShake {
    0%, 100% {
        rotate: 0deg;
    }
    45% {
        rotate: 0deg;
    }
    50% {
        rotate: -4deg;
    }
    55% {
        rotate: 4deg;
    }
    60% {
        rotate: 0deg;
    }
}
.theme-reward-btn-v3:not(:disabled)::before {
    content: "";
    position: absolute;
    top: -70%;
    left: -80%;
    width: 36%;
    height: 240%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.5),
        transparent
    );
    transform: rotate(25deg);
    animation: themeRewardShine 2.8s linear infinite;
}

@keyframes themeRewardShine {
    from {
        left: -90%;
    }
    to {
        left: 140%;
    }
}
/* === SLOT COLLECTION GAIN WIDGET === */

.slot-collection-gain {
    position: absolute;
    right: -18px;
    top: 42px;
    z-index: 20;
    width: 260px;
    padding: 14px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.12), transparent 35%),
        rgba(6, 0, 16, 0.82);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.45);
    opacity: 0;
    transform: translateX(22px) scale(0.96);
    pointer-events: none;
    transition: 0.28s ease;
}

.slot-collection-gain.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.slot-collection-gain.hit {
    animation: collectionGainHit 0.45s ease;
}

.slot-collection-gain-label {
    color: #ffd36a;
    font-size: 12px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.slot-collection-gain-body {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    align-items: center;
}

.slot-collection-gain-body img {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 0 18px rgba(255,255,255,0.16);
}

#slot-gain-title {
    font-size: 16px;
    color: white;
    line-height: 1.15;
}

#slot-gain-text {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.3;
    color: rgba(255,255,255,0.62);
}

.slot-collection-gain.rarity-rare {
    border-color: rgba(77,227,255,0.55);
    box-shadow: 0 18px 45px rgba(0,0,0,0.45), 0 0 24px rgba(77,227,255,0.22);
}

.slot-collection-gain.rarity-epic {
    border-color: rgba(255,59,212,0.6);
    box-shadow: 0 18px 45px rgba(0,0,0,0.45), 0 0 28px rgba(255,59,212,0.26);
}

.slot-collection-gain.rarity-legendary {
    border-color: rgba(255,211,106,0.7);
    box-shadow: 0 18px 45px rgba(0,0,0,0.45), 0 0 34px rgba(255,211,106,0.34);
    animation: legendaryGainGlow 1.7s ease-in-out infinite alternate;
}

.flying-collection-card {
    position: fixed;
    z-index: 99999;
    object-fit: cover;
    border-radius: 16px;
    pointer-events: none;
    transition:
        left 0.72s cubic-bezier(.2,.9,.2,1),
        top 0.72s cubic-bezier(.2,.9,.2,1),
        width 0.72s cubic-bezier(.2,.9,.2,1),
        height 0.72s cubic-bezier(.2,.9,.2,1),
        opacity 0.72s ease,
        transform 0.72s ease;
    box-shadow: 0 0 24px rgba(255,211,106,0.42);
}

@keyframes collectionGainHit {
    0% { transform: translateX(0) scale(1); }
    45% { transform: translateX(0) scale(1.08); }
    100% { transform: translateX(0) scale(1); }
}

@keyframes legendaryGainGlow {
    from {
        filter: brightness(1);
    }
    to {
        filter: brightness(1.25);
    }
}

@media (max-width: 900px) {
    .slot-collection-gain {
        right: 50%;
        top: auto;
        bottom: 88px;
        transform: translateX(50%) translateY(18px) scale(0.96);
        width: min(320px, 88vw);
    }

    .slot-collection-gain.show {
        transform: translateX(50%) translateY(0) scale(1);
    }

    .slot-collection-gain.hit {
        animation: collectionGainHitMobile 0.45s ease;
    }

    @keyframes collectionGainHitMobile {
        0% { transform: translateX(50%) translateY(0) scale(1); }
        45% { transform: translateX(50%) translateY(0) scale(1.08); }
        100% { transform: translateX(50%) translateY(0) scale(1); }
    }
}
.slot-gain-list {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.slot-gain-list-item {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 8px;
    align-items: center;
    padding: 7px;
    border-radius: 13px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.09);
}

.slot-gain-list-item img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: cover;
}

.slot-gain-list-item b {
    display: block;
    font-size: 11px;
    color: white;
    line-height: 1.15;
}

.slot-gain-list-item span {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    color: rgba(255,255,255,0.56);
}

.slot-gain-list-item.rarity-rare {
    border-color: rgba(77,227,255,0.35);
}

.slot-gain-list-item.rarity-epic {
    border-color: rgba(255,59,212,0.4);
}

.slot-gain-list-item.rarity-legendary {
    border-color: rgba(255,211,106,0.5);
}

.slot-gain-more {
    text-align: center;
    padding: 7px;
    border-radius: 999px;
    background: rgba(255,211,106,0.12);
    color: #ffd36a;
    font-size: 11px;
}
.cell.collection-hit {
    animation: slotCollectionHit 0.75s ease;
    z-index: 3;
}

@keyframes slotCollectionHit {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255,211,106,0);
    }

    45% {
        transform: scale(1.08);
        box-shadow:
            0 0 18px rgba(255,211,106,0.65),
            0 0 34px rgba(255,59,212,0.35);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0,0,0,0.16);
    }
}
/* === GL NEW LAYOUT === */

.main-header-v2,
.header-bar,
.tabs-shell {
    display: none !important;
}

body {
    background: #05030b;
}

.screen {
    max-width: none;
    padding-left: 210px;
    padding-right: 34px;
    padding-top: 120px;
}

.gl-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 180px;
    height: 100vh;
    z-index: 999;
    padding: 24px 18px;
    background: linear-gradient(180deg, rgba(8, 4, 22, 0.98), rgba(4, 2, 10, 0.98));
    border-right: 1px solid rgba(174, 56, 255, 0.25);
    box-shadow: 10px 0 40px rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gl-logo img {
    width: 120px;
    display: block;
    margin: 0 auto 32px;
}

.gl-nav-btn {
    width: 100%;
    min-height: 54px;
    border: none;
    border-radius: 14px;
    background: transparent;
    color: rgba(255,255,255,0.65);
    font-family: inherit;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    cursor: pointer;
    transition: 0.2s ease;
}

.gl-nav-btn:hover,
.gl-nav-btn.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(217, 38, 255, 0.28), rgba(88, 35, 255, 0.08));
    box-shadow: 0 0 22px rgba(217, 38, 255, 0.22);
}

.gl-pass-mini {
    margin-top: auto;
}

.gl-pass-mini img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 0 24px rgba(211, 44, 255, 0.35);
}

/* === GL TOPBAR === */

.gl-topbar {
    position: fixed;
    top: 0;
    left: 180px;
    right: 0;
    height: 92px;
    z-index: 998;
    padding: 18px 34px;
    background:
        linear-gradient(180deg, rgba(6, 3, 18, 0.96), rgba(6, 3, 18, 0.78)),
        radial-gradient(circle at 35% 0%, rgba(120, 50, 255, 0.18), transparent 35%);
    border-bottom: 1px solid rgba(174, 56, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(14px);
}

.gl-player {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gl-player-avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(214, 67, 255, 0.65);
    box-shadow: 0 0 24px rgba(214, 67, 255, 0.28);
    background: #120824;
}

.gl-player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gl-player-name {
    font-size: 18px;
    color: #fff;
}

.gl-player-role {
    margin-top: 2px;
    color: rgba(255,255,255,0.65);
    font-size: 12px;
}

.gl-player-xp-row {
    margin-top: 7px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gl-player-xp-row span {
    padding: 3px 8px;
    border-radius: 8px;
    background: linear-gradient(180deg, #b827ff, #6d20ff);
    font-size: 12px;
}

.gl-player-xp-row small {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
}

.gl-player-xp {
    width: 120px;
    height: 8px;
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
    overflow: hidden;
}

.gl-player-xp div {
    height: 100%;
    background: linear-gradient(90deg, #ff37df, #8a4dff);
}

.gl-resources {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gl-resource {
    min-width: 126px;
    height: 48px;
    padding: 0 16px;
    border-radius: 14px;
    background: rgba(10, 4, 25, 0.82);
    border: 1px solid rgba(151, 65, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #fff;
    box-shadow: inset 0 0 18px rgba(255,255,255,0.03);
}

.gl-resource span {
    font-size: 17px;
}

.gl-resource b {
    color: #f44cff;
    font-size: 22px;
}

.gl-bell {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(151, 65, 255, 0.35);
    background: rgba(10, 4, 25, 0.82);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}
body {
    background: #030208 !important;
}

body::before,
body::after {
    opacity: 0.08 !important;
}
.gl-sidebar {
    overflow-y: auto;
    overflow-x: hidden;
}

.gl-sidebar::-webkit-scrollbar {
    width: 4px;
}

.gl-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 65, 255, 0.35);
    border-radius: 999px;
}
body.gl-compact .gl-sidebar {
    width: 74px;
    padding-left: 10px;
    padding-right: 10px;
}

body.gl-compact .gl-logo img,
body.gl-compact .gl-pass-mini {
    display: none;
}

body.gl-compact .gl-nav-btn {
    justify-content: center;
    padding: 0;
}

body.gl-compact .gl-nav-btn span {
    display: none;
}

body.gl-compact .gl-topbar {
    left: 74px;
}

body.gl-compact .screen {
    padding-left: 104px !important;
}
/* === GL HOME HERO === */

.gl-home-hero {
    width: 100%;
    max-width: 1180px;
    min-height: 430px;
    margin: 20px auto 24px;
    padding: 34px;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 0.9fr 1.2fr;
    align-items: center;
    background:
        radial-gradient(circle at 70% 40%, rgba(178, 42, 255, 0.25), transparent 38%),
        linear-gradient(135deg, rgba(16, 8, 34, 0.95), rgba(5, 3, 12, 0.95));
    border: 1px solid rgba(185, 70, 255, 0.25);
    box-shadow: 0 24px 70px rgba(0,0,0,0.55);
}

.gl-home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.72), transparent 65%);
    z-index: 1;
    pointer-events: none;
}

.gl-hero-left {
    position: relative;
    z-index: 2;
}

.gl-hero-label {
    color: rgba(255,255,255,0.78);
    font-size: 17px;
    margin-bottom: 12px;
}

.gl-hero-logo {
    width: 330px;
    max-width: 100%;
    display: block;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 18px rgba(246, 45, 255, 0.35));
}

.gl-hero-text {
    max-width: 360px;
    color: rgba(255,255,255,0.78);
    font-size: 18px;
    line-height: 1.45;
    margin-bottom: 30px;
}

.gl-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.gl-main-btn,
.gl-second-btn {
    height: 58px;
    padding: 0 30px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s ease;
}

.gl-main-btn {
    border: none;
    color: #fff;
    background: linear-gradient(180deg, #ff45df, #a414e6);
    box-shadow: 0 0 28px rgba(255, 55, 220, 0.38);
}

.gl-second-btn {
    color: #fff;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.16);
}

.gl-main-btn:hover,
.gl-second-btn:hover {
    transform: translateY(-2px);
}

.gl-hero-art {
    position: relative;
    z-index: 0;
    height: 100%;
}

.gl-hero-art img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    border-radius: 22px;
    opacity: 0.95;
}
.gl-sidebar {
    background: #030208 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
}
/* === GL HERO V2 === */

.gl-home-hero {
    display: none !important;
}

.gl-home-hero-v2 {
    width: 100%;
    max-width: 1120px;
    height: 430px;
    margin: 18px auto 26px;
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #05030b;
    border: 1px solid rgba(112, 54, 180, 0.28);
    box-shadow: 0 24px 70px rgba(0,0,0,0.55);
}

.gl-home-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.92;
}

.gl-home-hero-v2::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.58) 34%, rgba(0,0,0,0.08) 72%),
        linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.4));
    pointer-events: none;
}

.gl-home-hero-content {
    position: relative;
    z-index: 2;
    width: 390px;
    height: 100%;
    padding: 48px 0 44px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gl-hero-title {
    font-size: 56px;
    line-height: 0.92;
    letter-spacing: 1px;
    margin: 8px 0 20px;
    color: #fff;
    text-shadow: 0 0 18px rgba(255,255,255,0.12);
}

.gl-hero-title span {
    color: #ff3bd4;
    text-shadow: 0 0 20px rgba(255, 59, 212, 0.45);
}

.gl-hero-title b {
    color: #39d8ff;
    font-weight: inherit;
    text-shadow: 0 0 20px rgba(57, 216, 255, 0.45);
}

.gl-home-hero-content .gl-hero-text {
    font-size: 17px;
    line-height: 1.45;
    margin-bottom: 28px;
    color: rgba(255,255,255,0.78);
}

.gl-home-hero-content .gl-hero-actions {
    display: flex;
    gap: 14px;
}

.gl-home-hero-content .gl-main-btn,
.gl-home-hero-content .gl-second-btn {
    height: 54px;
    padding: 0 24px;
}
.gl-hero-title {
    display: none !important;
}

.gl-hero-title-img {
    width: 310px;
    max-width: 100%;
    margin: 10px 0 24px;
    filter: drop-shadow(0 0 18px rgba(255, 53, 220, 0.35));
}

.gl-home-hero-content .gl-hero-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px;
    align-items: center;
}

.gl-home-hero-content .gl-main-btn,
.gl-home-hero-content .gl-second-btn {
    height: 46px !important;
    padding: 0 22px !important;
    border-radius: 13px !important;
    font-size: 14px !important;
    white-space: nowrap;
}
.gl-sidebar {
    background: #000 !important;
    background-image: none !important;
    box-shadow: none !important;
}

.gl-sidebar::before,
.gl-sidebar::after {
    display: none !important;
}
.gl-home-hero-v2 {
    max-width: 1040px !important;
    height: 390px !important;
}

.gl-home-hero-content {
    padding-left: 42px !important;
}

.gl-home-hero-bg {
    object-position: center right !important;
}
.gl-topbar {
    background: #000 !important;
    background-image: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    box-shadow: none !important;
}
/* === GL RIGHT BLOCKS === */

.gl-home-hero-v2 {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 22px;
    padding: 20px;
}

.gl-home-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 2;
}

.gl-mini-card {
    position: relative;
    height: 110px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(170, 80, 255, 0.22);
    background: rgba(10, 5, 20, 0.92);
}

.gl-mini-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.92;
}

.gl-mini-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(0,0,0,0.78),
        rgba(0,0,0,0.42));
}

.gl-mini-info {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gl-mini-title {
    font-size: 15px;
    color: #fff;
    margin-bottom: 8px;
}

.gl-mini-text {
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255,255,255,0.72);
}
/* === GL HOME TOP LAYOUT === */

.gl-home-top {
    width: 100%;
    max-width: 1340px;
    margin: 18px auto 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 18px;
    align-items: stretch;
}

.gl-home-top .gl-home-hero-v2 {
    max-width: none !important;
    width: 100%;
    height: 410px !important;
    margin: 0 !important;
    display: block !important;
    padding: 0 !important;
}

.gl-home-widgets {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 14px;
    height: 410px;
}

.gl-widget-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.gl-widget-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #07040f;
    border: 1px solid rgba(173, 72, 255, 0.24);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.gl-widget-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* === GL HOME TOP FIX === */

.gl-home-top {
    max-width: 1480px !important;
    margin: 0 auto 28px !important;
    padding: 0 22px !important;
    grid-template-columns: minmax(780px, 1fr) 420px !important;
    gap: 22px !important;
    align-items: stretch !important;
}

.gl-home-top .gl-home-hero-v2 {
    height: 455px !important;
    border-radius: 24px !important;
}

.gl-home-widgets {
    height: 455px !important;
    display: grid !important;
    grid-template-rows: repeat(3, 1fr) !important;
    gap: 18px !important;
}

.gl-widget-row {
    display: contents !important;
}

.gl-widget-card {
    height: auto !important;
    min-height: 0 !important;
    border-radius: 18px !important;
}

.gl-widget-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.gl-home-hero-bg {
    object-fit: cover !important;
    object-position: center center !important;
    opacity: 1 !important;
}

.gl-home-hero-v2::after {
    background:
        linear-gradient(90deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.28) 38%, rgba(0,0,0,0.08) 75%),
        linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.28)) !important;
}

.gl-home-hero-content {
    width: 360px !important;
    padding-left: 42px !important;
}
.screen {
    padding-top: 105px !important;
}
.gl-widget-card {
    background: transparent !important;
    border: 1px solid rgba(185, 80, 255, 0.14) !important;
    box-shadow:
        0 0 22px rgba(185, 80, 255, 0.12),
        inset 0 0 18px rgba(255,255,255,0.02) !important;
}

.gl-widget-card img {
    border-radius: 18px;
    opacity: 0.97;
}
.gl-home-widgets {
    gap: 20px !important;
}

.gl-home-hero-content {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
}

.gl-hero-bottom-text {
    position: absolute;
    left: 42px;
    bottom: 100px;
    z-index: 3;
}

.gl-home-hero-content .gl-hero-actions {
    position: absolute;
    right: 38px;
    bottom: 34px;
    z-index: 3;
    display: flex !important;
    flex-direction: row !important;
    gap: 12px;
}

.gl-home-hero-content .gl-hero-text {
    margin: 8px 0 0 !important;
    font-size: 20px !important;
}
.gl-hero-bottom-text {
    bottom: 78px !important;
}
.gl-energy-widget,
.gl-quest-widget {
    position: relative;
}

.gl-energy-ui,
.gl-quest-ui {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: none;
}

.gl-widget-label {
    color: #fff;
    font-size: 17px;
    margin-bottom: 8px;
}

.gl-energy-count {
    color: #ff47ff;
    font-size: 34px;
    line-height: 1;
}

.gl-energy-count small {
    color: rgba(255,255,255,0.75);
    font-size: 20px;
    margin-left: 4px;
}

.gl-energy-bar,
.gl-quest-bar {
    width: 58%;
    height: 9px;
    margin-top: 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    overflow: hidden;
}

.gl-energy-bar div {
    height: 100%;
    background: linear-gradient(90deg, #ff37df, #8a4dff);
}

.gl-energy-timer {
    margin-top: 9px;
    font-size: 12px;
    color: rgba(255,255,255,0.68);
}

.gl-quest-title {
    color: #39d8ff;
    font-size: 16px;
    margin-bottom: 8px;
}

.gl-quest-row {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

.gl-quest-bar div {
    height: 100%;
    background: linear-gradient(90deg, #26b8ff, #9b4dff);
}
.gl-energy-ui,
.gl-quest-ui {
    display: none !important;
}

.gl-energy-simple,
.gl-quest-simple {
    position: absolute;
    right: 22px;
    bottom: 18px;
    z-index: 3;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,0.58);
    border: 1px solid rgba(255,255,255,0.16);
    color: #fff;
    font-size: 18px;
    text-shadow: 0 0 10px rgba(255,255,255,0.25);
}

.gl-energy-simple span {
    color: #ff47ff;
}

.gl-quest-simple span {
    color: #39d8ff;
}
.gl-quest-widget {
    position: relative;
}

.gl-quest-content {
    position: absolute;
    left: 135px;
    right: 28px;
    top: 22px;
    bottom: 18px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gl-quest-label {
    font-size: 15px;
    color: #38d8ff;
    margin-bottom: 8px;
    text-shadow: 0 0 12px rgba(56, 216, 255, 0.55);
}

.gl-quest-name {
    font-size: 17px;
    color: #fff;
    margin-bottom: 14px;
}

.gl-quest-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gl-quest-bar {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.13);
    overflow: hidden;
}

.gl-quest-bar div {
    height: 100%;
    background: linear-gradient(90deg, #18c8ff, #bd39ff);
}

#gl-active-quest-progress {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
}
.featured-themes{
    margin-top:40px;
    padding:0 30px;
}

.featured-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.featured-header h2{
    color:#fff;
    font-size:32px;
}

.featured-controls{
    display:flex;
    gap:10px;
}

.featured-controls button{
    width:44px;
    height:44px;
    border-radius:12px;
    border:none;
    cursor:pointer;

    background:#111;
    color:#fff;
    font-size:20px;

    border:1px solid rgba(255,255,255,.1);
}

.themes-track{
    display:flex;
    gap:20px;

    overflow-x:auto;
    scroll-behavior:smooth;

    scrollbar-width:none;
}

.themes-track::-webkit-scrollbar{
    display:none;
}

.theme-card{
    flex:0 0 280px;
    transition:.25s;
}

.theme-card:hover{
    transform:translateY(-5px);
}

.theme-card img{
    width:100%;
    display:block;
    border-radius:18px;
}
/* === FIX FEATURED THEMES POSITION === */

.featured-themes {
    max-width: 1340px !important;
    margin: 58px auto 0 !important;
    padding: 0 22px !important;
}

.featured-header {
    margin-bottom: 24px !important;
}

.featured-header h2 {
    font-size: 34px !important;
    text-shadow: 0 0 18px rgba(255, 211, 106, 0.25);
}

.themes-track {
    padding: 4px 0 18px !important;
    scroll-padding-left: 0;
}

.theme-card {
    flex: 0 0 320px !important;
}

.theme-card img {
    height: 210px !important;
    object-fit: cover !important;
    border-radius: 18px !important;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 14px 32px rgba(0,0,0,0.38);
}
.gl-home-section-intro {
    max-width: 1340px;
    margin: 42px auto 0;
    padding: 0 22px;
}

.gl-home-section-tag {
    color: #ff47df;
    font-size: 13px;
    margin-bottom: 8px;
}

.gl-home-section-intro h2 {
    color: #fff;
    font-size: 34px;
    margin-bottom: 8px;
}

.gl-home-section-intro p {
    color: rgba(255,255,255,0.62);
    font-size: 15px;
}
/* === FIX HOME SECTIONS ALIGNMENT === */

.gl-home-section-intro,
.featured-themes {
    width: calc(100% - 44px) !important;
    max-width: 1340px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.gl-home-section-intro {
    margin-top: 48px !important;
}

.featured-themes {
    margin-top: 22px !important;
    overflow: visible !important;
}

.featured-header {
    display: none !important;
}

.themes-track {
    width: 100% !important;
    padding: 6px 0 20px !important;
    gap: 22px !important;
    overflow-x: auto !important;
    scroll-padding-left: 0 !important;
}

.theme-card {
    flex: 0 0 310px !important;
}

.theme-card img {
    width: 310px !important;
    height: 190px !important;
    object-fit: cover !important;
    border-radius: 18px !important;
}

/* стрелки возвращаем вправо */
.featured-controls {
    position: absolute !important;
    right: 22px !important;
    top: -72px !important;
    z-index: 5 !important;
}
/* === FINAL HOME CAROUSEL FIX === */

#lobby-screen {
    align-items: stretch !important;
}

#home-intro,
.gl-home-section-intro,
.featured-themes {
    width: 100% !important;
    max-width: 1340px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.gl-home-section-intro {
    margin-top: 54px !important;
    padding: 0 !important;
}

.gl-home-section-intro h2,
.gl-home-section-intro p,
.gl-home-section-tag {
    transform: none !important;
    margin-left: 0 !important;
}

.featured-themes {
    margin-top: 24px !important;
    padding: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.themes-track {
    width: 100% !important;
    display: flex !important;
    gap: 22px !important;
    overflow-x: auto !important;
    padding: 8px 0 24px !important;
    scroll-behavior: smooth;
}

.theme-card {
    flex: 0 0 310px !important;
}

.theme-card img {
    width: 310px !important;
    height: 190px !important;
    object-fit: cover !important;
    border-radius: 18px !important;
}

.featured-controls {
    position: absolute !important;
    right: 0 !important;
    top: 8px !important;
    display: flex !important;
    gap: 12px !important;
    z-index: 20 !important;
}
.gl-home-section-intro {
    position: relative !important;
}
/* === HARD FIX FOR THEMES UNDER SIDEBAR === */

.gl-home-section-intro,
.featured-themes {
    margin-left: 52px !important;
    margin-right: 52px !important;
    max-width: none !important;
    width: auto !important;
}

.gl-home-section-intro {
    padding-left: 0 !important;
}

.featured-themes {
    padding-left: 0 !important;
    overflow: hidden !important;
}

.themes-track {
    padding-left: 0 !important;
}

.theme-card:first-child {
    margin-left: 0 !important;
}
.gl-live-panels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 34px 52px 60px;
}

.gl-live-card {
    min-height: 132px;
    padding: 22px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 65, 220, 0.14), transparent 38%),
        linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)),
        #07040f;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 18px;
}

.gl-live-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.gl-live-card span {
    color: #ff47df;
    font-size: 12px;
}

.gl-live-card h3 {
    color: #fff;
    font-size: 18px;
    margin: 6px 0;
}

.gl-live-card p {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    line-height: 1.4;
}
.secret-card{
    display:flex;
    align-items:center;
    gap:20px;
}

.secret-preview{
    width:90px;
    flex-shrink:0;
}

.secret-preview img{
    width:100%;
    display:block;
}

.secret-btn{
    margin-top:12px;
    padding:10px 18px;
    border:none;
    border-radius:12px;
    cursor:pointer;

    background:linear-gradient(
        180deg,
        #ff55ea,
        #9e2fff
    );

    color:white;
    font-weight:700;
}
/* === HARD LEFT OFFSET FOR HOME BLOCKS === */

.gl-home-section-intro,
.featured-themes,
.gl-live-panels {
    margin-left: 92px !important;
    margin-right: 52px !important;
    width: auto !important;
    max-width: none !important;
}
.secret-card {
    flex: 1.25 !important;
}

.gl-live-panels {
    grid-template-columns: 0.9fr 1fr 1.35fr !important;
}

.secret-preview {
    width: 120px !important;
}

.secret-content h3 {
    font-size: 22px !important;
}

.secret-content p {
    font-size: 14px !important;
}
.theme-card {
    cursor: pointer !important;
}
/* === ABSOLUTE FINAL HOME LOWER FIX === */

.gl-home-section-intro,
.featured-themes,
.gl-live-panels {
    position: relative !important;
    left: 180px !important;
    width: calc(100% - 220px) !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.featured-themes {
    overflow: hidden !important;
}

.themes-track {
    padding-left: 0 !important;
}

.theme-card:first-child {
    margin-left: 0 !important;
}
#collection-room{
    min-height:100vh;

    background-image:url("image/ui/collect/background.png");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    position:relative;
}
#collection-room::before{
    content:"";

    position:absolute;
    inset:0;

    background:rgba(0,0,0,0.35);

    z-index:1;
}
.collection-content{
    position:relative;
    z-index:2;
}
.collect-page {
  margin: 0;
  min-height: 100vh;
  background: #050008;
  overflow: hidden;
}

.collect-room {
  min-height: 100vh;
  position: relative;
  background-image: url("image/ui/collect/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.collect-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(190, 50, 255, 0.18), transparent 42%),
    rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.collect-top {
  position: relative;
  z-index: 2;
  padding: 28px 42px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.collect-back {
  border: 1px solid rgba(180, 80, 255, 0.6);
  background: rgba(20, 0, 35, 0.75);
  color: white;
  padding: 12px 22px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
}

.collect-title h1 {
  margin: 0;
  color: white;
  font-size: 34px;
  text-shadow: 0 0 18px rgba(180, 60, 255, 0.9);
}

.collect-title p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.75);
}

.collect-center {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.collect-portal {
  width: 360px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 57, 255, 0.65), rgba(92, 0, 155, 0.15) 45%, transparent 70%);
  filter: blur(1px);
  box-shadow:
    0 0 35px rgba(190, 60, 255, 0.8),
    0 0 90px rgba(190, 60, 255, 0.45);
  animation: portalPulse 2s infinite ease-in-out;
}

@keyframes portalPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}


.collect-portal {
  width: 420px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(205, 70, 255, 0.9);
  background: radial-gradient(circle, rgba(200, 60, 255, 0.22), transparent 65%);
  box-shadow:
    0 0 25px rgba(200, 60, 255, 0.9),
    0 0 70px rgba(160, 30, 255, 0.55),
    inset 0 0 25px rgba(220, 90, 255, 0.7);
  animation: portalPulse 2s infinite ease-in-out;
}

@keyframes portalPulse {
  0%, 100% {
    transform: scale(1);
    opacity: .8;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}
.collect-portal {
  width: 430px;
  height: 105px;
  position: absolute;
  left: 50%;
  top: 85%;
  transform: translate(-50%, -50%) perspective(500px) rotateX(68deg);

  border-radius: 50%;
  border: 3px solid rgba(210, 70, 255, 0.9);

  background:
    radial-gradient(circle, rgba(210, 70, 255, 0.25), transparent 62%);

  box-shadow:
    0 0 18px rgba(210, 70, 255, 0.95),
    0 0 55px rgba(180, 40, 255, 0.65),
    inset 0 0 28px rgba(220, 100, 255, 0.75);

  animation: collectPortalPulse 2s infinite ease-in-out;
  pointer-events: none;
}

@keyframes collectPortalPulse {
  0%, 100% {
    opacity: 0.75;
    filter: brightness(1);
  }
  50% {
    opacity: 1;
    filter: brightness(1.35);
  }
}

.collect-dice {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translateX(-50%);
  z-index: 6;

  width: 96px;
  height: 96px;
  border-radius: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(145deg, #1b092b, #5b1b88);
  border: 2px solid rgba(220, 120, 255, 0.9);

  box-shadow:
    0 0 25px rgba(190, 60, 255, 0.9),
    0 0 70px rgba(190, 60, 255, 0.35),
    inset 0 0 18px rgba(255, 255, 255, 0.15);

  animation: diceFloat 2.4s ease-in-out infinite;
}

.dice-face {
  font-size: 50px;
  filter: drop-shadow(0 0 12px rgba(255,255,255,.5));
}

@keyframes diceFloat {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-12px);
  }
}

.collect-dice.rolling {
  animation: diceRoll 0.9s ease-in-out;
}

@keyframes diceRoll {
  0% {
    transform: translateX(-50%) rotate(0deg) scale(1);
  }
  30% {
    transform: translateX(-50%) rotate(180deg) scale(1.15);
  }
  60% {
    transform: translateX(-50%) rotate(360deg) scale(0.95);
  }
  100% {
    transform: translateX(-50%) rotate(720deg) scale(1);
  }
}

.collect-result {
  position: absolute;
  left: 50%;
  top: 73%;
  transform: translateX(-50%);
  z-index: 6;

  font-size: 28px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 18px rgba(200, 60, 255, 1);
  opacity: 0;
  transition: 0.3s ease;
}

.collect-result.show {
  opacity: 1;
  animation: resultPop 0.5s ease;
}

@keyframes resultPop {
  0% {
    transform: translateX(-50%) scale(0.6);
  }
  70% {
    transform: translateX(-50%) scale(1.15);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}
.collect-result {
  position: absolute;
  left: 50%;
  top: 61%;
  transform: translateX(-50%);
  z-index: 7;

  font-size: 28px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 18px rgba(200, 60, 255, 1);
  opacity: 0;
  pointer-events: none;
}

.collect-result.show {
  opacity: 1;
  animation: resultPop 0.5s ease;
}



.collect-dice,
.dice-face {
  display: none;
}

.collect-dice-img {
  position: absolute;
  left: 50%;
  top: 39%;
  transform: translateX(-50%);
  z-index: 8;

  width: 105px;
  height: auto;

  filter: drop-shadow(0 0 22px rgba(190, 60, 255, 0.9));
  animation: diceFloatImg 2.4s ease-in-out infinite;
}

@keyframes diceFloatImg {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

.collect-dice-img.rolling {
  animation: diceShakeImg 0.75s ease-in-out;
}

@keyframes diceShakeImg {
  0% { transform: translateX(-50%) translateY(0) rotate(0deg) scale(1); }
  20% { transform: translateX(-50%) translateY(-12px) rotate(-14deg) scale(1.08); }
  40% { transform: translateX(-50%) translateY(6px) rotate(18deg) scale(0.96); }
  60% { transform: translateX(-50%) translateY(-8px) rotate(-10deg) scale(1.06); }
  80% { transform: translateX(-50%) translateY(4px) rotate(8deg) scale(1); }
  100% { transform: translateX(-50%) translateY(0) rotate(0deg) scale(1); }
}


.collect-dice-img{
    width:140px;
    left:50%;
    top:46%;
    transform:translate(-50%,-50%);
    z-index:10;
}

.collect-portal{
    width:340px;
    height:70px;
    left:50%;
    top:60%;
    transform:translate(-50%,-50%);
}


.collect-dice-img {
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  z-index: 10;

  width: 140px;
  height: auto;

  filter: drop-shadow(0 0 25px rgba(190, 60, 255, 0.95));
  animation: diceFloatImg 2.4s ease-in-out infinite;
}

.collect-portal {
  width: 420px;
  height: 90px;
  position: absolute;
  left: 50%;
  top: 62%;
  transform: translate(-50%, -50%) perspective(500px) rotateX(68deg);

  border-radius: 50%;
  border: 3px solid rgba(210, 70, 255, 0.9);
  background: radial-gradient(circle, rgba(210, 70, 255, 0.18), transparent 65%);

  box-shadow:
    0 0 20px rgba(210, 70, 255, 0.95),
    0 0 65px rgba(180, 40, 255, 0.6),
    inset 0 0 28px rgba(220, 100, 255, 0.75);

  animation: collectPortalPulse 2s infinite ease-in-out;
  pointer-events: none;
}



.collect-result {
  position: absolute;
  left: 50%;
  top: 69%;
  transform: translateX(-50%);
  z-index: 11;

  font-size: 26px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 18px rgba(200, 60, 255, 1);
  opacity: 0;
  pointer-events: none;
  text-align: center;
}
.collect-controls{
    position:absolute;
    left:50%;
    top:82%;
    transform:translateX(-50%);
    z-index:20;
}

.collect-roll-button{
    background:none;
    border:none;
    padding:0;
    cursor:pointer;
}

.collect-roll-button img{
    width:340px;
    display:block;
    transition:0.2s;
}

.collect-roll-button:hover img{
    transform:scale(1.04);
}
.collect-dice-img{
    top:60%;
}
.collect-portal{
    top:69%;
}
.collect-result{
    top:76%;
}
.collect-dice-img{
    filter:
        drop-shadow(0 0 15px #ff66ff)
        drop-shadow(0 0 30px #ff66ff);
}
.collect-portal::before{
    content:"";
    position:absolute;
    inset:-15px;
    border-radius:50%;
    border:2px solid rgba(255,100,255,.3);
    filter:blur(8px);
}
.collect-portal{
    width:460px;
    height:90px;
}
.collect-dice-img{
    width:120px;
}

.collect-pack.show{
    animation: packAppear 0.9s ease forwards;
}

@keyframes packAppear{
    0%{
        opacity:0;
        transform:translate(-50%, 60px) scale(0.25) rotate(-8deg);
        filter:drop-shadow(0 0 5px rgba(255,255,255,.2));
    }

    55%{
        opacity:1;
        transform:translate(-50%, -30px) scale(1.12) rotate(5deg);
        filter:drop-shadow(0 0 35px rgba(200,70,255,.95));
    }

    100%{
        opacity:1;
        transform:translate(-50%, 0) scale(1) rotate(0deg);
        filter:drop-shadow(0 0 25px rgba(200,70,255,.8));
    }
}
.collect-pack{
    position:absolute;
    left:50%;
    top:50%;

    width:180px;

    transform:
        translate(-50%, -50%)
        scale(.2);

    opacity:0;

    pointer-events:none;

    z-index:15;

    transition:
        .5s ease;
}
.collect-pack.show{
    opacity:1;

    transform:
        translate(-50%, -50%)
        scale(1);
}
.reward-cards {
  position: absolute;
  left: 50%;
  top: 28%;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  gap: 18px;
  pointer-events: none;
}

.reward-card {
  width: 120px;
  opacity: 0;
  transform: translateY(160px) scale(0.5) rotate(-8deg);
  filter: drop-shadow(0 0 22px rgba(190, 60, 255, 0.9));
  animation: cardFlyUp 0.7s ease forwards;
}

.reward-card:nth-child(2) {
  animation-delay: 0.15s;
}

.reward-card:nth-child(3) {
  animation-delay: 0.3s;
}

.reward-card:nth-child(4) {
  animation-delay: 0.45s;
}

@keyframes cardFlyUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

.collect-pack {
  cursor: pointer;
}

.collect-pack.opening {
  animation: packShake 0.45s ease;
}

@keyframes packShake {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  25% { transform: translate(-52%, -50%) scale(1.08) rotate(-4deg); }
  50% { transform: translate(-48%, -50%) scale(1.12) rotate(4deg); }
  75% { transform: translate(-51%, -50%) scale(1.08) rotate(-2deg); }
}

.collect-take-btn {
  position: absolute;
  left: 50%;
  top: 88%;
  transform: translateX(-50%);
  z-index: 40;
  display: none;

  padding: 14px 42px;
  border: 1px solid rgba(200, 80, 255, 0.8);
  border-radius: 16px;
  background: linear-gradient(135deg, #35104f, #9d2bff);
  color: white;
  font-family: inherit;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(180, 60, 255, 0.6);
}

.collect-take-btn.show {
  display: block;
}
.collect-controls{
    position:absolute;
    left:50%;
    top:78%;
    transform:translateX(-50%);
    z-index:50;
}
.collect-roll-button{
    background:none;
    border:none;
    padding:0;
    cursor:pointer;
}

.collect-roll-button img{
    width:340px;
    display:block;
}

.collect-roll-button:hover img{
    filter:brightness(1.12);
}
.collect-controls{
    position:absolute;
    left:50%;
    top:78%;
    transform:translateX(-50%);
    z-index:999;
}

.collect-roll-button{
    display:block;
    background:transparent;
    border:none;
    padding:0;
    cursor:pointer;
}

.collect-roll-button img{
    display:block;
    width:340px;
    height:auto;
}
.collect-pack {
    display: none;
    cursor: pointer;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.pack-appear {
    animation: packAppear 0.45s ease forwards;
}

@keyframes packAppear {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pack-opening {
    animation: packOpenShake 0.5s ease;
}

@keyframes packOpenShake {
    0% { transform: scale(1) rotate(0); }
    25% { transform: scale(1.08) rotate(-4deg); }
    50% { transform: scale(1.1) rotate(4deg); }
    75% { transform: scale(1.05) rotate(-2deg); }
    100% { transform: scale(1) rotate(0); }
}

.reward-card {
    position: absolute;
    width: 110px;
    border-radius: 14px;
    opacity: 0;
    animation: cardFlyUp 0.7s ease forwards;
}

@keyframes cardFlyUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translateY(-180px) scale(1);
    }
}

.collect-take-btn {
    opacity: 0;
    pointer-events: none;
}

.collect-take-btn.show {
    opacity: 1;
    pointer-events: auto;
}
.collect-pack {
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 190px !important;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
    z-index: 80 !important;
    pointer-events: none;
}

.collect-pack.show {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
    pointer-events: auto !important;
}
.collect-pack {
  position: absolute !important;
  left: 50% !important;
  top: 43% !important;
  width: 260px !important;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  z-index: 80 !important;
  cursor: pointer;
  transition: 0.35s ease;
}

.collect-pack.show {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

.collect-pack.opening {
  animation: packShake 0.45s ease;
}

@keyframes packShake {
  0% { transform: translate(-50%, -50%) scale(1) rotate(0); }
  25% { transform: translate(-50%, -50%) scale(1.1) rotate(-4deg); }
  50% { transform: translate(-50%, -50%) scale(1.12) rotate(4deg); }
  100% { transform: translate(-50%, -50%) scale(1) rotate(0); }
}

.reward-cards {
  position: absolute;
  left: 50%;
  top: 34%;
  width: 650px;
  height: 260px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 120;
}

.collect-reward-card {
  position: absolute;
  width: 150px;
  height: 220px;
  opacity: 0;
  perspective: 1000px;
  pointer-events: auto;
  animation: cardFly 0.65s ease forwards;
}

.collect-reward-card.pos-0 {
  left: 40px;
  animation-delay: 0.1s;
}

.collect-reward-card.pos-1 {
  left: 250px;
  animation-delay: 0.25s;
}

.collect-reward-card.pos-2 {
  left: 460px;
  animation-delay: 0.4s;
}

@keyframes cardFly {
  from {
    opacity: 0;
    transform: translateY(170px) scale(0.4);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.55s ease;
  transform-style: preserve-3d;
}

.collect-reward-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  backface-visibility: hidden;
  box-shadow: 0 0 25px rgba(170, 60, 255, 0.75);
}

.card-front-face {
  transform: rotateY(180deg);
}
.collect-pack.show {
  top: 58% !important;
}
.reward-cards {
  top: 25%;
}
.collect-take-btn {
  background: none;
  border: none;
}

.collect-take-btn img {
  width: 220px;
}
.collect-new-take-btn {
  position: absolute;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%) scale(0.8);
  z-index: 300;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
}

.collect-new-take-btn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}

.collect-new-take-btn img {
  width: 230px;
  display: block;
}

.collect-chances-btn {
  position: absolute;
  right: 34px;
  top: 34px;
  z-index: 300;
  padding: 13px 24px;
  border-radius: 16px;
  border: 1px solid rgba(190, 90, 255, 0.9);
  background: rgba(25, 0, 45, 0.85);
  color: white;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(170, 60, 255, 0.65);
}

.collect-energy-box {
  position: absolute;
  right: 34px;
  top: 92px;
  z-index: 300;
  min-width: 110px;
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(15, 0, 35, 0.85);
  border: 1px solid rgba(255, 220, 100, 0.75);
  color: #fff;
  font-size: 22px;
  text-align: center;
  box-shadow: 0 0 22px rgba(255, 210, 90, 0.35);
}

.collect-side-menu {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.collect-side-menu a {
  display: block;
  background: none;
  border: none;
  text-decoration: none;
}

.collect-side-menu img {
  width: 170px;
  display: block;
  transition: 0.2s ease;
}

.collect-side-menu img:hover {
  transform: scale(1.05);
}
.collect-side-menu a {
  width: 170px;
  padding: 14px 18px;
  border-radius: 16px;
  text-align: center;
  text-decoration: none;
  color: white;
  background: rgba(25, 0, 45, 0.85);
  border: 1px solid rgba(190, 90, 255, 0.9);
  box-shadow: 0 0 18px rgba(150, 50, 255, 0.45);
}
.collect-pack {
    width: 300px;
}
.collect-top-buttons {
    position: absolute;
    top: 30px;
    right: 30px;

    display: flex;
    flex-direction: column;
    gap: 12px;

    z-index: 500;
}

.collect-chances-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.collect-chances-btn img {
    width: 140px;
    display: block;
}

.collect-energy-box {
    position: relative;
}

.collect-energy-box img {
    width: 140px;
    display: block;
}

.collect-energy-value {
    position: absolute;

    top: 50%;
    right: 18px;

    transform: translateY(-50%);

    color: white;
    font-size: 30px;
    font-weight: 700;

    text-shadow:
        0 0 8px rgba(255,255,255,.8),
        0 0 16px rgba(180,100,255,.7);
}
.collect-dice-img {
    width: 155px !important;
    height: 155px !important;
    z-index: 120 !important;
}

.collect-dice-img.rolling {
    animation: diceMegaRoll 1.4s ease-in-out;
}

.collect-dice-img.result {
    animation: diceResultPop 0.8s ease forwards;
}

@keyframes diceMegaRoll {
    0% {
        transform: scale(1) rotate(0deg) translateY(0);
        filter: drop-shadow(0 0 15px rgba(180, 80, 255, 0.7));
    }

    25% {
        transform: scale(1.25) rotate(180deg) translateY(-35px);
        filter: drop-shadow(0 0 35px rgba(180, 80, 255, 1));
    }

    50% {
        transform: scale(1.45) rotate(420deg) translateY(-10px);
        filter: drop-shadow(0 0 55px rgba(210, 120, 255, 1));
    }

    75% {
        transform: scale(1.25) rotate(680deg) translateY(-28px);
        filter: drop-shadow(0 0 40px rgba(180, 80, 255, 0.95));
    }

    100% {
        transform: scale(1.7) rotate(720deg) translateY(0);
        filter: drop-shadow(0 0 70px rgba(220, 130, 255, 1));
    }
}

@keyframes diceResultPop {
    0% {
        transform: scale(1.7);
    }

    45% {
        transform: scale(2.05);
        filter: drop-shadow(0 0 80px rgba(220, 130, 255, 1));
    }

    100% {
        transform: scale(1.75);
        filter: drop-shadow(0 0 55px rgba(180, 80, 255, 0.9));
    }
}
.collect-side-menu {
    left: 26px !important;
    gap: 18px !important;
}

.collect-side-menu a {
    width: 250px !important;
    height: 110px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

.collect-side-menu img {
    width: 235px !important;
    height: auto !important;
    display: block !important;
}
.collect-top-buttons {
    top: 36px !important;
    right: 36px !important;
    gap: 14px !important;
}

.collect-chances-btn img {
    width: 185px !important;
}

.collect-energy-box img {
    width: 230px !important;
}

.collect-energy-value {
    right: 30px !important;
    font-size: 42px !important;
}
.collect-dice-img {
    width: 140px !important;
    height: 140px !important;
    object-fit: contain !important;
    transform-origin: center center !important;
    z-index: 150 !important;
}

.collect-dice-img.rolling {
    animation: diceSmoothRoll 1.35s cubic-bezier(.18,.85,.28,1) forwards !important;
}

.collect-dice-img.result {
    animation: diceResultShow 1.15s ease forwards !important;
}

@keyframes diceSmoothRoll {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        filter: drop-shadow(0 0 16px rgba(180, 80, 255, 0.7));
    }

    30% {
        transform: translateY(-34px) scale(1.25) rotate(160deg);
        filter: drop-shadow(0 0 35px rgba(190, 90, 255, 1));
    }

    60% {
        transform: translateY(-12px) scale(1.4) rotate(315deg);
        filter: drop-shadow(0 0 48px rgba(220, 130, 255, 1));
    }

    100% {
        transform: translateY(0) scale(1.55) rotate(360deg);
        filter: drop-shadow(0 0 56px rgba(220, 130, 255, 1));
    }
}

@keyframes diceResultShow {
    0% {
        transform: scale(1.55);
    }

    35% {
        transform: scale(1.75);
    }

    100% {
        transform: scale(1.55);
    }
}
/* === FIX collect UI: только картинки без лишних рамок === */

.collect-side-menu {
    left: 28px !important;
    top: 50% !important;
    gap: 14px !important;
}

.collect-side-menu a {
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    display: block !important;
}

.collect-side-menu img {
    width: 165px !important;
    height: auto !important;
    display: block !important;
}

.collect-top-buttons {
    top: 34px !important;
    right: 34px !important;
    gap: 10px !important;
    align-items: flex-end !important;
}

.collect-chances-btn {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.collect-chances-btn img {
    width: 135px !important;
    display: block !important;
}

.collect-energy-box {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: auto !important;
}

.collect-energy-box img {
    width: 210px !important;
    display: block !important;
}

.collect-energy-value {
    right: 28px !important;
    top: 50% !important;
    font-size: 34px !important;
}
/* === FIX dice: всегда в центре портала === */

.collect-dice-img {
    position: absolute !important;
    left: 50% !important;
    top: 51% !important;
    width: 135px !important;
    height: 135px !important;
    object-fit: contain !important;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    transform-origin: center center !important;
    z-index: 160 !important;
}

.collect-dice-img.rolling {
    animation: dicePortalRoll 1.35s ease-in-out forwards !important;
}

.collect-dice-img.result {
    animation: dicePortalResult 1.25s ease forwards !important;
}

@keyframes dicePortalRoll {
    0% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }

    25% {
        transform: translate(-50%, -58%) scale(1.18) rotate(90deg);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.35) rotate(180deg);
    }

    75% {
        transform: translate(-50%, -56%) scale(1.22) rotate(270deg);
    }

    100% {
        transform: translate(-50%, -50%) scale(1.55) rotate(360deg);
    }
}

@keyframes dicePortalResult {
    0% {
        transform: translate(-50%, -50%) scale(1.55) rotate(0deg);
    }

    45% {
        transform: translate(-50%, -50%) scale(1.75) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) scale(1.55) rotate(0deg);
    }
}
.collect-result-modal,
.collect-chances-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
}

.collect-result-modal.show,
.collect-chances-modal.show {
    display: flex;
}

.collect-result-window {
    position: relative;
    width: 720px;
}

.collect-result-bg {
    width: 100%;
    display: block;
}

.collect-result-cards {
    position: absolute;
    top: 175px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 28px;
}

.collect-result-cards img {
    width: 120px;
    border-radius: 14px;
}

.collect-result-total {
    position: absolute;
    top: 450px;
    left: 480px;
    font-size: 34px;
    color: #ffd84d;
    text-shadow: 0 0 12px #ffb800;
}

.collect-result-list {
    position: absolute;
    top: 490px;
    left: 170px;
    width: 360px;
    color: white;
    font-size: 18px;
    line-height: 32px;
}

.collect-result-list div {
    display: flex;
    justify-content: space-between;
}

.collect-result-actions {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.collect-result-actions button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.collect-result-actions img {
    width: 210px;
}

.collect-chances-modal img {
    width: 520px;
}
.collect-energy-box img {
    width: 300px !important;
}

.collect-energy-value {
    right: 28px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    font-size: 36px !important;
    font-weight: 900 !important;
    letter-spacing: 1px;

    color: #ffffff !important;

    text-shadow:
        0 0 4px #ff4dff,
        0 0 10px #ff4dff,
        0 0 18px #9b4dff !important;
}
.collect-top-buttons,
.collect-chances-btn,
.collect-chances-btn img {
    pointer-events: auto !important;
}

.collect-chances-modal {
    pointer-events: auto !important;
}
.collect-result-cards {
    position: absolute !important;
    top: 205px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;

    width: 620px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 22px !important;
}

.collect-result-cards img {
    width: 120px !important;
    height: auto !important;
    border-radius: 14px;
}

.collect-result-total {
    position: absolute !important;
    top: 428px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;

    font-size: 34px !important;
    color: #ffd84d !important;
    text-shadow: 0 0 12px #ffb800;
}

.collect-result-list {
    position: absolute !important;
    top: 520px !important;
    right: 165px !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;

    font-size: 20px !important;
    color: white !important;
    text-align: right !important;
}

.collect-result-list span {
    display: block !important;
}
.collect-result-window {
    width: 560px !important;
    max-height: 90vh !important;
    transform: scale(0.92);
}

.collect-result-cards {
    top: 135px !important;
    width: 430px !important;
    gap: 18px !important;
    margin-top: 40px !important;
}

.collect-result-cards img {
    width: 92px !important;
}

.collect-result-total {
    top: 300px !important;
    font-size: 30px !important;
}

.collect-result-list {
    top: 490px !important;
    right: 135px !important;
    gap: 18px !important;
    font-size: 18px !important;
}

.collect-result-actions {
    bottom: 25px !important;
    gap: 16px !important;
}

.collect-result-actions img {
    width: 170px !important;
}
.total-progress {
    font-size: 42px;
    font-weight: 700;
    color: #ffd84d;
    text-shadow: 0 0 10px rgba(255,216,77,.8);
}
.reward-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.collect-result-modal {
    background: rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: none !important;
}
.collect-result-list {
    top: 420px !important;
    right: 18px !important;

    height: 150px !important;

    display: grid !important;
    grid-template-rows: repeat(4, 1fr) !important;
    align-items: center !important;

    font-size: 18px !important;
    line-height: 1 !important;
    text-align: right !important;

    z-index: 20 !important;
}

.collect-result-list span {
    display: block !important;
    width: 70px !important;
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(255,255,255,.8);
}
.collect-result-list {
    top: 440px !important;
    right: 30px !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}
.collect-result-actions {
    bottom: 25px !important;
}
.energy-warning{
    position: fixed;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;

    transition: .3s;

    z-index: 9999;
}

.energy-warning.show{
    opacity: 1;
    visibility: visible;
}

.energy-warning img{
    width: 450px;
    max-width: 90%;
}
/* === PROFILE PAGE === */

.profile-page {
    width: 100%;
    min-height: 100vh;
    padding: 35px;
    color: white;
}

.profile-header {
    width: 100%;
    min-height: 300px;
    border-radius: 28px;
    border: 2px solid rgba(255, 59, 212, 0.8);
    background:
        linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.65)),
        url("image/ui/profile/profile-bg.png") center/cover no-repeat;
    box-shadow: 0 0 35px rgba(255, 59, 212, 0.25);
    margin-bottom: 25px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 4px solid #ff3bd4;
    box-shadow: 0 0 25px rgba(255, 59, 212, 0.8);
}

.profile-header-text {
    margin-left: 35px;
    max-width: 520px;
    font-size: 28px;
    line-height: 1.25;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 59, 212, 0.5);
}

.profile-section,
.profile-box {
    background: rgba(10, 4, 20, 0.92);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 0 25px rgba(0,0,0,0.35);
}

.profile-section h2,
.profile-box h2 {
    font-size: 26px;
    margin-bottom: 22px;
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-card {
    min-height: 190px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid rgba(255, 59, 212, 0.22);

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.stat-card img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    margin-bottom: 18px;
}

.stat-card p {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    text-align: center;
}

.profile-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.profile-empty-box,
.profile-achievements-placeholder {
    min-height: 310px;
    border-radius: 20px;
    background: #10091d;
    border: 1px solid rgba(255,255,255,0.08);
}

.profile-achievements-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(255,255,255,0.45);
    font-size: 22px;
}

.settings-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.settings-buttons img {
    width: 360px;
    max-width: 100%;
    cursor: pointer;
    transition: 0.2s ease;
}

.settings-buttons img:hover {
    transform: scale(1.03);
    filter: brightness(1.12);
}
.profile-main-image {
    width: 100%;
    margin-bottom: 25px;
}

.profile-main-image img {
    width: 100%;
    display: block;
    border-radius: 24px;
}

.settings-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.settings-buttons img {
    width: 360px;
    max-width: 100%;
    cursor: pointer;
    transition: 0.2s ease;
}

.settings-buttons img:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}
.profile-page {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.profile-main-image {
    position: relative;
    width: 100%;
}

.profile-main-image > img {
    width: 100%;
    display: block;
    border-radius: 18px;
}

.profile-buttons-on-image {
    position: absolute;
    left: 50%;
    bottom: 2.5%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
}

.profile-buttons-on-image img {
    width: 180px;
    max-width: 100%;
    cursor: pointer;
    transition: 0.2s ease;
}

.profile-buttons-on-image img:hover {
    transform: scale(1.04);
    filter: brightness(1.12);
}
.profile-main-image {
    position: relative;
}

.profile-nickname {
    position: absolute;
    top: 6%;
    left: 30%;

    font-size: 34px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;

    text-shadow:
        0 0 10px rgba(255, 59, 212, 0.9),
        0 0 20px rgba(255, 59, 212, 0.5);

    z-index: 5;
}
.profile-letter {
    position: absolute;

    left: 14.5%;
    top: 7%;

    font-size: 90px;

    color: white;
    font-weight: bold;

    z-index: 5;
}
.change-name-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.75);
    align-items: center;
    justify-content: center;
}
.profile-stat-number {
    position: absolute;
    font-size: 34px;
    color: #ffffff;
    font-weight: bold;
    text-shadow:
        0 0 10px rgba(255,255,255,0.7),
        0 0 18px rgba(255,59,212,0.6);
    z-index: 5;
}

.profile-rolls {
    top: 41%;
    left: 13%;
}

.profile-cards {
    top: 41%;
    left: 37%;
}

.profile-energy {
    top: 41%;
    left: 61%;
}

.profile-packs {
    top: 41%;
    left: 84%;
}
.change-name-modal.active {
    display: flex;
}

.change-name-modal img {
    width: 760px;
    max-width: 92%;
}

.nickname-input {
    position: absolute;
    width: 390px;
    height: 58px;

    background: transparent;
    border: none;
    outline: none;

    color: white;
    font-family: inherit;
    font-size: 26px;

    left: 44%;
    top: 53%;

    transform: translate(-50%, -50%);
}

.nickname-counter {
    position: absolute;
    color: #b9a5e8;
    font-size: 24px;
    left: 64%;
    top: 48%;
    transform: translateY(-50%);
}

.nickname-close,
.nickname-cancel,
.nickname-save {
    position: absolute;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nickname-close {
    width: 55px;
    height: 55px;
    top: 25%;
    right: 28%;
}

.nickname-cancel {
    width: 220px;
    height: 70px;
    left: 39%;
    top: 66%;
    transform: translateX(-50%);
}

.nickname-save {
    width: 250px;
    height: 70px;
    left: 58%;
    top: 66%;
    transform: translateX(-50%);
}

.profile-character-img {
    position: absolute !important;

    left: 13.5% !important;
    top: 60% !important;

    width: 170px !important;
    height: 210px !important;

    object-fit: cover !important;
    object-position: center top !important;

    border-radius: 14px !important;
    z-index: 6 !important;
}
.profile-level {
    position: absolute;
    top: 13%;
    left: 33%;
    font-size: 40px;
    color: white;
    font-weight: bold;
    text-shadow: 0 0 15px #ff3bd4;
    z-index: 5;
}

.profile-xp-bar {
    position: absolute;
    top: 16%;
    left: 37%;
    width: 250px;
    height: 16px;
    background: rgba(255,255,255,0.12);
    border-radius: 20px;
    overflow: hidden;
    z-index: 5;
}

.profile-xp-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff3bd4, #8b3dff);
    border-radius: 20px;
    box-shadow: 0 0 14px #ff3bd4;
}

.profile-xp-text {
    position: absolute;
    top: 15.5%;
    left: 72%;
    font-size: 18px;
    color: white;
    z-index: 5;
}
.character-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.75);
    align-items: center;
    justify-content: center;
}

.character-modal.active {
    display: flex;
}

.character-modal-content {
    position: relative;
    width: 850px;
    max-width: 95%;
}

.character-modal-bg {
    width: 100%;
    display: block;
}

.character-modal-preview {
    position: absolute;
    left: 50%;
    top: 47%;
    transform: translate(-50%, -50%);

    width: 255px;
    height: 360px;
    object-fit: cover;
    object-position: center top;

    border-radius: 18px;
}

.character-arrow,
.character-select-btn {
    position: absolute;
    background: transparent;
    border: none;
    cursor: pointer;
}

.character-left {
    left: 11%;
    top: 46%;
    width: 90px;
    height: 90px;
}

.character-right {
    right: 11%;
    top: 46%;
    width: 90px;
    height: 90px;
}

.character-select-btn {
    left: 50%;
    bottom: 4%;
    transform: translateX(-50%);
    width: 300px;
    height: 75px;
}
/* ========================================
   COLLECTION PAGE
======================================== */

.collection-page{
    font-family:'Russo One',sans-serif;
    min-height:100vh;
    color:#fff;
}

.collection-header{
    width:100%;
    max-width:1400px;
    margin:20px auto 0;
    padding:16px 24px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:20px;

    backdrop-filter:blur(10px);
}

.collection-logo img{
    height:60px;
}

.collection-header-resources{
    display:flex;
    gap:12px;
}

.collection-resource{
    display:flex;
    align-items:center;
    gap:8px;

    padding:12px 18px;

    border-radius:14px;

    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.08);
}

.collection-resource b{
    color:#ff3bd4;
}

.collection-home-btn{
    display:flex;
    align-items:center;
    gap:10px;

    width:max-content;

    margin:20px auto 0;
    padding:14px 22px;

    text-decoration:none;
    color:#fff;

    border-radius:16px;

    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.08);

    transition:.25s;
}

.collection-home-btn:hover{
    transform:translateY(-2px);
}

.collection-main{
    max-width:1400px;
    margin:40px auto;
}

.collection-title-row{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    margin-bottom:40px;
}

.collection-title-row h1{
    font-size:56px;
    margin-bottom:12px;
}

.collection-title-row p{
    color:rgba(255,255,255,0.65);
}

.collection-filters{
    display:flex;
    gap:12px;
}

.collection-filter-btn{
    border:none;
    cursor:pointer;

    padding:14px 24px;

    border-radius:14px;

    color:#fff;

    background:rgba(255,255,255,0.05);

    font-family:inherit;
}

.collection-filter-btn.active{
    background:#7b2fff;
}

.collection-cards-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
}

.collection-card{
    height:420px;
    position:relative;
    overflow:hidden;

    border-radius:20px;
    border:1px solid rgba(255,255,255,0.08);

    cursor:pointer;
    transition:.25s;
}

.collection-card:hover{
    transform:translateY(-5px);
    box-shadow:0 0 25px rgba(123,47,255,.35);
}

.collection-card img{
    position:absolute;
    inset:0;

    width:100%;
    height:100%;

    object-fit:cover;
    display:block;
}

.collection-card-name{
    font-size:28px;
    margin-bottom:14px;
}

.collection-progress-top{
    display:flex;
    justify-content:space-between;
    margin-bottom:10px;
}

.collection-progress-bar{
    height:12px;
    border-radius:999px;

    background:rgba(255,255,255,0.08);

    overflow:hidden;
}

.collection-progress-fill{
    height:100%;
    border-radius:999px;

    background:linear-gradient(
        90deg,
        #7b2fff,
        #ff3bd4
    );
}

@media(max-width:1200px){

.collection-cards-grid{
    grid-template-columns:repeat(3,1fr);
}

}

@media(max-width:900px){

.collection-cards-grid{
    grid-template-columns:repeat(2,1fr);
}

.collection-title-row{
    flex-direction:column;
    align-items:flex-start;
    gap:20px;
}

}

@media(max-width:600px){

.collection-cards-grid{
    grid-template-columns:1fr;
}

.collection-title-row h1{
    font-size:40px;
}

}
.collection-card-body{
    position:absolute;
    left:0;
    right:0;
    bottom:0;

    padding:20px;

    background:linear-gradient(
        to top,
        rgba(0,0,0,0.95) 0%,
        rgba(0,0,0,0.65) 40%,
        rgba(0,0,0,0.15) 75%,
        transparent 100%
    );
}
/* ========================================
   COLLECTION MODAL
======================================== */

.collection-modal{
    display:none;
    position:fixed;
    inset:0;
    z-index:9999;

    align-items:center;
    justify-content:center;

    padding:40px;

    background:rgba(0,0,0,0.45);
    backdrop-filter:blur(10px);
}

.collection-modal.active{
    display:flex;
}

.collection-modal-window{
    position:relative;

width:min(980px, 92vw);
min-height:480px;
grid-template-columns:340px 1fr;

    display:grid;

    overflow:hidden;

    border-radius:24px;

    background:rgba(10,10,18,0.94);
    border:1px solid rgba(160,80,255,0.45);

    box-shadow:
        0 0 40px rgba(123,47,255,0.35),
        0 30px 80px rgba(0,0,0,0.65);
}

.collection-modal-close{
    position:absolute;
    top:20px;
    right:24px;
    z-index:5;

    width:42px;
    height:42px;

    border:none;
    cursor:pointer;

    background:transparent;
    color:#fff;

    font-size:34px;
    opacity:.7;
}

.collection-modal-close:hover{
    opacity:1;
}

.collection-modal-left{
    position:relative;
    min-height:520px;

    padding:28px;

    display:flex;
    flex-direction:column;
    justify-content:flex-end;
}

.collection-modal-left::after{
    content:"";
    position:absolute;
    inset:0;

    background:linear-gradient(
        to top,
        rgba(0,0,0,0.95) 0%,
        rgba(0,0,0,0.55) 45%,
        rgba(0,0,0,0.05) 100%
    );

    z-index:1;
}

.collection-modal-left img{
    position:absolute;
    inset:0;

    width:100%;
    height:100%;

    object-fit:cover;
}

.collection-modal-progress,
.collection-modal-left .collection-progress-bar{
    position:relative;
    z-index:2;
}

.collection-modal-progress{
    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-bottom:14px;

    font-size:18px;
}

.collection-modal-progress b{
    color:#b66cff;
    font-size:28px;
}

.collection-modal-right{
    padding:34px 36px;
}

.collection-modal-tabs{
    display:flex;
    width:360px;
    padding:6px;

    margin-bottom:36px;

    border-radius:14px;

    background:rgba(255,255,255,0.05);
}

.collection-modal-tab{
    flex:1;

    padding:16px;

    border:none;
    border-radius:12px;

    color:#fff;
    background:transparent;

    font-family:inherit;
    font-size:16px;

    cursor:pointer;
}

.collection-modal-tab.active{
    background:linear-gradient(135deg,#7b2fff,#9d4dff);
    box-shadow:0 0 20px rgba(123,47,255,0.45);
}

.collection-modal-right h2{
    font-size:30px;
    margin-bottom:28px;
}

.collection-rarity-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
}

.rarity-card{
    min-height:250px;

    padding:18px 12px;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:space-between;

    border-radius:16px;

    background:rgba(255,255,255,0.035);
    border:1px solid rgba(255,255,255,0.12);
}

.rarity-card h3{
    font-size:18px;
}

.rarity-card span{
    font-size:34px;
}
.rarity-card.common{
    color:#d8d8d8;
}

.rarity-card.rare{
    color:#41a6ff;
    border-color:rgba(65,166,255,0.45);
}

.rarity-card.epic{
    color:#b04cff;
    border-color:rgba(176,76,255,0.45);
}

.rarity-card.legendary{
    color:#ffb428;
    border-color:rgba(255,180,40,0.5);
}

@media(max-width:900px){
    .collection-modal-window{
        grid-template-columns:1fr;
    }

    .collection-modal-left{
        min-height:300px;
    }

    .collection-rarity-grid{
        grid-template-columns:repeat(2,1fr);
    }
}
/* COLLECTION REWARDS TAB */

.collection-rewards-tab{
    display:none;
    flex-direction:column;
    gap:22px;
}

.collection-rewards-tab.active{
    display:flex;
}

.collection-rarity-grid.hidden{
    display:none;
}

.reward-track{
    padding:16px;
    border-radius:18px;
    background:rgba(255,255,255,0.035);
    border:1px solid rgba(255,255,255,0.1);
}

.reward-track-info{
    margin-bottom:18px;
}

.reward-track-info h3,
.mastery-track h3{
    font-size:24px;
    margin-bottom:6px;
}

.reward-track-info p,
.mastery-track p{
    color:rgba(255,255,255,0.6);
    font-size:14px;
}

.reward-line{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:12px;
}

.reward-point{
    min-height:100px;
    border-radius:16px;
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.1);

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;

    opacity:.55;
}

.reward-point.active{
    opacity:1;
    border-color:#7b2fff;
    box-shadow:0 0 18px rgba(123,47,255,.35);
}

.reward-point span{
    font-size:30px;
}

.reward-point b{
    font-size:16px;
}

.mastery-track{
    padding:22px;
    border-radius:18px;

    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;

    background:linear-gradient(135deg,rgba(123,47,255,.18),rgba(255,180,40,.08));
    border:1px solid rgba(180,120,255,.25);
}

.mastery-progress{
    min-width:220px;
}

.mastery-progress span{
    display:block;
    margin-bottom:10px;
    text-align:right;
    color:#b66cff;
}

.mastery-progress div{
    height:12px;
    border-radius:999px;
    overflow:hidden;
    background:rgba(255,255,255,.08);
}

.mastery-progress i{
    display:block;
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg,#7b2fff,#ffb428);
}
.reward-point img{
    width:70px;
    height:70px;
    object-fit:contain;
}
.reward-claim-btn{
    border:none;
    cursor:pointer;

    margin-top:8px;

    padding:8px 12px;

    border-radius:10px;

    background:#7b2fff;
    color:white;

    font-family:inherit;
    font-size:13px;
}

.reward-claim-btn:hover{
    opacity:.9;
}
.reward-claim-btn.claimed{
    background:#2e8b57;
}
.collection-score-box{
    padding:18px;
    border-radius:18px;
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.1);
}

.collection-score-box h3{
    font-size:26px;
    margin-bottom:6px;
}

.collection-score-box p{
    color:rgba(255,255,255,0.6);
    font-size:14px;
    margin-bottom:12px;
}

.collection-score-value{
    color:#b66cff;
    font-size:22px;
}

.collection-reward-road{
    display:flex;
    gap:14px;
    overflow-x:auto;
    padding:8px 4px 16px;
    scroll-behavior:smooth;
}

.road-reward{
    min-width:130px;
    min-height:190px;

    padding:14px;

    border-radius:18px;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:space-between;

    background:rgba(255,255,255,0.035);
    border:1px solid rgba(255,255,255,0.1);

    opacity:.45;
}

.road-reward.active{
    opacity:1;
    border-color:#7b2fff;
    box-shadow:0 0 18px rgba(123,47,255,.35);
}

.road-reward.claimed{
    border-color:#2e8b57;
}

.road-reward-need{
    font-size:18px;
    color:#fff;
}

.road-reward img{
    width:70px;
    height:70px;
    object-fit:contain;
}

.road-reward-amount{
    color:#fff;
    font-size:15px;
}

.road-reward button{
    border:none;
    cursor:pointer;

    padding:8px 10px;
    border-radius:10px;

    background:#7b2fff;
    color:white;

    font-family:inherit;
    font-size:12px;
}

.road-reward button:disabled{
    opacity:.6;
    cursor:not-allowed;
}

.road-reward.claimed button{
    background:#2e8b57;
}
.road-reward{
    cursor:pointer;
}

.road-reward:not(.active){
    cursor:not-allowed;
}

.road-reward.claimed{
    opacity:.45;
}

.road-reward-status{
    font-size:14px;
    color:#b66cff;
}

.road-reward.claimed .road-reward-status{
    width:28px;
    height:28px;
    border-radius:50%;
    background:#2e8b57;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
}
.collection-reward-road{
    overflow-x:auto;
    overflow-y:hidden;
    padding-bottom:22px;
}

.collection-reward-road::-webkit-scrollbar{
    height:10px;
}

.collection-reward-road::-webkit-scrollbar-track{
    background:rgba(255,255,255,0.08);
    border-radius:999px;
}

.collection-reward-road::-webkit-scrollbar-thumb{
    background:linear-gradient(90deg,#7b2fff,#ff3bd4);
    border-radius:999px;
}
.rarity-card span{
    font-size:24px;
    text-align:center;
    line-height:1.1;
}

.rarity-card{
    justify-content:space-between;
}
.coming-soon-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.78);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.coming-soon-modal.active {
    display: flex;
}

.coming-soon-modal img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    animation: comingSoonPop 0.25s ease;
}

@keyframes comingSoonPop {
    from {
        opacity: 0;
        transform: scale(0.88);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.secret-vote-btn {
    width: 240px;
    cursor: pointer;
    transition: 0.25s;
}

.secret-vote-btn:hover {
    transform: scale(1.05);
}
.donate-modal {
    display: none !important;
    position: fixed !important;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(7px);
}

.donate-modal.active {
    display: flex !important;
}

.donate-modal img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 0 45px rgba(255, 40, 220, 0.35);
}
.donate-box {
    position: relative;
    max-width: 92vw;
    max-height: 92vh;
}

.donate-box img {
    width: 100%;
    height: auto;
    display: block;
}

.donate-click-zone {
    position: absolute;
    left: 57%;
    bottom: 5%;
    width: 45%;
    height: 20%;
    cursor: pointer;
}
.collection-rarity-img {
    width: 100%;
    max-height: 190px;
    object-fit: contain;
    display: block;
    margin: 0 auto 10px;
    border-radius: 12px;
}

.collection-rarity-info {
    text-align: center;
}

.collection-rarity-info h3 {
    margin-bottom: 6px;
}

.collection-rarity-info span {
    font-size: 14px;
    color: #ffffff;
}
.game-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #8d2cff,
        #ff3fd4
    );

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 26px;
    font-weight: 900;

    box-shadow:
        0 0 20px rgba(180, 60, 255, 0.5);
}
.game-topbar {
    position: fixed;
    top: 18px;
    left: 230px;
    right: 30px;
    z-index: 1000;

    height: 82px;
    padding: 14px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(10, 2, 20, 0.82);
    border: 1px solid rgba(255, 59, 212, 0.35);
    border-radius: 24px;
    box-shadow: 0 0 28px rgba(255, 59, 212, 0.18);
    backdrop-filter: blur(12px);
}

.game-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.game-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, #8d2cff, #ff3bd4);
    color: white;
    font-size: 26px;
    font-weight: 900;
    box-shadow: 0 0 18px rgba(255, 59, 212, 0.45);
}

.game-name {
    font-size: 22px;
    color: white;
}

.game-role {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
}

.game-resources {
    display: flex;
    gap: 14px;
}

.game-resources div {
    min-width: 120px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    text-align: center;
    color: white;
}
#lobby-screen {
    padding-top: 120px;
}
.game-resource-item {
    min-width: 125px;
    height: 54px;
    padding: 0 16px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    color: white;
    font-size: 18px;
}

.game-resource-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 59, 212, 0.45));
}
.game-topbar {
    position: fixed;
    top: 18px;
    left: 220px;
    right: 35px;
    z-index: 9999;

    height: 86px;
    padding: 14px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(9, 1, 18, 0.88);
    border: 1px solid rgba(255, 59, 212, 0.45);
    border-radius: 24px;
    box-shadow: 0 0 28px rgba(255, 59, 212, 0.22);
    backdrop-filter: blur(12px);
}

.game-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.game-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8d2cff, #ff3bd4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    color: white;
    box-shadow: 0 0 22px rgba(255, 59, 212, 0.55);
}

.game-name {
    font-size: 24px;
    color: white;
}

.game-role {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
}

.game-resources {
    display: flex;
    gap: 14px;
}

.game-resource-item {
    min-width: 130px;
    height: 54px;
    padding: 0 16px;
    border-radius: 17px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.13);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    font-size: 18px;
    color: white;
}

.game-resource-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

body {
    padding-top: 105px;
}
.game-topbar {
    position: fixed;
    top: 18px;
    left: 220px;
    right: 35px;
    z-index: 99999;
}
.collect-room {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.road-reward {
    min-width: 130px;
    flex-shrink: 0;
}
.collection-reward-road {
    display: flex;
    gap: 14px;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 8px 4px 16px;

    scrollbar-width: thin;
}
.collection-reward-road::-webkit-scrollbar {
    height: 10px;
}

.collection-reward-road::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
}

.collection-reward-road::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #8d2cff, #ff3bd4);
    border-radius: 20px;
}
.collection-rewards-tab {
    max-width: 100%;
    overflow: hidden;
}

.collection-reward-road {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 14px;

    width: 100%;
    max-width: 100%;

    overflow-x: scroll !important;
    overflow-y: hidden !important;

    padding: 8px 4px 22px;
    scroll-behavior: smooth;
}

.road-reward {
    flex: 0 0 130px !important;
    min-width: 130px !important;
    max-width: 130px !important;
}

.collection-reward-road::-webkit-scrollbar {
    height: 10px;
}

.collection-reward-road::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
}

.collection-reward-road::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #8d2cff, #ff3bd4);
    border-radius: 20px;
}
.collection-reward-road {
    pointer-events: auto !important;
    cursor: grab;
}

.collection-reward-road:active {
    cursor: grabbing;
}

.collection-reward-road * {
    pointer-events: auto !important;
}
.collection-reward-road {
    cursor: grab !important;
}

.collection-reward-road.dragging {
    cursor: grabbing !important;
}

.collection-reward-road.dragging .road-reward {
    pointer-events: none;
}
.reward-road-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
}

.collection-reward-road {
    flex: 1;
    overflow-x: hidden !important;
    display: flex;
    gap: 14px;
}

.road-reward {
    flex: 0 0 130px !important;
}

.reward-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(190, 60, 255, 0.7);
    background: rgba(25, 8, 40, 0.9);
    color: white;
    font-size: 34px;
    cursor: pointer;
    z-index: 5;
}

.reward-arrow:hover {
    box-shadow: 0 0 18px rgba(190, 60, 255, 0.8);
}
.reward-road-wrap{
    position: relative;
}

.reward-left{
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.reward-right{
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}
.collection-modal-right {
    position: relative;
}

.reward-road-wrap {
    display: block;
}

.collection-reward-road {
    overflow-x: hidden !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 14px;
}

.road-reward {
    flex: 0 0 130px !important;
    min-width: 130px !important;
}

.reward-float-arrow {
    position: absolute;
    bottom: 95px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(190, 60, 255, 0.8);
    background: rgba(18, 4, 30, 0.95);
    color: white;
    font-size: 36px;
    cursor: pointer;
    z-index: 9999;
}

.reward-float-left {
    left: 22px;
}

.reward-float-right {
    right: 22px;
}

.reward-float-arrow:hover {
    box-shadow: 0 0 18px rgba(190, 60, 255, 0.9);
}
.collect-result-actions.single {
    left: 50% !important;
    transform: translateX(-50%) !important;
    justify-content: center !important;
    width: 100% !important;
    bottom: 25px !important;
}

.collect-result-actions.single img {
    width: 240px !important;
}

.collect-result-list {
    top: 455px !important;
    gap: 18px !important;
    line-height: 1.25 !important;
}
.collect-result-actions.single {
    position: absolute;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 74px !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.collect-result-actions.single button {
    width: 260px !important;
    height: auto !important;
}

.collect-result-actions.single img {
    width: 260px !important;
}

.collect-result-list {
    top: 438px !important;
    row-gap: 20px !important;
    line-height: 1.55 !important;
}

.collect-result-total {
    top: 396px !important;
}
.collect-result-total {
    top: 345px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-size: 30px !important;
}

.collect-result-list {
    top: 485px !important;
    left: 10 !important;
    width: 100% !important;
    gap: 0 !important;
    row-gap: 18px !important;
    line-height: 1.7 !important;
}

.collect-result-list span {
    display: block !important;
    margin-bottom: -9px !important;
}

.collect-result-actions.single {
    bottom: 100px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    justify-content: center !important;
}

.collect-result-actions.single img {
    width: 260px !important;
}
.collect-result-actions.single {
    position: absolute !important;
    left: 50% !important;
    top: 660px !important;
    bottom: auto !important;
    transform: translateX(-50%) !important;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    width: 100% !important;
    z-index: 20 !important;
}

.collect-result-actions.single button {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.collect-result-actions.single img {
    width: 270px !important;
    display: block !important;
}
.reward-road-wrap {
    position: relative !important;
    width: 100% !important;
    max-width: 650px !important;
    overflow: hidden !important;
    padding: 12px 54px !important;
}

.collection-reward-road {
    display: flex !important;
    gap: 16px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth !important;
    padding: 10px 4px 20px !important;
}

.road-reward {
    flex: 0 0 135px !important;
}

.reward-float-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
}

.reward-float-left {
    left: 4px !important;
}

.reward-float-right {
    right: 4px !important;
}
.gl-quest-widget,
.gl-vote-widget {
    cursor: pointer;
    overflow: hidden;
    transition: 0.2s ease;
}

.gl-quest-widget img,
.gl-vote-widget img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 18px;
}

.gl-quest-widget:hover,
.gl-vote-widget:hover {
    transform: translateY(-3px) scale(1.02);
    filter: brightness(1.08);
}
.gl-home-top {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 34px !important;
}

.gl-home-hero-v2 {
    width: 100% !important;
    max-width: 1160px !important;
    height: 420px !important;
    margin: 0 auto !important;
}

.gl-home-hero-bg {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 24px !important;
}

.gl-home-widgets {
    display: none !important;
}
.gl-future-section {
    width: 100%;
    max-width: 1160px;
    margin: 10px auto 60px;
    cursor: pointer;
}

.gl-future-img {
    width: 100%;
    display: block;
    border-radius: 26px;
    border: 1px solid rgba(180, 60, 255, 0.45);
    box-shadow: 0 0 35px rgba(180, 60, 255, 0.25);
    transition: 0.25s ease;
}

.gl-future-img:hover {
    transform: translateY(-4px) scale(1.01);
    filter: brightness(1.08);
}
.equipped-achievement-badge.medal-bronze { border-color: #b87333; }
.equipped-achievement-badge.medal-silver { border-color: #c0c0c0; }
.equipped-achievement-badge.medal-gold { border-color: #ffd36a; }
.equipped-achievement-badge.medal-epic { border-color: #b93dff; }
.equipped-achievement-badge.medal-legendary { border-color: #ff9f1c; }
/* цвета редкости */
.rarity-common { background: #555; }
.rarity-rare { background: #1e90ff; }
.rarity-epic { background: #8a2be2; }
.rarity-legendary { background: #ff4500; }
.messi-bg { background: url('image/messi/1.jpg') center/cover; }
.neymar-bg { background: url('image/neymar/1.jpg') center/cover; }
.kaka-bg { background: url('image/kaka/1.jpg') center/cover; }
.zidane-bg { background: url('image/zidane/1.jpg') center/cover; }

/* Фоны для карточек */
.brain-bg { background: url('image/brain/1.jpg') center/cover; }
.helin-bg { background: url('image/helin/1.jpg') center/cover; }
.lexapaws-bg { background: url('image/lexapaws/1.jpg') center/cover; }
.litwin-bg { background: url('image/litwin/1.jpg') center/cover; }
.melstroy-bg { background: url('image/melstroy/1.jpg') center/cover; }
.nikkifn-bg { background: url('image/nikkifn/1.jpg') center/cover; }
.rejiboi-bg { background: url('image/rejiboi/1.jpg') center/cover; }
.rostick-bg { background: url('image/rostick/1.jpg') center/cover; }
.sasich-bg { background: url('image/sasich/1.jpg') center/cover; }
.skibiditoilet-bg { background: url('image/skibiditoilet/1.jpg') center/cover; }
.slovopatsana-bg { background: url('image/slovopatsana/1.jpg') center/cover; }