/* ========================================== */
/* IMPORT YOUR EXACT FONTS & COLOR SCHEME    */
/* ========================================== */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

/* YOUR EXACT COLOR SCHEME - PRESERVED */
:root { 
    --red: #ff0033; 
    --black: #050505; 
    --white: #ffffff;
    --grey: #1a1a1a;
    --text-main: #ffffff;
    --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Courier New', Courier, monospace;
}

/* SELECTION HIGHLIGHT - YOUR EXACT STYLE */
::selection {
    background: var(--red);
    color: var(--black);
    text-shadow: none;
}

/* INTERACTIVE CHAT BUBBLES - PRESERVED */
.bot-message { 
    cursor: copy;
    transition: all 0.2s;
}
.bot-message:hover {
    background: #1a0505;
    border-color: var(--red);
}
.bot-message:active {
    background: var(--red);
    color: black;
}

/* BASE RESET */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}
/* Centered faint background logo watermark */
body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(400px, 60vw);
    height: min(400px, 60vw);
    background: url("https://wordstar.nexus/svg/favicon.svg") no-repeat center;
    background-size: contain;
    opacity: 0.03; /* Faint watermark effect */
    pointer-events: none;
    z-index: -1;
}
body {
    background-color: var(--black);
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow-x: hidden;
    width: 100vw;
    padding-top: 70px; /* Space for sticky header */
}

/* ========================================== */
/* CRT OVERLAY (Preserved from original)     */
/* ========================================== */
#crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.9);
}

.scanline {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 50%, rgba(0,0,0,0.5) 50%);
    background-size: 100% 4px;
    animation: scanline 10s linear infinite, flicker 0.15s infinite;
}

@keyframes scanline {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

@keyframes flicker {
    0% { opacity: 0.3; }
    50% { opacity: 0.4; }
    100% { opacity: 0.3; }
}

/* ========================================== */
/* VHS RED JUMP/BOUNCE EFFECT (Preserved)    */
/* ========================================== */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #ff0000;
    mix-blend-mode: hard-light; 
    opacity: 0;
    z-index: 9998;
    pointer-events: none;
    animation: vhs-red-bloom 8s infinite linear;
}

body::after {
    content: "";
    position: fixed;
    left: 0;
    width: 100%;
    height: 5vh;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.95) 40%, rgba(255, 255, 255, 0.95) 60%, transparent 100%) 
        center center / 80% 2px no-repeat,
        linear-gradient(90deg, transparent, #ff0000, transparent) 
        20% 10% / 200px 1px no-repeat,
        linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.6), transparent) 
        70% 90% / 350px 1px no-repeat;
    top: -10vh;
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0;
    animation: vhs-tracking-bounce 8s infinite linear;
}

