/* Russian Old School Gaming Styles */

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

:root {
    --bg-dark: #1a1a2e;
    --bg-darker: #0f0f23;
    --white: #ffffff;
    --blue: #0066cc;
    --red: #cc0000;
    --gold: #FFD700;
    --green: #00ff00;
    --gray: #c0c0c0;
    --dark-gray: #808080;
}

body {
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 0, 0.1) 1px, transparent 1px),
        linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    background-size: 50px 50px, 30px 30px, 100% 100%;
    font-family: 'VT323', monospace;
    color: var(--white);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Hide main content during boot */
body.booting .container {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.booting .counter {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.booting .marquee {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Win98-style noise texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="noise"><feTurbulence baseFrequency="0.9" numOctaves="4" result="noise"/><feColorMatrix type="saturate" values="0"/></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.1"/></svg>');
    pointer-events: none;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Russian flag stripes as dividers */
.russian-stripe {
    height: 3px;
    background: linear-gradient(to right, var(--white) 33%, var(--blue) 33%, var(--blue) 66%, var(--red) 66%);
    margin: 20px 0;
    border-radius: 2px;
}

/* ASCII Art */
.ascii-art {
    font-family: 'Courier New', monospace;
    color: var(--green);
    font-size: 0.8rem;
    text-align: center;
    white-space: pre;
    line-height: 1.1;
    margin: 20px 0;
    letter-spacing: 0.5px;
}

/* Footer Text */
.footer-text {
    font-family: 'Press Start 2P', monospace;
    color: var(--green);
    font-size: 0.5rem;
    text-align: center;
    margin: 20px 0;
    letter-spacing: 1px;
    line-height: 1.4;
}

/* Chinese text in footer */
.chinese-text {
    font-size: 0.7rem;
}

/* Glitch effect for SISKABLADE */
.glitch {
    font-family: 'Press Start 2P', monospace;
    font-size: 3.5rem;
    color: var(--red);
    text-shadow: 
        3px 0 var(--blue),
        -3px 0 var(--white),
        0 3px var(--gold),
        0 -3px var(--red);
    animation: glitch 0.4s infinite;
    text-align: center;
    margin: 30px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.glitch:hover {
    animation: glitch 0.1s infinite;
    transform: scale(1.05);
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

.subtitle {
    font-size: 1.3rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Win98-style windows */
.window {
    background: var(--gray);
    border: 2px outset var(--gray);
    border-radius: 0;
    margin: 20px 0;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    overflow: hidden; /* Hide taskbar overflow */
}

.window-header {
    background: linear-gradient(90deg, #000080, #0000ff);
    color: var(--white);
    padding: 5px 10px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.window-content {
    padding: 20px;
    background: var(--white);
    color: var(--bg-dark);
    min-height: 150px;
}


.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.info-card {
    background: var(--white);
    border: 2px inset var(--gray);
    padding: 15px;
    color: var(--bg-dark);
}

.card-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    color: var(--red);
    margin-bottom: 15px;
    text-align: center;
}

.card-content {
    font-size: 1.1rem;
    line-height: 1.6;
}

.level-badge {
    display: inline-block;
    background: linear-gradient(45deg, var(--red), var(--blue));
    color: var(--white);
    padding: 8px 16px;
    border-radius: 0;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    margin: 0 0 10px 0;
    border: 2px solid var(--bg-dark);
}

/* Vodka meter instead of progress bar */
.vodka-meter {
    width: 100%;
    height: 20px;
    background: var(--bg-dark);
    border: 2px inset var(--gray);
    position: relative;
    margin: 15px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.vodka-meter:hover {
    border: 2px outset var(--gray);
    background: #2a2a4e;
}

.vodka-meter:active {
    cursor: grabbing;
    background: #3a3a5e;
}

.vodka-meter:active .vodka-fill::after {
    animation: beerDrag 0.3s infinite;
}

@keyframes beerDrag {
    0%, 100% { transform: translateY(0) scale(1.2); }
    50% { transform: translateY(-2px) scale(1.3); }
}

.vodka-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red), var(--gold));
    width: 0%;
    position: relative;
    transition: width 0.2s ease;
}

.vodka-fill.dragging {
    transition: none;
}

.vodka-fill::after {
    content: '🍺';
    position: absolute;
    right: -10px;
    top: -5px;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.vodka-meter:hover .vodka-fill::after {
    animation: beerBounce 0.6s infinite;
}

@keyframes beerBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.1); }
}


/* Device Manager Window */
.device-manager-window {
    width: 100%;
    height: 100vh;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.device-manager-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px); /* Вычитаем высоту заголовка окна */
    background: var(--white);
    border: 2px inset var(--gray);
    margin: 0;
}

/* Menu Bar */
.menu-bar {
    display: flex;
    background: var(--gray);
    border-bottom: 1px solid var(--dark-gray);
    padding: 2px 0;
}

.menu-item {
    padding: 4px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--bg-dark);
    font-family: 'VT323', monospace;
    border-right: 1px solid var(--dark-gray);
}

.menu-item:hover {
    background: var(--dark-gray);
}

/* Toolbar */
.toolbar {
    display: flex;
    background: var(--gray);
    border-bottom: 1px solid var(--dark-gray);
    padding: 4px;
    gap: 2px;
}

.toolbar-btn {
    width: 24px;
    height: 24px;
    background: var(--gray);
    border: 1px outset var(--gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--bg-dark);
}

.toolbar-btn:hover {
    border: 1px inset var(--gray);
    background: var(--dark-gray);
}

.toolbar-btn:active {
    border: 1px inset var(--gray);
    background: var(--dark-gray);
}

/* Device Tree Container */
.device-tree-container {
    flex: 1;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--dark-gray);
    margin: 2px;
}

