:root {
    --bg: #0f111a;
    --panel-bg: #1a1d2d;
    --accent: #4ade80;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --red: #ef4444;
}

html, body { 
    height: 100%; 
    margin: 0; 
    background: #000; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
}

#map { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    z-index: 1; 
    background: #0b1220; 
}

/* Fix Bootstrap text-muted color for dark theme */
.text-muted { 
    color: var(--text-muted) !important; 
}

/* Toolbar / Question Pill */
.toolbar-master {
    position: fixed;
    top: 15px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    z-index: 1030;
    pointer-events: none;
}
.responsive-toolbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 95vw;
    pointer-events: auto;
}
.toolbar-container {
    display: flex;
    justify-content: center;
    width: 100%;
}
.toolbar-wrapper {
    display: inline-flex;
    align-items: center;
    width: auto;
    max-width: 100%;
}
.tag-scroller {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    display: inline-flex;
    flex-wrap: nowrap;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}
.tag-scroller:hover { scrollbar-color: #888 transparent; }
.tag-scroller::-webkit-scrollbar { height: 4px; }
.tag-scroller::-webkit-scrollbar-thumb { background-color: #888; border-radius: 4px; }

/* Question pill - same stadium-scoreboard look as the answer board */
.question-pill {
    background: rgba(8, 10, 18, 0.78);
    color: #fff;
    padding: 10px 24px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 204, 0, 0.35);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.6),
        0 0 24px rgba(255, 204, 0, 0.18),
        0 8px 24px rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}

/* The Glow Animation */
.question-pill.glow {
    animation: questionGlow 1.2s ease-out;
}

@keyframes questionGlow {
    0% {
        box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 0 6px 2px rgba(255, 204, 0, 0.9), 0 8px 24px rgba(0,0,0,0.6);
        border-color: #ffcc00;
    }
    60% {
        box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 0 28px 10px rgba(255, 204, 0, 0), 0 8px 24px rgba(0,0,0,0.6);
        border-color: rgba(255, 204, 0, 0.35);
    }
    100% {
        box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 0 24px rgba(255, 204, 0, 0.18), 0 8px 24px rgba(0,0,0,0.6);
        border-color: rgba(255, 204, 0, 0.35);
    }
}

.question-num {
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: #ffcc00;
    text-shadow: 0 0 6px rgba(255, 204, 0, 0.65);
    text-transform: uppercase;
}
.question-text {
    font-size: 1.1rem;
    white-space: normal;
    line-height: 1.4;
    color: #fff;
}
.question-text a { color: #ffcc00; }
/* Highlighted film title inside the prompt, shown as a pill */
.question-text b,
.question-text strong,
.question-text mark,
.question-text em {
    background: #ffcc00;
    color: #000;
    font-style: normal;
    font-weight: 800;
    padding: 1px 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.45);
}

/* Bottom Toolbar / Result */
.bottom-toolbar {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1030;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    width: 90%;
    max-width: 600px;
}
.bottom-toolbar > * { pointer-events: auto; }

/* Legacy readout styles - kept so nothing else breaks, no longer applied
   because the JS now uses the scoreboard classes below. */
.distance-readout-black {
    cursor: default;
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.score-box {
    background: #000;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: bold;
    border: 1px solid #444;
}
.result-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-weight: bold;
    line-height: 1.2;
}
.result-answer {
    background: #2a2d3d;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

/* ----------------------------------------------------------------------
   STADIUM SCOREBOARD (answer readout)
   Layout: city header / score + film | distance / Next Question button
   ---------------------------------------------------------------------- */
.scoreboard-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    pointer-events: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    width: auto;
}

.scoreboard {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 300px;
    max-width: 92vw;
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(8, 10, 18, 0.78);
    border: 1px solid rgba(255, 204, 0, 0.35);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.6),
        0 0 24px rgba(255, 204, 0, 0.18),
        0 8px 24px rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: scoreboardEntry 0.35s ease-out;
}

@keyframes scoreboardEntry {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Header: city name */
.scoreboard-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(255, 204, 0, 0.08);
    border-bottom: 1px solid rgba(255, 204, 0, 0.28);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.45);
    text-align: center;
}
.scoreboard-header i { color: #ffcc00; }
.scoreboard-header span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Middle row */
.scoreboard-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 10px 14px;
}

.scoreboard-score-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 6px;
    min-width: 110px;
    max-width: 150px;
}

.scoreboard-score-label {
    font-family: 'Courier New', monospace;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: #ffcc00;
    text-shadow: 0 0 6px rgba(255, 204, 0, 0.65);
}

.scoreboard-score {
    font-family: 'Courier New', monospace;
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
    text-shadow:
        0 0 10px rgba(255, 204, 0, 0.85),
        0 0 22px rgba(255, 204, 0, 0.45),
        0 2px 0 rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease;
}

.scoreboard-score.score-pulse {
    animation: scoreboardScorePulse 0.9s ease-out;
}

@keyframes scoreboardScorePulse {
    0% {
        transform: scale(1);
        text-shadow:
            0 0 10px rgba(255, 204, 0, 0.85),
            0 0 22px rgba(255, 204, 0, 0.45),
            0 2px 0 rgba(0, 0, 0, 0.5);
    }
    35% {
        transform: scale(1.18);
        text-shadow:
            0 0 20px rgba(255, 204, 0, 1),
            0 0 44px rgba(255, 204, 0, 0.8),
            0 2px 0 rgba(0, 0, 0, 0.5);
    }
    100% {
        transform: scale(1);
        text-shadow:
            0 0 10px rgba(255, 204, 0, 0.85),
            0 0 22px rgba(255, 204, 0, 0.45),
            0 2px 0 rgba(0, 0, 0, 0.5);
    }
}

/* Film name under the score, centered in the score column */
.scoreboard-film {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 0;
    padding: 10px 16px;
    border-top: 1px solid rgba(255, 204, 0, 0.2);
    width: 100%;
    box-sizing: border-box;
    font-size: 0.85rem;
    line-height: 1.3;
    color: #cbd5e1;
    text-align: left;
}

.scoreboard-film i { 
    color: #ffcc00; 
    opacity: 0.9; 
    flex: 0 0 auto; 
    margin-top: 2px;
}

.scoreboard-film span {
    display: inline-block;
    white-space: normal;
}

.scoreboard-film:empty { 
    display: none; 
}

.scoreboard-divider {
    width: 2px;
    align-self: stretch;
    min-height: 44px;
    background: linear-gradient(to bottom, transparent, rgba(255, 204, 0, 0.7), transparent);
}

.scoreboard-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 0 6px;
}

.scoreboard-distance {
    font-family: 'Courier New', monospace;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    text-align: center;
}

