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

html {
    width: 100%;
    min-height: 100%;
}

body {
    width: 100%;
    min-height: 100vh;
    font-family: 'Segoe UI', 'Rajdhani', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    background-image: url('../assets/images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #05060f;
    color: #e6ecff;
    scroll-behavior: smooth;
}

/* ============================================
   ОБЩИЙ СТИЛЬ СТЕКЛА
   ============================================ */
.logo-oval,
.glass-btn,
.center-nav {
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 999px;

    border: 1.5px solid rgba(150, 180, 255, 0.4);
    background: rgba(20, 30, 80, 0.25);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);

    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(150, 180, 255, 0.35);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

/* ============================================
   ЛОГОТИП СЛЕВА
   ============================================ */
.logo-oval {
    position: fixed;
    top: 30px;
    left: 20px;
    z-index: 100;
}

.logo-text {
    background: linear-gradient(90deg, #ffffff, #8ab4ff, #4d6bff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(100, 150, 255, 0.9));
}

/* ============================================
   МЕНЮ ПО ЦЕНТРУ
   ============================================ */
.center-nav {
    position: fixed;
    top: 30px;
    left: 45%;
    transform: translateX(-50%);
    z-index: 100;
    gap: 28px;
    padding: 14px 32px;
}

.center-nav > a,
.center-nav .dropdown > a {
    text-decoration: none;
    color: #e6ecff;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    position: relative;
    transition: color 0.3s, text-shadow 0.3s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.center-nav > a:hover,
.center-nav .dropdown > a:hover {
    color: #8ab4ff;
    text-shadow: 0 0 14px rgba(120, 160, 255, 1);
}

.center-nav > a::after,
.center-nav .dropdown > a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8ab4ff, #4d6bff);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.3s;
    box-shadow: 0 0 10px rgba(120, 160, 255, 0.9);
}

.center-nav > a:hover::after,
.center-nav .dropdown > a:hover::after {
    width: 100%;
}

.center-nav .active-page {
    color: #8ab4ff !important;
    text-shadow: 0 0 14px rgba(120, 160, 255, 1);
}

.center-nav .active-page::after {
    width: 100% !important;
}

/* ============================================
   СТРЕЛКА
   ============================================ */
.arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #e6ecff;
    border-bottom: 2px solid #e6ecff;
    transform: rotate(45deg);
    margin-bottom: 3px;
    transition: transform 0.3s, border-color 0.3s;
}

.dropdown:hover .arrow {
    transform: rotate(-135deg);
    border-color: #8ab4ff;
    margin-bottom: -3px;
}

/* ============================================
   ВЫПАДАЮЩЕЕ МЕНЮ
   ============================================ */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    margin-top: 15px;
    padding: 10px 0;
    min-width: 180px;

    border: 1.5px solid rgba(150, 180, 255, 0.5);
    background: rgba(15, 25, 70, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(80, 120, 255, 0.25),
        inset 0 1px 0 rgba(150, 180, 255, 0.4);

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    z-index: 200;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 24px;
    color: #e6ecff;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, padding 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(120, 160, 255, 0.25);
    color: #ffffff;
    padding-left: 30px;
}

/* ============================================
   КНОПКИ СПРАВА
   ============================================ */
.auth-buttons {
    position: fixed;
    top: 30px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 100;
}

.glass-btn {
    color: #e6ecff;
    cursor: pointer;
}

.glass-btn:hover,
.logo-oval:hover,
.center-nav:hover {
    background: rgba(50, 80, 180, 0.4);
    border-color: rgba(150, 180, 255, 0.8);
    box-shadow:
        0 8px 32px rgba(80, 120, 255, 0.5),
        inset 0 1px 0 rgba(180, 200, 255, 0.5);
}

.glass-btn:active {
    transform: scale(0.97);
}

/* ============================================
   ОВАЛ С НИКОМ
   ============================================ */
.user-oval {
    position: fixed;
    top: 30px;
    right: 20px;
    z-index: 100;

    display: none;
    align-items: center;
    justify-content: center;
    gap: 14px;

    padding: 12px 26px;
    border-radius: 999px;

    border: 1.5px solid rgba(150, 180, 255, 0.5);
    background: rgba(20, 30, 80, 0.35);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);

    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(80, 120, 255, 0.25),
        inset 0 1px 0 rgba(150, 180, 255, 0.35);

    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition:
        opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.3s,
        border-color 0.3s,
        box-shadow 0.3s;
}

.user-oval.show {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.user-oval:hover {
    background: rgba(50, 80, 180, 0.45);
    border-color: rgba(150, 180, 255, 0.8);
    box-shadow:
        0 8px 32px rgba(80, 120, 255, 0.5),
        0 0 40px rgba(80, 120, 255, 0.35),
        inset 0 1px 0 rgba(180, 200, 255, 0.5);
}

.user-balance {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 4px 14px;
    border-radius: 999px;

    background: rgba(80, 120, 255, 0.25);
    border: 1.5px solid rgba(150, 180, 255, 0.55);

    box-shadow:
        0 0 12px rgba(80, 120, 255, 0.5),
        inset 0 1px 0 rgba(180, 200, 255, 0.5);
}

.user-balance-num {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 1px;

    background: linear-gradient(90deg, #ffffff, #8ab4ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(120, 160, 255, 1));
}

.user-balance-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: #8ab4ff;
    text-shadow: 0 0 10px rgba(120, 160, 255, 0.9);
}

/* ============================================
   МЕНЮ ПРОФИЛЯ (стрелка у ника)
   ============================================ */
.user-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

.user-name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;

    background: linear-gradient(90deg, #ffffff, #8ab4ff, #4d6bff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(100, 150, 255, 0.7));

    white-space: nowrap;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #8ab4ff;
    border-bottom: 2px solid #8ab4ff;
    transform: rotate(45deg);
    margin-bottom: 3px;
    transition: transform 0.3s, border-color 0.3s;
    filter: drop-shadow(0 0 8px rgba(120, 160, 255, 0.9));
}

.user-oval.menu-open .user-menu-arrow {
    transform: rotate(-135deg);
    margin-bottom: -3px;
}

.user-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;

    min-width: 200px;
    padding: 8px 0;

    border-radius: 14px;

    border: 1.5px solid rgba(150, 180, 255, 0.55);
    background: rgba(15, 25, 70, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    box-shadow:
        0 12px 45px rgba(0, 0, 0, 0.65),
        0 0 30px rgba(80, 120, 255, 0.3),
        inset 0 1px 0 rgba(150, 180, 255, 0.4);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.96);
    transform-origin: top right;

    transition:
        opacity 0.3s,
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.3s;

    z-index: 200;
    pointer-events: none;
}

