/* ASTEROID DEFENDER - STORY MODE STYLING */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:wght@300;400;600;700&display=swap');

/* Asteroid Defender Specific Variables - Extends theme variables */
:root {
    /* Game-specific colors that complement the theme */
    --defender-accent-cyan: #00d4ff;
    --defender-danger: #ef4444;
    --defender-success: #10b981;
    --defender-warning: #f59e0b;
    --defender-glass-bg: rgba(255, 255, 255, 0.05);
    --defender-glass-border: rgba(255, 255, 255, 0.1);
    --defender-shadow-primary: 0 8px 32px rgba(0, 0, 0, 0.3);
    --defender-shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    height: 100%;
}

body {
    font-family: 'Exo 2', sans-serif;
    /* Use theme background instead of overriding */
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    line-height: 1.6;
    height: 100%;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
}

#main-container {
    width: 100%;
    min-height: 100vh;
    overflow: visible;
}

/* Ensure all screens are scrollable */
.screen {
    width: 100%;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
    color: var(--text-primary);
}

.loading-content h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--defender-accent-cyan);
    text-shadow: 0 0 20px var(--defender-accent-cyan);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 212, 255, 0.1);
    border-top: 4px solid var(--defender-accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-status {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Story Introduction Screen */
.story-screen {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: var(--primary-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    overflow-y: auto;
    padding: 2rem;
}

.story-content {
    max-width: 800px;
    text-align: center;
    padding: 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-primary);
}

.story-header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent-primary);
    text-shadow: 0 0 30px var(--accent-primary);
    margin-bottom: 1rem;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 30px var(--accent-primary); }
    50% { text-shadow: 0 0 50px var(--accent-primary), 0 0 80px var(--accent-primary); }
}

.story-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
}

.story-text {
    margin: 2rem 0;
}

.story-paragraph {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.story-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.story-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.story-btn.primary {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

.story-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.6);
}

.story-btn.secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
}

.story-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
}

/* Mission Interface */
.mission-interface {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    overflow: visible;
}

/* Command Header */
.command-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--glass-border);
    box-shadow: var(--shadow-primary);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.exit-btn {
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exit-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.mission-info h1 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.mission-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.mission-status {
    font-size: 0.9rem;
    color: var(--accent-warning);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-right {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.score-display, .timer-display {
    text-align: center;
}

.score-label, .timer-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.score-value, .timer-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-primary);
}

/* Mission Phases */
.mission-phases {
    flex: 1;
    display: flex;
    overflow: visible;
    min-height: calc(100vh - 120px);
}

.mission-phase {
    width: 100%;
    min-height: calc(100vh - 120px);
    display: none;
    padding: 2rem;
    padding-bottom: 8rem;
    overflow: visible;
    position: relative;
}

.mission-phase.active {
    display: block;
    animation: phaseSlideIn 0.5s ease-out;
}

@keyframes phaseSlideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.phase-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Briefing Phase */
.briefing-panel h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.threat-alert {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    border: 2px solid var(--accent-danger);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.threat-alert.pulsing {
    animation: alertPulse 2s ease-in-out infinite;
}

@keyframes alertPulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
        border-color: var(--accent-danger);
    }
    50% { 
        box-shadow: 0 0 40px rgba(239, 68, 68, 0.6);
        border-color: #ff6b6b;
    }
}

.alert-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.alert-icon {
    font-size: 2rem;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.alert-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-danger);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.alert-details {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-style: italic;
}

/* Asteroid Data */
.asteroid-data {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.asteroid-data h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.data-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.data-value {
    color: var(--text-primary);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

.threat-level.low {
    color: var(--accent-success);
}

.threat-level.moderate {
    color: var(--accent-warning);
}

.threat-level.high {
    color: var(--accent-danger);
}

/* Analysis Phase */
.analysis-panel h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.analysis-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.tool-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
}

.tool-section h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.prediction-display {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.prediction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 4px solid var(--accent-primary);
}

.pred-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.pred-value {
    color: var(--accent-primary);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

.parameter-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.param-group label {
    display: block;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.param-select {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-primary);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Exo 2', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.param-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.param-select:hover {
    border-color: var(--accent-primary);
    background: var(--bg-primary);
}

/* Dropdown options styling */
.param-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem;
    font-family: 'Exo 2', sans-serif;
}

/* Light mode compatibility for dropdowns */
[data-theme="light"] .param-select,
.light-mode .param-select {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border-primary);
}

[data-theme="light"] .param-select option,
.light-mode .param-select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="light"] .param-select:hover,
.light-mode .param-select:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
}

