/* 3DUX Thematic UI Core Configuration */
:root {
    --bg-dark: #0a0612;
    --nether-purple: #3a0066;
    --nether-portal: #50008c;
    --hunter-crimson: #730014;
    --stone-text: #bdaea3;
    --vampire-white: #f5f0eb;
    --end-portal-space: radial-gradient(circle at center, #110022 0%, #030008 100%);
}

body {
    background: var(--end-portal-space);
    color: var(--stone-text);
    font-family: 'Cinzel', 'Georgia', serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Responsive Master Header Wrapper */
header {
    background: var(--end-portal-space);
    border-bottom: 3px double var(--nether-portal);
    padding: 15px 10px;
    text-align: center;
    box-shadow: 0 4px 25px rgba(80, 0, 140, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Sitewide Hero Banner Scaling */
.sitewide-banner {
    display: block;
    max-width: 100%;
    width: 780px; /* Hard ceiling: prevents pixelation on 4K/Console displays */
    height: 50%; /* Proportional lock: prevents vertical squishing on mobile */
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.3)); /* Subtle gold scrying glow */
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.sitewide-banner:hover {
    transform: scale(1.01);
}

.header-tagline {
    color: var(--nether-portal);
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-style: italic;
    letter-spacing: 2px;
    margin-top: 20px;
    margin-bottom: 0;
}

h1, h2, h3 {
    color: var(--vampire-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0;
}
h1 { 
    font-family: 'MedievalSharp', cursive; 
    font-size: clamp(2.5rem, 9vw, 9rem);
    color: var(--gold);
    font-weight: bold;
    text-shadow: 0 0 40px rgba(255,204,0,0.6), 2px 3px 4px rgba(0,0,0,0.5);
    margin: 0;
    letter-spacing: 2px;
    white-space: nowrap;
    z-index: 1;
    position: relative;
    text-transform: uppercase;
}
/* Master Hero Section Stacking Ceiling */
.hero {
    position: relative;
    z-index: 25; /* Physically forces the entire Hero box above the roster's z-index: 10 */
}
.roster-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 3px auto 1px auto;
    position: relative;
    z-index: 10;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.roster-container::-webkit-scrollbar { display: none; }

.skin-card {
    background: #2e2002; 
    flex: 0 0 auto; 
    width: 16vh; 
    min-width: 130px;
    max-width: 180px;
    box-shadow: 1px 1px 0px #333, 4px 4px 18px rgba(0,0,0,0.9);
    border: 1px solid #555; 
    padding: 12px; 
    position: relative; 
    overflow: hidden;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex; 
    flex-direction: column; 
    align-items: center;
}

.skin-card:hover { 
    border-color: #00ff41; 
    transform: translateY(-8px); 
    box-shadow: 0 10px 25px rgba(0, 255, 65, 0.25);
}

.skin-card img {
    width: 100%;
    height: auto;
    max-height: 190px;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.7));
}

.nameplate {
    margin-top: 12px; 
    padding: 4px 8px;
    background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728);
    color: #000; 
    font-family: 'Consolas', 'Courier New', monospace; 
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase; 
    border: 1px solid #000;
    width: 100%; 
    text-align: center; 
    letter-spacing: 0.5px;
}
.container {
    max-width: 1100px;
    margin: 150px auto;
    padding: 0 20px;
}

/* Structural Layout Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Layered Vector-Style Card Elements */
.card {
    background: rgba(18, 12, 28, 0.75);
    border: 1px solid rgba(80, 0, 140, 0.4);
    border-radius: 4px;
    padding: 25px;
    position: relative;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.6);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card:hover {
    border-color: var(--nether-portal);
    box-shadow: 0 0 25px rgba(80, 0, 140, 0.4);
    transform: translateY(-3px);
}

.card.hunter {
    border-left: 4px solid var(--hunter-crimson);
}

.card.vampire {
    border-left: 4px solid var(--nether-portal);
}

/* Button & Application Links */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--nether-purple) 0%, #1e0033 100%);
    color: var(--vampire-white);
    text-decoration: none;
    padding: 10px 25px;
    border: 1px solid var(--nether-portal);
    border-radius: 2px;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    background: var(--nether-portal);
    box-shadow: 0 0 15px var(--nether-portal);
}
/* Universal Slim Navigation Skeleton (Armored Horizontal Lock) */
.global-nav {
    display: flex !important;
    flex-direction: row !important; /* THE ENFORCER: Strictly forbids vertical column stacking */
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.8);
    flex-wrap: wrap;
    gap: 72px;
    position: relative;
    padding: 10px;
    z-index: 100;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.global-nav a {
    display: inline-block !important;
    flex: 0 0 auto !important; /* Prevents flex-grow from forcing line breaks */
    font-family: 'Cinzel', serif;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 1.3px;
    border: 2px solid transparent;
    border-radius: 3px;
    transition: all 0.25s ease;
    white-space: nowrap !important; /* Forces button text to strictly stay on one line */
}

/* ----------------------------------------------------
   THEMATIC MOOD CLASSES
---------------------------------------------------- */
.theme-hub {
    background: rgba(15, 10, 18, 0.95);
    border-top: 1px solid var(--nether-portal);
    border-bottom: 1px solid #d4af37;
}
.theme-hub a { color: var(--vampire-white); }
.theme-hub a:hover {
    color: #d4af37;
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.12);
    box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.25);
}

.theme-hunter {
    background: rgba(18, 5, 8, 0.95);
    border-top: 1px solid #ff002b;
    border-bottom: 1px solid var(--hunter-crimson);
}
.theme-hunter a { color: #e8d5d5; }
.theme-hunter a:hover {
    color: #ff002b;
    border-color: #ff002b;
    background: rgba(255, 0, 43, 0.12);
    box-shadow: inset 0 0 10px rgba(255, 0, 43, 0.25);
}

.theme-vampire {
    background: rgba(12, 6, 22, 0.95);
    border-top: 1px solid #8a2be2;
    border-bottom: 1px solid var(--nether-purple);
}
.theme-vampire a { color: #e6d5f5; }
.theme-vampire a:hover {
    color: #8a2be2;
    border-color: #8a2be2;
    background: rgba(138, 43, 226, 0.12);
    box-shadow: inset 0 0 10px rgba(138, 43, 226, 0.25);
}

/* Universal Pinned Green Escape Hatch */
.global-nav a.nav-home { color: #00ff41 !important; }
.global-nav a.nav-home:hover {
    border-color: #00ff41 !important;
    background: rgba(0, 255, 65, 0.15) !important;
    box-shadow: inset 0 0 10px rgba(0, 255, 65, 0.25) !important;
}

/* Spacing modifier when sitting directly under the Hero title */
.hero-nav { margin-top: 25px; }

/* Invisibility Cloak (State-based auto-hiding) */
body.page-hub .global-nav a.nav-home,
body.page-apply .global-nav a[href="/applications/"],
body.page-creations .global-nav a[href="/creations/"],
body.page-map .global-nav a[href="/map/view/"] {
    display: none !important;
}
