/* ============================================
   GAME OVER PANELİ
   Harita/menü dili: lacivert cam panel, altın + turkuaz
   ============================================ */

#game-over-panel {
    z-index: 60;
    background:
        radial-gradient(90% 60% at 50% 18%, rgba(15, 32, 54, 0.5) 0%, transparent 70%),
        rgba(3, 7, 13, 0.86);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.go-inner {
    --cm-gold: #f3b53a;
    --cm-gold-light: #ffd97a;
    --cm-cyan: #54d9c9;
    --cm-text: #f3ecd8;
    --cm-muted: #8492ad;
    --cm-line: rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    width: 328px;
    max-width: 94%;
    max-height: 92%;
    padding: 14px 15px 15px;
    border-radius: 18px;
    background:
        radial-gradient(120% 55% at 50% 0%, rgba(243, 181, 58, 0.09) 0%, transparent 56%),
        linear-gradient(180deg, rgba(17, 28, 44, 0.98) 0%, rgba(7, 12, 21, 0.99) 100%);
    border: 1px solid rgba(243, 181, 58, 0.22);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.62),
        0 0 44px rgba(84, 217, 201, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: goSlideIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    box-sizing: border-box;
}

@keyframes goSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- Başlık --- */

.go-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.go-kicker {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--cm-gold);
}

.go-kicker svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

.go-title {
    margin: 0;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 0.4px;
    color: var(--cm-text);
    text-shadow: 0 0 24px rgba(255, 107, 138, 0.28);
}

/* --- Skor kartları --- */

.go-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    width: 100%;
}

.go-score-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 8px 10px 9px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--cm-line);
    box-sizing: border-box;
}

.go-score-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--cm-muted);
}

.go-score-label svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    color: var(--cm-cyan);
    opacity: 0.9;
}

.go-score-value {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0.3px;
    color: var(--cm-gold-light);
    text-shadow: 0 0 18px rgba(243, 181, 58, 0.28);
    font-variant-numeric: tabular-nums;
}

/* --- Yeni rekor --- */

.go-newrecord {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(243, 181, 58, 0.09);
    border: 1px solid rgba(243, 181, 58, 0.26);
    font-size: 8.5px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--cm-gold-light);
    animation: newRecordPulse 1.6s ease-in-out infinite;
}

.go-newrecord svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

@keyframes newRecordPulse {
    0%, 100% {
        box-shadow: 0 0 0 rgba(243, 181, 58, 0);
    }
    50% {
        box-shadow: 0 0 18px rgba(243, 181, 58, 0.22);
    }
}

/* --- Butonlar --- */

.go-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-top: 1px;
}

.go-buttons .btn {
    width: 100%;
}

/* ============================================
   GAME OVER — SKOR GÖNDERME
   ============================================ */

.go-submit-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-top: 1px;
}

.go-input {
    width: 100%;
    height: 34px;
    padding: 0 10px;
    border-radius: 9px;
    border: 1px solid var(--cm-line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--cm-text);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.go-input::placeholder {
    color: var(--cm-muted);
    font-weight: 600;
}

.go-input:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(84, 217, 201, 0.4);
    box-shadow: 0 0 0 2px rgba(84, 217, 201, 0.09);
}

/* ============================================
   GAME OVER — LİDERLİK TABLOSU
   ============================================ */

.go-leaderboard {
    width: 100%;
    margin-top: 1px;
    animation: goSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lb-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0 0 6px;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--cm-gold);
    text-align: center;
}

.lb-title svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

.lb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lb-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--cm-line);
    font-size: 9.5px;
    font-weight: 600;
    color: #b9c6da;
    font-variant-numeric: tabular-nums;
}

.lb-list li:first-child {
    background: rgba(243, 181, 58, 0.09);
    border-color: rgba(243, 181, 58, 0.24);
    color: var(--cm-gold-light);
    font-weight: 800;
}

.lb-list li:nth-child(2) {
    background: rgba(200, 210, 226, 0.05);
    border-color: rgba(200, 210, 226, 0.12);
    color: #cbd5e4;
}

.lb-list li:nth-child(3) {
    background: rgba(205, 127, 50, 0.06);
    border-color: rgba(205, 127, 50, 0.16);
    color: #d9a066;
}

.lb-rank {
    min-width: 16px;
    font-size: 9px;
    font-weight: 900;
    opacity: 0.75;
}

.lb-name {
    flex: 1;
    margin-left: 4px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-score {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.4px;
}

/* --- Kısa ekranlar --- */

@media (max-height: 700px) {
    .go-inner {
        gap: 7px;
        padding: 11px 13px 13px;
    }

    .go-title {
        font-size: 18px;
    }

    .go-score-value {
        font-size: 20px;
    }

    .go-score-section {
        padding: 6px 9px 7px;
    }

    .btn.cm-btn-gold,
    .btn.cm-btn-ghost {
        height: 34px;
    }
}