.user-oval.menu-open .user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 20px;

    color: #e6ecff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    transition: background 0.25s, color 0.25s, padding-left 0.25s;
}

.user-menu-item:hover {
    background: rgba(120, 160, 255, 0.25);
    color: #ffffff;
    padding-left: 26px;
}

.user-menu-icon {
    font-size: 1rem;
    filter: drop-shadow(0 0 6px rgba(120, 160, 255, 0.9));
}

.user-menu-logout:hover {
    background: rgba(255, 80, 80, 0.25);
    color: #ffffff;
}

.user-menu-logout .user-menu-icon {
    filter: drop-shadow(0 0 6px rgba(255, 100, 100, 0.9));
}

/* ============================================
   HERO
   ============================================ */
.home-container {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 140px 20px 80px;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-title {
    font-size: clamp(3.5rem, 12vw, 9rem);
    font-weight: 900;
    letter-spacing: 12px;
    text-transform: uppercase;
    margin-bottom: 25px;

    background: linear-gradient(135deg, #ffffff 0%, #8ab4ff 50%, #4d6bff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 40px rgba(100, 150, 255, 0.8));
}

.hero-subtitle {
    font-size: clamp(1.3rem, 3vw, 2rem);
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: 600;
    text-shadow: 0 0 20px rgba(120, 160, 255, 0.7);
}

.hero-text {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: rgba(200, 215, 255, 0.75);
    max-width: 620px;
    line-height: 1.7;
    letter-spacing: 1px;
    margin-bottom: 50px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-btn {
    display: inline-block;
    padding: 16px 45px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s, border-color 0.3s;
}

.hero-btn-primary {
    border: 1.5px solid rgba(150, 180, 255, 0.7);
    background: linear-gradient(135deg, rgba(80, 120, 255, 0.55), rgba(40, 80, 220, 0.65));
    color: #ffffff;
    box-shadow:
        0 8px 32px rgba(80, 120, 255, 0.4),
        inset 0 1px 0 rgba(180, 200, 255, 0.4);
}

.hero-btn-primary:hover {
    background: linear-gradient(135deg, rgba(120, 160, 255, 0.75), rgba(60, 110, 255, 0.85));
    box-shadow:
        0 15px 50px rgba(80, 120, 255, 0.7),
        0 0 40px rgba(80, 120, 255, 0.4);
    transform: translateY(-3px);
}

.hero-btn-outline {
    border: 1.5px solid rgba(150, 180, 255, 0.5);
    background: rgba(20, 30, 80, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #e6ecff;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(150, 180, 255, 0.35);
}

.hero-btn-outline:hover {
    background: rgba(50, 80, 180, 0.5);
    border-color: rgba(150, 180, 255, 0.9);
    box-shadow:
        0 15px 40px rgba(80, 120, 255, 0.5),
        inset 0 1px 0 rgba(180, 200, 255, 0.5);
    transform: translateY(-3px);
}

/* ============================================
   КНОПКА "ХОЧЕШЬ ПОИГРАТЬ?"
   ============================================ */
.play-cta {
    display: inline-flex;
    align-items: center;
    gap: 16px;

    margin-top: 40px;
    padding: 18px 32px;
    max-width: 620px;

    border-radius: 18px;
    border: 1.5px solid rgba(150, 180, 255, 0.5);

    background: rgba(20, 30, 80, 0.35);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(80, 120, 255, 0.25),
        inset 0 1px 0 rgba(150, 180, 255, 0.4);

    color: #e6ecff;
    font-family: inherit;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-align: left;
    cursor: pointer;

    transition: transform 0.4s, box-shadow 0.4s, background 0.4s, border-color 0.4s;
    animation: playFloat 3s ease-in-out infinite;
}

.play-cta:hover {
    transform: translateY(-5px);
    background: rgba(50, 80, 180, 0.5);
    border-color: rgba(150, 180, 255, 0.9);
    box-shadow:
        0 15px 50px rgba(80, 120, 255, 0.6),
        0 0 60px rgba(80, 120, 255, 0.4),
        inset 0 1px 0 rgba(180, 200, 255, 0.6);
}

.play-cta:active {
    transform: translateY(-2px) scale(0.98);
}

.play-cta-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 12px rgba(120, 160, 255, 0.9));
    animation: playIconRotate 4s ease-in-out infinite;
}

.play-cta-text {
    flex: 1;
    line-height: 1.5;
    color: rgba(200, 215, 255, 0.85);
}

.play-cta-text strong {
    display: block;
    margin-top: 4px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;

    background: linear-gradient(90deg, #ffffff, #8ab4ff, #4d6bff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(120, 160, 255, 0.9));
}

.play-cta-arrow {
    font-size: 1.5rem;
    color: #8ab4ff;
    filter: drop-shadow(0 0 10px rgba(120, 160, 255, 0.9));
    animation: playArrow 1.6s ease-in-out infinite;
}

@keyframes playFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

@keyframes playIconRotate {
    0%, 100% { transform: rotate(-8deg) scale(1); }
    50%      { transform: rotate(8deg) scale(1.1); }
}

@keyframes playArrow {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50%      { transform: translateY(6px); opacity: 0.6; }
}

/* ============================================
   ЧТО НАС ОТЛИЧАЕТ
   ============================================ */
.features {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 40px;
    text-align: center;
}

.section-title-block {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 15px;

    background: linear-gradient(90deg, #ffffff, #8ab4ff, #4d6bff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 25px rgba(100, 150, 255, 0.7));
}

.section-subtitle-block {
    font-size: 1rem;
    color: rgba(200, 215, 255, 0.7);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1100px;
    width: 100%;
}

.feature-card {
    padding: 50px 35px;
    border-radius: 24px;
    text-align: center;

    border: 1.5px solid rgba(150, 180, 255, 0.35);
    background: rgba(20, 30, 80, 0.25);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);

    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(150, 180, 255, 0.3);

    transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s, background 0.4s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(150, 180, 255, 0.9);
    background: rgba(40, 60, 140, 0.4);
    box-shadow:
        0 20px 60px rgba(80, 120, 255, 0.5),
        0 0 50px rgba(80, 120, 255, 0.3),
        inset 0 1px 0 rgba(180, 200, 255, 0.6);
}

.feature-icon {
    font-size: 3.2rem;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 16px rgba(120, 160, 255, 0.9));
    display: inline-block;
    transition: transform 0.4s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(-5deg);
}

.feature-card h3 {
    font-size: 1.4rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 18px;
    color: #ffffff;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.98rem;
    line-height: 1.7;
    color: rgba(200, 215, 255, 0.75);
    letter-spacing: 0.5px;
}

/* ============================================
   СКОРО
   ============================================ */
.soon {
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 40px;
}

.soon-box {
    max-width: 720px;
    width: 100%;
    padding: 70px 50px;
    border-radius: 32px;
    text-align: center;

    border: 1.5px solid rgba(150, 180, 255, 0.4);
    background: rgba(20, 30, 80, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(80, 120, 255, 0.2),
        inset 0 1px 0 rgba(150, 180, 255, 0.4);

    animation: floatBox 6s ease-in-out infinite;
}

@keyframes floatBox {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-15px); }
}

.soon-badge {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;

    border: 1.5px solid rgba(150, 180, 255, 0.6);
    background: rgba(80, 120, 255, 0.25);
    color: #8ab4ff;
    box-shadow: 0 0 20px rgba(80, 120, 255, 0.4);
}

.soon-box h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 900;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 22px;

    background: linear-gradient(90deg, #ffffff, #8ab4ff, #4d6bff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 25px rgba(100, 150, 255, 0.7));
}

.soon-box p {
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(200, 215, 255, 0.8);
    letter-spacing: 1px;
    margin-bottom: 40px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.soon-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.soon-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 14px 26px;
    border-radius: 999px;

    border: 1.5px solid rgba(150, 180, 255, 0.5);
    background: rgba(20, 30, 80, 0.4);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);

    color: #e6ecff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;

    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(150, 180, 255, 0.35);

    transition: transform 0.3s, box-shadow 0.3s, background 0.3s, border-color 0.3s;
}

