@import url('data:font/woff2;base64,d09GMgABAAAAAAW4AAoAAAAABzgAAAVrAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhYbIBwqBmAAgTIBNgIkAzYEBgWDBAcgGy0GEbHcpOyXwgbHtmnmJRq7E4RCE0YmNJHNzCSt3f9fAAB4AAB4AAB4+/6vBAQEBAQEBAQEBAQEBAQEBAQE'); /* MS Sans Serif fallback */

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

body {
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    background: linear-gradient(135deg, #008080 0%, #004040 100%);
    min-height: 100vh;
    overflow: hidden;
}

.desktop {
    width: 100vw;
    height: 100vh;
    position: relative;
    background: linear-gradient(135deg, #008080 0%, #004040 100%);
}

.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: linear-gradient(to bottom, #c0c0c0, #a0a0a0);
    border-top: 1px solid #ffffff;
    display: flex;
    align-items: center;
    z-index: 1000;
}

.start-button {
    height: 24px;
    margin: 2px;
    padding: 2px 6px;
    background: linear-gradient(to bottom, #dfdfdf, #c0c0c0);
    border: 1px outset #c0c0c0;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 11px;
}

.start-button:active {
    border: 1px inset #c0c0c0;
    background: linear-gradient(to bottom, #c0c0c0, #dfdfdf);
}

.start-button img {
    width: 14px;
    height: 14px;
}

.taskbar-items {
    flex: 1;
    margin-left: 8px;
    display: flex;
    gap: 2px;
}

.taskbar-item {
    height: 22px;
    padding: 2px 8px;
    background: linear-gradient(to bottom, #c0c0c0, #a0a0a0);
    border: 1px inset #c0c0c0;
    display: flex;
    align-items: center;
    font-size: 11px;
}

.taskbar-item.active {
    background: linear-gradient(to bottom, #a0a0a0, #808080);
    border: 1px inset #808080;
}

.taskbar-time {
    margin-right: 8px;
    padding: 4px 8px;
    background: linear-gradient(to bottom, #dfdfdf, #c0c0c0);
    border: 1px inset #c0c0c0;
    font-size: 11px;
}

.window {
    position: absolute;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.main-window {
    top: 50px;
    left: 50px;
    width: 800px;
    height: 600px;
}

.title-bar {
    height: 18px;
    background: linear-gradient(to right, #000080, #0000a0);
    color: white;
    display: flex;
    align-items: center;
    padding: 1px 2px;
    font-size: 11px;
    font-weight: bold;
}

.title-bar-text {
    flex: 1;
    padding-left: 2px;
}

.title-bar-controls {
    display: flex;
    gap: 2px;
}

.title-bar-controls button {
    width: 16px;
    height: 14px;
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    font-size: 9px;
    cursor: pointer;
}

.title-bar-controls button:active {
    border: 1px inset #c0c0c0;
}

.window-body {
    padding: 4px;
    height: calc(100% - 18px);
}

.game-area {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 8px;
}

.status-panel {
    background: #c0c0c0;
    border: 1px inset #c0c0c0;
    padding: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-section {
    display: flex;
    gap: 20px;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.score-item label {
    font-size: 9px;
    color: #000080;
}

.score-item span {
    font-weight: bold;
    font-size: 14px;
}

.threat-meter {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.threat-meter label {
    font-size: 9px;
    color: #000080;
}

.meter-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meter-bar {
    width: 100px;
    height: 16px;
    background: #ffffff;
    border: 1px inset #c0c0c0;
    position: relative;
}

.meter-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.threat-low { background: #00ff00; }
.threat-medium { background: #ffff00; }
.threat-high { background: #ff0000; }

#threat-text {
    font-weight: bold;
    font-size: 10px;
    min-width: 50px;
}

#gameCanvas {
    border: 2px inset #c0c0c0;
    background: #c0c0c0;
    flex: 1;
}

.updates-panel {
    background: #c0c0c0;
    border: 1px inset #c0c0c0;
    height: 120px;
    overflow-y: auto;
}

.panel-header {
    background: #000080;
    color: white;
    padding: 2px 6px;
    font-weight: bold;
    font-size: 11px;
}

.updates-list {
    padding: 4px;
}

.update-item {
    background: #ffffff;
    border: 1px solid #808080;
    margin-bottom: 2px;
    padding: 4px;
    cursor: pointer;
}

.update-item:hover {
    background: #e0e0e0;
}

.update-info-small {
    display: flex;
    align-items: center;
    gap: 6px;
}

.update-priority {
    font-size: 10px;
}

.update-name {
    font-size: 10px;
}

.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.dialog {
    width: 400px;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    box-shadow: 4px 4px 8px rgba(0,0,0,0.4);
}

.dialog-body {
    padding: 12px;
}

.dialog-icon {
    font-size: 32px;
    float: left;
    margin-right: 12px;
}

.dialog-text {
    margin-left: 50px;
}

.dialog-text p {
    margin-bottom: 8px;
    font-size: 11px;
}

.dialog-buttons {
    text-align: right;
    margin-top: 16px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn {
    padding: 4px 12px;
    background: linear-gradient(to bottom, #dfdfdf, #c0c0c0);
    border: 1px outset #c0c0c0;
    font-size: 11px;
    font-family: inherit;
    cursor: pointer;
    min-width: 75px;
}

.btn:active {
    border: 1px inset #c0c0c0;
    background: linear-gradient(to bottom, #c0c0c0, #dfdfdf);
}

.btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.update-dialog {
    width: 450px;
}

.update-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.update-icon {
    font-size: 24px;
}

.update-details {
    flex: 1;
}

.update-title {
    font-weight: bold;
    margin-bottom: 4px;
    font-size: 11px;
}

.update-desc {
    color: #404040;
    margin-bottom: 12px;
    font-size: 10px;
}

.progress-section {
    background: #f0f0f0;
    border: 1px inset #c0c0c0;
    padding: 8px;
}

.progress-label {
    font-size: 10px;
    margin-bottom: 4px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.progress-bar {
    width: 200px;
    height: 16px;
    background: #ffffff;
    border: 1px inset #c0c0c0;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #0000ff, #4040ff);
    width: 0%;
    transition: width 0.1s linear;
}

#progressText {
    font-size: 10px;
    font-family: monospace;
}

.download-speed {
    font-size: 10px;
    color: #404040;
    font-family: monospace;
}

.hidden {
    display: none !important;
}

.footer {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(192,192,192,0.9);
    padding: 4px 8px;
    border: 1px outset #c0c0c0;
    font-size: 10px;
    z-index: 1001;
}

.footer a {
    color: #000080;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* CRT effect */
#gameCanvas {
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(0,0,0,0.03) 1px,
            rgba(0,0,0,0.03) 2px
        );
}

/* Responsive */
@media (max-width: 1024px) {
    .main-window {
        width: 95vw;
        height: 90vh;
        left: 2.5vw;
        top: 5vh;
    }
    
    .status-panel {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .score-section {
        justify-content: space-around;
    }
}

@media (max-width: 768px) {
    .dialog {
        width: 90vw;
        max-width: 400px;
    }
    
    .update-dialog {
        width: 95vw;
        max-width: 450px;
    }
    
    .progress-bar {
        width: 150px;
    }
}