/* Educational Fact */
.educational-fact {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(124, 58, 237, 0.1));
    border: 2px solid var(--accent-secondary);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: opacity 0.5s ease;
}

.fact-header {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
}

.fact-content {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Decision Phase */
.decision-panel {
    min-height: calc(100vh - 120px);
    padding-bottom: 6rem;
    overflow: visible;
}

.decision-panel h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.strategy-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.strategy-card {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.strategy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.strategy-card:hover::before {
    left: 100%;
}

.strategy-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

.strategy-card.selected {
    border-color: var(--accent-success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.strategy-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.strategy-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px var(--accent-primary));
}

.strategy-header h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.strategy-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.strategy-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.stat-value {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: var(--accent-primary);
}

.selected-strategy {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.selected-strategy h3 {
    font-family: 'Orbitron', monospace;
    color: var(--accent-success);
    margin-bottom: 1rem;
}

.strategy-confirmation {
    color: var(--text-secondary);
    font-style: italic;
}

/* Phase Actions */
.phase-actions {
    text-align: center;
    margin-top: 2rem;
}

.action-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0.5rem;
}

.action-btn.primary {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

.action-btn.primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.6);
}

.action-btn.primary:disabled {
    background: var(--glass-bg);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

.action-btn.secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
}

/* Mission Display */
.mission-display {
    flex: 1;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    min-height: calc(100vh - 120px);
    overflow: visible;
}

.visual-container {
    width: 100%;
    height: 100%;
    position: relative;
}

#simulationCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Mission Overlay */
.mission-overlay {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    max-width: 95%;
    overflow: visible;
}

.progress-indicator {
    display: flex;
    gap: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 1rem 2rem;
    box-shadow: var(--shadow-primary);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.progress-step.active {
    opacity: 1;
    color: var(--accent-primary);
}

.progress-step.completed {
    opacity: 1;
    color: var(--accent-success);
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 0.9rem;
}

.progress-step.active .step-number {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.progress-step.completed .step-number {
    background: var(--accent-success);
    border-color: var(--accent-success);
    color: white;
}

.step-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Execution Sequence */
.execution-sequence {
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow-primary);
}

.execution-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    text-shadow: 0 0 20px var(--accent-primary);
}

.execution-status {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    min-height: 1.5rem;
}

.execution-progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Outcome Screen */
.outcome-screen {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: var(--primary-bg);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2rem;
    padding-top: 4rem;
}

.outcome-content {
    max-width: 1000px;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 4rem;
    box-shadow: var(--shadow-primary);
    animation: outcomeSlideIn 0.8s ease-out;
    overflow: visible;
}

@keyframes outcomeSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.outcome-header {
    text-align: center;
    margin-bottom: 3rem;
}

.outcome-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.outcome-header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    text-shadow: 0 0 30px var(--accent-primary);
}

.outcome-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Outcome Stats */
.outcome-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px var(--accent-primary));
}

.stat-card .stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--accent-primary);
}

.stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Outcome Report */
.outcome-report {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.outcome-report h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.report-content {
    color: var(--text-primary);
    line-height: 1.6;
}

.report-section {
    margin-bottom: 1.5rem;
}

.report-section h4 {
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
}

.report-section ul {
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

/* Learning Section */
.learning-section {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(124, 58, 237, 0.1));
    border: 2px solid var(--accent-secondary);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.learning-section h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
}

.learning-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.learning-point {
    color: var(--text-primary);
    line-height: 1.6;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 4px solid var(--accent-secondary);
}

/* Outcome Actions */
.outcome-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Game Complete */
.game-complete {
    text-align: center;
    padding: 3rem;
}

.game-complete h1 {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-success);
    margin-bottom: 2rem;
    text-shadow: 0 0 30px var(--accent-success);
}

.final-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .analysis-tools {
        grid-template-columns: 1fr;
    }
    
    .strategy-options {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .mission-interface {
        flex-direction: column;
    }
    
    .command-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-left, .header-right {
        justify-content: center;
    }
    
    .story-content {
        margin: 1rem;
        padding: 2rem;
    }
    
    .story-header h1 {
        font-size: 2.5rem;
    }
    
    .story-actions {
        flex-direction: column;
    }
    
    .outcome-content {
        margin: 1rem;
        padding: 2rem;
    }
    
    .outcome-stats {
        grid-template-columns: 1fr;
    }
    
    .outcome-actions {
        flex-direction: column;
    }
    
    .progress-indicator {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .story-header h1 {
        font-size: 2rem;
    }
    
    .outcome-header h1 {
        font-size: 2rem;
    }
    
    .mission-phase {
        padding: 1rem;
    }
    
    .strategy-options {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}
/* ====
= ENHANCED ANIMATIONS AND VISUAL EFFECTS ===== */

/* Countdown Sequence */
.countdown-sequence {
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--accent-danger);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow-primary);
    animation: countdownPulse 2s ease-in-out infinite;
}

