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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

.screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.hidden {
    display: none !important;
}

/* Login Screen */
.login-container {
    max-width: 400px;
    margin: auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
}

.login-container h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.login-container p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.login-container input {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.login-container input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.login-container input:focus {
    outline: none;
    border-color: #4CAF50;
    background: rgba(255, 255, 255, 0.2);
}

.login-container button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}

.login-container button:hover {
    transform: scale(1.05);
}

/* Game Screen */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.game-info h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.game-info p {
    font-size: 1.1em;
    opacity: 0.9;
}

.players-list {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.9em;
}

.players-list strong {
    display: block;
    margin-bottom: 8px;
}

#playersList {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.player-tag {
    background: rgba(76, 175, 80, 0.3);
    padding: 5px 12px;
    border-radius: 15px;
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.start-btn {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b6b, #ee5a6f);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}

.start-btn:hover {
    transform: scale(1.05);
}

/* Poker Table */
.table-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.poker-table {
    position: relative;
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16/9;
    background: radial-gradient(ellipse at center, #1a5f1a 0%, #0d3d0d 100%);
    border: 15px solid #8B4513;
    border-radius: 200px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 0 50px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.community-cards {
    display: flex;
    gap: 10px;
    z-index: 10;
}

.players-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.player-spot {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 15px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255 255, 0.2);
    min-width: 120px;
    text-align: center;
    transition: all 0.3s;
}

.player-spot.active {
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    transform: scale(1.1);
}

.player-spot.dealer::after {
    content: '🎯';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 24px;
}

.player-spot.folded {
    opacity: 0.4;
}

.player-name {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

.player-chips {
    font-size: 12px;
    opacity: 0.9;
}

.player-bet {
    background: rgba(255, 215, 0, 0.3);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 12px;
    margin-top: 5px;
}

/* Cards */
.card {
    width: 70px;
    height: 100px;
    background: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: transform 0.3s;
}

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

.card.red {
    color: #e74c3c;
}

.card.black {
    color: #2c3e50;
}

.card-rank {
    font-size: 28px;
    line-height: 1;
}

.card-suit {
    font-size: 32px;
    line-height: 1;
}

.card-back {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
}

/* Player Section */
.player-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
}

.your-cards {
    margin-bottom: 15px;
}

.your-cards h3 {
    margin-bottom: 10px;
}

.cards-display {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.your-info {
    display: flex;
    gap: 30px;
    justify-content: center;
    font-size: 1.2em;
}

/* Controls */
.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
}

.btn {
    padding: 15px 25px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-fold {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.btn-check {
    background: linear-gradient(45deg, #3498db, #2980b9);
}

.btn-call {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
}

.btn-raise {
    background: linear-gradient(45deg, #f39c12, #e67e22);
}

.btn-allin {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
}

.raise-control {
    display: flex;
    gap: 10px;
    align-items: center;
}

.raise-control input {
    width: 100px;
    padding: 15px;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-align: center;
}

/* Message Box */
.message-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 40px;
    border-radius: 20px;
    border: 3px solid #FFD700;
    text-align: center;
    z-index: 1000;
    min-width: 300px;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
}

.message-box h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #FFD700;
}

.message-box p {
    font-size: 1.3em;
    margin: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .poker-table {
        width: 95%;
    }
    
    .card {
        width: 50px;
        height: 70px;
        font-size: 18px;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .your-info {
        flex-direction: column;
        gap: 10px;
    }
}
