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

html {
    background-color: #0a0a0a;
    height: 100%;
    width: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100dvh;
    width: 100vw;
    font-family:
        'IBM Plex Mono', 'SF Mono', 'Monaco', 'Inconsolata',
        'Fira Mono', 'Droid Sans Mono', 'Source Code Pro', monospace;
    overflow: hidden;
}

.center-text {
    position: relative;
    z-index: 2;
    color: #e0e0e0;
    font-size: 30px;
    pointer-events: none;
}

.cursor {
    display: inline-block;
    width: 14px;
    height: 30px;
    background-color: #5865f2;
    margin-left: 2px;
    vertical-align: baseline;
    position: relative;
    top: 4px;
    animation: blink 1.5s infinite;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

@keyframes blink {
    0%,
    50% {
        opacity: 1;
    }
    51%,
    100% {
        opacity: 0;
    }
}

.skyline {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 560px;
    z-index: 1;
    overflow: hidden;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -webkit-mask-image:
        radial-gradient(
            ellipse 620px 340px at 50% 0%,
            rgb(0 0 0 / 0.25) 0%,
            rgb(0 0 0 / 0.55) 55%,
            black 100%
        ),
        linear-gradient(
            to top,
            rgb(0 0 0 / 0.8) 0px,
            rgb(0 0 0 / 0.45) 300px,
            transparent 650px
        );
    -webkit-mask-composite: source-in;
    mask-image:
        radial-gradient(
            ellipse 620px 340px at 50% 0%,
            rgb(0 0 0 / 0.25) 0%,
            rgb(0 0 0 / 0.55) 55%,
            black 100%
        ),
        linear-gradient(
            to top,
            rgb(0 0 0 / 0.8) 0px,
            rgb(0 0 0 / 0.45) 300px,
            transparent 650px
        );
    mask-composite: intersect;
}

.skyline canvas {
    animation: art-enter 1.4s ease-out both;
}

@keyframes art-enter {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skyline canvas {
        animation: none;
    }
}

@media (max-aspect-ratio: 6/5) {
    .skyline {
        height: 380px;
    }

    .skyline canvas {
        transform: translateX(-50%) scale(0.65);
        transform-origin: bottom center;
    }
}

@media (max-width: 480px) {
    .center-text {
        font-size: 22px;
    }

    .cursor {
        width: 11px;
        height: 22px;
        top: 3px;
    }
}
