/* NULLVOID TERMINAL - CRT AESTHETIC CSS */

/* ============================================
   THEME SYSTEM
   ============================================ */

/* Base variables (shared) */
:root {
    --terminal-bg: #0a0a0a;
    --danger-red: #ff3333;
    --danger-red-glow: #ff333380;
    --warning-yellow: #ffcc00;
    --key-bg: #1a1a1a;
    --key-surface: #252525;
    --key-highlight: #3a3a3a;
    --key-pressed: #0a0a0a;
    --key-border: #333;
    --font-terminal: 'VT323', 'Share Tech Mono', monospace;

    /* Default theme (Ivory) - fallback */
    --phosphor-main: #ffb000;
    --phosphor-bright: #ffcc44;
    --phosphor-dim: #cc8800;
    --phosphor-dark: #996600;
    --phosphor-glow: #ffb00080;
    --screen-bg: #0d0b08;
    --screen-dark: #080604;
    --lcd-bg: #2a2010;
    --lcd-text: #ffcc66;
    --lcd-dim: #997733;
    --text-primary: #ffb000;
    --text-secondary: #cc9944;
    --text-muted: #886633;
    --accent-highlight: #ffcc33;
    --accent-border: #aa7700;
    --comment-color: #cc6600;
    --text-tertiary: #ddaa55;
}

/* THEME: Green (Phosphor) */
html[data-theme="green"] {
    --phosphor-main: #00ff41;
    --phosphor-bright: #44ff77;
    --phosphor-dim: #00cc33;
    --phosphor-dark: #008822;
    --phosphor-glow: #00ff4180;
    --screen-bg: #0d120d;
    --screen-dark: #080a08;
    --lcd-bg: #1a2a1a;
    --lcd-text: #88ff88;
    --lcd-dim: #446644;
    --text-primary: #00ff41;
    --text-secondary: #66cc66;
    --text-muted: #447744;
    --accent-highlight: #33ff66;
    --accent-border: #00aa33;
    --comment-color: #00cc99;
    --text-tertiary: #88ddaa;
}

/* THEME: Ivory (Amber CRT) */
html[data-theme="ivory"] {
    --phosphor-main: #ffb000;
    --phosphor-bright: #ffcc44;
    --phosphor-dim: #cc8800;
    --phosphor-dark: #996600;
    --phosphor-glow: #ffb00080;
    --screen-bg: #0d0b08;
    --screen-dark: #080604;
    --lcd-bg: #2a2010;
    --lcd-text: #ffcc66;
    --lcd-dim: #997733;
    --text-primary: #ffb000;
    --text-secondary: #cc9944;
    --text-muted: #886633;
    --accent-highlight: #ffcc33;
    --accent-border: #aa7700;
    --comment-color: #cc6600;
    --text-tertiary: #ddaa55;
}

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

/* Force uppercase on navigation and key elements */
.footer-links,
.footer-link,
.link-full,
.link-short {
    text-transform: uppercase;
}


html,
body {
    height: 100%;
    overflow: hidden;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font-terminal);
    font-size: 18px;
    background: linear-gradient(135deg, #0a0808 0%, #0f0a0a 50%, #0a0a0f 100%);
    color: var(--phosphor-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

html {
    background: #0a0808;
}

/* Page Transition Overlay (inside CRT screen only) */
#page-transition {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    border-radius: 10px;
    z-index: 50;
    pointer-events: none;
    opacity: 1;
    animation: page-fade-in 0.25s ease-out forwards;
}

#page-transition.fade-out {
    animation: page-fade-out 0.15s ease-in forwards;
}

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

    to {
        opacity: 0;
    }
}

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

    to {
        opacity: 1;
    }
}


/* ============================================
   DEVICE FRAME (BlackBerry Style)
   ============================================ */
