/* ── MENU ── */
.gs-menu {
    max-width: 1000px !important;
}

/* Tabs */
.gs-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
}

.gs-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: 100px;
    border: 1.5px solid var(--ink-muted);
    background: var(--ink-soft);
    color: var(--chalk-dim);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease-spring);
    font-family: 'DM Sans', sans-serif;
}

.gs-tab:hover {
    border-color: var(--chalk-ghost);
    color: var(--chalk);
}

.gs-tab.active {
    border-color: var(--neon-draw);
    background: rgba(200, 245, 58, 0.1);
    color: var(--neon-draw);
    box-shadow: 0 0 16px rgba(200, 245, 58, 0.15);
}

/* Options section */
.gs-options {
    background: var(--surface-1);
    border: 1px solid var(--ink-muted);
    border-radius: var(--r-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 40px;
    animation: fadeInUp 0.4s var(--ease-out-expo) both;
}

.gs-start-btn {
    align-self: center;
    padding: 14px 40px;
    font-size: 15px;
    gap: 10px;
    margin-top: 12px;
    background: var(--neon-draw);
    box-shadow: 0 6px 20px rgba(200, 245, 58, 0.3), var(--glow-draw);
    color: var(--ink);
    font-weight: 700;
}

/* Name input */
.gs-name-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gs-name-input {
    width: 100%;
    max-width: 280px;
    padding: 12px 16px;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--ink-muted);
    background: var(--ink-soft);
    color: var(--chalk);
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
}

.gs-name-input:focus {
    outline: none;
    border-color: var(--neon-guess);
    box-shadow: 0 0 0 3px rgba(56, 212, 245, 0.1);
}

/* Multi-player section */
.gs-multi-actions {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 48px;
    align-items: stretch;
    margin-top: 12px;
}

.gs-multi-card {
    background: linear-gradient(145deg, rgba(30, 30, 34, 0.4), rgba(18, 18, 20, 0.6));
    border: 1.5px solid var(--ink-muted);
    border-radius: var(--r-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.gs-multi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.gs-multi-card:hover {
    border-color: var(--chalk-ghost);
    background: linear-gradient(145deg, rgba(40, 40, 45, 0.5), rgba(25, 25, 28, 0.7));
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.gs-multi-icon {
    font-size: 2.4rem;
    margin-bottom: 8px;
    background: var(--ink-soft);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid var(--ink-muted);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

#createSection .gs-multi-icon {
    color: var(--neon-draw);
    border-color: rgba(200, 245, 58, 0.2);
}

#joinSection .gs-multi-icon {
    color: var(--neon-guess);
    border-color: rgba(56, 212, 245, 0.2);
}

.gs-multi-card h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    color: var(--chalk);
    margin: 0;
}

.gs-multi-card p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--chalk-ghost);
    margin: -8px 0 0 0;
}

.gs-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--chalk-dim);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.gs-divider::before,
.gs-divider::after {
    content: '';
    width: 1px;
    flex: 1;
    background: linear-gradient(to bottom, transparent, var(--ink-muted), transparent);
}

.gs-join-row {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.gs-room-input {
    flex: 1;
    padding: 12px 16px;
    border-radius: var(--r-sm);
    border: 2px solid var(--ink-muted);
    background: var(--ink);
    color: var(--neon-guess);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-family: 'DM Serif Display', serif;
    text-align: center;
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: all 0.2s;
}

.gs-room-input:focus {
    outline: none;
    border-color: var(--neon-guess);
    box-shadow: 0 0 0 4px rgba(56, 212, 245, 0.1), inset 0 4px 12px rgba(0, 0, 0, 0.5);
}

.gs-status {
    font-size: 12px;
    color: var(--rose);
    min-height: 18px;
    margin: 0;
    text-align: center;
}

/* Pills Disabled State */
.gq-pill.disabled {
    opacity: 0.4;
    filter: grayscale(1);
    cursor: not-allowed;
    pointer-events: auto;
    /* Allow title/tooltip to show */
}

.gq-pill.disabled:hover {
    border-color: var(--ink-muted);
    background: var(--ink-soft);
    color: var(--chalk-ghost);
}

/* Waiting room */
.gs-waiting-popup {
    max-width: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.gs-room-code-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 32px;
    background: var(--ink-soft);
    border: 1px solid var(--ink-muted);
    border-radius: var(--r-md);
    width: 100%;
}

.gs-room-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--chalk-ghost);
}