/* Custom Scrollbar */
.device-tree-container::-webkit-scrollbar {
    width: 16px;
}

.device-tree-container::-webkit-scrollbar-track {
    background: var(--gray);
    border: 1px solid var(--dark-gray);
}

.device-tree-container::-webkit-scrollbar-thumb {
    background: var(--dark-gray);
    border: 1px outset var(--dark-gray);
    border-radius: 0;
}

.device-tree-container::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.device-tree-container::-webkit-scrollbar-corner {
    background: var(--gray);
}

/* Device Tree */
.device-tree {
    padding: 4px;
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
}

.device-category {
    margin-bottom: 2px;
}

.category-header {
    display: flex;
    align-items: center;
    padding: 2px 4px;
    cursor: pointer;
    background: var(--white);
    border: 1px solid transparent;
}

.category-header:hover {
    background: #f0f0f0;
    border: 1px solid var(--gray);
}

.expand-icon {
    width: 16px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--bg-dark);
}

.device-icon {
    width: 20px;
    text-align: center;
    margin: 0 4px;
    font-size: 0.9rem;
}

.category-name {
    flex: 1;
    color: var(--bg-dark);
    font-weight: bold;
}

.category-content {
    margin-left: 20px;
    border-left: 1px solid var(--gray);
    padding-left: 8px;
}

/* Nested categories */
.device-category .device-category {
    margin-left: 0;
    border-left: none;
    padding-left: 0;
}

.device-category .device-category .category-content {
    margin-left: 20px;
    border-left: 1px solid var(--gray);
    padding-left: 8px;
}

.device-item {
    display: flex;
    align-items: center;
    padding: 1px 4px;
    cursor: pointer;
    background: var(--white);
    border: 1px solid transparent;
    margin-bottom: 1px;
}

.device-item:hover {
    background: #f0f0f0;
    border: 1px solid var(--gray);
}

.device-item.selected {
    background: #0078d4;
    color: var(--white);
    border: 1px solid #005a9e;
}

.device-item.selected .device-status {
    color: var(--white);
}

.device-name {
    flex: 1;
    color: var(--bg-dark);
    margin-left: 4px;
}

.device-status {
    color: var(--green);
    font-weight: bold;
    font-size: 0.8rem;
}

/* Status Bar */
.status-bar {
    background: var(--gray);
    border-top: 1px solid var(--dark-gray);
    padding: 2px 8px;
    font-size: 0.8rem;
    color: var(--bg-dark);
    font-family: 'VT323', monospace;
}

/* System Button */
.system-btn {
    background: var(--gray);
    border: 2px outset var(--gray);
    color: var(--bg-dark);
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    font-family: 'VT323', monospace;
}

.system-btn:hover {
    border: 2px inset var(--gray);
    background: var(--dark-gray);
}

.system-btn:active {
    border: 2px inset var(--gray);
    background: var(--dark-gray);
}

/* Close Button */
.close-btn {
    cursor: pointer;
    padding: 2px 6px;
    background: var(--gray);
    border: 1px outset var(--gray);
    color: var(--bg-dark);
    font-size: 0.8rem;
    font-family: 'VT323', monospace;
}

.close-btn:hover {
    background: var(--red);
    color: var(--white);
    border: 1px inset var(--red);
}

.current-track-info {
    text-align: center;
    margin-bottom: 15px;
    color: var(--bg-dark);
}

.track-info {
    color: var(--bg-dark);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
}

