/* --- SYNAPSE_OVERLOAD :: CORE_STYLESHEET_V7.3 --- */
:root {
    --bg-deep-space: #05020a;
    --bg-interface-pane: rgba(10, 15, 35, 0.85); /* Semi-transparent pane BG */
    
    --glow-electric-blue: #00BFFF;
    --glow-laser-red: #FF003C;
    --glow-toxic-green: #00FF8C;
    --glow-glitch-magenta: #FF00FF;
    --glow-circuit-gold: #FFD700;
    --text-hud-primary: var(--glow-electric-blue);
    --text-hud-secondary: #B0C4DE; /* LightSteelBlue */
    --text-critical-info: #FFFFFF;
    --text-terminal: #33FF33; /* Classic green terminal text */

    --border-hud: var(--glow-electric-blue);
    --border-pane: rgba(0, 191, 255, 0.5);
    --shadow-glow: 0 0 10px; /* Base for glow shadows, color added per element */

    --font-main-title: 'Audiowide', cursive; /* Blocky, futuristic */
    --font-hud-display: 'Orbitron', sans-serif; /* For HUD elements, data readouts */
    --font-mono-data: 'Share Tech Mono', monospace; /* Crisp small data */
    --font-terminal-text: 'Fira Code', monospace; /* Body text for terminal outputs */
    
    --transition-main: 0.3s ease-in-out;
    --transition-fast: 0.15s ease-out;

    --hypercube-size: 200px;
    --hypercube-inner-scale: 0.5;
}

/* --- GLOBAL_RESET_&_SETUP --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-mono-data);
    background-color: var(--bg-deep-space);
    color: var(--text-hud-secondary);
    line-height: 1.6;
    overflow: hidden; /* No scroll on body, panes will scroll if needed */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    cursor: crosshair; /* Thematic cursor */
}
html.no-js .bootup-overlay { display: none; } /* Hide bootup if no JS */

/* --- OVERLAYS_&_BACKGROUND_EFFECTS --- */
.global-scanlines, .global-noise {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 9990;
}
.global-scanlines {
    background: repeating-linear-gradient(transparent, transparent 2px, rgba(0, 50, 100, 0.1) 2px, rgba(0, 50, 100, 0.1) 3px);
    opacity: 0.7;
}
.global-noise { /* Subtle animated noise */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    animation: noise-anim 0.1s infinite;
    opacity: 0.5;
}
@keyframes noise-anim {
  0%, 100% { transform: translate(0,0); }
  25% { transform: translate(-1px,1px); }
  50% { transform: translate(1px,-1px); }
  75% { transform: translate(-1px,-1px); }
}
.vignette-strong {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    box-shadow: inset 0 0 150px rgba(0,0,10,0.7); /* Darker, bluer vignette */
    pointer-events: none; z-index: 9980;
}
.background-data-stream {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden; z-index: -1;
    /* JS will populate this with falling characters */
}
.data-char { /* Style for JS-generated background chars */
    position: absolute;
    font-family: var(--font-mono-data);
    color: rgba(0, 100, 150, 0.3); /* Faint blue data */
    font-size: 0.9rem;
    user-select: none;
    animation: fall linear infinite;
}
@keyframes fall {
    to { transform: translateY(100vh); opacity: 0; }
}

/* --- HUD_LAYOUT (HEADER_&_FOOTER) --- */
#hud-header, #hud-footer {
    width: 100%;
    background: rgba(5, 2, 10, 0.6); /* Dark, slightly transparent */
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    border-style: solid;
    border-color: var(--border-hud);
    color: var(--text-hud-primary);
    padding: 8px 15px;
    flex-shrink: 0;
    z-index: 100;
    font-family: var(--font-hud-display);
}
#hud-header { border-width: 0 0 2px 0; box-shadow: 0 2px 10px var(--shadow-glow) var(--glow-electric-blue); }
#hud-footer { border-width: 2px 0 0 0; box-shadow: 0 -2px 10px var(--shadow-glow) var(--glow-electric-blue); margin-top: auto; }