.soon-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.soon-btn:hover {
    transform: translateY(-4px);
}

.soon-btn:hover svg {
    transform: scale(1.15);
}

.soon-btn.discord:hover {
    background: rgba(88, 101, 242, 0.5);
    border-color: rgba(88, 101, 242, 0.9);
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.5), 0 0 30px rgba(88, 101, 242, 0.4);
    color: #ffffff;
}

.soon-btn.vk:hover {
    background: rgba(0, 119, 255, 0.5);
    border-color: rgba(0, 119, 255, 0.9);
    box-shadow: 0 12px 40px rgba(0, 119, 255, 0.5), 0 0 30px rgba(0, 119, 255, 0.4);
    color: #ffffff;
}

.soon-btn.telegram:hover {
    background: rgba(41, 161, 217, 0.5);
    border-color: rgba(41, 161, 217, 0.9);
    box-shadow: 0 12px 40px rgba(41, 161, 217, 0.5), 0 0 30px rgba(41, 161, 217, 0.4);
    color: #ffffff;
}

/* ============================================
   ИГРОВОЙ БЛОК
   ============================================ */
.game-slot {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 25px;
    padding: 20px 40px 80px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.game-slot-box {
    position: relative;
    width: 340px;
    height: 453px;
    flex-shrink: 0;
    padding: 20px;

    border-radius: 22px;

    border: 1.5px solid rgba(150, 180, 255, 0.4);
    background: rgba(20, 30, 80, 0.25);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);

    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(80, 120, 255, 0.15),
        inset 0 1px 0 rgba(150, 180, 255, 0.3);

    transition: border-color 0.4s, box-shadow 0.4s;
}

.game-slot-side {
    flex: 1 1 auto;
    height: 453px;
    min-width: 0;

    display: flex;
    flex-direction: row;
    overflow: hidden;

    border-radius: 22px;

    border: 1.5px solid rgba(150, 180, 255, 0.4);
    background: rgba(20, 30, 80, 0.25);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);

    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(80, 120, 255, 0.15),
        inset 0 1px 0 rgba(150, 180, 255, 0.3);

    transition: border-color 0.4s, box-shadow 0.4s;
}

.game-side-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;

    width: 200px;
    flex-shrink: 0;

    padding: 18px 12px;
    border-right: 1.5px solid rgba(150, 180, 255, 0.2);

    background: rgba(10, 18, 50, 0.35);
}

.game-side-btn {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 14px 16px;
    border-radius: 12px;

    border: 1.5px solid rgba(150, 180, 255, 0.35);
    background: rgba(20, 30, 80, 0.4);

    color: #e6ecff;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-align: left;

    cursor: pointer;

    transition: transform 0.25s, background 0.3s, border-color 0.3s, box-shadow 0.3s, padding-left 0.3s;
}

.game-side-btn:hover {
    background: rgba(50, 80, 180, 0.5);
    border-color: rgba(150, 180, 255, 0.9);
    padding-left: 22px;
    box-shadow:
        0 0 25px rgba(80, 120, 255, 0.5),
        inset 0 1px 0 rgba(180, 200, 255, 0.5);
}

.game-side-btn:active {
    transform: scale(0.97);
}

.game-side-btn.active {
    background: rgba(80, 120, 255, 0.4);
    border-color: rgba(180, 200, 255, 0.95);
    box-shadow:
        0 0 30px rgba(80, 120, 255, 0.6),
        inset 3px 0 0 #8ab4ff,
        inset 0 1px 0 rgba(180, 200, 255, 0.6);
    color: #ffffff;
}

.game-side-icon {
    font-size: 1.15rem;
    filter: drop-shadow(0 0 8px rgba(120, 160, 255, 0.9));
    flex-shrink: 0;
}

.game-side-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   ПРАВАЯ ЧАСТЬ — КАРТОЧКИ + МАГАЗИН
   ============================================ */
.game-side-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
    min-height: 0;
}

.game-cards-zone {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 25px 20px;

    width: 190px;
    flex-shrink: 0;
    height: 100%;
    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: thin;
    scrollbar-color: rgba(120, 160, 255, 0.5) transparent;
}