.time-display {
    text-align: center;
    font-size: 0.9rem;
    color: var(--bg-dark);
    margin: 10px 0;
    font-family: 'VT323', monospace;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.control-btn {
    background: var(--gray);
    border: 2px outset var(--gray);
    color: var(--bg-dark);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    font-family: 'VT323', monospace;
}

.control-btn:hover {
    border: 2px inset var(--gray);
    background: var(--dark-gray);
}

.control-btn:active {
    border: 2px inset var(--gray);
    transform: scale(0.95);
}

.volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.volume-slider {
    width: 150px;
    height: 20px;
    background: var(--bg-dark);
    border: 2px inset var(--gray);
    position: relative;
}

.volume-fill {
    height: 100%;
    background: var(--green);
    width: 70%;
    position: relative;
}

.volume-fill::after {
    content: '🐻';
    position: absolute;
    right: -8px;
    top: -2px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

/* Mute button */
.mute-btn {
    background: var(--gray);
    border: 2px outset var(--gray);
    color: var(--bg-dark);
    padding: 4px 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: 'VT323', monospace;
    margin-right: 8px;
}

.mute-btn:hover {
    border: 2px inset var(--gray);
    background: var(--dark-gray);
}

.mute-btn.muted {
    background: var(--red);
    color: var(--white);
    border: 2px inset var(--red);
}

/* Volume slider interaction */
.volume-slider {
    cursor: pointer;
    position: relative;
    user-select: none;
}

.volume-slider:hover .volume-fill::after {
    animation: bearDrag 0.3s infinite;
}

.volume-slider:active {
    cursor: grabbing;
}

.volume-slider:active .volume-fill::after {
    animation: bearDrag 0.3s infinite;
}

@keyframes bearDrag {
    0%, 100% { transform: translateY(0) scale(1.2); }
    50% { transform: translateY(-2px) scale(1.3); }
}

/* Steam link */
.steam-link {
    display: inline-block;
    background: linear-gradient(45deg, #1b2838, #66c0f4);
    color: var(--white);
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 0;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    margin: 15px 0;
    transition: all 0.3s ease;
    border: 2px outset #66c0f4;
}

.steam-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 192, 244, 0.4);
    border: 2px inset #66c0f4;
}


/* Guestbook quotes - Win98 style like Device Manager */
.guestbook {
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    padding: 0;
    margin: 20px 0;
    color: var(--bg-dark);
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.guestbook:hover {
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    transform: none;
}

/* Guestbook title in Win98 style like Device Manager */
.guestbook .card-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    color: #ffffff;
    margin: 0;
    padding: 5px 10px;
    text-align: center;
    background: linear-gradient(90deg, #000080, #0000ff);
    border-bottom: 1px solid #999;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    position: relative;
    z-index: 2;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.guestbook .card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, #ffffff, transparent);
}

.guestbook-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    margin: 2px;
    border: 1px solid #999;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.2);
}

.quotes-container {
    min-height: 200px;
    transition: all 0.3s ease;
    padding: 15px;
    background: #ffffff;
}

.quote {
    font-style: italic;
    margin: 8px 0;
    padding: 12px;
    background: #f0f0f0;
    border: 1px outset #c0c0c0;
    border-left: 3px solid #0078d4;
    border-radius: 0;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
    position: relative;
    box-shadow: inset 1px 1px 1px rgba(255,255,255,0.5);
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

.quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, #ffffff, transparent);
}

.quote:nth-child(1) { animation-delay: 0.1s; }
.quote:nth-child(2) { animation-delay: 0.2s; }
.quote:nth-child(3) { animation-delay: 0.3s; }
.quote:nth-child(4) { animation-delay: 0.4s; }

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

.quote:hover {
    background: #e8f4fd;
    border: 1px inset #c0c0c0;
    transform: translateX(3px);
    box-shadow: 
        inset 1px 1px 1px rgba(255,255,255,0.7),
        2px 2px 4px rgba(0,0,0,0.1);
    border-left: 3px solid #106ebe;
}

/* Manual control indicator */
.manual-control-info {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    border: 1px solid var(--dark-gray);
    border-radius: 0;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.scroll-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
}

.scroll-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.scroll-dot {
    width: 16px;
    height: 16px;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.scroll-dot:hover {
    background: #a0a0a0;
    border: 2px inset #a0a0a0;
    transform: scale(1.15);
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.scroll-dot:active {
    border: 2px inset #a0a0a0;
    transform: scale(1.05);
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.3);
}

.scroll-dot.active {
    background: #0078d4;
    border: 2px inset #0078d4;
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.4);
    transform: scale(1.1);
}

.scroll-dot.active::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: #66b3ff;
    border: 1px solid #ffffff;
    box-shadow: inset 1px 1px 1px rgba(255,255,255,0.5);
}

.scroll-text {
    font-family: 'VT323', monospace;
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    font-style: italic;
}

/* Counter */
.counter {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--white);
    border: 2px inset var(--gray);
    padding: 12px 15px;
    color: var(--bg-dark);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    z-index: 100;
    min-width: 220px;
    line-height: 1.4;
}

/* Marquee */
.marquee {
    background: var(--red);
    color: var(--white);
    padding: 7px 0;
    overflow: hidden;
    white-space: nowrap;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee-content .soviet-symbol {
    font-size: 1.2rem;
    vertical-align: middle;
    margin: 0 2px;
}

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* Russian elements */
.bear-icon {
    font-size: 2rem;
    margin: 0 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.matryoshka {
    font-size: 1.5rem;
    margin: 0 5px;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Gaming Stats Window */
.gaming-stats-window {
    width: 100%;
    max-width: 400px;
    max-height: 380px;
    display: flex;
    flex-direction: column;
}

.gaming-stats-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--white);
    color: var(--bg-dark);
    box-sizing: border-box;
}

/* System Window with Device Manager */
.system-window {
    width: 100%;
    max-width: 400px;
    max-height: 380px;
    display: flex;
    flex-direction: column;
}

.system-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: var(--white);
    color: var(--bg-dark);
    box-sizing: border-box;
}

