:root {
    /* Horror Alien Color Palette */
    --bg-dark: #030304;
    --bg-darker: #000000;
    --bg-card: rgba(10, 15, 12, 0.85);
    
    --primary: #8a0303; /* Deep blood red */
    --primary-glow: rgba(138, 3, 3, 0.6);
    --primary-alien: #15ff00; /* Toxic alien green just in case */
    --accent: #d11313;
    
    --text-main: #e0e0e0;
    --text-muted: #7a8288;
    
    --font-main: 'Outfit', sans-serif;
    --font-horror: 'Creepster', cursive; /* A creepy font for titles */
    
    --max-width: 1200px;
    --section-padding: 100px 20px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --transition-fast: 0.2s ease;
    --transition-norm: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --glass-bg: rgba(10, 10, 12, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

html, body {
    overflow-x: hidden;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main); background-color: var(--bg-dark);
    color: var(--text-main); line-height: 1.6; overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
ul { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; width: 100%; }
.text-center { text-align: center; }
.section-padding { padding: var(--section-padding); }
.mt-4 { margin-top: 2rem; }

/* Typography */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; }
.section-title {
    font-size: 3.5rem; margin-bottom: 1rem;
    text-transform: uppercase; letter-spacing: 4px;
    font-family: var(--font-horror), var(--font-main);
    color: #fff;
    text-shadow: 0 0 10px var(--primary-glow);
}
.section-title span { color: var(--primary); }
.section-subtitle {
    color: var(--text-muted); font-size: 1.2rem; margin-inline: auto; margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-block; padding: 12px 30px; border-radius: var(--radius-sm);
    font-weight: 800; text-transform: uppercase; letter-spacing: 2px;
    cursor: pointer; transition: var(--transition-norm); position: relative;
    border: 1px solid transparent;
}
.btn-primary {
    background: var(--primary); color: #fff;
    box-shadow: 0 0 15px var(--primary-glow);
}
.btn-primary:hover {
    background: transparent; color: var(--primary);
    border-color: var(--primary); box-shadow: 0 0 25px var(--primary-glow) inset;
}
.btn-secondary {
    background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.btn-outline {
    background: transparent; color: var(--text-main); border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* Navbar */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; padding: 20px 5%;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000; transition: var(--transition-norm); background: transparent;
}
.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid rgba(138,3,3,0.3);
}
.logo { font-size: 2rem; font-weight: 900; letter-spacing: 3px; font-family: var(--font-horror); }
.logo span { color: var(--primary); }

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; position: relative; }
.nav-links a:hover { color: var(--primary); text-shadow: 0 0 8px var(--primary-glow); }

.menu-btn { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 24px; position: relative; z-index: 1001; }
.menu-btn span { display: block; width: 100%; height: 2px; background: #fff; position: absolute; left: 0; transition: var(--transition-norm); }
.menu-btn span:nth-child(1) { top: 0; }
.menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-btn span:nth-child(3) { bottom: 0; }
.menu-btn.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }


/* Hero Section */
.hero {
    position: relative; height: 100vh; min-height: 700px;
    display: flex; align-items: center; justify-content: center; text-align: center;
    overflow: hidden;
}
.hero-video-container { position: absolute; inset: 0; z-index: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.9) contrast(1.1) sepia(0.2) hue-rotate(320deg); transition: opacity 1s ease; }
.mobile-video { display: none; }
.desktop-video { display: block; }

.video-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 100%),
                linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 80%, #030304 100%);
}
.alien-fx {
    position: absolute; inset: 0; z-index: 1;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(138,3,3,0.05) 2px, rgba(138,3,3,0.05) 4px);
    pointer-events: none; opacity: 0.5; animation: scanline 10s linear infinite;
}
@keyframes scanline { 0% { background-position: 0 0; } 100% { background-position: 0 1000px; } }

.acv-presents {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 3; font-size: 3rem; letter-spacing: 12px; font-weight: 800; font-family: var(--font-main);
    color: #fff; text-transform: uppercase;
    animation: presentsAnim 2s forwards;
    pointer-events: none;
    text-shadow: 0 0 20px rgba(255,0,0,0.8);
}
@keyframes presentsAnim {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    85% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.1); visibility: hidden; }
}

