:root {
    --bg-color: #0d0d0d;
    --bg-gradient: radial-gradient(circle at center, #1a1a2e, #0d0d0d);
    --gold: #fcc200;
    --accent: #00d2ff;
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --silver: #bdc3c7;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }

body {
    background: var(--bg-color);
    background: var(--bg-gradient);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container { width: 95%; max-width: 1100px; padding: 20px; }

header { text-align: center; margin-bottom: 30px; }
header h1 { font-size: 3.5rem; letter-spacing: 10px; color: var(--gold); text-shadow: 0 0 20px rgba(252, 194, 0, 0.3); }

.switch-game { color: var(--accent); text-decoration: none; font-size: 0.9rem; display: block; margin-top: 10px; }

.battle-arena {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
}

.player-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    width: 320px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.player-card.winner { border-color: var(--gold); box-shadow: 0 0 50px rgba(252, 194, 0, 0.2); transform: scale(1.05); }
.player-card.loser { opacity: 0.5; filter: grayscale(0.8); }

.avatar { width: 50px; height: 50px; background: var(--gold); color: black; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: bold; margin: 0 auto 15px; }
#player-b .avatar { background: var(--accent); }

.action-btn-small {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    cursor: pointer;
    margin-top: 5px;
    transition: all 0.2s;
    font-weight: bold;
}

.action-btn-small:hover {
    background: var(--gold);
    color: black;
}

.ready-status {
    margin: 10px 0;
    font-size: 0.7rem;
    font-weight: bold;
    color: #444;
    background: rgba(0,0,0,0.2);
    padding: 4px;
    border-radius: 4px;
    letter-spacing: 1px;
}
.ready-status.ready { color: #00ff88; text-shadow: 0 0 10px rgba(0,255,136,0.3); }

.bet-controls input {
    width: 100%; padding: 12px; background: rgba(0,0,0,0.5); border: 1px solid var(--glass-border); color: white; border-radius: 12px; text-align: center; font-size: 1.1rem;
}

.choice-display {
    font-size: 5rem;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    background: rgba(0,0,0,0.2);
    border-radius: 20px;
    transition: transform 0.3s;
}

.choice-display.reveal { animation: pop 0.5s ease-out; }

@keyframes pop {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.suit-selection {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.suit-btn {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.05);
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.suit-btn:hover { background: rgba(255,255,255,0.1); transform: translateY(-5px); }
.suit-btn.active { background: var(--gold); border-color: var(--gold); transform: scale(1.1); }

.vs-zone { text-align: center; width: 150px; }
.vs-text { font-size: 3rem; font-weight: 900; opacity: 0.2; }
#countdown { font-size: 1.5rem; font-weight: bold; margin: 20px 0; color: var(--accent); min-height: 2em; }

#battle-btn {
    padding: 15px 30px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(45deg, var(--gold), #ff9a00);
    color: black;
    font-weight: 800;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(252, 194, 0, 0.3);
    transition: all 0.3s;
}

#battle-btn:disabled { background: #333; color: #666; cursor: not-allowed; box-shadow: none; }

.log-container { margin-top: 40px; background: var(--card-bg); border: 1px solid var(--glass-border); border-radius: 20px; padding: 20px; }
#battle-log { height: 120px; overflow-y: auto; font-size: 0.9rem; color: #aaa; }
.log-entry { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.win { color: #00ff88; }
.loss { color: #ff416c; }

@media (max-width: 900px) {
    .battle-arena { flex-direction: column; }
    .vs-zone { order: -1; width: 100%; margin-bottom: 20px; }
}
