/* =========================================================
   TOKENS
   --black  : ALWAYS #111. Ink/stroke on BRIGHT accent surfaces
              (yellow/pink/mint/blue). Never flips -> never inverts.
   --stroke : Structural outline on THEME surfaces (cards, nav,
              sections). Flips light in dark mode to stay visible.
   ========================================================= */
:root {
    --black: #111111;
    --white: #FFFFFF;
    --yellow: #FFDE59;
    --pink: #FF90E8;
    --blue: #8CFFFB;
    --mint: #B2FF9E;
    --red: #FF5A5F;

    --bg: #F4F4F0;
    --surface: #FFFFFF;--text-primary: #111111;
    --text-secondary: #555555;
    --grid-color: rgba(0, 0, 0, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

::selection { background: var(--pink); color: var(--black); }

body {
    font-family: 'Space Mono', monospace;
    background-color: var(--bg);
    color: var(--text-primary);
    cursor: none;
    overflow-x: hidden;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 20px 20px;
    transition: background-color 0.4s ease, color 0.4s ease, background-size 0.5s ease;
}
body:hover { background-size: 22px 22px; }

h1, h2, h3, .logo, .badge, .brutal-marquee, .giant-text-block {
    font-family: 'Archivo Black', sans-serif;
    text-transform: uppercase;
}



/* ====== CUSTOM CURSOR ====== */
.cursor {
    width: 10px; height: 10px;
    background: var(--red);
    border-radius: 50%;
    position: fixed; pointer-events: none;
    z-index: 99998;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}
.cursor-ring {
    width: 40px; height: 40px;
    border: 3px solid var(--red);
    border-radius: 50%;
    position: fixed; pointer-events: none;
    z-index: 99997;
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    mix-blend-mode: difference;
}
.cursor-ring.hover { width: 60px; height: 60px; border-color: var(--yellow); border-width: 4px; }

#trail-canvas { position: fixed; inset: 0; z-index: 99996; pointer-events: none; }

/* ====== SCROLLBAR ====== */
::-webkit-scrollbar { width: 14px; }
::-webkit-scrollbar-track { background: var(--bg); border-left: 3px solid var(--black); }
::-webkit-scrollbar-thumb { background: var(--yellow); border: 3px solid var(--black); }
::-webkit-scrollbar-thumb:hover { background: var(--pink); }

/* ====== NAVBAR (theme surface -> --stroke) ====== */
.brutal-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%;
    border-bottom: 5px solid var(--black);
    background: var(--bg);
    position: sticky; top: 0; z-index: 1000;
    transition: box-shadow 0.3s ease, background-color 0.4s ease, border-color 0.4s ease;
}
.brutal-nav:hover { box-shadow: 0 8px 0px var(--black); }

.logo {
    font-size: 1.8rem;
    color: var(--text-primary);
    transition: letter-spacing 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.logo:hover { letter-spacing: 4px; animation: glitch 0.3s steps(5) forwards; }
@keyframes glitch {
    0%  { text-shadow: 2px 0 var(--pink), -2px 0 var(--blue); }
    20% { text-shadow: -3px 0 var(--blue), 3px 0 var(--pink); }
    40% { text-shadow: 3px 0 var(--pink), -3px 0 var(--mint); }
    60% { text-shadow: -2px 0 var(--mint), 2px 0 var(--red); }
    80% { text-shadow: 2px 0 var(--red), -2px 0 var(--yellow); }
    100% { text-shadow: 0 0 transparent, 0 0 transparent; }
}
.logo-by {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: 'Space Mono', monospace;
    text-transform: none;
    margin-left: 10px;
    font-weight: bold;
}

.nav-links { display: flex; gap: 20px; align-items: center; }

.brutal-link {
    color: var(--text-primary);
    text-decoration: none; font-weight: bold;
    position: relative;
}
.brutal-link::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0%; height: 4px; background: var(--pink);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.brutal-link:hover::after { width: 100%; }

/* Dark toggle sits on theme surface */
.dark-toggle {
    background: var(--surface);
    border: 3px solid var(--black);
    box-shadow: 4px 4px 0px var(--black);
    padding: 8px 14px;
    cursor: none;
    transition: transform 0.1s, box-shadow 0.1s, background-color 0.4s ease, border-color 0.4s ease;
    line-height: 1;
}
.dark-toggle:hover { transform: translate(4px, 4px); box-shadow: 0px 0px 0px var(--black); }
.toggle-icon { display: flex; align-items: center; justify-content: center; }
.toggle-icon svg {
    width: 20px; height: 20px;
    stroke: var(--text-primary);
    fill: none; stroke-width: 2.5;
    stroke-linecap: round; stroke-linejoin: round;
}

/* ====== MARQUEE (mint: always dark ink) ====== */
.brutal-marquee {
    border-bottom: 8px solid var(--black);
    padding: 15px 0;
    overflow: hidden; white-space: nowrap;
    display: flex; font-size: 1.5rem;
    color: var(--black);
}
.marquee-content { display: flex; animation: marquee 20s linear infinite; }
.marquee-content span { padding: 0 10px; }
.separator { color: var(--red); display: inline-block; }
@keyframes marquee { to { transform: translateX(-50%); } }
.brutal-marquee:hover .marquee-content { animation-play-state: paused; }
.brutal-marquee:hover .separator { animation: star-spin 1s linear infinite; }
@keyframes star-spin { to { transform: rotate(360deg); } }

/* ====== SECTION DIVIDERS ====== */
.section-block {
    border-bottom: 8px solid var(--black);
    width: 100%;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}
/* Bright sections keep a dark divider in both themes */
.brutal-stats, .brutal-faq { border-bottom-color: var(--black); }

/* ====== BUTTONS ====== */
/* Accent-background buttons are self-contained bright blocks -> always dark ink */
.brutal-btn {
    border: 4px solid var(--black);
    box-shadow: 8px 8px 0px var(--black);
    padding: 16px 32px;
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--black);
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform 0.1s, box-shadow 0.1s;
    cursor: none;
}
.btn-small { padding: 10px 20px; font-size: 0.9rem; box-shadow: 4px 4px 0px var(--black); }
.brutal-btn:hover, .brutal-btn:active { transform: translate(8px, 8px); box-shadow: 0px 0px 0px var(--black); }
.btn-small:hover, .btn-small:active { transform: translate(4px, 4px); box-shadow: 0px 0px 0px var(--black); }

.color-yellow { background: var(--yellow); }
.color-pink { background: var(--pink); }
.color-blue { background: var(--blue); }
.color-mint { background: var(--mint); }
/* Neutral-surface variant follows the theme */
.color-white { background: var(--surface); }
.brutal-btn.color-white { color: var(--text-primary); border-color: var(--black); }
/* Footer block: dark in both themes, light text */
.color-black { background: var(--black); color: #f2f2f2; }

/* ====== HERO ====== */
.brutal-hero {
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center; padding: 100px 5%;
}
.hero-content { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }

.brutal-sticker {
    background: var(--surface);
    border: 4px solid var(--black);
    padding: 10px 20px; font-size: 1rem;
    margin-bottom: 40px;
    box-shadow: 6px 6px 0px var(--black);
    transform: rotate(-4deg);
    display: inline-block;
    color: var(--text-primary);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background-color 0.4s ease, border-color 0.4s ease;
}
.brutal-sticker:hover { transform: rotate(4deg) scale(1.12); box-shadow: 10px 10px 0px var(--pink); }

h1 {
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: 1; margin-bottom: 30px;
    color: var(--text-primary);
    -webkit-text-stroke: 3px var(--text-primary);
    text-shadow: 4px 4px 0px var(--pink);
    transition: text-shadow 0.3s ease, color 0.4s ease;
}
h1:hover { text-shadow: 6px 6px 0px var(--pink), -6px -6px 0px var(--blue); }

.brutal-hero p {
    font-size: 1.3rem; line-height: 1.6;
    max-width: 700px; margin-bottom: 50px;
    color: var(--text-secondary);
    transition: background 0.3s ease, padding 0.3s ease, color 0.3s ease;
}
/* On hover it becomes a yellow block -> dark ink */
.brutal-hero p:hover {
    background: var(--yellow);
    color: var(--black);
    padding: 8px 16px;
    border: 3px solid var(--black);
}

.cta-group { display: flex; gap: 20px; margin-bottom: 80px; flex-wrap: wrap; justify-content: center; }

/* Mint block: always dark ink */
.giant-text-block {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: var(--mint);
    border: 5px solid var(--black);
    box-shadow: 12px 12px 0px var(--black);
    padding: 40px 60px;
    transform: rotate(-2deg);
    color: var(--black);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}
.giant-text-block:hover { transform: rotate(0deg) translate(-5px, -5px) scale(1.02); box-shadow: 20px 20px 0px var(--black); }
.hover-shake:hover { animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake {
    10%, 90% { transform: translate(-1px, 0) rotate(-2deg); }
    20%, 80% { transform: translate(2px, 0) rotate(-2deg); }
    30%, 50%, 70% { transform: translate(-4px, 0) rotate(-2deg); }
    40%, 60% { transform: translate(4px, 0) rotate(-2deg); }
}

/* ====== STATS (pink: always dark ink) ====== */
.brutal-stats { padding: 80px 5%; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1200px; margin: 0 auto; }
.stat-item {
    text-align: center; padding: 40px 20px;
    border-right: 5px solid var(--black);
    transition: background 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(0,0,0,0.08); transform: scale(1.05); }
.stat-number {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    display: block; color: var(--black);
}
.stat-unit { font-family: 'Archivo Black', sans-serif; font-size: 1.5rem; color: var(--black); margin-left: 4px; }
.stat-label { display: block; font-size: 0.9rem; margin-top: 10px; font-weight: bold; letter-spacing: 2px; color: #3a3a3a; }
@media (max-width: 700px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item { border-bottom: 5px solid var(--black); }
    .stat-item:nth-child(2) { border-right: none; }
}

/* ====== GRID (theme surface) ====== */
.brutal-grid-section { padding: 100px 5%; }
.brutal-grid-section h2 {
    text-align: center; font-size: 2.5rem; margin-bottom: 60px;
    color: var(--text-primary);
    position: relative; display: inline-block; width: 100%;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.4s ease;
}
.brutal-grid-section h2::after {
    content: ''; position: absolute; bottom: -6px; left: 50%;
    transform: translateX(-50%);
    width: 0%; height: 8px;
    background: var(--yellow);
    border: 2px solid var(--black);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.brutal-grid-section h2:hover::after { width: 50%; }
.brutal-grid-section h2:hover { transform: scale(1.03); }

.brutal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; }

.brutal-card {
    background: var(--surface);
    border: 4px solid var(--black);
    box-shadow: 10px 10px 0px var(--black);
    padding: 40px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.4s ease, border-color 0.4s ease;
}
.brutal-card:hover { transform: translate(-6px, -6px) rotate(-1deg); box-shadow: 18px 18px 0px var(--black); z-index: 10; }
.brutal-card:hover .brutal-svg { animation: svg-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.brutal-card:hover h3 { color: var(--red); }
.brutal-card:hover p { font-weight: 700; }

.brutal-card h3 {
    font-size: 1.3rem; margin-bottom: 10px;
    color: var(--text-primary);
    border-bottom: 3px solid var(--yellow);
    padding-bottom: 10px;
    transition: color 0.2s;
}
.brutal-card p { color: var(--text-secondary); line-height: 1.5; transition: font-weight 0.3s ease, color 0.4s ease; }
.span-2 { grid-column: span 2; }
@media (max-width: 900px) { .brutal-grid { grid-template-columns: 1fr; } .span-2 { grid-column: span 1; } }

@keyframes svg-pop {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.3) rotate(12deg); }
    100% { transform: scale(1.15) rotate(0deg); }
}

.brutal-svg {
    width: 50px; height: 50px;
    stroke: var(--text-primary); stroke-width: 3px;
    margin-bottom: 20px;
    filter: drop-shadow(4px 4px 0px var(--black));
    background: var(--surface);
    border: 3px solid var(--black);
    padding: 8px;
}
.brutal-svg.color-blue { fill: var(--blue); }
.brutal-svg.color-mint { fill: var(--mint); }
.brutal-svg.color-yellow { fill: var(--yellow); }
.brutal-svg.color-pink { fill: var(--pink); }

/* ====== TERMINAL ====== */
.brutal-terminal-section { padding: 100px 5%; }
.brutal-terminal {
    max-width: 800px; margin: 0 auto;
    border: 5px solid var(--black);
    box-shadow: 15px 15px 0px var(--black);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease;
}
.brutal-terminal:hover { transform: translate(-8px, -8px); box-shadow: 23px 23px 0px var(--black); }
.brutal-terminal:hover .dot { animation: dot-bounce 0.5s infinite alternate cubic-bezier(0.25, 1, 0.5, 1); }
.brutal-terminal:hover .dot:nth-child(2) { animation-delay: 0.15s; }
.brutal-terminal:hover .dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot-bounce { 0% { transform: translateY(0); } 100% { transform: translateY(-6px); } }

/* Terminal chrome is always dark */
.term-header { background: var(--black); padding: 15px 20px; display: flex; align-items: center; gap: 10px; }
.dot { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--black); }
.bg-red { background: var(--red); }
.bg-yellow { background: var(--yellow); }
.bg-green { background: var(--mint); }
.term-title { color: #f2f2f2; font-weight: bold; margin-left: auto; font-size: 0.9rem; }

.term-body {
    background: var(--bg);
    padding: 30px;
    font-family: 'Space Mono', monospace;
    font-size: 0.95rem; line-height: 2.2;
    color: var(--text-primary);
    transition: background-color 0.4s ease, color 0.4s ease;
}
.term-body p {
    transition: background 0.15s ease, padding-left 0.15s ease, border-left 0.15s ease;
    border-left: 0px solid transparent;
}
.term-body p:hover { background: rgba(255, 222, 89, 0.15); padding-left: 16px; border-left: 4px solid var(--yellow); }
.term-success { color: #2e9e4f; font-weight: bold; transition: text-shadow 0.3s ease; }

/* ====== FAQ (yellow section: cards stay light, ink stays dark) ====== */
.brutal-faq { padding: 100px 5%; background: var(--yellow); }
.brutal-faq h2 { text-align: center; font-size: 3rem; margin-bottom: 60px; color: var(--black); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    border: 4px solid var(--black);
    margin-bottom: 16px;
    background: #FFFFFF;
    box-shadow: 6px 6px 0px var(--black);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}
.faq-item:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0px var(--black); }
.faq-question {
    width: 100%; padding: 22px 28px;
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.15rem; text-transform: uppercase;
    background: transparent; border: none;
    display: flex; justify-content: space-between; align-items: center;
    cursor: none; color: var(--black); text-align: left;
    transition: background 0.2s ease;
}
.faq-question:hover { background: rgba(0,0,0,0.04); }
.faq-icon { font-size: 2rem; font-weight: 900; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), padding 0.4s ease;
    padding: 0 28px;
}
.faq-item.open .faq-answer { max-height: 320px; padding: 0 28px 24px; }
.faq-answer p {
    font-size: 1.05rem; line-height: 1.7;
    color: #333333;
    border-top: 3px dashed var(--black);
    padding-top: 18px;
}

/* ====== FOOTER (always dark) ====== */
.brutal-footer { padding: 80px 5%; text-align: center; }
.footer-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    color: var(--yellow);
    text-shadow: 4px 4px 0px #000000;
    transition: text-shadow 0.3s ease, letter-spacing 0.3s ease;
}
.footer-title:hover { text-shadow: 0 0 10px var(--yellow), 0 0 30px var(--yellow), 0 0 60px var(--yellow); letter-spacing: 6px; }
.footer-desc {
    font-size: 1.1rem; font-weight: bold; margin-bottom: 40px;
    color: #cfcfcf;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.footer-desc:hover { transform: scale(1.05); }
.brutal-footer .brutal-btn svg { transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.brutal-footer .brutal-btn:hover svg { transform: rotate(360deg) scale(1.3); }
.copyright {
    margin-top: 80px !important;
    font-size: 1rem !important;
    color: #9a9a9a;
    transition: letter-spacing 0.5s ease, opacity 0.3s ease;
}
.copyright:hover { letter-spacing: 8px; opacity: 0.6; }

/* ====== REVEAL ====== */
.reveal { opacity: 0; transform: translate(20px, 20px); transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal.active { opacity: 1; transform: translate(0, 0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Nav sponsor wiggle */
.nav-links .btn-small:hover { animation: wiggle 0.4s ease; }
@keyframes wiggle {
    0% { transform: translate(4px, 4px) rotate(0deg); }
    25% { transform: translate(4px, 4px) rotate(3deg); }
    50% { transform: translate(4px, 4px) rotate(-3deg); }
    75% { transform: translate(4px, 4px) rotate(2deg); }
    100% { transform: translate(4px, 4px) rotate(0deg); }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 600px) {
    .brutal-nav { flex-direction: column; gap: 15px; }
    .cta-group { flex-direction: column; align-items: center; }
    body { cursor: auto; }
    .cursor, .cursor-ring, #trail-canvas { display: none; }
}
@media (hover: none) {
    body { cursor: auto; }
    .cursor, .cursor-ring, #trail-canvas { display: none; }
    .brutal-btn, .faq-question, .dark-toggle { cursor: pointer; }
}

/* ====== CSI FEED ====== */










/* ====== TERMINAL EASTER EGG ====== */
.brutal-terminal.terminal-hacked {
    animation: hack-glitch 0.2s linear infinite;
    box-shadow: 15px 15px 0px var(--mint) !important;
    border-color: var(--mint) !important;
}
.brutal-terminal.terminal-hacked .term-body {
    background: #001100 !important;
    color: var(--mint) !important;
}
.brutal-terminal.terminal-hacked .term-header {
    background: var(--mint) !important;
}
.brutal-terminal.terminal-hacked .term-title {
    color: var(--black) !important;
}
.brutal-terminal.terminal-hacked input {
    color: var(--mint) !important;
}
@keyframes hack-glitch {
    0% { transform: translate(2px, 2px); }
    25% { transform: translate(-2px, -2px); }
    50% { transform: translate(-2px, 2px); }
    75% { transform: translate(2px, -2px); }
    100% { transform: translate(0, 0); }
}

/* Custom Scrollbar for Terminal */
#term-container::-webkit-scrollbar { width: 8px; }
#term-container::-webkit-scrollbar-track { background: var(--bg); border-left: 2px solid var(--black); }
#term-container::-webkit-scrollbar-thumb { background: var(--mint); border: 2px solid var(--black); }

/* ====== AGGRESSIVE MOBILE OPTIMIZATIONS ====== */
@media (max-width: 768px) {
    /* 1. Reduce massive whitespace */
    .brutal-hero, .brutal-grid-section, .brutal-terminal-section, .brutal-faq, .brutal-footer, .brutal-wave-section, .brutal-stats {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
    
    
    .logo { font-size: 1.4rem !important; text-align: center; }
    .logo-by { display: block; margin-left: 0; margin-top: 5px; }
    
     /* Prevent long string overflow */

    
    /* Bulletproof Mobile Hero Stacking */
    .hero-content > div[style*="display: flex"] {
        display: block !important;
    }
    
    
    /* Guarantee Visibility - Bypass Observer on Mobile */
    .reveal {
        opacity: 1 !important;
        transform: translate(0,0) !important;
        transition: none !important;
    }
    
    /* Fix missing card spacing */
    .brutal-card {
        margin-bottom: 20px;
    }

    /* 2. Force Hero elements to stack vertically */
    
    
    .giant-text-block {
        font-size: 2rem !important;
        padding: 20px !important;
    }
    
    /* 3. Fix Terminal Header Cramping */
    .term-header .dot {
        display: none; /* Hide decorative dots to save space */
    }
    .term-title {
        margin-left: 0 !important;
    }
    
    /* 4. Prevent iOS Input Auto-Zoom */
    #term-input {
        font-size: 16px !important;
    }
    
    /* 5. Shrink Canvas */
    #wifi-wave-canvas {
        height: 220px !important;
    }
    
    /* 6. Typography scaling */
    h1 {
        font-size: clamp(2.5rem, 12vw, 4rem) !important;
        margin-bottom: 20px;
    }
}


/* ====== EASTER EGGS ====== */

/* 1. Matrix Mode (Konami Code) */
body.matrix-mode {
    filter: invert(100%) hue-rotate(180deg) contrast(120%);
    background: #000;
}
body.matrix-mode img, body.matrix-mode canvas {
    filter: invert(100%) hue-rotate(180deg);
}

/* 2. Full-Screen Radar Sweep (Logo 5-Click) */
body.radar-sweep-active::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 999999;
    background: conic-gradient(from 0deg, transparent 70%, rgba(178, 255, 158, 0.5) 100%);
    animation: radar-spin 2s linear infinite;
    mix-blend-mode: multiply;
}
@keyframes radar-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 3. Red Dot Hover */
.term-header .bg-red:hover {
    box-shadow: 0 0 10px var(--red);
    transform: scale(1.2);
}


/* ====== AGGRESSIVE TOUCH SCROLL FIXES ====== */




@media (max-width: 768px) {
    /* Disable hover transform on mobile so tapping doesn't cause a layout jitter */
    
}

.csi-container {
    background: var(--black);
    border: 5px solid var(--black);
    box-shadow: 12px 12px 0px var(--shadow);
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    transform: rotate(1.5deg);
}

.csi-header {
    background: var(--white);
    color: var(--black);
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.8rem;
    padding: 8px 12px;
    border-bottom: 4px solid var(--black);
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.csi-body {
    padding: 12px;
    padding-top: 50px; /* Make room for absolute header */
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--mint);
    height: 100%;
    width: 100%;
    pointer-events: none !important;
}

.csi-line {
    margin: 0;
    opacity: 0.6;
    white-space: pre-wrap;
    word-break: break-all;
}

.csi-line:first-child {
    opacity: 1;
    color: var(--white);
    font-weight: bold;
}

@media (max-width: 768px) {
    .csi-container {
        transform: none !important;
        margin-bottom: 30px !important;
    }
}
