/* ============================================
   KYBERHRA - Stylesheet
   Cyberpunk edukační hra o kyberbezpečnosti
   ============================================ */

:root {
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a2e;
    --neon-green: #00ff88;
    --neon-green-dim: #00cc6a;
    --neon-blue: #00d4ff;
    --neon-purple: #b44aff;
    --neon-pink: #ff2a6d;
    --neon-yellow: #ffdd00;
    --neon-red: #ff0055;
    --neon-orange: #ff6a00;
    --text-primary: #e0e0e0;
    --text-secondary: #888899;
    --text-dim: #555566;
    --border-color: #1e1e2e;
    --glow-green: 0 0 10px rgba(0, 255, 136, 0.3), 0 0 40px rgba(0, 255, 136, 0.1);
    --glow-blue: 0 0 10px rgba(0, 212, 255, 0.3), 0 0 40px rgba(0, 212, 255, 0.1);
    --glow-purple: 0 0 10px rgba(180, 74, 255, 0.3), 0 0 40px rgba(180, 74, 255, 0.1);
    --glow-red: 0 0 10px rgba(255, 0, 85, 0.3), 0 0 40px rgba(255, 0, 85, 0.1);
    --font-display: 'Orbitron', monospace;
    --font-mono: 'Share Tech Mono', monospace;
    --font-body: 'Rajdhani', sans-serif;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 500;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Matrix Background Canvas */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.07;
    pointer-events: none;
}

/* Scanline overlay */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

/* ============================================
   SCREENS
   ============================================ */

.screen {
    display: none;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 2rem;
}

.screen.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   GLITCH EFFECT
   ============================================ */

.glitch {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--neon-green);
    text-shadow: var(--glow-green);
    position: relative;
    letter-spacing: 0.05em;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 2s infinite linear alternate-reverse;
    clip-path: inset(0 0 80% 0);
    color: var(--neon-blue);
    text-shadow: -2px 0 var(--neon-blue);
}

.glitch::after {
    animation: glitch-2 2s infinite linear alternate-reverse;
    clip-path: inset(80% 0 0 0);
    color: var(--neon-pink);
    text-shadow: 2px 0 var(--neon-pink);
}

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

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

.glitch-wrapper {
    text-align: center;
    margin-bottom: 1rem;
}

.subtitle-year {
    font-family: var(--font-display);
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--neon-purple);
    text-shadow: var(--glow-purple);
    letter-spacing: 0.5em;
    display: block;
    margin-top: 0.25rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-cyber {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 1rem 2.5rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-green), var(--neon-green-dim));
    color: var(--bg-dark);
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    box-shadow: var(--glow-green);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5), 0 0 60px rgba(0, 255, 136, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: var(--glow-blue);
    transform: translateY(-2px);
}

.btn-back {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    color: var(--neon-green);
    border-color: var(--neon-green);
}

/* ============================================
   INTRO SCREEN
   ============================================ */

/* Logo */
.intro-logo {
    margin-bottom: 1.5rem;
}

.logo-img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.3));
}

.intro-content {
    max-width: 700px;
    text-align: center;
}

.intro-terminal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 2rem 0;
    overflow: hidden;
    text-align: left;
}