@keyframes countdownPulse {
    0%, 100% { 
        border-color: var(--accent-danger);
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
    }
    50% { 
        border-color: #ff6b6b;
        box-shadow: 0 0 40px rgba(239, 68, 68, 0.6);
    }
}

.countdown-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-danger);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.countdown-display {
    margin: 2rem 0;
}

.countdown-number {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-primary);
    text-shadow: 0 0 30px var(--accent-primary);
    transition: all 0.3s ease;
}

.countdown-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.countdown-status {
    font-size: 1.1rem;
    color: var(--accent-warning);
    font-style: italic;
    margin-top: 1rem;
}

/* Strategy Visual Effects */
.execution-visual {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

/* Kinetic Impact Visuals */
.kinetic-visual {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.spacecraft {
    font-size: 2rem;
    transition: transform 2s ease-in-out;
    filter: drop-shadow(0 0 10px var(--accent-primary));
}

.asteroid-target {
    font-size: 2.5rem;
    transition: all 1s ease-in-out;
    filter: drop-shadow(0 0 15px #ff6b35);
}

.trajectory-line {
    position: absolute;
    top: 50%;
    left: 20%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
    transform: translateY(-50%);
    opacity: 0.7;
}

/* Nuclear Detonation Visuals */
.nuclear-visual {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.warhead {
    font-size: 2rem;
    transition: transform 2s ease-in-out;
    filter: drop-shadow(0 0 10px var(--accent-danger));
}

.explosion-effect {
    font-size: 3rem;
    animation: explosionPulse 1s ease-out;
    filter: drop-shadow(0 0 20px #ff6b35);
}

@keyframes explosionPulse {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Evacuation Visuals */
.evacuation-visual {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.earth-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px var(--accent-primary));
}

.evacuation-arrows {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.arrow {
    font-size: 1.5rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

@keyframes arrowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.population-counter {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-success);
    text-shadow: 0 0 10px var(--accent-success);
}

/* Laser Array Visuals */
.laser-visual {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.laser-array {
    font-size: 2rem;
    filter: drop-shadow(0 0 15px var(--accent-secondary));
}

.laser-beams {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.beam {
    width: 4px;
    height: 0;
    background: transparent;
    transition: all 0.5s ease;
    border-radius: 2px;
}

@keyframes laserPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; filter: brightness(1.5); }
}

@keyframes asteroidDisintegrate {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); filter: brightness(2); }
    100% { opacity: 0.3; transform: scale(0.8); filter: brightness(0.5); }
}

/* Impact Sequence Visuals */
.impact-sequence {
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-primary);
}

.impact-visual {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    position: relative;
}

.impact-status {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.6;
    margin-top: 1rem;
}

/* Success Visual Effects */
.success-visual {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.earth-safe {
    font-size: 4rem;
    filter: drop-shadow(0 0 20px var(--accent-success));
    z-index: 2;
}

.asteroid-deflected {
    position: absolute;
    font-size: 2rem;
    left: 20%;
    top: 20%;
    transition: all 3s ease-out;
    filter: drop-shadow(0 0 10px #ff6b35);
}

.success-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0;
}

.particle:nth-child(1) { top: 20%; left: 30%; }
.particle:nth-child(2) { top: 60%; right: 25%; }
.particle:nth-child(3) { bottom: 30%; left: 50%; }

@keyframes earthCelebration {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1) rotate(5deg); }
    75% { transform: scale(1.1) rotate(-5deg); }
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-20px); }
    100% { opacity: 0; transform: translateY(-40px); }
}

/* Failure Visual Effects */
.failure-visual {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.earth-impact {
    font-size: 4rem;
    filter: drop-shadow(0 0 20px var(--accent-danger));
    z-index: 2;
}

.impact-explosion {
    position: absolute;
    font-size: 3rem;
    transition: all 2s ease-out;
    filter: drop-shadow(0 0 25px #ff6b35);
}

.shockwave {
    position: absolute;
    border-radius: 50%;
    border: 0;
    transition: all 2s ease-out;
}

@keyframes impactExplosion {
    0% { transform: scale(0.5); opacity: 0; }
    25% { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(2); opacity: 0.3; }
}

@keyframes shockwaveExpand {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

@keyframes earthShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Enhanced Outcome Screen */
.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.report-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 3px solid var(--accent-primary);
}

.report-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.report-value {
    color: var(--text-primary);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

.report-value.success {
    color: var(--accent-success);
}

.report-value.failure {
    color: var(--accent-danger);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.metric-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.2);
}

.metric-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 10px var(--accent-primary));
}

