:root {
    --bg: #0a0a0c;
    --bg-card: #141418;
    --text: #e8e8ed;
    --text-muted: #a0a0b0;
    --accent: #00a8ff;
    --accent-dark: #0088cc;
    --border: #2a2a32;
    --danger: #ff4d4d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 12, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 6px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--accent);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,10,12,0.4) 0%, rgba(10,10,12,0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Stats */
.stats {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
}

.stats .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

.section-intro {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 48px;
    font-size: 1.1rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

a.gallery-item {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--bg-card);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 40px 16px 16px;
    opacity: 1;
    transform: none;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.gallery-overlay p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.note {
    text-align: center;
    margin-top: 32px;
    color: var(--text-muted);
}

/* Stories */
.stories-section {
    background: var(--bg-card);
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.story-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: transform 0.2s, border-color 0.2s;
}

.story-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.story-tag {
    display: inline-block;
    background: rgba(0, 168, 255, 0.15);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.story-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.story-card p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.story-meta {
    font-size: 0.85rem;
    color: #666;
}

/* Form */
.submit-section {
    background: linear-gradient(180deg, var(--bg) 0%, #0d1117 100%);
}

.submit-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0a0b0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox input {
    margin-top: 4px;
    width: auto;
}

.checkbox label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.form-note {
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* About */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.about-text ul {
    margin: 16px 0 24px 24px;
    color: var(--text-muted);
}

.about-text li {
    margin-bottom: 8px;
}

.disclaimer {
    background: rgba(255, 77, 77, 0.1);
    border-left: 4px solid var(--danger);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin-top: 24px;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: #050506;
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo p {
    color: var(--text-muted);
    margin-top: 8px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: #555;
    font-size: 0.85rem;
}

.last-updated {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 16px;
        font-size: 0.9rem;
    }

    .logo-img {
        height: 36px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .hero {
        min-height: 85vh;
        min-height: 85dvh;
        padding: 100px 16px 60px;
    }

    .hero h1 {
        font-size: 2.4rem;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 16px 24px;
    }

    .stats .container {
        flex-direction: column;
        gap: 28px;
    }

    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 1.9rem;
    }

    .section-intro {
        font-size: 1rem;
        margin-bottom: 32px;
        padding: 0 8px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stories-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .submit-form {
        padding: 28px 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    body {
        overflow-x: hidden;
    }
}

/* ===== Game: What Went Wrong? ===== */
.game-section {
    padding-top: 120px;
    background: linear-gradient(180deg, var(--bg) 0%, #0d1117 100%);
}

.game-container {
    max-width: 860px;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.game-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.game-score {
    color: var(--accent);
}

.game-progress-bar {
    height: 6px;
    background: var(--bg);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 20px;
}

.game-progress-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--accent);
    transition: width 0.3s;
}

.game-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.game-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Covers YouTube's title strip (which often names the cause) until the player answers.
   Only the top strip: the centre play button and bottom controls stay usable. */
.game-title-cover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 0 18px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
}

.game-title-cover::before {
    content: '?';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 12px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    font-weight: 800;
    flex-shrink: 0;
}

.game-blur-cover[hidden],
.game-title-cover[hidden],
.game-end-cover[hidden],
.game-feedback[hidden],
.game-final[hidden],
#gameQuestion[hidden] {
    display: none;
}

/* Covers YouTube's end-screen suggestions if a clip finishes before the player answers. */
.game-end-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px;
    text-align: center;
    background: var(--bg-card);
    color: var(--text);
    font-weight: 600;
}

.game-prompt {
    font-size: 1.4rem;
    text-align: center;
    margin: 24px 0 16px;
}

.game-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.game-choice {
    width: 100%;
    min-height: 56px;
    padding: 14px 18px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.game-choice:hover:not(:disabled) {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.game-choice:focus-visible,
.game-feedback:focus-visible,
.game-final:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.game-choice:disabled {
    cursor: default;
    opacity: 0.6;
}

.game-choice.is-correct {
    opacity: 1;
    border-color: #3ecf6e;
    background: rgba(62, 207, 110, 0.14);
}

.game-choice.is-correct::before {
    content: '\2713  ';
    color: #3ecf6e;
    font-weight: 800;
}

.game-choice.is-wrong {
    opacity: 1;
    border-color: var(--danger);
    background: rgba(255, 77, 77, 0.12);
}

.game-choice.is-wrong::before {
    content: '\2717  ';
    color: var(--danger);
    font-weight: 800;
}

.game-feedback {
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
}

.game-verdict {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.game-verdict.is-correct { color: #3ecf6e; }
.game-verdict.is-wrong { color: var(--danger); }

.game-explain {
    margin-bottom: 12px;
}

.game-credit {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.game-credit a,
.game-disclaimer a {
    color: var(--accent);
}

.game-final {
    text-align: center;
    padding: 24px 8px;
}

.game-final-label {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.game-final-score {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.1;
    margin: 8px 0;
}

.game-rank {
    font-size: 1.6rem;
    font-weight: 800;
}

.game-rank-note {
    color: var(--text-muted);
    margin: 6px auto 24px;
    max-width: 480px;
}

.game-final-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.game-share-status {
    margin-top: 12px;
    min-height: 1.6em;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.game-cta {
    margin-top: 32px;
    padding: 32px 24px;
    text-align: center;
    border-radius: 16px;
    border: 1px solid var(--accent);
    background: rgba(0, 168, 255, 0.08);
}

.game-cta h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.game-cta p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.game-disclaimer {
    margin-top: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: #777;
}

@media (max-width: 768px) {
    .game-section {
        padding-top: 140px;
    }

    .game-card {
        padding: 16px;
    }

    .game-title-cover {
        height: 60px;
        padding: 0 12px;
        font-size: 0.95rem;
    }

    .game-title-cover::before {
        width: 24px;
        height: 24px;
        margin-right: 10px;
    }

    .game-prompt {
        font-size: 1.2rem;
    }

    .game-choices {
        grid-template-columns: 1fr;
    }

    .game-final-score {
        font-size: 3.2rem;
    }
}

.game-comments {
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.game-comments h3 { margin-bottom: 8px; }
.game-comments p { color: var(--text-muted); margin-bottom: 16px; }
.game-comments .game-comments-alt { font-size: 0.95rem; }
.game-comments .game-comments-alt a { color: var(--accent); font-weight: 600; }

/* ===== Shared helpers ===== */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}
.nav-links a[aria-current="page"] { color: var(--accent); }

/* ===== Nav: 9 links. Tighter gaps on mid widths, hamburger on small screens ===== */
.nav-toggle { display: none; }

@media (max-width: 1150px) {
    .nav-links { gap: 20px; }
    .nav { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 900px) {
    /* Only collapse when JS is running (script.js adds .nav-js); otherwise links just wrap. */
    .nav-js .nav { flex-wrap: nowrap; }
    .nav-js .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 10px;
        background: transparent;
        border: 1px solid var(--border);
        border-radius: 8px;
        cursor: pointer;
    }
    .nav-js .nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    .nav-toggle-bar {
        display: block;
        height: 2px;
        width: 100%;
        background: var(--text);
        border-radius: 2px;
        transition: transform 0.2s, opacity 0.2s;
    }
    .nav.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
    .nav.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-js .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 8px 16px 16px;
        background: rgba(10, 10, 12, 0.98);
        border-bottom: 1px solid var(--border);
        font-size: 1.05rem;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    .nav-js .nav.is-open .nav-links { display: flex; }
    .nav-js .nav-links li { border-bottom: 1px solid var(--border); }
    .nav-js .nav-links li:last-child { border-bottom: 0; }
    .nav-js .nav-links a { display: block; padding: 12px 4px; }

    .nav-js .game-section { padding-top: 110px; }
}

/* ===== Badges ===== */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(0, 168, 255, 0.12);
    border: 1px solid rgba(0, 168, 255, 0.45);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    vertical-align: middle;
}
.badge-icon { font-size: 0.95em; }
.badge-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}
.earn-badges {
    max-width: 700px;
    margin: -16px auto 28px;
    padding: 16px 20px;
    text-align: center;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: 12px;
    color: var(--text-muted);
}
.earn-badges strong { color: var(--text); }
.field-hint {
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.field-hint a { color: var(--accent); }

/* ===== Crash of the Month (home) ===== */
.cotm-section { padding: 56px 0 0; }
.cotm-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 16px;
    box-shadow: 0 0 0 4px rgba(0, 168, 255, 0.06);
}
.cotm-video {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}
.cotm-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cotm-kicker {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}
.section .cotm-body h2 { font-size: 1.8rem; text-align: left; margin: 4px 0 8px; }
.cotm-summary { color: var(--text-muted); margin-bottom: 10px; }
.cotm-credit, .cotm-vote { font-size: 0.92rem; margin-bottom: 6px; }
.cotm-credit a, .cotm-vote a { color: var(--accent); }
.cotm-vote { color: var(--text-muted); }
.cotm-vote strong { color: var(--text); }
@media (max-width: 768px) {
    .cotm-section { padding-top: 40px; }
    .cotm-card { grid-template-columns: 1fr; gap: 16px; padding: 14px; }
    .section .cotm-body h2 { font-size: 1.5rem; }
}

/* ===== Map + Stats pages ===== */
.page-section { padding-top: 120px; }
.crash-map-wrap { position: relative; }
.crash-map {
    height: 520px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #111;
    overflow: hidden;
}
.crash-map-noscript { padding: 24px; color: var(--text-muted); text-align: center; }
.map-approx-note { margin-top: 10px; font-size: 0.85rem; color: var(--text-muted); text-align: center; }
.leaflet-container { font-family: inherit; background: #1b1d22; }
/* Dark-theme the light OSM tiles without touching pins/popups. */
.crash-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.9) contrast(0.9) saturate(0.6); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}
.leaflet-popup-content { margin: 14px 16px; line-height: 1.45; }
.leaflet-popup-content p { margin: 0 0 6px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--text-muted); }
.leaflet-container .leaflet-popup-content a { color: var(--accent); }
.leaflet-control-attribution { background: rgba(10, 10, 12, 0.8) !important; color: var(--text-muted) !important; }
.leaflet-control-attribution a { color: var(--accent) !important; }
.crash-popup-title { font-weight: 700; font-size: 1rem; }
.crash-popup-approx { font-size: 0.8rem; color: var(--text-muted); }
.crash-popup-credit { font-size: 0.85rem; color: var(--text-muted); }
.crash-popup-watch a { font-weight: 700; }

.map-cta {
    margin: 32px 0;
    padding: 28px 24px;
    text-align: center;
    border-radius: 16px;
    border: 1px solid var(--accent);
    background: rgba(0, 168, 255, 0.08);
}
.map-cta h3 { font-size: 1.5rem; margin-bottom: 8px; }
.map-cta p { color: var(--text-muted); margin: 0 auto 18px; max-width: 560px; }

.map-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.map-lists h3 { margin-bottom: 12px; }
.crash-list { list-style: none; display: grid; gap: 12px; }
.crash-list-item {
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.crash-list-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.crash-list-title { font-weight: 600; margin-bottom: 4px; }
.crash-list-meta { font-size: 0.88rem; color: var(--text-muted); }
.crash-list-meta a { color: var(--accent); }
.link-btn {
    background: none; border: 0; padding: 4px 0;
    color: var(--accent); font: inherit; font-size: 0.85rem; font-weight: 600;
    cursor: pointer; text-decoration: underline;
}
.link-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.stats-container { max-width: 1000px; }
.stats-source {
    max-width: 760px;
    margin: -24px auto 32px;
    padding: 12px 16px;
    text-align: center;
    font-size: 0.92rem;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    border-radius: 10px;
}
.stats-source strong { color: var(--text); }
.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-tile {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 20px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.stat-tile-n { font-size: 2.6rem; font-weight: 800; color: var(--accent); line-height: 1.1; }
.stat-tile-label { font-weight: 600; }
.stat-tile-sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stats-panel {
    padding: 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.stats-panel h3 { margin-bottom: 12px; }
.panel-note { font-size: 0.85rem; color: var(--text-muted); margin: -6px 0 12px; }
.bar-chart { list-style: none; display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.bar-label { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.92rem; }
.bar-track { height: 12px; background: var(--bg); border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.bar-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-dark), var(--accent)); border-radius: 6px; }
.bar-value { font-weight: 700; min-width: 1.5em; text-align: right; }
.cost-list { list-style: none; display: grid; gap: 10px; }
.cost-list li { display: flex; gap: 12px; align-items: baseline; }
.cost-amount { font-weight: 800; color: var(--accent); min-width: 120px; font-size: 1.1rem; white-space: nowrap; }
.cost-what { color: var(--text-muted); font-size: 0.92rem; }
.cost-what a { color: var(--text); }
.cost-lost .cost-amount { color: var(--danger); }
.badge-legend { list-style: none; display: grid; gap: 8px; }
.badge-legend li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.9rem; }
.badge-legend-desc { color: var(--text-muted); flex: 1; }
.badge-legend-n { font-size: 0.8rem; color: var(--text-muted); }

@media (max-width: 768px) {
    .page-section { padding-top: 100px; }
    .crash-map { height: 60vh; min-height: 340px; }
    .map-lists, .stats-grid { grid-template-columns: 1fr; }
    .stat-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-tile-n { font-size: 2rem; }
    .stats-source, .earn-badges { margin-top: -12px; }
}


/* Game: blurred pre-play cover (hides thumbnails that give the answer away) */
.game-blur-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(10, 10, 12, 0.94);   /* fallback: near-opaque tint */
    color: var(--text);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .game-blur-cover {
        background: rgba(10, 10, 12, 0.55);
        -webkit-backdrop-filter: blur(28px) saturate(0.6);
        backdrop-filter: blur(28px) saturate(0.6);
    }
}

.game-play-btn {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 0;
    background: var(--accent);
    color: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s, background 0.2s;
}

.game-play-btn:hover {
    background: var(--accent-dark);
    transform: scale(1.06);
}

.game-play-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

.game-blur-label {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .game-play-btn {
        width: 64px;
        height: 64px;
    }

    .game-play-btn svg {
        width: 28px;
        height: 28px;
    }

    .game-blur-label {
        font-size: 1rem;
    }
}

/* ===== Facebook integration (no SDK) ===== */
.fb-icon { flex-shrink: 0; vertical-align: middle; }

/* Header icon: icon-only on desktop, icon + label inside the mobile menu */
.nav-links .nav-social a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); }
.nav-links .nav-social a:hover,
.nav-links .nav-social a:focus-visible { color: var(--accent); }
.nav-social-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 900px) {
    .nav-js .nav-links .nav-social a { display: flex; padding: 12px 4px; }
    .nav-js .nav-social-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

/* Footer icon */
.footer-social { display: flex; gap: 12px; align-items: center; }
.social-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--border); color: var(--text-muted);
    transition: color 0.2s, border-color 0.2s;
}
.social-link:hover, .social-link:focus-visible { color: var(--accent); border-color: var(--accent); }
.social-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Home: Discord + Facebook side by side, stacked on small screens */
.chat-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 32px; }
.chat-grid .discord-widget { flex: 0 1 350px; margin: 0 !important; }
.chat-grid .discord-widget iframe { max-width: 100%; }
.fb-widget { flex: 0 1 350px; max-width: 350px; text-align: center; }
.fb-card {
    display: flex; flex-direction: column; width: 100%; max-width: 350px; height: 500px; margin: 0 auto;
    border-radius: 8px; overflow: hidden; background: #1e1f22; text-align: center;
}
.fb-card-bar {
    display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 16px; flex-shrink: 0;
    background: #1877F2; color: #fff; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.3px;
}
.fb-card-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 24px 28px; }
.fb-card-avatar { width: 88px; height: 88px; object-fit: cover; border-radius: 50%; border: 3px solid #1877F2; background: #000; }
.fb-card-name { margin-top: 14px; font-size: 1.35rem; font-weight: 700; color: var(--text); }
.fb-card-handle { margin-top: 2px; font-size: 0.85rem; color: var(--text-muted); }
.fb-card-blurb { margin-top: 16px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }
.fb-card-list { list-style: none; margin-top: 18px; padding: 0; width: 100%; text-align: left; }
.fb-card-list li { padding: 10px 12px; border-top: 1px solid var(--border); color: var(--text); font-size: 0.95rem; }
.fb-card-list li:last-child { border-bottom: 1px solid var(--border); }
.btn-fb-follow { margin-top: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding-left: 20px; padding-right: 20px; white-space: nowrap; }

/* Share on Facebook buttons */
.btn-fb { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.cotm-share { margin-top: 12px; }
.fb-share-row { margin: 0 0 32px; text-align: center; }
.fb-share-row p { color: var(--text-muted); margin-bottom: 12px; }
@media (max-width: 768px) {
    .chat-grid { flex-direction: column; align-items: center; }
    .chat-grid .discord-widget, .fb-widget { flex: none; width: 100%; max-width: 350px; }
    .btn-sm { padding: 10px 16px; }
    .btn-fb-follow { max-width: 100%; padding-left: 16px; padding-right: 16px; }
}

/* ===== Legal pages (privacy, disclosure, submission terms) ===== */
.legal-page { padding: 130px 0 80px; }
.legal-container { max-width: 820px; }
.legal-page h1 { font-size: 2.4rem; font-weight: 800; line-height: 1.2; margin-bottom: 6px; }
.legal-effective { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 28px; }
.legal-page h2 { font-size: 1.4rem; text-align: left; margin: 36px 0 10px; }
.legal-page p { margin-bottom: 14px; color: var(--text); }
.legal-page ul { margin: 8px 0 18px 24px; }
.legal-page li { margin-bottom: 8px; color: var(--text); }
.legal-page a { color: #4dc3ff; text-decoration: underline; text-underline-offset: 2px; }
.legal-page a:hover { color: #9be0ff; }
.legal-summary { background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; padding: 20px 24px 8px; margin-bottom: 32px; }
.legal-summary h2 { margin-top: 0; font-size: 1.25rem; }
.legal-summary-note { font-size: 0.85rem; color: var(--text-muted) !important; }
@media (max-width: 600px) {
    .legal-page { padding: 100px 0 60px; }
    .legal-page h1 { font-size: 1.8rem; }
}
.footer-legal { margin-bottom: 10px; font-size: 0.9rem; }
.footer-legal a { color: #4dc3ff; text-decoration: none; }
.footer-legal a:hover { color: #9be0ff; text-decoration: underline; }
.footer-legal span { color: var(--text-muted); margin: 0 6px; }
.checkbox label a { color: #4dc3ff; text-decoration: underline; }
.form-note a { color: #4dc3ff; }

/* ===== Submit form restyle (scoped to #submit .fd-submit-card; nothing else on the site uses these) ===== */
#submit .fd-submit-card {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    border-radius: 20px;
    background:
        radial-gradient(120% 60% at 50% 0%, rgba(0, 168, 255, 0.10) 0%, rgba(0, 168, 255, 0) 60%),
        linear-gradient(180deg, #16161b 0%, #111115 100%);
    border: 1px solid rgba(0, 168, 255, 0.28);
    box-shadow: 0 0 0 1px rgba(0, 168, 255, 0.06), 0 0 40px rgba(0, 168, 255, 0.10), 0 24px 60px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}
#submit .fd-submit-card::before {
    content: "";
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00a8ff 30%, #4dc3ff 50%, #00a8ff 70%, transparent);
    box-shadow: 0 0 18px rgba(0, 168, 255, 0.8);
}
#submit .fd-card-head {
    max-width: none;
    margin: 0;
    padding: 26px 32px 22px;
    background: linear-gradient(180deg, rgba(0, 168, 255, 0.07), rgba(0, 168, 255, 0));
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
}
#submit .fd-card-head p { font-size: 0.95rem; }
#submit .fd-card-head .badge-pill {
    background: rgba(0, 168, 255, 0.10);
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.18);
}
#submit .fd-submit-card .submit-form {
    max-width: none;
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 12px 32px 32px;
}
#submit .fd-step {
    border: 0;
    margin: 0;
    padding: 24px 0 4px;
    min-width: 0;
}
#submit .fd-step + .fd-step { border-top: 1px solid rgba(255, 255, 255, 0.06); }
#submit .fd-step-title {
    float: left;
    width: 100%;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--text);
}
#submit .fd-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 800;
    color: #001520;
    background: linear-gradient(135deg, #4dc3ff, #0088cc);
    box-shadow: 0 0 12px rgba(0, 168, 255, 0.55);
    flex: none;
}
#submit .fd-step-icon { font-size: 1rem; opacity: 0.9; }
#submit .fd-step-sub {
    clear: both;
    padding-top: 6px;
    margin: 0 0 18px 38px;
    font-size: 0.88rem;
    color: var(--text-muted);
}
#submit .form-group label { color: #d6d6de; font-weight: 600; font-size: 0.9rem; }
#submit .form-group input:not([type="checkbox"]),
#submit .form-group textarea,
#submit .form-group select {
    background-color: #0c0c10;
    border: 1px solid #2c2c36;
    border-radius: 12px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
