/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Courier New", Courier, monospace;
    color: #cbd5e1;
    background-color: #0d0e12;
    min-height: 100vh;
    padding: 50px;
    overflow-x: hidden;
    position: relative;
}

/* --- CINEMATIC MAP BACKGROUND SYSTEM WRAPPER --- */
.map-cinematic-viewport {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* 
   Animated Image Core Component
   Scaled up dramatically to allow panning room without exposing edges.
*/
.map-image-core {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image: url('de_inferno.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Mostly transparent constraints */
    opacity: 0.06; 
    /* High-performance multi-axis camera pan simulation loop */
    animation: tacticalMapCamera 45s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes tacticalMapCamera {
    0% {
        transform: scale(1) translate(0, 0) rotate(0deg);
    }
    50% {
        transform: scale(1.12) translate(-3%, 2%) rotate(0.5deg);
    }
    100% {
        transform: scale(1.05) translate(2%, -3%) rotate(-0.5deg);
    }
}

/* Stationary Vector Coordinate Overlay Filter to blend image natively into HUD */
.tactical-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
}

/* Entry Load Animation Sequence */
@keyframes rosterEntry {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header UI Elements */
header {
    margin-bottom: 60px;
    animation: rosterEntry 0.5s ease forwards;
}

.logo {
    font-size: 56px;
    font-weight: 900;
    letter-spacing: -2px;
    color: #fff;
    text-shadow: 4px 4px 0px #1e293b; 
}

.sub-logo {
    font-size: 13px;
    color: #ef4444; 
    letter-spacing: 3px;
    margin-top: 6px;
    font-weight: bold;
}

/* Locked Master 12-Column Grid Layout */
main {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}

/* Custom Column Span Configurations */
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* Active Player & Sponsor Card Modules */
.player-card {
    /* Slightly less dark background lets map visuals pass behind text panels cleanly */
    background: rgba(20, 22, 29, 0.92);
    border: 1px solid #272a37;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: rosterEntry 0.5s ease forwards;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hard Crimson Corner Accent Brackets */
.player-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 10px;
    height: 10px;
    border-top: 2px solid #ef4444;
    border-left: 2px solid #ef4444;
}

/* Mouseover Active Box Transformations */
.player-card:hover {
    transform: translateY(-5px);
    background: rgba(25, 28, 36, 0.95);
    border-color: #ef4444;
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.12);
}

/* High-frequency neon pulsing brightness illumination engine for card titles on hover */
@keyframes textGlowPulse {
    0%, 100% {
        color: #fff;
        text-shadow: 0 0 0px transparent;
    }
    50% {
        color: #ffffff;
        text-shadow: 0 0 12px rgba(255, 255, 255, 0.7), 0 0 20px rgba(239, 68, 68, 0.5);
    }
}

.player-card:hover .p-name {
    animation: textGlowPulse 1.5s infinite ease-in-out;
}

/* Empty Placeholder/Spacer Card Design */
.empty-spacer-box {
    border: 1px dashed rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.002);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    min-height: 150px;
    animation: rosterEntry 0.5s ease forwards;
}

.spacer-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.12);
    letter-spacing: 2px;
    font-weight: bold;
}

/* Card Header Formatting */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #272a37;
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.player-card:hover .card-header {
    border-color: rgba(239, 68, 68, 0.3);
}

.p-name {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
}

.p-role {
    font-size: 11px;
    color: #ef4444;
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.player-card:hover .p-role {
    color: #ff6b6b; 
}

.p-bio {
    font-size: 14px;
    line-height: 1.7;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.player-card:hover .p-bio {
    color: #e2e8f0;
}

/* Responsive Structural Overrides for Smaller Monitors */
@media (max-width: 1050px) {
    main {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }
    .empty-spacer-box, .map-cinematic-viewport {
        display: none; 
    }
    body {
        padding: 25px;
    }
    .logo {
        font-size: 42px;
    }
}
