:root {
    /* Color Palette & Global Variables (Premium Design) */
    --accent: #818e5e;
    /* Soft Selective Olive */
    --accent-light: #a3b38c;
    --bg-dark: #080808;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(18, 18, 18, 0.7);
    --glass-sidebar: rgba(12, 12, 12, 0.9);
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius: 8px;
    --transition-main: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.4);
    --text-bright: #ffffff;
}

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

/* Basic Reset & Body Configuration */
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Dynamic Background (Image Carousel) --- */
.app-background,
.app-background-next {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -3;
    transition: opacity 0.6s ease-in-out;
    opacity: 0;
}

.app-background.active {
    opacity: 1;
}

.app-background::after,
.app-background-next::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.85));
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: -2;
    pointer-events: none;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.05) 50%);
    background-size: 100% 4px;
    z-index: -1;
    pointer-events: none;
}

/* --- Main Layout Structure --- */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.sidebar {
    width: 100%;
    height: 72px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(24px);
    border-right: none;
    border-bottom: 1px solid rgba(129, 142, 94, 0.2);
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between; /* Parent container uses space-between */
    padding: 0 4%;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.brand {
    padding: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1; /* Column 1 */
    cursor: pointer;
}

.brand h1 {
    font-family: '28 Days Later', sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 40%, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    width: 36px;
    height: 36px;
    background: rgba(129, 142, 94, 0.12);
    border: 1px solid rgba(129, 142, 94, 0.3);
    border-radius: 8px;
    animation: logo-pulse 3s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes logo-pulse {

    0%,
    100% {
        box-shadow: 0 0 0px rgba(129, 142, 94, 0);
    }

    50% {
        box-shadow: 0 0 12px rgba(129, 142, 94, 0.5);
    }
}

.nav-wrapper {
    flex: 2; /* Column 2 - Main Center */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    height: 100%;
}

.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-main);
    padding: 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dropdown-trigger i {
    width: 14px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-trigger {
    color: #fff;
}

.nav-dropdown:hover .dropdown-trigger i {
    transform: rotate(180deg);
    color: var(--accent-light);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(129, 142, 94, 0.2);
    border-radius: var(--radius);
    padding: 0.75rem;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.nav-dropdown:hover .dropdown-content,
.nav-dropdown.open .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-links {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 0.2rem;
}

.nav-links li {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    white-space: nowrap;
}

.nav-links li:hover {
    color: #fff;
    background: rgba(129, 142, 94, 0.1);
    transform: translateX(5px);
}

.nav-links li.active {
    background: rgba(129, 142, 94, 0.15);
    color: #fff;
    border-left: 2px solid var(--accent-light);
}

.nav-links li.active .icon {
    filter: drop-shadow(0 0 4px rgba(163, 179, 140, 0.8));
}

.promo-content p {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin-bottom: 0.6rem;
}

.nav-actions {
    flex: 1; /* Column 3 */
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.suggestions-btn {
    background: transparent !important;
    border: 1px solid rgba(129, 142, 94, 0.4) !important;
    color: var(--accent-light) !important;
    padding: 0.6rem 1.2rem !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease !important;
    margin-bottom: 0 !important;
}

.suggestions-btn:hover {
    background: rgba(129, 142, 94, 0.1) !important;
    border-color: var(--accent-light) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(129, 142, 94, 0.1);
}

/* --- Page Footer --- */
.app-footer {
    background: rgba(8, 8, 8, 0.9);
    border-top: 1px solid rgba(129, 142, 94, 0.1);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-container a {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
}

.footer-container p {
    margin-bottom: 0.5rem;
}

/* --- Content & Sections --- */
.content {
    flex-grow: 1;
    padding: 4rem 6%;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: smoothFade 0.6s ease;
}

@keyframes smoothFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Lobby V4 --- */
.lobby-hero {
    text-align: center;
    margin: 8vh auto;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 50vh;
}

.lobby-hero h1 {
    font-family: '28 Days Later', sans-serif;
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: normal;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.lobby-description {
    font-size: 1.35rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 4rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* --- Promo Banner --- */
.promo-banner {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    margin-top: 1rem;
    margin-bottom: 3.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    backdrop-filter: blur(10px);
    text-align: left;
}

.promo-content h3 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.promo-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 700px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: var(--transition-main);
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

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

.btn-accent:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(129, 142, 94, 0.3);
}

.promo-btn {
    border-radius: 50px;
}

.promo-banner-btn {
    padding: 0.8rem 2.5rem;
}

.btn-join {
    background: #ffcc00;
    color: #000;
    padding: 0.7rem 1.4rem;
    font-size: 0.75rem;
}

.btn-join:hover {
    background: #fff;
    transform: translateY(-1px);
}

.lobby-promo-section {
    margin-top: 3rem;
    width: 100%;
}

.lobby-promo-banner {
    background: linear-gradient(135deg, rgba(129, 142, 94, 0.15), rgba(0, 0, 0, 0.6));
    border: 1px solid rgba(129, 142, 94, 0.3);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
}

.promo-badge {
    background: var(--accent-light);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    width: fit-content;
    letter-spacing: 1.2px;
}

.promo-banner-content h3 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.promo-banner-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 550px;
    line-height: 1.6;
    margin: 0 auto 1.5rem auto;
}

.promo-banner-btn {
    display: inline-block;
    background: var(--accent-light);
    color: #000;
    text-decoration: none;
    padding: 0.8rem 2.5rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-banner-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px rgba(129, 142, 94, 0.3);
    background: #fff;
}

/* --- Server Launcher --- */
.server-list-header {
    display: flex;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2rem;
}

.server-row {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: rgba(18, 18, 18, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.server-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.server-row .col {
    display: flex;
    align-items: center;
}

/* Column Ratios */
.col-info {
    flex: 5;
    gap: 1rem;
}

.col-map {
    flex: 2;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.col-map {
    flex: 2;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.col-actions {
    flex: 2.5;
    justify-content: flex-end;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    padding-left: 2rem;
    margin-left: 1rem;
}

/* Components */
.search-box {
    margin: 2rem 0;
    max-width: 650px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0 1.2rem;
    transition: all 0.3s;
}

.search-input-wrapper:focus-within {
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 25px rgba(129, 142, 94, 0.15);
}

.search-icon {
    margin-right: 1rem;
    font-size: 1rem;
    opacity: 0.6;
}

.search-input-wrapper input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 1rem 0;
    width: 100%;
    outline: none;
    font-size: 0.9rem;
}

.search-input-wrapper input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 1rem 0;
    width: 100%;
    outline: none;
    font-size: 0.9rem;
}

.server-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffcc00;
}

.server-details h3 {
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
}

.server-ip {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}



/* --- Grid & Cards Correction --- */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    align-items: stretch;
    /* Cards in same row will have same height */
}

/* --- Search Box Consistency --- */
.section-header {
    margin-bottom: 4rem;
}

.section-header .search-box {
    margin: 1.5rem 0 0 0;
}

.card,
.map-card,
.clothing-card,
.route-selection-card {
    background: var(--glass-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    transition: var(--transition-main);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover,
.map-card:hover,
.clothing-card:hover,
.route-selection-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    min-height: 140px;
    /* Ensura symmetry of the boxes */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* --- Image Containers --- */
.crafting-item img,
.card-body img {
    max-width: 100%;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 1rem auto;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.recipe-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.crafting-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 0.5rem;
    border-radius: var(--radius);
    width: 100%;
    text-align: center;
    min-height: 120px;
    /* Ensura ingredient symmetry */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.crafting-item img {
    margin-bottom: 0.5rem;
}

.crafting-item span {
    font-size: 0.75rem;
    line-height: 1.2;
    display: block;
}

.card h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.card li {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    position: relative;
    padding-left: 1.2rem;
}

.card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* --- Chips --- */
/* --- Typewriter Effect --- */
.typewriter-cursor {
    display: inline-block;
    color: var(--accent-light);
    animation: blink-cursor 0.75s step-end infinite;
    font-weight: 300;
    margin-left: 2px;
}

@keyframes blink-cursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* --- Map Cards --- */
.map-card {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    padding: 2rem;
    justify-content: flex-end;
}

.map-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.map-card-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(8px);
}

.badge-official {
    background: rgba(129, 142, 94, 0.9);
    color: #fff;
    border: 1px solid var(--accent-light);
}

.badge-community {
    background: rgba(30, 41, 59, 0.9);
    color: #cbd5e1;
    border: 1px solid #475569;
}

.map-card-content {
    position: relative;
    z-index: 2;
}

.map-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.btn-map {
    font-size: 0.8rem;
    padding: 0.75rem 1.5rem;
}

/* --- Weapon Cards --- */
.weapon-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1.2rem 0 0 0;
    margin-top: auto;
    /* Alineación perfecta al fondo */
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Separador elegante */
}

.stat-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-light);
    font-family: var(--font-mono);
}

.weapon-category-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.3rem 0.6rem;
    background: rgba(129, 142, 94, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent-light);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Lobby Footer --- */
.lobby-footer {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
    letter-spacing: 0.5px;
}

/* Mobile */
/* Mobile Optimized Navigation */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        top: auto;
        /* Essential: override base top: 0 */
        bottom: 0;
        flex-direction: row;
        padding: 0;
        padding-bottom: env(safe-area-inset-bottom);
        border-right: none;
        border-top: 1px solid rgba(129, 142, 94, 0.3);
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .brand,
    .sidebar-promo,
    .sidebar-footer,
    .lobby-description,
    .lobby-footer,
    .nav-actions {
        display: none !important;
    }

    .nav-wrapper {
        width: 100%;
        justify-content: space-between;
        gap: 0;
    }

    .nav-dropdown {
        position: static;
        flex: 1;
    }

    .dropdown-trigger {
        justify-content: center;
        padding: 1.2rem 0;
        font-size: 0.75rem;
    }

    .dropdown-content {
        top: auto;
        bottom: 100%;
        left: 0;
        width: 100%;
        transform: translateY(10px);
        border-radius: 16px 16px 0 0;
        border: 1px solid rgba(129, 142, 94, 0.2);
        border-bottom: none;
        padding: 1rem;
        background: rgba(15, 15, 15, 0.98);
    }

    .nav-dropdown:hover .dropdown-content,
    .nav-dropdown.open .dropdown-content {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin: 0;
    }

    .nav-links li {
        flex-direction: row;
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        justify-content: flex-start;
        align-items: center;
        border-left: none;
        border-radius: var(--radius);
        text-align: left;
        margin: 0;
    }

    .nav-links li .icon {
        font-size: 1.2rem;
    }

    .nav-links li.active {
        background: rgba(129, 142, 94, 0.15);
        border-left: 3px solid var(--accent-light);
        color: #fff;
    }

    .nav-links li::before {
        display: none;
    }

    .content {
        padding: 2rem 1rem 6rem 1rem;
    }

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

    .lobby-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-item {
        padding: 1.5rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
        text-align: center;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .promo-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .server-list-header {
        display: none;
        /* Hide complex headers on mobile */
    }

    .server-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1rem;
    }

    .server-row .col {
        width: 100%;
    }

    .server-row .col-actions {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        justify-content: flex-start;
    }

    .btn-join {
        width: 100%;
        padding: 1rem;
    }
}

/* --- Map Viewer Modal V1 --- */
.map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-modal.active {
    display: flex;
    opacity: 1;
}

.map-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.map-modal-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 90vh;
    background: #0d0d0d;
    border: 1px solid rgba(129, 142, 94, 0.3);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.map-modal.active .map-modal-container {
    transform: scale(1);
}

.map-modal-header {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(129, 142, 94, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.map-modal-title-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.map-modal-icon {
    font-size: 1.2rem;
}

#map-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.map-modal-actions {
    display: flex;
    gap: 0.75rem;
}

.map-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.map-action-btn:hover {
    background: rgba(129, 142, 94, 0.15);
    border-color: var(--accent-light);
    color: var(--accent-light);
    transform: translateY(-2px);
}

.map-modal-body {
    flex-grow: 1;
    position: relative;
    background: #000;
}

#map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#map-iframe.loaded {
    opacity: 1;
}

/* Loading State */
.map-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 5;
    background: #0a0a0a;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(129, 142, 94, 0.1);
    border-top: 3px solid var(--accent-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px rgba(129, 142, 94, 0.2);
}

.map-loader p {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 500;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Maps */
@media (max-width: 768px) {
    .map-modal {
        padding: 0;
    }

    .map-modal-container {
        height: 100vh;
        border-radius: 0;
        border: none;
    }

    .map-modal-header {
        padding: 0.8rem 1rem;
    }

    #map-modal-title {
        font-size: 0.9rem;
    }
}

/* --- Route Generator UI --- */

.route-generator-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
}

.route-select-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
}

.route-select-wrapper {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.route-select-wrapper label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.route-select-wrapper select {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 1rem 1.2rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem top 50%;
    background-size: 0.65rem auto;
}

.route-select-wrapper select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(129, 142, 94, 0.15);
}

.route-select-wrapper select option {
    background: #111;
    color: #fff;
}

.btn-generate {
    width: auto;
    height: 52px;
}

.btn-suggest-route, .btn-suggest-lore {
    background: rgba(129, 142, 94, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent-light);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-suggest-route:hover, .btn-suggest-lore:hover {
    background: var(--accent);
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(129, 142, 94, 0.4);
}

.btn-suggest-route span, .btn-suggest-lore span {
    font-size: 1.1rem;
}

/* Route Results Timeline */
.route-results {
    margin-top: 3rem;
    min-height: 200px;
}

/* Route Legend */
.route-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.legend-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.legend-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Route Selection Grid */
.route-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    animation: fadeIn 0.5s ease;
}

.route-selection-card {
    padding: 1.5rem;
    gap: 1rem;
    position: relative;
}

.route-selection-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.route-selection-card:hover::before {
    transform: scaleY(1);
}

.route-card-header-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.route-time-mini {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.route-selection-card h4 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
}

.route-selection-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    flex-grow: 1;
}