.metric-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.report-note {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Environmental Effects */
.environmental-effects {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}

.environmental-effect {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid var(--accent-warning);
}

.environmental-effect.extreme {
    border-left-color: var(--accent-danger);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
}

.environmental-effect.severe {
    border-left-color: var(--accent-warning);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
}

.environmental-effect.negligible {
    border-left-color: var(--accent-success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
}

.effect-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.effect-type {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.effect-severity {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.effect-severity.extreme {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-danger);
    border: 1px solid var(--accent-danger);
}

.effect-severity.severe {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-warning);
    border: 1px solid var(--accent-warning);
}

.effect-severity.negligible {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-success);
    border: 1px solid var(--accent-success);
}

.effect-description {
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.effect-duration {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

/* Mission Debrief */
.mission-debrief {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
    border: 2px solid var(--accent-primary);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    animation: debriefSlideIn 1s ease-out;
}

@keyframes debriefSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.debrief-header h3 {
    font-family: 'Orbitron', monospace;
    color: var(--accent-primary);
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px var(--accent-primary);
}

.debrief-message {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.control-avatar {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px var(--accent-primary));
}

.control-text {
    flex: 1;
}

.control-message {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.next-mission-tease {
    color: var(--accent-warning);
    font-weight: 600;
    font-style: italic;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid var(--accent-warning);
    border-radius: 5px;
}

.debrief-stats {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.stat-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px var(--accent-primary));
}

.stat-text {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Mission Transition */
.mission-transition {
    text-align: center;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.transition-header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-danger);
    margin-bottom: 2rem;
    text-shadow: 0 0 30px var(--accent-danger);
    animation: alertFlash 2s ease-in-out infinite;
}

@keyframes alertFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.threat-scanner {
    width: 200px;
    height: 200px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    margin: 0 auto 2rem;
    position: relative;
    overflow: hidden;
}

.scanner-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 90px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    transform-origin: bottom center;
    animation: scannerRotate 2s linear infinite;
}

.scanner-blip {
    position: absolute;
    top: 30%;
    right: 25%;
    width: 8px;
    height: 8px;
    background: var(--accent-danger);
    border-radius: 50%;
    animation: blipPulse 1s ease-in-out infinite;
}

@keyframes scannerRotate {
    from { transform: translate(-50%, -100%) rotate(0deg); }
    to { transform: translate(-50%, -100%) rotate(360deg); }
}

@keyframes blipPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.alert-message {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--accent-danger);
    border-radius: 15px;
}

.alert-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-style: italic;
}

.next-mission-preview {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.next-mission-preview h2 {
    font-family: 'Orbitron', monospace;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.mission-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.threat-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.preview-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.preview-value {
    color: var(--text-primary);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

.threat-low { color: var(--accent-success); }
.threat-moderate { color: var(--accent-warning); }
.threat-high { color: var(--accent-danger); }

.transition-message {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
    border-radius: 10px;
    border: 1px solid var(--accent-primary);
}

.transition-message p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
}

.transition-actions {
    margin-top: 2rem;
}

/* ===== PROTECTION PLANS UI STYLES ===== */

/* Plan Instructions */
.plan-instructions {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
    border: 1px solid var(--accent-primary);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Protection Plans Grid */
.protection-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    overflow: visible;
}

/* Protection Plan Cards */
.protection-plan-card {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    overflow: visible;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: fit-content;
}

.protection-plan-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

.protection-plan-card.expanded {
    border-color: var(--accent-success);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
    transform: none;
    cursor: default;
    z-index: 10;
    position: relative;
    grid-column: 1 / -1;
    max-width: none;
    margin: 2rem 0;
    overflow: visible;
}

/* Plan Preview (collapsed state) */
.plan-preview {
    padding: 2rem;
    text-align: center;
}

.plan-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px var(--accent-primary));
}