.game-cards-zone::-webkit-scrollbar { width: 6px; }
.game-cards-zone::-webkit-scrollbar-thumb {
    background: rgba(120, 160, 255, 0.5);
    border-radius: 3px;
}
.game-cards-zone::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 160, 255, 0.8);
}

.game-shop {
    flex: 1 1 auto;
    min-width: 0;

    display: none;
    flex-direction: column;

    padding: 25px 30px;
    height: 100%;

    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 160, 255, 0.5) transparent;

    position: relative;
}

.game-shop::-webkit-scrollbar { width: 6px; }
.game-shop::-webkit-scrollbar-thumb {
    background: rgba(120, 160, 255, 0.5);
    border-radius: 3px;
}

.game-shop.active {
    display: flex;
    animation: shopSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes shopSlideIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

.game-shop::before {
    content: '';
    position: absolute;

    top: 20px;
    bottom: 20px;
    left: 0;

    width: 1.5px;

    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(150, 180, 255, 0.35) 15%,
        rgba(150, 180, 255, 0.6) 50%,
        rgba(150, 180, 255, 0.35) 85%,
        transparent 100%
    );

    box-shadow:
        0 0 12px rgba(120, 160, 255, 0.5),
        0 0 30px rgba(80, 120, 255, 0.3);

    pointer-events: none;
}

/* ============================================
   КАРТОЧКА
   ============================================ */
.game-card {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 16px;
    flex-shrink: 0;

    overflow: hidden;
    cursor: pointer;

    border: 1.5px solid rgba(150, 180, 255, 0.5);
    background: rgba(20, 30, 80, 0.4);

    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(150, 180, 255, 0.35);

    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s,
                box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-6px) scale(1.05);
    border-color: rgba(180, 200, 255, 0.95);
    box-shadow:
        0 15px 40px rgba(80, 120, 255, 0.6),
        0 0 40px rgba(80, 120, 255, 0.45),
        inset 0 1px 0 rgba(180, 200, 255, 0.6);
}

.game-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    transition: transform 0.5s ease;
}

.game-card:hover .game-card-img {
    transform: scale(1.1);
}

.game-card-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    background: linear-gradient(
        180deg,
        transparent 40%,
        rgba(10, 18, 50, 0.85) 100%
    );

    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.game-card:hover .game-card-overlay {
    opacity: 1;
}

.game-card-hint {
    padding-bottom: 14px;

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;

    color: #8ab4ff;
    text-shadow: 0 0 12px rgba(120, 160, 255, 1);

    animation: hintPulse 1.5s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.6; }
}

/* ============================================
   АКТИВНАЯ КАРТОЧКА
   ============================================ */
.game-card.active {
    border-color: rgba(180, 200, 255, 1);
    transform: translateY(-4px) scale(1.04);
    box-shadow:
        0 0 0 2px rgba(138, 180, 255, 0.9),
        0 15px 45px rgba(80, 120, 255, 0.75),
        0 0 55px rgba(80, 120, 255, 0.6),
        inset 0 1px 0 rgba(180, 200, 255, 0.7);
    animation: activeCardPulse 2s ease-in-out infinite;
}

.game-card.active::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        rgba(138, 180, 255, 0.15) 0%,
        transparent 50%,
        rgba(77, 107, 255, 0.15) 100%
    );
    pointer-events: none;
}

.game-card.active .game-card-img {
    transform: scale(1.06);
}

.game-card.active .game-card-overlay {
    opacity: 1;
    background: linear-gradient(
        180deg,
        transparent 40%,
        rgba(80, 120, 255, 0.5) 100%
    );
}

.game-card.active .game-card-hint {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(180, 200, 255, 1);
}

@keyframes activeCardPulse {
    0%, 100% {
        box-shadow:
            0 0 0 2px rgba(138, 180, 255, 0.9),
            0 15px 45px rgba(80, 120, 255, 0.75),
            0 0 55px rgba(80, 120, 255, 0.6),
            inset 0 1px 0 rgba(180, 200, 255, 0.7);
    }
    50% {
        box-shadow:
            0 0 0 2px rgba(180, 200, 255, 1),
            0 18px 55px rgba(80, 120, 255, 0.95),
            0 0 75px rgba(80, 120, 255, 0.8),
            inset 0 1px 0 rgba(200, 220, 255, 0.9);
    }
}

/* ============================================
   МАГАЗИН — СПИСОК
   ============================================ */
.shop-header {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1.5px solid rgba(150, 180, 255, 0.2);
    text-align: center;
}

.shop-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 15px rgba(120, 160, 255, 0.9));
}

.shop-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;

    background: linear-gradient(90deg, #ffffff, #8ab4ff, #4d6bff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px rgba(100, 150, 255, 0.8));
}

.shop-header p {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: rgba(200, 215, 255, 0.6);
    text-transform: uppercase;
}

.shop-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-item {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 14px 18px;
    border-radius: 14px;

    border: 1.5px solid rgba(150, 180, 255, 0.35);
    background: rgba(20, 30, 80, 0.4);

    transition: transform 0.3s, background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.shop-item:hover {
    background: rgba(50, 80, 180, 0.5);
    border-color: rgba(150, 180, 255, 0.85);
    box-shadow:
        0 0 25px rgba(80, 120, 255, 0.5),
        inset 0 1px 0 rgba(180, 200, 255, 0.5);
    transform: translateX(6px);
}

.shop-item.bought {
    background: rgba(40, 180, 80, 0.25);
    border-color: rgba(92, 255, 160, 0.75);
    box-shadow:
        0 0 25px rgba(92, 255, 160, 0.45),
        inset 0 1px 0 rgba(180, 255, 210, 0.5);
}

.shop-item.affordable {
    animation: affordablePulse 1.4s ease-in-out infinite;
    border-color: rgba(92, 255, 160, 0.85);
    background: rgba(40, 180, 80, 0.15);
}

.shop-item.affordable .shop-item-buy {
    background: linear-gradient(135deg, rgba(92, 255, 160, 0.6), rgba(40, 220, 130, 0.7));
    border-color: rgba(92, 255, 160, 0.9);
    box-shadow: 0 0 20px rgba(92, 255, 160, 0.6);
    animation: buyButtonPulse 1.4s ease-in-out infinite;
}

@keyframes affordablePulse {
    0%, 100% {
        box-shadow:
            0 0 15px rgba(92, 255, 160, 0.4),
            inset 0 1px 0 rgba(180, 255, 210, 0.4);
    }
    50% {
        box-shadow:
            0 0 35px rgba(92, 255, 160, 0.85),
            0 0 60px rgba(92, 255, 160, 0.5),
            inset 0 1px 0 rgba(180, 255, 210, 0.7);
    }
}

@keyframes buyButtonPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(92, 255, 160, 0.5); }
    50% {
        box-shadow:
            0 0 30px rgba(92, 255, 160, 1),
            0 0 50px rgba(92, 255, 160, 0.6);
    }
}