.btn-view-route {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.route-selection-card:hover .btn-view-route {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* Detailed Route Card */
.route-card {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.8), rgba(10, 10, 10, 0.9));
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    animation: smoothFade 0.6s ease;
}

.route-card-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background: rgba(255, 255, 255, 0.02);
}

.route-info h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.route-objective {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.route-objective span {
    color: #fff;
    font-weight: 600;
}

.difficulty-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-baja {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-media {
    background: rgba(234, 179, 8, 0.2);
    color: #fde047;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.badge-alta {
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.badge-extrema {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-pvp {
    background: rgba(239, 68, 68, 0.3);
    color: #fff;
    border: 1px solid #ef4444;
    animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.route-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.route-timeline-container {
    padding: 3rem 2rem;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: rgba(129, 142, 94, 0.3);
    transform-origin: top;
    animation: timelineLineGrow 1.5s ease forwards;
}

@keyframes timelineLineGrow {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

.timeline-step {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateX(-20px);
}

.timeline-step.animate {
    animation: stepReveal 0.6s ease forwards;
}

@keyframes stepReveal {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-marker {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #111;
    border: 2px solid var(--accent);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-step.animate .step-marker {
    transform: scale(1.2);
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.step-marker::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.timeline-step.step-danger .step-marker {
    border-color: #ff4d4d;
}

.timeline-step.step-danger .step-marker::after {
    background: #ff4d4d;
}

.timeline-step.step-start .step-marker {
    border-color: #3b82f6;
}

.timeline-step.step-start .step-marker::after {
    background: #3b82f6;
}

.timeline-step.step-end .step-marker {
    border-color: #ffcc00;
}

.timeline-step.step-end .step-marker::after {
    background: #ffcc00;
}

.step-content {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.step-content:hover {
    border-color: rgba(129, 142, 94, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.step-content h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.step-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.tag-water {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.tag-military {
    background: rgba(129, 142, 94, 0.2);
    color: var(--accent-light);
}

.tag-medical {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.tag-danger {
    background: rgba(255, 77, 77, 0.15);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.3);
}

/* Responsive Router */
@media (max-width: 768px) {
    .route-select-wrapper {
        min-width: 100%;
    }

    .btn-generate {
        width: 100%;
    }

    .route-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Clothing Wiki Styles */
.clothing-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2rem;
}

.category-title {
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.clothing-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.clothing-card {
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.clothing-icon-placeholder {
    width: 80px;
    /* Un poco más grande para mejor presencia */
    height: 80px;
    flex-shrink: 0;
    /* Evita que el icono se encoja */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.clothing-icon-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.clothing-info {
    flex: 1;
}

.clothing-info h4 {
    margin: 0 0 1rem 0;
    font-size: 1.15rem;
    color: var(--text-bright);
    line-height: 1.3;
    min-height: 3rem;
    /* Altura fija para 1 o 2 líneas de texto */
    display: flex;
    align-items: center;
    /* Centra el texto verticalmente dentro de su espacio fijo */
}

.clothing-stats-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Proporción fija para alineación vertical */
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 45px;
    /* Asegura que cada fila de stats mida lo mismo */
}

.stat-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.stat-value {
    font-size: 0.9rem;
    color: var(--text-bright);
    font-weight: 600;
}

.insulation-badge {
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    width: fit-content;
    letter-spacing: 0.5px;
}

.badge-insulation-máximo {
    background: #00f2ff;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
    border: 1px solid rgba(0, 242, 255, 0.5);
}

.badge-insulation-alto {
    background: #3498db;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-insulation-medio {
    background: #f1c40f;
    color: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-insulation-bajo {
    background: #95a5a6;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Skeleton Loading --- */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    height: 380px;
    background: rgba(18, 18, 18, 0.4);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    border-radius: var(--radius);
}

.skeleton-title {
    width: 50%;
    height: 20px;
}

.skeleton-text {
    width: 90%;
    height: 12px;
}

.skeleton-image {
    width: 100%;
    height: 100px;
    margin: 0.5rem 0;
    opacity: 0.5;
}

.skeleton-stats {
    display: flex;
    gap: 0.5rem;
}

.skeleton-stat {
    flex: 1;
    height: 40px;
}

.skeleton-row {
    height: 70px;
    width: 100%;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
}

.reveal-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1), transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-item.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Blood Calculator Styles --- */
.blood-calculator-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blood-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

@media (max-width: 600px) {
    .blood-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.blood-type-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.blood-type-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--accent-color);
    opacity: 0;
    transition: opacity 0.3s;
}

.blood-type-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.blood-type-card.active {
    background: var(--accent-color);
    color: #000;
    border-color: #fff;
    box-shadow: 0 10px 30px rgba(129, 142, 94, 0.4);
}

.blood-type-card.active::before {
    opacity: 1;
    background: #fff;
}

.blood-type-card.compatible {
    background: rgba(129, 142, 94, 0.15);
    border-color: var(--accent-color);
    color: var(--accent-light);
    animation: pulseBorder 2s infinite;
}

@keyframes pulseBorder {
    0% { border-color: rgba(129, 142, 94, 0.3); }
    50% { border-color: rgba(129, 142, 94, 1); }
    100% { border-color: rgba(129, 142, 94, 0.3); }
}

.blood-results-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .blood-results-panel {
        grid-template-columns: 1fr;
    }
}

.result-box {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    animation: slideInUp 0.5s ease-out;
}

.result-box h4 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.result-box h4 i {
    width: 18px;
    height: 18px;
    color: var(--accent-color);
}

.compatibility-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.blood-badge {
    background: rgba(129, 142, 94, 0.1);
    border: 1px solid rgba(129, 142, 94, 0.2);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.blood-info-card {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blood-info-card .info-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #ff6b6b;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.blood-info-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Modals (Maps & Videos) --- */
.map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.map-modal.active {
    display: flex;
}

.map-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.map-modal-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 85vh;
    background: #111;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.vertical-modal {
    max-width: 550px;
    height: 92vh;
}

@keyframes modalReveal {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.map-modal-header {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-modal .map-modal-header {
    border-bottom: none;
}

.map-modal-title-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.map-modal-title-group h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.map-modal-actions {
    display: flex;
    gap: 0.5rem;
}

.map-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.map-action-btn:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.map-modal-body {
    flex-grow: 1;
    position: relative;
    background: #111;
}

.map-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 5;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(129, 142, 94, 0.1);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#map-iframe, #video-iframe {
    width: 100%;
    height: 100%;
    opacity: 0;
    border: none;
    transition: opacity 0.5s ease;
}

#map-iframe.loaded, #video-iframe.loaded {
    opacity: 1;
}

/* Video specific aspect ratio */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.vertical-video {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    background: #111;
}

.vertical-video iframe {
    height: 100%;
    width: auto;
    aspect-ratio: 9 / 16;
    max-width: 100%;
}

.horizontal-video {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #111;
}

.horizontal-video iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 100%;
}

/* --- Lore Specific Card --- */
.lore-card {
    cursor: pointer;
}

.lore-card .card-body {
    padding-top: 0;
}

.lore-card-subtitle {
    font-size: 0.75rem;
    color: var(--accent-light);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.lore-card-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}
