@font-face {
    font-family: "Orbitron";
    src: url("font/Orbitron-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-display: swap;
}

:root {
    --bg: #0b0f19;
    --panel: #151c2e;
    --cyan: #00f0ff;
    --yellow: #ffb703;
    --pink: #ff4fd8;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    padding: 30px 16px;

    background:
        radial-gradient(
            circle at top,
            #14213d 0,
            var(--bg) 55%
        );

    color: var(--white);
    font-family: "Orbitron", system-ui, sans-serif;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    overflow-x: hidden;
}

/* =========================
   CARD
========================= */

.card {
    width: min(82vw, 400px);
    aspect-ratio: 1;

    padding: 22px;

    border: 2px solid var(--cyan);
    border-radius: 44px;

    background: var(--panel);

    box-shadow:
        0 0 22px rgba(0, 240, 255, 0.22);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* =========================
   LOGO
========================= */

.card img {
    width: 78%;
    max-height: 280px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 0 12px rgba(0, 240, 255, 0.14)
        );
}

/* =========================
   HITSTER TITLE
========================= */

.glitch {
    position: relative;

    margin: 12px 0 0;

    color: var(--yellow);

    font-size: clamp(38px, 10vw, 58px);
    font-weight: 800;
    line-height: 1;

    letter-spacing: 2px;

    text-shadow:
        0 0 14px rgba(255, 183, 3, 0.3);

    animation:
        glitch-main 3s infinite;
}

/*
   Omdat jouw HTML geen data-text gebruikt,
   zetten we "Hitster" hier in de pseudo-elementen.
*/

.glitch::before,
.glitch::after {
    content: "Hitster";

    position: absolute;
    inset: 0;

    pointer-events: none;

    opacity: 0;
}

.glitch::before {
    color: var(--white);

    text-shadow:
        -4px 0 var(--cyan);

    animation:
        glitch-before 3s infinite;
}

.glitch::after {
    color: var(--white);

    text-shadow:
        4px 0 var(--pink);

    animation:
        glitch-after 3s infinite;
}

/* =========================
   PLAY BUTTON
========================= */

.button-container {
    width: min(82vw, 400px);
    height: 62px;

    margin-top: 28px;

    border: 2px solid var(--yellow);
    border-radius: 999px;

    background: var(--yellow);

    box-shadow:
        0 0 18px rgba(105, 248, 255, 0.25);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.button-container a {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: inherit;

    color: var(--bg);

    text-decoration: none;

    font-size: 24px;
    font-weight: 800;

    transition:
        color 0.2s ease,
        text-shadow 0.2s ease;
}

.button-container:hover {
    transform: translateY(-2px);

    background: transparent;

    border-color: var(--cyan);

    box-shadow:
        0 0 22px rgba(0, 240, 255, 0.4);
}

.button-container:hover a {
    color: var(--cyan);

    text-shadow:
        0 0 10px rgba(0, 240, 255, 0.5);
}

.button-container:active {
    transform: scale(0.98);
}

/* =========================
   GLITCH ANIMATIONS
========================= */

@keyframes glitch-main {
    0%,
    85%,
    100% {
        transform: translate(0);
    }

    87% {
        transform: translate(4px, -1px);
    }

    89% {
        transform: translate(-3px, 1px);
    }

    92% {
        transform: translate(3px, 1px);
    }
}

@keyframes glitch-before {
    0%,
    84%,
    100% {
        transform: translate(0);
        opacity: 0;
    }

    85% {
        transform: translate(-7px, -2px);

        opacity: 1;

        clip-path:
            inset(10% 0 65%);
    }

    88% {
        transform: translate(6px, 2px);

        opacity: 0.8;

        clip-path:
            inset(35% 0 40%);
    }

    91% {
        opacity: 0;
    }
}

@keyframes glitch-after {
    0%,
    84%,
    100% {
        transform: translate(0);
        opacity: 0;
    }

    86% {
        transform: translate(7px, 2px);

        opacity: 1;

        clip-path:
            inset(60% 0 10%);
    }

    89% {
        transform: translate(-6px, -2px);

        opacity: 0.8;

        clip-path:
            inset(45% 0 30%);
    }

    92% {
        opacity: 0;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 480px) {
    body {
        padding:
            20px 14px;
    }

    .card {
        width: min(88vw, 360px);

        border-radius: 36px;
    }

    .card img {
        width: 80%;
    }

    .glitch {
        font-size:
            clamp(36px, 13vw, 52px);
    }

    .button-container {
        width: min(88vw, 360px);
        height: 56px;

        margin-top: 22px;
    }

    .button-container a {
        font-size: 21px;
    }
}

/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
    .glitch,
    .glitch::before,
    .glitch::after {
        animation: none;
    }

    .button-container {
        transition: none;
    }
}