/* Win98 Scrollbar for Gaming Stats */
.gaming-stats-content::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

.gaming-stats-content::-webkit-scrollbar-track {
    background: var(--gray);
    border: 1px solid var(--dark-gray);
    border-radius: 0;
}

.gaming-stats-content::-webkit-scrollbar-thumb {
    background: var(--dark-gray);
    border: 1px outset var(--dark-gray);
    border-radius: 0;
    min-height: 20px;
}

.gaming-stats-content::-webkit-scrollbar-thumb:hover {
    background: #666;
    border: 1px inset var(--dark-gray);
}

.gaming-stats-content::-webkit-scrollbar-thumb:active {
    background: #555;
    border: 1px inset var(--dark-gray);
}

.gaming-stats-content::-webkit-scrollbar-corner {
    background: var(--gray);
    border: 1px solid var(--dark-gray);
}

/* Win98 Scrollbar for System Window */
.system-content::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

.system-content::-webkit-scrollbar-track {
    background: var(--gray);
    border: 1px solid var(--dark-gray);
    border-radius: 0;
}

.system-content::-webkit-scrollbar-thumb {
    background: var(--dark-gray);
    border: 1px outset var(--dark-gray);
    border-radius: 0;
    min-height: 20px;
}

.system-content::-webkit-scrollbar-thumb:hover {
    background: #666;
    border: 1px inset var(--dark-gray);
}

.system-content::-webkit-scrollbar-thumb:active {
    background: #555;
    border: 1px inset var(--dark-gray);
}

.system-content::-webkit-scrollbar-corner {
    background: var(--gray);
    border: 1px solid var(--dark-gray);
}

/* Main content area for device manager */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--white);
}

.device-tree-container {
    flex: 1;
    overflow-y: auto;
    background: var(--white);
}

/* Custom Scrollbar for Device Tree */
.device-tree-container::-webkit-scrollbar {
    width: 16px;
}

.device-tree-container::-webkit-scrollbar-track {
    background: var(--gray);
    border: 1px solid var(--dark-gray);
}

.device-tree-container::-webkit-scrollbar-thumb {
    background: var(--dark-gray);
    border: 1px outset var(--dark-gray);
    border-radius: 0;
}

.device-tree-container::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.device-tree-container::-webkit-scrollbar-corner {
    background: var(--gray);
}

/* Device Tree */
.device-tree {
    padding: 0;
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
}

/* Device Manager Styles for System Window */
.menu-bar {
    display: flex;
    background: var(--gray);
    border-bottom: 1px solid var(--dark-gray);
    padding: 0;
    margin: 0;
}

.menu-item {
    padding: 4px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--bg-dark);
    font-family: 'VT323', monospace;
    border-right: 1px solid var(--dark-gray);
    position: relative;
}

.menu-item:hover {
    background: var(--dark-gray);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--dark-gray);
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    z-index: 10000;
    min-width: 200px;
    display: none;
}

.menu-option {
    padding: 4px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--bg-dark);
    font-family: 'VT323', monospace;
    border-bottom: 1px solid #f0f0f0;
}

.menu-option:hover {
    background: #0078d4;
    color: var(--white);
}

.menu-separator {
    height: 1px;
    background: var(--dark-gray);
    margin: 2px 0;
}

.toolbar {
    display: flex;
    background: var(--gray);
    border-bottom: 1px solid var(--dark-gray);
    padding: 4px;
    gap: 2px;
    margin: 0;
}

.toolbar-btn {
    width: 24px;
    height: 24px;
    background: var(--gray);
    border: 1px outset var(--gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--bg-dark);
}

.toolbar-btn:hover {
    border: 1px inset var(--gray);
    background: var(--dark-gray);
}

.toolbar-btn:active {
    border: 1px inset var(--gray);
    background: var(--dark-gray);
}

.device-category {
    margin-bottom: 2px;
}

.category-header {
    display: flex;
    align-items: center;
    padding: 2px 4px;
    cursor: pointer;
    background: var(--white);
    border: 1px solid transparent;
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
}

.category-header:hover {
    background: #f0f0f0;
    border: 1px solid var(--gray);
}

.expand-icon {
    width: 16px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--bg-dark);
}

.device-icon {
    width: 20px;
    text-align: center;
    margin: 0 4px;
    font-size: 0.9rem;
}

.category-name {
    flex: 1;
    color: var(--bg-dark);
    font-weight: bold;
}

.category-content {
    margin-left: 20px;
    border-left: 1px solid var(--gray);
    padding-left: 8px;
}

.device-item {
    display: flex;
    align-items: center;
    padding: 1px 4px;
    cursor: pointer;
    background: var(--white);
    border: 1px solid transparent;
    margin-bottom: 1px;
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
}

