/* =========================================================================
   global.css
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Space+Mono:wght@400;700&display=swap');

:root { 
    color-scheme: dark only; 
}

/* GLOBAL FOCUS & CARET SUPPRESSION (Remove 'Type Icon') */
* { 
    caret-color: transparent !important; 
    -webkit-tap-highlight-color: transparent;
}
*:focus { outline: none !important; }

/* DOT NAVIGATION GLOBAL SYSTEM */
.dot-nav {
    position: fixed;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 10000; /* Priority elevation to prevent data-panel occlusion */
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dot.active {
    height: 32px;
    background: #10b981;
    border-color: #10b981;
}
@media (max-width: 640px) {
    .dot-nav { right: 0.75rem; gap: 1rem; }
}

/* UNIFIED SLIDE-ENGINE CORE */
.snap-container { 
    height: 100vh; 
    height: 100dvh;
    overflow: hidden; 
    touch-action: none; 
    background-color: transparent !important;
}

.snap-section { 
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh; 
    height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 80px; /* Offset for Global Fixed Header transparency guard */
    will-change: transform, visibility;
    overflow: hidden; /* Strict containment */
}

.scroll-content { 
    width: 100%; 
    height: 100%; 
    overflow-y: auto; 
    padding: 15vh 0 5vh 0; /* Systems-wide safety for the fixed header */
    scrollbar-width: none;
}
.scroll-content::-webkit-scrollbar { display: none; }

/* Mobile Viewport Fit Adjustments */
@media (max-width: 640px) {
    .scroll-content {
        padding: 12vh 1.25rem 6vh 1.25rem; /* Enhanced top-padding for header safety */
    }
}

body { 
    font-family: 'Inter', sans-serif; 
    background-color: #020617; 
    color: #f8fafc; 
    margin: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    touch-action: none;
    position: relative;
    z-index: 0;
}

/* --- PREMIUM AURORA BACKGROUND --- */
body::before {
    content: '';
    position: fixed;
    top: -50%; left: -50%; 
    width: 200%; height: 200%;
    z-index: -1;
    background: 
        radial-gradient(ellipse at 40% 40%, rgba(16, 185, 129, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(15, 23, 42, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 70%, rgba(6, 78, 59, 0.15) 0%, transparent 50%);
    animation: aurora-move 30s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

@keyframes aurora-move {
    0% { transform: rotate(0deg) scale(1) translate(0%, 0%); }
    100% { transform: rotate(3deg) scale(1.1) translate(-2%, 2%); }
}

p, p.editorial, p[class*="text-slate-"] {
    font-family: 'Lora', serif;
    letter-spacing: 0.01em;
    line-height: 1.8;
    color: #e2e8f0; /* text-slate-200 override for readability */
}

.mono {
    font-family: 'Space Mono', monospace;
    letter-spacing: -0.05em;
}

/* Base Glass Card -> Brutalist Container */
.glass-card { 
    background: transparent; 
    border: none;
    border-radius: 0px; 
    box-shadow: none;
    transition: all 0.4s ease; 
}

.glass-card:hover { 
    transform: none;
    box-shadow: none;
    border-top-color: rgba(255, 255, 255, 0.4);
}

/* =========================================================================
   Typography & Minimalist Labels
   ========================================================================= */

.minimal-label {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: #64748b; /* slate-500 default */
    margin-bottom: 2rem;
    display: block;
    font-family: 'Inter', sans-serif;
    font-style: italic;
}

/* =========================================================================
   Flip Cards (General Purpose)
   ========================================================================= */
.flip-card {
    background-color: transparent;
    perspective: 1500px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.flip-card-front {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    backdrop-filter: blur(10px);
}

.flip-card-back {
    background: #064e3b;
    transform: rotateY(180deg);
    border-color: rgba(16, 185, 129, 0.3);
}

.hero-title {
    font-size: clamp(2.2rem, 12vw, 8.5rem) !important; /* Reduced min for small mobile */
    font-weight: 900 !important;
    line-height: 0.8 !important;
    text-transform: uppercase !important;
    letter-spacing: -0.06em !important;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)) !important;
}

.topic-title {
    font-size: clamp(1.8rem, 10vw, 6.5rem) !important; /* Reduced min for small mobile */
    font-weight: 900 !important;
    line-height: 0.95 !important;
    text-transform: uppercase !important;
    letter-spacing: -0.04em !important;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3)) !important;
}

.gradient-text { 
    background: #ffffff; 
    -webkit-background-clip: text; 
    background-clip: text; 
    -webkit-text-fill-color: transparent; 
    display: inline-block; 
}

/* =========================================================================
   Lesson / Storytelling Reveal Animations
   ========================================================================= */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Weighty chart transitions (1.5s) */
.bar-segment, .bar-grow {
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================================
   Global Progress Bar reading indicator
   ========================================================================= */
#scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
    pointer-events: none;
}

#scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #10b981, #059669);
    transition: width 0.1s ease-out;
}