@keyframes vhs-red-bloom {
    0%, 90% { opacity: 0; }
    91% { opacity: 0.4; }
    93% { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes vhs-tracking-bounce {
    0%, 90% { top: -10vh; opacity: 0; }
    91% { opacity: 1; }
    96% { top: 110vh; opacity: 1; }
    100% { top: 110vh; opacity: 0; }
}

/* ========================================== */
/* STICKY HEADER (Replaces Left/Right Rails) */
/* ========================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #222;
    box-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-title {
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--white);
    text-transform: uppercase;
}

/* ========================================== */
/* MINI GYRO LOGO (Scaled from original)     */
/* ========================================== */
.gyro-container-mini {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 400px;
}

.gyro-ring-mini {
    position: absolute;
    border-radius: 50%;
    box-sizing: border-box;
}

.gyro-ring-mini-1 {
    width: 36px;
    height: 36px;
    border: 1.5px dashed rgba(255, 0, 0, 0.35);
    animation: gyro-spin-mini-1 9s linear infinite;
}

.gyro-ring-mini-2 {
    width: 30px;
    height: 30px;
    border: 1.5px dotted rgba(255, 0, 0, 0.7);
    animation: gyro-spin-mini-2 6s linear infinite reverse;
}

.gyro-ring-mini-3 {
    width: 24px;
    height: 24px;
    border: 1px dashed rgba(232, 224, 204, 0.4);
    animation: gyro-spin-mini-3 4s linear infinite;
}

.gyro-rotator-mini {
    position: relative;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: gyro-spin-core-mini 15s linear infinite;
}

.gyro-anchor-logo-mini {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    filter: none !important;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    display: block;
}

@keyframes gyro-spin-mini-1 {
    0% { transform: rotateX(65deg) rotateY(15deg) rotateZ(0deg); }
    100% { transform: rotateX(65deg) rotateY(15deg) rotateZ(360deg); }
}

@keyframes gyro-spin-mini-2 {
    0% { transform: rotateX(25deg) rotateY(65deg) rotateZ(0deg); }
    100% { transform: rotateX(25deg) rotateY(65deg) rotateZ(360deg); }
}

@keyframes gyro-spin-mini-3 {
    0% { transform: rotateZ(0deg); }
    100% { transform: rotateZ(360deg); }
}

@keyframes gyro-spin-core-mini {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================== */
/* MENU TRIGGER (Original styling)           */
/* ========================================== */
.menu-trigger {
    background: transparent;
    border: 1px solid var(--red);
    color: var(--red);
    padding: 4px 12px;
    font-size: 22px;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.menu-trigger:hover {
    background: var(--red);
    color: var(--black);
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.3);
}

.mono-caption {
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ========================================== */
/* MAIN CONTENT AREA                         */
/* ========================================== */
.content-area {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 20px;
}

/* ========================================== */
/* DETAILS / SUMMARY BLOCKS (NEW)            */
/* ========================================== */
.content-section {
    background: rgba(10, 15, 10, 0.85);
    border: 1px solid #333333;
    margin-bottom: 20px;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.content-section:hover {
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.8);
    border-color: #444;
}

.section-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: background 0.2s ease;
}

.section-summary::-webkit-details-marker {
    display: none;
}

.section-summary:hover {
    background: rgba(255, 0, 0, 0.05);
}

.section-summary h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--white);
    margin: 0;
    font-family: var(--font-mono);
    letter-spacing: 3px;
}

.summary-indicator {
    font-size: 1.8rem;
    color: var(--red);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 100;
    line-height: 1;
}

.content-section[open] .summary-indicator {
    transform: rotate(45deg);
}

.section-content {
    padding: 20px 25px 30px 25px;
    border-top: 1px solid #222;
    animation: fadeInContent 0.35s ease;
}

@keyframes fadeInContent {
    0% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ========================================== */
/* POWER LIGHT (Original)                    */
/* ========================================== */
#power-light {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: redWhiteAlternate 1s infinite;
}

@keyframes redWhiteAlternate {
    0%, 50% { 
        background-color: #ef4444;
        box-shadow: 0 0 10px #ef4444;
    }
    51%, 100% { 
        background-color: white;
        box-shadow: 0 0 10px white;
    }
}

/* ========================================== */
/* FOOTER STYLES (Original)                  */
/* ========================================== */
.footer-white {
    background: var(--white);
    padding: 40px 20px;
    text-align: center;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.footer-grey {
    background-color: var(--grey);
    color: #555;
    padding: 40px 20px;
    text-align: center;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    border-top: 1px solid #222;
}

.footer-grey a {
    color: #888;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-grey a:hover {
    color: var(--red);
}

/* ========================================== */
/* MENU OVERLAY (Original - The Cube Riot)   */
/* ========================================== */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5,5,5,0.98);
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.menu-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
}

.prism-wrapper {
    position: relative;
}

