
:root {
    --hue-shift: 0deg;
    --neon-red: #ff0000;
    --low-red: #410000;
    --warning: #ff8c00;
    --bg: #000000;
    --panel-bg: rgba(10, 0, 0, 0.9);
    --win-bg: #1a0000;
    --center-stage-glow: #200;
}
#fake-cursor {
    width: 28px;
    height: 28px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100000;
    pointer-events: none;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff0000' stroke='%23000000' stroke-width='1.5' d='M5.5 2l12 12.5-4 1 5 7-3 1.5-5-7-4 3.5z'/%3E%3C/svg%3E");
    filter: drop-shadow(0 0 5px var(--neon-red));
    transition: transform 0.02s linear;
}
#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border: 1px solid var(--warning);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    display: none;
}
.accessibility-off #fake-cursor {
    display: none;
}
.accessibility-off {
    cursor: auto !important;
}
.accessibility-off * {
    cursor: auto !important;
}
html,
body,
* {
    cursor: none !important;
}
a {
    color: red;
    text-decoration: none;
}
body {
    background-color: var(--bg);
    color: var(--neon-red);
    font-family: 'Courier New', Courier, monospace;
    height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-image: linear-gradient(rgba(255, 0, 0, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 25px 25px;
    transition: filter 0.2s, background-color 0.5s;
}
#crt-overlay {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.5) 100%), repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.08) 1px, transparent 2px);
    z-index: 100001;
    pointer-events: none;
    animation: crt-flicker 0.1s infinite alternate;
}
@keyframes crt-flicker {
    from {
        opacity: 0.9;
    }
    to {
        opacity: 1;
    }
}
#tuning-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: 'Courier New', Courier, monospace;
}
#tuning-freq {
    font-size: 5rem;
    color: var(--neon-red);
    text-shadow: 0 0 15px var(--neon-red);
    letter-spacing: 5px;
    animation: text-flicker 0.1s infinite alternate;
}
#tuning-status {
    font-size: 1.2rem;
    color: var(--warning);
    margin-top: 10px;
    letter-spacing: 3px;
}
/* --- BOOT SCREEN --- */
#boot-screen {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}
#boot-screen a {
    color: red;
}
#boot-globe-canvas {
    width: 200px !important;
    height: 200px !important;
    margin-bottom: 20px;
}
.ps-text {
    letter-spacing: 5px;
    font-weight: bold;
    font-size: 1.2rem;
}
/* --- PS1 MEMORY CARDS --- */
.ps1-container {
    height: 100%;
    width: 100%;
    background: linear-gradient(180deg, var(--win-bg) 0%, #000 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    color: var(--ps-text);
}
.ps1-header-bar {
    width: 100%;
    border-bottom: 2px solid var(--neon-red);
    color: var(--neon-red);
    font-weight: bold;
    font-size: 1.1rem;
    padding-bottom: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    text-shadow: 0 0 10px var(--low-red);
}
.memory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    width: 100%;
}
.ps-slot {
    aspect-ratio: 1;
    border: 2px solid var(--low-red);
    background: rgba(255, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    cursor: pointer;
    position: relative;
}
.ps-slot:hover {
    border-color: var(--warning);
    background: rgba(255, 140, 0, 0.1);
    transform: scale(1.05);
}
.ps-slot.corrupted {
    animation: text-flicker 0.2s infinite;
    border-style: dashed;
}
.ps-slot.corrupted .slot-name {
    animation: text-flicker 0.1s infinite reverse;
}
/* --- The little pixels within the slots --- */
.slot-icon {
    width: 32px;
    height: 32px;
    background: var(--neon-red);
    margin-bottom: 5px;
    clip-path: polygon(0 20%, 20% 20%, 20% 0, 80% 0, 80% 20%, 100% 20%, 100% 80%, 80% 80%, 80% 100%, 20% 100%, 20% 80%, 0 80%);
}

.slot-name {
    font-size: 0.55rem;
    color: var(--warning);
    text-align: center;
    font-weight: bold;
}
.ps-description-box {
    margin-top: auto;
    border: 1px solid var(--low-red);
    background: rgba(20, 0, 0, 0.8);
    padding: 10px;
    font-size: 0.7rem;
    color: #ccc;
    line-height: 1.4;
    min-height: 50px;
}
/* --- This does not have firefox support yet, which is stupid, because I use firefox. But I'm also lazy --- */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}
::-webkit-scrollbar-track {
    background: #000000;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: var(--neon-red);
    border-radius: 0px;
    border: 2px solid #000000;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--low-red);
}
/* --- ANIMATIONS & SO MANY FX --- */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 5px var(--low-red);
    }
    50% {
        box-shadow: 0 0 20px var(--neon-red);
    }
    100% {
        box-shadow: 0 0 5px var(--low-red);
    }
}
@keyframes text-flicker {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}
@keyframes scan {
    0% {
        top: 0%;
    }
    100% {
        top: 100%;
    }
}
#fx-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
}
.glitch-flash {
    animation: flash-white 0.1s steps(2) infinite;
}
@keyframes flash-white {
    from {
        background: rgba(255, 0, 0, 0.2);
    }
    to {
        background: transparent;
    }
}
body.accessibility-friendly .pulse-glow,
body.accessibility-friendly .text-flicker,
body.accessibility-friendly .scan-line,
body.accessibility-friendly .ps-diamond,
body.accessibility-friendly #ar-container,
body.accessibility-friendly .corrupted,
body.accessibility-friendly #crt-overlay {
    animation: none !important;
    display: none !important;
}
body.accessibility-friendly .glitch-flash,
body.accessibility-friendly .corrupted {
    display: none !important;
}
#screensaver-overlay {
    position: fixed;
    inset: 0;
    background: black;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-red);
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 2s;
    pointer-events: none;
}
#themeCustomizerOverlay input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    margin: 7px 0;
    background: transparent;
}
#themeCustomizerOverlay input[type=range]:focus {
    outline: none;
}
#themeCustomizerOverlay input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: var(--low-red);
}
#themeCustomizerOverlay input[type=range]::-webkit-slider-thumb {
    height: 18px;
    width: 18px;
    background: var(--neon-red);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -7px;
    border: 1px solid black;
}
/* --- HEADER --- */
.top-header {
    display: grid;
    grid-template-columns: 120px 1fr 300px;
    border-bottom: 3px solid var(--neon-red);
    background: var(--bg);
    z-index: 100;
}
/* --- Icon Containers --- */
.icon-container {
    width: 120px;
    height: 120px;
    border-right: 3px solid var(--neon-red);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}
