:root {
    --phosphor-main: #33ff00;
    --phosphor-dim: #26b300;
    --phosphor-dark: #0f3d0f;
    --bg-color: #0b0f0b;
    --scanline-color: rgba(18, 16, 16, 0.5);
    --glass-color: rgba(30, 255, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #000;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.4) 30%, rgba(0, 0, 0, 0.9) 90%), url('assets/vault_door.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--phosphor-main);
    font-family: 'VT323', monospace;
    height: 100vh;
    overflow: hidden;
    font-size: 20px;
    text-shadow: 0 0 4px var(--phosphor-dim), 0 0 2px var(--phosphor-main);
    /* BALANCED CENTERING */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* SIDE PANELS - Must use fixed position to not interfere with grid */
.side-panel {
    position: absolute !important;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    /* Slightly narrower for internal fit */
    height: 70%;
    z-index: 50;
    opacity: 0.9;
    font-size: 0.65rem;
    pointer-events: none;
    color: var(--phosphor-main);
    display: flex;
    flex-direction: column;

    /* Integrated on glass look */
    background: rgba(13, 18, 13, 0.9);
    border: 1px solid var(--phosphor-dim);
    padding: 10px;
    border-radius: 5px;

    /* CRT texture for side panels */
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.1),
            rgba(0, 0, 0, 0.1) 1px,
            transparent 1px,
            transparent 3px),
        rgba(13, 18, 13, 0.9);

    /* Phosphor Glow */
    text-shadow: 0 0 4px var(--phosphor-dim), 0 0 2px var(--phosphor-main);
}

.side-panel-left {
    left: 20px;
}

.side-panel-right {
    right: 20px;
}

/* CRT EFFECTS */
/* CRT EFFECTS - Container Scoped */
/* GLOBAL CRT EFFECTS - SCANLINES/GLOW CLASS */
.crt-effect {
    position: relative;
    overflow: hidden;
}

.crt-effect::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 3px);
    pointer-events: none;
    z-index: 50;
    opacity: 0.3;
}

.crt-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    /* Handled by .crt-effect or explicitly */
    pointer-events: none !important;
    z-index: 20000;
}

.crt-layer::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* Scanline / Refresh Line */
.crt-layer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: rgba(51, 255, 0, 0.4);
    box-shadow: 0 0 10px rgba(51, 255, 0, 0.4);
    animation: scanline 6s linear infinite;
    opacity: 0.3;
    pointer-events: none;
}

@keyframes scanline {
    0% {
        top: -5%;
    }

    100% {
        top: 105%;
    }
}

.glitch-active {
    animation: noise 0.2s steps(2) infinite;
}

@keyframes noise {
    0% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-5px, 0);
    }

    20% {
        transform: translate(5px, 0);
    }

    30% {
        transform: translate(-5px, 0);
    }

    40% {
        transform: translate(5px, 0);
    }

    50% {
        transform: translate(-5px, 0);
    }

    60% {
        transform: translate(5px, 0);
    }

    70% {
        transform: translate(-5px, 0);
    }

    80% {
        transform: translate(5px, 0);
    }

    90% {
        transform: translate(-5px, 0);
    }

    100% {
        transform: translate(0, 0);
    }
}

.screen-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* CURVED GLASS FINISH - Stronger Vignette */
    background: radial-gradient(circle at 50% 50%,
            transparent 0%,
            rgba(0, 0, 0, 0.1) 60%,
            rgba(0, 0, 0, 0.6) 80%,
            rgba(0, 0, 0, 0.9) 100%);

    pointer-events: none;
    z-index: 20000;
    border-radius: inherit;

    /* BLOOM & GLOSS */
    box-shadow:
        inset 0 0 100px rgba(0, 0, 0, 1),
        inset 20px 20px 50px rgba(255, 255, 255, 0.03);
    /* Subtle top-left glare */
}