.device-frame {
    position: relative;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 50%, #0a0a0a 100%);
    border-radius: 25px;
    padding: 15px;
    margin: 3vh auto;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 0 0 3px #333,
        0 0 0 6px #1a1a1a,
        0 10px 40px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Matte plastic texture for device body */
.device-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

/* Desktop only: constrain device width */
@media (min-width: 768px) {
    .device-frame {
        min-width: 620px;
        max-width: 620px;
        max-height: 1000px;
    }
}

.device-led {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #ff0000;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff0000, 0 0 15px #ff0000;
    animation: led-blink 2s infinite;
}

@keyframes led-blink {

    0%,
    90% {
        opacity: 1;
        box-shadow: 0 0 8px #ff0000, 0 0 15px #ff0000;
    }

    95% {
        opacity: 0.3;
        box-shadow: 0 0 2px #ff0000;
    }

    100% {
        opacity: 1;
        box-shadow: 0 0 8px #ff0000, 0 0 15px #ff0000;
    }
}

.device-speaker {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #333 20%, #333 80%, transparent 100%);
    border-radius: 2px;
    margin-top: 15px;
}

.device-side-buttons {
    position: absolute;
    top: 25%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.device-side-buttons.left {
    left: -12px;
}

.device-side-buttons.right {
    right: -12px;
}

.side-button {
    width: 5px;
    height: 25px;
    background: linear-gradient(90deg, #1a1a1a, #2a2a2a, #1a1a1a);
    border-radius: 2px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
}

.side-button:hover {
    transform: scale(1.1);
}

.side-button:active {
    transform: scale(0.95);
}

.side-button.green {
    background: linear-gradient(90deg, #0a2a0a, #0f3f0f, #0a2a0a);
    box-shadow: inset 0 0 3px #00ff00;
}

.side-button.green:hover {
    box-shadow: inset 0 0 5px #00ff00, 0 0 5px #00ff00;
}

.side-button.red {
    background: linear-gradient(90deg, #2a0a0a, #3f0f0f, #2a0a0a);
    box-shadow: inset 0 0 3px #ff0000;
}

.side-button.red:hover {
    box-shadow: inset 0 0 5px #ff0000, 0 0 5px #ff0000;
}

.side-button.theme-btn {
    background: linear-gradient(90deg, #2a1a0a, #3f2510, #2a1a0a);
    box-shadow: inset 0 0 3px #ffcc00;
}

.side-button.theme-btn:hover {
    box-shadow: inset 0 0 5px #ffcc00, 0 0 5px #ffcc00;
}

/* Control Bars (LCD style, inside CRT screen) */
.control-bar {
    position: absolute;
    top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--screen-dark);
    border: 1px solid var(--accent-border);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 100;
    font-family: var(--font-terminal);
}

.control-bar.visible {
    opacity: 1;
    visibility: visible;
}

.control-bar.brightness {
    right: 15px;
    top: 55px;
}

.control-bar.volume {
    left: 15px;
}

.control-bar.theme {
    left: 50%;
    transform: translateX(-50%);
}

.control-bar-label {
    font-size: 12px;
    color: var(--lcd-text);
    text-shadow: 0 0 5px var(--phosphor-glow);
}

.control-bar-track {
    width: 80px;
    height: 10px;
    background: rgba(0, 50, 0, 0.5);
    border: 1px solid var(--phosphor-dim);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.control-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--lcd-text);
    box-shadow: 0 0 8px var(--phosphor-glow);
    transition: width 0.15s;
}

.control-bar-value {
    font-family: var(--font-terminal);
    font-size: 12px;
    color: var(--lcd-text);
    min-width: 35px;
    text-align: right;
    text-shadow: 0 0 5px var(--phosphor-glow);
}

/* Physical Navigation Buttons */
.device-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px 0 10px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 0 0 15px 15px;
}

.nav-button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 50%, #0a0a0a 100%);
    color: #555;
    font-size: 14px;
    cursor: pointer;
    box-shadow:
        0 3px 6px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.1s;
}

.nav-button:hover {
    color: var(--phosphor-dim);
    box-shadow:
        0 3px 6px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 5px rgba(0, 255, 65, 0.2);
}

.nav-button:active {
    transform: translateY(2px);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-button.menu {
    width: 50px;
    height: 50px;
    font-size: 18px;
}

.crt-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    flex: 1;
    min-height: 400px;
    overflow: hidden;
}

.crt-screen {
    position: relative;
    background: var(--screen-bg);
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
}

/* Boot sequence with internal scroll */
#boot-output {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    padding-bottom: 30px;
}

/* Custom scrollbar */
#boot-output::-webkit-scrollbar,
.crt-screen::-webkit-scrollbar {
    width: 6px;
    margin-top: 10px;
}

#boot-output::-webkit-scrollbar-track,
.crt-screen::-webkit-scrollbar-track {
    background: #0a0a0a;
    margin-top: 10px;
}

#boot-output::-webkit-scrollbar-thumb,
.crt-screen::-webkit-scrollbar-thumb {
    background: var(--phosphor-dark);
    border-radius: 3px;
}

#boot-output::-webkit-scrollbar-thumb:hover,
.crt-screen::-webkit-scrollbar-thumb:hover {
    background: var(--phosphor-dim);
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.3) 2px, rgba(0, 0, 0, 0.3) 4px);
    z-index: 10;
    animation: scanline-move 8s linear infinite;
}

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

    100% {
        background-position: 0 100px;
    }
}