.gs-room-code {
    font-family: 'DM Serif Display', serif;
    font-size: 3rem;
    color: var(--neon-draw);
    letter-spacing: 0.3em;
    text-shadow: var(--glow-draw);
}

.gs-copy-btn {
    font-size: 12px;
    padding: 6px 16px;
}

.gs-waiting-players {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    min-height: 50px;
}

.gs-player-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    background: var(--ink-soft);
    border: 1px solid var(--ink-muted);
    font-size: 14px;
    font-weight: 500;
    color: var(--chalk);
}

.gs-player-chip.leader {
    border-color: var(--gold);
    background: rgba(245, 200, 66, 0.08);
    color: var(--gold);
}

.gs-waiting-hint {
    font-size: 13px;
    color: var(--chalk-dim);
    text-align: center;
}

.gs-leave-btn {
    font-size: 13px;
    padding: 8px 20px;
    color: var(--rose);
    border-color: var(--rose);
}

/* ═══════════════════════════════════════════════════════════
   GAME PAGE
   ═══════════════════════════════════════════════════════════ */
.gs-game-body {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
}

/* Top HUD */
.gs-top-hud {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    background: var(--surface-1);
    border-bottom: 1px solid var(--ink-muted);
    flex-shrink: 0;
    z-index: 200;
    position: relative;
}

.gq-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--ink-soft);
    border: 1px solid var(--ink-muted);
    color: var(--chalk-dim);
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.2s;
}

.gq-back-btn:hover {
    color: var(--chalk);
    background: var(--ink-muted);
}

.gq-hud-center {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.gq-mode-badge {
    background: rgba(200, 245, 58, 0.1);
    border: 1px solid rgba(200, 245, 58, 0.25);
    color: var(--neon-draw);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
}

.gq-score-label {
    font-size: 11px;
    color: var(--chalk-ghost);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.gq-score-val {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: var(--gold);
    min-width: 40px;
    transition: transform 0.2s var(--ease-spring);
}

.gq-score-val.bump {
    transform: scale(1.4);
}

.gs-hud-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gs-round-badge {
    font-size: 12px;
    color: var(--chalk-dim);
    background: var(--ink-soft);
    border: 1px solid var(--ink-muted);
    padding: 4px 12px;
    border-radius: 100px;
    white-space: nowrap;
}

.gs-timer-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    color: var(--neon-warn);
    min-width: 60px;
}

.gs-timer-wrap.urgent {
    color: var(--rose);
    animation: pulse 0.5s ease-in-out infinite alternate;
}

/* Photo viewer */
.gs-viewer-wrap {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: var(--ink);
}

/* Players bar */
.gs-players-bar {
    display: flex;
    gap: 8px;
    padding: 8px 16px;
    background: var(--surface-1);
    border-bottom: 1px solid var(--ink-muted);
    overflow-x: auto;
    flex-shrink: 0;
    z-index: 100;
}

.gs-player-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--ink-muted);
    background: var(--ink-soft);
    color: var(--chalk-dim);
    white-space: nowrap;
    transition: all 0.3s;
}

.gs-player-status.submitted {
    border-color: var(--neon-win);
    background: rgba(163, 245, 58, 0.08);
    color: var(--neon-win);
}

.gs-player-status .gs-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--chalk-ghost);
    transition: background 0.3s;
}

.gs-player-status.submitted .gs-dot {
    background: var(--neon-win);
}

/* MAP PANEL — fullscreen slide-up */
.gs-map-panel {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: var(--ink);
    border-radius: 0;
    border: none;
    z-index: 500;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    animation: slideUp 0.32s var(--ease-out-expo) both;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0.6;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.gs-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--surface-1);
    border-bottom: 1px solid var(--ink-muted);
    font-size: 14px;
    color: var(--chalk-dim);
    flex-shrink: 0;
    /* safe area for notched phones */
    padding-top: max(12px, env(safe-area-inset-top));
}

.gs-map-close-btn {
    background: var(--ink-soft);
    border: 1px solid var(--ink-muted);
    color: var(--chalk-dim);
    cursor: pointer;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 100px;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
}

.gs-map-close-btn:hover {
    color: var(--chalk);
    border-color: var(--chalk-ghost);
}

.gs-map-footer {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: var(--surface-1);
    border-top: 1px solid var(--ink-muted);
    flex-shrink: 0;
}