.header-grid, .footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.logo-area, .system-time-area, .data-stream-footer, .threat-level-footer { font-size: 0.8rem; }
.system-time-area, .threat-level-footer { text-align: right; }
.hud-logo { font-family: var(--font-main-title); font-size: 1.6rem; color: var(--glow-laser-red); }
.system-status { display: block; font-size: 0.7rem; color: var(--text-hud-secondary); opacity: 0.8; }
#primary-nav-matrix { display: flex; justify-content: center; gap: 8px; }
.nav-node, .hud-button {
    font-family: var(--font-hud-display);
    background: transparent; color: var(--glow-electric-blue);
    border: 1px solid var(--glow-electric-blue);
    padding: 6px 12px; text-transform: uppercase; font-size: 0.8rem;
    cursor: pointer; transition: all var(--transition-fast);
    box-shadow: 0 0 0px transparent; /* For hover glow */
}
.nav-node:hover, .hud-button:hover, .nav-node.active {
    background: var(--glow-electric-blue); color: var(--bg-deep-space);
    box-shadow: var(--shadow-glow) 2px var(--glow-electric-blue), inset 0 0 5px rgba(255,255,255,0.3);
    transform: translateY(-1px);
}
.hud-button.small-button { padding: 4px 8px; font-size: 0.7rem; }
.cta-primary { /* Specific call to action button */
    background-color: var(--glow-laser-red); border-color: var(--glow-laser-red); color: var(--text-critical-info);
    font-size: 0.9rem; padding: 10px 20px;
}
.cta-primary:hover {
    background: transparent; color: var(--glow-laser-red);
    box-shadow: var(--shadow-glow) 3px var(--glow-laser-red);
}

.copyright-footer { text-align: center; font-size: 0.75rem; opacity: 0.7; }
.dynamic-data { color: var(--glow-toxic-green); } /* For RX/TX in footer */
.threat-indicator.threat-low { color: var(--glow-toxic-green); }
.threat-indicator.threat-medium { color: var(--glow-circuit-gold); }
.threat-indicator.threat-high { color: var(--glow-laser-red); }

/* --- MAIN_VIEWPORT_&_DATA_PANES --- */
#main-interface-viewport {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    perspective: 1000px; /* Moved perspective here for better performance */
}

.data-pane {
    position: absolute;
    top: 15px;
    left: 15px;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    background: var(--bg-interface-pane);
    border: 1px solid var(--border-pane);
    box-shadow: var(--shadow-glow) 5px var(--glow-electric-blue), inset 0 0 20px rgba(0,100,150,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateZ(-100px) scale(0.95);
    transition: opacity 0.3s ease-out,
                visibility 0.3s ease-out,
                transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
    will-change: transform, opacity; /* Optimize for animations */
    backface-visibility: hidden; /* Prevent flickering */
}

.data-pane.active {
    opacity: 1;
    visibility: visible;
    transform: translateZ(0) scale(1);
    z-index: 10;
}

/* Optimize transitions for specific sections */
#hero.active,
#identity.active,
#constructs.active,
#commlink.active {
    transition: opacity 0.3s ease-out,
                visibility 0.3s ease-out,
                transform 0.3s ease-out;
}

/* Reduce animation complexity for better performance */
.hero-3d-construct-wrapper {
    transform-style: preserve-3d;
    will-change: transform;
}

.hypercube {
    will-change: transform;
    transform-style: preserve-3d;
}

/* Optimize hover effects */
.construct-card {
    transition: transform 0.2s ease-out,
                box-shadow 0.2s ease-out;
    will-change: transform;
}

.construct-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow) 5px var(--glow-toxic-green);
}