.prism-label {
    text-align: center;
    font-size: 10px;
    color: var(--red);
    margin-bottom: 15px;
    letter-spacing: 3px;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.prism-scene {
    width: 120px;
    height: 80px;
    perspective: 800px;
}

.prism {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(-35px);
    animation: menuSpin 8s infinite linear;
}

.prism:hover {
    animation-play-state: paused;
}

.face {
    position: absolute;
    width: 120px;
    height: 80px;
    border: 1px solid var(--red);
    background: rgba(0,0,0,0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255,0,51,0.2);
    font-family: var(--font-mono);
    transition: all 0.3s ease;
}

.face:hover {
    background: var(--red);
    color: var(--black);
    box-shadow: 0 0 30px rgba(255, 0, 51, 0.4);
}

.prism .face-1 {
    transform: rotateY(0deg) translateZ(35px);
}

.prism .face-2 {
    transform: rotateY(120deg) translateZ(35px);
}

.prism .face-3 {
    transform: rotateY(240deg) translateZ(35px);
}

@keyframes menuSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* ========================================== */
/* ORB CONTAINER (Original)                  */
/* ========================================== */
.orb-container {
    display: inline-block;
    vertical-align: middle;
    margin-right: 15px;
    width: 50px;
    height: 50px;
    position: relative;
}

.glitch-orb {
    width: 100%;
    height: 100%;
    fill: none;
    stroke-width: 3;
    overflow: visible;
}

.orb-circle {
    stroke: #ff0033;
}

.orb-triangle {
    stroke: #ffffff;
}

.orb-container svg {
    animation: slow-spin 10s linear infinite;
    filter: drop-shadow(0 0 5px rgba(255, 0, 51, 0.4));
    transition: all 0.2s ease;
}

.orb-container:hover svg {
    animation: glitch-shake 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    filter: drop-shadow(2px 2px 0px rgba(255, 255, 255, 0.5)) 
            drop-shadow(-2px -2px 0px rgba(255, 0, 51, 0.8));
}

.orb-container:hover .orb-triangle {
    fill: rgba(255, 255, 255, 0.1);
}

@keyframes slow-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes glitch-shake {
    0% { transform: translate(0) rotate(0deg); }
    20% { transform: translate(-2px, 2px) rotate(-5deg); }
    40% { transform: translate(-2px, -2px) rotate(5deg); }
    60% { transform: translate(2px, 2px) rotate(-5deg); }
    80% { transform: translate(2px, -2px) rotate(5deg); }
    100% { transform: translate(0) rotate(0deg); }
}

/* ========================================== */
/* WITCH SYMBOL (Original)                   */
/* ========================================== */
.witch-symbol {
    animation: witch-glow 3s ease-in-out infinite;
}

@keyframes witch-glow {
    0%, 100% {
        opacity: 0.6;
        filter: drop-shadow(0 0 2px var(--red));
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 8px var(--red));
    }
}

/* ========================================== */
/* TRIANGLE VIDEO WRAPPER (Original)         */
/* ========================================== */
.triangle-video-wrapper {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    width: 100%;
}

.triangle-video-frame {
    position: relative;
    width: 488px;
    height: 360px;
    background-color: #b0b0b0;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    filter: drop-shadow(0 0 10px rgba(204, 0, 0, 0.6));
    opacity: 0.6;
    pointer-events: none;
}

.triangle-inner-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scale(0.98);
    transform-origin: center 65%;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: #000;
}

.triangle-inner-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    object-position: center center;
}

@media (max-width: 768px) {
    .triangle-video-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .triangle-video-frame {
        width: 90vw;
        height: auto;
        aspect-ratio: 488/360;
    }
}

/* ========================================== */
/* DIRECTORY LINK STYLING (Original)         */
/* ========================================== */
.dir-link {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.dir-link:hover {
    color: var(--red);
    text-shadow: 0 0 8px var(--red);
}

/* ========================================== */
/* GREEN HOST BADGE (Original)               */
/* ========================================== */
.green-host-badge {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.green-host-badge:hover {
    filter: grayscale(0%);
}

/* ========================================== */
/* 3D HOVER CAROUSEL (VOID_STAR_V5)          */
/* ========================================== */
.monolith-scene {
    perspective: 1200px;
    width: 240px;  
    height: 380px; 
    margin: 40px auto; 
    z-index: 1;
    position: relative;
}

.sechenov-prism {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(-120px);
    animation: carouselSpin 12s linear infinite;
    animation-play-state: paused;
    transition: transform 0.5s ease-out;
}

.void-slideshow-container:hover .sechenov-prism {
    animation-play-state: running;
}

@keyframes carouselSpin {
    0% { transform: translateZ(-120px) rotateY(0deg); }
    100% { transform: translateZ(-120px) rotateY(-360deg); }
}

.prism-face {
    position: absolute;
    width: 240px;
    height: 380px;
    left: 0;
    top: 0;
    border: 1px solid var(--dark-grey);
    background: #000;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

.prism-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(15%) contrast(1.1);
}

.prism-face::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    box-shadow: inset 0 0 60px rgba(0,0,0,0.8);
    pointer-events: none;
    z-index: 2;
}

.sechenov-prism .face-1 { transform: rotateY(0deg) translateZ(120px); }
.sechenov-prism .face-2 { transform: rotateY(90deg) translateZ(120px); }
.sechenov-prism .face-3 { transform: rotateY(180deg) translateZ(120px); }
.sechenov-prism .face-4 { transform: rotateY(270deg) translateZ(120px); }

/* ========================================== */
/* ASCII TERMINAL (INPUTS ABOVE DISPLAY)     */
/* ========================================== */
.artifact-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

.artifact-terminal {
    width: 100%;
    max-width: 800px;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--grey);
    backdrop-filter: blur(5px);
    margin-top: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border-radius: 4px;
    overflow: hidden;
}