.plan-preview h3 {
    font-family: 'Orbitron', monospace;
    color: var(--accent-primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.plan-brief {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.plan-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.rating-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.rating-stars {
    color: var(--accent-warning);
    font-size: 1.2rem;
}

/* Plan Details (expanded state) */
.plan-details {
    padding: 2rem;
    animation: expandDetails 0.5s ease-out;
    overflow: visible;
}

@keyframes expandDetails {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plan-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--glass-border);
}

.plan-icon-large {
    font-size: 4rem;
    filter: drop-shadow(0 0 20px var(--accent-primary));
}

.plan-title-section h3 {
    font-family: 'Orbitron', monospace;
    color: var(--accent-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.plan-classification {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

.plan-description {
    margin-bottom: 2rem;
}

.plan-description p {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1rem;
}

/* Plan Specifications */
.plan-specs {
    margin-bottom: 2rem;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.spec-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.spec-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.spec-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.spec-value.success {
    color: var(--accent-success);
}

.spec-value.warning {
    color: var(--accent-warning);
}

.spec-value.low {
    color: var(--accent-success);
}

.spec-value.medium {
    color: var(--accent-warning);
}

.spec-value.high {
    color: var(--accent-danger);
}

/* Plan Advantages and Limitations */
.plan-advantages,
.plan-limitations {
    margin-bottom: 1.5rem;
}

.plan-advantages h4 {
    color: var(--accent-success);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-family: 'Orbitron', monospace;
}

.plan-limitations h4 {
    color: var(--accent-warning);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-family: 'Orbitron', monospace;
}

.plan-advantages ul,
.plan-limitations ul {
    list-style: none;
    padding: 0;
}

.plan-advantages li,
.plan-limitations li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-primary);
    line-height: 1.4;
}

.plan-advantages li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-success);
    font-weight: bold;
}

.plan-limitations li::before {
    content: '⚠';
    position: absolute;
    left: 0;
    color: var(--accent-warning);
}

/* Plan Action Buttons */
.plan-action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.select-plan-btn {
    flex: 2;
    min-width: 200px;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--accent-success), #059669);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.select-plan-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
}

.close-plan-btn {
    flex: 1;
    min-width: 120px;
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.close-plan-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-warning);
    transform: translateY(-2px);
}

/* Selected Plan Display */
.selected-plan-display {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    border: 2px solid var(--accent-success);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    animation: selectedPlanSlideIn 0.6s ease-out;
}

@keyframes selectedPlanSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.selected-plan-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.selected-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 15px var(--accent-success));
}

.selected-info h3 {
    font-family: 'Orbitron', monospace;
    color: var(--accent-success);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.selected-info p {
    color: var(--text-primary);
    line-height: 1.5;
}

.proceed-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Action Instructions */
.action-instruction {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 1rem;
    font-style: italic;
}

.action-instruction .instruction-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px var(--accent-primary));
}

/* 3D Execution Animation */
.execution-animation-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--accent-primary);
    border-radius: 20px;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--shadow-primary);
    animation: animationSlideIn 0.8s ease-out;
}

@keyframes animationSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animation-header {
    text-align: center;
    margin-bottom: 2rem;
}

.animation-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    text-shadow: 0 0 15px var(--accent-primary);
}

.mission-status {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-style: italic;
}

.animation-canvas-container {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
}

#execution-canvas {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

.animation-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-ring-svg {
    transform: rotate(-90deg);
}

.progress-ring-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.progress-ring-circle {
    fill: none;
    stroke: var(--accent-primary);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s ease;
    filter: drop-shadow(0 0 10px var(--accent-primary));
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
}

.execution-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.execution-details .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 3px solid var(--accent-primary);
}

.execution-details .detail-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.execution-details .detail-value {
    color: var(--accent-primary);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

/* Mission Results Screen */
.mission-results-screen {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    margin-bottom: 4rem;
    box-shadow: var(--shadow-primary);
    animation: resultsSlideIn 1s ease-out;
    overflow: visible;
}

@keyframes resultsSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.result-status {
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.result-status.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    border: 2px solid var(--accent-success);
}

.result-status.failure {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    border: 2px solid var(--accent-danger);
}

.status-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.result-status h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.result-status.success h1 {
    color: var(--accent-success);
    text-shadow: 0 0 20px var(--accent-success);
}

.result-status.failure h1 {
    color: var(--accent-danger);
    text-shadow: 0 0 20px var(--accent-danger);
}

.mission-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.results-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.results-section {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
}

.results-section h2 {
    font-family: 'Orbitron', monospace;
    color: var(--accent-primary);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px var(--accent-primary);
}

/* Mission Overview */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.overview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid var(--accent-primary);
}