.pane-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 15px;
    border-bottom: 1px solid var(--border-pane);
    background: rgba(15, 20, 45, 0.7); /* Slightly darker header within pane */
    font-family: var(--font-hud-display);
    font-size: 0.9rem;
    flex-shrink: 0;
}
.pane-title { color: var(--glow-laser-red); text-transform: uppercase; }
.pane-status { color: var(--glow-toxic-green); font-size: 0.8rem; }
.pane-content {
    padding: 20px; flex-grow: 1; overflow-y: auto;
    /* Custom scrollbar for panes */
    scrollbar-width: thin;
    scrollbar-color: var(--glow-electric-blue) rgba(5,2,10,0.8);
}
.pane-content::-webkit-scrollbar { width: 8px; }
.pane-content::-webkit-scrollbar-track { background: rgba(5,2,10,0.8); }
.pane-content::-webkit-scrollbar-thumb { background-color: var(--glow-electric-blue); border-radius: 0; }

.pane-border-decoration { /* Decorative corner elements */
    position: absolute;
    width: 20px; height: 20px;
    border-color: var(--glow-laser-red);
    border-style: solid;
    opacity: 0.7;
}
.pane-border-decoration::before, .pane-border-decoration::after {
    content: ''; position: absolute; background: var(--glow-laser-red);
}
/* Default for top corners - Override for bottom corners */
.data-pane > .pane-border-decoration:nth-of-type(1) { top: -2px; left: -2px; border-width: 2px 0 0 2px; } /* TL */
.data-pane > .pane-border-decoration:nth-of-type(2) { top: -2px; right: -2px; border-width: 2px 2px 0 0; } /* TR */
.pane-border-decoration.bottom:nth-of-type(1) { bottom: -2px; left: -2px; border-width: 0 0 2px 2px; } /* BL */
.pane-border-decoration.bottom:nth-of-type(2) { bottom: -2px; right: -2px; border-width: 0 2px 2px 0; } /* BR */

/* --- HERO_PANE_&_HYPERCUBE --- */
.hero-content-grid {
    display: grid; grid-template-columns: 3fr 2fr; align-items: center; gap: 30px; height: 100%;
}
.hero-main-title h1 {
    font-family: var(--font-main-title);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--text-critical-info);
    text-shadow: var(--shadow-glow) 2px var(--glow-laser-red), 0 0 5px #FFF;
    margin-bottom: 10px;
}
.hero-main-title .subtitle {
    font-family: var(--font-hud-display); font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--glow-toxic-green); margin-bottom: 25px;
    min-height: 1.5em; /* For dynamic subtitle text stability */
}
.call-to-action-cluster { display: flex; gap: 15px; }

.hero-3d-construct-wrapper {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: calc(var(--hypercube-size) * 1.8); /* Ensure space for cube and readout */
}
.hypercube-scene { perspective: 1500px; /* Increased perspective for dramatic effect */ }
.hypercube {
    width: var(--hypercube-size); height: var(--hypercube-size);
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-hypercube 25s linear infinite; /* Slower, more complex rotation */
}
.cube {
    width: 100%; height: 100%; position: absolute; top:0; left:0;
    transform-style: preserve-3d;
}
.outer-cube { transform: translateZ(0); } /* Stays in place */
.inner-cube {
    transform: scale(var(--hypercube-inner-scale)) rotateX(45deg) rotateY(45deg);
    animation: rotate-inner-cube 15s linear infinite reverse; /* Different rotation for inner */
}
@keyframes rotate-hypercube {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(360deg) rotateY(720deg) rotateZ(-360deg); }
}
@keyframes rotate-inner-cube {
    0% { transform: scale(var(--hypercube-inner-scale)) rotateX(0deg) rotateY(0deg); }
    100% { transform: scale(var(--hypercube-inner-scale)) rotateX(-360deg) rotateY(360deg); }
}
.hypercube .face {
    position: absolute;
    width: var(--hypercube-size); height: var(--hypercube-size);
    border: 1px solid var(--glow-glitch-magenta);
    background: rgba(100, 0, 100, 0.15);
    backdrop-filter: blur(1px);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono-data); font-size: 1.5rem; color: var(--glow-glitch-magenta);
    opacity: 0.7;
    box-shadow: inset 0 0 10px var(--glow-glitch-magenta);
    user-select: none;
}
.inner-cube .face {
    border-color: var(--glow-toxic-green); background: rgba(0,100,50,0.15);
    color: var(--glow-toxic-green); box-shadow: inset 0 0 10px var(--glow-toxic-green);
    font-size: 1rem;
}

