/* ==========================================
   GLOBAL MODE + MODE PICKER (loads AFTER style-usa-elimination.css)
   Only overrides / additions - shared base styling lives in the USA file.
========================================== */

/* ---------- 3-way mode picker on the elimination menu ---------- */
.mode-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0 0 18px;
}
.mode-pick {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 6px;
    border-radius: 10px;
    border: 1px solid var(--text-muted);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-muted);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.mode-pick svg { display: block; border-radius: 2px; }
.mode-pick .mode-globe { font-size: 1.15rem; line-height: 18px; height: 18px; }
.mode-pick:hover { color: var(--text-main); border-color: var(--border-color); }
.mode-pick.active {
    color: #0f172a;
    background: var(--border-color);
    border-color: var(--border-color);
    box-shadow: 0 0 16px var(--accent-glow);
}

/* ---------- Global mode home theme ---------- */
#home-screen.global-mode {
    --border-color: #a78bfa;
    --accent-glow: #7c3aed;
    background: radial-gradient(circle at 50% 110%, #2e1065 0%, #0f0a2e 45%, #020617 100%);
}
#home-screen.global-mode .lunar-scene,
#home-screen.global-mode .europe-scene { display: none; }
#home-screen.global-mode .glow-title {
    text-shadow: 0 0 15px #a78bfa, 0 0 35px rgba(167, 139, 250, 0.5);
}
#home-screen.global-mode .home-card {
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.3), 0 0 80px rgba(124, 58, 237, 0.15);
}

.global-scene {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}
#home-screen.global-mode .global-scene { display: block; }
.global-art { width: 100%; height: 100%; display: block; }

.gl-earth-spin { animation: glSpin 60s linear infinite; transform-box: fill-box; transform-origin: center; }
.gl-orbiter { animation: glOrbit 14s linear infinite; }
.gl-twinkle { animation: glTwinkle 3s ease-in-out infinite alternate; }

@keyframes glSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes glOrbit {
    from { transform: translate(-240px, 60px); }
    to   { transform: translate(1900px, -90px); }
}
@keyframes glTwinkle { from { opacity: 0.3; } to { opacity: 1; } }

/* small phones: keep the three mode buttons on one row */
@media (max-width: 420px) {
    .mode-pick { font-size: 0.68rem; letter-spacing: 0.5px; padding: 8px 2px; }
}
