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

body {
    background: linear-gradient(135deg, #0a0f1e 0%, #0a1a2e 100%);
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    color: white;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
}

.game-area {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.multiplier-display {
    text-align: center;
    font-size: 64px;
    font-weight: bold;
    margin-bottom: 20px;
}

.multiplier-display span {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.x {
    font-size: 32px;
}

#gameCanvas {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin: 20px 0;
}

.round-status {
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
}

#statusText {
    background: #ff6b35;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: bold;
}

#timer {
    font-size: 36px;
    font-weight: bold;
    margin-left: 15px;
    color: #ff6b35;
}

.controls {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.user-info {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: bold;
}

.bet-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.bet-area input {
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 16px;
    text-align: center;
}

.bet-area button {
    padding: 14px;
    border-radius: 10px;
    border: none;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.bet-area button:hover {
    transform: scale(1.02);
}

#placeBetBtn {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
}

#cashoutBtn {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
}

#autoCashoutBtn {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.leaderboard {
    margin-top: 20px;
}

.leaderboard h3 {
    margin-bottom: 15px;
    text-align: center;
}

#leaderboardList {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.login-box {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    min-width: 300px;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin: 20px 0;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.admin-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.admin-card {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.admin-card h3 {
    margin-bottom: 15px;
    color: #ff6b35;
}

.admin-card input, .admin-card button {
    margin: 10px 5px;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
}

.admin-card button {
    background: #ff6b35;
    color: white;
    cursor: pointer;
}

#userList {
    max-height: 400px;
    overflow-y: auto;
}

.user-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}