/* Futbol Pong Oyunu Stilleri */
.pong-wrap {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pong-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    overflow: hidden;
    background: #0d1b2a;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.pong-top-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
    box-sizing: border-box;
    z-index: 10;
}

.pong-scoreboard {
    display: flex;
    gap: 20px;
    align-items: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    margin: 0 auto;
}

.pong-scoreboard .score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.pong-scoreboard .player-label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pong-scoreboard .score {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
}

.pong-scoreboard .score.score-player {
    color: #0fbcf9;
}

.pong-scoreboard .score.score-computer {
    color: #ff4757;
}

.pong-scoreboard .timer {
    color: #ffd700;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.25);
}

.hud-pause-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.hud-pause-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.06);
}

#gameCanvas {
    display: block;
    border-radius: 12px;
    touch-action: none;
    max-width: 100%;
}

.power-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 215, 0, 0.95);
    color: #1a1a2e;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 13px;
    z-index: 20;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
    animation: bounceIn 0.3s ease-out;
}

@keyframes bounceIn {
    0% { transform: translateX(-50%) scale(0.7); opacity: 0; }
    100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

/* Modallar & Overlay */
.screen-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 18, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 50;
    pointer-events: auto;
    border-radius: 16px;
    box-sizing: border-box;
}

.screen-overlay.hidden,
.screen-overlay[style*="display: none"] {
    display: none !important;
}

.game-modal {
    background: linear-gradient(145deg, #1e272e, #141c22);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 24px 20px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    z-index: 51;
    box-sizing: border-box;
}

.game-icon-badge {
    font-size: 40px;
    line-height: 1;
    margin-bottom: -2px;
}

.game-modal-title {
    color: #ffffff !important;
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.game-modal-subtitle {
    color: #94a3b8;
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
}

.game-score-card {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

.score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.score-label {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.score-val {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.score-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
}

.game-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.btn-game {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-game:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-game:active {
    transform: translateY(0);
}

.btn-game-primary {
    background: linear-gradient(135deg, #0fbcf9, #0984e3) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(15, 188, 249, 0.4);
}

.btn-game-danger {
    background: rgba(235, 77, 75, 0.15) !important;
    color: #ff7979 !important;
    border: 1px solid rgba(235, 77, 75, 0.3) !important;
}

.btn-game-danger:hover {
    background: rgba(235, 77, 75, 0.25) !important;
    color: #ff5252 !important;
}
