* {
    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 50%, #7e22ce 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}

.game-code {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Waiting Room */
.waiting-room {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.waiting-room h2 {
    margin-bottom: 30px;
    font-size: 2rem;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.join-section {
    display: flex;
    gap: 10px;
}

.join-section input {
    flex: 1;
    padding: 15px;
    font-size: 1.1rem;
    border: none;
    border-radius: 10px;
    text-align: center;
    text-transform: uppercase;
}

.waiting-text {
    margin-top: 30px;
    font-size: 1.2rem;
    color: #ffd700;
}

.share-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
}

.share-section p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #ffd700;
}

.share-link-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.share-link-box input {
    flex: 1;
    padding: 12px;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    background: white;
    color: #333;
}

/* Buttons */
.btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.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 !important;
}

.btn:disabled:hover {
    transform: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

/* Game Area */
.game-area {
    background: rgba(0,100,0,0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    min-height: 600px;
}

.game-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.pot-info h3 {
    font-size: 1.8rem;
    color: #ffd700;
}

.round-info {
    font-size: 1.2rem;
}

/* Player Area */
.player-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    margin-bottom: 20px;
    min-height: 150px;
}

.opponent-area {
    flex-direction: row-reverse;
}

.my-area {
    flex-direction: row;
}

.player-info {
    min-width: 200px;
}

.player-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.player-info p {
    font-size: 1.1rem;
    margin: 5px 0;
}

.player-status {
    color: #ffd700;
    font-weight: bold;
}

.hand-rank {
    color: #4ade80;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Cards */
.cards {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    width: 80px;
    height: 112px;
    background: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    position: relative;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.card:hover {
    transform: translateY(-5px);
}

.card-back {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-back::before {
    content: '🎴';
    font-size: 3rem;
}

.card-placeholder {
    background: rgba(255,255,255,0.2);
    border: 2px dashed rgba(255,255,255,0.5);
}

.card.red {
    color: #dc2626;
}

.card.black {
    color: #000;
}

.card.highlight {
    border: 3px dashed #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 4px 8px rgba(0,0,0,0.3);
    animation: pulse 2s ease-in-out infinite;
}

.card.highlight-winner {
    border: 3px dashed #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 4px 8px rgba(0,0,0,0.3);
    animation: pulseWinner 2s ease-in-out infinite;
}

.card.highlight-loser {
    border: 3px dashed #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6), 0 4px 8px rgba(0,0,0,0.3);
    animation: pulseLoser 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 4px 8px rgba(0,0,0,0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.9), 0 4px 8px rgba(0,0,0,0.3);
    }
}

@keyframes pulseWinner {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 4px 8px rgba(0,0,0,0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.9), 0 4px 8px rgba(0,0,0,0.3);
    }
}

@keyframes pulseLoser {
    0%, 100% {
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.6), 0 4px 8px rgba(0,0,0,0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(239, 68, 68, 0.9), 0 4px 8px rgba(0,0,0,0.3);
    }
}

.card-value {
    font-size: 1.8rem;
    margin-bottom: 5px;
    line-height: 1;
}

.card-suit {
    font-size: 2rem;
    line-height: 1;
}

/* Community Cards */
.community-cards {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    padding: 20px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
}

.action-buttons button {
    min-width: 100px;
}

.raise-section {
    display: flex;
    gap: 10px;
    align-items: center;
}

.raise-section input {
    width: 100px;
    padding: 10px;
    font-size: 1.1rem;
    border: none;
    border-radius: 10px;
    text-align: center;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.modal-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .card {
        width: 60px;
        height: 84px;
        font-size: 1.2rem;
    }
    
    .card-value {
        font-size: 1.4rem;
    }
    
    .card-suit {
        font-size: 1.5rem;
    }
    
    .player-area {
        flex-direction: column;
        gap: 15px;
    }
    
    .opponent-area {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .raise-section {
        width: 100%;
    }
    
    .raise-section input {
        flex: 1;
    }
}