.hero-content { position: relative; z-index: 2; padding: 0 20px; animation: heroFadeIn 1s ease 2s forwards; opacity: 0; }
@keyframes heroFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }



.glitch {
    font-size: 8rem; font-family: var(--font-horror); text-transform: uppercase;
    color: #fff; margin-bottom: 10px; letter-spacing: 15px;
    text-shadow: 4px 4px 0px rgba(255,0,0,0.6), -4px -4px 0px rgba(0,255,255,0.6);
    animation: glitchAnim 3s infinite;
    transition: transform 0.5s ease;
}
.glitch:hover { transform: scale(1.05); }
@keyframes glitchAnim {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.scroll-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; opacity: 0.5; }

/* Episodes Section - Grid Layout */
.episodes-grid-5 {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 30px;
}
.episode-card {
    background: rgba(10, 10, 10, 0.6); border: 1px solid rgba(138, 3, 3, 0.2);
    border-radius: var(--radius-md); overflow: hidden;
    width: calc(33.333% - 20px); min-width: 300px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}
/* Make the last two items larger or centered by growing */
.episode-card:nth-last-child(1):nth-child(even),
.episode-card:nth-last-child(2):nth-child(odd) {
    width: calc(50% - 15px);
}
.episode-card:hover { border-color: var(--primary); box-shadow: 0 0 30px rgba(138, 3, 3, 0.15); transform: translateY(-5px); }
.episode-info-card { padding: 20px; text-align: center; }
.episode-info-card h3 { font-size: 1.5rem; color: #fff; margin-bottom: 15px; }

.iframe-container {
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0; border-bottom: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
}
.iframe-container iframe, .iframe-container .thumbnail { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: filter 0.3s; z-index: 1; }
.iframe-container:hover .thumbnail { filter: brightness(0.6); }

.custom-play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2;
    width: 60px; height: 60px; background: rgba(138, 3, 3, 0.9);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px; padding-left: 4px; box-shadow: 0 0 20px rgba(138, 3, 3, 0.6);
    transition: transform 0.3s ease, background 0.3s ease; pointer-events: none;
}
.iframe-container:hover .custom-play-btn { transform: translate(-50%, -50%) scale(1.15); background: var(--primary); }

/* Characters Section - Auto Slider */
.cast-slider-wrapper {
    width: 100vw; position: relative; left: 50%; transform: translateX(-50%);
    overflow: hidden; padding: 20px 0;
}
.cast-track {
    display: flex; gap: 30px; width: max-content;
    animation: scrollCast 25s linear infinite;
}
.cast-track:hover { animation-play-state: paused; }

@keyframes scrollCast { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.character-card {
    background: var(--bg-card); border-radius: var(--radius-sm); overflow: hidden;
    width: 350px; flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.05); transition: var(--transition-norm);
    position: relative;
}
.character-card:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.2); box-shadow: 0 10px 40px rgba(0,0,0,0.8); }

.character-media { position: relative; height: 500px; overflow: hidden; background: #000; }
.portrait-video, .portrait-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(80%) contrast(1.2); transition: var(--transition-norm); }
.character-card:hover .portrait-video, .character-card:hover .portrait-img { filter: grayscale(0%); }

.static-overlay {
    position: absolute; inset: 0; background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
    opacity: 0.15; mix-blend-mode: overlay; pointer-events: none;
}

.character-info { padding: 25px; border-top: 2px solid var(--primary); }
.character-info h4 { font-family: var(--font-horror); font-size: 2rem; color: #fff; letter-spacing: 2px; }
.character-info .role { display: block; color: var(--primary); font-weight: 800; text-transform: uppercase; margin: 5px 0 15px; font-size: 0.9rem; }
.character-info .desc { color: var(--text-muted); font-size: 0.95rem; }

/* Horror Gallery */
.gallery-filters { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
    background: transparent; color: var(--text-muted); border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 20px; border-radius: 50px; cursor: pointer; font-weight: 600; text-transform: uppercase; transition: var(--transition-fast);
}
.filter-btn.active, .filter-btn:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: #fff; }

.masonry-grid {
    column-count: 3;
    column-gap: 25px;
    margin: 40px auto;
}
@media (max-width: 1100px) { .masonry-grid { column-count: 2; } }
@media (max-width: 700px) { .masonry-grid { column-count: 1; } }

.masonry-item {
    break-inside: avoid;
    margin-bottom: 25px;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #0a0a0c;
    border: 1px solid var(--glass-border);
    transition: var(--transition-norm);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.masonry-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(138, 3, 3, 0.3);
    z-index: 10;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.7) grayscale(20%);
    transition: var(--transition-norm);
}

