#godMapMsg {
    display: none;
    position: fixed;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2150;
    max-width: min(90vw, 520px);
    text-align: center;
    font-family: 'Lilita One', cursive;
    font-size: 1.05rem;
    letter-spacing: .4px;
    color: #fff;
    background: rgba(12,3,32,0.88);
    border: 1.5px solid rgba(168,85,247,0.45);
    border-radius: 999px;
    padding: 11px 26px;
    box-shadow: 0 10px 34px rgba(0,0,0,0.5), 0 0 26px rgba(124,58,237,0.25);
    backdrop-filter: blur(6px);
}
#godMapMsg.show { display: block; }
#godMapMsg .gmm-answer { color: #fbbf24; }

@media (max-width: 520px) {
    #godMapMsg { font-size: .88rem; padding: 9px 18px; top: 3%; }
}

#valider-coord {
    padding: 15px 0;
    font-family: 'Lilita One', cursive;
    font-size: 1.15rem;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.55);
    border: 1.5px solid rgba(168,85,247,0.35);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(88,28,135,0.75), rgba(49,16,94,0.85));
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, color .18s ease;
}
#valider-coord.ready {
    color: #fff;
    border-color: rgba(216,180,254,0.6);
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    box-shadow: 0 8px 28px rgba(124,58,237,0.55), 0 0 22px rgba(168,85,247,0.35);
    animation: godReadyPulse 1.8s ease-in-out infinite;
}
#valider-coord.ready:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
    animation: none;
}
#valider-coord:active { transform: translateY(0); }
#valider-coord:disabled { opacity: .5; cursor: default; animation: none; transform: none; }
@keyframes godReadyPulse {
    0%, 100% { box-shadow: 0 8px 28px rgba(124,58,237,0.55), 0 0 22px rgba(168,85,247,0.30); }
    50%      { box-shadow: 0 8px 28px rgba(124,58,237,0.65), 0 0 38px rgba(216,180,254,0.55); }
}

#valider-coord.shake-hint { animation: godShakeHint .5s ease; }
@keyframes godShakeHint {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-7px); }
    40%, 80% { transform: translateX(7px); }
}

#score-bar-container {
    width: min(88vw, 420px);
    background: rgba(12,3,32,0.88);
    border: 1.5px solid rgba(168,85,247,0.4);
    border-radius: 18px;
    padding: 14px 20px 16px;
    text-align: center;
    box-shadow: 0 14px 44px rgba(0,0,0,0.55), 0 0 40px rgba(124,58,237,0.25);
    backdrop-filter: blur(6px);
}
#score-bar-container .sb-label {
    font-family: 'Lilita One', cursive;
    font-size: .68rem;
    letter-spacing: 2.2px;
    color: rgba(255,255,255,0.45);
}
#score-bar-score {
    font-family: 'Lilita One', cursive;
    font-size: 2.8rem;
    line-height: 1.05;
    margin: 2px 0 10px;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6), 0 0 20px rgba(168,85,247,0.45);
}
#score-bar-container .sb-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}
#score-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #fbbf24, #a855f7);
    transition: width 1s cubic-bezier(.4,2,.6,1);
}

@media (max-width: 520px) {
    #score-bar-container { padding: 11px 16px 13px; border-radius: 15px; }
    #score-bar-score { font-size: 2.1rem; }
    #valider-coord { font-size: 1rem; padding: 13px 0; border-radius: 14px; }
}

