:root {
    --bg-color: #f8fafc;
    --text-primary: #0f172a;
    --accent-color: #3b82f6;
    --accent-alt: #f472b6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 800px;
}

.back-btn {
    color: var(--accent-alt);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--accent-alt);
    border-radius: 20px;
    transition: all 0.3s ease;
    background: transparent;
}

.back-btn:hover {
    background: rgba(244, 114, 182, 0.1);
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

h1 span {
    color: var(--accent-color);
}

.score-board {
    display: flex;
    gap: 2rem;
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.divider {
    color: var(--accent-alt);
}

#pong-canvas {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.controls-info {
    color: #64748b;
    font-size: 0.95rem;
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 500px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    z-index: 10;
    margin-top: 55px; /* Offset to center over canvas perfectly given header */
}

.game-over h2 {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.game-over button {
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: #fff;
    border: none;
    font-weight: 800;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.game-over button:hover {
    transform: scale(1.05);
    background: #2563eb;
}