.masonry-item:hover img {
    filter: brightness(1) grayscale(0%);
}

.masonry-item iframe {
    width: 100% !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    display: block;
}

.item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    opacity: 0;
    transition: var(--transition-norm);
    pointer-events: none;
}

.masonry-item:hover .item-overlay {
    opacity: 1;
}

.item-overlay span {
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    text-shadow: 0 2px 10px #000;
}

.quote-box {
    width: 100%;
    padding: 40px 30px;
    text-align: center;
    background: linear-gradient(135deg, #08080a, #1a0202);
    border: 1px solid var(--primary);
}
.quote-box p { font-family: var(--font-horror); font-size: 1.8rem; color: var(--primary); line-height: 1.4; text-shadow: 0 0 10px rgba(138,3,3,0.5); }

/* Fan Theories */
.theories-container { display: grid; gap: 30px; max-width: 900px; margin: 0 auto; }
.theory-card {
    background: rgba(15, 15, 18, 0.95); border-left: 5px solid var(--primary);
    padding: 35px 40px; border-radius: 0 var(--radius-md) var(--radius-md) 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); position: relative; overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.theory-card::before {
    content: ''; position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(138, 3, 3, 0.1), transparent 50%);
    pointer-events: none;
}
.theory-card:hover { transform: translateX(10px) translateY(-5px); background: rgba(20, 20, 25, 0.95); box-shadow: 0 10px 20px rgba(0,0,0,0.6); border-left-color: #ff1e1e; }

.theory-header { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 0.9rem; }
.theory-author { font-weight: 800; color: #fff; }
.theory-date { color: var(--text-muted); }
.theory-card h3 { font-size: 1.5rem; color: #fff; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.theory-card p { color: #bbb; line-height: 1.7; font-size: 1.05rem; }

.theory-footer { margin-top: 20px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.05); }
.upvote-btn {
    background: transparent; border: none; color: var(--text-muted); font-weight: 600;
    cursor: pointer; transition: var(--transition-fast); display: flex; align-items: center; gap: 5px;
}
.upvote-btn:hover { color: var(--primary); }

.theory-submission {
    background: rgba(15, 15, 18, 0.8); padding: 50px; border-radius: var(--radius-lg);
    border: 1px solid rgba(138, 3, 3, 0.15); max-width: 750px; width: 100%; margin: 60px auto 0; text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.theory-submission h3 { font-size: 2.5rem; margin-bottom: 30px; font-family: var(--font-horror); color: var(--primary); letter-spacing: 2px; text-shadow: 0 0 10px rgba(138, 3, 3, 0.5); }

.theory-form { display: flex; flex-direction: column; gap: 20px; }
.theory-form input, .theory-form textarea {
    width: 100%; padding: 18px 25px; background: rgba(5,5,8,0.9); border: 1px solid rgba(255,255,255,0.15);
    color: #fff; border-radius: var(--radius-md); font-family: var(--font-main); font-size: 1.1rem;
    transition: var(--transition-norm);
}
.theory-form input::placeholder, .theory-form textarea::placeholder { color: rgba(255,255,255,0.4); }
.theory-form input:focus, .theory-form textarea:focus { outline: none; border-color: var(--primary); background: rgba(0,0,0,0.95); box-shadow: 0 0 15px rgba(138, 3, 3, 0.3); transform: translateY(-2px); }
.theory-form textarea { resize: vertical; min-height: 140px; }
.theory-form button { margin-top: 15px; font-weight: 800; font-size: 1.2rem; letter-spacing: 2px; padding: 20px 40px; border-radius: var(--radius-md); text-transform: uppercase; }

.theory-success-msg {
    margin-top: 15px; color: #15ff00; font-weight: 600; font-size: 1.1rem;
    padding: 10px; border: 1px solid #15ff00; background: rgba(21, 255, 0, 0.1); border-radius: var(--radius-sm);
    transition: opacity 0.5s ease;
}
.hidden { opacity: 0; pointer-events: none; display: none; }

/* Quiz Section */
.quiz-section { background: var(--bg-dark); }
.quiz-container {
    background: rgba(15, 15, 18, 0.8);
    border: 1px solid rgba(138, 3, 3, 0.2);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    text-align: left;
    position: relative;
    overflow: hidden;
}
.quiz-container::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.quiz-header {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
}
.question-container h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 30px;
    line-height: 1.4;
    text-shadow: 0 0 10px rgba(138, 3, 3, 0.3);
}
.options-grid {
    display: grid;
    gap: 15px;
}
.option-btn {
    background: rgba(5, 5, 8, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 18px 25px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1.1rem;
    font-family: var(--font-main);
    text-align: left;
    transition: var(--transition-norm);
    position: relative;
    overflow: hidden;
}
.option-btn:hover {
    background: rgba(20, 20, 25, 0.95);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}
.option-btn.correct {
    background: rgba(21, 255, 0, 0.15);
    border-color: var(--primary-alien);
    color: #fff;
    box-shadow: 0 0 15px rgba(21, 255, 0, 0.3);
}
.option-btn.wrong {
    background: rgba(138, 3, 3, 0.15);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(138, 3, 3, 0.3);
}
.option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}
.quiz-result {
    text-align: center;
    padding: 20px 0;
}
.quiz-result h3 {
    font-size: 2.5rem;
    font-family: var(--font-horror);
    color: var(--primary);
    margin-bottom: 15px;
    letter-spacing: 2px;
}
.quiz-result p {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 20px;
}
#final-score {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-alien);
}

.result-message {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 30px;
}

/* Games Hub CSS */
.games-hub { background: var(--bg-dark); }
.games-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 40px auto 0;
    max-width: 800px;
}
.game-container {
    background: rgba(15, 15, 18, 0.8);
    border: 1px solid rgba(138, 3, 3, 0.2);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    text-align: left;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.game-container h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-family: var(--font-horror);
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 15px;
}