/* Cube face positioning */
.cube .front  { transform: rotateY(  0deg) translateZ(calc(var(--hypercube-size) / 2)); }
.cube .back   { transform: rotateY(180deg) translateZ(calc(var(--hypercube-size) / 2)); }
.cube .right  { transform: rotateY( 90deg) translateZ(calc(var(--hypercube-size) / 2)); }
.cube .left   { transform: rotateY(-90deg) translateZ(calc(var(--hypercube-size) / 2)); }
.cube .top    { transform: rotateX( 90deg) translateZ(calc(var(--hypercube-size) / 2)); }
.cube .bottom { transform: rotateX(-90deg) translateZ(calc(var(--hypercube-size) / 2)); }

.data-readout-overlay {
    position: absolute; bottom: -20px; /* Slightly below the cube */
    background: rgba(5,2,10,0.7); border: 1px solid var(--glow-circuit-gold);
    padding: 10px; font-size: 0.8rem; color: var(--glow-circuit-gold);
    min-width: 200px; text-align: left;
    box-shadow: var(--shadow-glow) 2px var(--glow-circuit-gold);
}
.dynamic-value, .dynamic-percentage, .dynamic-hex { animation: flicker-value 1.5s infinite steps(1); }
@keyframes flicker-value { 50% { opacity: 0.7; color: var(--text-hud-secondary); }}

/* --- IDENTITY_PANE_SPECIFICS --- */
.identity-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; align-items: flex-start;}
.identity-avatar-module .avatar-frame {
    width: 180px; height: 180px; border: 2px solid var(--glow-laser-red);
    margin-bottom: 15px; padding: 5px; position: relative;
    box-shadow: var(--shadow-glow) 3px var(--glow-laser-red);
}
.avatar-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(50%) contrast(130%); }
.scanline-avatar { /* Animated scanline over avatar */
    position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: var(--glow-toxic-green); opacity: 0.7;
    box-shadow: 0 0 5px var(--glow-toxic-green);
    animation: avatar-scan 4s linear infinite;
}
@keyframes avatar-scan {
    0% { transform: translateY(0); }
    50% { transform: translateY(calc(180px - 3px)); } /* frame height - scanline height */
    100% { transform: translateY(0); }
}
.avatar-data p { font-size: 0.85rem; margin-bottom: 5px; color: var(--text-hud-secondary); }
.avatar-data .data-highlight { color: var(--glow-laser-red); font-weight: bold; }

.terminal-output-box {
    background: rgba(0,5,10,0.5); border: 1px solid var(--border-pane); padding: 15px;
    font-family: var(--font-terminal-text); color: var(--text-terminal);
    font-size: 0.9rem; line-height: 1.7;
}
.terminal-output-box p { margin-bottom: 8px; white-space: pre-wrap; } /* Preserve spacing and wrap */
.terminal-prompt { color: var(--glow-circuit-gold); }
.terminal-cursor { animation: blink-caret 1s step-end infinite; }
@keyframes blink-caret { 50% { opacity: 0; } }
.skill-list { list-style: none; padding-left: 15px; }
.skill-list li { margin-bottom: 3px; }
.skill-prefix { color: var(--glow-electric-blue); margin-right: 5px; }

/* --- CONSTRUCTS_PANE_SPECIFICS --- */
.construct-grid { 
    display: flex; 
    flex-direction: row;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 5px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--glow-electric-blue) rgba(5,2,10,0.8);
}

.construct-grid::-webkit-scrollbar {
    height: 8px;
}

.construct-grid::-webkit-scrollbar-track {
    background: rgba(5,2,10,0.8);
    border-radius: 4px;
}

.construct-grid::-webkit-scrollbar-thumb {
    background-color: var(--glow-electric-blue);
    border-radius: 4px;
}

