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

body {
    font-family: 'Courier New', 'Consolas', monospace;
    background: #0a0f0d;
    color: #2aff00;
    overflow-x: hidden;
    position: relative;
    font-size: 14px;
}

/* Scanline effect */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(42, 255, 0, 0) 50%, rgba(42, 255, 0, 0.02) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
    animation: scan 0.1s linear infinite;
}

@keyframes scan {
    0% { background-position: 0 0; }
    100% { background-position: 0 4px; }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(42, 255, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42, 255, 0, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 10px;
    position: relative;
    z-index: 2;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 15px;
    padding: 12px 15px;
    border: 1px solid #2aff00;
    background: rgba(10, 15, 13, 0.95);
}

.classification {
    background: #ff0000;
    color: #000;
    padding: 4px 12px;
    font-weight: bold;
    font-size: 0.7em;
    letter-spacing: 2px;
    margin-bottom: 8px;
    display: inline-block;
}

.system-id {
    display: flex;
    justify-content: space-between;
    font-size: 0.65em;
    color: #ff0000;
    margin-bottom: 8px;
    padding: 5px;
    border-top: 1px solid #2aff00;
    border-bottom: 1px solid #2aff00;
    background: rgba(42, 255, 0, 0.05);
}

h1 {
    font-size: 2em;
    font-weight: bold;
    letter-spacing: 6px;
    margin-bottom: 5px;
    color: #ff0000;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
}

.subtitle {
    font-size: 0.75em;
    color: #7fdb6e;
    letter-spacing: 1px;
    line-height: 1.4;
}

/* Clock Section */
.clock-section {
    margin: 10px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #2aff00;
}

.clock-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Analog Clock SVG */
.analog-clock {
    width: 300px;
    height: 300px;
    filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.5));
}

.clock-face {
    fill: rgba(10, 15, 13, 0.95);
    stroke: none;
}

.clock-border {
    fill: none;
    stroke: #2aff00;
    stroke-width: 2;
}

.hour-markers line,
.minute-markers line {
    stroke: #2aff00;
    stroke-width: 2;
}

.danger-zone {
    fill: rgba(255, 0, 0, 0.2);
    stroke: #ff0000;
    stroke-width: 2;
}

.hour-hand {
    stroke: #ff0000;
    stroke-width: 5;
    stroke-linecap: round;
}

.minute-hand {
    stroke: #ff0000;
    stroke-width: 3;
    stroke-linecap: round;
}

.second-hand {
    stroke: #ff0000;
    stroke-width: 2;
    stroke-linecap: round;
}

.center-dot {
    fill: #ff0000;
    stroke: #2aff00;
    stroke-width: 2;
}

.midnight-text {
    fill: #ff0000;
    font-size: 14px;
    font-weight: bold;
    text-anchor: middle;
    letter-spacing: 2px;
}

.midnight-subtitle {
    fill: #ff0000;
    font-size: 9px;
    text-anchor: middle;
    letter-spacing: 1px;
}

/* Clock Reading */
.clock-reading {
    text-align: center;
}

.current-time-display {
    margin-bottom: 10px;
}

.time-value {
    display: block;
    font-size: 3em;
    font-weight: bold;
    color: #ff0000;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.time-label {
    display: block;
    font-size: 1.1em;
    color: #ff0000;
    letter-spacing: 3px;
}

.last-updated {
    font-size: 0.8em;
    color: #7fdb6e;
    margin-bottom: 10px;
}

.threat-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9em;
    font-weight: bold;
    color: #ff0000;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff0000;
    box-shadow: 0 0 12px #ff0000;
    animation: pulse-status 1.5s ease-in-out infinite;
}

@keyframes pulse-status {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* Timeline Section */
.timeline-section {
    margin: 10px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #2aff00;
}

.timeline-section h2 {
    font-size: 1.3em;
    color: #2aff00;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.timeline-scroll {
    overflow-x: auto;
    padding: 10px 0;
}

.timeline {
    display: flex;
    gap: 15px;
    min-width: max-content;
    padding: 10px;
}

.timeline-item {
    min-width: 180px;
    padding: 12px;
    background: rgba(42, 255, 0, 0.05);
    border-left: 2px solid #2aff00;
}

.timeline-year {
    font-size: 1.1em;
    font-weight: bold;
    color: #ff0000;
    margin-bottom: 5px;
}

.timeline-time {
    font-size: 1.5em;
    color: #ff0000;
    font-weight: bold;
    margin-bottom: 5px;
}

.timeline-event {
    font-size: 0.75em;
    color: #7fdb6e;
    line-height: 1.4;
}

/* Threat Factors */
.threat-factors-section {
    margin: 10px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #2aff00;
}

.threat-factors-section h2 {
    font-size: 1.3em;
    color: #2aff00;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 3px;
}

.section-description {
    text-align: center;
    color: #7fdb6e;
    margin-bottom: 15px;
    font-size: 0.75em;
}

.factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.factor-card {
    background: rgba(10, 15, 13, 0.95);
    border: 1px solid #2aff00;
    padding: 12px;
}

.factor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.factor-header h3 {
    font-size: 0.9em;
    color: #2aff00;
    letter-spacing: 1px;
}

.factor-score {
    font-size: 1.8em;
    font-weight: bold;
    color: #ff0000;
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
}

.factor-bar {
    height: 15px;
    background: rgba(42, 255, 0, 0.1);
    border: 1px solid #2aff00;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.factor-fill {
    height: 100%;
    background: linear-gradient(90deg, #cc0000, #ff0000);
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.5);
    transition: width 0.5s ease;
}

.factor-details {
    margin: 10px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid rgba(42, 255, 0, 0.2);
    font-size: 0.75em;
}

.detail-row span:first-child {
    color: #7fdb6e;
}

.detail-row span:last-child {
    color: #ff0000;
    font-weight: bold;
}

.factor-status {
    font-size: 0.7em;
    color: #2aff00;
    font-style: italic;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(42, 255, 0, 0.3);
}

/* Data Sources */
.data-sources {
    margin: 10px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #2aff00;
}

.data-sources h3 {
    font-size: 1.1em;
    color: #2aff00;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.source-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(42, 255, 0, 0.05);
    border-left: 2px solid #2aff00;
    font-size: 0.75em;
}

.source-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2aff00;
    box-shadow: 0 0 8px #2aff00;
    animation: pulse-source 2s ease-in-out infinite;
}

@keyframes pulse-source {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Footer */
footer {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #2aff00;
}

.footer-note {
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(42, 255, 0, 0.05);
    border-left: 2px solid #ff0000;
}

.footer-note p {
    color: #7fdb6e;
    line-height: 1.5;
    margin-bottom: 6px;
    font-size: 0.75em;
}

.footer-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px;
    font-size: 0.65em;
    color: #2aff00;
    letter-spacing: 1px;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        font-size: 12px;
    }

    h1 {
        font-size: 1.5em;
        letter-spacing: 3px;
    }

    .system-id {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .clock-container {
        flex-direction: column;
        gap: 20px;
    }

    .analog-clock {
        width: 250px;
        height: 250px;
    }

    .time-value {
        font-size: 2em;
    }

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

    .footer-info {
        flex-direction: column;
    }
}
