@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    overflow: hidden;
    background: #000000;
    color: #ddd;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    cursor: crosshair;
}

@media (pointer: fine) and (hover: hover) {
    body,
    html,
    a,
    .nav-link {
        cursor: none;
    }
}

/* Matrix Canvas */
canvas#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

/* Main content overlay */
.content {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    gap: 2.5rem;
}

/* Logo */
.death-title {
    max-width: 90%;
    width: 550px;
    height: auto;
    max-height: 38vh;
    filter: drop-shadow(0 0 40px rgba(200, 200, 200, 0.15));
    user-select: none;
    transition: filter 0.4s ease;
}

/* Navigation */
nav {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #8c8c8c;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 52px;
}

.nav-link i,
.nav-link img.nav-icon {
    font-size: 2.35rem;
    margin-bottom: 0.28rem;
    transition:
        color 0.4s ease,
        filter 0.4s ease,
        transform 0.4s ease;
}

.nav-link i {
    color: #8c8c8c;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.08));
}

.nav-link img.nav-icon {
    width: 2.35rem;
    height: 2.35rem;
    object-fit: contain;
    display: block;
    filter:
        brightness(0) invert(55%)
        drop-shadow(0 0 6px rgba(255, 255, 255, 0.08));
}

.nav-link:hover,
.nav-link:focus-visible {
    color: #8c8c8c;
    transform: translateY(-4px);
}

.nav-link:hover i,
.nav-link:focus-visible i {
    color: #ffffff;
    filter:
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.55))
        drop-shadow(0 0 22px rgba(255, 255, 255, 0.28));
}

.nav-link:hover img.nav-icon,
.nav-link:focus-visible img.nav-icon {
    filter:
        brightness(0) invert(100%)
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.55))
        drop-shadow(0 0 22px rgba(255, 255, 255, 0.28));
}

.nav-label {
    letter-spacing: 2px;
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #8c8c8c;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .death-title {
        width: 280px;
        max-height: 32vh;
    }
    .content {
        gap: 1.8rem;
        padding: 1rem;
    }
    nav {
        gap: 1rem;
    }
    .nav-link i {
        font-size: 2rem;
    }
    .nav-link img.nav-icon {
        width: 2rem;
        height: 2rem;
    }
    .nav-link {
        min-width: 44px;
        font-size: 0.8rem;
    }
    .nav-label {
        font-size: 0.6rem;
        letter-spacing: 1.5px;
    }
}

/* Thin hitscan X cursor (fine pointer only) */
.hitscan-cursor {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10000;
    pointer-events: none;
    margin: 0;
    padding: 0;
    width: 0;
    height: 0;
    will-change: transform;
}

@media (pointer: fine) and (hover: hover) {
    .hitscan-cursor.is-active {
        display: block;
    }
}

.hitscan-x {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
}

.hitscan-x::before,
.hitscan-x::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 14px;
    height: 1px;
    margin-left: -7px;
    margin-top: -0.5px;
    background: #ffffff;
    transform-origin: center center;
}

.hitscan-x::before {
    transform: rotate(45deg);
}

.hitscan-x::after {
    transform: rotate(-45deg);
}

.hitscan-flash {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10001;
    pointer-events: none;
    margin: 0;
    padding: 0;
    width: 0;
    height: 0;
    transform: translate3d(var(--hx, 0px), var(--hy, 0px), 0) scale(1.4);
    animation: hitscan-click-flash 180ms ease-out forwards;
}

.hitscan-flash .hitscan-x::before,
.hitscan-flash .hitscan-x::after {
    width: 18px;
    margin-left: -9px;
    background: #ffffff;
}

@keyframes hitscan-click-flash {
    0% {
        opacity: 1;
        transform: translate3d(var(--hx, 0px), var(--hy, 0px), 0) scale(1.4);
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--hx, 0px), var(--hy, 0px), 0) scale(1.1);
    }
}

/* Tiny scanline */
.content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(255,255,255,0.02) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 3;
    opacity: 0.15;
}