.construct-card {
    flex: 0 0 300px; /* Fixed width, no grow/shrink */
    background: rgba(15,20,45,0.6);
    border: 1px solid var(--border-pane);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 0px transparent;
    transition: transform var(--transition-main), box-shadow var(--transition-main);
    scroll-snap-align: start;
}
.construct-card:hover {
    transform: scale(1.02) rotateX(2deg); /* Slight 3D tilt on hover */
    box-shadow: var(--shadow-glow) 5px var(--glow-toxic-green);
}
.construct-preview {
    height: 180px; background-size: cover; background-position: center;
    position: relative; border-bottom: 1px solid var(--border-pane);
}
.preview-overlay-data {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(5,2,10,0.9) 0%, transparent 100%);
    padding: 10px; font-size: 0.75rem; color: var(--text-hud-secondary);
    display: flex; justify-content: space-between;
}
.preview-overlay-data span:first-child { color: var(--glow-electric-blue); }
.preview-overlay-data span:last-child { color: var(--glow-toxic-green); }

.construct-info { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; }
.construct-title {
    font-family: var(--font-hud-display); font-size: 1.2rem; color: var(--glow-circuit-gold);
    margin-bottom: 8px; text-transform: uppercase;
}
.construct-brief { font-size: 0.85rem; color: var(--text-hud-secondary); margin-bottom: 12px; flex-grow: 1; }
.construct-tech { margin-bottom: 12px; }
.tech-tag {
    display: inline-block; background: rgba(0,191,255,0.1); color: var(--glow-electric-blue);
    padding: 2px 6px; font-size: 0.7rem; margin-right: 5px; margin-bottom: 5px;
    border: 1px solid rgba(0,191,255,0.3);
}

/* --- COMMLINK_PANE_SPECIFICS --- */
.commlink-interface { /* Can use flex/grid to arrange instructions & buttons */ }
.commlink-grid { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }
.commlink-button {
    display: flex; align-items: center; gap: 10px;
    background: rgba(0,50,80,0.3); border: 1px solid var(--glow-electric-blue);
    padding: 12px 15px; text-decoration: none; color: var(--text-hud-secondary);
    transition: all var(--transition-fast);
    box-shadow: inset 0 0 0px transparent;
}
.commlink-button:hover {
    background: rgba(0,191,255,0.2); border-color: var(--text-critical-info);
    box-shadow: inset 0 0 10px var(--glow-electric-blue);
    color: var(--text-critical-info);
}
.commlink-icon { font-size: 1.2rem; color: var(--glow-electric-blue); }
.commlink-label { font-family: var(--font-hud-display); font-size: 0.9rem; color: var(--text-critical-info); flex-grow: 1;}
.commlink-target { font-size: 0.8rem; opacity: 0.7; }

/* --- GLITCH_EFFECTS --- */
.glitch-permanent, .glitch-hover { position: relative; }
.glitch-permanent::before, .glitch-permanent::after,
.glitch-hover:hover::before, .glitch-hover:hover::after {
    content: attr(data-text); position: absolute; top:0; left:0; width:100%; height:100%;
    overflow: hidden; background: transparent; /* Match context */
}
.glitch-permanent::before {
    left: 2px; text-shadow: -1px 0 var(--glow-glitch-magenta); animation: glitch-loop-1 2s infinite linear alternate-reverse;
}
.glitch-permanent::after {
    left: -2px; text-shadow: 1px 0 var(--glow-toxic-green); animation: glitch-loop-2 3s infinite linear alternate-reverse;
}
.glitch-hover:hover::before {
    left: 3px; text-shadow: -2px 0 var(--glow-laser-red); animation: glitch-once 0.3s linear 3;
}
.glitch-hover:hover::after {
    left: -3px; text-shadow: 2px 0 var(--glow-circuit-gold); animation: glitch-once 0.3s linear 3 reverse;
}
@keyframes glitch-loop-1{0%{clip:rect(39px,9999px,75px,0)}35%{clip:rect(49px,9999px,68px,0)}70%{clip:rect(12px,9999px,80px,0)}100%{clip:rect(51px,9999px,49px,0)}}
@keyframes glitch-loop-2{0%{clip:rect(11px,9999px,65px,0)}35%{clip:rect(78px,9999px,41px,0)}70%{clip:rect(41px,9999px,40px,0)}100%{clip:rect(70px,9999px,77px,0)}}
@keyframes glitch-once{0%{clip:rect(20px,9999px,99px,0);transform:skew(0.8deg)}25%{clip:rect(43px,9999px,4px,0);transform:skew(0.1deg)}50%{clip:rect(77px,9999px,52px,0);transform:skew(-0.4deg)}75%{clip:rect(7px,9999px,89px,0);transform:skew(0.3deg)}100%{clip:rect(52px,9999px,78px,0);transform:skew(-0.7deg)}}

