:root {
    --glow-color: #0ac7ed;
    --old-color: #ff4d4d;
    --bg-color: #050510;
}

html, body {
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed;
    color: white;
    font-family: "Arial Black", sans-serif;
}

.container {
    text-align: center;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden; 
    min-height: 100dvh;
}

h1 {
    font-size: clamp(2rem, 15dvw, 6rem);
    margin-bottom: 15rem;
    color: #fff; /* Ein sauberes Weiß für den Kern */
    position: relative;
    z-index: 10;
    animation: neonShadow 5s ease-in-out infinite;
}

@keyframes neonShadow {
    0%, 100% {
        text-shadow: 
            0 0 8px #fff,
            -1px -1px 15px var(--glow-color),
            1px 1px 15px #bd00ff;
    }

    25% {
        text-shadow: 
            -2px 2px 8px #fff,
            -4px 4px 18px var(--glow-color),
            4px -4px 18px #ff00de;
    }

    50% {
        text-shadow: 
            0 0 10px #fff,
            0 0 18px var(--old-color),
            0 0 25px #ff8000;
    }

    75% {
        text-shadow: 
            2px -2px 8px #fff,
            4px -4px 18px var(--glow-color),
            -4px 4px 18px #00ff9d;
    }
}

.year-display {
    font-size: clamp(2rem, 15dvw, 6rem);
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.digit-inset {
    display: inline-block;
    color: #f1f1f3;
    line-height: 1;
    text-shadow: -1px -1px 0px rgba(0, 0, 0, 0.9),
        1px 1px 0px rgba(243, 240, 240, 0.15);
}

.digit-slot {
    display: inline-grid;
    grid-template-areas: "stack";
    vertical-align: baseline;
    width: 1ch;
    margin-left: 10px;
}

.digit {
    grid-area: stack;
    align-self: end;
}

#five {
    z-index: 3;
    color: var(--old-color);
    text-shadow: 0 0 20px rgba(255, 77, 77, 0.6), 1px 1px 2px #000;
}

#six-target {
    z-index: 1;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, opacity;
    backface-visibility: hidden;
    filter: blur(0);
}

#drone {
    position: absolute;
    top: 10%;
    right: -350px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px;
}

.drone-body img {
    width: 130px;
    filter: drop-shadow(0 0 15px var(--glow-color));
}

#cargo {
    font-size: 4.5rem;
    font-weight: bold;
    margin-top: -10px;
    color: white;
    transition: opacity 0.3s;
}

@keyframes droneAction {
    0% { right: -350px; top: 10%; }
    35% { right: calc(50% - 350px); top: calc(50% - 140px); }
    75% { right: calc(50% - 110px); top: calc(50% - 140px); }
    100% { right: 130%; top: 5%; }
}

.drone-fly {
    animation: droneAction 8s ease-in-out forwards;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 0 12px currentColor;
}

@keyframes particleAnimate {
    0% { transform: translate(0, 0) scale(1.5); opacity: 1; }
    100% { transform: translate(var(--dx), calc(var(--dy) + 400px)) scale(0); opacity: 0; }
}

.active-glow {
    color: var(--glow-color);
    filter: drop-shadow(0 0 15px var(--glow-color)) !important;
    text-shadow: 0 0 10px var(--glow-color);
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .year-display { font-size: 18vw; }
    #drone { width: 100px; }
    .drone-body img { width: 80px; }

    #six-target {
        transform: translateX(40px);
    }

    .digit-slot { margin-left: 0.2rem; }
    #cargo { font-size: 2.2rem; }

    @keyframes droneAction {
        0% { left: 120%; top: 5%; }
        35% {
            left: 80%;
            transform: translateX(calc(-50% + 1.9ch));
            top: calc(50% - 80px);
        }
        75% {
            left: 50%;
            transform: translateX(calc(-50% + 1.9ch));
            top: calc(50% - 80px);
        }
        100% { left: -130%; top: 0%; }
    }
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 0 12px currentColor;
}

@keyframes particleAnimate {
    0% {
        transform: translate(0, 0) scale(1.5);
        opacity: 1;
    }
    5% {
        transform: translate(calc(var(--dx) * 0.4), calc(var(--dy) * 0.4))
            scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(var(--dx), calc(var(--dy) + 400px)) scale(0);
        opacity: 0;
    }
}

.active-glow {
    color: var(--glow-color);
    filter: drop-shadow(0 0 10px var(--glow-color));
    font-variant-numeric: tabular-nums;
}