.terminal-header {
    background: var(--grey);
    color: var(--white);
    padding: 8px 15px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 1px solid #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blink {
    animation: blinker 1s linear infinite;
    color: var(--red);
}

@keyframes blinker {
    50% { opacity: 0; }
}

/* ========================================== */
/* TERMINAL CONTROLS - ABOVE THE SCREEN      */
/* ========================================== */
.terminal-controls {
    padding: 15px 20px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.tech-input {
    flex: 1;
    min-width: 120px;
    background: #050505;
    border: 1px solid #333;
    color: var(--white);
    padding: 10px 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    outline: none;
    transition: 0.3s;
    border-radius: 2px;
}

.tech-input:focus {
    border-color: var(--red);
    box-shadow: 0 0 10px rgba(255, 0, 51, 0.1);
}

.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tech-btn {
    flex: 1;
    min-width: 80px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid #333;
    color: #888;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 2px;
}

.tech-btn:hover {
    border-color: var(--red);
    color: var(--white);
    box-shadow: 0 0 8px rgba(255, 0, 51, 0.2);
}

.tech-btn.btn-primary {
    border-color: var(--white);
    color: var(--white);
}

.tech-btn.btn-primary:hover {
    background: var(--red);
    border-color: var(--red);
    color: #000;
}

/* ========================================== */
/* THE DISPLAY SCREEN                         */
/* ========================================== */
.terminal-screen {
    height: 350px;
    background: #000;
    color: var(--red);
    padding: 20px;
    overflow-y: auto;
    font-family: 'VT323', monospace;
    font-size: 14px;
    line-height: 1.2;
    white-space: pre;
    letter-spacing: 0px;
    border-bottom: 1px solid var(--grey);
    scrollbar-width: thin;
    scrollbar-color: var(--red) #000;
}

/* ========================================== */
/* CUSTOM TERMINAL DROPDOWN (FIXED)          */
/* ========================================== */
.custom-select-container {
    position: relative;
    width: 180px;
    flex-shrink: 0;
}

.custom-select-container select {
    display: none;
}

.select-selected {
    background-color: #0a0a0a;
    border: 1px solid #333;
    color: var(--red, #ff0033);
    padding: 10px 14px;
    font-family: var(--font-mono, 'VT323', monospace);
    font-size: 12px;
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: all 0.3s;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 2px;
}

.select-selected:after {
    position: absolute;
    content: "▼";
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: var(--red, #ff0033);
}

.select-selected.select-arrow-active:after {
    content: "▲";
}

.select-selected:hover {
    border-color: var(--red, #ff0033);
    box-shadow: 0 0 10px rgba(255, 0, 51, 0.2);
}

.select-items {
    position: absolute;
    background-color: #000;
    border: 1px solid #333;
    border-top: none;
    z-index: 9999;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    border-radius: 0 0 2px 2px;
}

.select-items div {
    color: #aaa;
    padding: 10px 14px;
    font-family: var(--font-mono, 'VT323', monospace);
    font-size: 12px;
    cursor: pointer;
    border-bottom: 1px solid #222;
    transition: all 0.2s;
    white-space: nowrap;
}

.select-items div:hover {
    background-color: var(--red, #ff0033);
    color: #000;
}

.select-items div.same-as-selected {
    background-color: var(--red, #ff0033);
    color: #000;
}

.select-hide {
    display: none;
}

/* ========================================== */
/* TERMINAL FOOTER                           */
/* ========================================== */
.terminal-footer {
    padding: 8px 20px;
    border-top: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.2);
}

.terminal-footer .status-text {
    color: #444;
    font-size: 8px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================== */
/* MOBILE ADAPTATION                         */
/* ========================================== */
@media(max-width: 768px) {
    .input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .custom-select-container {
        width: 100%;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .tech-btn {
        width: 100%;
    }
    
    .terminal-screen {
        height: 250px;
        font-size: 11px;
        padding: 12px;
    }
    
    .terminal-controls {
        padding: 10px 12px;
    }
}
/* ========================================== */
/* QR CODE ZOOM (Original)                   */
/* ========================================== */
#ton-qr, #toq-qr {
    width: 108px;
    border: 1px solid var(--white);
    padding: 2px;
    background: #000;
    cursor: zoom-in;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10001;
}

#ton-qr:hover, #toq-qr:hover,
#ton-qr:active, #toq-qr:active {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    border-color: var(--red);
}

#ton-qr.expanded, #toq-qr.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(3.5);
    z-index: 999999;
    border-color: var(--white);
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.9), 0 0 50px rgba(255, 255, 255, 0.8);
    cursor: zoom-out;
}

/* ========================================== */
/* TTS TRIGGER (Original)                    */
/* ========================================== */
.tts-trigger {
    transition: all 0.3s ease;
    user-select: none;
    font-family: 'Verdana', sans-serif;
    color: #888;
}

.tts-trigger:hover {
    color: #fff !important;
    border-color: #fff !important;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

/* ========================================== */
/* HERMES AI PANEL (Original)                */
/* ========================================== */
#nous-interface {
    width: 100%;
    font-family: var(--font-mono);
}

#nous-toggle {
    width: 100%;
    background: rgba(0,0,0,0.8);
    color: var(--red);
    border: 1px solid var(--red);
    padding: 8px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 2px;
    text-align: left;
    backdrop-filter: blur(5px);
    transition: 0.2s;
}

#nous-toggle:hover {
    background: var(--red);
    color: black;
    box-shadow: 0 0 15px rgba(255,0,51,0.3);
}

#nous-panel {
    display: none;
    width: 100%;
    background: rgba(5, 5, 5, 0.95);
    border: 1px solid var(--red);
    border-top: none;
    padding: 15px;
    backdrop-filter: blur(10px);
}

