* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
        font-family: 'Nunito', 'Segoe UI', sans-serif;
        min-height: 100vh;
        padding: 20px;
    }

    .crash-container {
        background: rgba(30, 30, 46, 0.95);
        border-radius: 30px;
        padding: 30px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        max-width: 900px;
        margin: 0 auto;
        backdrop-filter: blur(10px);
    }

    .user-info {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 20px;
        padding: 15px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 15px;
    }

    .user-avatar {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        border: 2px solid #5865F2;
    }

    .user-name {
        font-size: 18px;
        font-weight: bold;
        color: white;
    }

    .multiplier-display {
        text-align: center;
        margin-bottom: 30px;
    }

    .multiplier-value {
        font-size: 72px;
        font-weight: bold;
        background: linear-gradient(135deg, #5865F2, #2ce851);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        animation: pulse 1s ease-in-out infinite;
    }

    @keyframes pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.05); }
    }

    .graph-container {
        background: #11111a;
        border-radius: 15px;
        padding: 20px;
        margin-bottom: 30px;
        height: 300px;
        position: relative;
    }

    canvas {
        width: 100%;
        height: 100%;
    }

    .balance-info {
        background: #11111a;
        padding: 15px;
        border-radius: 12px;
        text-align: center;
        margin-bottom: 20px;
    }

    .balance-value {
        color: #2ce851;
        font-size: 28px;
        font-weight: bold;
    }

    /* КНОПКИ И КОНТРОЛЫ */
    .controls {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
    }

    .bet-input {
        width: 100%;
        padding: 15px;
        background: #11111a;
        border: 2px solid #5865F2;
        border-radius: 12px;
        color: white;
        font-size: 18px;
        font-weight: bold;
        box-sizing: border-box;
        text-align: center;
    }

    .buttons-group {
        display: flex;
        gap: 15px;
    }

    .btn {
        padding: 15px 30px;
        border: none;
        border-radius: 12px;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.2s;
        font-size: 16px;
        flex: 1;
    }

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .btn-start {
        background: linear-gradient(135deg, #5865F2, #4752C4);
        color: white;
    }

    .btn-start:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

    .btn-cashout {
        background: linear-gradient(135deg, #2ce851, #22b840);
        color: white;
    }

    .btn-cashout:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

    .btn-login {
        background: linear-gradient(135deg, #5865F2, #4752C4);
        color: white;
        width: 100%;
    }

    .message {
        text-align: center;
        padding: 10px;
        border-radius: 10px;
        margin-top: 20px;
    }

    .message.error {
        background: rgba(255, 50, 50, 0.2);
        color: #ff6b6b;
    }

    .message.success {
        background: rgba(44, 232, 81, 0.2);
        color: #2ce851;
    }

    .login-container {
        text-align: center;
        padding: 40px;
    }

    .hidden {
        display: none;
    }

    .loading {
        text-align: center;
        padding: 20px;
        color: #888;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0,0,0,0.8);
        border-radius: 10px;
        z-index: 9999;
    }

    /* МОБИЛЬНАЯ АДАПТАЦИЯ */
    @media (max-width: 768px) {
        .crash-container {
            padding: 20px;
            margin: 10px;
        }

        .user-info {
            flex-direction: column;
            text-align: center;
            gap: 10px;
        }

        .user-avatar {
            width: 60px;
            height: 60px;
        }

        .multiplier-value {
            font-size: 48px;
        }

        .graph-container {
            height: 200px;
            padding: 10px;
        }

        .balance-value {
            font-size: 24px;
        }

        .bet-input {
            padding: 12px;
            font-size: 16px;
            text-align: center;
        }

        .buttons-group {
            flex-direction: column;
            gap: 10px;
        }

        .btn {
            padding: 12px;
            font-size: 14px;
        }

        .user-name {
            font-size: 16px;
        }
    }

    @media (max-width: 480px) {
        .crash-container {
            padding: 15px;
        }

        .multiplier-value {
            font-size: 36px;
        }

        .graph-container {
            height: 150px;
        }

        .bet-input, .btn {
            padding: 10px;
            font-size: 14px;
        }

        .balance-value {
            font-size: 20px;
        }
    }