/* UTILS */
.screen {
    /* Absolute positioning to fill the .monitor-bezel parent */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* INTERNAL PADDING - Safe area from bezel edges */
    padding: 30px;

    /* Centering content within the screen div */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    transition: opacity 0.5s ease-in-out;
    pointer-events: none;

    /* Base Z-Index */
    z-index: 10;

    /* Ensure rounded corners match parent */
    border-radius: inherit;
    overflow: hidden;
    /* Clip content to bezel */
}

.screen.active {
    pointer-events: auto;
}

.hidden {
    display: none !important;
    opacity: 0;
}

.active {
    display: flex !important;
    opacity: 1;
}

.blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

/* BOOT SCREEN */
#boot-screen {
    background: #0d120d;
    /* Unified Phosphor Black */
    z-index: 10000;
    padding: 20px;
    /* Add internal padding inside the glass */
}

.boot-container {
    width: 90%;
    height: 90%;
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: left;
}

#boot-text {
    white-space: pre-wrap;
    word-wrap: break-word;
}

#boot-cursor {
    display: inline;
}

/* TEST PATTERN BACKGROUND */
.test-pattern-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(90deg,
            #111 0px,
            #111 20px,
            #0a0a0a 20px,
            #0a0a0a 40px),
        repeating-linear-gradient(0deg,
            transparent 0px,
            transparent 2px,
            rgba(0, 0, 0, 0.2) 2px,
            rgba(0, 0, 0, 0.2) 4px);
    background-blend-mode: overlay;
    z-index: -1;
    opacity: 0.5;
}

/* LOADING PROGRESS */
.progress-container {
    width: 300px;
    height: 20px;
    border: 2px solid var(--phosphor-main);
    margin: 20px auto;
    padding: 2px;
    box-shadow: 0 0 10px var(--phosphor-main);
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--phosphor-main);
    transition: width 0.1s linear;
}

/* SCREEN FLICKER EFFECT */
@keyframes flicker {
    0% {
        opacity: 1;
    }

    3% {
        opacity: 0.9;
    }

    6% {
        opacity: 1;
    }

    7% {
        opacity: 0.85;
    }

    9% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

.flicker {
    animation: flicker 0.15s ease-in-out;
}

/* LOADING SCREEN */
#loading-screen {
    height: 100%;
    /* Fill parent .monitor-bezel */
    max-width: none;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 9999;
    pointer-events: auto !important;
}

.pipboy-image-container {
    width: 200px;
    height: 200px;
    margin-bottom: 1.5rem;
    border: 2px solid var(--phosphor-main);
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 20px var(--phosphor-dim);
}

.pipboy-cartoon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Already cartoonized, just blending it */
    mix-blend-mode: normal;
    filter: brightness(1.2) contrast(1.3) sepia(0.2);
    /* Enhanced contrast to match terminal */
}

.loading-text h1 {
    font-size: 3rem;
    margin: 1rem 0;
    letter-spacing: 0.2rem;
}

/* Force press-start to be clickable */
.press-start {
    margin-top: 2rem;
    font-size: 1.5rem;
    cursor: pointer;
    border: 2px solid var(--phosphor-main);
    /* Thicker border */
    padding: 1rem 3rem;
    background: rgba(0, 0, 0, 0.8);
    color: var(--phosphor-main);
    position: relative;
    z-index: 99999;
    /* Critical: Above everything */
    box-shadow: 0 0 15px var(--phosphor-dim);
    transition: all 0.2s ease;
    animation: pulseButton 2s infinite;
}

.press-start:hover {
    background: var(--phosphor-main);
    color: #000;
    box-shadow: 0 0 25px var(--phosphor-main);
}

@keyframes pulseButton {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}