.device-item:hover {
    background: #f0f0f0;
    border: 1px solid var(--gray);
}

.device-item.selected {
    background: #0078d4;
    color: var(--white);
    border: 1px solid #005a9e;
}

.device-item.selected .device-status {
    color: var(--white);
}

.device-name {
    flex: 1;
    color: var(--bg-dark);
    margin-left: 4px;
}

.device-status {
    color: var(--green);
    font-weight: bold;
    font-size: 0.8rem;
}

/* Stats sections */
.stats-section {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray);
}

.stats-section-title {
    font-weight: bold;
    color: var(--red);
    margin-bottom: 8px;
    font-size: 1rem;
}

.game-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.achievement-item {
    padding: 4px 8px;
    background: #f0f0f0;
    margin: 4px 0;
    border: 1px solid var(--gray);
}

/* ASCII Activity Graph */
.activity-graph {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    white-space: pre;
    line-height: 1.2;
}

/* Game Bar Charts */
.game-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.game-rank {
    min-width: 25px;
    color: var(--dark-gray);
}

.game-name {
    min-width: 100px;
    font-weight: bold;
}

.game-progress {
    color: var(--dark-gray);
    letter-spacing: 1px;
}

.game-hours {
    color: var(--red);
    font-weight: bold;
}

/* Steam Badges */
.steam-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: #f0f0f0;
    margin: 4px 0;
    border: 1px solid var(--gray);
    font-size: 0.9rem;
}

.badge-date {
    color: var(--dark-gray);
    font-size: 0.8rem;
    margin-left: auto;
}

/* Favorite Games */
.favorite-games {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.favorite-game-item {
    padding: 4px 8px;
    background: #e0e0e0;
    border: 1px solid var(--gray);
    font-size: 0.9rem;
}

/* Profile Layout with Avatar and Tags */
.profile-layout {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 10px;
}

.profile-left {
    flex-shrink: 0;
}

.profile-right {
    flex: 1;
    padding-top: 0;
}

.profile-avatar {
    width: 130px;
    height: 130px;
    border: 2px solid var(--dark-gray);
    border-radius: 0;
    object-fit: cover;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.tag {
    background: var(--gray);
    color: var(--dark-gray);
    padding: 3px 8px;
    border: 1px solid var(--dark-gray);
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}

/* Desktop Window Styles */
.desktop-content {
    background: #008080;
    background-image: 
        linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.1) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    height: 350px;  /* Фиксированная высота вместо max-height */
    position: relative;
    padding: 0; /* Remove all padding - we'll add it to desktop-icons */
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Override window-content padding for desktop */
.window-content.desktop-content {
    padding: 0;
    position: relative;
}

.desktop-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70px;
    height: 70px;
    cursor: pointer;
    padding: 6px;
    border-radius: 3px;
    transition: background-color 0.2s;
    box-sizing: border-box;
}

.desktop-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.desktop-icon:active {
    background-color: rgba(0, 0, 0, 0.2);
}

.icon-img {
    font-size: 2rem;
    margin-bottom: 6px;
}

.icon-label {
    font-family: 'VT323', monospace;
    font-size: 0.8rem;
    color: white;
    text-align: center;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.8);
}


/* Mini Game Window */
.mini-game-window {
    position: fixed;
    top: 100px;
    left: 100px;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    z-index: 10000;
    min-width: 350px;
    min-height: 175px;
    user-select: none;
}

.mini-game-window.dragging {
    z-index: 10001;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.7);
}

.mini-game-header {
    background: #0080ff;
    color: white;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    cursor: move;
}

.mini-game-content {
    padding: 10px;
    background: #c0c0c0;
}

#gameCanvas {
    border: 2px inset #c0c0c0;
    background: #000;
    display: block;
    margin: 0 auto 10px;
}

.game-controls {
    text-align: center;
    font-family: 'VT323', monospace;
    font-size: 0.8rem;
}

.score {
    margin-bottom: 10px;
    font-weight: bold;
}

.game-buttons {
    margin-bottom: 10px;
}

.game-buttons button {
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    padding: 5px 10px;
    margin: 0 5px;
    font-family: 'VT323', monospace;
    font-size: 0.7rem;
    cursor: pointer;
}

.game-buttons button:active {
    border: 2px inset #c0c0c0;
}

.game-instructions {
    font-size: 0.7rem;
    color: #666;
}


.track-number {
    width: 20px;
    font-size: 12px;
    margin-right: 10px;
}

.track-info {
    flex: 1;
}

.track-duration {
    font-size: 12px;
    color: #666;
}

/* System Info Window */
.system-info-window {
    position: absolute;
    top: 30px;
    left: 80px;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    z-index: 2000;
    width: 500px;
    height: 275px;
    user-select: none;
}

.system-info-window.dragging {
    z-index: 2001;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.7);
}