#godEnd {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2500;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    overflow-y: auto;
}
#godEnd.show { display: flex; }
.ge-bg {
    position: absolute;
    inset: -40px;
    background-size: cover;
    background-position: center;
    filter: blur(26px) brightness(0.32) saturate(1.2);
    transform: scale(1.08);
}
.ge-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(124,58,237,0.35) 0%, transparent 60%),
                linear-gradient(180deg, rgba(8,2,24,0.75) 0%, rgba(8,2,24,0.92) 100%);
}
.ge-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    margin: auto;
    background: linear-gradient(160deg, rgba(32,12,74,0.96) 0%, rgba(17,5,42,0.97) 100%);
    border: 1.5px solid rgba(168,85,247,0.45);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.6), 0 0 60px rgba(124,58,237,0.25), inset 0 1px 0 rgba(255,255,255,0.08);
    padding: 26px 24px 22px;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .5s ease, transform .5s cubic-bezier(.2,.9,.3,1);
}
.ge-card.in { opacity: 1; transform: translateY(0); }
.ge-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.09);
}
.ge-cover {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid rgba(168,85,247,0.5);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    background: rgba(255,255,255,0.05);
}
.ge-head-text { min-width: 0; flex: 1; }
.ge-name {
    font-family: 'Lilita One', cursive;
    font-size: 1.5rem;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    word-break: break-word;
}
.ge-verdict {
    margin-top: 5px;
    font-size: .82rem;
    letter-spacing: .4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
}
.ge-verdict.win { color: #86efac; background: rgba(34,197,94,0.14); border: 1px solid rgba(34,197,94,0.3); }
.ge-verdict.lose { color: #fca5a5; background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.28); }
.ge-total {
    text-align: center;
    padding: 20px 0 16px;
}
.ge-total-val {
    font-family: 'Lilita One', cursive;
    font-size: 3.4rem;
    line-height: 1;
    color: #ffffff;
    background: linear-gradient(180deg, #ffffff 0%, #f3e8ff 45%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 16px rgba(168,85,247,0.45));
}
.ge-total-max {
    font-size: .78rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 2px;
    margin-top: 2px;
}
.ge-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}
.ge-tile {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(168,85,247,0.22);
    border-radius: 14px;
    padding: 12px 6px 10px;
    text-align: center;
}
.ge-tile-ico { font-size: 1.1rem; line-height: 1; }
.ge-tile-val {
    font-family: 'Lilita One', cursive;
    font-size: 1.35rem;
    color: #e9deff;
    margin-top: 5px;
    line-height: 1;
}
.ge-tile-lbl {
    font-size: .62rem;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.4);
    margin-top: 5px;
}
.ge-meta {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.ge-meta span {
    font-size: .8rem;
    color: rgba(255,255,255,0.62);
    background: rgba(255,255,255,0.05);
    border-radius: 999px;
    padding: 5px 13px;
}
.ge-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.ge-btn {
    flex: 1;
    font-family: 'Lilita One', cursive;
    font-size: 1rem;
    letter-spacing: .3px;
    color: #fff;
    border: none;
    border-radius: 15px;
    padding: 14px 10px;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.ge-btn:hover { transform: translateY(-3px); filter: brightness(1.08); }
.ge-btn-share {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #2b1600;
    box-shadow: 0 6px 20px rgba(251,191,36,0.35);
}
.ge-btn-lb {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    box-shadow: 0 6px 20px rgba(124,58,237,0.4);
}
.ge-btn-menu {
    flex: 0 0 auto;
    padding: 14px 18px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.7);
    box-shadow: none;
}
.ge-btn-menu:hover { color: #fff; }

@media (max-width: 520px) {
    .ge-card { padding: 20px 16px 18px; border-radius: 20px; }
    .ge-cover { width: 60px; height: 60px; border-radius: 12px; }
    .ge-name { font-size: 1.2rem; }
    .ge-total-val { font-size: 2.7rem; }
    .ge-tile-val { font-size: 1.15rem; }
    .ge-btn { font-size: .88rem; padding: 12px 8px; }
}

.ge-btn-challenge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 6px 20px rgba(239,68,68,0.4);
}

.ge-challenge {
    margin-top: 16px;
    padding: 12px 16px;
    text-align: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(168,85,247,0.3);
    border-radius: 14px;
}
.ge-challenge-row {
    font-size: .88rem;
    color: rgba(255,255,255,0.7);
}
.ge-challenge-row strong { color: #e9deff; }
.ge-challenge-result {
    font-family: 'Lilita One', cursive;
    font-size: 1.2rem;
    margin-top: 4px;
    color: #facc15;
}

.ge-chip { font-size: .82rem; letter-spacing: 1px; }

.ge-actions { flex-wrap: wrap; }
