body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    color: #333;
}

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

.main-content {
    display: flex;
    width: 100%;
    max-width: 1200px;
    justify-content: space-between;
    align-items: flex-start;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex: 1;
}

.players-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 300px;
    margin-left: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.players-panel h3 {
    margin-top: 0;
    color: #333;
}

#players-list, #bets-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
}

#players-list div, #bets-list div {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.balance {
    font-size: 1.2em;
    margin-bottom: 20px;
    background: rgba(102, 126, 234, 0.1);
    padding: 10px;
    border-radius: 10px;
}

.bet-section {
    margin-bottom: 20px;
}

.bet-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.bet-section input {
    padding: 10px;
    font-size: 1em;
    margin-right: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    width: 120px;
}

.bet-section button {
    padding: 12px 25px;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: transform 0.2s;
}

.bet-section button:hover {
    transform: scale(1.05);
}

.bet-section button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.game-area {
    margin-bottom: 20px;
}

.multiplier {
    font-size: 2em;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.multiplier.pulse {
    color: #ff0000;
    animation: pulse 0.5s;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

body {
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    background-size: 400% 400%;
    animation: gradient 10s ease infinite;
}

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

#chart {
    border: 1px solid #ccc;
    margin-bottom: 20px;
}

#cash-out {
    padding: 10px 20px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

#cash-out:hover {
    background-color: #d32f2f;
}

#cash-out:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.history {
    text-align: left;
}

.history h3 {
    margin-bottom: 10px;
}

#history-list {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#history-list li {
    padding: 5px 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    .multiplier {
        font-size: 1.5em;
    }

    #chart {
        width: 100%;
        height: auto;
    }

    .bet-section input {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }

    .bet-section button {
        width: 100%;
    }

    #cash-out {
        width: 100%;
    }
}