/* ===========================================
   1. BASE SETUP
   =========================================== */
html {
    font-size: 14px;
    height: 100%;
    background-color: #0a0a0f;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    background-attachment: fixed;
    color: #fcee09;
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 80px;
}

    /* ===========================================
   2. MOVING GRID OVERLAY — FIXED SCROLL BUG
   =========================================== */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: linear-gradient(rgba(0, 240, 255, 0.15) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 240, 255, 0.15) 1px, transparent 1px);
        background-size: 40px 40px;
        animation: moveGrid 2s linear infinite;
        /* Keep the grid ON TOP of background */
        z-index: 0;
        /* The ACTUAL mobile scroll fix */
        pointer-events: none;
        touch-action: none; /* <-- stops iOS/Android from blocking scroll */
    }

@keyframes moveGrid {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 40px;
    }
}

/* ===========================================
   3. CONTENT ABOVE GRID
   =========================================== */
header, main, footer, .container {
    position: relative;
    z-index: 1;
}

.container {
    color: #fcee09;
}

/* ===========================================
   4. TEXT & HEADINGS
   =========================================== */
h1, h2, h3 {
    color: #fcee09;
    text-shadow: 0 0 5px #fcee09, 0 0 10px #00f0ff, 0 0 20px #ff003c;
}

/* ===========================================
   5. LINKS
   =========================================== */
a {
    color: #00f0ff;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    position: relative;
}

    a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        left: 0;
        bottom: -2px;
        background: #ff003c;
        transition: width 0.3s ease-in-out;
    }

    a:hover::after {
        width: 100%;
    }

    a.btn::after {
        display: none;
    }

/* ===========================================
   6. FLICKER
   =========================================== */
.flicker {
    animation: flickerAnimation 3s infinite;
}

@keyframes flickerAnimation {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
    }

    20%, 22%, 24%, 55% {
        opacity: 0.4;
    }
}

/* ===========================================
   7. CARDS
   =========================================== */
.card {
    background: rgba(10, 10, 15, 0.8) !important;
    border: 1px solid #00f0ff;
    box-shadow: 0 0 15px #00f0ff, 0 0 25px #ff003c;
    border-radius: 12px;
    padding: 1rem;
    transition: transform 0.2s;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0 20px #00f0ff, 0 0 30px #ff003c;
    }

/* ===========================================
   8. BUTTONS
   =========================================== */
.btn, button {
    background-color: #fcee09;
    color: #0a0a0f;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .btn:hover, button:hover {
        background-color: #00f0ff;
        color: #0a0a0f;
        box-shadow: 0 0 10px #00f0ff, 0 0 20px #ff003c;
    }

    .btn:focus,
    .btn:active:focus,
    .form-control:focus,
    .form-check-input:focus {
        box-shadow: 0 0 0 0.2rem #ff003c, 0 0 0 0.35rem #00f0ff;
    }

    .btn::after {
        content: '';
        position: absolute;
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
        border-radius: 12px;
        border: 2px solid #ff003c;
        box-shadow: 0 0 10px #00f0ff;
        transform: scale(0.85);
        opacity: 0;
        transition: transform 0.25s, opacity 0.25s;
        pointer-events: none;
    }

    .btn:hover::after,
    .btn:focus::after,
    .btn:active::after {
        transform: scale(1);
        opacity: 1;
    }

/* ===========================================
   9. FORM CONTROLS
   =========================================== */
.form-control, .form-check-input {
    background-color: #1a1a2e;
    color: #fcee09;
    border: 1px solid #00f0ff;
}

    .form-control::placeholder {
        color: #ff003c;
        text-align: end;
    }

    .form-control:focus::placeholder {
        text-align: start;
        color: #00f0ff;
    }

/* ===========================================
   10. NAVBAR
   =========================================== */
.navbar {
    background-color: #0a0a0f !important;
    border-bottom: 2px solid #fcee09;
    z-index: 10;
}

.navbar-brand, .nav-link {
    color: #fcee09 !important;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
}

    .navbar-brand:hover,
    .nav-link:hover {
        color: #00f0ff !important;
        text-shadow: 0 0 6px #00f0ff, 0 0 10px #ff003c;
    }

    .nav-link.active {
        color: #ff003c !important;
        text-shadow: 0 0 8px #ff003c;
    }

.navbar-toggler-icon {
    background-color: #fcee09;
}

/* ===========================================
   11. FOOTER
   =========================================== */
footer {
    background-color: #0a0a0f !important;
    color: #00f0ff;
    text-align: center;
    padding: 1rem;
    border-top: 2px solid #fcee09;
    z-index: 10;
}

    footer a {
        color: inherit;
        text-decoration: none;
    }

        footer a:hover {
            color: #ff003c;
            text-shadow: 0 0 5px #ff003c;
        }

/* ===========================================
   12. GAME TEXT COLORS
   =========================================== */
.game-title {
    color: #fcee09;
    font-weight: 700;
    text-shadow: 0 0 6px #fcee09, 0 0 10px #00f0ff;
}

.game-platform {
    color: #00f0ff;
    font-weight: 600;
}

.game-role {
    color: #ff003c;
    font-weight: 600;
    opacity: 0.95;
}
