body {
    background: #21245e;
    color: #fff;
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
}

h1 {
    margin-top: 4vw;
    margin-bottom: 2vw;
    font-size: clamp(1.5em, 6vw, 3em);
    letter-spacing: 2px;
}

.pong-container {
    position: relative;
    width: 96vw;
    max-width: 700px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
}

#pong {
    background: #141533;
    display: block;
    width: 100%;
    height: auto;
    border: 3px solid #fff;
    box-shadow: 0 0 20px #000;
    border-radius: 12px;
    margin: 0 auto;
    touch-action: none;
}

#scoreboard {
    font-size: clamp(1.3em, 4vw, 2em);
    margin-top: 1vw;
    letter-spacing: 8px;
    font-family: monospace;
    position: absolute;
    top: 4vw;
    width: 100%;
    left: 0;
    right: 0;
    pointer-events: none;
}

#scoreboard span:first-child {
    color: #00eaff;
}
#scoreboard span:last-child {
    color: #ff9800;
}

#labels {
    position: absolute;
    bottom: 1vw;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 3vw;
    pointer-events: none;
    font-size: clamp(1em, 3vw, 1.4em);
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 1px 8px #000, 0 0 10px #fff2;
}
.player-label {
    color: #00eaff;
    font-size: 1.2em;
}
.ai-label {
    color: #ff9800;
    font-size: 1.25em;
    margin-right: 0.5vw;
    text-shadow: 0 0 8px #ff9800, 0 0 18px #fff2;
}

/* Flash message overlay */
#flash-message {
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    width: 100%; height: 100%;
    background: rgba(24, 21, 53, 0.93);
    z-index: 50;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: clamp(2.2em, 7vw, 4em);
    font-weight: bold;
    letter-spacing: 1px;
    user-select: none;
    transition: opacity 0.2s;
    text-shadow: 0 2px 18px #000, 0 0 18px #fff3;
    border-radius: 0 0 16px 16px;
}
#flash-message .flash-sub {
    font-size: clamp(1em, 2vw, 1.4em);
    margin-top: 1.5em;
    color: #00eaff;
    font-weight: normal;
    text-shadow: 0 2px 8px #000;
}