:root {
    --bg-color: #0a0a0c;
    --text-color: #e0e0e0;
    --accent-cyan: #00f3ff;
    --accent-magenta: #ff00ff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    perspective: 1000px;
    cursor: none;
    /* We'll use a custom cursor */
}

#pixel-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
    grid-template-rows: repeat(auto-fill, minmax(30px, 1fr));
    z-index: 1;
    opacity: 0.3;
}

.bg-pixel {
    width: 100%;
    height: 100%;
    border: 0.1px solid rgba(255, 255, 255, 0.02);
    transition: background 0.5s ease;
}

.bg-pixel:hover {
    background: var(--accent-cyan);
    transition: 0s;
    box-shadow: 0 0 15px var(--accent-cyan);
}

#custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    /* Center cursor circle */
    transition: width 0.3s, height 0.3s, border-radius 0.3s, border-color 0.3s;
    mix-blend-mode: difference;
}

.trail-pixel {
    position: fixed;
    pointer-events: none;
    z-index: 5;
    border-radius: 2px;
}

.container {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    /* Fast response for mouse move */
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-magenta));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.25rem;
    color: #888;
    margin-bottom: 2.5rem;
}

.excuse-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 1rem;
    border-left: 4px solid var(--accent-cyan);
    margin: 2rem 0;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.excuse-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

#excuse-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #ccc;
}

.crisis-meter {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
}

.crisis-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-magenta));
    box-shadow: 0 0 15px var(--accent-cyan);
    transition: width 0.3s ease;
}

.chaos-mode-active {
    animation: shake 0.1s infinite;
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        filter: brightness(1);
    }

    50% {
        opacity: 0.7;
        filter: brightness(1.5);
    }
}

.btn-risk {
    background: transparent;
    border: 1px solid var(--accent-magenta);
    color: var(--accent-magenta);
    padding: 1rem 2rem;
    border-radius: 3rem;
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-risk:hover {
    background: var(--accent-magenta);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
}

.pixel-pet {
    position: fixed;
    font-size: 3rem;
    cursor: pointer;
    user-select: none;
    pointer-events: none;
    /* Don't block mouse events */
    z-index: 1000;
    filter: drop-shadow(0 0 15px var(--accent-cyan));
    transition: transform 0.1s ease-out;
}

.socials {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0.6;
}

.social-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--accent-cyan);
    opacity: 1;
}

.hero-img {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--glass-border);
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: screen;
}

.glitch-text {
    position: relative;
    display: inline-block;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

.glitch-active {
    animation: glitch 0.2s infinite;
}