/* Chatbot Styles */
.chat-wrapper { flex-grow: 1; display: flex; flex-direction: column; gap: 15px; }
.chat-window {
    background: #000;
    border: 1px solid rgba(255,255,255,0.1);
    height: 250px;
    border-radius: var(--radius-sm);
    padding: 15px;
    overflow-y: auto;
    font-family: monospace;
    color: #0f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-window p { margin: 0; line-height: 1.4; }
.alien-text { color: var(--primary-alien); text-shadow: 0 0 5px var(--primary-alien); }
.user-text { color: #fff; text-shadow: none; text-align: right; }
.chat-input-area { display: flex; gap: 10px; }
.chat-input-area input {
    flex-grow: 1;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: #fff; padding: 12px; border-radius: var(--radius-sm);
}
.chat-input-area input:focus { outline: none; border-color: var(--primary); }

/* Puzzle Styles */
.puzzle-desc { color: var(--text-muted); margin-bottom: 20px; font-size: 1.05rem; }
.puzzle-wrapper { display: flex; gap: 10px; align-items: center; }
.puzzle-wrapper input {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: #fff; padding: 15px; border-radius: var(--radius-sm); width: 100%;
}
.puzzle-result { margin-top: 20px; text-align: center; }
.success-glow { color: var(--primary-alien); font-weight: bold; text-shadow: 0 0 10px var(--primary-alien); margin-bottom: 15px; }
.secret-img { border-radius: var(--radius-md); border: 2px solid var(--primary-alien); box-shadow: 0 0 20px rgba(21,255,0,0.3); max-width: 100%; }

/* Redefine old Quiz / Signal inner container styles for the grid context */
.game-quiz .quiz-container { max-width: 100%; border: none; padding: 0; background: transparent; box-shadow: none; }
.game-quiz .quiz-container::after { display: none; }
.game-quiz .question-container h4 { font-size: 1.3rem; margin-bottom: 20px; }
.game-signal .signal-container { 
    width: 100%; 
    max-width: 100%; 
    border: 1px solid rgba(21, 255, 0, 0.2); 
    padding: 20px; 
    box-shadow: 0 0 20px rgba(0,0,0,0.8) inset; 
    background: rgba(0,0,0,0.5);
    border-radius: var(--radius-md);
    min-height: 250px; 
}
.game-signal .glitch-text { font-size: 2rem; }
.game-signal .alien-symbols { font-size: 1.5rem; letter-spacing: 5px; min-height: 40px; }
.game-signal .decoded-message { font-size: 1.1rem; }

/* Alien Signal Section */
.signal-section { background: #010101; position: relative; overflow: hidden; }
.signal-container {
    background: #050508;
    border: 1px solid rgba(21, 255, 0, 0.2);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9) inset, 0 0 30px rgba(21, 255, 0, 0.05);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.radar-bg {
    position: absolute; inset: 0;
    background: 
        radial-gradient(circle at center, transparent 30%, rgba(21, 255, 0, 0.03) 70%, transparent 100%),
        repeating-radial-gradient(circle at center, transparent, transparent 50px, rgba(21, 255, 0, 0.05) 51px, transparent 52px);
    opacity: 0.5;
    pointer-events: none;
}
.signal-fx {
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(21, 255, 0, 0.1) 3px, transparent 4px);
    animation: scanline 5s linear infinite;
}
.upvote-btn { background: transparent; border: 1px solid var(--primary); color: #fff; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; cursor: pointer; transition: 0.3s; }
.upvote-btn:hover { background: rgba(138, 3, 3, 0.2); }
.upvote-btn.liked { background: var(--primary); color: #fff; border-color: #fff; box-shadow: 0 0 10px var(--primary-glow); }
.signal-btn {
    background: transparent; border: 2px solid var(--primary-alien); color: var(--primary-alien);
    padding: 20px 40px; font-size: 1.5rem; letter-spacing: 4px; border-radius: 50px;
}
.signal-btn:hover {
    background: rgba(21, 255, 0, 0.1); color: #fff; border-color: #fff;
    box-shadow: 0 0 30px rgba(21, 255, 0, 0.4);
}
.pulse-glow { animation: pulseGlow 2s infinite alternate; }
@keyframes pulseGlow {
    from { box-shadow: 0 0 10px rgba(21, 255, 0, 0.2); }
    to { box-shadow: 0 0 30px rgba(21, 255, 0, 0.6); }
}

.signal-display { width: 100%; text-align: center; }
.glitch-text {
    font-size: 3rem; font-family: var(--font-horror); color: var(--primary-alien);
    text-transform: uppercase; letter-spacing: 5px; margin-bottom: 20px;
    position: relative;
}
.glitch-active { animation: textGlitch 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite; color: #fff; }
@keyframes textGlitch {
    0% { transform: translate(0); text-shadow: none; }
    20% { transform: translate(-5px, 5px); text-shadow: 3px 0 red, -3px 0 cyan; }
    40% { transform: translate(-5px, -5px); text-shadow: none; }
    60% { transform: translate(5px, 5px); text-shadow: 3px 0 red, -3px 0 cyan; }
    80% { transform: translate(5px, -5px); text-shadow: none; }
    100% { transform: translate(0); }
}

.alien-symbols {
    font-size: 2.5rem; color: var(--primary-alien); letter-spacing: 15px;
    font-family: monospace; word-break: break-all; min-height: 80px;
    opacity: 0.8; text-shadow: 0 0 10px rgba(21,255,0,0.5);
}
.decoded-message {
    font-size: 1.5rem; color: #fff; line-height: 1.6; margin-top: 30px;
    opacity: 0; transition: opacity 2s ease; border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px; font-family: var(--font-main); font-weight: 300;
}
.decoded-message.show { opacity: 1; text-shadow: 0 0 15px rgba(255,255,255,0.5); }

/* Footer */
.footer {
    background: linear-gradient(to bottom, #030303, #000);
    padding: 60px 0 0 0;
    border-top: 1px solid rgba(138, 3, 3, 0.2);
    position: relative;
    overflow: hidden;
}

.footer-scanner {
    background: rgba(138, 3, 3, 0.05);
    border-bottom: 1px solid rgba(138, 3, 3, 0.1);
    padding: 10px 0;
    margin-bottom: 50px;
    font-family: monospace;
    overflow: hidden;
}

.scanner-text {
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    color: var(--primary);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.status-active { color: var(--primary-alien); font-weight: bold; }

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: #fff;
    font-family: var(--font-horror);
    font-size: 1.3rem;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.footer-intro {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.creator-mini-bio {
    font-size: 0.85rem;
    color: var(--primary);
    font-family: monospace;
    opacity: 0.7;
}

.links-col ul li { margin-bottom: 12px; }
.links-col ul li a { color: var(--text-muted); font-size: 0.95rem; transition: var(--transition-fast); }
.links-col ul li a:hover { color: var(--primary); padding-left: 5px; }

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.social-icon {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.social-icon:hover { color: #fff; text-shadow: 0 0 10px var(--primary); }

.back-to-top {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    padding: 10px 15px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.back-to-top:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.footer-bottom {
    padding: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: #000;
}

.footer-bottom p {
    color: #444;
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-bottom a { color: var(--primary); font-weight: 700; }
.footer-bottom a:hover { border-bottom: 1px solid var(--primary); }

/* Scroll Anim class - Fail-safe (Visible by default, animated only if JS runs) */
.js-enabled .scroll-anim { 
    opacity: 0; 
    transform: translateY(40px); 
    transition: all 0.8s cubic-bezier(0.1, 0.8, 0.2, 1); 
}
.js-enabled .scroll-anim.visible { 
    opacity: 1; 
    transform: translateY(0); 
}

/* Fallback for when JS is disabled or blocked */
.scroll-anim {
    opacity: 1;
    transform: none;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .glitch { font-size: 5rem; letter-spacing: 5px; }
    .episode-card { width: calc(50% - 15px); }
    .episode-card:nth-last-child(1):nth-child(even),
    .episode-card:nth-last-child(2):nth-child(odd) {
        width: calc(50% - 15px);
    }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 40px; }
    .brand-col { grid-column: span 2; }
}

@media (max-width: 768px) {
    .desktop-video { display: none; }
    .mobile-video { display: block; }

    .menu-btn { display: block; }
    .nav-links {
        position: fixed; top: 0; right: -100%; height: 100vh; width: 80%;
        background: rgba(0, 0, 0, 0.95); flex-direction: column; justify-content: center; align-items: center;
        transition: var(--transition-norm); z-index: 1000; border-left: 2px solid var(--primary);
    }
    .nav-links.active { right: 0; }
    .glitch { font-size: 4rem; letter-spacing: 2px; }
    .episode-card, .episode-card:nth-last-child(1):nth-child(even),
    .episode-card:nth-last-child(2):nth-child(odd) { width: 100%; }
    .character-media { height: 400px; } /* Ensures portrait mp4s look good on mobile */
    .section-title { font-size: 2.5rem; }
    
    /* Fan Theories / Review section mobile adjustments */
    .theories-container { gap: 20px; }
    .theory-card { padding: 20px 15px; }
    .theory-submission { padding: 25px 15px; }
    .theory-submission h3 { font-size: 1.8rem; margin-bottom: 20px; }
    
    /* Games Hub mobile adjustments */
    .games-grid { width: 100%; gap: 20px; }
    .game-container { padding: 20px 15px; }
    .chat-window { height: 200px; }
    .game-signal .signal-container { padding: 10px; }
    .glitch-text { font-size: 1.5rem; }
    .signal-btn { padding: 15px 20px; font-size: 1rem; letter-spacing: 2px; width: 100%; text-align: center; }
    
    /* Footer mobile adjustments */
    .footer-content { grid-template-columns: 1fr; text-align: left; gap: 40px; padding: 0 20px; }
    .brand-col { grid-column: span 1; }
    .footer-col h4 { margin-bottom: 15px; font-size: 1.1rem; }
    .social-links { flex-direction: row; flex-wrap: wrap; gap: 20px; }
    .back-to-top { width: 100%; margin-top: 20px; }
}
