@import url("https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap");

:root {
    --green: #7cff4f;
    --green-dim: rgba(124, 255, 79, 0.55);
    --green-faint: rgba(124, 255, 79, 0.18);
    --bg: #020402;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--green);
    font-family: "Share Tech Mono", "Courier New", monospace;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(124,255,79,0.08) 1px, transparent 1px),
        radial-gradient(circle at center, transparent 45%, rgba(0,0,0,0.75) 100%);
    background-size: 100% 4px, 100% 100%;
    z-index: 10;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: rgba(124, 255, 79, 0.025);
    animation: flicker 0.12s infinite alternate;
    z-index: 11;
}

.terminal {
    min-height: 100vh;
    padding: 1.5rem;
    text-shadow:
        0 0 6px var(--green),
        0 0 18px var(--green-faint);
}

.top-line {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    line-height: 1.3;
}

.top-line p {
    margin: 0 0 0.25rem;
}

.clearance-box {
    border: 1px solid var(--green);
    padding: 0.75rem 1rem;
    min-width: 280px;
    box-shadow: inset 0 0 12px var(--green-faint);
}

.hero {
    max-width: 1100px;
    margin: 3rem auto 0;
    text-align: center;
    border-bottom: 1px solid var(--green);
    padding-bottom: 2rem;
}

.radar {
    position: relative;
    width: min(420px, 80vw);
    height: 220px;
    margin: 0 auto 1.5rem;
    border-top: 2px solid var(--green);
    border-radius: 50% 50% 0 0;
    opacity: 0.9;
}

.radar::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 2px;
    height: 190px;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
}

.radar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
}

.base {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 220px;
    height: 70px;
    transform: translateX(-50%);
    border: 2px solid var(--green);
    border-bottom: 0;
    clip-path: polygon(20% 100%, 20% 45%, 35% 45%, 35% 10%, 65% 10%, 65% 45%, 80% 45%, 80% 100%);
}

.tower {
    position: absolute;
    left: 50%;
    bottom: 70px;
    width: 62px;
    height: 115px;
    transform: translateX(-50%);
    border: 2px solid var(--green);
    clip-path: polygon(35% 100%, 35% 0, 65% 0, 65% 100%);
}

.hero h1 {
    margin: 0;
    font-size: clamp(4rem, 13vw, 9rem);
    line-height: 0.85;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 400;
    text-shadow:
        0 0 8px var(--green),
        0 0 24px rgba(124, 255, 79, 0.55);
}

.subtitle {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 8vw, 5rem);
    margin: 1rem 0 2rem;
    font-size: clamp(0.9rem, 2vw, 1.25rem);
    letter-spacing: 0.18em;
}

.hero p {
    max-width: 660px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--green-dim);
}

.button {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    color: var(--green);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: 1px solid var(--green);
    box-shadow:
        0 0 12px rgba(124, 255, 79, 0.4),
        inset 0 0 12px rgba(124, 255, 79, 0.15);
}

.button:hover {
    background: var(--green);
    color: var(--bg);
    text-shadow: none;
}

@keyframes flicker {
    from { opacity: 0.75; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .top-line {
        flex-direction: column;
    }

    .clearance-box {
        min-width: 0;
    }

    .hero h1 {
        letter-spacing: 0.04em;
    }

    .subtitle {
        flex-direction: column;
        gap: 0.5rem;
    }

    .button {
        width: 100%;
    }
}

.prompt-title {
    margin: 0;
    font-size: clamp(3rem, 10vw, 7rem);
    line-height: 1;
    letter-spacing: 0.04em;
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    text-shadow:
        0 0 8px var(--green),
        0 0 24px rgba(124, 255, 79, 0.55);
}

.cursor {
    display: inline-block;
    width: 0.45em;
    height: 0.9em;
    margin-left: 0.12em;
    background: var(--green);
    vertical-align: -0.08em;
    box-shadow: 0 0 12px var(--green);
    animation: blink 0.85s steps(1) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.prompt-command {
    margin-left: -2rem;
}

.pixel-icon {
    width: 48px;
    height: 48px;
    position: relative;
}
.unit-row {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: clamp(1.25rem, 4vw, 4rem);
    margin: 2rem auto 3rem;
    padding: 0 1rem 1rem;
    border-bottom: 2px solid var(--green);
}

.icon {
    width: 72px;
    height: 56px;
    position: relative;
    color: var(--green);
    filter: drop-shadow(0 0 7px var(--green));
}

.icon::before,
.icon::after {
    content: "";
    position: absolute;
    background: var(--green);
}

/* Soldier */
.soldier::before {
    left: 30px;
    top: 4px;
    width: 12px;
    height: 12px;
    box-shadow:
        0 14px 0 2px var(--green),
        -10px 30px 0 -3px var(--green),
        10px 30px 0 -3px var(--green),
        -15px 22px 0 -4px var(--green),
        15px 22px 0 -4px var(--green);
}

.soldier::after {
    left: 34px;
    top: 28px;
    width: 4px;
    height: 24px;
    box-shadow:
        -10px 18px 0 0 var(--green),
        10px 18px 0 0 var(--green);
}

/* Tank */
.tank::before {
    left: 8px;
    top: 30px;
    width: 52px;
    height: 12px;
    box-shadow:
        8px -12px 0 -2px var(--green),
        18px -18px 0 -4px var(--green),
        44px -20px 0 -5px var(--green);
}

.tank::after {
    left: 6px;
    top: 44px;
    width: 58px;
    height: 6px;
    box-shadow:
        8px 0 0 0 var(--green),
        20px 0 0 0 var(--green),
        32px 0 0 0 var(--green),
        44px 0 0 0 var(--green);
}

/* Artillery */
.artillery::before {
    left: 8px;
    top: 38px;
    width: 44px;
    height: 8px;
    box-shadow:
        12px -10px 0 -2px var(--green),
        28px -24px 0 -3px var(--green),
        42px -30px 0 -4px var(--green);
}

.artillery::after {
    left: 52px;
    top: 14px;
    width: 24px;
    height: 4px;
    transform: rotate(-18deg);
    transform-origin: left center;
}

/* Aircraft */
.aircraft::before {
    left: 4px;
    top: 24px;
    width: 64px;
    height: 8px;
    clip-path: polygon(0 45%, 42% 45%, 52% 0, 62% 45%, 100% 45%, 100% 60%, 62% 60%, 52% 100%, 42% 60%, 0 60%);
}

.aircraft::after {
    left: 32px;
    top: 12px;
    width: 8px;
    height: 34px;
}

/* Ship */
.ship::before {
    left: 6px;
    top: 34px;
    width: 60px;
    height: 14px;
    clip-path: polygon(0 0, 100% 0, 82% 100%, 18% 100%);
}

.ship::after {
    left: 26px;
    top: 16px;
    width: 20px;
    height: 18px;
    box-shadow:
        -8px 10px 0 -3px var(--green),
        12px 8px 0 -4px var(--green);
}

/* Missile */
.missile::before {
    left: 30px;
    top: 4px;
    width: 12px;
    height: 42px;
    clip-path: polygon(50% 0, 100% 22%, 100% 78%, 70% 100%, 30% 100%, 0 78%, 0 22%);
}

.missile::after {
    left: 22px;
    top: 38px;
    width: 28px;
    height: 12px;
    clip-path: polygon(0 100%, 25% 0, 50% 100%, 75% 0, 100% 100%);
}