#nous-output {
    height: 180px;
    background: #000;
    color: #ccc;
    border: 1px solid #333;
    padding: 10px;
    font-size: 10px;
    overflow-y: auto;
    white-space: pre-wrap;
    margin-bottom: 10px;
}

textarea.nous-input {
    width: 100%;
    height: 50px;
    background: #111;
    color: #fff;
    border: 1px solid #333;
    padding: 8px;
    font-size: 11px;
    font-family: var(--font-mono);
    resize: none;
    outline: none;
}

textarea.nous-input:focus {
    border-color: var(--red);
}

.nous-btn {
    width: 100%;
    padding: 8px;
    background: #000;
    color: #888;
    border: 1px solid #333;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 10px;
    margin-top: 5px;
    font-weight: bold;
}

.nous-btn:hover {
    color: #fff;
    border-color: #fff;
}

/* ========================================== */
/* RED SCROLLBAR (Original)                  */
/* ========================================== */
::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--red);
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff3355;
}

/* ========================================== */
/* BACKGROUND ANCHOR STAR (Original)         */
/* ========================================== */
.anchor-star {
    position: fixed;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    width: 80vh;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

@keyframes hologram-twitch {
    0% { opacity: 0.15; filter: none; }
    5% { opacity: 0.5; filter: hue-rotate(90deg) invert(1) blur(2px); }
    10% { opacity: 0.15; filter: none; }
    90% { opacity: 0.15; filter: none; }
    92% { opacity: 0.8; filter: sepia(1) saturate(20) hue-rotate(-50deg) contrast(1.2); }
    95% { opacity: 0.15; filter: none; }
    100% { opacity: 0.15; }
}

.glitch-active {
    animation: hologram-twitch 3s infinite;
}

/* ========================================== */
/* LOG TICKER (Original)                     */
/* ========================================== */
#log-ticker {
    height: 45px;
    padding: 5px 20px;
    border-top: 1px solid #1a1a1a;
    background: #080808;
    font-size: 10px;
    color: #444;
    overflow: hidden;
}

/* ========================================== */
/* AUGMENT GIF EXPAND (Original)             */
/* ========================================== */
.augment-gif {
    cursor: zoom-in;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 10001;
}

