@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
    --phosphor-green: #7CFC00;
    --phosphor-amber: #ffd966;
    --phosphor-dim: #4b9b39;
    --crt-black: #040506;
    --crt-glass: rgba(10, 32, 8, 0.8);
    --border: #19331a;
    --accent: #b9ff9f;
}

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

body {
    font-family: 'Press Start 2P', monospace;
    background: var(--crt-black);
    color: var(--phosphor-green);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    letter-spacing: 0.5px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 2px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
    opacity: 0.45;
    mix-blend-mode: overlay;
    animation: scanlines 5s linear infinite;
}

@keyframes scanlines {
    from { transform: translateY(0); }
    to { transform: translateY(4px); }
}

.crt {
    width: min(1080px, 100%);
    background: var(--crt-glass);
    border: 4px solid var(--border);
    box-shadow: 0 0 35px rgba(124, 252, 0, 0.25), inset 0 0 35px rgba(124, 252, 0, 0.1);
    backdrop-filter: blur(2px);
    position: relative;
}

.crt::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 40%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05), transparent 40%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(10, 54, 12, 0.6);
    border-bottom: 4px solid var(--border);
    font-size: 12px;
    text-transform: uppercase;
}

.status-left, .status-right {
    color: var(--accent);
}

.screen {
    padding: 32px 32px 48px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.section-title {
    font-size: 12px;
    color: var(--phosphor-amber);
    margin-bottom: 16px;
    text-shadow: 0 0 6px rgba(255, 217, 102, 0.6);
}

.scene {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: center;
}

@media (max-width: 900px) {
    .scene {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ascii-wagon {
        margin: 0 auto;
    }
}

.ascii-wagon {
    font-size: 12px;
    color: var(--accent);
    text-shadow: 0 0 15px rgba(185, 255, 159, 0.6);
}

.scene-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 12px;
    line-height: 1.7;
}

.stats .stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.stat-card {
    border: 2px solid var(--border);
    padding: 20px;
    background: rgba(9, 30, 11, 0.6);
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 180px;
}

.label {
    font-size: 11px;
    color: var(--phosphor-amber);
}

.value {
    font-size: 28px;
    color: var(--accent);
}

.note {
    font-size: 10px;
    line-height: 1.6;
    color: var(--phosphor-green);
}

.supply-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 10px;
    line-height: 1.6;
}

.highlight {
    color: var(--phosphor-amber);
}

.progress-bar {
    width: 100%;
    height: 18px;
    border: 2px solid var(--border);
    position: relative;
    overflow: hidden;
}

.progress-bar-fill {
    position: absolute;
    inset: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(185, 255, 159, 0.3), rgba(185, 255, 159, 0.9));
    box-shadow: inset 0 0 12px rgba(185, 255, 159, 0.9);
    animation: fillTrail 6s ease-in-out forwards;
    animation-delay: 1s;
}

@keyframes fillTrail {
    to { width: 86%; }
}

.log {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-size: 10px;
    line-height: 1.7;
}

.log li {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .log li {
        grid-template-columns: 1fr;
    }

    .log-date {
        order: -1;
    }
}

.log-date {
    color: var(--phosphor-amber);
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.forecast-card {
    border: 2px solid var(--border);
    padding: 20px;
    background: rgba(9, 30, 11, 0.6);
    min-height: 160px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card-title {
    font-size: 11px;
    color: var(--phosphor-amber);
}

.cta-panel .button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.trail-button {
    display: inline-block;
    padding: 12px;
    border: 2px solid var(--border);
    background: rgba(9, 30, 11, 0.6);
    color: var(--accent);
    text-decoration: none;
    font-size: 10px;
    text-align: center;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.trail-button:hover, .trail-button:focus {
    background: rgba(185, 255, 159, 0.15);
    box-shadow: 0 0 12px rgba(185, 255, 159, 0.4);
}

.cta-note {
    font-size: 10px;
    color: var(--phosphor-green);
}

.footer {
    border-top: 4px solid var(--border);
    padding: 20px 32px 28px;
    background: rgba(10, 54, 12, 0.6);
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 10px;
    text-align: center;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.footer-links, .footer-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.blink {
    animation: blink 1.2s steps(2, start) infinite;
}

@keyframes blink {
    to { visibility: hidden; }
}

[data-type] {
    position: relative;
    min-height: 16px;
    display: inline-block;
}

.type-cursor::after {
    content: '_';
    position: absolute;
    right: -12px;
    animation: blink 0.6s steps(2, start) infinite;
}

@media (max-width: 768px) {
    body {
        padding: 16px;
    }

    .screen {
        padding: 24px;
    }

    .status-bar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