.screen-noise {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.03;
    z-index: 11;
    animation: noise-animation 0.2s steps(10) infinite;
}

@keyframes noise-animation {

    0%,
    100% {
        transform: translate(0)
    }

    50% {
        transform: translate(-5%, -5%)
    }
}

.screen-flicker {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 12;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        opacity: 0
    }

    20%,
    24%,
    55% {
        opacity: 0.02;
        background: rgba(255, 255, 255, 0.1)
    }
}

.screen-curve {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 13;
    background: radial-gradient(ellipse at center, transparent 0%, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
    border-radius: 20px;
}

.crt-bezel {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 8px solid #1a1a1a;
    border-radius: 30px;
    pointer-events: none;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5), 0 10px 40px rgba(0, 0, 0, 0.8);
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 50%, #0f0f0f 100%);
    z-index: -1;
}

.bezel-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0a0a0a;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.bezel-corner.top-left {
    top: 15px;
    left: 15px
}

.bezel-corner.top-right {
    top: 15px;
    right: 15px
}

.bezel-corner.bottom-left {
    bottom: 15px;
    left: 15px
}

.bezel-corner.bottom-right {
    bottom: 15px;
    right: 15px
}

.terminal-wrapper {
    position: relative;
    z-index: 5;
}

.terminal-section {
    transition: opacity 0.5s ease;
}

.hidden {
    display: none !important;
}

#boot-sequence {
    min-height: 500px;
}

#boot-output {
    font-size: 18px;
    line-height: 1.6;
    white-space: pre-wrap;
}

#boot-output .line {
    opacity: 0;
    animation: fadeIn 0.1s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.boot-ok {
    color: var(--phosphor-main);
}

.boot-warn {
    color: var(--warning-yellow);
}

.boot-error {
    color: var(--danger-red);
}

.boot-info {
    color: var(--phosphor-dim);
}

.boot-highlight {
    color: var(--phosphor-amber);
    text-shadow: 0 0 10px var(--phosphor-amber);
}

.boot-logo {
    color: var(--phosphor-main);
    text-shadow: 0 0 15px var(--phosphor-glow), 0 0 30px var(--phosphor-glow);
    font-size: 14px;
    line-height: 1.1;
    letter-spacing: -1px;
}

/* ASCII Logo in header */
.logo-ascii {
    color: var(--phosphor-main);
    text-shadow: 0 0 10px var(--phosphor-glow);
    font-size: 11px;
    line-height: 1.0;
    letter-spacing: -1px;
    margin: 0;
    font-family: var(--font-terminal);
    white-space: pre;
}

.small-hint {
    font-size: 10px;
    opacity: 0.4;
    margin-top: 10px;
}

.footer-hint {
    display: block;
    font-size: 10px;
    opacity: 0.3;
    margin-top: 5px;
    font-style: italic;
}

.warning-text {
    font-size: 11px;
    opacity: 0.6;
    margin-top: 15px;
    padding: 6px 10px;
    border-left: 2px solid var(--warning-yellow);
    font-family: 'Share Tech Mono', monospace;
}

.corrupted {
    color: var(--danger-red);
    font-weight: bold;
    animation: none !important;
}

.advisory-text {
    font-size: 11px;
    opacity: 0.5;
    margin-top: 15px;
    font-family: 'Share Tech Mono', monospace;
    color: var(--phosphor-dim);
}

.fade-pulse {
    animation: fade-pulse 3s ease-in-out infinite;
}