.icon-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.5) sepia(100%) hue-rotate(calc(var(--hue-shift, 0deg) - 50deg)) saturate(5);
    opacity: 0.8;
}
.banner-main {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.banner-title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin: 0;
    text-transform: uppercase;
    animation: text-flicker 5s infinite;
}
.nav-bar {
    display: flex;
    background: var(--low-red);
    gap: 2px;
    padding: 2px;
    height: 40px;
}
.nav-link,
.nav-ext {
    flex: 1;
    background: var(--bg);
    color: var(--neon-red);
    border: none;
    font-family: inherit;
    font-weight: bold;
    font-size: 0.65rem;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-link.active,
.nav-link:hover,
.nav-ext:hover {
    background: var(--neon-red);
    color: black;
}
.button-deck {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: rgba(40, 0, 0, 0.3);
    border-bottom: 1px solid var(--low-red);
    overflow-x: auto;
    white-space: nowrap;
}
/* --- oh my god whatever im not organizing all of these right now --- */
.site-btn {
    width: 88px;
    height: 31px;
    border: 1px solid var(--neon-red);
    background: black;
    font-size: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--neon-red);
    cursor: pointer;
    flex-shrink: 0;
}
.site-btn:hover {
    background: var(--neon-red);
    color: black;
}
/* --- MAIN VIEWPORT --- */
.main-frame {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    flex-grow: 1;
    gap: 10px;
    padding: 15px;
}
.panel {
    border: 1px solid var(--neon-red);
    background: var(--panel-bg);
    padding: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.panel-tag {
    position: absolute;
    top: -10px;
    left: 10px;
    background: var(--neon-red);
    color: black;
    font-size: 0.6rem;
    padding: 2px 6px;
    font-weight: bold;
}
.center-stage {
    border: 2px solid var(--neon-red);
    background: radial-gradient(circle, var(--center-stage-glow) 0%, #000 80%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: rgba(255, 0, 0, 0.3);
    top: 0;
    animation: scan 4s linear infinite;
    z-index: 5;
    pointer-events: none;
}
.view-content {
    display: none;
    height: 100%;
    width: 100%;
    overflow-y: auto;
}
.view-content.active {
    display: flex;
    flex-direction: column;
}
/* --- TERMINAL --- */
.terminal-log {
    font-size: 0.6rem;
    height: 80px;
    color: var(--warning);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}
.input-line {
    border-top: 1px solid var(--neon-red);
    padding-top: 10px;
    display: flex;
    align-items: center;
}
.input-line input {
    background: transparent;
    border: none;
    color: var(--warning);
    font-family: inherit;
    width: 100%;
    outline: none;
    font-size: 0.7rem;
}
#three-canvas,
#mindscape-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
/* --- PONG --- */
#pong-canvas {
    width: 100%;
    height: 100%;
    background-color: #000;
}
#pong-ui {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    font-size: 3rem;
    color: var(--neon-red);
    text-shadow: 0 0 10px var(--neon-red);
    display: flex;
    align-items: center;
}
#pong-message {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--warning);
}
/* --- AR WINDOW --- */
#ar-container {
    position: fixed;
    width: 200px;
    border: 2px solid var(--neon-red);
    background: var(--panel-bg);
    z-index: 1000;
    box-shadow: 0 0 15px var(--low-red);
    animation: ar-glow 3s infinite alternate;
    opacity: 0;
    transition: opacity 0.5s;
}
@keyframes ar-glow {
    from {
        box-shadow: 0 0 10px var(--low-red);
        border-color: var(--neon-red);
    }
    to {
        box-shadow: 0 0 25px var(--neon-red);
        border-color: var(--warning);
    }
}
@keyframes ar-float {
    from {
        transform: translateY(-5px);
    }
    to {
        transform: translateY(5px);
    }
}
#ar-header {
    padding: 5px;
    cursor: move;
    background: var(--low-red);
    color: var(--neon-red);
    font-weight: bold;
    font-size: 0.8rem;
    text-align: center;
}
#ar-sprite {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.2s ease-in-out;
}
#ar-sprite:hover {
    transform: scale(1.05);
}
#ar-status {
    font-size: 0.7rem;
    padding: 5px;
    text-align: center;
    color: var(--warning);
}
/* --- CODEC --- */
#codec-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    background-image: linear-gradient(rgba(0, 255, 0, 0.08) 1px, transparent 1px);
    background-size: 100% 3px;
    animation: codec-scan 0.3s linear infinite;
}
@keyframes codec-scan {
    from {
        background-position-y: 0px;
    }
    to {
        background-position-y: 3px;
    }
}
.codec-box {
    border: 2px solid var(--neon-red);
    background: var(--panel-bg);
    padding: 20px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    align-items: center;
}
#codec-portrait-box {
    width: 250px;
    height: 250px;
    border: 2px solid var(--low-red);
    position: relative;
    background: #000;
    overflow: hidden;
}
#codec-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: portrait-flicker 0.1s infinite alternate;
}
@keyframes portrait-flicker {
    from {
        opacity: 0.9;
    }
    to {
        opacity: 1;
    }
}
#codec-text-box {
    color: var(--warning);
    font-size: 1.2rem;
    line-height: 1.6;
    height: 250px;
    overflow-y: auto;
}
#codec-freq {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--neon-red);
    text-shadow: 0 0 5px var(--neon-red);
}
.track-select {
    cursor: pointer;
    padding: 2px 5px;
    transition: 0.2s;
}
.track-select:hover {
    background: var(--low-red);
    color: var(--warning);
}
#biosBody {
    color: #eee;
    font-size: 0.8rem;
    line-height: 1.5;
    min-height: 100px;
    max-height: 200px;
    overflow-y: auto;
}