#submit .form-group input:not([type="checkbox"]):hover,
#submit .form-group textarea:hover,
#submit .form-group select:hover { border-color: #3a3a48; }
#submit .form-group input:not([type="checkbox"]):focus,
#submit .form-group textarea:focus,
#submit .form-group select:focus {
    outline: none;
    border-color: #00a8ff;
    background-color: #0e1117;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(0, 168, 255, 0.22), 0 0 18px rgba(0, 168, 255, 0.18);
}
#submit .form-group input::placeholder,
#submit .form-group textarea::placeholder { color: #6c6c7a; }
#submit .form-group select option { background: #141418; color: var(--text); }
#submit .checkbox {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.2s, background 0.2s;
}
#submit .checkbox:hover { border-color: rgba(0, 168, 255, 0.35); }
#submit .checkbox:focus-within { border-color: #00a8ff; background: rgba(0, 168, 255, 0.05); }
#submit .checkbox input {
    width: 18px; height: 18px;
    margin-top: 2px;
    accent-color: #00a8ff;
    flex: none;
    cursor: pointer;
}
#submit .checkbox input:focus-visible { outline: 2px solid #4dc3ff; outline-offset: 2px; }
#submit .checkbox label { font-weight: 400; color: #b4b4c2; cursor: pointer; }
#submit .fd-send {
    margin-top: 12px;
    padding: 22px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(0, 168, 255, 0.06), rgba(0, 168, 255, 0.02));
    border: 1px solid rgba(0, 168, 255, 0.18);
}
#submit .fd-send .form-group { margin-bottom: 12px; }
#submit .fd-send .form-note { margin: 0; text-align: left; font-size: 0.85rem; color: var(--text-muted); }
#submit .fd-send .form-note a { color: #4dc3ff; }
#submit .email-btn {
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
#submit .email-btn.btn-primary {
    color: #001520;
    background: linear-gradient(135deg, #4dc3ff 0%, #00a8ff 45%, #0077b8 100%);
    box-shadow: 0 6px 20px rgba(0, 168, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
#submit .email-btn.btn-primary:hover {
    background: linear-gradient(135deg, #6fd0ff 0%, #19b2ff 45%, #0088cc 100%);
    box-shadow: 0 8px 28px rgba(0, 168, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}
#submit .email-btn.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #33333f;
    color: var(--text);
}
#submit .email-btn.btn-secondary:hover {
    border-color: #00a8ff;
    background: rgba(0, 168, 255, 0.08);
    box-shadow: 0 0 16px rgba(0, 168, 255, 0.2);
    transform: translateY(-2px);
}
#submit .email-btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }
#submit .email-btn:focus-visible { outline: 2px solid #4dc3ff; outline-offset: 3px; }
@media (max-width: 768px) {
    #submit .fd-submit-card { border-radius: 16px; }
    #submit .fd-card-head { padding: 20px 18px 18px; }
    #submit .fd-submit-card .submit-form { padding: 4px 18px 22px; }
    #submit .fd-step-sub { margin-left: 0; }
    #submit .fd-send { padding: 16px; }
    #submit .fd-cost-row { grid-template-columns: 1.3fr 1fr; gap: 12px; align-items: end; }
    #submit .email-options { display: grid !important; grid-template-columns: 1fr 1fr; }
    #submit .email-btn { width: 100%; max-width: none; padding: 12px 10px; }
}
@media (prefers-reduced-motion: reduce) {
    #submit .email-btn, #submit .form-group input, #submit .form-group select, #submit .form-group textarea { transition: none; }
    #submit .email-btn:hover { transform: none; }
}

/* ===== Submit form: Dropbox upload option (scoped to #submit) ===== */
#submit .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
#submit .fd-upload {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px 18px;
    margin: -4px 0 20px;
    padding: 16px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.08) 0%, rgba(0, 168, 255, 0.02) 100%);
    border: 1px dashed rgba(0, 168, 255, 0.45);
}
#submit .fd-upload-title { margin: 0 0 4px; font-weight: 700; color: #e8e8f0; font-size: 0.95rem; }
#submit .fd-upload-sub { margin: 0; font-size: 0.85rem; color: #9a9aaa; line-height: 1.45; }
#submit .fd-upload-eg { white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #b4dfff; font-size: 0.8rem; }
#submit .fd-upload-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 18px;
    border-radius: 12px;
    font-weight: 600; font-size: 0.92rem;
    color: #e8f6ff; text-decoration: none; white-space: nowrap;
    background: rgba(0, 168, 255, 0.12);
    border: 1px solid rgba(0, 168, 255, 0.6);
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
#submit .fd-upload-btn:hover {
    background: rgba(0, 168, 255, 0.22);
    box-shadow: 0 0 18px rgba(0, 168, 255, 0.3);
    transform: translateY(-2px);
}
#submit .fd-upload-btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }
#submit .fd-upload-btn:focus-visible { outline: 2px solid #4dc3ff; outline-offset: 3px; }
#submit .fd-upload .fd-upload-check { grid-column: 1 / -1; margin: 0; }
@media (max-width: 768px) {
    #submit .fd-upload { grid-template-columns: 1fr; padding: 14px; }
    #submit .fd-upload-btn { width: 100%; white-space: normal; }
}