.gs-confirm-btn {
    flex: 1;
    font-size: 15px;
    padding: 14px 16px;
    background: var(--neon-draw);
    color: var(--ink);
    font-weight: 700;
    border-radius: var(--r-md);
}

.gs-confirm-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.gs-reset-guess-btn {
    font-size: 13px;
    padding: 10px 16px;
    color: var(--rose);
    border-color: var(--rose);
}

/* MAP TOGGLE BUTTON — bottom-center, bigger */
.gs-map-toggle {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 400;
    background: var(--surface-1);
    border: 1.5px solid var(--neon-draw);
    color: var(--neon-draw);
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), var(--glow-draw);
    transition: all 0.2s var(--ease-spring);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.gs-map-toggle:hover {
    transform: translateX(-50%) translateY(-3px) scale(1.04);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), var(--glow-draw);
}

.gs-map-toggle:active {
    transform: translateX(-50%) scale(0.97);
}

.gs-map-toggle.has-guess {
    background: rgba(200, 245, 58, 0.18);
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 200, 66, 0.25);
}

.gs-map-toggle::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-draw);
    animation: pulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.gs-map-toggle.has-guess::before {
    background: var(--gold);
    animation: none;
}

/* LOADING */
.gs-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--ink);
    z-index: 10;
}

.gs-loading p {
    color: var(--chalk-dim);
    font-size: 14px;
}

.gs-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--ink-muted);
    border-top-color: var(--neon-draw);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* FLAT PHOTO HINT */
.gs-flat-hint {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--chalk-dim);
    font-size: 12px;
    padding: 6px 16px;
    border-radius: 100px;
    white-space: nowrap;
    pointer-events: none;
}

/* ROUND RESULT */
.gs-result-popup {
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.gs-result-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gs-result-header span {
    font-size: 2.5rem;
}

.gs-result-header h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
}

.gs-result-distance {
    display: flex;
    align-items: baseline;
    gap: 8px;
    justify-content: center;
}

.gs-result-distance span {
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem;
    color: var(--neon-guess);
}

.gs-result-distance small {
    font-size: 14px;
    color: var(--chalk-dim);
}

.gs-result-points {
    display: flex;
    align-items: baseline;
    gap: 8px;
    justify-content: center;
}

.gs-result-points span {
    font-family: 'DM Serif Display', serif;
    font-size: 3rem;
    color: var(--gold);
    text-shadow: var(--glow-gold);
}

.gs-result-points small {
    font-size: 14px;
    color: var(--chalk-dim);
}

.gs-round-scores {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 180px;
    overflow-y: auto;
}

.gs-score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: var(--ink-soft);
    border-radius: var(--r-sm);
    font-size: 14px;
}

.gs-score-row .gs-score-pts {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    color: var(--gold);
}

.gs-score-row .gs-score-dist {
    font-size: 12px;
    color: var(--chalk-dim);
}

/* Waiting small */
.gs-waiting-small {
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px;
}

.gs-submitted-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

/* Leaflet overrides */
.leaflet-container {
    background: #1a1f2e !important;
    font-family: 'DM Sans', sans-serif;
}

.leaflet-tile-pane {
    filter: brightness(0.85) saturate(0.9);
}

.gs-guess-marker-icon {
    background: var(--neon-draw);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(200, 245, 58, 0.6);
}

/* END SCREEN (reuse from geoquiz) */
.gq-end-popup {
    max-width: 420px;
}

.gq-end-emoji {
    font-size: 3.5rem;
    margin-bottom: 8px;
}

.gq-end-score {
    display: flex;
    align-items: baseline;
    gap: 8px;
    justify-content: center;
    margin: 16px 0 8px;
}

.gq-end-score span {
    font-family: 'DM Serif Display', serif;
    font-size: 3.5rem;
    color: var(--gold);
    text-shadow: var(--glow-gold);
}

.gq-end-score small {
    font-size: 14px;
    color: var(--chalk-dim);
}

.gq-end-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 16px 0;
    flex-wrap: wrap;
}

.gq-end-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.gq-end-stat strong {
    font-size: 1.4rem;
    font-family: 'DM Serif Display', serif;
    color: var(--chalk);
}

.gq-end-stat small {
    font-size: 11px;
    color: var(--chalk-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Shared CSS from geoquiz (needed standalone) */
.gq-option-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gq-option-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--chalk-dim);
    font-weight: 700;
}

.gq-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gq-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1.5px solid var(--ink-muted);
    background: var(--ink-soft);
    color: var(--chalk-dim);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s var(--ease-spring);
    font-family: 'DM Sans', sans-serif;
}