.terminal-header {
    background: #1a1a2e;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red { background: var(--neon-red); }
.terminal-dot.yellow { background: var(--neon-yellow); }
.terminal-dot.green { background: var(--neon-green); }

.terminal-body {
    padding: 1rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 2;
}

.typing-line {
    opacity: 0;
    animation: typeFadeIn 0.3s ease forwards;
}

.typing-line:nth-child(1) { animation-delay: 0.3s; }
.typing-line:nth-child(2) { animation-delay: 0.8s; }
.typing-line:nth-child(3) { animation-delay: 1.3s; }
.typing-line:nth-child(4) { animation-delay: 1.8s; }
.typing-line:nth-child(5) { animation-delay: 2.3s; }

@keyframes typeFadeIn {
    from { opacity: 0; transform: translateX(-5px); }
    to { opacity: 1; transform: translateX(0); }
}

.text-red { color: var(--neon-red); }
.text-yellow { color: var(--neon-yellow); }
.text-green { color: var(--neon-green); }
.text-blue { color: var(--neon-blue); }
.text-purple { color: var(--neon-purple); }

.intro-desc {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.stat-box {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--neon-blue);
    text-shadow: var(--glow-blue);
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.intro-note {
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* ============================================
   HUB SCREEN - Mission Select
   ============================================ */

.hub-header {
    width: 100%;
    max-width: 1100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.hub-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hub-logo-img {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.3));
}

.hub-logo-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.hub-logo-text span {
    color: var(--neon-green);
}

.hub-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hub-stat {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.hub-stat span:last-child,
.hub-stat span#hub-xp,
.hub-stat span#hub-level,
.hub-stat span#hub-completed {
    color: var(--neon-green);
    font-weight: 700;
}

.hub-content {
    width: 100%;
    max-width: 1100px;
    flex: 1;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title::before {
    content: '// ';
    color: var(--neon-green);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.mission-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.mission-card:hover {
    border-color: var(--neon-green);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: var(--glow-green);
}

.mission-card.completed {
    border-color: var(--neon-green-dim);
}

.mission-card.completed::after {
    content: '✓';
    position: absolute;
    top: 0.75rem;
    right: 1.25rem;
    font-size: 1.2rem;
    color: var(--neon-green);
}

.mission-card.perfect::after {
    content: '★';
    color: var(--neon-yellow);
}

.mission-number {
    font-family: var(--font-display);
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.mission-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.mission-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.mission-desc {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.mission-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.mission-difficulty {
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.difficulty-easy {
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
}

.difficulty-medium {
    color: var(--neon-yellow);
    border: 1px solid var(--neon-yellow);
}

.difficulty-hard {
    color: var(--neon-red);
    border: 1px solid var(--neon-red);
}

.mission-xp-reward {
    color: var(--neon-blue);
}

/* XP Bar */
.xp-bar-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.75rem 2rem;
    background: rgba(10, 10, 15, 0.95);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 100;
}

.xp-bar-bg {
    flex: 1;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 0%;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.xp-bar-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    white-space: nowrap;
}

/* ============================================
   MISSION SCREEN
   ============================================ */

#screen-mission.active {
    justify-content: flex-start;
    padding-top: 1rem;
}

.mission-header {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mission-progress {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.mission-progress span:first-child {
    color: var(--neon-green);
    font-size: 1.1rem;
}

.mission-xp-display {
    font-family: var(--font-mono);
    color: var(--neon-blue);
    font-size: 0.85rem;
}

.mission-content {
    width: 100%;
    max-width: 800px;
}

.mission-briefing {
    margin-bottom: 1.5rem;
}

.briefing-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

#mission-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--neon-green);
    text-shadow: var(--glow-green);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* Scenario Box - used for email mocks, chat mocks, etc. */
.scenario-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
}

.scenario-box .email-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
}

.scenario-box .email-from {
    color: var(--text-secondary);
}

.scenario-box .email-from strong {
    color: var(--text-primary);
}

.scenario-box .email-subject {
    color: var(--neon-yellow);
    font-weight: 600;
}

.scenario-box .email-body {
    color: var(--text-primary);
}

.scenario-box .email-link {
    color: var(--neon-blue);
    text-decoration: underline;
}

.scenario-box .email-urgent {
    color: var(--neon-red);
    font-weight: 700;
}

.scenario-box .chat-message {
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    max-width: 85%;
}

.scenario-box .chat-other {
    background: #1a1a2e;
    border: 1px solid var(--border-color);
}

.scenario-box .chat-sender {
    font-size: 0.7rem;
    color: var(--neon-purple);
    margin-bottom: 0.25rem;
}

.scenario-box .url-display {
    background: #000;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin: 0.5rem 0;
    word-break: break-all;
    border-left: 3px solid var(--neon-blue);
}

.scenario-box .popup-mock {
    background: #1e1e2e;
    border: 2px solid var(--neon-red);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.scenario-box .popup-mock .popup-title {
    color: var(--neon-red);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.scenario-question {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Choices */
.choices-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.choice-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.5;
}

.choice-btn:hover {
    border-color: var(--neon-blue);
    background: var(--bg-card-hover);
    transform: translateX(5px);
}

.choice-letter {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--neon-blue);
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--neon-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.choice-btn.correct {
    border-color: var(--neon-green);
    background: rgba(0, 255, 136, 0.08);
}

.choice-btn.correct .choice-letter {
    background: var(--neon-green);
    color: var(--bg-dark);
    border-color: var(--neon-green);
}

.choice-btn.wrong {
    border-color: var(--neon-red);
    background: rgba(255, 0, 85, 0.08);
}

.choice-btn.wrong .choice-letter {
    background: var(--neon-red);
    color: var(--bg-dark);
    border-color: var(--neon-red);
}

.choice-btn.disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* Feedback */
.feedback-box {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    animation: slideUp 0.3s ease;
}

.feedback-box.hidden {
    display: none;
}

.feedback-box.correct-feedback {
    border: 1px solid var(--neon-green);
    border-left: 4px solid var(--neon-green);
}

.feedback-box.wrong-feedback {
    border: 1px solid var(--neon-red);
    border-left: 4px solid var(--neon-red);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.feedback-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

#feedback-title {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.correct-feedback #feedback-title { color: var(--neon-green); }
.wrong-feedback #feedback-title { color: var(--neon-red); }

#feedback-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.feedback-tip {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--neon-blue);
    line-height: 1.6;
}

.feedback-tip::before {
    content: '💡 TIP: ';
    font-weight: 700;
}

.btn-next {
    background: var(--bg-card-hover);
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    padding: 0.75rem 2rem;
    font-size: 0.85rem;
}

.btn-next:hover {
    background: rgba(0, 255, 136, 0.1);
}

/* ============================================
   MISSION COMPLETE SCREEN
   ============================================ */

.complete-content {
    max-width: 600px;
    text-align: center;
}

.complete-badge {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.complete-stats {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row span:first-child {
    color: var(--text-secondary);
}

.stat-row span:last-child {
    color: var(--neon-green);
    font-weight: 700;
}

.complete-lesson {
    background: rgba(180, 74, 255, 0.05);
    border: 1px solid rgba(180, 74, 255, 0.2);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 2rem;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.complete-lesson strong {
    color: var(--neon-purple);
}

.complete-cta {
    background: rgba(0, 255, 136, 0.04);
    border: 1px solid rgba(0, 255, 136, 0.25);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.complete-cta p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.btn-cta {
    background: linear-gradient(135deg, var(--neon-green), var(--neon-green-dim));
    color: var(--bg-dark);
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    box-shadow: var(--glow-green);
    font-size: 0.8rem;
    padding: 0.75rem 2rem;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5), 0 0 60px rgba(0, 255, 136, 0.2);
}

.complete-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   FINAL SCREEN
   ============================================ */

.final-content {
    max-width: 700px;
    text-align: center;
}

.final-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 1rem 0 2rem;
}

.final-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.final-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
    text-align: center;
}

.final-stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--neon-green);
    text-shadow: var(--glow-green);
    margin-bottom: 0.5rem;
}

.final-stat-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.final-message {
    background: var(--bg-card);
    border: 1px solid var(--neon-green);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.final-cta {
    margin: 2rem 0;
}

.final-cta p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .screen {
        padding: 1rem;
    }

    .hub-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }

    .intro-stats {
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .final-stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .mission-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .xp-bar-container {
        padding: 0.5rem 1rem;
    }

    .complete-buttons {
        flex-direction: column;
    }

    .complete-buttons .btn-cyber {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .glitch {
        font-size: 1.8rem;
    }

    .subtitle-year {
        font-size: 0.9rem;
    }

    .terminal-body {
        font-size: 0.75rem;
        padding: 0.75rem 1rem;
    }

    .scenario-box {
        padding: 1rem;
        font-size: 0.8rem;
    }
}

/* ============================================
   UTILITY / ANIMATION
   ============================================ */

.hidden {
    display: none !important;
}

@keyframes neonFlicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.3; }
    94% { opacity: 1; }
    96% { opacity: 0.5; }
    97% { opacity: 1; }
}

.neon-flicker {
    animation: neonFlicker 3s infinite;
}
