@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
    --bg-color: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --accent-color: #38bdf8;
    --accent-hover: #0ea5e9;
    --btn-bg: rgba(56, 189, 248, 0.1);
    --btn-hover: rgba(56, 189, 248, 0.2);
}

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

body {
    background: radial-gradient(circle at top right, #1e1b4b, var(--bg-color));
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

h2 {
    font-weight: 800;
    font-size: 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.subtitle a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

.subtitle a:hover {
    color: var(--text-primary);
}

.round-info {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 800px;
}

.arena {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 200px;
}

.player-info {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.player-info h3 {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.player-info span {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.move-display {
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    font-size: 5rem;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vs-badge {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-secondary);
    background: rgba(0,0,0,0.3);
    padding: 1rem;
    border-radius: 50%;
}

.controls-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.action-btn {
    background: var(--btn-bg);
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.action-btn:hover {
    background: var(--btn-hover);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.3);
}

.action-btn:active {
    transform: translateY(2px) scale(0.95);
}

.new-game-btn {
    background: linear-gradient(135deg, var(--accent-color), #818cf8);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
    margin: 0 auto 2rem auto;
}

.new-game-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.4);
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.stats-table th, .stats-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
}

.stats-table th {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.stats-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

.stats-table tr:last-child td {
    border-bottom: none;
}

.footer-msg {
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 1rem;
    max-width: 600px;
}

.footer-msg a {
    color: var(--accent-color);
}

.footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-top: 1.5rem;
    transition: transform 0.3s;
}

.footer-logo:hover {
    transform: rotate(360deg) scale(1.1);
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 600px) {
    .arena {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
    .player-card {
        min-width: 0;
    }
    .vs-badge {
        margin: 0;
        padding: 0.5rem;
        font-size: 1.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .action-btn {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    .glass-panel {
        padding: 1rem 0.5rem;
    }
    .move-display {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    .player-info h3 {
        font-size: 1.1rem;
    }
    .player-info span {
        font-size: 1.3rem;
    }
}