/* ===== YouTube channel links ===== */
.yt-icon { flex-shrink: 0; vertical-align: middle; }
.nav-links .nav-social-yt a:hover,
.nav-links .nav-social-yt a:focus-visible { color: #FF0000; }
.social-link-yt:hover, .social-link-yt:focus-visible { color: #FF0000; border-color: #FF0000; }
.social-link-yt:focus-visible { outline-color: #FF0000; }
.fb-widget .btn-fb-follow { display: flex; width: 100%; }
.btn-yt-follow {
    margin-top: 10px; display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px;
    padding-left: 20px; padding-right: 20px; white-space: nowrap;
    background: rgba(255, 255, 255, 0.03); border: 1px solid #33333f; color: var(--text);
    transition: border-color 0.2s, background 0.2s;
}
.btn-yt-follow .yt-icon { color: #FF0000; }
.btn-yt-follow:hover, .btn-yt-follow:focus-visible { border-color: #FF0000; background: rgba(255, 0, 0, 0.08); color: var(--text); }
@media (max-width: 1150px) and (min-width: 901px) {
    .nav-links { gap: 16px; }
}
.fb-widget .btn-yt-follow { max-width: 100%; }

/* ===== Explore Fallen Drones (home page, right after the hero) ===== */
.btn-hero { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 28px; font-size: 1.05rem; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35); }
.btn-hero svg { flex: none; }
.btn-primary.btn-hero { box-shadow: 0 8px 28px rgba(0, 168, 255, 0.28); }
.btn-glass { background: rgba(255, 255, 255, 0.08); color: var(--text); border: 1px solid rgba(255, 255, 255, 0.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-glass:hover, .btn-glass:focus-visible { border-color: var(--accent); color: var(--accent); background: rgba(0, 168, 255, 0.1); transform: translateY(-2px); }
.hero-links { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; color: var(--text-muted); font-size: 0.95rem; }
.hero-links a { color: var(--text); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.25); padding-bottom: 1px; }
.hero-links a:hover, .hero-links a:focus-visible { color: var(--accent); border-color: var(--accent); }

.explore-section { padding: 72px 0 24px; background: radial-gradient(1200px 400px at 50% 0%, rgba(0, 168, 255, 0.07), transparent 70%); scroll-margin-top: 70px; }
.explore-kicker { text-align: center; text-transform: uppercase; letter-spacing: 2px; font-size: 0.78rem; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.explore-section .section-intro { margin-bottom: 36px; }
.explore-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.explore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.explore-card { position: relative; display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--text); transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.explore-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.4s; }
.explore-card:hover, .explore-card:focus-visible { transform: translateY(-3px); border-color: rgba(0, 168, 255, 0.6); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45); }
.explore-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.explore-card:hover img { transform: scale(1.04); }
.explore-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.explore-body h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.explore-body p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.5; }
.explore-cta { margin-top: auto; padding-top: 6px; color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.explore-card-lg .explore-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 64px 24px 22px; background: linear-gradient(to top, rgba(8, 8, 10, 0.95) 0%, rgba(8, 8, 10, 0.75) 55%, transparent 100%); }
.explore-card-lg .explore-body h3 { font-size: 1.6rem; letter-spacing: -0.3px; }
.explore-card-lg .explore-body p { color: #c8c8d4; font-size: 1rem; max-width: 46ch; }
.explore-card-lg .explore-cta { align-self: flex-start; margin-top: 8px; padding: 9px 16px; border-radius: 8px; background: var(--accent); color: #000; font-size: 0.95rem; }
.explore-card-lg .explore-tag { display: inline-block; position: static; align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); background: rgba(0, 168, 255, 0.14); border: 1px solid rgba(0, 168, 255, 0.35); border-radius: 999px; padding: 2px 10px; }
.explore-card-accent { border-color: rgba(0, 168, 255, 0.35); }
@media (max-width: 900px) {
    .explore-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 768px) {
    .explore-section { padding: 48px 0 8px; }
    .explore-featured { grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
    .explore-card-lg .explore-body { padding: 48px 18px 16px; }
    .explore-card-lg .explore-body h3 { font-size: 1.3rem; }
    .explore-card-lg .explore-body p { font-size: 0.92rem; }
    .explore-body { padding: 12px 14px 14px; gap: 4px; }
    .explore-body h3 { font-size: 1rem; }
    .explore-body p { font-size: 0.82rem; }
    .explore-cta { font-size: 0.88rem; }
    .btn-hero { padding: 15px 20px; }
    .hero-buttons-main { gap: 12px; }
}
@media (max-width: 400px) {
    .explore-grid .explore-body p { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .explore-card, .explore-card img { transition: none; }
    .explore-card:hover, .explore-card:hover img { transform: none; }
}

/* ===== Hamburger: show a "Menu" label so first-time visitors notice it ===== */
@media (max-width: 900px) {
    .nav-js .nav-toggle {
        display: inline-grid;
        grid-template-columns: 20px auto;
        grid-template-rows: repeat(3, 2px);
        column-gap: 9px;
        row-gap: 5px;
        align-content: center;
        align-items: center;
        width: auto;
        height: 44px;
        padding: 0 14px 0 12px;
        color: var(--text);
    }
    .nav-js .nav-toggle .nav-toggle-bar { grid-column: 1; }
    .nav-js .nav-toggle .nav-toggle-text { grid-column: 2; grid-row: 1 / 4; font: 600 0.9rem/1 'Inter', sans-serif; letter-spacing: 0.2px; }
}
.nav-toggle-text { display: none; }
@media (max-width: 900px) { .nav-js .nav-toggle-text { display: block; } }

/* ===== Sticky left side menu (wide screens only; never over the content) ===== */
.side-rail { display: none; }
@media (min-width: 1280px) {
    .side-rail {
        display: flex;
        flex-direction: column;
        gap: 10px;
        position: fixed;
        z-index: 900;
        left: 14px;
        top: 96px;
        width: 78px;
        max-height: calc(100vh - 112px);
        overflow-y: auto;
        scrollbar-width: none;
        padding: 8px 6px;
        background: rgba(16, 16, 20, 0.78);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border: 1px solid var(--border);
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    }
    .side-rail::-webkit-scrollbar { display: none; }
    .sr-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
    .sr-link {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 9px 2px 8px;
        border-radius: 10px;
        color: var(--text-muted);
        text-decoration: none;
        transition: background 0.15s, color 0.15s;
    }
    .sr-ico { flex: none; }
    .sr-label { display: none; }
    .sr-short { font-size: 0.68rem; font-weight: 600; line-height: 1.1; text-align: center; letter-spacing: 0.1px; }
    .sr-link:hover, .sr-link:focus-visible { color: var(--text); background: rgba(255, 255, 255, 0.06); }
    .sr-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
    .sr-link[aria-current="page"] { color: var(--accent); background: rgba(0, 168, 255, 0.12); }
    .sr-link[aria-current="page"]::before { content: ""; position: absolute; left: -6px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
    .sr-submit { color: var(--accent); }
    .sr-social { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 8px; border-top: 1px solid var(--border); }
    .sr-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 34px; border-radius: 8px; color: var(--text-muted); transition: color 0.15s, background 0.15s; }
    .sr-social a:hover, .sr-social a:focus-visible { background: rgba(255, 255, 255, 0.06); color: #1877F2; }
    .sr-social a.sr-yt:hover, .sr-social a.sr-yt:focus-visible { color: #FF0000; }
    .sr-social a.sr-dc:hover, .sr-social a.sr-dc:focus-visible { color: #5865F2; }
}
/* 1280-1399px: page margins are too narrow for the rail, so nudge the page right a little. */
@media (min-width: 1280px) and (max-width: 1399px) {
    body { padding-left: 100px; }
}
/* Short screens: tighter rail items so everything fits without scrolling. */
@media (min-width: 1280px) and (max-height: 820px) {
    .side-rail { top: 84px; max-height: calc(100vh - 96px); gap: 6px; }
    .sr-link { padding: 6px 2px 5px; gap: 2px; }
    .sr-short { font-size: 0.64rem; }
}
/* Very wide screens: full labels beside the icons. */
@media (min-width: 1700px) {
    .side-rail { width: 216px; left: 20px; padding: 10px; }
    .sr-link { flex-direction: row; gap: 12px; padding: 10px 12px; }
    .sr-label { display: block; font-size: 0.92rem; font-weight: 500; white-space: nowrap; }
    .sr-short { display: none; }
    .sr-link[aria-current="page"]::before { left: -10px; }
    .sr-social { flex-direction: row; justify-content: center; gap: 6px; }
}
@media print { .side-rail { display: none !important; } }
/* Hero a little shorter so the "Explore" cards peek above the fold. */
.hero { min-height: 84vh; min-height: 84dvh; }
@media (max-width: 768px) { .hero { min-height: 78vh; min-height: 78dvh; } }
@media (max-width: 768px) {
    .explore-card-lg .explore-body { position: static; padding: 14px 16px 16px; background: none; }
    .explore-card-lg .explore-cta { padding: 10px 16px; }
    .hero-links { gap: 8px 20px; }
    .hero-links > span { display: none; }
}

/* Home stats strip: 4 live counts from crashes.js */
.home-stats .stat { min-width: 140px; }
.home-stats-link { text-align: center; margin-top: 18px; font-size: 0.9rem; }
.home-stats-link a { color: var(--text-muted); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.2); padding-bottom: 1px; }
.home-stats-link a:hover, .home-stats-link a:focus-visible { color: var(--accent); border-color: var(--accent); }
@media (max-width: 768px) {
    .home-stats .container { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 12px; }
    .home-stats .stat { min-width: 0; }
    .home-stats .stat-number { font-size: 2.2rem; }
}

/* ===== Crash Stories browser (/stories) ===== */
.sb-featured { margin: 0 0 40px; }
.sb-featured .cotm-card { max-width: none; }
.sb-feat-title { font-size: 1.5rem; line-height: 1.25; margin: 4px 0 8px; }
.sb-controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.sb-search { flex: 1 1 320px; position: relative; display: flex; align-items: center; }
.sb-search svg { position: absolute; left: 14px; color: var(--text-muted); pointer-events: none; }
.sb-search input {
    width: 100%; padding: 13px 14px 13px 42px; font: inherit; font-size: 1rem; color: var(--text);
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.sb-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.18); }
.sb-sort { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.9rem; }
.sb-sort select {
    font: inherit; font-size: 0.95rem; color: var(--text); background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; padding: 12px 34px 12px 12px; cursor: pointer; appearance: none; -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
.sb-sort select:focus { border-color: var(--accent); outline: none; }
.sb-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.sb-chips-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-right: 4px; min-width: 84px; }
.sb-chip {
    font: inherit; font-size: 0.88rem; font-weight: 500; color: var(--text); background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border); border-radius: 999px; padding: 7px 13px; cursor: pointer; transition: all 0.15s;
}
.sb-chip:hover:not(:disabled) { border-color: rgba(0, 168, 255, 0.6); }
.sb-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sb-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #000; font-weight: 600; }
.sb-chip:disabled { opacity: 0.4; cursor: default; }
.sb-chip-n { opacity: 0.7; font-size: 0.8em; margin-left: 2px; }
.sb-chip[aria-pressed="true"] .sb-chip-n { opacity: 0.85; }
.sb-count { color: var(--text-muted); font-size: 0.9rem; margin: 12px 0 18px; min-height: 1.4em; }
.sb-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.sb-card { display: flex; flex-direction: column; padding: 20px; }
.sb-card:hover { transform: none; }
.sb-card-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.sb-card-tags .story-tag { margin-bottom: 0; }
.sb-video { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; margin-bottom: 14px; }
.sb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sb-card h3 { font-size: 1.1rem; line-height: 1.35; margin-bottom: 6px; }
.sb-card .sb-meta { color: var(--text); font-size: 0.88rem; margin-bottom: 8px; opacity: 0.85; }
.sb-card .sb-summary { font-size: 0.92rem; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sb-card .cotm-credit { margin-top: auto; }
.sb-link a { color: var(--accent); }
.sb-card:focus { outline: 2px solid var(--accent); outline-offset: 3px; }
.sb-empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--border); border-radius: 14px; color: var(--text-muted); }
.sb-empty p { margin-bottom: 10px; }
.sb-empty a { color: var(--accent); font-weight: 600; }
.sb-more-wrap { text-align: center; margin-top: 28px; }
.sb-more[hidden] { display: none; }
.sb-cats-title { font-size: 1.3rem; margin: 64px 0 18px; text-align: center; }
.sb-catlink { margin: -24px 0 28px; text-align: center; }
.sb-catlink a { color: var(--accent); font-weight: 600; text-decoration: none; }
.sb-catlink a:hover { text-decoration: underline; }
@media (max-width: 768px) {
    .sb-featured .cotm-card { grid-template-columns: 1fr; gap: 16px; padding: 14px; }
    .sb-feat-title { font-size: 1.2rem; }
    .sb-controls { gap: 10px; }
    .sb-search { flex-basis: 100%; }
    .sb-sort { width: 100%; }
    .sb-sort select { flex: 1; }
    .sb-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; scrollbar-width: none; }
    .sb-chips::-webkit-scrollbar { display: none; }
    .sb-chip { white-space: nowrap; flex: none; }
    .sb-chips-label { min-width: 0; flex: none; }
    .sb-grid { grid-template-columns: 1fr; }
    .sb-more { width: 100%; max-width: none; }
}

/* ===== Crash Map clusters (numbered bubbles) ===== */
.fd-cluster { background: transparent; }
.fd-cluster span {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
    border-radius: 50%; font: 700 0.9rem/1 'Inter', sans-serif; color: #fff;
    background: radial-gradient(circle at 35% 30%, #33bbff, #0088cc 70%);
    border: 2px solid #fff; box-shadow: 0 0 0 6px rgba(0, 168, 255, 0.25), 0 4px 14px rgba(0, 0, 0, 0.5);
}
.fd-cluster-md span { font-size: 1rem; box-shadow: 0 0 0 8px rgba(0, 168, 255, 0.22), 0 4px 14px rgba(0, 0, 0, 0.5); }
.fd-cluster-lg span { font-size: 1.05rem; box-shadow: 0 0 0 10px rgba(0, 168, 255, 0.2), 0 4px 14px rgba(0, 0, 0, 0.5); }
.crash-map .leaflet-marker-pane .fd-cluster:hover span { filter: brightness(1.12); }
.fd-pin { background: transparent; }
.fd-pin span {
    display: block; width: 100%; height: 100%; border-radius: 50%;
    background: rgba(0, 168, 255, 0.9); border: 2px solid #fff; box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); transition: transform 0.15s;
}
.fd-pin:hover span, .fd-pin:focus-visible span { transform: scale(1.15); }
.fd-pin:focus-visible { outline: none; }
.fd-pin:focus-visible span { box-shadow: 0 0 0 3px var(--accent); }

/* ===== 404 page ===== */
.notfound-page { padding-top: 160px; min-height: 70vh; }
.notfound { text-align: center; max-width: 720px; }
.notfound-code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; line-height: 1; letter-spacing: -4px; color: transparent; background: linear-gradient(180deg, var(--accent), rgba(0, 168, 255, 0.15)); -webkit-background-clip: text; background-clip: text; margin-bottom: 8px; }
.notfound h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; margin-bottom: 12px; }
.notfound-text { color: var(--text-muted); font-size: 1.1rem; margin: 0 auto 32px; max-width: 560px; }
.notfound-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.notfound-links .btn { padding: 14px 22px; }
@media (max-width: 768px) { .notfound-page { padding-top: 120px; } .notfound-links .btn { max-width: 320px; } }

/* ===== Reddit (r/FallenDrones) links ===== */
.nav-links .nav-social-rd a:hover,
.nav-links .nav-social-rd a:focus-visible { color: #FF4500; }
.social-link-rd:hover, .social-link-rd:focus-visible { color: #FF4500; border-color: #FF4500; }
.social-link-rd:focus-visible { outline-color: #FF4500; }
@media (min-width: 1280px) {
    .sr-social a.sr-rd:hover, .sr-social a.sr-rd:focus-visible { color: #FF4500; }
}
.explore-card-wide { grid-column: 1 / -1; flex-direction: row; align-items: stretch; border-color: rgba(255, 69, 0, 0.35); }
.explore-card-wide img { width: 62%; flex: none; aspect-ratio: 5 / 1; align-self: center; }
.explore-card-wide .explore-body { justify-content: center; }
.explore-card-wide .explore-cta { margin-top: 4px; color: #FF6A2B; }
.explore-card-wide:hover, .explore-card-wide:focus-visible { border-color: rgba(255, 69, 0, 0.7); }
.explore-tag-rd { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #FF6A2B; background: rgba(255, 69, 0, 0.12); border: 1px solid rgba(255, 69, 0, 0.35); border-radius: 999px; padding: 2px 10px; }
@media (max-width: 900px) {
    .explore-card-wide { flex-direction: column; }
    .explore-card-wide img { width: 100%; }
}
@media (max-width: 400px) {
    .explore-grid .explore-card-wide .explore-body p { display: block; }
}
@media (max-width: 1000px) and (min-width: 901px) {
    .nav-links { gap: 13px; }
}

/* ===== Map popups: inline YouTube player (thumbnail first, iframe on click) ===== */
.crash-popup-video { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 4px 0 10px; border-radius: 8px; overflow: hidden; background: #000; }
.crash-popup-video iframe, .crash-yt-thumb { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.crash-yt-thumb { display: block; padding: 0; margin: 0; background: #000; cursor: pointer; }
.crash-yt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.2s; }
.crash-yt-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); line-height: 0; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)); }
.crash-yt-btn-bg { fill: #212121; fill-opacity: 0.85; transition: fill 0.15s, fill-opacity 0.15s; }
.crash-yt-thumb:hover .crash-yt-btn-bg, .crash-yt-thumb:focus-visible .crash-yt-btn-bg { fill: #FF0000; fill-opacity: 1; }
.crash-yt-thumb:hover img { opacity: 0.9; }
.crash-yt-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.crash-popup-yt .crash-popup-watch { font-size: 0.85rem; }
.crash-popup-yt .crash-popup-watch a { font-weight: 600; }
.crash-popup-sub { font-size: 0.8rem; color: var(--text-muted); }
.leaflet-popup-content .crash-popup-sub { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .crash-yt-thumb img, .crash-yt-btn-bg { transition: none; } }
/* Phones: tall map popups scroll inside instead of overflowing the map (map.js sets maxHeight on phones only). */
.leaflet-popup-scrolled { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }

/* ===== Games choice page (/games) and "Choose a game" back links ===== */
.games-section { padding-top: 120px; min-height: 70vh; }
.games-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 12px; text-align: center; letter-spacing: -0.5px; }
.games-section .explore-card .explore-body h2 { font-size: 1.6rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.3px; margin: 0; text-align: left; }
@media (max-width: 768px) {
    .games-section { padding-top: 96px; }
    .games-title { font-size: 2rem; }
    .games-section .explore-card .explore-body h2 { font-size: 1.3rem; }
}
.back-to-games { display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; min-height: 44px; box-sizing: border-box; margin: -10px 0 4px; /* 44px tap target; negative margin keeps the same position/look */ font-size: 0.92rem; font-weight: 600; color: var(--text-muted); text-decoration: none; }
.back-to-games:hover, .back-to-games:focus-visible { color: var(--accent); }

/* ===== Nav with Contact link (11 items): keep it on one line at mid widths ===== */
@media (min-width: 901px) and (max-width: 1060px) {
    .nav-links { gap: 12px; font-size: 0.94rem; }
}
@media (min-width: 901px) and (max-width: 960px) {
    .nav-links { gap: 9px; font-size: 0.9rem; }
    .logo-text { font-size: 1.15rem; }
    .nav { padding-left: 16px; padding-right: 16px; }
}
@media (min-width: 1151px) and (max-width: 1399px) {
    .nav-links { gap: 22px; }
}

/* ===== YouTube text link in the top nav + side menu (before Contact) ===== */
.nav-links .nav-yt a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.nav-yt-ico { flex: none; }
.nav-links .nav-yt a:hover .nav-yt-ico, .nav-links .nav-yt a:focus-visible .nav-yt-ico { color: #FF0000; }
@media (max-width: 900px) { .nav-js .nav-links .nav-yt a { display: flex; } }
@media (min-width: 1280px) {
    .sr-link.sr-ytlink:hover .sr-ico, .sr-link.sr-ytlink:focus-visible .sr-ico { color: #FF0000; }
}
/* Side menu gained YouTube + FAA Rules items: use the compact rail up to 940px tall so it still fits without scrolling. */
@media (min-width: 1280px) and (max-height: 940px) {
    .side-rail { top: 84px; max-height: calc(100vh - 96px); gap: 6px; }
    .sr-link { padding: 6px 2px 5px; gap: 2px; }
    .sr-short { font-size: 0.64rem; }
}
/* 12 text links + 2 icons: keep the logo on one line and the nav on one row at mid widths. */
@media (min-width: 901px) {
    .logo-text { white-space: nowrap; }
}
@media (min-width: 901px) and (max-width: 1100px) {
    .nav-yt-ico { display: none; }
}
@media (min-width: 1061px) and (max-width: 1270px) {
    .nav-links { gap: 14px; }
}
@media (min-width: 961px) and (max-width: 1060px) {
    .nav-links { gap: 11px; font-size: 0.9rem; }
}
@media (min-width: 901px) and (max-width: 960px) {
    .nav-links { gap: 8px; font-size: 0.86rem; }
}

/* Menu items shown only in the mobile dropdown (the desktop top nav is full) */
@media (min-width: 901px) { .nav-links .nav-mobile-only { display: none; } }

/* ===== Phone/tablet menu: one opaque column (it was wrapping into two columns and showing the page through) ===== */
@media (max-width: 900px) {
    .nav-js .nav-links {
        flex-wrap: nowrap;
        justify-content: flex-start;
        background: #0a0a0c;
        max-height: calc(100vh - 70px);
        max-height: calc(100dvh - 70px);
        overscroll-behavior: contain;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    }
    .nav-js .nav-links li { flex: none; width: 100%; }
}


/* Crash of the Month: English help box under a non-English video (open on load) */
.cotm-media { min-width: 0; }
.cotm-en { margin-top: 12px; padding: 12px 14px; border: 1px solid rgba(0, 168, 255, 0.35); border-radius: 10px; background: rgba(0, 168, 255, 0.07); color: #e6e6e6; font-size: 0.92rem; line-height: 1.5; }
.cotm-en-head { margin: 0 0 4px; font-weight: 700; color: #fff; }
.cotm-en-sum { margin: 0 0 8px; }
.cotm-en-details summary { cursor: pointer; font-weight: 600; color: #00a8ff; margin-bottom: 6px; }
.cotm-en-lines { list-style: none; margin: 0; padding: 0 6px 0 0; max-height: 260px; overflow-y: auto; }
.cotm-en-lines li { margin: 0 0 6px; }
.cotm-en-t { display: inline-block; min-width: 2.6em; font-variant-numeric: tabular-nums; color: #9aa4b2; font-size: 0.85em; }
.cotm-en-note { margin: 8px 0 0; font-size: 0.8rem; color: #9aa4b2; }
.cotm-en-note a { color: #00a8ff; }

/* Crash of the Month: the month's round badge medal (from the Facebook badge art) with a gold scalloped seal rim,
   "stamped" on the video's top-right corner with its centre near the frame's right edge.
   Decorative overlay only: pointer-events none so taps reach the YouTube player; top-right avoids the control bar. */
.cotm-media { position: relative; }
.cotm-seal { position: absolute; top: -40px; right: -64px; z-index: 2; width: 160px; height: auto; transform: rotate(9deg); pointer-events: none; user-select: none; filter: drop-shadow(0 6px 9px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 1px rgba(0, 0, 0, 0.7)); }
@media (max-width: 1100px) { .cotm-seal { width: 130px; top: -34px; right: -52px; } }
@media (max-width: 768px) { .cotm-seal { width: 130px; top: -18px; right: -12px; } }
@media (max-width: 600px) { .cotm-seal { width: 100px; top: -14px; right: -24px; transform: rotate(8deg); } }
