/* --- VARIABLES --- */
:root {
    --red: #bc0e13;
    --red-dark: #8a0a0e;
    --bg: #050505;
    --bg-card: #0a0a0a;
    --text: #ffffff;
    --text-muted: #666666;
    --font-ui: 'Outfit', sans-serif;
    --font-term: 'Space Mono', monospace;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-ui);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.loading-state { overflow: hidden; height: 100vh; }

/* --- TERMINAL BOOT SCREEN --- */
#boot-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 10000;
    display: flex; align-items: flex-start;
    padding: 60px;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}
#boot-screen.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }

.boot-container {
    font-family: var(--font-term); font-size: 14px; color: var(--red);
    line-height: 1.8; text-transform: uppercase; width: 100%; max-width: 600px;
}
.terminal-line { display: block; margin-bottom: 2px; }
.cursor-blink {
    display: inline-block; width: 8px; height: 16px;
    background: var(--red); animation: blink 0.8s infinite;
    vertical-align: middle; margin-left: 5px;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* --- NAV --- */
.navbar {
    position: fixed; top: 0; width: 100%; padding: 25px 0;
    z-index: 100; mix-blend-mode: difference;
}
.nav-container {
    max-width: 1400px; margin: 0 auto; padding: 0 40px;
    display: flex; justify-content: space-between; align-items: center;
}
.brand-img { height: 32px; display: block; }
.nav-right { display: flex; align-items: center; gap: 40px; }
.nav-item {
    text-decoration: none; color: #fff; font-weight: 500; font-size: 0.9rem;
    opacity: 0.7; transition: 0.3s;
}
.nav-item:hover { opacity: 1; }
.nav-btn {
    text-decoration: none; color: #fff; font-weight: 600; font-size: 0.9rem;
    display: flex; align-items: center; gap: 8px; transition: 0.3s;
}
.nav-btn:hover { color: var(--red); }

/* --- HERO --- */
#hero {
    height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; text-align: center;
}
.hero-bg-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 60vw; height: 60vh;
    background: radial-gradient(circle, rgba(188, 14, 19, 0.15) 0%, rgba(0,0,0,0) 60%);
    filter: blur(80px); z-index: -1;
    animation: breath 8s infinite ease-in-out;
}
@keyframes breath {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}
.hero-label {
    font-size: 0.8rem; letter-spacing: 3px; font-weight: 700; color: var(--red);
    margin-bottom: 20px; display: block;
}
.hero-title {
    font-size: 6rem; line-height: 0.9; font-weight: 900; margin-bottom: 30px; letter-spacing: -2px;
}
.text-red { color: var(--red); }
.hero-desc {
    max-width: 500px; margin: 0 auto 50px; color: var(--text-muted);
    font-size: 1.1rem; line-height: 1.6;
}
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.btn-primary {
    background: var(--red); color: white; border: none; padding: 18px 50px;
    font-size: 1rem; font-weight: 700; cursor: pointer;
    clip-path: polygon(15px 0, 100% 0, 100% 100%, 0 100%, 0 15px);
    transition: all 0.3s var(--ease); font-family: var(--font-ui); letter-spacing: 1px;
}
.btn-primary:hover {
    background: #fff; color: #000; transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(188, 14, 19, 0.2);
}
.trust-indicator { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: #555; }

/* --- INVENTORY --- */
#inventory { padding: 100px 0; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.section-header { margin-bottom: 60px; border-top: 1px solid #1a1a1a; padding-top: 20px; }
.section-header h2 { font-size: 0.9rem; color: #444; letter-spacing: 2px; }

.split-display { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; height: 600px; }
.game-panel {
    position: relative; overflow: hidden; cursor: pointer;
    background: #111; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 50px; border: 1px solid #222; transition: border-color 0.4s;
}
.game-panel:hover { border-color: var(--red); }

/* Default Panel BG style - Images are now set in HTML */
.panel-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    transition: transform 0.8s var(--ease); opacity: 0.4; filter: grayscale(100%);
}
.game-panel:hover .panel-bg { transform: scale(1.05); opacity: 0.6; filter: grayscale(0%); }

.panel-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, #000 0%, transparent 80%);
}
.panel-content { position: relative; z-index: 2; transform: translateY(20px); transition: transform 0.4s var(--ease); }
.game-panel:hover .panel-content { transform: translateY(0); }
.panel-icon { font-size: 2rem; color: var(--red); margin-bottom: 15px; }
.game-panel h3 { font-size: 3rem; font-weight: 800; margin-bottom: 10px; }
.game-panel p { color: #888; margin-bottom: 30px; }
.btn-outline {
    background: transparent; border: 1px solid rgba(255,255,255,0.2);
    color: white; padding: 12px 30px; font-weight: 600; cursor: pointer;
    transition: 0.3s;
}
.btn-outline:hover { background: white; color: black; border-color: white; }

/* --- STATS --- */
#assurance { padding: 50px 0; border-top: 1px solid #111; border-bottom: 1px solid #111; }
.stats-strip { display: flex; justify-content: space-between; align-items: center; }
.stat-block { text-align: center; width: 100%; }
.stat-block h4 { font-size: 2.5rem; font-weight: 700; margin-bottom: 5px; }
.stat-block span { color: #555; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }
.stat-separator { width: 1px; height: 50px; background: #222; }

/* --- SUPPORT CTA --- */
#support-cta { padding: 100px 0; }
.support-banner {
    display: flex; justify-content: space-between; align-items: center;
    background: #0a0a0a; border: 1px solid #222; padding: 60px;
    text-decoration: none; transition: 0.3s;
}
.support-banner:hover { border-color: var(--red); background: #0c0c0c; }
.support-text h3 { color: white; font-size: 2rem; margin-bottom: 10px; }
.support-text p { color: #666; }
.join-btn {
    color: var(--red); font-weight: 700; font-size: 1.2rem;
    display: flex; align-items: center; gap: 15px; transition: 0.3s;
}
.support-banner:hover .join-btn { transform: translateX(10px); color: #fff; }

/* --- FOOTER --- */
footer { padding: 50px 40px; text-align: center; border-top: 1px solid #111; }
.footer-logo { font-weight: 900; font-size: 1.5rem; color: #333; margin-bottom: 10px; }
.footer-copy { color: #444; font-size: 0.8rem; }

/* --- ANIMATIONS --- */
.fade-in-up { opacity: 0; transform: translateY(30px); transition: 0.8s var(--ease); }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    .hero-title { font-size: 3.5rem; }
    .split-display { grid-template-columns: 1fr; height: auto; }
    .game-panel { height: 400px; }
    .stats-strip { flex-direction: column; gap: 40px; }
    .stat-separator { display: none; }
    .support-banner { flex-direction: column; text-align: center; gap: 30px; }
}