:root {
    --bg-color: #030d1a;
    --terminal-bg: #061526;
    --text-primary: #00f3ff;
    --text-dim: #5c9bb0;
    --text-glow: #00f3ff;
    --accent: #0f2b48;
    --error: #ff3b5c;
    --success: #00ff88;
    --border-color: #00f3ff;
    --font-main: 'Fira Code', 'Courier New', monospace;
}

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

body {
    background-color: #020b14;
    color: var(--text-primary);
    font-family: var(--font-main);
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    line-height: 1.6;
}

/* CRT Effects */
.scanline {
    width: 100%;
    height: 10px;
    z-index: 100;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 243, 255, 0.05) 50%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.15;
    position: absolute;
    bottom: 100%;
    animation: scanline 8s linear infinite;
    pointer-events: none;
}

.crt-overlay {
    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 2px);
    pointer-events: none;
    z-index: 99;
}

@keyframes scanline {
    0% {
        bottom: 100%;
    }
    100% {
        bottom: -20px;
    }
}

/* Container */
.terminal-container {
    width: 95%;
    max-width: 1000px;
    height: 90vh;
    background-color: rgba(6, 21, 38, 0.96);
    border: 2px solid var(--border-color);
    box-shadow: 0 0 35px rgba(0, 243, 255, 0.25), inset 0 0 40px rgba(0, 243, 255, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
}

/* Header */
.terminal-header {
    background: rgba(0, 243, 255, 0.1);
    border-bottom: 2px solid var(--border-color);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--text-primary);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px var(--text-primary);
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Main Content */
#app-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

.screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: none;
}

.screen.active {
    display: flex;
    opacity: 1;
}

.hidden {
    display: none !important;
}

/* Start Screen */
.logo-area {
    text-align: center;
    margin-bottom: 1.5rem;
}

.ascii-art {
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--text-glow);
    font-size: 0.85rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.mission-brief {
    background: rgba(0, 243, 255, 0.04);
    border-left: 4px solid var(--border-color);
    padding: 1.2rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.mission-brief p {
    margin-bottom: 0.4rem;
    color: #d1f5ff;
}

/* Buttons */
.cyber-btn {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 24px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    align-self: center;
    border-radius: 4px;
}

.cyber-btn:hover {
    background: var(--text-primary);
    color: #030d1a;
    box-shadow: 0 0 20px var(--text-glow);
}

/* Quiz Screen */
.quiz-status-bar {
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 15px;
    border: 1px solid rgba(0, 243, 255, 0.3);
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    border-radius: 4px;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.status-item .label {
    color: var(--text-dim);
    margin-right: 5px;
}

.status-item .value {
    color: #ffffff;
    font-weight: bold;
}

.question-terminal {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.prompt-line {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.prompt-user {
    color: var(--text-primary);
}

.command {
    color: #e2e8f0;
}

.question-output {
    font-size: 1.05rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 4px;
    border-left: 3px solid var(--text-primary);
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.option-btn {
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.2);
    color: #d1f5ff;
    padding: 12px 16px;
    text-align: left;
    font-family: var(--font-main);
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.option-btn:hover:not(:disabled) {
    background: rgba(0, 243, 255, 0.15);
    border-color: var(--border-color);
    padding-left: 22px;
}

.option-btn.correct {
    background: rgba(0, 255, 136, 0.2) !important;
    border-color: var(--success) !important;
    color: #ffffff !important;
    font-weight: bold;
}

.option-btn.wrong {
    background: rgba(255, 59, 92, 0.2) !important;
    border-color: var(--error) !important;
    color: #ffffff !important;
}

.feedback-console {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.feedback-header {
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.feedback-content {
    font-size: 0.9rem;
    color: #e2e8f0;
}

/* Result Screen */
.result-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--text-primary);
    text-shadow: 0 0 15px var(--text-glow);
    margin-bottom: 2rem;
}

.result-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    text-align: center;
    min-width: 150px;
    border-radius: 6px;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
}

.mission-status {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}