@keyframes fade-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.handwritten-note {
    font-family: 'Caveat', 'Comic Sans MS', cursive;
    font-size: 14px;
    color: #ffcc00;
    opacity: 0.8;
    transform: rotate(-2deg);
    margin: 10px 0;
    padding: 5px 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.big-link {
    display: inline-block;
    font-size: 1.5em;
    padding: 15px 30px;
    text-decoration: none;
    border: 2px solid var(--phosphor-main);
    border-radius: 8px;
    transition: all 0.3s;
}

.big-link:hover {
    background: var(--phosphor-main);
    color: #000;
}

.footer-links {
    display: block;
    margin-top: 5px;
}

.footer-link {
    color: var(--phosphor-dim);
    text-decoration: none;
    font-size: 12px;
}

.footer-link:hover {
    color: var(--phosphor-main);
}

/* Device Badge - Credits on device frame */
.device-badge {
    position: absolute;
    bottom: 8px;
    right: 15px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    color: #444;
    letter-spacing: 0.5px;
}

/* External Footer - Outside device frame */
.external-footer {
    position: fixed;
    bottom: 10px;
    right: 15px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    opacity: 0.4;
    z-index: 1;
}

.external-link {
    color: var(--phosphor-dim);
    text-decoration: none;
    transition: opacity 0.2s;
}

.external-link:hover {
    opacity: 1;
    color: var(--phosphor-main);
}

.external-sep {
    margin: 0 8px;
    color: #333;
}

.external-footer-left {
    position: fixed;
    bottom: 10px;
    left: 15px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    opacity: 0.4;
    color: var(--phosphor-dim);
    z-index: 1;
}

/* External Language Switcher */
.external-lang {
    position: fixed;
    top: 10px;
    right: 15px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    opacity: 0.5;
    z-index: 1;
    transition: opacity 0.2s;
}

.external-lang:hover {
    opacity: 1;
}

.lang-btn-external {
    background: none;
    border: 1px solid transparent;
    color: var(--phosphor-dim);
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    padding: 3px 8px;
    transition: all 0.2s;
}

.lang-btn-external:hover {
    color: var(--phosphor-main);
    border-color: var(--phosphor-dim);
}

.lang-btn-external.active {
    color: var(--phosphor-main);
    border-color: var(--phosphor-main);
    background: rgba(0, 255, 65, 0.1);
}

/* FAQ Styles */
.faq-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: bold;
    color: var(--phosphor-main);
    margin-bottom: 5px;
}

.faq-answer {
    color: var(--phosphor-dim);
    padding-left: 20px;
}

.skip-button {
    position: fixed;
    bottom: 50px;
    right: 30px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--phosphor-main);
    color: var(--phosphor-main);
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    padding: 10px 20px;
    cursor: pointer;
    opacity: 0.9;
    transition: all 0.2s;
    z-index: 9999;
}

.skip-button:hover {
    opacity: 1;
    color: var(--phosphor-main);
    border-color: var(--phosphor-main);
}

.terminal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--phosphor-dim);
}

.header-glitch {
    position: relative;
    animation: glitch-skew 4s infinite linear alternate-reverse;
}

.logo-main {
    height: 50px;
    filter: drop-shadow(0 0 10px var(--phosphor-glow));
    animation: logo-pulse 2s ease-in-out infinite;
}

@keyframes logo-pulse {

    0%,
    100% {
        filter: drop-shadow(0 0 10px var(--phosphor-glow))
    }

    50% {
        filter: drop-shadow(0 0 20px var(--phosphor-main))
    }
}

@keyframes glitch-skew {

    0%,
    20%,
    22%,
    80%,
    82%,
    100% {
        transform: skew(0deg)
    }

    21% {
        transform: skew(-1deg)
    }

    81% {
        transform: skew(1deg)
    }
}

.header-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    font-size: 14px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--danger-red);
}

.status-indicator.pulse {
    animation: pulse-red 1s ease-in-out infinite;
}

@keyframes pulse-red {

    0%,
    100% {
        box-shadow: 0 0 5px var(--danger-red)
    }

    50% {
        box-shadow: 0 0 20px var(--danger-red)
    }
}

.status-text {
    color: var(--danger-red);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.log-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 24px;
}

.bracket {
    color: var(--phosphor-dim);
}

.section-title {
    color: var(--phosphor-main);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.25);
    letter-spacing: 2px;
}

.log-content {
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--phosphor-dim);
    border-radius: 5px;
    line-height: 1.8;
}