/* =========================================================================
   World-Class Transitions (Suggestion #1 Upgrade)
   ========================================================================= */

@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes cinematic-scale-down {
    from { transform: scale(1); filter: blur(0px); }
    to { transform: scale(0.97); filter: blur(8px); }
}

@keyframes cinematic-scale-up {
    from { transform: scale(1.03); filter: blur(8px); }
    to { transform: scale(1); filter: blur(0px); }
}

@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: 600ms cubic-bezier(0.4, 0, 0.2, 1) both fade-out,
               600ms cubic-bezier(0.4, 0, 0.2, 1) both cinematic-scale-down;
}

::view-transition-new(root) {
    animation: 600ms cubic-bezier(0.4, 0, 0.2, 1) both fade-in,
               600ms cubic-bezier(0.4, 0, 0.2, 1) both cinematic-scale-up;
}

/* Ensure fixed UI elements stay anchored during the cinematic shift */
::view-transition-group(site-logo),
::view-transition-group(site-menu) {
    animation-duration: 600ms;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* GLOBAL HEADER & MENU OVERLAY */
/* GLOBAL HEADER & NAV */
.global-top-nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem clamp(1.5rem, 4vw, 2.5rem); /* Slimmed vertical padding */
    z-index: 9999;
    pointer-events: none;
    /* High-Fidelity Frosted Glass Readability Guard */
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.8) 0%, rgba(2, 6, 23, 0) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.global-top-nav > * { pointer-events: auto; }

.nav-brand-logo {
    font-size: clamp(1rem, 3.5vw, 1.4rem); /* Slightly down-scaled for sleekness */
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    color: white;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5));
}
.nav-brand-logo:hover { 
    color: #10b981; 
    transform: scale(1.02);
}

.nav-menu-btn {
    font-size: clamp(0.7rem, 2vw, 0.8rem); /* Slightly down-scaled for sleekness */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    padding: 0.6rem 1.4rem; /* Tighter padding for slimming */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    backdrop-filter: blur(5px);
}
.nav-menu-btn:hover {
    background: white;
    color: black !important;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

@media (max-width: 640px) {
    .global-top-nav { padding: 1.25rem 1.75rem; }
    .nav-menu-btn { padding: 0.6rem 1.25rem; }
}


/* MENU CATEGORY STYLES */
.menu-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: clamp(2rem, 5vh, 4rem);
    width: 100%;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}
.menu-group:nth-child(1) { animation-delay: 0.1s; }
.menu-group:nth-child(2) { animation-delay: 0.2s; }
.menu-group:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-group-label {
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    color: #10b981;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2rem;
}
body.menu-open .menu-overlay {
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 1024px) {
    .menu-overlay {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 8vw;
        padding-top: 25vh;
    }
    .menu-group {
        width: auto;
        margin-bottom: 0;
        align-items: flex-start;
    }
}

.menu-link {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    font-style: italic;
    margin: 0.4rem 0;
    letter-spacing: -0.03em;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    line-height: 1;
}
.menu-link:hover { 
    color: #10b981; 
    transform: translateX(10px);
}

.menu-overlay-close {
    position: absolute;
    top: clamp(1.5rem, 5vh, 4rem);
    right: clamp(1.5rem, 5vw, 4rem);
    top: 1.5rem; right: 1.5rem;
    font-size: 1rem; color: white;
    cursor: pointer;
    background: transparent; border: none; font-weight: 900;
    text-transform: uppercase; letter-spacing: 2px;
}

/* AI ASSISTANT GLOBAL HUD */
#ai-assistant-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: clamp(48px, 5.5vw, 60px);
    height: clamp(48px, 5.5vw, 60px);
    border-radius: 99px;
    background: rgba(16, 185, 129, 0.2);
    border: 2px solid rgba(16, 185, 129, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    #ai-assistant-btn {
        bottom: 1rem;
        right: 1rem;
    }
}

#ai-assistant-btn:hover {
    background: rgba(16, 185, 129, 0.4);
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
}

#ai-terminal {
    position: fixed;
    bottom: 6rem;
    right: 1.5rem;
    width: min(400px, 85vw);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    z-index: 10000;
    pointer-events: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#ai-terminal.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
/* =========================================================================
   8. AMA CAROUSEL & ACTION UTILITIES
   ========================================================================= */
.scrollbar-none {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.scrollbar-none::-webkit-scrollbar {
    display: none;
}

#ama-carousel {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.ama-nav-btn {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ama-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%) scale(1.1);
}