/* 3D MODELED MONITOR FRAME */
.monitor-bezel {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 82vh;
    min-height: 650px;
    margin: 0 auto;

    /* 3D MOLDED PLASTIC - Using multiple backgrounds for lighting */
    background:
        linear-gradient(135deg, #3d453d 0%, #2f352f 50%, #1a1e1a 100%);

    padding: 0;
    border-radius: 50px;

    /* THE OUTER FRAME BEZEL */
    border: 12px solid #1a1e1a;

    /* 3D LIGHTING & INNER WELL */
    box-shadow:
        /* Corner highlights for molded plastic feel */
        inset 4px 4px 10px rgba(255, 255, 255, 0.15),
        inset -4px -4px 10px rgba(0, 0, 0, 0.8),
        /* Outer shadow on world */
        0 30px 60px rgba(0, 0, 0, 0.6),
        /* The thick 3D bevel using massive border-shadow */
        inset 0 0 0 40px #2f352f,
        /* The transition to screen - REDUCED for better corner fit */
        inset 0 0 0 25px #000,
        /* Screen depth - REDUCED */
        inset 0 0 50px 25px rgba(0, 0, 0, 1);

    overflow: hidden;
}

/* HARDWARE DETAILS - RobCo Identity */
.monitor-bezel::before {
    content: "QUANDTCO INDUSTRIES";
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.6rem;
    font-family: sans-serif;
    font-weight: bold;
    letter-spacing: 2px;
    z-index: 200;
    opacity: 0.8;

    /* SPECULAR HIGHLIGHT - Top edge of molded plastic */
    box-shadow: 0 -8px 10px rgba(255, 255, 255, 0.1);
}

/* POWER LED & DETAILS */
.monitor-bezel::after {
    content: "";
    position: absolute;
    bottom: 25px;
    right: 50px;
    width: 8px;
    height: 8px;
    background: #ff4400;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff4400, inset 0 0 2px #000;
    z-index: 200;
    border: 1px solid #111;
}

/* CRT SCANLINES - SUBTLE & CLEAN */
.crt-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle 3px stripes */
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 3px);
    pointer-events: none !important;
    z-index: 20000;
    /* FRONT LAYER */
    opacity: 0.4;
    /* Slightly more prominent */
}

/* Moving interference bar */
.crt-layer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: rgba(51, 255, 0, 0.1);
    box-shadow: 0 0 30px rgba(51, 255, 0, 0.2);
    animation: scanline 10s linear infinite;
    opacity: 0.2;
    pointer-events: none;
}

.screen-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%,
            transparent 0%,
            rgba(0, 0, 0, 0.1) 60%,
            rgba(0, 0, 0, 0.6) 80%,
            rgba(0, 0, 0, 0.9) 100%);
    pointer-events: none;
    z-index: 20000;
    border-radius: inherit;
    box-shadow:
        inset 0 0 60px rgba(0, 0, 0, 0.9),
        inset 10px 10px 30px rgba(255, 255, 255, 0.02);
}

/* UTILS - SCREEN GLASS */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* INTERNAL PADDING - Safe area from deep bezel well */
    padding: 60px;
    /* Increased to avoid shadow overlap */

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    transition: opacity 0.5s ease-in-out;
    pointer-events: none;

    /* Base Z-Index */
    z-index: 10;
    background: #0d120d;
    /* Dark screen glass color */
}

/* Inner container for the actual screen content */
#terminal-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Ensure sidebars can be absolute relative to this */
}

/* THE FIX: Constrain all main terminal sub-elements to the center */
.terminal-header,
.pipboy-tabs,
#terminal-content,
.terminal-footer {
    width: 100%;
    max-width: 750px;
    /* Leave ~200px on each side for panels */
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* TERMINAL HEADER */
.terminal-header {
    border-bottom: 2px solid var(--phosphor-main);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    height: 30px;
}

/* TERMINAL TABS */
.pipboy-tabs {
    display: flex;
    gap: 1rem;
    justify-content: space-around;
    border-bottom: 1px solid var(--phosphor-dim);
    margin-bottom: 10px;
    padding-bottom: 5px;
    flex-shrink: 0;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--phosphor-dim);
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    cursor: pointer;
    text-shadow: 0 0 2px var(--phosphor-dim);
    position: relative;
    padding: 5px 10px;
}

.tab-btn:hover {
    color: var(--phosphor-main);
    text-shadow: 0 0 8px var(--phosphor-main);
}