.shop-item-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px rgba(120, 160, 255, 0.9));
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.shop-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shop-item-name {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
}

.shop-item-bonus {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #8ab4ff;
    text-shadow: 0 0 8px rgba(120, 160, 255, 0.9);
}

.shop-item-price {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #8ab4ff;
    flex-shrink: 0;
    white-space: nowrap;
}

.shop-item-buy {
    padding: 8px 16px;
    border-radius: 10px;

    border: 1.5px solid rgba(150, 180, 255, 0.6);
    background: linear-gradient(135deg, rgba(80, 120, 255, 0.5), rgba(40, 80, 220, 0.6));

    color: #ffffff;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    cursor: pointer;
    flex-shrink: 0;

    transition: transform 0.25s, background 0.3s, box-shadow 0.3s;
}

.shop-item-buy:hover {
    background: linear-gradient(135deg, rgba(120, 160, 255, 0.7), rgba(60, 110, 255, 0.8));
    box-shadow: 0 0 25px rgba(80, 120, 255, 0.7);
    transform: translateY(-2px);
}

.shop-item.bought .shop-item-buy {
    background: rgba(40, 180, 80, 0.4);
    border-color: rgba(92, 255, 160, 0.75);
    cursor: default;
    pointer-events: none;
    color: #5cffa0;
}

/* ============================================
   НАПОЛНЕНИЕ ЛЕВОГО БЛОКА
   ============================================ */
.clicker-header {
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    text-align: center;
}

.clicker-header h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;

    background: linear-gradient(90deg, #ffffff, #8ab4ff, #4d6bff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px rgba(100, 150, 255, 0.8));
}

.clicker-top-row {
    position: absolute;
    top: 90px;
    left: 15px;
    right: 15px;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.clicker-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.clicker-stat-num {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(120, 160, 255, 0.9);
}

.clicker-stat-label {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(200, 215, 255, 0.6);
    text-align: center;
    line-height: 1.3;
}

.clicker-ax-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.clicker-ax-label {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1;

    background: linear-gradient(135deg, #ffffff 0%, #8ab4ff 50%, #4d6bff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(120, 160, 255, 0.9));
}

.clicker-ax-num {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1;

    background: linear-gradient(135deg, #ffffff 0%, #8ab4ff 50%, #4d6bff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 18px rgba(100, 150, 255, 0.9));
}

/* ============================================
   КРИСТАЛЛ
   ============================================ */
.clicker-crystal {
    position: absolute;
    top: 200px;
    left: 50%;
    transform: translateX(-50%);

    width: 140px;
    height: 140px;

    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform 0.1s ease;
}

.clicker-crystal:active {
    transform: translateX(-50%) scale(0.92);
}

.crystal-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    animation: crystalFloat 3.5s ease-in-out infinite;
}

.clicker-crystal:hover .crystal-inner {
    animation-play-state: paused;
    transform: scale(1.08);
    transition: transform 0.3s ease;
}

.crystal-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(120, 160, 255, 0.55) 0%,
        rgba(80, 120, 255, 0.25) 40%,
        transparent 70%
    );

    filter: blur(15px);
    pointer-events: none;
    animation: crystalPulse 2.5s ease-in-out infinite;
}

.crystal-svg {
    width: 100%;
    height: 100%;

    filter: drop-shadow(0 0 20px rgba(120, 160, 255, 0.9))
            drop-shadow(0 0 40px rgba(80, 120, 255, 0.5));

    pointer-events: none;
}

@keyframes crystalFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-10px) rotate(3deg); }
}

@keyframes crystalPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.15); }
}

.clicker-crystal.clicked .crystal-svg {
    animation: crystalClick 0.25s ease;
}

@keyframes crystalClick {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.clicker-crystal.denied {
    animation: crystalDenied 0.4s ease;
}

@keyframes crystalDenied {
    0%, 100% { transform: translateX(-50%) scale(1); }
    20%      { transform: translateX(-54%) scale(1) rotate(-3deg); }
    40%      { transform: translateX(-46%) scale(1) rotate(3deg); }
    60%      { transform: translateX(-52%) scale(1) rotate(-2deg); }
    80%      { transform: translateX(-48%) scale(1) rotate(2deg); }
}

.clicker-popups {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
}

.clicker-popup {
    position: absolute;
    left: 50%;
    top: 50%;

    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 1px;

    color: #ffffff;
    text-shadow:
        0 0 10px rgba(120, 160, 255, 1),
        0 0 20px rgba(80, 120, 255, 0.8);

    pointer-events: none;
    animation: popupFloat 0.9s ease-out forwards;

    white-space: nowrap;
}

@keyframes popupFloat {
    0%   { opacity: 1; transform: translate(-50%, -50%) scale(0.6); }
    30%  { opacity: 1; transform: translate(-50%, -90%) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%, -180%) scale(0.9); }
}

/* ============================================
   СЧЁТЧИК ЗАРЯДОВ
   ============================================ */
