.pong-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 3, 18, 0);
    z-index: 99998;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transition: background-color 0.4s ease;
}
.pong-overlay.pong-active {
    background-color: rgba(0, 3, 18, 0.92);
    pointer-events: all;
}

.pong-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 36px;
    color: white;
    cursor: pointer;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.pong-overlay.pong-active .pong-close {
    opacity: 1;
}
.pong-close:hover {
    color: #226DFB;
}

.pong-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.pong-overlay.pong-active .pong-wrapper {
    opacity: 1;
    transform: scale(1);
}

.pong-score {
    font-family: var(--font-family);
    font-size: 20px;
    color: #B2B4BB;
    letter-spacing: 2px;
}
.pong-score span {
    color: #ffffff;
    font-weight: 600;
}

.pong-canvas {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: #0A0E1A;
}

.pong-hint {
    font-family: var(--font-family);
    font-size: 13px;
    color: #7a7d87;
}

.pong-message {
    position: absolute;
    font-family: var(--font-family);
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.pong-message.pong-msg-visible {
    opacity: 1;
}