/* --- BOOTUP_OVERLAY --- */
.bootup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-deep-space);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.5s 0.5s ease-out, visibility 0.5s 0.5s; /* Delay hide */
}
.bootup-overlay.active { opacity: 1; visibility: visible; pointer-events: all; transition-delay: 0s; }
.bootup-text {
    font-family: var(--font-terminal-text); color: var(--text-terminal);
    text-align: center; max-width: 80%;
}
.bootup-text p { margin-bottom: 10px; font-size: 1rem; animation: text-flicker-boot 0.1s infinite alternate; }
.loading-bar-container {
    width: 80%; max-width: 400px; height: 20px;
    border: 1px solid var(--text-terminal); margin: 20px auto; padding: 2px;
}
.loading-bar {
    width: 0%; height: 100%;
    background: var(--text-terminal);
    box-shadow: var(--shadow-glow) 2px var(--glow-toxic-green);
    transition: width 2.5s cubic-bezier(0.4, 0, 0.2, 1); /* Boot duration */
}
@keyframes text-flicker-boot {
    from { opacity: 0.8; } to { opacity: 1; }
}

/* --- RESPONSIVE_ADJUSTMENTS --- */
@media (max-width: 1024px) {
    html { font-size: 15px; }
    .header-grid { grid-template-columns: auto 1fr auto; } /* Adjust nav positioning */
    #primary-nav-matrix { justify-content: flex-start; order: -1; padding-left: 10px;} /* Move nav left on smaller screens */
    .hero-content-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-3d-construct-wrapper { order: -1; margin-bottom: 30px; min-height: calc(var(--hypercube-size) * 1.5); }
    .data-readout-overlay { position: relative; bottom: auto; margin-top: 20px; text-align: center; }
}
@media (max-width: 768px) {
    html { font-size: 14px; }
    :root { --hypercube-size: 120px; } /* Smaller hypercube */
    #hud-header, #hud-footer { padding: 6px 10px; }
    .header-grid { display: flex; flex-direction: column; gap: 5px; text-align: center;}
    #primary-nav-matrix { width:100%; flex-wrap:wrap; justify-content: center; order:0;}
    .nav-node { font-size: 0.75rem; padding: 5px 8px;}
    .logo-area, .system-time-area { text-align: center; width: 100%;}
    .hud-logo { font-size: 1.4rem; }
    .data-pane { top: 10px; left: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
    .pane-content { padding: 15px; }
    .identity-grid { grid-template-columns: 1fr; text-align: center; }
    .identity-avatar-module { display: flex; flex-direction: column; align-items: center;}
    .footer-grid { display: flex; flex-direction: column; gap: 5px; font-size: 0.7rem; }
}
@media (max-width: 480px) {
    :root { --hypercube-size: 100px; }
    .bootup-text p { font-size: 0.9rem; }
}

/* --- COPY_NOTIFICATION --- */
.copy-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 191, 255, 0.9);
    color: var(--bg-deep-space);
    padding: 10px 20px;
    border-radius: 4px;
    font-family: var(--font-hud-display);
    font-size: 0.9rem;
    z-index: 10000;
    animation: slideDown 0.3s ease-out, fadeOut 0.3s ease-out 1.7s;
    box-shadow: var(--shadow-glow) 3px var(--glow-electric-blue);
}

@keyframes slideDown {
    from { transform: translate(-50%, -100%); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}