.clicker-limit {
    position: absolute;
    top: 355px;
    left: 50%;
    transform: translateX(-50%);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 18px;
    border-radius: 999px;

    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;

    color: #ffffff;
    background: rgba(20, 30, 80, 0.55);

    border: 1.5px solid rgba(150, 180, 255, 0.5);
    box-shadow:
        0 0 15px rgba(80, 120, 255, 0.5),
        inset 0 1px 0 rgba(180, 200, 255, 0.4);

    text-shadow: 0 0 10px rgba(120, 160, 255, 0.9);
    white-space: nowrap;

    transition: color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.clicker-limit.expired {
    color: #ff5c5c;
    border-color: rgba(255, 92, 92, 0.9);
    box-shadow:
        0 0 25px rgba(255, 92, 92, 0.7),
        inset 0 1px 0 rgba(255, 180, 180, 0.5);
    text-shadow: 0 0 12px rgba(255, 92, 92, 1);
    animation: limitBlink 1s ease-in-out infinite;
}

@keyframes limitBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

.clicker-limit.full {
    color: #5cffa0;
    border-color: rgba(92, 255, 160, 0.9);
    box-shadow:
        0 0 25px rgba(92, 255, 160, 0.7),
        inset 0 1px 0 rgba(180, 255, 210, 0.5);
    text-shadow: 0 0 12px rgba(92, 255, 160, 1);
    animation: limitFullPulse 1.5s ease-in-out infinite;
}

@keyframes limitFullPulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% {
        transform: translateX(-50%) scale(1.08);
        box-shadow:
            0 0 40px rgba(92, 255, 160, 1),
            0 0 60px rgba(92, 255, 160, 0.6),
            inset 0 1px 0 rgba(180, 255, 210, 0.7);
    }
}

/* ============================================
   ПРОГРЕСС XP
   ============================================ */
.clicker-progress {
    position: absolute;
    bottom: 25px;
    left: 20px;
    right: 20px;

    display: flex;
    flex-direction: column;
    gap: 8px;
}

.clicker-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(200, 215, 255, 0.8);
}

.clicker-progress-info span:first-child {
    color: #8ab4ff;
    filter: drop-shadow(0 0 8px rgba(120, 160, 255, 0.9));
}

.clicker-progress-bar {
    width: 100%;
    height: 12px;
    border-radius: 999px;

    border: 1.5px solid rgba(150, 180, 255, 0.4);
    background: rgba(10, 18, 50, 0.6);

    overflow: hidden;
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(80, 120, 255, 0.2);
}

.clicker-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;

    background: linear-gradient(90deg, #4d6bff, #8ab4ff);
    box-shadow:
        0 0 12px rgba(120, 160, 255, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);

    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   МОДАЛЬНЫЕ ОКНА
   ============================================ */
.modal-panel {
    position: fixed;
    right: 20px;
    bottom: 20px;
    top: 110px;

    width: 380px;
    padding: 40px 32px 36px;

    border-radius: 24px;
    border: 1.5px solid rgba(150, 180, 255, 0.5);

    background: rgba(12, 18, 55, 0.75);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);

    box-shadow:
        0 -10px 60px rgba(80, 120, 255, 0.35),
        0 0 40px rgba(80, 120, 255, 0.2),
        inset 0 1px 0 rgba(180, 200, 255, 0.4);

    transform: translateY(110%);
    opacity: 0;
    visibility: hidden;

    transition:
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.5s ease,
        visibility 0.5s ease;

    z-index: 999;
    overflow-y: auto;
}

.modal-panel.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid rgba(150, 180, 255, 0.5);
    background: rgba(50, 80, 180, 0.3);
    color: #e6ecff;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
}