.system-info-header {
    background: linear-gradient(90deg, #0a2463, #3e92cc);
    color: white;
    padding: 4px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    cursor: move;
}

.system-info-content {
    padding: 10px;
    height: calc(100% - 30px);
    overflow-y: auto;
}

.system-tabs {
    display: flex;
    margin-bottom: 10px;
    border-bottom: 1px solid #999;
}

.tab-btn {
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 12px;
    margin-right: 2px;
}

.tab-btn:hover {
    background: #d0d0d0;
}

.tab-btn.active {
    background: #f0f0f0;
    border: 1px inset #c0c0c0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.system-section {
    margin-bottom: 15px;
}

.section-title {
    background: #0a2463;
    color: white;
    padding: 3px 8px;
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 5px;
}

.system-item {
    display: flex;
    justify-content: space-between;
    padding: 3px 8px;
    font-size: 12px;
    border-bottom: 1px solid #e0e0e0;
}

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

.device-icon {
    font-size: 16px;
    margin-right: 8px;
}

.device-info {
    flex: 1;
}

.device-name {
    font-weight: bold;
    font-size: 12px;
}

.device-status {
    font-size: 11px;
    color: #666;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.progress-bar {
    background: #f0f0f0;
    border: 1px inset #c0c0c0;
    height: 16px;
    flex: 1;
    position: relative;
}

.progress-fill {
    background: #44ff44;
    height: 100%;
    transition: width 0.3s ease;
}

/* Performance Monitor Styles */
.performance-monitor {
    padding: 10px;
    background: #c0c0c0;
    border: 2px inset #c0c0c0;
    height: auto;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* System Info Content Scrollbar */
.system-info-content {
    padding: 10px;
    height: calc(100% - 30px);
    overflow-y: auto;
}

/* Windows 98 Style Scrollbar for System Info */
.system-info-content::-webkit-scrollbar {
    width: 16px;
}

.system-info-content::-webkit-scrollbar-track {
    background: #c0c0c0;
    border: 1px inset #c0c0c0;
}

.system-info-content::-webkit-scrollbar-thumb {
    background: #404040;
    border: 1px outset #404040;
    border-radius: 0;
}

.system-info-content::-webkit-scrollbar-thumb:hover {
    background: #505050;
    border: 1px inset #404040;
}

.system-info-content::-webkit-scrollbar-thumb:active {
    background: #303030;
    border: 1px inset #404040;
}

.system-info-content::-webkit-scrollbar-corner {
    background: #c0c0c0;
}

.monitor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 10px;
}

.monitor-panel {
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    padding: 8px;
    font-size: 11px;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.panel-title {
    background: #0a2463;
    color: white;
    padding: 2px 6px;
    font-weight: bold;
    font-size: 10px;
    margin-bottom: 6px;
}

/* CPU Bar */
.cpu-bar-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cpu-bar {
    width: 60px;
    height: 120px;
    background: #000000;
    border: 2px inset #c0c0c0;
    position: relative;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.5);
}

.cpu-segments {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cpu-segment {
    height: 2px;
    margin-bottom: 1px;
    background: #00ff00;
}

.cpu-segment.active {
    background: #ff0000;
}

.cpu-percentage {
    font-weight: bold;
    font-size: 12px;
}

/* Memory Bar */
.memory-bar-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.memory-bar {
    width: 60px;
    height: 120px;
    background: #000000;
    border: 2px inset #c0c0c0;
    position: relative;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.5);
}

.memory-segments {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.memory-segment {
    height: 2px;
    margin-bottom: 1px;
    background: #00ff00;
}

.memory-segment.active {
    background: #ff0000;
}

.memory-usage {
    font-weight: bold;
    font-size: 12px;
}

/* History Graphs */
.history-graph {
    width: 100%;
    height: 80px;
    background: #000000;
    border: 2px inset #c0c0c0;
    position: relative;
    overflow: hidden;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.5);
}

.history-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(to right, #00ff00 1px, transparent 1px),
        linear-gradient(to bottom, #00ff00 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
}

.history-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #00ff00;
    transition: all 0.1s ease;
}

.history-line.secondary {
    background: #ff0000;
    height: 1px;
}

.history-points {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 2px 6px;
    font-size: 10px;
    border: 1px solid #999;
    margin-bottom: 1px;
    background: #f0f0f0;
}

.stat-item span:first-child {
    color: #666;
}

.stat-item span:last-child {
    font-weight: bold;
    color: #000;
}

/* Taskbar Styles */
.taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(90deg, #c0c0c0, #d0d0d0);
    border-top: 1px solid #999;
    display: flex;
    align-items: center;
    padding: 0 4px;
    z-index: 1000;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.3);
    margin-bottom: 0;
}

