/* Full-screen game overlays: game-over, start countdown, toast, goal animation */

/* ── Game-over dialog ─────────────────────────────────────────────── */
#gameOverDialog {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    z-index: 2500;
    display: flex; align-items: center; justify-content: center;
    padding: 24px; box-sizing: border-box;
    background: rgba(8,8,22,0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: fadeIn 0.3s ease both;
}
#gameOverDialog.go-exit { animation: fadeOut 0.28s ease both; }

/* backdrop is now the dialog itself — this div is no longer needed */
.go-backdrop { display: none; }

.go-card {
    position: relative;
    width: 100%; max-width: 320px;
    padding: 36px 28px 32px;
    border-radius: 30px;
    text-align: center;
    background: var(--glass);
    border: 1px solid var(--stroke);
    backdrop-filter: blur(28px) saturate(150%);
    -webkit-backdrop-filter: blur(28px) saturate(150%);
    box-shadow: 0 32px 80px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,255,255,0.10);
    animation: cardRiseFlat 0.45s var(--ease-out) both;
    display: flex; flex-direction: column; align-items: center; gap: 0;
}

.go-icon {
    width: 88px; height: 88px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.go-icon--win {
    background: radial-gradient(circle at 40% 35%, rgba(251,191,36,0.22), rgba(245,158,11,0.08));
    border: 1.5px solid rgba(251,191,36,0.35);
    color: #fbbf24;
    box-shadow: 0 0 32px rgba(251,191,36,0.3);
}
.go-icon--lose {
    background: radial-gradient(circle at 40% 35%, rgba(244,63,94,0.18), rgba(124,58,237,0.08));
    border: 1.5px solid rgba(244,63,94,0.3);
    color: #f43f5e;
    box-shadow: 0 0 32px rgba(244,63,94,0.25);
}

.go-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900; font-size: 26px; letter-spacing: 0.5px;
    margin: 0 0 20px;
}
.go-title--win {
    color: #fbbf24;
    text-shadow: 0 0 24px rgba(251,191,36,0.7), 0 0 48px rgba(251,191,36,0.3);
}
.go-title--lose {
    color: #f43f5e;
    text-shadow: 0 0 24px rgba(244,63,94,0.7), 0 0 48px rgba(124,58,237,0.4);
}

.go-score {
    display: flex; align-items: center; gap: 18px;
    margin-bottom: 28px;
    padding: 14px 28px;
    border-radius: 18px;
    background: rgba(0,0,0,0.28);
    border: 1px solid var(--stroke-soft);
}
.go-score-block { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.go-score-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 38px; font-weight: 900; line-height: 1;
    color: #eef1f8;
}
.go-score-lbl {
    font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--text-muted);
}
.go-score-sep {
    font-size: 26px; font-weight: 300; color: var(--stroke);
    line-height: 1;
}
.go-score--me   .go-score-num { color: var(--neon-cyan); }
.go-score--opp  .go-score-num { color: #94a3b8; }

.go-btn { width: 100%; }
/* ─────────────────────────────────────────────────────────────────── */

#startCountdown {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.78);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: #39ff14;
    font-family: 'Montserrat', 'Arial', sans-serif;
    font-weight: bold;
    letter-spacing: 4px;
    text-shadow: 0 0 40px currentColor, 0 0 80px currentColor, 0 4px 16px #000;
    transition: opacity 0.35s;
    opacity: 1;
    pointer-events: none;
    text-align: center;
}
@keyframes countdownPop {
    0%   { transform: scale(2.8); opacity: 0; }
    35%  { transform: scale(0.88); opacity: 1; }
    65%  { transform: scale(1.06); opacity: 1; }
    100% { transform: scale(1);    opacity: 1; }
}
@keyframes countdownGo {
    0%   { transform: scale(0.5); opacity: 0; letter-spacing: 16px; }
    40%  { transform: scale(1.15); opacity: 1; letter-spacing: 6px; }
    100% { transform: scale(1);    opacity: 1; letter-spacing: 4px; }
}

/* Toast Bildirimi Stilleri */
.toast-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.toast-notification.show {
    opacity: 1;
    visibility: visible;
}

/* Gol Animasyonu Stilleri */
.goal-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 72px;
    font-weight: bold;
    text-shadow: 0 0 20px currentColor,
                 0 0 40px currentColor;
    z-index: 2000;
    opacity: 0;
    display: none;
    font-family: 'Montserrat', 'Arial', sans-serif;
    letter-spacing: 2px;
    pointer-events: none;
    text-align: center;
    transition: none;
}

.goal-animation.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    animation: goalPulse 1.5s ease-in-out forwards;
}

@keyframes goalPulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}