.item-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.item-value {
    color: var(--text-primary);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

.item-value.success {
    color: var(--accent-success);
}

.item-value.failure {
    color: var(--accent-danger);
}

/* Key Metrics Dashboard */
.metrics-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.metric-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

.metric-card .metric-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px var(--accent-primary));
}

.metric-card .metric-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--accent-primary);
}

.metric-card .metric-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Technical Analysis */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.analysis-column h3 {
    color: var(--accent-secondary);
    font-family: 'Orbitron', monospace;
    margin-bottom: 1rem;
}

.data-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}

.data-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.data-value {
    color: var(--text-primary);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

/* Resources Used */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.resource-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px var(--accent-primary));
}

.resource-info {
    flex: 1;
}

.resource-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.resource-value {
    color: var(--accent-primary);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Technical Details */
.technical-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.technical-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid var(--accent-secondary);
}

.tech-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px var(--accent-secondary));
}

.tech-detail {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Environmental Impact */
.environmental-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.environmental-item {
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-warning);
}

.environmental-item.extreme {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    border-left-color: var(--accent-danger);
}

.environmental-item.severe {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    border-left-color: var(--accent-warning);
}

.environmental-item.negligible {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    border-left-color: var(--accent-success);
}

.effect-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.effect-type {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.effect-severity {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.effect-description {
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.effect-duration {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

/* Global Impact */
.impact-summary {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
}

.impact-text {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.impact-details {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.impact-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.stat-value {
    color: var(--accent-primary);
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Results Actions */
.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

/* Responsive Design for Results */
@media (max-width: 768px) {
    .mission-results-screen {
        margin: 1rem;
        padding: 1.5rem;
        max-height: 95vh;
    }
    
    .metrics-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-details {
        flex-direction: column;
        gap: 1rem;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .animation-canvas-container {
        margin: 1rem 0;
    }
    
    .animation-overlay {
        top: 10px;
        right: 10px;
    }
    
    .progress-ring {
        width: 80px;
        height: 80px;
    }
    
    .progress-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .result-status h1 {
        font-size: 2rem;
    }
    
    .metrics-dashboard {
        grid-template-columns: 1fr;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .execution-details {
        grid-template-columns: 1fr;
    }
}

.final-confirmation-screen .confirmation-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    text-shadow: 0 0 15px var(--accent-primary);
    text-align: center;
}

.plan-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-radius: 25px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    margin: 0 auto;
    display: block;
    text-align: center;
    width: fit-content;
}

.plan-summary {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

.plan-summary .plan-icon-large {
    font-size: 3rem;
    filter: drop-shadow(0 0 15px var(--accent-primary));
}

.plan-info h3 {
    font-family: 'Orbitron', monospace;
    color: var(--accent-primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.plan-info p {
    color: var(--text-primary);
    line-height: 1.5;
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* AI Chatbot Integration */
#deployment-e98c9c09-e5f1-4a0b-820d-cadc7402ab2c {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    max-height: 600px;
}

/* Ensure chatbot doesn't interfere with game interface */
@media (max-width: 768px) {
    #deployment-e98c9c09-e5f1-4a0b-820d-cadc7402ab2c {
        bottom: 10px;
        right: 10px;
        max-width: 300px;
        max-height: 450px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
    }
    
    .protection-plans-grid {
        grid-template-columns: 1fr;
        padding-bottom: 6rem;
    }
    
    .protection-plan-card.expanded {
        grid-column: 1;
        margin: 1rem 0 2rem 0;
    }
    
    .plan-header {
        flex-direction: column;
        text-align: center;
    }
    
    .spec-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .selected-plan-header {
        flex-direction: column;
        text-align: center;
    }
    
    .proceed-actions {
        flex-direction: column;
    }
    
    .plan-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
    
    .mission-phase {
        padding: 1.5rem;
        padding-bottom: 5rem;
    }
}

@media (max-width: 480px) {
    .protection-plan-card {
        margin: 0;
    }
    
    .protection-plan-card.expanded {
        margin: 1rem 0 3rem 0;
    }
    
    .plan-details {
        padding: 1.5rem;
    }
    
    .spec-grid {
        grid-template-columns: 1fr;
    }
    
    .final-confirmation-screen {
        margin: 1rem;
        padding: 2rem;
    }
    
    .protection-plans-grid {
        padding-bottom: 4rem;
    }
    
    .mission-phase {
        padding: 1rem;
        padding-bottom: 6rem;
    }
    
    .plan-action-buttons {
        flex-direction: column;
    }
    
    .select-plan-btn,
    .close-plan-btn {
        width: 100%;
        min-width: auto;
    }
}

/* Strategy Instructions */
.strategy-instructions {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
    border: 1px solid var(--accent-primary);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.instruction-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.instruction-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px var(--accent-primary));
}

/* Strategy Confirmation Panel */
.strategy-confirmation-panel {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 2px solid var(--accent-success);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    animation: confirmationSlideIn 0.5s ease-out;
}

.confirmation-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.confirmation-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 15px var(--accent-success));
}

.confirmation-content h3 {
    font-family: 'Orbitron', monospace;
    color: var(--accent-success);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.confirmation-content p {
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 1rem;
}

.strategy-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 3px solid var(--accent-success);
}

.detail-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.detail-value {
    color: var(--accent-success);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 0.9rem;
}

.strategy-readiness {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
    border: 1px solid var(--accent-success);
}

.readiness-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px var(--accent-success));
}

.readiness-text {
    color: var(--text-primary);
    line-height: 1.4;
}

.readiness-text strong {
    color: var(--accent-success);
    font-weight: 700;
}

/* Action States */
.action-state {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn.disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: not-allowed;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

#proceed-strategy-btn {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    animation: proceedPulse 2s ease-in-out infinite;
}

@keyframes proceedPulse {
    0%, 100% { 
        box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 6px 25px rgba(0, 212, 255, 0.6);
        transform: scale(1.02);
    }
}

#proceed-strategy-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.6);
    animation: none;
}

#change-strategy-btn {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#change-strategy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-warning);
    transform: translateY(-2px);
}

#execute-strategy-btn {
    background: linear-gradient(45deg, var(--accent-success), #059669);
    color: white;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    animation: executePulse 1.5s ease-in-out infinite;
}

@keyframes executePulse {
    0%, 100% { 
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 8px 30px rgba(16, 185, 129, 0.7);
        transform: scale(1.05);
    }
}

#execute-strategy-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.8);
    animation: none;
}

/* Enhanced Strategy Cards */
.strategy-card.selected {
    border-color: var(--accent-success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
    transform: translateY(-5px) scale(1.02);
}

.strategy-card.selected::after {
    content: '✓';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    background: var(--accent-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

/* Fade-in Animation */
.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for New Elements */
@media (max-width: 768px) {
    .countdown-sequence,
    .impact-sequence {
        margin: 1rem;
        padding: 2rem;
    }
    
    .countdown-number {
        font-size: 3rem;
    }
    
    .execution-visual,
    .impact-visual {
        height: 150px;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .debrief-stats {
        flex-direction: column;
    }
    
    .threat-scanner {
        width: 150px;
        height: 150px;
    }
    
    .transition-header h1 {
        font-size: 2rem;
    }
    
    .confirmation-header {
        flex-direction: column;
        text-align: center;
    }
    
    .strategy-details-grid {
        grid-template-columns: 1fr;
    }
    
    .action-state {
        flex-direction: column;
    }
    
    #proceed-strategy-btn,
    #change-strategy-btn,
    #execute-strategy-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .countdown-title {
        font-size: 1rem;
    }
    
    .countdown-number {
        font-size: 2.5rem;
    }
    
    .execution-visual,
    .impact-visual {
        height: 120px;
    }
    
    .mission-transition {
        padding: 2rem 1rem;
    }
    
    .strategy-confirmation-panel {
        padding: 1.5rem;
    }
    
    .confirmation-icon {
        font-size: 2.5rem;
    }
    
    .confirmation-content h3 {
        font-size: 1.1rem;
    }
}

/* ===== STRATEGY CONFIRMATION SCREEN ===== */

.strategy-confirmation-screen {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--accent-primary);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: var(--shadow-primary);
    animation: confirmationSlideIn 0.6s ease-out;
}

@keyframes confirmationSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.confirmation-header {
    text-align: center;
    margin-bottom: 2rem;
}

.confirmation-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    text-shadow: 0 0 15px var(--accent-primary);
}

.strategy-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-radius: 25px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.confirmation-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.strategy-overview {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

.strategy-icon-large {
    font-size: 4rem;
    filter: drop-shadow(0 0 20px var(--accent-primary));
    flex-shrink: 0;
}

.strategy-details {
    flex: 1;
}

.strategy-details h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.strategy-full-description {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1rem;
}

.mission-briefing {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(124, 58, 237, 0.05));
    border: 1px solid var(--accent-secondary);
    border-radius: 15px;
    padding: 1.5rem;
}

.mission-briefing h4 {
    font-family: 'Orbitron', monospace;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.briefing-points {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.briefing-point {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 3px solid var(--accent-secondary);
}

.point-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px var(--accent-secondary));
}

.point-text {
    color: var(--text-primary);
    font-weight: 600;
}

.final-warning {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    border: 2px solid var(--accent-warning);
    border-radius: 15px;
    padding: 1.5rem;
    animation: warningPulse 3s ease-in-out infinite;
}

@keyframes warningPulse {
    0%, 100% { 
        border-color: var(--accent-warning);
        box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
    }
    50% { 
        border-color: #fbbf24;
        box-shadow: 0 0 25px rgba(245, 158, 11, 0.5);
    }
}

.warning-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px var(--accent-warning));
    flex-shrink: 0;
}