/* Footer: Next Question button */
.scoreboard-footer { display: flex; }
.scoreboard .scoreboard-next {
    flex: 1;
    border: 0;
    border-top: 1px solid rgba(255, 204, 0, 0.5);
    border-radius: 0;
    padding: 10px 14px;
    background: #ffcc00;
    color: #000;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}
.scoreboard .scoreboard-next:hover {
    background: #ffd940;
    box-shadow: 0 0 16px rgba(255, 204, 0, 0.6) inset;
}
.scoreboard .scoreboard-next:active { background: #e6b800; }

/* Help FAB */
.help-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1030;
    font-size: 18px;
    color: #333;
    transition: transform 0.15s ease;
}
.help-fab:hover { transform: scale(1.05); background: #f8f9fa; }

/* Modal styling */
.help-controls {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}
.help-control-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.help-control-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* ----------------------------------------------------------------------
   RECAP OVERLAY (See Results) - dark scoreboard theme
   ---------------------------------------------------------------------- */
.recap-overlay {
    position: fixed;
    inset: 0;
    z-index: 1040;               /* above map + toolbars, below Bootstrap modals (1055) */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(5, 7, 14, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 16px 12px 40px;
    color: #f8fafc;
    animation: scoreboardEntry 0.3s ease-out;
}
.recap-panel {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.recap-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.recap-date-nav .btn {
    background: rgba(8, 10, 18, 0.78);
    color: #fff;
    border: 1px solid rgba(255, 204, 0, 0.35);
    font-family: 'Courier New', monospace;
    font-weight: 800;
    padding: 6px 14px;
    box-shadow: none;
}
.recap-date-nav button.btn:hover:not(:disabled) { background: rgba(255, 204, 0, 0.18); color: #ffcc00; }
.recap-date-nav button.btn:disabled { opacity: 0.35; }
.recap-date-nav .recap-date-label {
    min-width: 130px;
    cursor: default;
    color: #ffcc00;
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.5);
    letter-spacing: 1px;
}
.recap-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 204, 0, 0.35);
    background: rgba(8, 10, 18, 0.78);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.recap-close:hover { background: rgba(255, 204, 0, 0.18); color: #ffcc00; }

/* Total score hero card */
.recap-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 12px 14px;
    border-radius: 14px;
    background: rgba(8, 10, 18, 0.78);
    border: 1px solid rgba(255, 204, 0, 0.35);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 0 24px rgba(255, 204, 0, 0.18), 0 8px 24px rgba(0,0,0,0.6);
}
.recap-total {
    font-family: 'Courier New', monospace;
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.85), 0 0 22px rgba(255, 204, 0, 0.45), 0 2px 0 rgba(0,0,0,0.5);
}
.recap-dots { display: flex; gap: 8px; margin-top: 8px; }

.recap-bars {
    padding: 14px 14px 6px;
    border-radius: 14px;
    background: rgba(8, 10, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.recap-bars .recap-bar-row span { font-family: 'Courier New', monospace; }

.recap-actions { display: flex; justify-content: center; }
.recap-overlay .btn-primary,
.recap-overlay .btn-success {
    font-family: 'Courier New', monospace;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #000;
    border: 1px solid #000;
    padding: 10px 28px;
    border-radius: 10px;
}
.recap-overlay .btn-primary { background: #ffcc00; }
.recap-overlay .btn-primary:hover { background: #ffd940; }
.recap-overlay .btn-success { background: #4ade80; }

.recap-streak { text-align: center; }

/* Per-question result cards */
.recap-details { display: flex; flex-direction: column; gap: 18px; }
.detailed-result-card {
    overflow: hidden;
    border-radius: 14px;
    background: rgba(8, 10, 18, 0.78);
    border: 1px solid rgba(255, 204, 0, 0.35);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 8px 24px rgba(0,0,0,0.6);
}
.detailed-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: rgba(255, 204, 0, 0.08);
    border-bottom: 1px solid rgba(255, 204, 0, 0.28);
    font-family: 'Courier New', monospace;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffcc00;
}
.detailed-result-score {
    color: #fff;
    font-size: 1.15rem;
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.6);
}
.detailed-result-question {
    padding: 12px 14px 8px;
    font-size: 1.02rem;
    line-height: 1.4;
    color: #fff;
}
.detailed-result-question b,
.detailed-result-question strong,
.detailed-result-question mark,
.detailed-result-question em {
    background: #ffcc00;
    color: #000;
    font-style: normal;
    font-weight: 800;
    padding: 0 8px;
    border-radius: 6px;
}
.detailed-result-card .learn-more-btn { font-family: 'Courier New', monospace; font-size: 0.8rem; }
.recap-map-container {
    width: 100%;
    height: 240px;
    background: #0b1220;
    border-top: 1px solid rgba(255, 204, 0, 0.2);
    border-bottom: 1px solid rgba(255, 204, 0, 0.2);
}
.detailed-result-body { padding: 12px 14px 14px; }
.detailed-result-title {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
}
.detailed-result-distance { margin-top: 2px; font-size: 0.9rem; color: #cbd5e1; }
.detailed-result-distance strong { color: #4ade80; }

/* Light Bootstrap modals (Learn More + Help) - tidy details */
.detail-row { padding: 6px 0; border-bottom: 1px solid #eef0f3; }
.detail-row:last-child { border-bottom: 0; }
#answerDetailsModal .modal-content,
#helpModal .modal-content { border-radius: 14px; border: 1px solid #000; }
#answerDetailsModal .modal-header,
#helpModal .modal-header { background: #0f111a; color: #fff; border-radius: 13px 13px 0 0; }
#answerDetailsModal .btn-close,
#helpModal .btn-close { filter: invert(1) grayscale(1) brightness(2); }

/* Button groups: keep active/inactive states readable */
.btn-group .btn.active,
.btn-group .btn-primary { z-index: 1; }

@media (max-width: 480px) {
    .recap-total { font-size: 2.8rem; }
    .recap-map-container { height: 200px; }
    .scoreboard { min-width: 0; width: 92vw; }
}

/* ----------------------------------------------------------------------
   MAP THEME STEPPER (Help modal): prev | 3 color dots + name + index | next
   ---------------------------------------------------------------------- */
.theme-stepper {
    display: flex;
    align-items: stretch;
    gap: 8px;
}
.theme-stepper .btn { display: flex; align-items: center; justify-content: center; width: 36px; }
.theme-display {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 210px;
    padding: 6px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #ced4da;
}
.theme-display-dots { display: inline-flex; gap: 5px; flex: 0 0 auto; }
.theme-display-swatch {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.35);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    background: #e9ecef;
}
.theme-display-swatch.is-empty { background: transparent; border-style: dashed; box-shadow: none; }
.theme-display-name {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 700;
    color: #212529;
    white-space: nowrap;
}
.theme-display-index { font-size: 0.75rem; color: #6c757d; font-family: monospace; }

/* Recap extras */
.recap-total-row { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.recap-max { color: var(--text-muted); font-size: 1.1rem; }
.recap-upgrade { text-align: center; padding: 6px 0; }
.recap-upgrade h4 { color: #fff; font-weight: 700; margin-bottom: 12px; font-size: 1.2rem; }
.geogenre-pro-btn {
    display: inline-block;
    padding: 12px 34px;
    border-radius: 999px;
    background: rgba(8, 10, 18, 0.85);
    border: 1px solid rgba(255, 204, 0, 0.6);
    color: #fff;
    font-family: 'Courier New', monospace;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 0 14px rgba(255, 204, 0, 0.5), 0 0 34px rgba(255, 204, 0, 0.2);
    transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.geogenre-pro-btn span { color: #38bdf8; }
.geogenre-pro-btn:hover, .geogenre-pro-btn:focus-visible { color: #ffcc00; box-shadow: 0 0 18px rgba(255, 204, 0, 0.7), 0 0 42px rgba(255, 204, 0, 0.3); }
/* Upgrade and Leaderboard: the same pill, gold lettering */
.geogenre-pro-btn.is-gold-text { color: #ffcc00; text-shadow: 0 0 8px rgba(255, 204, 0, 0.55); }
.geogenre-pro-btn.is-gold-text:hover, .geogenre-pro-btn.is-gold-text:focus-visible { color: #ffd940; }
.recap-details-heading {
    margin: 6px 4px 0;
    color: var(--text-muted);
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Answer pin drop when the dashed line arrives */
.answer-marker { transition: opacity 0.2s ease; }
.answer-marker.pin-reveal svg {
    transform-origin: 50% 100%;
    animation: pinDrop 0.55s cubic-bezier(0.22, 1.4, 0.36, 1);
}
@keyframes pinDrop {
    0%   { transform: translateY(-40px) scale(0.6); opacity: 0; }
    60%  { transform: translateY(0) scale(1.15); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* ----------------------------------------------------------------------
   HELP MODAL - How to Play steps
   ---------------------------------------------------------------------- */
.help-section-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #212529;
}
.help-section-heading i { color: #ffb800; }
.help-section-heading.text-danger i { color: inherit; }
.help-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 14px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}
.help-step-number {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f111a;
    color: #ffcc00;
    font-family: 'Courier New', monospace;
    font-weight: 900;
    box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.5);
}
.help-step-title { font-weight: 800; color: #212529; margin-bottom: 2px; }
.help-step-body p { margin: 0; color: #495057; font-size: 0.93rem; line-height: 1.45; }

/* ----------------------------------------------------------------------
   RECAP / RESULTS refinements
   ---------------------------------------------------------------------- */
/* Date bar spans the full row; date centered; close button sits beside it */
.recap-topbar { gap: 10px; }
.recap-date-nav { flex: 1 1 auto; display: flex; min-width: 0; }
.recap-date-nav > button.btn { flex: 0 0 46px; padding-left: 0; padding-right: 0; }
.recap-date-nav > .recap-date-label {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.recap-close { flex: 0 0 auto; }
.recap-hero { padding: 14px 12px; gap: 2px; }

/* Clickable score bars */
.recap-bar-row { cursor: pointer; transition: opacity 0.2s, transform 0.15s; border-radius: 8px; }
.recap-bar-row:hover { opacity: 0.85; }
.recap-bar-row:active { transform: scale(0.99); }
.recap-bar-row:focus-visible { outline: 2px solid #ffcc00; outline-offset: 2px; }

/* Results page (shared link) - same look as the in-game recap */
.recap-overlay.results-page {
    position: relative;
    inset: auto;
    min-height: 100vh;
    animation: none;
    background: radial-gradient(ellipse at top, #1a1d2d 0%, #0f111a 65%);
}
.results-page .recap-panel { padding-top: 8px; }
.results-page .recap-date-nav .recap-date-label { border-radius: 8px !important; }
.recap-cta { display: flex; width: 100%; }
.recap-cta .btn {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 10px 14px;
    border: 1px solid #000;
}
.recap-cta .btn-primary { background: #ffcc00; color: #000; }
.recap-cta .btn-primary:hover { background: #ffd940; color: #000; }
.recap-cta .btn-dark {
    background: rgba(8, 10, 18, 0.85);
    color: #fff;
    border: 1px solid rgba(255, 204, 0, 0.5);
}
.recap-cta .btn-dark:hover { color: #ffcc00; }

@media (max-width: 480px) {
    .recap-overlay { padding: 10px 8px 32px; }
    .recap-topbar { gap: 6px; }
    .recap-close { width: 34px; height: 34px; }
    .recap-date-nav > button.btn { flex-basis: 40px; }
    .recap-bar-label { font-size: 0.72rem; }
}

/* Score bars styled as buttons: "Result ->" sits at the end of the bar */
.recap-bar-row .progress-bar {
    flex-direction: row;          /* Bootstrap defaults to column, which pushed the label down */
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    white-space: nowrap;
    border: 1px solid rgba(0, 0, 0, 0.45);
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: filter 0.15s ease;
}
.recap-bar-row:hover .progress-bar { filter: brightness(1.12); }
.recap-bar-row:active .progress-bar { box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.25); }
.recap-bar-label {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #000;
}
.recap-bar-label i { margin-left: 4px; }

/* ----------------------------------------------------------------------
   ANSWER DETAILS MODAL - "Mission Debrief" video-game layout
   ---------------------------------------------------------------------- */
#answerDetailsModal.gv-modal .modal-content,
#signupModal.gv-modal .modal-content,
#pricingModal.gv-modal .modal-content,
#themeModal.gv-modal .modal-content,
#challengeModal.gv-modal .modal-content {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(ellipse at 50% -10%, rgba(255, 204, 0, 0.12), transparent 55%),
        linear-gradient(180deg, #151829 0%, #0b0d17 100%);
    border: 1px solid rgba(255, 204, 0, 0.5);
    border-radius: 16px;
    box-shadow: 0 0 0 1px #000, 0 0 40px rgba(255, 204, 0, 0.18), 0 20px 60px rgba(0, 0, 0, 0.75);
}
/* CRT scanlines */
#answerDetailsModal.gv-modal .modal-content::after,
#signupModal.gv-modal .modal-content::after,
#pricingModal.gv-modal .modal-content::after,
#themeModal.gv-modal .modal-content::after,
#challengeModal.gv-modal .modal-content::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px);
    z-index: 5;
}
#answerDetailsModal.gv-modal .gv-header,
#signupModal.gv-modal .gv-header,
#pricingModal.gv-modal .gv-header,
#themeModal.gv-modal .gv-header,
#challengeModal.gv-modal .gv-header {
    background: transparent;
    color: #fff;
    border-bottom: 1px solid rgba(255, 204, 0, 0.35);
    border-radius: 0;
    padding: 14px 18px;
    align-items: flex-start;
}
.gv-kicker {
    font-family: 'Courier New', monospace;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ffcc00;
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.6);
}
.gv-title {
    margin-top: 4px;
    font-family: 'Courier New', monospace;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 0 12px rgba(255, 204, 0, 0.45);
}
#answerDetailsModal.gv-modal .btn-close,
#signupModal.gv-modal .btn-close,
#pricingModal.gv-modal .btn-close,
#themeModal.gv-modal .btn-close,
#challengeModal.gv-modal .btn-close { filter: invert(1) grayscale(1) brightness(2); opacity: 0.8; }
.gv-body { padding: 16px 18px 6px; }
.gv-empty { text-align: center; color: #94a3b8; padding: 30px 0; font-family: 'Courier New', monospace; }

/* HUD chips */
.gv-hud { display: flex; flex-wrap: wrap; gap: 10px; }
.gv-chip {
    flex: 1 1 120px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 204, 0, 0.07);
    border: 1px solid rgba(255, 204, 0, 0.3);
}
.gv-chip-wide { flex: 2 1 200px; }
.gv-chip-label {
    font-family: 'Courier New', monospace;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #ffcc00;
}
.gv-chip-value { font-family: 'Courier New', monospace; font-size: 1rem; font-weight: 800; color: #fff; }
.gv-chip-value i { color: #4ade80; margin-right: 4px; }
.gv-chip-score .gv-chip-value {
    font-size: 1.6rem;
    line-height: 1.1;
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.7);
}

/* Sections */
.gv-section { margin-top: 20px; animation: gvIn 0.45s ease-out both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes gvIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.gv-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #ffcc00;
}
.gv-section-title i { text-shadow: 0 0 8px rgba(255, 204, 0, 0.7); }
.gv-section-title small { color: #64748b; letter-spacing: 1px; font-size: 0.66rem; }
.gv-section-title::after {
    content: '';
    flex: 1;
    order: 99;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 204, 0, 0.5), transparent);
}
.gv-section-title small { order: 3; }

/* Critic score health bar */
.gv-rating { display: flex; align-items: center; gap: 12px; }
.gv-segs { flex: 1; display: flex; gap: 4px; }
.gv-seg {
    flex: 1;
    height: 16px;
    border-radius: 3px;
    transform: skewX(-18deg);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.gv-seg.on {
    background: var(--rc, #4ade80);
    border-color: transparent;
    box-shadow: 0 0 10px var(--rc, #4ade80);
}
.gv-rating-num {
    min-width: 54px;
    text-align: right;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--rc, #4ade80);
    text-shadow: 0 0 8px var(--rc, #4ade80);
}
.gv-rating-text { font-size: 1.3rem; color: #ffcc00; letter-spacing: 3px; }

/* Avatars: genre (image) + cast (user icon) */
.gv-avatars { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 16px; }
.gv-avatar { width: 104px; text-align: center; }
.gv-avatar-ring {
    position: relative;
    width: 76px;
    height: 76px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #11141f;
    border: 2px solid #ffcc00;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.6), 0 0 16px rgba(255, 204, 0, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gv-avatar:hover .gv-avatar-ring { transform: translateY(-3px) scale(1.07); box-shadow: 0 0 0 3px rgba(0,0,0,0.6), 0 0 24px rgba(255, 204, 0, 0.8); }
.gv-avatar-ring img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gv-avatar-fallback { display: none; font-size: 1.6rem; color: #ffcc00; }
.gv-avatar-ring.no-img .gv-avatar-fallback { display: block; }
.gv-avatar-name {
    margin-top: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    color: #e2e8f0;
    overflow-wrap: break-word;   /* wrap long names, never truncate */
}
.gv-cast .gv-avatar-ring {
    width: 60px;
    height: 60px;
    border-color: #38bdf8;
    background: radial-gradient(circle at 50% 30%, #1e3a52, #0f1b2a);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.6), 0 0 14px rgba(56, 189, 248, 0.45);
}
.gv-cast .gv-avatar-ring i { font-size: 1.5rem; color: #7dd3fc; }
.gv-cast:hover .gv-avatar-ring { box-shadow: 0 0 0 3px rgba(0,0,0,0.6), 0 0 22px rgba(56, 189, 248, 0.85); }
.gv-more .gv-avatar-ring {
    border-style: dashed;
    background: transparent;
    box-shadow: none;
}
.gv-more .gv-avatar-ring span { font-family: 'Courier New', monospace; font-weight: 900; font-size: 1.1rem; color: #7dd3fc; }

/* Stat / location / award tiles */
.gv-tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.gv-tile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 3px solid #ffcc00;
    flex: 1 1 160px;            /* short text: shares a row */
    min-width: 0;
}
.gv-tile.is-med  { flex-basis: 250px; }   /* a bit more room */
.gv-tile.is-long { flex-basis: 100%; }    /* long text: own full-width row */
.gv-tile-icon {
    flex: 0 0 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 204, 0, 0.12);
    color: #ffcc00;
}
.gv-tile-text { min-width: 0; }
.gv-tile-label {
    font-family: 'Courier New', monospace;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #94a3b8;
}
.gv-tile-value { font-size: 0.9rem; font-weight: 700; color: #fff; line-height: 1.25; word-break: break-word; }
.gv-tile.is-loc { border-left-color: #4ade80; }
.gv-tile.is-loc .gv-tile-icon { background: rgba(74, 222, 128, 0.12); color: #4ade80; }
.gv-tile.is-gold { border-left-color: #fbbf24; background: linear-gradient(90deg, rgba(251, 191, 36, 0.1), rgba(255,255,255,0.03)); }
.gv-tile.is-gold .gv-tile-icon { background: rgba(251, 191, 36, 0.18); color: #fbbf24; text-shadow: 0 0 8px rgba(251, 191, 36, 0.8); }
.gv-tile.is-silver { border-left-color: #cbd5e1; }
.gv-tile.is-silver .gv-tile-icon { background: rgba(203, 213, 225, 0.12); color: #cbd5e1; }

/* Footer: Continue button */
#answerDetailsModal.gv-modal .gv-footer,
#pricingModal.gv-modal .gv-footer { padding: 14px 0 0; border: 0; margin-top: 10px; background: transparent; }
.gv-continue {
    width: 100%;
    border: 0;
    border-top: 1px solid rgba(255, 204, 0, 0.5);
    padding: 12px 14px;
    background: #ffcc00;
    color: #000;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}
.gv-continue:hover { background: #ffd940; box-shadow: inset 0 0 16px rgba(255, 204, 0, 0.6); }
.gv-continue i { margin-right: 6px; }

@media (max-width: 480px) {
    .gv-title { font-size: 1.15rem; }
    .gv-avatar { width: 82px; }
    .gv-avatar-ring { width: 66px; height: 66px; }
    .gv-cast .gv-avatar-ring { width: 54px; height: 54px; }
    .gv-tile.is-med { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .gv-section { animation: none; }
    .gv-avatar-ring { transition: none; }
}

/* Results page: single Play Today button */
.recap-play {
    display: block;
    width: 100%;
    padding: 12px 14px;
    background: #ffcc00;
    color: #000;
    border: 1px solid #000;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-weight: 900;
    letter-spacing: 2px;
    text-align: center;
}
.recap-play:hover { background: #ffd940; color: #000; }

/* Genre emoji avatars */
.gv-genre .gv-avatar-ring { background: radial-gradient(circle at 50% 30%, #2a2540, #11141f); }
.gv-emoji { font-size: 2.2rem; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6)); }

/* ----------------------------------------------------------------------
   END-GAME TOOLBAR (date + Share Score after closing the results)
   ---------------------------------------------------------------------- */
#endGameRow .btn-group {
    overflow: hidden;
    border-radius: 14px;
    background: rgba(8, 10, 18, 0.78);
    border: 1px solid rgba(255, 204, 0, 0.35);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.6),
        0 0 24px rgba(255, 204, 0, 0.18),
        0 8px 24px rgba(0, 0, 0, 0.6) !important;   /* beats Bootstrap's .shadow-lg */
    animation: scoreboardEntry 0.35s ease-out;
}
#endGameRow .btn-group > .btn {
    border: 0;
    border-radius: 0;
    padding: 11px 22px;
    font-family: 'Courier New', monospace;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: none;
}
#endGameRow #endGameDate {
    background: transparent;
    color: #ffcc00;
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.6);
}
#endGameRow #endGameDate::before {
    content: '\f073';                       /* Font Awesome calendar-days */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
}
#endGameRow #shareScoreBtn {
    background: #ffcc00;
    color: #000;
    border-left: 1px solid rgba(255, 204, 0, 0.6);
    transition: background 0.15s ease, box-shadow 0.15s ease;
}
#endGameRow #shareScoreBtn:hover,
#endGameRow #shareScoreBtn:focus-visible {
    background: #ffd940;
    color: #000;
    box-shadow: inset 0 0 16px rgba(255, 204, 0, 0.6);
}
#endGameRow #shareScoreBtn:active { background: #e6b800; }

@media (max-width: 480px) {
    #endGameRow .btn-group > .btn { padding: 10px 14px; font-size: 0.85rem; letter-spacing: 1px; }
}

/* ----------------------------------------------------------------------
   MULTIPLE CHOICE ANSWER BUTTONS
   ---------------------------------------------------------------------- */
.mc-container {
    width: 100%;
    max-width: 520px;
    margin: 0 auto 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mc-option {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    color: #fff;
    background: rgba(8, 10, 18, 0.85);
    border: 1px solid rgba(255, 204, 0, 0.4);
    border-radius: 10px;
    transition: all 0.15s ease;
    cursor: pointer;
    gap: 12px; /* Spacing between icon and text */
}
.mc-option:hover:not(:disabled) {
    background: rgba(255, 204, 0, 0.15);
    border-color: #ffcc00;
    transform: translateX(3px);
}
.mc-option:disabled { cursor: default; opacity: 0.85; }

.mc-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.mc-option.mc-correct {
    background: #4ade80; /* Solid Green */
    border-color: #4ade80;
    color: #000; /* Black text for contrast */
    box-shadow: 0 0 16px rgba(74, 222, 128, 0.6);
    transform: scale(1.02);
}

.mc-option.mc-wrong {
    background: #ef4444; /* Solid Red */
    border-color: #ef4444;
    color: #fff;
}

/* ----------------------------------------------------------------------
   MODAL SCROLLBAR (Transparent until hovered)
   ---------------------------------------------------------------------- */
.gv-body {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.2s;
}
.gv-body:hover {
    scrollbar-color: rgba(255, 204, 0, 0.6) transparent;
}
/* Webkit (Chrome/Safari/Edge) */
.gv-body::-webkit-scrollbar {
    width: 8px;
}
.gv-body::-webkit-scrollbar-track {
    background: transparent;
}
.gv-body::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 4px;
}
.gv-body:hover::-webkit-scrollbar-thumb {
    background-color: rgba(255, 204, 0, 0.6);
}

/* Flush footer for the Bootstrap button */
#answerDetailsModal .gv-footer,
#themeModal .gv-footer,
#signupModal .gv-footer,
#challengeModal .gv-footer {
    padding: 0;
    border: 0;
    margin-top: 0;
    background: transparent;
}

/* ----------------------------------------------------------------------
   RECAP SCROLL TO TOP BUTTON
   ---------------------------------------------------------------------- */
.recap-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(8, 10, 18, 0.85);
    border: 1px solid rgba(255, 204, 0, 0.5);
    color: #ffcc00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.recap-scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.recap-scroll-top:hover {
    background: #ffcc00;
    color: #000;
    box-shadow: 0 0 16px rgba(255, 204, 0, 0.6);
}

/* ----------------------------------------------------------------------
   RECAP OVERLAY SCROLLBAR (Transparent until hovered)
   ---------------------------------------------------------------------- */
.recap-overlay {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.2s;
}
.recap-overlay:hover {
    scrollbar-color: rgba(255, 204, 0, 0.6) transparent;
}
/* Webkit (Chrome/Safari/Edge) */
.recap-overlay::-webkit-scrollbar {
    width: 10px;
}
.recap-overlay::-webkit-scrollbar-track {
    background: transparent;
}
.recap-overlay::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 5px;
}
.recap-overlay:hover::-webkit-scrollbar-thumb {
    background-color: rgba(255, 204, 0, 0.6);
}

/* Ensure the scroll-to-top button sits above the overlay */
.recap-scroll-top {
    z-index: 1050; /* Above overlay (1040) but below modals (1055) */
}

/* ----------------------------------------------------------------------
   SIGNUP + PRICING MODALS (reuse the .gv-modal look above)
   ---------------------------------------------------------------------- */
button.geogenre-pro-btn { cursor: pointer; font-size: 1rem; }

#signupModal.gv-modal .btn-close,
#pricingModal.gv-modal .btn-close,
#themeModal.gv-modal .btn-close,
#challengeModal.gv-modal .btn-close { filter: invert(1) grayscale(1) brightness(2); opacity: 0.8; }

.gv-copy { color: #cbd5e1; font-size: 0.92rem; line-height: 1.5; margin: 0 0 14px; }
.gv-copy strong { color: #fff; }
.gv-input {
    width: 100%;
    padding: 12px 14px;
    background: #0b0d17;
    color: #fff;
    border: 1px solid rgba(255, 204, 0, 0.4);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.gv-input::placeholder { color: #64748b; }
.gv-input:focus { border-color: #ffcc00; box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.2), 0 0 16px rgba(255, 204, 0, 0.25); }
.gv-msg { min-height: 1.3em; margin-top: 10px; color: #f87171; font-family: 'Courier New', monospace; font-size: 0.82rem; }
.gv-fine { text-align: center; color: #64748b; font-family: 'Courier New', monospace; font-size: 0.72rem; letter-spacing: 1px; margin: 4px 0 6px; }
.gv-fine i { margin-right: 4px; }
.gv-continue:disabled { opacity: 0.6; cursor: wait; }

.gv-sent { text-align: center; padding: 6px 0 4px; }
.gv-sent i { font-size: 2.4rem; color: #ffcc00; text-shadow: 0 0 14px rgba(255, 204, 0, 0.6); }
.gv-sent h6 { margin: 12px 0 8px; font-family: 'Courier New', monospace; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; color: #fff; }

.gv-plans { display: flex; flex-direction: column; gap: 10px; }
.gv-plan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    text-align: left;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 204, 0, 0.35);
    border-left: 4px solid #ffcc00;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.gv-plan:hover:not(:disabled) { background: rgba(255, 204, 0, 0.12); box-shadow: 0 0 18px rgba(255, 204, 0, 0.3); transform: translateY(-1px); }
.gv-plan:disabled { opacity: 0.55; cursor: wait; }
.gv-plan.is-loading { opacity: 1; box-shadow: 0 0 18px rgba(255, 204, 0, 0.5); }
.gv-plan.is-best { background: linear-gradient(90deg, rgba(255, 204, 0, 0.18), rgba(255, 255, 255, 0.04)); border-color: #ffcc00; }
.gv-plan-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gv-plan-name { font-size: 1rem; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.gv-plan-note { font-size: 0.75rem; color: #94a3b8; }
.gv-plan-badge {
    margin-left: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #ffcc00;
    color: #000;
    font-size: 0.6rem;
    letter-spacing: 1px;
    vertical-align: middle;
}
.gv-plan-price { font-size: 1.6rem; font-weight: 900; color: #ffcc00; text-shadow: 0 0 10px rgba(255, 204, 0, 0.45); }

.gv-later {
    width: 100%;
    padding: 12px 14px;
    background: transparent;
    color: #94a3b8;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.15s ease;
}
.gv-later:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .gv-plan { transition: none; }
}


/* Plan selection: checkmark left of the price + PayPal buy button */
.gv-plan-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.gv-plan-check { font-size: 1.3rem; color: #4ade80; opacity: 0; transform: scale(0.5); transition: opacity 0.15s ease, transform 0.15s ease; text-shadow: 0 0 10px rgba(74, 222, 128, 0.6); }
.gv-plan.is-selected { background: rgba(255, 204, 0, 0.14); border-color: #ffcc00; box-shadow: 0 0 20px rgba(255, 204, 0, 0.35); }
.gv-plan.is-selected .gv-plan-check { opacity: 1; transform: scale(1); }

.gv-paypal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 14px;
    padding: 14px 16px;
    background: #ffc439;
    color: #111;
    border: 1px solid #000;
    border-radius: 999px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    animation: gvBuyIn 0.25s ease-out both;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}
.gv-paypal i { color: #003087; font-size: 1.25rem; }
.gv-paypal:hover:not(:disabled) { background: #ffd15c; box-shadow: 0 0 18px rgba(255, 196, 57, 0.55); }
.gv-paypal:disabled { opacity: 0.7; cursor: wait; }
@keyframes gvBuyIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .gv-paypal { animation: none; } .gv-plan-check { transition: none; } }


/* ----------------------------------------------------------------------
   THEME PICKER (paid)
   ---------------------------------------------------------------------- */
.theme-fab { right: 20px; bottom: 76px; background: #ffcc00; color: #000; }
.theme-fab:hover { background: #ffd940; }

.gv-back-link { display: inline-block; margin-top: 14px; color: #94a3b8; font-family: 'Courier New', monospace; font-size: 0.8rem; letter-spacing: 1px; text-decoration: underline; }
.gv-back-link:hover { color: #fff; }

.gv-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.gv-tab {
    flex: 1;
    padding: 10px 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    border: 1px solid rgba(255, 204, 0, 0.25);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.gv-tab:hover { color: #fff; }
.gv-tab.is-active { background: #ffcc00; color: #000; border-color: #ffcc00; }

#themeSearch { margin-bottom: 4px; position: sticky; top: 0; z-index: 2; }
.gv-theme-heading { margin: 14px 0 8px; font-family: 'Courier New', monospace; font-size: 0.7rem; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: #ffcc00; }
.gv-theme-list { display: flex; flex-direction: column; gap: 8px; }
.gv-theme-list.is-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gv-theme-list.is-busy { opacity: 0.5; pointer-events: none; }
.gv-theme-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    padding: 10px 12px;
    text-align: left;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-left: 3px solid #ffcc00;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}
.gv-theme-list:not(.is-chips) .gv-theme-item { flex-direction: row; justify-content: space-between; align-items: center; }
.gv-theme-item:hover { background: rgba(255, 204, 0, 0.12); box-shadow: 0 0 14px rgba(255, 204, 0, 0.3); }
.gv-theme-name { font-weight: 800; font-size: 0.9rem; }
.gv-theme-count { color: #94a3b8; font-size: 0.7rem; }

/* ----------------------------------------------------------------------
   RECAP OVERLAY - NEW TITLE BOX & RATING WIDGET
   ---------------------------------------------------------------------- */
.recap-header-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.recap-title-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-radius: 14px;
    background: rgba(8, 10, 18, 0.78);
    border: 1px solid rgba(255, 204, 0, 0.35);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 0 24px rgba(255, 204, 0, 0.18), 0 8px 24px rgba(0,0,0,0.6);
    width: 100%;
}

.recap-title-box .recap-date-label {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffcc00;
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.5);
    letter-spacing: 1px;
}

.recap-title-box .recap-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 204, 0, 0.35);
    background: rgba(8, 10, 18, 0.78);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
    flex: 0 0 auto;
}
.recap-title-box .recap-close:hover {
    background: rgba(255, 204, 0, 0.18);
    color: #ffcc00;
}

.recap-rating-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(8, 10, 18, 0.78);
    border: 1px solid rgba(255, 204, 0, 0.35);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 0 24px rgba(255, 204, 0, 0.18), 0 8px 24px rgba(0,0,0,0.6);
    width: 100%;
    gap: 6px;
}

.rating-label {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #94a3b8;
    text-transform: uppercase;
}

.rating-stars {
    display: flex;
    gap: 12px;
    font-size: 1.8rem;
    color: #475569; /* Default gray */
}

.rating-star {
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

.rating-star.active,
.rating-star.hover {
    color: #ef4444; /* Red as requested */
    transform: scale(1.1);
}

/* ----------------------------------------------------------------------
   RECAP OVERLAY - NEW TITLE BOX & RATING WIDGET
   ---------------------------------------------------------------------- */
.recap-header-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 12px;
}

.recap-title-box {
    display: flex;
    align-items: center;
    justify-content: center; /* Centers "Today" */
    position: relative;
    padding: 10px 16px;
    border-radius: 14px;
    background: rgba(8, 10, 18, 0.78);
    border: 1px solid rgba(255, 204, 0, 0.35);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 0 24px rgba(255, 204, 0, 0.18), 0 8px 24px rgba(0,0,0,0.6);
    width: 100%;
}

.recap-title-box .recap-date-label {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffcc00;
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.5);
    letter-spacing: 1px;
}

.recap-title-box .recap-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%); /* Centers close btn vertically */
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 204, 0, 0.35);
    background: rgba(8, 10, 18, 0.78);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}
.recap-title-box .recap-close:hover {
    background: rgba(255, 204, 0, 0.18);
    color: #ffcc00;
}

/* Ensure both action buttons have the exact same corner radius */
.recap-actions .btn {
    border-radius: 10px;
}

/* ----------------------------------------------------------------------
   EXTRA GAME FORMATS: clues, timeline, set-vs-shoot, timer/lives HUD,
   survival, challenges
   ---------------------------------------------------------------------- */
.clue-container, .timeline-container {
    width: min(560px, 94vw);
    margin: 0 auto 10px;
    padding: 12px 14px;
    background: rgba(8, 10, 18, 0.88);
    border: 1px solid rgba(255, 204, 0, 0.35);
    border-radius: 14px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 0 24px rgba(255, 204, 0, 0.15), 0 8px 24px rgba(0,0,0,0.6);
    color: #f8fafc;
    font-family: 'Courier New', monospace;
    max-height: 56vh;
    overflow-y: auto;
}
.clue-worth { font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; color: #94a3b8; margin-bottom: 8px; }
.clue-worth b { color: #ffcc00; }
.clue-list { list-style: none; counter-reset: clue; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.clue-item {
    counter-increment: clue;
    padding: 8px 10px 8px 38px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #ffcc00;
    border-radius: 8px;
    font-size: 0.92rem;
}
.clue-item::before {
    content: counter(clue);
    position: absolute; left: 10px; top: 8px;
    width: 20px; height: 20px; border-radius: 50%;
    background: #ffcc00; color: #000; font-weight: 900; font-size: 0.72rem;
    display: flex; align-items: center; justify-content: center;
}
.clue-item.is-new { animation: clueIn 0.45s ease-out both; }
@keyframes clueIn { from { opacity: 0; transform: translateX(-12px); background: rgba(255, 204, 0, 0.35); } to { opacity: 1; transform: none; } }
.clue-guess { position: relative; }
.clue-suggest { display: flex; flex-direction: column; margin-top: 4px; max-height: 160px; overflow-y: auto; }
.clue-suggest-item {
    text-align: left; padding: 8px 10px; background: #12152a; color: #fff;
    border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: inherit; font-size: 0.88rem; cursor: pointer;
}
.clue-suggest-item span { color: #94a3b8; }
.clue-suggest-item:hover { background: rgba(255, 204, 0, 0.15); }
.clue-actions { display: flex; gap: 8px; margin-top: 10px; }
.clue-btn {
    flex: 1; padding: 10px 8px; border-radius: 8px; cursor: pointer;
    background: rgba(255, 255, 255, 0.06); color: #fff;
    border: 1px solid rgba(255, 204, 0, 0.35);
    font-family: inherit; font-weight: 800; font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase;
}
.clue-btn:hover:not(:disabled) { background: rgba(255, 204, 0, 0.15); }
.clue-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.clue-btn-primary { background: #ffcc00; color: #000; border-color: #ffcc00; }
.clue-btn-primary:hover:not(:disabled) { background: #ffd940; }
.clue-btn-ghost { border-color: rgba(255, 255, 255, 0.2); color: #94a3b8; }
.clue-msg { min-height: 1.2em; margin-top: 6px; }

.tl-hint { font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; color: #94a3b8; margin-bottom: 8px; }
.tl-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tl-item {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px;
    background: rgba(255, 255, 255, 0.05); border-left: 3px solid #ffcc00; border-radius: 8px;
}
.tl-num { width: 22px; height: 22px; border-radius: 50%; background: #ffcc00; color: #000; font-weight: 900; font-size: 0.75rem; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.tl-label { flex: 1; font-size: 0.92rem; min-width: 0; overflow-wrap: anywhere; }
.tl-year { font-weight: 900; color: #ffcc00; }
.tl-move { display: flex; gap: 4px; flex: 0 0 auto; }
.tl-move button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(255, 204, 0, 0.35); background: rgba(255, 255, 255, 0.06); color: #fff; cursor: pointer; }
.tl-move button:hover:not(:disabled) { background: rgba(255, 204, 0, 0.2); }
.tl-move button:disabled { opacity: 0.25; cursor: default; }
.tl-item.is-right { border-left-color: #4ade80; background: rgba(74, 222, 128, 0.14); }
.tl-item.is-wrong { border-left-color: #ef4444; background: rgba(239, 68, 68, 0.14); }
.tl-submit { width: 100%; }

.ss-hint {
    width: min(560px, 94vw); margin: 0 auto 8px; padding: 8px 12px; text-align: center;
    background: rgba(8, 10, 18, 0.88); border: 1px solid rgba(255, 204, 0, 0.35); border-radius: 10px;
    color: #f8fafc; font-family: 'Courier New', monospace; font-size: 0.85rem;
}
.ss-hint button { margin-left: 8px; background: transparent; border: 0; color: #38bdf8; text-decoration: underline; cursor: pointer; font-family: inherit; font-size: 0.8rem; }
.ss-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.ss-set { background: #a855f7; }
.ss-film { background: #38bdf8; }



.gv-toggle { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; border: 1px solid rgba(255, 204, 0, 0.25); border-radius: 8px; background: rgba(255, 255, 255, 0.04); color: #cbd5e1; font-size: 0.82rem; cursor: pointer; }
.gv-toggle input { margin-top: 3px; accent-color: #ffcc00; flex: 0 0 auto; }
.gv-toggle i { color: #ffcc00; }
.gv-survival-card { text-align: center; padding: 8px 4px; }
.gv-survival-hearts { font-size: 1.8rem; color: #ef4444; letter-spacing: 6px; margin-bottom: 8px; text-shadow: 0 0 12px rgba(239, 68, 68, 0.6); }
.gv-survival-card p { color: #cbd5e1; font-size: 0.9rem; line-height: 1.5; margin: 0 0 14px; }

.challenge-compare { padding: 12px; border: 1px solid rgba(255, 204, 0, 0.35); border-radius: 12px; background: rgba(8, 10, 18, 0.6); font-family: 'Courier New', monospace; }
.cc-row { display: flex; justify-content: space-between; padding: 4px 2px; color: #cbd5e1; }
.cc-row b { color: #ffcc00; font-size: 1.15rem; }
.cc-verdict { margin-top: 6px; text-align: center; color: #fff; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) { .clue-item.is-new { animation: none; } }


/* ----------------------------------------------------------------------
   THEME PICKER: timed Yes/No, beating heart
   ---------------------------------------------------------------------- */
.gv-timed-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin: 0 0 12px; padding: 10px 12px;
    border: 1px solid rgba(255, 204, 0, 0.25); border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}
.gv-timed-text { color: #cbd5e1; font-size: 0.82rem; line-height: 1.35; }
.gv-timed-text i { color: #ffcc00; margin-right: 4px; }
.gv-timed-row .btn-group { flex: 0 0 auto; }
.gv-timed-row .btn-outline-warning { font-family: 'Courier New', monospace; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
@media (max-width: 480px) { .gv-timed-row { flex-direction: column; align-items: stretch; text-align: center; } .gv-timed-row .btn-group { align-self: center; } }

.gv-heartbeat { text-align: center; margin: 6px 0 14px; }
.gv-heartbeat i {
    display: inline-block;
    font-size: 4rem;
    color: #ef4444;
    filter: drop-shadow(0 0 14px rgba(239, 68, 68, 0.7));
    transform-origin: center;
    animation: gvHeartbeat 1.25s ease-in-out infinite;
}
@keyframes gvHeartbeat {
    0%   { transform: scale(1); }
    14%  { transform: scale(1.28); }
    28%  { transform: scale(1); }
    42%  { transform: scale(1.18); }
    70%  { transform: scale(1); }
    100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .gv-heartbeat i { animation: none; } }


/* ----------------------------------------------------------------------
   LEADERBOARD ENTRY POINTS
   ---------------------------------------------------------------------- */
.recap-leaderboard-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.gv-leaderboard-link {
    display: block; margin-top: 12px; text-align: center; text-decoration: none;
    color: #ffcc00; font-family: 'Courier New', monospace; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; font-size: 0.85rem;
}
.gv-leaderboard-link:hover { color: #ffd940; text-decoration: underline; }
.gv-leaderboard-link i { margin-right: 6px; }


/* ----------------------------------------------------------------------
   IN-GAME PANEL SCROLLBARS: same as the results overlay
   (invisible until hovered, then a thin gold thumb)
   ---------------------------------------------------------------------- */
.clue-container, .timeline-container, .clue-suggest {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.2s;
}
.clue-container:hover, .timeline-container:hover, .clue-suggest:hover {
    scrollbar-color: rgba(255, 204, 0, 0.6) transparent;
}
.clue-container::-webkit-scrollbar, .timeline-container::-webkit-scrollbar, .clue-suggest::-webkit-scrollbar { width: 8px; }
.clue-container::-webkit-scrollbar-track, .timeline-container::-webkit-scrollbar-track, .clue-suggest::-webkit-scrollbar-track { background: transparent; }
.clue-container::-webkit-scrollbar-thumb, .timeline-container::-webkit-scrollbar-thumb, .clue-suggest::-webkit-scrollbar-thumb { background-color: transparent; border-radius: 4px; }
.clue-container:hover::-webkit-scrollbar-thumb, .timeline-container:hover::-webkit-scrollbar-thumb, .clue-suggest:hover::-webkit-scrollbar-thumb { background-color: rgba(255, 204, 0, 0.6); }


/* ----------------------------------------------------------------------
   SURVIVAL HEARTS live inside the question container, far right
   ---------------------------------------------------------------------- */
.pill-lives {
    position: absolute;
    top: 11px;
    right: 14px;
    display: flex;
    gap: 4px;
    font-size: 0.9rem;
    line-height: 1;
}
.pill-lives i { color: #ef4444; filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.65)); transition: color 0.25s ease; }
.pill-lives i.is-lost { color: #475569; filter: none; }


/* Leaderboard button arrow (nudges on hover, like the Result bars invite a click) */
.recap-leaderboard-btn .lb-arrow { font-size: 0.85em; transition: transform 0.15s ease; }
.recap-leaderboard-btn:hover .lb-arrow, .recap-leaderboard-btn:focus-visible .lb-arrow { transform: translateX(5px); }



/* Survival hearts reserve room in the question container; the countdown sits under the question */
.question-pill.has-lives .question-num { padding-right: 56px; }
.pill-timer { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.pill-timer-bar { flex: 1 1 auto; min-width: 140px; height: 6px; background: #1e2235; border-radius: 99px; overflow: hidden; }
.pill-timer-fill { height: 100%; width: 100%; background: #4ade80; transition: background 0.2s ease; }
.pill-timer-text { min-width: 36px; text-align: right; font-family: 'Courier New', monospace; font-weight: 900; font-size: 0.8rem; color: #fff; }


/* Game type shown above the summary rows (Survival / Challenge) */
.challenge-compare .cc-title {
    text-align: center; margin-bottom: 8px; color: #ffcc00;
    font-family: 'Courier New', monospace; font-weight: 900; font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase;
}

/* Timeline map pins: numbered oldest to newest */
.tl-pin {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #ffcc00; color: #000; border: 2px solid #000;
    font-family: 'Courier New', monospace; font-weight: 900; font-size: 0.85rem;
    box-shadow: 0 0 12px rgba(255, 204, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.6);
}


/* Challenge a friend window */
.challenge-link-row { display: flex; gap: 8px; align-items: stretch; }
.challenge-link-row .gv-input { flex: 1 1 auto; min-width: 0; font-size: 0.85rem; text-overflow: ellipsis; }
.challenge-share {
    flex: 0 0 auto; width: 48px; border-radius: 8px; cursor: pointer;
    border: 1px solid rgba(255, 204, 0, 0.4); background: rgba(255, 255, 255, 0.06); color: #ffcc00; font-size: 1.1rem;
}
.challenge-share:hover { background: rgba(255, 204, 0, 0.18); }
.challenge-share[hidden] { display: none; }
.gv-msg.challenge-status { min-height: 1.4em; }
.gv-msg.is-ok { color: #4ade80; }


/* ----------------------------------------------------------------------
   RESULTS: title on top (close circle at its right), then Upgrade + Leaderboard pills,
   Share Score pill under the bars, and the action pills each on their own row
   ---------------------------------------------------------------------- */
.recap-top-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; }
.recap-top-actions .geogenre-pro-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 26px; font-size: 0.95rem; white-space: nowrap; }
.recap-actions { align-items: center; }
.recap-actions .geogenre-pro-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 34px; }
.recap-actions-row { display: flex; flex-direction: column; align-items: center; gap: 18px; margin: 0; }
.recap-action { text-align: center; padding: 0; }
/* an empty container (no summary box on this screen) must not add its own gap */
.recap-streak:empty { display: none; }
.recap-action h4 { color: #fff; font-weight: 700; margin: 0 0 10px; font-size: 1.15rem; }
.recap-action .geogenre-pro-btn { white-space: nowrap; }

/* Timeline pins: instant tooltip on hover/focus (no position set here: MapLibre positions the marker element) */
.tl-pin { cursor: pointer; }
.tl-pin::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: max-content;
    max-width: 260px;
    padding: 7px 11px;
    border-radius: 10px;
    background: rgba(8, 10, 18, 0.96);
    border: 1px solid rgba(255, 204, 0, 0.55);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    color: #fff;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 0.78rem;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.12s ease, transform 0.12s ease;
    z-index: 10;
}
.tl-pin.tip-below::after { bottom: auto; top: calc(100% + 10px); transform: translateX(-50%) translateY(-4px); }
.tl-pin:hover, .tl-pin:focus-visible { z-index: 5; }
.tl-pin:hover::after, .tl-pin:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.tl-pin:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
