:root {
    --pink: #ff3bd4;
    --violet: #6b28ff;
    --deep-violet: #42006e;
    --hot-pink: #ff4df5;
    --text-main: #ffffff;
    --outline: #050109;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100dvh;
    padding: 24px;
    display: grid;
    place-items: center;
    font-family: "Bitcount Single", system-ui;
    background-image: url(kaknes.png);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow-x: hidden;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255, 80, 201, 0.35), rgba(25, 4, 46, 0.7));
    pointer-events: none;
}

.arcade-shell {
    position: relative;
    z-index: 1;
    width: min(1120px, 95vw);
    border: 6px solid #ff9cff;
    padding: clamp(18px, 3vw, 34px);
    background: rgba(33, 6, 58, 0.72);
    box-shadow: 0 0 0 4px var(--deep-violet), 0 0 26px rgba(255, 77, 245, 0.9), 0 0 90px rgba(162, 0, 255, 0.6);
    backdrop-filter: blur(2px);
}

.title {
    margin: 0;
    text-align: center;
    color: var(--text-main);
    font-size: clamp(2rem, 5vw, 3.4rem);
    letter-spacing: 2px;
    text-shadow: 3px 3px 0 var(--outline), -3px -3px 0 var(--outline), 3px -3px 0 var(--outline), -3px 3px 0 var(--outline);
}

.subtitle {
    margin: 10px 0 24px;
    text-align: center;
    color: #ffe7ff;
    letter-spacing: 1px;
    font-size: clamp(0.9rem, 2vw, 1.15rem);
}

.container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 30px);
}

.pixel-box {
    min-height: clamp(94px, 13vw, 132px);
    display: grid;
    place-items: center;
    border: 5px solid #ff9cff;
    background: linear-gradient(145deg, var(--pink), var(--violet));
    color: var(--text-main);
    text-decoration: none;
    font-size: clamp(1rem, 2.4vw, 1.25rem);
    letter-spacing: 1.5px;
    cursor: pointer;
    text-shadow: 2px 2px 0 var(--outline), -2px -2px 0 var(--outline), 2px -2px 0 var(--outline), -2px 2px 0 var(--outline);
    box-shadow: 0 0 0 4px var(--deep-violet), 0 0 15px var(--hot-pink), 0 0 44px rgba(162, 0, 255, 0.85);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
    animation: neonPulse 2.8s infinite ease-in-out;
    font-family: inherit;
}

.pixel-box:hover,
.pixel-box:focus-visible {
    transform: scale(1.04) translateY(-3px);
    box-shadow: 0 0 0 4px var(--deep-violet), 0 0 25px var(--hot-pink), 0 0 60px #ff00ff, 0 0 100px #7a00ff;
    outline: none;
}

.pixel-box.active {
    animation: press 180ms ease;
}

.visitor-counter {
    margin: 22px 0 0;
    text-align: center;
    color: #ffe7ff;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    text-shadow: 1px 1px 0 var(--outline);
}

@keyframes press {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.94);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes neonPulse {
    0%,
    100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.12);
    }
}

@media (max-width: 1024px) {
    .arcade-shell {
        width: min(560px, 95vw);
    }

    .container {
        grid-template-columns: 1fr;
    }

    .pixel-box {
        min-height: 90px;
    }
}

@media (max-width: 600px) {
    body {
        padding: 14px;
    }

    .arcade-shell {
        border-width: 4px;
        padding: 16px;
    }

    .title {
        letter-spacing: 1px;
    }

    .subtitle {
        margin-bottom: 14px;
    }
}