.log-content p {
    margin-bottom: 15px;
}

.redacted {
    background: var(--phosphor-main);
    color: var(--phosphor-main);
    padding: 0 5px;
    cursor: not-allowed;
    user-select: none;
}

.corrupted {
    color: var(--danger-red);
    font-style: italic;
}

.code-highlight {
    color: var(--phosphor-amber);
    background: rgba(255, 176, 0, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
}

.security-section {
    padding: 25px;
    background: rgba(255, 51, 51, 0.05);
    border: 2px solid var(--danger-red);
    border-radius: 10px;
    margin-bottom: 30px;
}

.security-warning {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.warning-icon {
    font-size: 48px;
    color: var(--danger-red);
    animation: warning-pulse 0.5s ease-in-out infinite;
}

@keyframes warning-pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.5
    }
}

.warning-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.warning-text .blink-fast {
    font-size: 24px;
    color: var(--danger-red);
    text-shadow: 0 0 10px var(--danger-red-glow);
}

.sub-warning {
    color: var(--warning-yellow);
    font-size: 14px;
    letter-spacing: 1px;
}

.override-prompt {
    display: flex;
    align-items: center;
    font-size: 24px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

.prompt-label {
    color: var(--phosphor-dim);
}

.input-field {
    color: var(--phosphor-main);
    min-width: 200px;
    letter-spacing: 3px;
    text-shadow: 0 0 10px var(--phosphor-glow);
}

.cursor {
    color: var(--phosphor-main);
}

.cursor.blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1
    }

    51%,
    100% {
        opacity: 0
    }
}

.hint-text {
    margin-top: 15px;
    font-size: 14px;
    color: var(--phosphor-dim);
    font-style: italic;
}

.contact-section {
    margin-top: 20px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.unlock-animation {
    animation: unlock-flash 0.3s ease-out;
}

@keyframes unlock-flash {
    0% {
        color: var(--phosphor-main)
    }

    50% {
        color: #fff;
        text-shadow: 0 0 30px #fff
    }

    100% {
        color: var(--phosphor-main)
    }
}

.lcd-display {
    margin: 20px 0;
}

.lcd-frame {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    padding: 15px;
    border-radius: 10px;
    border: 3px solid #333;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

.lcd-screen {
    background: var(--lcd-bg);
    padding: 20px;
    border-radius: 5px;
    min-height: 100px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.lcd-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.1) 2px, rgba(0, 0, 0, 0.1) 4px);
    pointer-events: none;
}

.lcd-content {
    font-size: 24px;
    color: var(--lcd-text);
    text-shadow: 0 0 5px var(--lcd-text);
    word-break: break-word;
    min-height: 60px;
}

.lcd-placeholder {
    opacity: 0.5;
}

.lcd-label {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    letter-spacing: 2px;
}

/* Handwritten note style */
.handwritten-note {
    color: #ffffff;
    font-size: 1.25em;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin-top: 15px;
    opacity: 0.9;
}

.keyboard-container {
    margin: 20px 0;
}

.keyboard-frame {
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 20px;
    border-radius: 15px;
    border: 3px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.keyboard-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.key {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--key-surface) 0%, var(--key-bg) 100%);
    border: 1px solid var(--key-border);
    border-radius: 6px;
    color: var(--phosphor-main);
    font-family: var(--font-terminal);
    font-size: 16px;
    cursor: pointer;
    user-select: none;
    transition: all 0.1s ease;
    box-shadow: 0 4px 0 var(--key-bg), 0 6px 10px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.key:hover {
    background: linear-gradient(180deg, var(--key-highlight) 0%, var(--key-surface) 100%);
    color: #fff;
    text-shadow: 0 0 10px var(--phosphor-main);
}

.key:active,
.key.pressed {
    transform: translateY(3px);
    box-shadow: 0 1px 0 var(--key-bg), 0 2px 5px rgba(0, 0, 0, 0.3), inset 0 2px 5px rgba(0, 0, 0, 0.3);
    background: var(--key-pressed);
}

