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

#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

body {
    font-family: 'Courier New', monospace;
    background-color: #000;
    color: #00ff41;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.container {
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

h1 {
    font-family: 'Courier New', monospace;
    font-size: clamp(1.6rem, 10vw, 4rem);
    font-weight: 700;
    letter-spacing: clamp(0.08em, 1.5vw, 0.35em);
    color: #00ff41;
    text-shadow:
        0 0 10px rgba(0, 255, 65, 1),
        0 0 30px rgba(0, 255, 65, 0.6),
        0 0 60px rgba(0, 255, 65, 0.3);
    margin-bottom: 1rem;
    animation: flicker 5s ease-in-out infinite;
}

p {
    font-size: 1rem;
    color: #00882a;
    letter-spacing: 0.15em;
    font-family: 'Courier New', monospace;
}

/* ── Matrix terminal clock ── */
.countdown {
    position: relative;
    display: inline-block;
    margin-top: 3rem;
    padding: 1.8rem 2.5rem;
    background: rgba(0, 8, 0, 0.88);
    border: 1px solid #00ff41;
    box-shadow:
        0 0 8px rgba(0, 255, 65, 0.4),
        0 0 30px rgba(0, 255, 65, 0.12),
        inset 0 0 40px rgba(0, 0, 0, 0.6);
    max-width: 100%;
    box-sizing: border-box;
}

/* scanline overlay */
.countdown::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0, 0, 0, 0.08) 3px,
        rgba(0, 0, 0, 0.08) 4px
    );
    pointer-events: none;
}

.countdown-inner {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.9rem 1rem;
    background: rgba(0, 18, 0, 0.7);
    border: 1px solid #00aa28;
    min-width: 76px;
    position: relative;
    box-shadow:
        0 0 10px rgba(0, 255, 65, 0.15),
        inset 0 0 12px rgba(0, 0, 0, 0.5);
}

.countdown-item span {
    font-size: 2.2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #00ff41;
    text-shadow:
        0 0 8px rgba(0, 255, 65, 0.9),
        0 0 20px rgba(0, 255, 65, 0.5),
        0 0 40px rgba(0, 255, 65, 0.2);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
    animation: flicker 4s ease-in-out infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.88; }
    52%       { opacity: 1; }
    54%       { opacity: 0.93; }
}

.countdown-item label {
    font-size: 0.55rem;
    color: #00aa28;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-top: 0.4rem;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 6px rgba(0, 200, 60, 0.5);
}

/* ── Mobile responsiveness ── */
@media (max-width: 480px) {
    .container {
        padding: 1.2rem;
    }

    .countdown {
        padding: 1rem 0.8rem;
        width: 100%;
    }

    .countdown-inner {
        gap: 0.4rem;
    }

    .countdown-item {
        min-width: 0;
        flex: 1;
        padding: 0.6rem 0.3rem;
    }

    .countdown-item span {
        font-size: clamp(1.2rem, 5.5vw, 2.2rem);
    }

    .countdown-item label {
        letter-spacing: 0.1em;
        font-size: 0.5rem;
    }
}
