﻿/* VARIABLES & RESET */
:root {
    --bg-dark: #000000;
    --bg-gray: #121212;
    --neon-gold: #FFD700;
    --gold-gradient: linear-gradient(90deg, #BF953F, #FCF6BA, #B38728, #FBF5B7);
    --neon-blue: #00f3ff;
    --silver: #C0C0C0;
    --crimson-red: #DC143C;
    --glass-bg: rgba(18, 18, 18, 0.6);
    --glass-border: rgba(229, 228, 226, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fallback for broken images */
img {
    position: relative;
    color: transparent; /* Ă¡ÂºÂ¨n alt text mĂ¡ÂºÂ·c Ă„â€˜Ă¡Â»â€¹nh */
}
img::after {
    content: "DATA UPLOAD PENDING...";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    color: #D4AF37;
    font-size: 14px;
    letter-spacing: 2px;
    border: 1px dashed rgba(212, 175, 55, 0.3);
}

body {
    background-color: var(--bg-dark);
    color: white;
    font-family: 'Roboto', sans-serif;
    overflow: hidden; /* Lock main scrollbar */
    opacity: 0; /* For fade-in transition */
    transition: opacity 0.8s ease-in-out;
}

body.loaded {
    opacity: 1;
}

/* Custom Scrollbar for all scrollable areas */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.6);
}

h1, h2, h3, .hud-title, .stat-value, .watermark, .text-tech, .title-main, .chapter-text {
    font-family: 'Chakra Petch', sans-serif;
}

/* ============================
   GLOBAL NAVIGATION
   ============================ */
.global-nav {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.nav-header {
    position: absolute;
    top: 20px; left: 30px !important;
    font-family: 'Chakra Petch', sans-serif;
    color: var(--silver);
    font-size: 0.9rem;
    letter-spacing: 2px;
    z-index: 100 !important;
    background: transparent;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--silver);
    font-size: 2rem;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.nav-btn.prev { left: 20px; }
.nav-btn.next { right: 20px; }

.nav-btn:hover {
    color: var(--neon-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.nav-hint {
    font-size: 0.7rem;
    font-family: 'Roboto', sans-serif;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    position: absolute;
    top: 100%;
    color: var(--neon-gold);
}

.nav-btn:hover .nav-hint {
    opacity: 1;
}

.pagination {
    display: none !important;
}

.page-dot {
    display: none !important;
}

.page-text {
    display: none !important;
}

/* ============================
   SPLASH SCREEN
   ============================ */
.splash-screen {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #000;
    position: relative;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--neon-gold);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 10s infinite linear;
}

@keyframes floatParticle {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.chapter-text {
    font-size: 1.5rem;
    letter-spacing: 10px;
    color: #888;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.5s;
    font-weight: 300;
}

.title-main {
    font-size: 5rem;
    text-transform: uppercase;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards 1s, shine 3s infinite linear;
    margin-bottom: 30px;
    background-size: 200% auto;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.splash-subtitle {
    font-size: 1.2rem;
    font-style: italic;
    color: #aaa;
    opacity: 0;
    animation: fadeIn 1s ease forwards 2s;
    margin-bottom: 50px;
}

.btn-enter {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-family: 'Chakra Petch', sans-serif;
    background: transparent;
    color: var(--neon-gold);
    border: 1px solid var(--neon-gold);
    border-radius: 30px;
    cursor: pointer;
    opacity: 0;
    animation: fadeIn 1s ease forwards 2.5s, pulse 2s infinite 3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.btn-enter:hover {
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ============================
   1.1 PROFILE
   ============================ */
.section-full {
    height: 100vh;
    width: 100vw;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-profile {
    background: url('https://images.unsplash.com/photo-1590494494300-880c85c360db?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    overflow-y: auto !important;
    align-items: flex-start !important;
    padding: 80px 0;
}
.profile-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(18, 18, 18, 0.85); /* Darken map */
}

.split-screen {
    position: relative;
    z-index: 2;
    display: flex;
    width: 90%;
    max-width: 1400px;
    height: 80vh;
    margin: auto;
}

.left-side { width: 50%; display: flex; align-items: center; justify-content: center; position: relative;}
.cr7-render { width: 80%; min-height: 500px; height: 55vh; position: relative; border-radius: 10px; overflow: hidden; }
.cr7-image { width: 100%; height: 100%; object-fit: cover; filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.2)); }
.crt-scanline {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
}
.overlay-gradient { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, transparent 50%, var(--bg-gray) 100%); pointer-events: none; }

.right-side { width: 50%; display: flex; flex-direction: column; justify-content: center; padding: 40px 40px 80px 40px; overflow-y: auto; }
.hud-container { 
    background: rgba(10, 10, 10, 0.75); backdrop-filter: blur(10px); 
    border: 1px solid rgba(212, 175, 55, 0.4); 
    box-shadow: 0 0 30px rgba(0,0,0,0.8), inset 0 0 20px rgba(212, 175, 55, 0.1); 
    border-left: 4px solid #D4AF37;
    padding: 30px; border-radius: 15px; 
}
.hud-title { 
    color: var(--neon-gold); font-size: 2rem; margin-bottom: 20px; letter-spacing: 2px; 
    animation: glitch 3s infinite;
}
@keyframes glitch {
    0% { transform: translate(0); text-shadow: none; }
    2% { transform: translate(-2px, 1px); text-shadow: 2px 0 red, -2px 0 blue; }
    4% { transform: translate(2px, -1px); text-shadow: -2px 0 red, 2px 0 blue; }
    6% { transform: translate(0); text-shadow: none; }
    100% { transform: translate(0); text-shadow: none; }
}

.hud-identity h2 { font-size: 1.5rem; margin-bottom: 10px; }
.hud-identity p { color: var(--silver); font-size: 0.9rem; margin-bottom: 5px; }
.hud-stats { display: flex; flex-wrap: wrap; gap: 15px; margin: 30px 0; }
.stat-box { 
    background: rgba(255, 255, 255, 0.05); padding: 10px; 
    border: 1px solid rgba(255, 215, 0, 0.3); border-radius: 8px; 
    flex: 1 1 calc(33% - 15px); text-align: center; position: relative;
}
.stat-box.highlight { border-color: var(--neon-gold); box-shadow: 0 0 15px rgba(255, 215, 0, 0.4); }
.stat-label { display: block; font-size: 0.7rem; color: var(--silver); text-transform: uppercase; margin-bottom: 5px; }
.stat-value { font-size: 2rem; color: var(--neon-gold); font-weight: 900; }
.unit { color: var(--neon-gold); font-size: 1rem; margin-left: 2px; }
.stat-progress-bg { width: 80%; height: 4px; background: rgba(255,255,255,0.1); margin: 8px auto 0; border-radius: 2px; overflow: hidden; }
.stat-progress-fill { height: 100%; background: #D4AF37; width: 0%; transition: width 1.5s ease-out; }

.hud-weapon {
    border: 1px dashed #D4AF37; 
    background: repeating-linear-gradient(45deg, rgba(212,175,55,0.05), rgba(212,175,55,0.05) 10px, transparent 10px, transparent 20px);
    padding: 15px; border-radius: 8px; margin-top: 10px;
}
.hud-weapon h3 { color: var(--neon-gold); margin-bottom: 10px; font-size: 1.1rem; }
.hud-weapon p { font-size: 0.9rem; color: #ccc; margin: 0;}

/* ============================
   1.2 MINDSET
   ============================ */
.section-mindset { background-color: var(--bg-gray); padding: 50px 10% 80px 10%; display: block; overflow-y: auto;} /* Allow internal scroll if quotes overflow */
.section-mindset::-webkit-scrollbar { display: none; }

.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 10px; color: var(--neon-gold); margin-top: 40px;}
.section-subtitle { text-align: center; color: var(--silver); margin-bottom: 40px; }

.masonry-grid { column-count: 3; column-gap: 30px; padding-bottom: 100px; }
.quote-card { background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 15px; padding: 25px; margin-bottom: 30px; position: relative; break-inside: avoid; transition: all 0.4s ease; cursor: pointer; overflow: hidden; }
.quote-card p { font-family: 'Playfair Display', serif; font-size: 1.1rem; line-height: 1.6; position: relative; z-index: 2; }
.watermark { position: absolute; bottom: -15px; right: 10px; font-size: 5rem; color: rgba(255, 255, 255, 0.05); z-index: 1; font-weight: 900; }
.quote-card.featured { padding: 35px; }
.quote-card.featured p { font-size: 1.3rem; }
.quote-card:hover { border-color: var(--neon-gold); box-shadow: 0 0 20px rgba(255, 215, 0, 0.2); transform: translateY(-5px); }
.quote-card.hate-power:hover { background-color: var(--crimson-red); border-color: #ff3b3b; box-shadow: 0 0 30px rgba(220, 20, 60, 0.6); }

/* ============================
   1.3 EMPIRE
   ============================ */
.section-empire { background-color: #050505; flex-direction: column;}
.globe-container { position: relative; width: 100%; height: 60vh; max-width: 1200px; margin-top: 20px; display: flex; justify-content: center; align-items: center; }
#globe-container-3d { width: 100%; height: 100%; position: absolute; top: 0; left: 0; z-index: 1; }
.empire-node { position: absolute; background: rgba(0, 0, 0, 0.7); border: 1px solid var(--neon-blue); padding: 10px 20px; border-radius: 30px; display: flex; align-items: center; gap: 10px; color: var(--silver); z-index: 3; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 0 15px rgba(0, 243, 255, 0.2); }
.empire-node:hover { background: var(--neon-blue); color: #000; transform: scale(1.1); }
.connection-lines { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }

/* Modals */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px); justify-content: center; align-items: center; }
.modal-content { background: var(--bg-dark); border: 1px solid var(--silver); padding: 40px; border-radius: 10px; width: 80%; max-width: 500px; position: relative; animation: modalSlide 0.3s ease-out forwards; }
.modal-content.tech-modal { border-color: var(--neon-blue); box-shadow: 0 0 20px rgba(0, 243, 255, 0.3); }
.modal-content h3 { color: var(--neon-blue); margin-bottom: 20px; }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; color: var(--silver); cursor: pointer; }
.progress-container { margin-top: 20px; }
.progress-bar { width: 100%; height: 10px; background: #333; border-radius: 5px; margin-top: 10px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--neon-blue); box-shadow: 0 0 10px var(--neon-blue); width: 0; transition: width 1s ease-in-out; }
@keyframes modalSlide { from { opacity: 0; transform: translateY(-50px); } to { opacity: 1; transform: translateY(0); } }

/* ============================
   1.4 ORIGIN (CINEMATIC)
   ============================ */
.section-origin-cinematic {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10%;
    overflow: hidden !important;
    height: 100vh !important;
    position: relative;
    width: 100vw;
}

.cinematic-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

.cinematic-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.3);
}

.cinematic-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
}

.story-carousel-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1000px; /* MĂ¡Â»Å¸ rĂ¡Â»â„¢ng thÄ‚Âªm 40% (tĂ¡Â»Â« 650px lÄ‚Âªn ~1000px) */
    height: auto;
    min-height: 500px;
}

.glass-card {
    position: absolute;
    top: 50%; left: 0; 
    width: 100%;
    transform: translateY(-50%) translateX(50px);
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--neon-gold);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    padding: 40px;
    display: flex;
    flex-direction: row; /* Split Layout */
    gap: 40px;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    visibility: hidden;
}

.glass-card.active {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    visibility: visible;
}

.slide-visual {
    width: 40%;
    flex-shrink: 0;
}

.slide-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    filter: grayscale(60%) brightness(0.8);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

img {
    max-width: 100%;
    display: block;
    text-indent: -9999px; /* Hide broken image alt text */
}

.slide-text-area {
    width: 60%;
    display: flex;
    flex-direction: column;
}

.cinematic-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #FFF8E7; /* Light gold/white */
    letter-spacing: 2px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 15px;
}

.glass-card .story-content {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 400px;
}

.glass-card .story-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    text-align: justify;
}