.key-fn {
    background: linear-gradient(180deg, #3a2a2a 0%, #2a1a1a 100%);
    color: var(--danger-red);
    width: 60px;
}

.key-fn:hover {
    color: #ff6666;
}

.key-space {
    width: 200px;
}

.transmit-section {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.transmit-button {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 40px;
    background: linear-gradient(180deg, #4a1a1a 0%, #3a0a0a 100%);
    border: 3px solid var(--danger-red);
    border-radius: 10px;
    color: var(--danger-red);
    font-family: var(--font-terminal);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 5px 0 #2a0505, 0 8px 20px rgba(255, 51, 51, 0.3);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.transmit-button:hover {
    background: linear-gradient(180deg, #5a2a2a 0%, #4a1a1a 100%);
    box-shadow: 0 5px 0 #2a0505, 0 8px 30px rgba(255, 51, 51, 0.5);
    text-shadow: 0 0 10px var(--danger-red);
}

.transmit-button:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #2a0505;
}

.transmit-icon {
    font-size: 24px;
    animation: transmit-pulse 1s ease-in-out infinite;
}

@keyframes transmit-pulse {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-3px)
    }
}

.transmission-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.transmission-status .status-icon {
    animation: status-blink 0.5s ease-in-out infinite;
}

@keyframes status-blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.3
    }
}

.transmission-status.success {
    color: var(--phosphor-main);
    border: 1px solid var(--phosphor-dim);
}

.transmission-status.error {
    color: var(--danger-red);
    border: 1px solid var(--danger-red);
}

.transmission-status.sending {
    color: var(--phosphor-amber);
    border: 1px solid var(--phosphor-amber);
}

.terminal-footer {
    width: 100%;
    max-width: 900px;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    color: #444;
    letter-spacing: 2px;
}

.footer-text {
    opacity: 0.6;
}

.glitch-intense {
    animation: glitch-intense 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes glitch-intense {
    0% {
        transform: translate(0);
        filter: hue-rotate(0deg)
    }

    25% {
        transform: translate(-5px, 5px);
        filter: hue-rotate(90deg)
    }

    50% {
        transform: translate(5px, -5px);
        clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%)
    }

    75% {
        transform: translate(-3px, 3px);
        clip-path: polygon(0 0%, 100% 0%, 100% 100%, 0 100%)
    }

    100% {
        transform: translate(0);
        filter: hue-rotate(0deg)
    }
}

@media (max-width:768px) {
    body {
        padding: 10px
    }

    .crt-screen {
        padding: 20px 15px;
        border-radius: 10px
    }

    .crt-bezel {
        border-width: 5px;
        border-radius: 15px
    }

    .key {
        width: 32px;
        height: 40px;
        font-size: 14px
    }

    .key-space {
        width: 140px
    }

    .key-fn {
        width: 45px
    }

    .logo-main {
        height: 35px
    }

    .transmit-button {
        padding: 12px 25px;
        font-size: 18px
    }

    .security-warning {
        flex-direction: column;
        text-align: center
    }

    .override-prompt {
        flex-wrap: wrap;
        justify-content: center
    }
}

@media (max-width:480px) {
    .keyboard-row {
        gap: 3px
    }

    .key {
        width: 28px;
        height: 36px;
        font-size: 12px
    }

    .key-space {
        width: 100px
    }

    .lcd-content {
        font-size: 18px
    }
}

/* === FOOTER EXPANDED === */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-link {
    color: var(--phosphor-dim);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 5px 10px;
}

.footer-link:hover {
    color: var(--phosphor-main);
    text-shadow: 0 0 10px var(--phosphor-glow);
}

.footer-separator {
    color: #333;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.social-icon {
    font-size: 24px;
    color: var(--phosphor-dim);
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-icon i {
    color: inherit;
}

.social-icon:hover {
    color: var(--phosphor-main);
    text-shadow: 0 0 15px var(--phosphor-main);
    transform: scale(1.2);
}

.footer-credits {
    text-align: center;
}

/* === LANGUAGE SWITCHER === */
.lang-switcher {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 15px 0;
    font-family: var(--font-terminal);
}

.lang-label {
    color: var(--phosphor-dim);
    font-size: 14px;
}

.lang-separator {
    color: var(--phosphor-dim);
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--phosphor-dim);
    color: var(--phosphor-dim);
    padding: 3px 10px;
    font-family: var(--font-terminal);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--phosphor-main);
    color: var(--phosphor-main);
}

.lang-btn.active {
    background: var(--phosphor-main);
    color: #000;
    border-color: var(--phosphor-main);
    font-weight: bold;
}