.warning-text {
    color: var(--text-primary);
    line-height: 1.5;
}

.warning-text strong {
    color: var(--accent-warning);
    font-weight: 700;
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

#confirm-strategy-btn {
    background: linear-gradient(45deg, var(--accent-success), #059669);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

#confirm-strategy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
}

#change-strategy-btn {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#change-strategy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Next Button Styling */
#strategy-next-btn {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    animation: nextButtonPulse 2s ease-in-out infinite;
}

@keyframes nextButtonPulse {
    0%, 100% { 
        box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 6px 25px rgba(0, 212, 255, 0.6);
        transform: scale(1.02);
    }
}

#strategy-next-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.6);
    animation: none;
}

/* Responsive Design for Confirmation Screen */
@media (max-width: 768px) {
    .strategy-confirmation-screen {
        margin: 1rem;
        padding: 2rem;
    }
    
    .strategy-overview {
        flex-direction: column;
        text-align: center;
    }
    
    .strategy-icon-large {
        align-self: center;
        font-size: 3rem;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
    
    #confirm-strategy-btn,
    #change-strategy-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .strategy-confirmation-screen {
        padding: 1.5rem;
    }
    
    .confirmation-header h2 {
        font-size: 1.5rem;
    }
    
    .strategy-badge {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .strategy-icon-large {
        font-size: 2.5rem;
    }
    
    .final-warning {
        flex-direction: column;
        text-align: center;
    }
}/*
 Coming Soon Popup */
.coming-soon-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.coming-soon-popup {
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: popupSlideIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-header h2 {
    font-family: 'Orbitron', monospace;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.popup-icon {
    font-size: 4rem;
    margin: 1rem 0;
    filter: drop-shadow(0 0 20px var(--accent-primary));
}

.popup-content p {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.popup-stats {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin: 1.5rem 0;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.stat-value {
    color: var(--accent-primary);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

.popup-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.popup-actions .action-btn {
    flex: 1;
    max-width: 200px;
}

/* Mobile responsiveness for popup */
@media (max-width: 768px) {
    .coming-soon-popup {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .popup-header h2 {
        font-size: 1.3rem;
    }
    
    .popup-icon {
        font-size: 3rem;
    }
    
    .popup-actions {
        flex-direction: column;
    }
    
    .popup-actions .action-btn {
        max-width: none;
    }
}

/* Light mode compatibility for popup */
[data-theme="light"] .coming-soon-popup,
.light-mode .coming-soon-popup {
    background: var(--bg-primary);
    border-color: var(--accent-primary);
}

[data-theme="light"] .popup-stats,
.light-mode .popup-stats {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
}/* ====
= NAVBAR THEME CONSISTENCY FIXES ===== */
/* Ensure navbar uses theme variables and not game-specific overrides */

.navbar {
    background: var(--bg-secondary) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid var(--border-accent) !important;
}

.navbar .logo {
    color: var(--accent-primary) !important;
    text-shadow: 0 0 10px var(--accent-primary) !important;
}

.navbar .nav-link {
    color: var(--text-primary) !important;
    transition: all 0.3s ease !important;
}

.navbar .nav-link:hover {
    color: var(--accent-primary) !important;
    text-shadow: 0 0 5px var(--accent-primary) !important;
}

.navbar .nav-link.active {
    color: var(--accent-primary) !important;
    text-shadow: 0 0 10px var(--accent-primary) !important;
}

/* Ensure proper spacing for navbar in game interface */
#main-container {
    padding-top: 80px; /* Account for fixed navbar */
}

#story-intro {
    padding-top: 0; /* Remove extra padding since main container handles it */
}

.mission-interface {
    padding-top: 0; /* Remove extra padding since main container handles it */
}

/* Fix command header positioning */
.command-header {
    position: relative;
    top: 0;
    margin-top: 0;
}