/* ==========================================
   OTHER GAME MODES menu (home screen)
========================================== */

#show-other-btn {
    display: block;
    margin-top: 12px;
    border-color: rgba(168, 85, 247, 0.6);
}
#show-other-btn span {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--text-muted);
    margin-top: 2px;
}

.other-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #d8b4fe;
    border: 1px solid rgba(216, 180, 254, 0.5);
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 14px;
    background: rgba(168, 85, 247, 0.1);
}

.other-modes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 6px 0 16px;
}

.other-mode-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    text-align: left;
    border-radius: 12px;
    border: 1px solid #38bdf8;
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: 'Rajdhani', sans-serif;
}
.other-mode-card:hover {
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.5);
    transform: translateY(-1px);
}
.other-mode-icon { font-size: 2rem; line-height: 1; }
.other-mode-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.other-mode-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1px;
}
.other-mode-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.3; }
.other-mode-tag {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid #22c55e;
    color: #86efac;
    white-space: nowrap;
}

/* modes that aren't built yet */
.other-mode-card.soon {
    border-color: #334155;
    cursor: default;
}
.other-mode-card.soon:hover { box-shadow: none; transform: none; }
.other-mode-card.soon .other-mode-icon { filter: grayscale(0.35); opacity: 0.85; }
.other-mode-card.soon .other-mode-tag { border-color: #a855f7; color: #d8b4fe; }
.other-mode-card.shake { animation: otherShake 0.35s ease; }
@keyframes otherShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@media (max-width: 480px) {
    #show-other-btn { margin-top: 8px; padding: 9px 14px; font-size: 0.85rem; }
    .other-mode-card { gap: 10px; padding: 11px 12px; }
    .other-mode-icon { font-size: 1.6rem; }
    .other-mode-title { font-size: 0.85rem; }
    .other-mode-desc { font-size: 0.85rem; }
    .other-mode-tag { font-size: 0.55rem; padding: 3px 6px; }
}

/* themed elimination modes (Soccer, Sports) have a fixed map, so the map picker is hidden */
#mode-picker.hidden { display: none !important; }

/* Geography | Sports switch above the map picker on the Elimination menu */
.theme-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 0 10px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--text-muted);
    background: rgba(15, 23, 42, 0.9);
}
.theme-pick {
    border: none;
    border-radius: 999px;
    padding: 8px 6px;
    background: transparent;
    color: var(--text-muted);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.theme-pick:hover { color: var(--text-main); }
.theme-pick.active {
    color: #0f172a;
    background: var(--border-color);
    box-shadow: 0 0 14px var(--accent-glow);
}
@media (max-width: 420px) {
    .theme-pick { font-size: 0.68rem; letter-spacing: 0.5px; }
}

/* SPACE RACE button on the home screen (second main mode after the Daily Challenge) */
#show-race-btn {
    display: block;
    margin-top: 12px;
    text-decoration: none;
    text-align: center;
    color: #04111f;
    background: linear-gradient(135deg, #67e8f9, #38bdf8 45%, #a78bfa);
    border: none;
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.45);
    position: relative;
    overflow: hidden;
}
#show-race-btn::after {
    content: '';
    position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
    animation: raceShine 3.2s ease-in-out infinite;
}
@keyframes raceShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
#show-race-btn span {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0;
    color: rgba(4, 17, 31, 0.78);
    margin-top: 2px;
}
#show-race-btn .race-new {
    font-style: normal; font-size: 0.62rem; letter-spacing: 1.5px; vertical-align: middle;
    background: #04111f; color: #fde047; padding: 2px 6px; border-radius: 6px; margin-left: 4px;
}
@media (prefers-reduced-motion: reduce) { #show-race-btn::after { animation: none; } }