.start-button {
    background: linear-gradient(90deg, #c0c0c0, #d0d0d0);
    border: 1px outset #c0c0c0;
    padding: 4px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'VT323', monospace;
    font-size: 12px;
    color: #000;
    min-width: 60px;
    height: 22px;
    font-weight: bold;
    z-index: 1001;
    position: relative;
}

.start-button:hover {
    background: linear-gradient(90deg, #d0d0d0, #e0e0e0);
}

.start-button:active {
    border: 1px inset #c0c0c0;
    background: linear-gradient(90deg, #a0a0a0, #b0b0b0);
}

.start-icon {
    font-size: 14px;
}

.start-text {
    font-weight: bold;
}

.taskbar-center {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    background: linear-gradient(90deg, #c0c0c0, #d0d0d0);
}

.taskbar-apps {
    display: flex;
    gap: 2px;
    align-items: center;
    flex-wrap: wrap;
    background: linear-gradient(90deg, #c0c0c0, #d0d0d0);
    padding: 0 4px;
    height: 100%;
    width: 100%;
}

.taskbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(90deg, #c0c0c0, #d0d0d0);
    padding: 0 4px;
    height: 100%;
}

.system-tray {
    display: flex;
    gap: 3px;
    align-items: center;
    padding: 2px 4px;
    background: linear-gradient(90deg, #c0c0c0, #d0d0d0);
    border: 1px outset #c0c0c0;
    border-radius: 2px;
}

.tray-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.tray-icon:hover {
    background: rgba(0,0,0,0.1);
    border: 1px solid #999;
    transform: scale(1.1);
}

.clock {
    background: #c0c0c0;
    border: 1px inset #c0c0c0;
    padding: 3px 6px;
    font-family: 'VT323', monospace;
    font-size: 11px;
    color: #000;
    text-align: center;
    min-width: 65px;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.3);
}

.time {
    font-weight: bold;
    line-height: 1;
}

.date {
    font-size: 9px;
    color: #666;
    line-height: 1;
}

/* Start Menu Styles */
.start-menu {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 200px;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    z-index: 1001;
    font-family: 'VT323', monospace;
    font-size: 12px;
}

.start-menu-header {
    background: linear-gradient(90deg, #0a2463, #3e92cc);
    color: white;
    padding: 8px;
    border-bottom: 1px solid #999;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    width: 24px;
    height: 24px;
    background: #666;
    border: 1px solid #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    overflow: hidden;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.user-name {
    font-weight: bold;
    font-size: 14px;
}

.start-menu-content {
    padding: 4px 0;
    max-height: 300px;
    overflow-y: auto;
}

.start-menu-section {
    margin-bottom: 8px;
}

.section-title {
    background: #0a2463;
    color: white;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 2px;
}

.start-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    cursor: pointer;
    color: #000;
    border: 1px solid transparent;
}

.start-menu-item:hover {
    background: #0078d4;
    color: white;
    border: 1px solid #005a9e;
}

.start-menu-item:active {
    background: #005a9e;
    border: 1px inset #005a9e;
}

.item-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.item-text {
    flex: 1;
    font-size: 11px;
}

.start-menu-footer {
    border-top: 1px solid #999;
    padding: 4px 0;
}

.start-menu-item.shutdown {
    color: #cc0000;
}

.start-menu-item.shutdown:hover {
    background: #cc0000;
    color: white;
}

/* Custom scrollbar for start menu */
.start-menu-content::-webkit-scrollbar {
    width: 12px;
}

.start-menu-content::-webkit-scrollbar-track {
    background: #c0c0c0;
    border: 1px solid #999;
}

.start-menu-content::-webkit-scrollbar-thumb {
    background: #808080;
    border: 1px outset #808080;
    border-radius: 0;
}

.start-menu-content::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.start-menu-content::-webkit-scrollbar-corner {
    background: #c0c0c0;
}

/* Shutdown Dialog */
.shutdown-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.shutdown-window {
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    min-width: 400px;
    max-width: 500px;
}

.shutdown-header {
    background: linear-gradient(90deg, #000080, #0000ff);
    color: white;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    font-weight: bold;
}

.shutdown-title {
    flex: 1;
}

.shutdown-close {
    cursor: pointer;
    font-size: 1.2rem;
    padding: 2px 6px;
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    color: #000;
    font-family: 'VT323', monospace;
}

.shutdown-close:hover {
    background: #ff0000;
    color: white;
    border: 1px inset #ff0000;
}

.shutdown-content {
    padding: 20px;
    text-align: center;
    font-family: 'VT323', monospace;
}

.shutdown-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.shutdown-message p {
    margin: 10px 0;
    font-size: 1rem;
    color: #000;
}

.shutdown-options {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.shutdown-btn, .cancel-btn {
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    padding: 8px 16px;
    cursor: pointer;
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.shutdown-btn:hover {
    border: 2px inset #c0c0c0;
    background: #ff0000;
    color: white;
}

.cancel-btn:hover {
    border: 2px inset #c0c0c0;
    background: #a0a0a0;
}

/* Shutdown Screen */
.shutdown-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.shutdown-screen-content {
    text-align: center;
    color: #ffffff;
    font-family: 'Press Start 2P', monospace;
}

.shutdown-text {
    margin-bottom: 30px;
}

.shutdown-line {
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    margin: 15px 0;
    color: #ffffff;
    text-shadow: 1px 1px 0px #333333;
    letter-spacing: 1px;
}

.shutdown-progress {
    width: 300px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 24px;
    background: #222222;
    border: 2px solid #666666;
    position: relative;
    overflow: hidden;
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.5);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #00cc00);
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShine 1s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Boot Screen - Retro Style */
.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10002;
    font-family: 'Courier New', monospace;
}

.boot-content {
    width: 90%;
    max-width: 800px;
    color: #00ff00;
    background: #000000;
    border: 2px solid #00ff00;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.boot-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #00ff00;
    padding-bottom: 20px;
}

.boot-logo {
    font-family: 'Courier New', monospace;
    font-size: 2.5rem;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.boot-version {
    font-size: 1rem;
    color: #888888;
    font-family: 'Courier New', monospace;
}

.boot-console {
    margin: 20px 0;
    min-height: 300px;
    background: #000000;
    border: 1px solid #333333;
    padding: 15px;
    overflow: hidden;
    position: relative;
}

.console-line {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #00ff00;
    margin: 2px 0;
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    animation: typewriter 0.8s ease forwards;
}

.console-line::before {
    content: '> ';
    color: #00ff00;
    font-weight: bold;
}

.console-line.success::before {
    content: '✓ ';
    color: #00ff00;
}

.console-line.error::before {
    content: '✗ ';
    color: #ff0000;
}

.console-line.warning::before {
    content: '⚠ ';
    color: #ffff00;
}

@keyframes typewriter {
    from {
        opacity: 0;
        width: 0;
    }
    to {
        opacity: 1;
        width: 100%;
    }
}

.boot-progress {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-text {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #00ff00;
    min-width: 80px;
}

.progress-bar {
    flex: 1;
    height: 20px;
    background: #333333;
    border: 1px solid #00ff00;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #00cc00);
    width: 0%;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShine 1s infinite;
}

.progress-percent {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #00ff00;
    min-width: 40px;
    text-align: right;
}

.power-button {
    margin-top: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.power-button:hover {
    transform: scale(1.05);
}

.power-btn {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    border: 3px outset #ff0000;
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.power-btn:hover {
    background: linear-gradient(45deg, #ff3333, #ff0000);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
    transform: scale(1.05);
}

.power-btn:active {
    border: 3px inset #ff0000;
    transform: scale(0.95);
}

.power-icon {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #ffffff;
}

.power-text {
    font-size: 1rem;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Boot Screen with Power Button - Pixel Style */
#bootScreen .boot-content {
    text-align: center;
    color: #ffffff;
    font-family: 'Press Start 2P', monospace;
}

#bootScreen .boot-logo {
    margin-bottom: 60px;
}

#bootScreen .boot-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 4rem;
    color: #00ff00;
    text-shadow: 
        0 0 10px #00ff00,
        0 0 20px #00ff00,
        0 0 30px #00ff00,
        2px 2px 0px #008800,
        4px 4px 0px #004400;
    margin-bottom: 30px;
    animation: bootGlow 2s ease-in-out infinite alternate;
    letter-spacing: 4px;
    line-height: 1.2;
}

#bootScreen .boot-subtitle {
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    color: #888888;
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-shadow: 1px 1px 0px #444444;
}

#bootScreen .power-button {
    margin-top: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#bootScreen .power-button:hover {
    transform: scale(1.02);
}

#bootScreen .power-btn {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    border: 4px outset #ff0000;
    padding: 25px 60px;
    border-radius: 0;
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    font-family: 'Press Start 2P', monospace;
}

#bootScreen .power-btn:hover {
    background: linear-gradient(45deg, #ff3333, #ff0000);
    box-shadow: 
        0 0 30px rgba(255, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: scale(1.01);
}

#bootScreen .power-btn:active {
    border: 4px inset #ff0000;
    transform: scale(0.95);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(255, 0, 0, 0.3);
}

#bootScreen .power-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 
        2px 2px 0px #cc0000,
        4px 4px 0px #990000;
    letter-spacing: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .glitch { font-size: 2.5rem; }
    .container { padding: 10px; }
    .info-grid { grid-template-columns: 1fr; }
    .marquee { font-size: 0.6rem; }
    
    /* Guestbook responsive */
    .guestbook {
        margin: 10px 0;
    }
    
    .quotes-container {
        padding: 10px;
    }
    
    .manual-control-info {
        padding: 6px;
    }
    
    .scroll-dots {
        gap: 6px;
    }
    
    .scroll-dot {
        width: 14px;
        height: 14px;
    }
    
    .quote {
        font-size: 0.8rem;
        padding: 8px;
        margin: 6px 0;
    }
    
    .card-title {
        font-size: 0.7rem;
        padding: 6px 10px;
    }
    
    .scroll-text {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .glitch { font-size: 2rem; }
    .subtitle { font-size: 1rem; }
    
    .page-info {
        font-size: 0.9rem;
        padding: 3px 8px;
    }
    
    .quote {
        font-size: 0.8rem;
        margin: 8px 0;
    }
}