.card-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.slide-indicator {
    font-family: 'Chakra Petch', sans-serif;
    color: var(--silver);
    font-size: 1rem;
    letter-spacing: 2px;
}

.btn-story-prev, .btn-story-next {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 45px; height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.btn-story-prev:hover, .btn-story-next:hover {
    background: var(--neon-gold);
    border-color: var(--neon-gold);
    color: black;
}

/* ============================
   1.5 ANATOMY
   ============================ */
/* Command Center Layout */
.section-anatomy-new {
    background-color: #050505;
    padding-top: 80px; /* Space for header */
}

.anatomy-layout {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: calc(100vh - 80px);
}

/* Left Nav */
.anatomy-nav {
    width: 35%;
    background: rgba(10, 10, 12, 0.95);
    border-right: 1px solid rgba(0, 255, 204, 0.2);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}

.nav-title {
    color: #fff;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.menu-item {
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border-left: 3px solid transparent;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.menu-item .nav-text {
    color: #aaa;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.menu-item .nav-icon {
    color: transparent;
    font-size: 0.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.menu-item:hover, .menu-item.active {
    background: rgba(212, 175, 55, 0.05);
    border-left: 4px solid #D4AF37;
    box-shadow: inset 20px 0 30px -20px rgba(212, 175, 55, 0.2);
}

.menu-item:hover .nav-text, .menu-item.active .nav-text {
    color: #FFDF00;
}

.menu-item:hover .nav-icon, .menu-item.active .nav-icon {
    color: #D4AF37;
    transform: translateX(5px);
}

/* Right Display */
.anatomy-display {
    width: 65%;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100vh; 
    max-height: calc(100vh - 100px); 
    overflow-y: auto; 
    padding-right: 20px;
}

.anatomy-display::-webkit-scrollbar { width: 6px; }
.anatomy-display::-webkit-scrollbar-track { background: #111; }
.anatomy-display::-webkit-scrollbar-thumb { background: #D4AF37; border-radius: 10px; }

.display-visual {
    width: 100%;
    position: relative;
}

#data-visualizer {
    width: 100%; height: 380px; margin-bottom: 25px;
    background-color: #050505;
    background-image: 
        linear-gradient(rgba(212, 175, 55, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    border: 1px solid rgba(212, 175, 55, 0.3); border-radius: 8px;
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
    padding: 15px;
}
.scanner-laser {
    position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: #D4AF37; box-shadow: 0 0 15px 5px rgba(212, 175, 55, 0.5);
    animation: scan 3s linear infinite; z-index: 2;
}
@keyframes scan { 
    0% { top: -10%; opacity: 0; } 
    10% { opacity: 1; } 
    90% { opacity: 1; } 
    100% { top: 110%; opacity: 0; } 
}
.visualizer-content { 
    z-index: 3; position: relative; width: 100%; height: 100%; 
    display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 15px;
}

/* Central Core */
.vis-core {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; border: 1px dashed rgba(212, 175, 55, 0.3);
    background: rgba(0,0,0,0.5); padding: 15px;
}
#vis-title { color: #888; font-size: 14px; letter-spacing: 3px; margin-bottom: 5px; }
#vis-stat { color: #FFDF00; font-size: 48px; text-shadow: 0 0 20px rgba(212, 175, 55, 0.6); margin: 0; font-weight: bold; letter-spacing: 2px;}
.perf-bar-container { width: 80%; height: 10px; background: #222; border: 1px solid #D4AF37; margin-top: 15px; position: relative; }
.perf-bar-fill { width: 99.9%; height: 100%; background: #D4AF37; box-shadow: 0 0 10px #D4AF37; animation: pulse 2s infinite; }
#vis-perf { font-size: 12px; color: #D4AF37; margin-top: 5px; letter-spacing: 1px; }

@keyframes pulse { 0% { opacity: 0.8; } 50% { opacity: 0.4; } 100% { opacity: 0.8; } }

/* Terminal Logs */
.terminal-container {
    width: 90%; height: 60px; background: rgba(0,0,0,0.8); border: 1px solid #333;
    margin-top: 20px; padding: 5px; overflow: hidden; position: relative;
    font-family: monospace; font-size: 11px; text-align: left;
}
.terminal-logs {
    display: flex; flex-direction: column; gap: 3px;
    animation: scroll-up 5s linear infinite;
}
.term-line { color: #D4AF37; }
@keyframes scroll-up { 0% { transform: translateY(100%); } 100% { transform: translateY(-100%); } }

/* Mini Panels */
.hud-side { display: grid; grid-template-rows: repeat(4, 1fr); gap: 8px; }
.mini-panel {
    border: 1px solid rgba(212, 175, 55, 0.2); background: rgba(255,255,255,0.02);
    display: flex; flex-direction: column; justify-content: center; padding: 5px 10px;
}
.mp-label { color: #aaa; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }
.mp-value { color: #fff; font-size: 14px; font-weight: bold; margin-top: 2px; }

/* 4 gÄ‚Â³c viĂ¡Â»Ân HUD */
.hud-corner { position: absolute; width: 20px; height: 20px; border: 2px solid #D4AF37; z-index: 4; }
.top-left { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.top-right { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.bottom-left { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.bottom-right { bottom: 10px; right: 10px; border-left: none; border-top: none; }

/* Scouting Report Grid */
.scouting-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 10px;
}
.scout-card {
    background: rgba(255,255,255,0.03); border-top: 2px solid #D4AF37;
    padding: 15px; border-radius: 4px;
}
.scout-card h4 {
    color: #D4AF37; font-size: 12px; letter-spacing: 1px; border-bottom: 1px solid rgba(212,175,55,0.2);
    padding-bottom: 8px; margin-bottom: 10px; text-transform: uppercase;
}
.scout-content {
    color: #ccc; font-size: 12px; line-height: 1.6;
    white-space: pre-line; /* For bullet points */
}



/* Positions for 7 hotspots */
.hs-head { top: 15%; left: 50%; transform: translateX(-50%); }
.hs-eyes { top: 18%; left: 51%; }
.hs-core { top: 40%; left: 50%; transform: translateX(-50%); }
.hs-quads { top: 55%; left: 45%; }
.hs-instep { top: 85%; left: 40%; }
.hs-ankle { top: 82%; left: 45%; }
.hs-heel { top: 85%; left: 48%; }

.panel-visual img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7;}

/* Responsive adjustments */
@media (max-width: 992px) {
    .split-screen { flex-direction: column; height: auto; margin-top: 50px;}
    .left-side { width: 100%; height: 400px; margin-bottom: 30px; }
    .right-side { width: 100%; overflow: visible; padding: 20px;}
    .masonry-grid { column-count: 2; }
    .title-main { font-size: 3rem; }
}
@media (max-width: 600px) {
    .masonry-grid { column-count: 1; }
    .title-main { font-size: 2.5rem; }
    .slide-panel { width: 100%; right: -100%; }
}

/* ============================
   AUDIO TOGGLE UI
   ============================ */
.audio-toggle {
    position: fixed;
    top: 20px; right: 20px;
    width: 30px; height: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    cursor: pointer;
    z-index: 2000;
    padding: 5px;
    border-radius: 5px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--neon-gold);
    transition: all 0.3s;
}
.audio-toggle:hover {
    box-shadow: 0 0 10px var(--neon-gold);
}
.audio-toggle .bar {
    width: 3px;
    background: var(--neon-gold);
    animation: soundWave 1s infinite alternate;
}
.audio-toggle .bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.audio-toggle .bar:nth-child(2) { height: 80%; animation-delay: 0.3s; }
.audio-toggle .bar:nth-child(3) { height: 60%; animation-delay: 0.2s; }
.audio-toggle .bar:nth-child(4) { height: 100%; animation-delay: 0.4s; }

.audio-toggle.muted {
    border-color: var(--silver);
}
.audio-toggle.muted .bar {
    background: var(--silver);
    animation: none;
    height: 10%;
}

@keyframes soundWave {
    0% { height: 10%; }
    100% { height: 100%; }
}

/* ============================
   1.3 EMPIRE (NEW TAB LAYOUT)
   ============================ */
.section-empire-new {
    background-color: #020813; /* Deep Navy / Black */
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important; /* NgĂ„Æ’n lĂ¡Â»â€”i nĂ¡Â»Å¸ tĂ¡Â»Â« giĂ¡Â»Â¯a Ă„â€˜Ä‚Â¨ lÄ‚Âªn trÄ‚Âªn */
    align-items: center !important; 
    padding-top: 0 !important;
    overflow: hidden !important; /* NgĂ„Æ’n cuĂ¡Â»â„¢n trang tuyĂ¡Â»â€¡t Ă„â€˜Ă¡Â»â€˜i */
    height: 100vh !important;
}

.tech-lines-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

.empire-title {
    position: relative;
    z-index: 2;
    margin-top: 120px !important; /* Ă„ÂĂ¡ÂºÂ©y mĂ¡ÂºÂ¡nh xuĂ¡Â»â€˜ng dĂ†Â°Ă¡Â»â€ºi */
    margin-bottom: 40px;
    text-align: center;
    width: 100%;
}

.empire-layout {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row !important;
    width: 90%;
    max-width: 1400px;
    height: calc(100vh - 220px);
    max-height: calc(100vh - 180px);
    margin: 0 auto;
    gap: 40px;
}

.empire-tabs {
    width: 35% !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.empire-tab {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.2);
    padding: 15px 20px; /* Thu gĂ¡Â»Ân padding */
    color: var(--silver);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1; /* Chia Ă„â€˜Ă¡Â»Âu khÄ‚Â´ng gian dĂ¡Â»Âc */
}

.empire-tab i {
    font-size: 1.5rem;
    color: var(--neon-blue);
    transition: all 0.3s ease;
}

.empire-tab:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.5);
    transform: translateX(10px);
}

.empire-tab.active {
    background: rgba(0, 243, 255, 0.15);
    border-color: var(--neon-blue);
    color: white;
    box-shadow: inset 5px 0 0 var(--neon-blue), 0 0 15px rgba(0, 243, 255, 0.2);
}

.empire-tab.active i {
    color: white;
    text-shadow: 0 0 10px var(--neon-blue);
}

.empire-content-area {
    width: 65% !important;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.empire-pane {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
}

.empire-pane.active {
    opacity: 1;
    visibility: visible;
}

.pane-hero {
    width: 100%;
    height: 250px;
    max-height: 250px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.pane-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.pane-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to top, #020813, transparent);
}

.pane-text {
    padding: 30px 40px 80px 40px; /* ThÄ‚Âªm padding-bottom 80px Ă„â€˜Ă¡Â»Æ’ khÄ‚Â´ng bĂ¡Â»â€¹ Ă„â€˜Ä‚Â¨ bĂ¡Â»Å¸i pagination */
    flex-grow: 1;
    overflow-y: auto;
}

.pane-text::-webkit-scrollbar {
    width: 6px;
}
.pane-text::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 3px;
}

.pane-text h3 {
    color: var(--neon-gold);
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 10px;
}

.pane-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #eee;
}

.pane-text b {
    color: var(--neon-blue);
}

/* No layout breaking media queries for Empire */

@media (max-width: 768px) {
    .glass-card {
        flex-direction: column;
        gap: 20px;
    }
    .slide-visual, .slide-text-area {
        width: 100%;
    }
    .slide-visual {
        height: 200px;
    }
}


/* New Profile Design CSS */
.right-side::-webkit-scrollbar { width: 6px; }
.right-side::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.5); border-radius: 3px; }
.family-card { background: #1a1a1a; padding: 15px; border: 1px solid #333; border-radius: 8px; transition: box-shadow 0.3s, border-color 0.3s, opacity 0.3s; }
.family-card:hover { border-color: #D4AF37; box-shadow: 0 0 15px rgba(212,175,55,0.3); opacity: 1 !important; z-index: 10; }
.family-container:hover .family-card:not(:hover) { opacity: 0.5; }
.family-title { color: #D4AF37; font-weight: bold; margin-bottom: 10px; font-size: 1.1rem; }
.family-item { color: #ccc; margin-bottom: 5px; font-size: 0.9rem; }
.family-role { color: #D4AF37; }


.trophy-tabs { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.trophy-tab { 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(196, 155, 40, 0.3); 
    color: rgba(229, 196, 83, 0.7); 
    padding: 12px 28px; 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    border-radius: 30px; 
    font-family: 'Chakra Petch', sans-serif; 
}
.trophy-tab:hover {
    background: rgba(196, 155, 40, 0.1);
    border-color: rgba(196, 155, 40, 0.8);
    color: #E6C252;
    transform: translateY(-2px);
}
.trophy-tab.active {
    background: linear-gradient(135deg, #E6C252 0%, #C49B28 100%);
    box-shadow: 0 4px 20px rgba(196, 155, 40, 0.35);
    border: 1px solid #F3C623;
    color: #111111;
    font-weight: 700;
}
.trophy-pane { display: none; position: relative; padding: 20px; background: rgba(0,0,0,0.5); border-radius: 8px; overflow: hidden; }
.trophy-pane.active { display: block; animation: fadeIn 0.5s; }
.watermark-logo { position: absolute; right: -20px; bottom: -20px; font-size: 150px; color: rgba(255,255,255,0.03); z-index: 0; pointer-events: none; }
.trophy-pane ul { list-style: none; padding: 0; position: relative; z-index: 1; }
.trophy-pane li { color: #eee; margin-bottom: 10px; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 5px; }
.gold-icon { color: #D4AF37; margin-right: 8px; }
.awards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; }
.award-item { background: rgba(255,255,255,0.05); padding: 15px; border-radius: 8px; display: flex; align-items: center; gap: 15px; transform: translateY(20px); opacity: 0; transition: all 0.5s ease-out; }
.award-item.visible { transform: translateY(0); opacity: 1; }
.award-multiplier { font-family: monospace; color: #D4AF37; font-size: 1.5rem; font-weight: bold; min-width: 50px; }
.award-desc { color: #ccc; font-size: 0.95rem; line-height: 1.4; }


/* Updated Flexbox for Family Container */
.family-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.family-card {
    flex: 1 1 300px;
}



/* Chakra Petch Font Override for Index */
.title-main, .chapter-text {
    font-family: 'Chakra Petch', sans-serif !important;
}
.splash-subtitle {
    font-family: 'Roboto', sans-serif !important;
    font-style: italic !important;
}

/* Flexbox layout for family cards */
.family-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.family-card {
    flex: 1 1 300px;
}