.modal-close:hover {
    background: rgba(80, 120, 255, 0.5);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: left;

    background: linear-gradient(90deg, #ffffff, #8ab4ff, #4d6bff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px rgba(100, 150, 255, 0.8));
    margin-bottom: 6px;
}

.modal-subtitle {
    text-align: left;
    color: rgba(200, 215, 255, 0.75);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-form input {
    padding: 14px 18px;
    border-radius: 12px;
    border: 1.5px solid rgba(150, 180, 255, 0.35);
    background: rgba(20, 30, 80, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 0.9rem;
    letter-spacing: 1px;
    outline: none;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.modal-form input::placeholder {
    color: rgba(180, 200, 255, 0.5);
}

.modal-form input:focus {
    border-color: rgba(120, 160, 255, 0.9);
    background: rgba(30, 45, 110, 0.55);
    box-shadow: 0 0 24px rgba(80, 120, 255, 0.5);
}

.modal-form input:-webkit-autofill,
.modal-form input:-webkit-autofill:hover,
.modal-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0 1000px rgba(30, 45, 110, 0.9) inset;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: #ffffff;
}

.modal-submit {
    margin-top: 10px;
    padding: 15px;
    border-radius: 12px;
    border: 1.5px solid rgba(150, 180, 255, 0.6);
    background: linear-gradient(135deg, rgba(80, 120, 255, 0.5), rgba(40, 80, 220, 0.6));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.modal-submit:hover {
    background: linear-gradient(135deg, rgba(120, 160, 255, 0.7), rgba(60, 110, 255, 0.8));
    box-shadow: 0 0 35px rgba(80, 120, 255, 0.7);
    transform: translateY(-2px);
}

.modal-submit:active {
    transform: translateY(0);
}

/* ============================================
   ПЕРЕКЛЮЧАТЕЛИ
   ============================================ */
.modal-switch {
    margin-top: 22px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(200, 215, 255, 0.7);
    letter-spacing: 1px;
}

.modal-switch a {
    color: #8ab4ff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
}

.modal-switch a:hover {
    color: #ffffff;
    text-shadow: 0 0 14px rgba(120, 160, 255, 1);
}

.modal-switch a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: linear-gradient(90deg, #8ab4ff, #4d6bff);
    box-shadow: 0 0 8px rgba(120, 160, 255, 0.9);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.modal-switch a:hover::after {
    transform: scaleX(1);
}

.modal-switch-forgot {
    margin-top: 18px;
    margin-bottom: 8px;
}

.modal-switch-forgot a {
    color: rgba(200, 215, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
    border-bottom: 1px dashed rgba(200, 215, 255, 0.4);
    padding-bottom: 2px;
}

.modal-switch-forgot a:hover {
    color: #8ab4ff;
    text-shadow: 0 0 14px rgba(120, 160, 255, 1);
    border-bottom-color: #8ab4ff;
    border-bottom-style: solid;
}

.modal-switch-forgot a::after {
    display: none;
}

/* ============================================
   ТОСТ
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;

    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    padding: 16px 28px;
    border-radius: 14px;

    border: 1.5px solid rgba(150, 180, 255, 0.5);
    background: rgba(15, 25, 70, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(80, 120, 255, 0.3),
        inset 0 1px 0 rgba(150, 180, 255, 0.4);

    color: #e6ecff;
    font-size: 0.95rem;
    letter-spacing: 1px;
    font-weight: 500;

    display: flex;
    align-items: center;
    gap: 12px;

    pointer-events: auto;
    white-space: nowrap;

    animation: toastIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.hide {
    animation: toastOut 0.4s ease forwards;
}

.toast-icon {
    font-size: 1.2rem;
}

.toast.success {
    border-color: rgba(80, 255, 150, 0.5);
}

.toast.error {
    border-color: rgba(255, 100, 100, 0.5);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(30px) scale(0.9); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(20px) scale(0.9); }
}

/* ============================================
   АНИМАЦИИ
   ============================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   ЛИДЕРЫ — ПРОФИЛЬ + ТАБЛИЦА
   ============================================ */
.leaders-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 4px 0;
}

.leaders-profile {
    display: flex;
    align-items: center;
    gap: 18px;

    padding: 20px 22px;
    border-radius: 18px;

    border: 2px solid rgba(150, 180, 255, 0.4);
    background: rgba(20, 30, 80, 0.35);

    box-shadow:
        0 0 25px rgba(80, 120, 255, 0.25),
        inset 0 1px 0 rgba(180, 200, 255, 0.35);

    transition: border-color 0.4s, box-shadow 0.4s, background 0.4s;
}

.leaders-profile .profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 1px;

    background: linear-gradient(135deg, #4d6bff, #8ab4ff);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);

    box-shadow:
        0 0 20px rgba(80, 120, 255, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.leaders-profile .profile-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.leaders-profile .profile-name {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;

    background: linear-gradient(90deg, #ffffff, #8ab4ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(120, 160, 255, 0.7));
}

.leaders-profile .profile-rank {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(200, 215, 255, 0.75);
}

.leaders-profile .profile-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.leaders-profile .profile-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.leaders-profile .profile-stat-num {
    font-size: 0.95rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(120, 160, 255, 0.8);
}

.leaders-profile .profile-stat-label {
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(200, 215, 255, 0.6);
}

/* Кнопка "Повысить уровень" */
.prestige-btn-main {
    padding: 12px 22px;
    border-radius: 999px;

    border: 2px solid rgba(255, 200, 100, 0.7);
    background: linear-gradient(135deg, rgba(255, 180, 60, 0.5), rgba(200, 120, 20, 0.6));

    color: #ffffff;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;

    cursor: pointer;
    flex-shrink: 0;

    box-shadow:
        0 0 20px rgba(255, 180, 60, 0.5),
        inset 0 1px 0 rgba(255, 230, 180, 0.5);

    transition: transform 0.25s, box-shadow 0.3s, background 0.3s;
}

.prestige-btn-main:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255, 200, 100, 0.7), rgba(230, 150, 40, 0.85));
    box-shadow:
        0 0 35px rgba(255, 180, 60, 0.9),
        0 0 60px rgba(255, 180, 60, 0.5),
        inset 0 1px 0 rgba(255, 240, 200, 0.7);
}

.prestige-btn-main:active {
    transform: translateY(0) scale(0.97);
}

/* Ранги — цвета рамки профиля */
.leaders-profile.rank-bronze {
    border-color: rgba(205, 127, 50, 0.9);
    box-shadow: 0 0 30px rgba(205, 127, 50, 0.55), inset 0 1px 0 rgba(255, 200, 130, 0.4);
}
.leaders-profile.rank-silver {
    border-color: rgba(192, 192, 192, 0.95);
    box-shadow: 0 0 30px rgba(200, 200, 200, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.leaders-profile.rank-gold {
    border-color: rgba(255, 215, 0, 1);
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.7), inset 0 1px 0 rgba(255, 240, 150, 0.5);
}
.leaders-profile.rank-diamond {
    border-color: rgba(150, 230, 255, 1);
    box-shadow: 0 0 40px rgba(150, 230, 255, 0.8), inset 0 1px 0 rgba(220, 245, 255, 0.6);
}
.leaders-profile.rank-platinum {
    border-color: rgba(200, 255, 230, 1);
    box-shadow: 0 0 45px rgba(200, 255, 230, 0.85), inset 0 1px 0 rgba(230, 255, 245, 0.7);
}
.leaders-profile.rank-emerald {
    border-color: rgba(80, 255, 150, 1);
    box-shadow: 0 0 50px rgba(80, 255, 150, 0.9), inset 0 1px 0 rgba(180, 255, 210, 0.7);
}
.leaders-profile.rank-ruby {
    border-color: rgba(255, 80, 120, 1);
    box-shadow: 0 0 55px rgba(255, 80, 120, 0.9), inset 0 1px 0 rgba(255, 180, 200, 0.7);
}
.leaders-profile.rank-axerion {
    border-color: rgba(180, 120, 255, 1);
    background: rgba(80, 40, 180, 0.4);
    box-shadow:
        0 0 60px rgba(180, 120, 255, 0.9),
        0 0 100px rgba(120, 80, 255, 0.6),
        inset 0 1px 0 rgba(230, 200, 255, 0.7);
}

/* Таблица лидеров */
.leaders-table {
    padding: 18px;
    border-radius: 16px;

    border: 1.5px solid rgba(150, 180, 255, 0.35);
    background: rgba(15, 25, 70, 0.4);
}

/* Колонки таблицы */
.leaders-row {
    display: grid;
    grid-template-columns: 40px 1fr 90px 90px 90px 50px;
    align-items: center;
    gap: 10px;

    padding: 12px 14px;
    border-radius: 10px;

    font-size: 0.85rem;

    transition: background 0.25s;
}

.leaders-row.head {
    font-size: 0.62rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(200, 215, 255, 0.55);
    border-bottom: 1.5px solid rgba(150, 180, 255, 0.25);
    border-radius: 0;
    padding-bottom: 10px;
    margin-bottom: 8px;
}

.leaders-row:not(.head) {
    border-bottom: 1px solid rgba(150, 180, 255, 0.1);
    margin-bottom: 6px;
}

.leaders-row:not(.head):last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.leaders-row:not(.head):hover {
    background: rgba(80, 120, 255, 0.15);
}

.leaders-row.me {
    background: rgba(80, 120, 255, 0.22);
    border: 1.5px solid rgba(150, 180, 255, 0.55);
    box-shadow: 0 0 20px rgba(80, 120, 255, 0.35);
}

.leaders-row .col-place {
    text-align: center;
    font-weight: 900;
    color: #8ab4ff;
}

.leaders-row .col-name {
    font-weight: 700;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaders-row .col-xp {
    text-align: right;
    font-weight: 700;
    color: #ffd27a;
    text-shadow: 0 0 8px rgba(255, 210, 120, 0.6);
}

.leaders-row .col-level {
    text-align: center;
    font-weight: 900;
    color: #ffd700;
}

.leaders-row .col-inf {
    text-align: right;
    font-weight: 700;
    color: #8ab4ff;
}

/* Модалка престижа */
.prestige-warning {
    text-align: left;
    color: rgba(200, 215, 255, 0.85);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.prestige-warning p {
    margin-bottom: 10px;
}

.prestige-warning strong {
    color: #ff8b8b;
    text-shadow: 0 0 8px rgba(255, 100, 100, 0.5);
}

.prestige-warning ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.prestige-warning li {
    padding: 6px 0 6px 22px;
    position: relative;
    color: rgba(200, 215, 255, 0.75);
}

.prestige-warning li::before {
    content: '⚠';
    position: absolute;
    left: 0;
    color: #ffb85c;
}

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

.prestige-btn {
    flex: 1;
    padding: 14px;
    border-radius: 12px;

    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;

    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.3s, background 0.3s;
}

.prestige-no {
    border: 1.5px solid rgba(150, 180, 255, 0.5);
    background: rgba(20, 30, 80, 0.5);
    color: #e6ecff;
}

.prestige-no:hover {
    background: rgba(50, 80, 180, 0.6);
    box-shadow: 0 0 25px rgba(80, 120, 255, 0.5);
    transform: translateY(-2px);
}

.prestige-yes {
    border: 1.5px solid rgba(255, 180, 60, 0.8);
    background: linear-gradient(135deg, rgba(255, 180, 60, 0.6), rgba(200, 120, 20, 0.7));
    color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 180, 60, 0.5);
}

.prestige-yes:hover {
    background: linear-gradient(135deg, rgba(255, 200, 100, 0.8), rgba(230, 150, 40, 0.9));
    box-shadow: 0 0 35px rgba(255, 180, 60, 0.9);
    transform: translateY(-2px);
}

.prestige-btn:active {
    transform: translateY(0) scale(0.97);
}

/* ============================================
   АДАПТИВ
   ============================================ */
@media (max-width: 1200px) {
    .center-nav {
        gap: 18px;
        padding: 12px 25px;
        left: 47%;
    }
    .center-nav > a,
    .center-nav .dropdown > a {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    .arrow {
        width: 6px;
        height: 6px;
    }

    .game-side-menu {
        width: 170px;
        padding: 14px 10px;
    }

    .game-side-btn {
        padding: 12px 14px;
        font-size: 0.75rem;
    }

    .leaders-row {
        grid-template-columns: 32px 1fr 70px 70px 70px 40px;
        gap: 8px;
        font-size: 0.78rem;
    }
}

@media (max-width: 900px) {
    .logo-oval,
    .glass-btn,
    .center-nav {
        padding: 10px 22px;
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    .logo-oval {
        top: 15px;
        left: 15px;
    }
    .auth-buttons {
        top: 15px;
        right: 15px;
        gap: 8px;
    }
    .center-nav {
        top: 80px;
        left: 50%;
        gap: 14px;
    }
    .center-nav > a,
    .center-nav .dropdown > a {
        font-size: 0.7rem;
    }

    .user-oval {
        top: 15px;
        right: 15px;
        padding: 10px 18px;
        gap: 10px;
    }
    .user-name {
        font-size: 0.8rem;
        max-width: 120px;
    }

    .hero {
        padding: 180px 20px 80px;
    }

    .play-cta {
        flex-direction: column;
        text-align: center;
        max-width: 100%;
        padding: 16px 22px;
        gap: 10px;
    }

    .play-cta-text {
        font-size: 0.85rem;
    }

    .play-cta-text strong {
        font-size: 0.9rem;
    }

    .features {
        padding: 80px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 35px 25px;
    }

    .soon {
        padding: 80px 20px;
    }

    .soon-box {
        padding: 50px 25px;
    }

    .soon-socials {
        flex-direction: column;
        align-items: stretch;
    }

    .soon-btn {
        justify-content: center;
    }

    .game-slot {
        flex-direction: column;
        gap: 18px;
        padding: 20px 20px 60px;
    }

    .game-slot-box {
        width: 100%;
        max-width: 340px;
        height: 400px;
    }

    .game-slot-side {
        width: 100%;
        height: auto;
        min-height: 400px;
        flex-direction: column;
    }

    .game-side-menu {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 12px;
        border-right: none;
        border-bottom: 1.5px solid rgba(150, 180, 255, 0.2);
        gap: 10px;
    }

    .game-side-btn {
        flex-shrink: 0;
        padding: 10px 14px;
        font-size: 0.72rem;
    }

    .game-side-content {
        flex-direction: column;
        height: auto;
    }

    .game-cards-zone {
        width: 100%;
        flex-direction: row;
        height: auto;
        max-height: 200px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .game-card {
        flex-shrink: 0;
    }

    .game-shop {
        padding: 20px;
        max-height: 350px;
    }

    .game-shop::before {
        display: none;
    }

    .modal-panel {
        right: 10px;
        left: 10px;
        bottom: 10px;
        top: auto;
        max-height: 80vh;
        width: auto;
        padding: 35px 22px 30px;
    }
    .modal-title {
        font-size: 1.3rem;
    }

    .leaders-row {
        grid-template-columns: 26px 1fr 55px 55px 55px 30px;
        gap: 6px;
        font-size: 0.72rem;
        padding: 10px 8px;
    }
    .leaders-profile {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}

/* Ограниченный скролл для остальных лидеров */
.leaders-rest {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 160, 255, 0.5) transparent;
}

.leaders-rest::-webkit-scrollbar {
    width: 6px;
}

.leaders-rest::-webkit-scrollbar-thumb {
    background: rgba(120, 160, 255, 0.5);
    border-radius: 3px;
}

.leaders-rest::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 160, 255, 0.8);
}

.user-oval-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #05060f;

    border: 1.5px solid rgba(150, 180, 255, 0.6);
    box-shadow: 0 0 10px rgba(80, 120, 255, 0.5);
}