/* Learn More Button Animation */
.flip-card-back a {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.flip-card-back a:hover {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
    transform: scale(1.05);
}

/* =========================================================================
   9. MINIMALIST AMA COMPONENT
   ========================================================================= */
/* =========================================================================
   9. HIGH-FIDELITY SEARCH PROCESSOR (ART NODE)
   ========================================================================= */
.search-art-node {
    position: relative;
    width: 100%;
    max-width: 650px;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 0.5rem;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: text;
}

.search-art-node:hover {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.search-art-node:hover::before,
.search-art-node:hover::after {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

/* Sentinel Corner Brackets */
.search-art-node::before, 
.search-art-node::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(16, 185, 129, 0.4);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    animation: bracketPulse 4s infinite ease-in-out;
}

@keyframes bracketPulse {
    0%, 100% { border-color: rgba(16, 185, 129, 0.4); box-shadow: 0 0 5px rgba(16, 185, 129, 0); }
    50% { border-color: rgba(16, 185, 129, 0.8); box-shadow: 0 0 15px rgba(16, 185, 129, 0.2); }
}

/* Top Left */
.search-art-node::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

/* Bottom Right */
.search-art-node::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

.search-art-node:focus-within {
    transform: scale(1.02);
    background: rgba(15, 23, 42, 0.6);
}

.search-art-node:focus-within::before,
.search-art-node:focus-within::after {
    width: 100%;
    height: 100%;
    border-color: #10b981;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

.ama-input-art {
    background: transparent;
    border: none;
    padding: 1.5rem 2rem;
    font-size: clamp(1rem, 3vw, 1.4rem);
    font-family: 'Space Mono', monospace;
    font-weight: 500;
    color: white;
    width: 100%;
    text-align: center;
    letter-spacing: 0.1em;
    outline: none;
    caret-color: #10b981; /* Glowing emerald cursor */
}

.ama-input-art::placeholder {
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    font-weight: 900;
    font-family: 'Inter', sans-serif;
    transition: opacity 0.3s ease;
}

.ama-input-art:focus::placeholder {
    opacity: 0.1;
}

/* Global Section Highlighting (for Deep Links) */
@keyframes evidence-highlight-pulse {
    0% { background-color: transparent; }
    30% { background-color: rgba(16, 185, 129, 0.1); }
    100% { background-color: transparent; }
}
.evidence-highlight {
    animation: evidence-highlight-pulse 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
}
.evidence-highlight::after {
    content: 'EVIDENCE TARGET';
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 9px;
    font-weight: 900;
    color: #10b981;
    letter-spacing: 0.4em;
    opacity: 0.8;
    z-index: 100;
    pointer-events: none;
}

/* Scholarly Archive Search: Pure Black & White */
.search-art-node { 
    position: relative;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    padding: 0 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}
.search-art-node::before, .search-art-node::after { display: none !important; content: none !important; }

.search-art-node:focus-within { 
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.ama-input-art {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 16px;
    font-weight: 500;
    padding: 1rem 0;
}
.ama-input-art::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.ama-result-minimal {
    width: 100%;
    max-width: 600px;
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.ama-hit {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border-left: 3px solid #10b981;
    padding: 2rem;
    border-radius: 0 1rem 1rem 0;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    animation: hitFadeIn 0.5s forwards;
}
@keyframes hitFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   10. CUSTOM ANIMATIONS & PARTICLE FX
   ========================================================================= */
@keyframes ascend {
    0% { transform: translateY(100vh) scale(0.5); opacity: 0; }
    20% { opacity: 0.8; transform: translateY(50px) scale(0.8); }
    80% { opacity: 1; transform: translateY(-30px) scale(1.1); }
    100% { transform: translateY(-100px) scale(0); opacity: 0; }
}

/* =========================================================================
   12. ONBOARDING HELPER
   ========================================================================= */
#scroll-onboard-helper {
    position: fixed;
    bottom: 3vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 9000;
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}
.scroll-mouse {
    width: 20px; height: 30px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 10px;
    position: relative;
    display: flex; justify-content: center;
}
.scroll-wheel {
    width: 4px; height: 6px;
    background: white;
    border-radius: 2px;
    margin-top: 4px;
    animation: scrollWheel 1.5s infinite;
}
@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

body.scrolled-past-zero #scroll-onboard-helper {
    opacity: 0 !important;
    transform: translate(-50%, 20px) !important;
}

/* THE DARE: SPECIALIZED INTERACTIVE THEME */
.dare-page {
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}
.dare-glitch-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
    position: relative;
    z-index: 10;
}
.dare-title {
    font-size: clamp(3rem, 15vw, 12rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.8;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: #fff;
    filter: drop-shadow(0 0 30px rgba(239, 68, 68, 0.3));
}
.dare-btn-huge {
    background: #ef4444;
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    padding: 1.5rem 4rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 1rem;
    box-shadow: 0 0 50px rgba(239, 68, 68, 0.4);
}
.dare-btn-huge:hover {
    background: #fff;
    color: #ef4444;
    transform: scale(1.1);
    box-shadow: 0 0 80px rgba(255, 255, 255, 0.6);
}

.dare-step {
    min-height: 100vh;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10vh 2rem;
    opacity: 0;
    transition: opacity 0.8s ease;
    width: 100%;
}
.dare-step.active {
    display: flex;
    opacity: 1;
}

.dare-content-card {
    max-width: 900px;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: clamp(1.5rem, 5vw, 3.5rem);
    backdrop-filter: blur(10px);
    position: relative;
}
.dare-fact-label {
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    margin-bottom: 2rem;
    display: block;
}

.dare-reason-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    width: 100%;
    margin-top: 3rem;
}
.dare-reason-card {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    position: relative;
    overflow: hidden;
}
.dare-reason-card:hover {
    border-color: #ef4444;
    background: #111;
}
.dare-reason-card.cleared {
    opacity: 0.2;
    pointer-events: none;
    text-decoration: line-through;
    border-color: rgba(255,255,255,0.05);
}

.dare-progress-bar {
    position: fixed;
    top: 0; left: 0; height: 4px;
    background: #ef4444;
    width: 0%;
    z-index: 10001;
    transition: width 0.3s ease;
}

@keyframes dareGlitch {
    0% { transform: translate(0); }
    10% { transform: translate(-5px, 2px); }
    20% { transform: translate(5px, -2px); }
    30% { transform: translate(-5px, -2px); }
    40% { transform: translate(5px, 2px); }
    50% { transform: translate(0); }
}
.glitch-hover:hover {
    animation: dareGlitch 0.2s infinite;
}

.dare-video-wall {
    width: 100%;
    position: relative;
}
.dare-video-container {
    position: relative;
    border: 1px solid rgba(239, 68, 68, 0.3);
    overflow: hidden;
    background: #000;
}

/* THE HYPOCRISY SNARE */
.hypocrisy-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 20000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    animation: hypocrisyBloom 0.4s forwards;
}
.hypocrisy-overlay.active {
    display: flex;
}
@keyframes hypocrisyBloom {
    from { background: rgba(239, 68, 68, 0); }
    to { background: rgba(0, 0, 0, 1); }
}

.intensity-red-glow {
    color: #ef4444;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.8), 0 0 40px rgba(239, 68, 68, 0.4);
    animation: dareGlitch 0.2s infinite;
}

.dare-step-fullscreen-video {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.dare-video-bg {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.dare-video-bg iframe {
    border: none;
}

.dare-ui-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 6rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    z-index: 20;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Force HIDDEN state for Nav if HUD is hidden on Witness Page */
.global-top-nav {
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.dare-ui-layer.visible,
.global-top-nav.hud-visible {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* On Step 3 specifically, nav is hidden by default unless hud-visible is added */
.witness-active .global-top-nav:not(.hud-visible) {
    opacity: 0 !important;
    pointer-events: none !important;
}

.dare-interact-shield {
    position: absolute;
    inset: 0;
    z-index: 15;
    background: transparent;
    cursor: auto;
}

.orientation-warning {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 30000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

@media screen and (orientation: portrait) and (max-width: 1024px) {
    .witness-active .orientation-warning {
        display: flex;
    }
}

.fullscreen-btn {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    z-index: 21;
    transition: all 0.3s;
}
.fullscreen-btn:hover {
    background: #fff;
    color: #000;
}
.scanline-overlay {
    position: absolute;
    inset: 0;
    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% 4px, 3px 100%;
    pointer-events: none;
    z-index: 10;
    opacity: 0.5;
}
.scanline-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0.4;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0% { opacity: 0.27861; }
    5% { opacity: 0.34769; }
    10% { opacity: 0.23604; }
    15% { opacity: 0.90626; }
    20% { opacity: 0.18128; }
    25% { opacity: 0.83891; }
    30% { opacity: 0.65583; }
    35% { opacity: 0.57807; }
    40% { opacity: 0.26559; }
    45% { opacity: 0.84693; }
    50% { opacity: 0.96019; }
    55% { opacity: 0.08594; }
    60% { opacity: 0.20313; }
    65% { opacity: 0.71988; }
    70% { opacity: 0.53455; }
    75% { opacity: 0.37288; }
    80% { opacity: 0.71428; }
    85% { opacity: 0.70419; }
    90% { opacity: 0.7003; }
    95% { opacity: 0.36108; }
    100% { opacity: 0.24387; }
}