/* === LOGO SUBTITLE === */
.logo-subtitle {
    display: block;
    font-size: 14px;
    color: var(--phosphor-dim);
    letter-spacing: 8px;
    margin-top: 5px;
    opacity: 0.6;
}

/* === APOCALYPSE COUNTER === */
.apocalypse-counter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 14px;
    padding: 8px 15px;
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid var(--danger-red);
    border-radius: 5px;
}

.counter-label {
    color: var(--danger-red);
    letter-spacing: 1px;
}

.counter-value {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 0 10px var(--danger-red);
    animation: counter-pulse 2s ease-in-out infinite;
}

@keyframes counter-pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.7
    }
}

/* === INTERCEPTED TRANSMISSIONS === */
.intercepted-transmission {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--phosphor-amber);
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
    animation: transmission-static 0.1s infinite;
}

.transmission-prefix {
    color: var(--phosphor-amber);
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.transmission-content {
    color: var(--phosphor-dim);
    font-style: italic;
}

.transmission-appear {
    animation: transmission-fade 0.3s ease-out;
}

@keyframes transmission-fade {
    from {
        opacity: 0;
        transform: translateY(-10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes transmission-static {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.95
    }
}

/* === CORRUPT MODE === */
.corrupt-mode {
    animation: corrupt-shake 0.1s infinite !important;
}

@keyframes corrupt-shake {

    0%,
    100% {
        transform: translate(0)
    }

    25% {
        transform: translate(-3px, 3px)
    }

    50% {
        transform: translate(3px, -3px)
    }

    75% {
        transform: translate(-3px, -3px)
    }
}

@keyframes glitch-text {

    0%,
    100% {
        opacity: 1;
        transform: translate(0)
    }

    33% {
        opacity: 0.8;
        transform: translate(-2px, 1px)
    }

    66% {
        opacity: 0.9;
        transform: translate(2px, -1px)
    }
}

/* === STATIC PAGES === */
.static-page {
    padding: 30px;
}

.info-section {
    max-width: 700px;
    margin: 0 auto;
}

.info-section h1 {
    font-size: 28px;
    color: var(--phosphor-main);
    text-shadow: 0 0 15px var(--phosphor-glow);
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: 3px;
}

.info-section h2 {
    font-size: 18px;
    color: var(--phosphor-amber);
    margin: 20px 0 10px;
    letter-spacing: 1px;
}

.info-block {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border: 1px solid var(--phosphor-dim);
    border-radius: 5px;
    margin-bottom: 20px;
}

.info-block p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.info-block ul {
    margin: 15px 0;
    padding-left: 25px;
}

.info-block li {
    margin-bottom: 8px;
}

.highlight {
    color: var(--phosphor-amber);
    background: rgba(255, 176, 0, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
}

.link-highlight {
    color: var(--phosphor-main);
    text-decoration: underline;
}

.link-highlight:hover {
    text-shadow: 0 0 10px var(--phosphor-main);
}

.warning-text {
    color: var(--danger-red);
    font-size: 20px;
    text-align: center;
    animation: blink 1s step-end infinite;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #333;
}

.feature-list li:last-child {
    border-bottom: none;
}

.contact-email {
    font-size: 20px;
    color: var(--phosphor-main);
    text-align: center;
    padding: 15px;
    background: rgba(0, 255, 65, 0.05);
    border-radius: 5px;
}

.small-text {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.back-link {
    text-align: center;
    margin-top: 30px;
}

.terminal-button {
    display: inline-block;
    padding: 12px 25px;
    background: rgba(0, 255, 65, 0.1);
    border: 2px solid var(--phosphor-main);
    color: var(--phosphor-main);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.2s ease;
    font-family: var(--font-terminal);
    font-size: 16px;
}

.terminal-button:hover {
    background: var(--phosphor-main);
    color: #000;
    box-shadow: 0 0 20px var(--phosphor-glow);
}

/* === CREATOR PAGE === */
.creator-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.4);
    padding: 25px;
    border: 2px solid var(--phosphor-main);
    border-radius: 10px;
    margin-bottom: 25px;
}

.creator-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--phosphor-dim), var(--phosphor-main));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-placeholder {
    font-size: 28px;
    font-weight: bold;
    color: #000;
}

.creator-name {
    font-size: 24px;
    color: var(--phosphor-main);
    margin-bottom: 5px;
}

.creator-role {
    color: var(--phosphor-amber);
    font-size: 14px;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.social-link {
    padding: 10px 20px;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--phosphor-dim);
    color: var(--phosphor-main);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--phosphor-main);
    color: #000;
}