.tab-btn.active {
    color: var(--phosphor-main);
    border-bottom: 3px solid var(--phosphor-main);
    text-shadow: 0 0 8px var(--phosphor-main);
}

/* TERMINAL CONTENT AREA */
.holotape-selector {
    display: flex;
    gap: 15px;
}

.holo-btn {
    background: transparent;
    border: none;
    color: var(--phosphor-dim);
    font-family: inherit;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
    font-size: 0.9rem;
    padding: 2px 8px;
    border: 1px solid transparent;
}

.holo-btn:hover {
    color: var(--phosphor-main);
}

.holo-btn.active {
    color: #000;
    background: var(--phosphor-main);
    box-shadow: 0 0 10px var(--phosphor-main);
}

#terminal-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem 0;
    margin-bottom: 1rem;

    /* Scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: var(--phosphor-main) #000;
}

#terminal-content::-webkit-scrollbar {
    width: 6px;
}

#terminal-content::-webkit-scrollbar-track {
    background: #000;
}

#terminal-content::-webkit-scrollbar-thumb {
    background: var(--phosphor-main);
    border-radius: 3px;
}

/* TERMINAL FOOTER */
.terminal-footer {
    border-top: 2px solid var(--phosphor-main);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.footer-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.footer-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 5px;
}

.footer-logo {
    text-align: center;
    font-size: 0.8rem;
    color: var(--phosphor-dim);
    margin-top: 0.5rem;
    letter-spacing: 2px;
}

.download-btn,
.contact-btn {
    background: transparent;
    border: 1px solid var(--phosphor-main);
    color: var(--phosphor-main);
    padding: 5px 15px;
    font-family: 'VT323', monospace;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
    font-size: 1rem;
}

.download-btn:hover,
.contact-btn:hover {
    background: var(--phosphor-main);
    color: #000;
    box-shadow: 0 0 10px var(--phosphor-main);
}

/* CONTENT SECTIONS ANIMATION */
.stats-container,
.perks-container,
.data-container,
.radio-container {
    animation: fadeIn 0.3s forwards;
    width: 100%;
    max-width: 100%;
    /* Force full width usage */
    box-sizing: border-box;
    /* Ensure padding doesn't overflow */
}

