:root {
    --bg-dark-blue: #020a17;
    --panel-blue: #d0dff1;
    --panel-blue-darker: #b8cde4;
    --text-dark: #0f1e3d;
    --accent-yellow: #ffc300;
    --accent-red: #e53935;
    --font-ui: 'Share Tech Mono', monospace;
    --font-title: 'Orbitron', sans-serif;
    --wireframe-blue: #00ddff;
    --solid-blue: #0d47a1;
}

#boot-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000;
    color: #00ff00;
    font-family: var(--font-ui);
    padding: 2rem;
    z-index: 10000;
    opacity: 1;
    transition: opacity 1s ease-in-out 1s;
}
#boot-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
.scanline {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(255,255,255,0.1) 50%, rgba(0,0,0,0) 100%);
    background-size: 100% 6px;
    animation: scan 10s linear infinite;
    z-index: -1;
}
@keyframes scan {
    0% { background-position-y: 0px; }
    100% { background-position-y: 200px; }
}
#boot-text p {
    margin: 0.2em 0;
}
.ok { color: #4caf50; }
.progress-bar {
    width: 50%; height: 20px;
    border: 1px solid #0f0;
    margin-top: 1rem; padding: 2px;
}
#progress-bar-inner {
    width: 0%; height: 100%;
    background: #0f0;
    transition: width 0.1s linear;
}
.final-message {
    margin-top: 1rem;
    color: var(--accent-yellow);
}

body {
    background-color: var(--bg-dark-blue);
    color: var(--panel-blue);
    margin: 0;
    font-family: var(--font-ui);
}
#main-content.hidden {
    display: none;
}

.globotech-logo {
    position: relative;
    width: 250px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.globotech-logo .globe {
    width: 60px; height: 60px;
    background: radial-gradient(circle at 30% 30%, #e0e0e0, #808080 80%);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 2px solid #a0a0a0;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.5);
}
.globotech-logo .globe::before, .globotech-logo .globe::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 14px, #0003 15px),
        repeating-linear-gradient(0deg, transparent, transparent 14px, #0003 15px);
}
.globotech-logo .swoosh {
    position: absolute;
    width: 90px; height: 90px;
    top: -15px; left: 5px;
    border: 10px solid;
    border-color: #c0c0c0 #c0c0c0 transparent transparent;
    border-radius: 50%;
    transform: rotate(20deg);
    box-shadow: 2px -2px 5px rgba(255,255,255,0.5);
}
.logo-text {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 4px;
    color: #d0dff1;
    text-shadow: 1px 1px 3px #000;
    margin-top: -10px;
}

header {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(2, 10, 23, 0.5);
    border-bottom: 2px solid #1c3d5e;
}
nav .nav-button {
    background: transparent;
    border: 1px solid var(--panel-blue);
    color: var(--panel-blue);
    padding: 8px 15px;
    margin: 0 5px;
    cursor: pointer;
    font-family: var(--font-ui);
    transition: all 0.2s;
}
nav .nav-button.active, nav .nav-button:hover {
    background: var(--panel-blue);
    color: var(--text-dark);
}

main { padding: 2rem; }
#processor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

.processor-card {
    background-color: var(--panel-blue);
    color: var(--text-dark);
    padding: 1rem;
    border: 2px solid var(--panel-blue-darker);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.processor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 221, 255, 0.2);
}

.card-header {
    background-color: var(--text-dark);
    color: var(--panel-blue);
    padding: 0.5rem 1rem;
    margin: -1rem -1rem 1rem -1rem;
    font-family: var(--font-title);
    font-size: 1.1rem;
}
.card-header .id {
    float: right;
    font-size: 0.9rem;
    color: var(--accent-yellow);
}
.spec-table {
    font-size: 0.9rem;
}
.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
}
.spec-row:nth-child(even) {
    background-color: var(--panel-blue-darker);
}
.spec-row .label { opacity: 0.8; }
.spec-row .value { font-weight: bold; }

.wireframe-box {
    margin-top: 1rem;
    border: 1px solid var(--text-dark);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer {
    text-align: center; padding: 1rem; margin-top: 2rem;
    font-size: 0.8rem; color: #5a7a9a;
    border-top: 1px solid #1c3d5e;
}

#modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(2, 10, 23, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}
#modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: all;
}

#modal-content {
    background-color: var(--panel-blue);
    color: var(--text-dark);
    width: 80%;
    max-width: 1200px;
    padding: 2rem;
    position: relative;
    border: 2px solid var(--panel-blue-darker);
    transform: scale(0.8);
    transition: transform 0.3s ease-in-out;
}
#modal-overlay:not(.hidden) #modal-content {
    transform: scale(1);
}

#modal-close-btn {
    position: absolute;
    top: 10px; right: 15px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-dark);
    cursor: pointer;
    line-height: 1;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: flex-start;
}
#modal-processor-details h2 {
    font-family: var(--font-title);
    color: var(--text-dark);
}
.character-briefing h3 {
    text-align: center;
    font-family: var(--font-title);
    margin-bottom: 1rem;
    color: var(--text-dark);
}

#character-display {
    height: 400px;
    background-color: #04122a;
    border: 2px solid var(--panel-blue-darker);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
#character-display canvas {
    display: block;
}

#character-status {
    text-align: center;
    margin-top: 1rem;
    font-family: var(--font-ui);
    color: var(--text-dark);
    height: 20px;
}

#flying-processor {
    position: fixed;
    width: 20px; height: 20px;
    z-index: 3000;
    pointer-events: none;
    transition: transform 1s cubic-bezier(0.5, 0, 1, 1), opacity 0.5s linear 0.8s;
}

@keyframes canvas-flash {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 55px 30px rgba(0, 221, 255, 0.9); }
}
.flash-animation {
    animation: canvas-flash 0.5s ease-out;
}
