:root {
    --primary-red: #ff3c3c;
    --light: #f7f4f4;
    --dark-bg: #0a0a0a;
    --accent-green: #3cff8a;
    --text-gray: #b0b0b0;
    --scope-border: rgba(255, 255, 255, 0.2);
    --hud-font: 'JetBrains Mono', monospace;
    --main-font: 'Outfit', sans-serif;
    --header-height: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #3b3b3b;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

html#scopeui body,
html#scopeui {
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    background-color: var(--dark-bg);
    color: white;
    font-family: var(--main-font);
    color-scheme: dark
}

/* Site Header Styling */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--scope-border);
    z-index: 100;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

header a {
    text-decoration: none;
}

h1 {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.25em;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.logo-text {
    font-family: var(--main-font);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cta-btn {
    background: rgb(0 0 0 / 70%);
    border: 1px solid #e3aa28;
    color: #fff;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    padding: 10px;
}

.cta-btn:hover {
    background: rgb(0 0 0 / 35%);
    border: 1px solid rgba(255, 255, 255, 0.5);
}


#app {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    display: flex;
    flex-direction: column;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
}

@media (min-width: 1101px) {
    #app {
        position: absolute;
        left: 280px;
        right: 500px;
        top: var(--header-height);
        bottom: 0;
        width: auto;
        height: calc(100vh - var(--header-height));
        height: calc(100dvh - var(--header-height));
        max-width: none;
        margin: 0;
    }
}


.background-container {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-image {
    width: 100%;
    height: 100%;
    background-color: #000;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transition: background-image 0.4s ease-in-out, transform 0.3s ease-out;
}

/* Sniper Scope Overlay */
.scope-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scope-circle {
    width: 350px;
    height: 350px;
    border: 2px solid var(--scope-border);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.1s ease-out;
}

.scope-circle::after {
    content: '';
    position: absolute;
    width: 110%;
    height: 110%;
    border: 1px dashed rgba(240, 18, 18, 1);
    border-radius: 50%;
}

.crosshairs {
    width: 100%;
    height: 100%;
    position: absolute;
}

.crosshairs::before,
.crosshairs::after {
    content: '';
    position: absolute;
    background: var(--scope-border);
}

.crosshairs::before {
    width: 100%;
    height: 1px;
    top: 50%;
}

.crosshairs::after {
    width: 1px;
    height: 100%;
    left: 50%;
}


/* HUD Top */
.hud-top {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-around;
    z-index: 20;
    font-family: var(--hud-font);
    font-size: 12px;
    color: var(--text-gray);
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 4px;
}

.status-indicator {
    color: var(--primary-red);
    font-weight: bold;
    font-size: 17px;
}

#year-selector-mobile {
    display: none;
}

#hud-title-desktop {
    display: inline-block;
}


#species-portrait {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #fff;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: all 0.3s;
}




/* Content Overlay */
.content-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    pointer-events: none;
    width: 100%;
}

.quota-number {
    font-size: 150px;
    font-weight: 900;
    color: var(--primary-red);
    line-height: 0.8;
    margin-bottom: 5px;
    text-shadow: 0 0 30px rgba(255, 60, 60, 0.3);
    font-family: var(--main-font);
}

.species-name {
    font-size: 32px;
    letter-spacing: 8px;
    text-transform: uppercase;
    font-weight: 700;
    color: white;
}


#intel-content {
    font-family: var(--hud-font);
    font-size: 14px;
    color: var(--text-gray);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.species-insights {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    z-index: 15;
    width: 100%;
    max-width: 600px;
    margin: 15px auto 0 auto;
    pointer-events: none;
    font-family: var(--hud-font);
}

.species-insights span {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.population-badge {
    background: rgba(0, 0, 0, 0.4);
}

.status-badge {
    color: white;
}

.extraction-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
}

.campaign-link {
    margin-top: 15px;
    font-size: 12px;
}

.campaign-link a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px dashed var(--primary-red);
    transition: all 0.2s;
}

.campaign-link a:hover {
    background: rgba(255, 60, 60, 0.1);
}

.top-extractors {
    font-size: 11px;
    margin-bottom: 15px;
    color: var(--text-gray);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
}

.top-extractors span {
    color: var(--light);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 3px;
    margin: 0 4px;
}

/* Season Badge */
.season-badge {
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Search Bar Tactical Focus */
#county-search:focus {
    border-color: var(--primary-red) !important;
    background: rgba(255, 60, 60, 0.05) !important;
}

/* Layer Toggle */
.layer-toggle {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 1px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.layer-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-family: var(--hud-font);
    font-size: 8px;
    padding: 3px 6px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 2px;
}

.layer-btn.active {
    background: var(--primary-red);
    color: white;
}

.layer-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
}

/* Footer Controls */
.hud-bottom {
    position: absolute;
    bottom: 10px;
    left: 20px;
    right: 20px;
    z-index: 20;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 4px;
}

.controls {
    display: none;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    flex-direction: row;
    width: 100%;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    font-family: var(--hud-font);
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
}




@media (max-width: 1100px) {

    .county-panel,
    .species-panel,
    .map-legend,
    #intel-content,
    .status-indicator {
        display: none;
    }

    .hud-top {
        padding: 0;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: 0;
        top: auto;
        bottom: 0;
    }

    .hud-bottom {
        bottom: auto;
        top: 0;
        padding: 5px;
    }

    #year-selector-mobile {
        display: inline-block !important;
    }

    #hud-title-desktop {
        display: none !important;
    }

    h1 {
        font-weight: 700;
        font-size: 0.9em;
    }

    .cta-btn {
        font-size: 9px;
        font-weight: 500;
    }
}

#species-portrait {
    box-shadow: 0px -1px 14px 6px hsl(0deg 0% 100% / 62%);
}


/* Mobile Adjustments */
@media (max-width: 768px) {
    .scope-circle {
        width: 200px;
        height: 200px;
    }

    .quota-number {
        font-size: 100px;
    }

    .scope-circle {
        box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.7);
    }

    .nav-btn {
        padding: 8px 15px;
        font-size: 10px;
    }

    .controls {
        display: flex;
    }

    .species-insights {
        gap: 8px;
        max-width: 90%;
        margin: 10px auto 0 auto;
    }
}

.quota-warning-hud {
    font-family: var(--hud-font);
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-gray);
    letter-spacing: 0.5px;
    text-align: justify;
    position: initial;
}