.augment-gif:hover,
.augment-gif:active {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    border-color: var(--red, #cc0000) !important;
}

.augment-gif.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px !important;
    max-width: 85vw !important;
    height: auto !important;
    z-index: 999999;
    border-color: var(--white, #fff) !important;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.9), 0 0 50px rgba(255, 255, 255, 0.8);
    cursor: zoom-out;
}

/* ========================================== */
/* LENIS SMOOTH SCROLL STYLES (Preserved)    */
/* ========================================== */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* ========================================== */
/* SECTION HOVER PREVIEW (Option 4)          */
/* ========================================== */

/* Container for section summary - needed for positioning */
.section-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: background 0.2s ease;
    position: relative; /* For absolute positioning of preview */
}

/* The preview overlay - hidden by default, appears on hover */
.section-preview {
    position: absolute;
    right: 70px; /* Position next to the + indicator */
    top: 50%;
    transform: translateY(-50%) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 100;
    background: rgba(5, 5, 5, 0.95);
    border: 1px solid rgba(255, 0, 51, 0.3);
    border-radius: 4px;
    padding: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.9), 0 0 15px rgba(255, 0, 51, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 120px;
    height: 80px;
    overflow: hidden;
}

/* Show preview on hover */
.section-summary:hover .section-preview {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    pointer-events: none;
}

/* Preview image styling */
.section-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 2px;
    filter: grayscale(30%) contrast(1.1);
    transition: filter 0.3s ease;
}

.section-summary:hover .section-preview img {
    filter: grayscale(0%) contrast(1.1);
}

/* Preview video styling */
.section-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 2px;
    filter: grayscale(30%) contrast(1.1);
    transition: filter 0.3s ease;
    background: #000;
}

.section-summary:hover .section-preview video {
    filter: grayscale(0%) contrast(1.1);
}

/* Small label on preview */
.section-preview .preview-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #888;
    font-family: var(--font-mono);
    font-size: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 6px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section-summary:hover .section-preview .preview-label {
    opacity: 1;
}

/* Glow accent on preview border */
.section-summary:hover .section-preview {
    border-color: var(--red);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 0, 51, 0.2);
}

/* Mobile: hide previews on small screens */
@media(max-width: 768px) {
    .section-preview {
        display: none;
    }
}

/* ========================================== */
/* MOBILE ADAPTATION                         */
/* ========================================== */
@media(max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .site-header {
        height: 50px;
        padding: 0 12px;
    }

    .header-title {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .gyro-container-mini {
        width: 32px;
        height: 32px;
    }

    .gyro-ring-mini-1 {
        width: 28px;
        height: 28px;
    }

    .gyro-ring-mini-2 {
        width: 22px;
        height: 22px;
    }

    .gyro-ring-mini-3 {
        width: 18px;
        height: 18px;
    }

    .gyro-rotator-mini {
        width: 12px;
        height: 12px;
    }

    .gyro-anchor-logo-mini {
        width: 12px !important;
        height: 12px !important;
        min-width: 12px !important;
        min-height: 12px !important;
    }

    .menu-trigger {
        font-size: 18px;
        padding: 2px 10px;
    }

    .content-area {
        padding: 0 12px;
        margin: 10px auto;
    }

    .section-summary {
        padding: 15px 18px;
    }

    .section-summary h2 {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
        letter-spacing: 1px;
    }

    .section-content {
        padding: 15px 18px 20px 18px;
    }

    .menu-grid {
        gap: 30px;
    }

    .prism-scene {
        width: 80px;
        height: 60px;
        perspective: 600px;
    }

    .prism {
        transform: translateZ(-25px);
    }

    .face {
        width: 80px;
        height: 60px;
        font-size: 9px;
    }

    .prism .face-1 {
        transform: rotateY(0deg) translateZ(25px);
    }

    .prism .face-2 {
        transform: rotateY(120deg) translateZ(25px);
    }

    .prism .face-3 {
        transform: rotateY(240deg) translateZ(25px);
    }

    @keyframes menuSpin {
        0% { transform: rotateY(0deg); }
        100% { transform: rotateY(360deg); }
    }

    .input-group {
        flex-direction: column;
    }

    .select-wrapper {
        width: 100%;
        height: 40px;
    }

    .terminal-screen {
        font-size: 10px;
    }

    .anchor-star {
        left: 50%;
        width: 90vw;
        opacity: 0.1;
    }

    /* Hide the old fixed rails since we're using sticky header */
    .left-rail, .right-rail {
        display: none !important;
    }
}
