body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #0A2E0A;
    font-family: 'Courier New', Courier, monospace;
    color: white;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas {
    display: block;
    background-color: #22C55E;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    max-width: 100%;
    max-height: 100%;
}

#ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.screen {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    pointer-events: auto;
}

.hidden {
    display: none !important;
}

h1 {
    font-size: 4rem;
    text-shadow: 4px 4px 0 #000;
    color: #FBBF24;
    margin-bottom: 2rem;
}

.menu-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

button {
    padding: 1rem 2rem;
    font-size: 1.5rem;
    background: #22C55E;
    border: 4px solid #fff;
    color: white;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.1s;
}

button:hover {
    transform: scale(1.1);
    background: #16a34a;
}

button:active {
    transform: scale(0.95);
}

.settings {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.controls-info {
    margin-top: 2rem;
    display: flex;
    gap: 4rem;
    color: #aaa;
}

/* HUD */
#hud {
    background: transparent;
    pointer-events: none;
    justify-content: flex-start;
    padding-top: 20px;
}

.score-board {
    display: flex;
    gap: 2rem;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 0 #000;
}

.p1-score { color: #3b82f6; } /* Blue */
.p2-score { color: #ef4444; } /* Red */
.timer { color: #FBBF24; }

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    button { padding: 0.5rem 1rem; font-size: 1rem; }
    .score-board { font-size: 2rem; }
}