@media (max-width:600px) {

    /* CRITICAL: Prevent any horizontal scroll on mobile */
    html,
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .creator-card {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-separator {
        display: none;
    }

    /* Prevent horizontal overflow on mobile */
    .logo-ascii {
        font-size: 8px;
        overflow-x: hidden;
    }

    /* Boot sequence logo - scale down for mobile */
    .boot-logo {
        font-size: 7px !important;
        letter-spacing: -1px;
        line-height: 1.0;
    }

    #boot-sequence {
        overflow-x: hidden;
        max-width: 100%;
    }

    #boot-output {
        overflow-x: hidden;
        max-width: 100%;
        word-break: break-all;
    }

    .terminal-header,
    .log-section,
    .section-header,
    .security-section {
        overflow-x: hidden;
        word-break: break-word;
    }

    .crt-screen {
        overflow-x: hidden;
    }

    .device-frame {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .crt-container {
        max-width: 100%;
        overflow-x: hidden;
    }

    pre {
        overflow-x: auto;
        max-width: 100%;
    }
}

/* ============================================
   TEAM PAGE STYLES
   ============================================ */
.creator-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px;
    background: var(--screen-dark);
    border: 1px solid var(--accent-border);
    border-radius: 5px;
}

.creator-avatar {
    width: 80px;
    height: 80px;
    background: var(--lcd-bg);
    border: 2px solid var(--phosphor-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-placeholder {
    font-size: 32px;
    font-weight: bold;
    color: var(--phosphor-main);
    text-shadow: 0 0 10px var(--phosphor-glow);
}

.creator-name {
    color: var(--phosphor-main);
    margin-bottom: 5px;
}

.creator-name .alias {
    color: var(--text-muted);
    font-weight: normal;
}

.creator-role {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Comment style headers (// SECTION) */
.info-block h2 {
    color: var(--comment-color);
    margin-bottom: 15px;
}

/* Alternating paragraph colors */
.info-block p:nth-child(odd) {
    color: var(--text-primary);
}

.info-block p:nth-child(even) {
    color: var(--text-tertiary);
}

/* ============================================
   LANGUAGE DROPDOWN
   ============================================ */
.external-lang {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

.lang-btn-external {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--phosphor-dim);
    color: var(--phosphor-main);
    padding: 6px 12px;
    font-family: var(--font-terminal);
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.lang-btn-external:hover {
    background: var(--phosphor-dark);
    border-color: var(--phosphor-main);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--phosphor-dim);
    border-radius: 4px;
    overflow: hidden;
    min-width: 100px;
}

.lang-option {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--phosphor-main);
    padding: 8px 12px;
    font-family: var(--font-terminal);
    font-size: 12px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.lang-option:hover {
    background: var(--phosphor-dark);
}

/* ============================================
   MOBILE RESPONSIVE OVERRIDES
   ============================================ */

/* Show full text on desktop, hide short */
.link-full {
    display: inline;
}

.link-short {
    display: none;
}

@media (max-width: 768px) {

    /* Hide side buttons on mobile */
    .device-side-buttons {
        display: none;
    }

    /* Hide nav buttons trackball area on mobile */
    .device-nav-buttons {
        display: none;
    }

    /* Add lateral padding to device frame (~50% more spacing) */
    .device-frame {
        margin: 12px;
        padding: 8px;
    }

    /* Adjust CRT screen padding */
    .crt-screen {
        padding: 15px 12px;
    }

    /* Footer links: show short text, hide long text */
    .footer-links {
        gap: 8px;
        flex-wrap: nowrap;
    }

    .link-full {
        display: none;
    }

    .link-short {
        display: inline;
    }

    .footer-link {
        padding: 6px 10px;
        font-size: 13px;
        white-space: nowrap;
    }

    /* Keep separators visible on mobile */
    .footer-separator {
        display: inline;
        font-size: 12px;
    }

    /* Compact social icons */
    .footer-social {
        gap: 12px;
    }

    .social-icon {
        font-size: 16px;
    }
}