.gq-pill small {
    font-size: 10px;
    opacity: 0.65;
    font-weight: 400;
}

.gq-pill:hover {
    border-color: var(--chalk-ghost);
    color: var(--chalk);
    transform: translateY(-1px);
}

.gq-pill.active {
    border-color: var(--neon-draw);
    background: rgba(200, 245, 58, 0.1);
    color: var(--neon-draw);
    box-shadow: 0 0 12px rgba(200, 245, 58, 0.15);
}

/* Overlay + popup (from style.css reuse) */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.popup {
    background: var(--surface-1);
    border: 1px solid var(--ink-muted);
    border-radius: var(--r-lg);
    padding: 32px;
    width: 100%;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-up {
    animation: fadeInUp 0.5s var(--ease-out-expo) both;
}

.animate-up-2 {
    animation: fadeInUp 0.5s var(--ease-out-expo) 0.1s both;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE (TABLET & MOBILE)
   ═══════════════════════════════════════════════════════════ */

/* Tablet Optimization (Stack Multiplayer) */
@media (max-width: 768px) {
    .gs-multi-actions {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .gs-divider {
        flex-direction: row;
        padding: 16px 0;
    }

    .gs-divider::before,
    .gs-divider::after {
        width: 100%;
        height: 1px;
    }
}

/* Mobile Optimization (Game HUD & Controls) */
@media (max-width: 640px) {
    .gs-menu {
        padding: 20px;
    }

    .gs-options {
        padding: 24px;
        gap: 20px;
    }

    .gs-multi-card {
        padding: 24px;
        gap: 16px;
    }

    .gs-multi-icon {
        width: 44px;
        height: 44px;
        font-size: 1.6rem;
    }

    /* Compact Top HUD with Glassmorphism */
    .gs-top-hud {
        padding: 8px 12px;
        gap: 8px;
        background: rgba(18, 18, 20, 0.7);
        backdrop-filter: blur(12px) saturate(1.8);
        -webkit-backdrop-filter: blur(12px) saturate(1.8);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        height: 60px;
    }

    .gq-hud-center {
        gap: 8px;
    }

    .gq-score-label,
    .gs-round-badge span,
    .gq-mode-badge {
        display: none !important;
        /* Hide labels on mobile */
    }

    .gq-score-val {
        font-size: 1.2rem;
    }

    .gs-timer-wrap {
        font-size: 1rem;
        min-width: 55px;
    }

    /* Map Controls for Mobile */
    .gs-map-toggle {
        bottom: calc(20px + env(safe-area-inset-bottom));
        padding: 12px 24px;
        font-size: 14px;
        width: calc(100% - 40px);
        max-width: 320px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    }

    .gs-map-toggle::before {
        display: none;
    }

    /* Fullscreen Modal Slide-up (Sheet feel) */
    .gs-map-panel {
        height: 100dvh;
        top: 0;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.5);
        animation: slideUpNative 0.4s cubic-bezier(0.33, 1, 0.68, 1) both;
    }

    @keyframes slideUpNative {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

    .gs-map-header {
        padding: 12px 20px 16px;
        padding-top: max(16px, env(safe-area-inset-top));
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        background: var(--surface-1);
        position: relative;
    }

    /* Sheet Handle (Pull Bar) */
    .gs-map-header::after {
        content: '';
        width: 36px;
        height: 4px;
        background: var(--ink-muted);
        border-radius: 100px;
        margin-bottom: 4px;
    }

    .gs-map-close-btn {
        position: absolute;
        right: 20px;
        top: max(12px, env(safe-area-inset-top));
        background: var(--ink-soft);
        border: none;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        font-size: 18px;
    }

    .gs-map-footer {
        padding: 20px;
        padding-bottom: max(20px, env(safe-area-inset-bottom));
        background: var(--surface-1);
        border-top: 1px solid var(--ink-muted);
    }

    /* Result Overlays */
    .gs-result-distance span {
        font-size: 24px !important;
    }

    .gs-result-header span {
        font-size: 32px !important;
    }

    .gs-result-points span {
        font-size: 36px !important;
    }

    .gs-round-scores {
        max-height: 140px;
    }
}


/* HUD Stats layout */
.gs-hud-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.mobile-icon {
    display: none;
    color: var(--neon-draw);
}

@media (max-width: 640px) {
    .mobile-icon {
        display: inline-block;
    }
}