/* Ensure grids expand */
.skill-grid {
    width: 100%;
    display: grid;
    /* Increase min size slightly but ensure auto-fill uses space */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.radio-player {
    width: 100%;
    max-width: 800px;
    /* Radio looks better with SOME limit, but wider than before */
    margin: 0 auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PERKS GRID */
.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.perk-card {
    border: 1px solid var(--phosphor-dark);
    padding: 1rem;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.perk-card:hover {
    background: rgba(51, 255, 0, 0.1);
    border-color: var(--phosphor-main);
    box-shadow: 0 0 10px var(--phosphor-dim);
}

.perk-icon {
    width: 64px;
    height: 64px;
    background-image: url('assets/perks.png');
    background-repeat: no-repeat;
    background-size: 300% 300%;
    image-rendering: pixelated;
    /* Crisp retro look */
    border: 1px solid var(--phosphor-dim);
    margin-bottom: 0.5rem;
}

/* Sprite Mappings */
.icon-cloud {
    background-position: 0% 0%;
}

.icon-systems {
    background-position: 50% 0%;
}

.icon-automate {
    background-position: 100% 0%;
}

.icon-security {
    background-position: 0% 50%;
}

.icon-network {
    background-position: 50% 50%;
}

.icon-support {
    background-position: 100% 50%;
}

.icon-repair {
    background-position: 0% 100%;
}

.icon-charisma {
    background-position: 50% 100%;
}

.icon-luck {
    background-position: 100% 100%;
}

/* RADIO PLAYER STYLES */
.radio-player {
    border: 2px solid var(--phosphor-dim);
    padding: 20px;
    background: rgba(0, 20, 0, 0.3);
    border-radius: 10px;
    margin-top: 10px;
}

.radio-display {
    background: #001100;
    border: 2px inset var(--phosphor-dark);
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.radio-dial {
    width: 100%;
    height: 4px;
    background: var(--phosphor-dark);
    position: relative;
}

.dial-marker {
    width: 2px;
    height: 20px;
    background: var(--phosphor-main);
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 5px var(--phosphor-main);
    transition: left 0.5s ease-out;
}

.frequency-display {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 0.8rem;
    color: var(--phosphor-dim);
}

.radio-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.radio-btn {
    background: transparent;
    border: 1px solid var(--phosphor-main);
    color: var(--phosphor-main);
    padding: 10px 25px;
    /* Wider buttons */
    font-family: inherit;
    cursor: pointer;
    font-size: 1.4rem;
    /* Larger icons */
    min-width: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.radio-btn:hover {
    background: var(--phosphor-main);
    color: #000;
    box-shadow: 0 0 15px var(--phosphor-main);
}

.radio-play {
    font-size: 1.8rem;
    padding: 10px 40px;
}

.now-playing {
    text-align: center;
    padding: 10px;
    border-top: 1px dashed var(--phosphor-dark);
    margin-top: 15px;
}

.np-label {
    color: var(--phosphor-dim);
    margin-right: 10px;
}

.np-track {
    color: var(--phosphor-main);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        text-shadow: 0 0 5px var(--phosphor-main);
    }

    50% {
        text-shadow: 0 0 20px var(--phosphor-main);
    }
}

.radio-stations {
    margin-top: 15px;
    border-top: 1px solid var(--phosphor-dark);
    padding-top: 15px;
}

.station {
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.station:hover {
    background: rgba(51, 255, 0, 0.1);
    border-left-color: var(--phosphor-main);
}

.station.active {
    background: rgba(51, 255, 0, 0.2);
    border-left-color: var(--phosphor-main);
}

/* MOBILE STYLES */
@media (max-width: 1200px) {
    .side-panel {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .monitor-bezel {
        width: 95%;
        height: 90vh;
        padding: 10px;
        /* Minimal bezel padding on mobile */
    }

    .screen {
        padding: 10px;
    }

    /* MOBILE OPTIMIZED CRT EFFECTS */
    .crt-layer,
    .screen-glare {
        display: block;
        /* Re-enable for mobile */
    }

    .crt-layer {
        opacity: 0.25;
        /* Softer on mobile */
        background: repeating-linear-gradient(0deg,
                rgba(0, 0, 0, 0.25),
                rgba(0, 0, 0, 0.25) 2px,
                transparent 2px,
                transparent 5px);
        /* Thicker scanlines to avoid moire */
    }

    #music-control {
        top: 35px !important;
        right: 35px !important;
        padding: 5px 8px !important;
        font-size: 0.8rem !important;
    }

    .pipboy-tabs {
        gap: 5px;
        flex-wrap: wrap;
    }

    .tab-btn {
        font-size: 1rem;
        padding: 5px 10px;
    }

    .footer-actions {
        flex-direction: column;
        gap: 10px;
    }
}

/* PRINT STYLESHEET */
@media print {
    body {
        background: #fff;
        color: #000;
        display: block;
        height: auto;
        overflow: visible;
    }

    .monitor-bezel,
    #terminal-screen,
    .screen {
        border: none;
        box-shadow: none;
        background: #fff;
        color: #000;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        position: static;
        transform: none;
    }

    /* Hide UI elements */
    .pipboy-tabs,
    .terminal-header,
    .terminal-footer,
    .scanline,
    .crt-layer,
    .screen-glare,
    .side-panel,
    .radio-player,
    #boot-screen,
    #loading-screen,
    #test-pattern,
    #contact-overlay {
        display: none !important;
    }

    /* Ensure content is strictly black on white */
    #terminal-content {
        color: #000 !important;
        text-shadow: none !important;
        overflow: visible;
    }

    a {
        text-decoration: none;
        color: #000;
    }

    h2,
    h3 {
        color: #000;
        border-bottom: 1px solid #000;
    }
}