/* =============================================
   BASE.CSS - Global Reset / CSS Variables / Background / Keyframes
   ============================================= */

/* Google Fonts loaded via HTML <link>, not imported here */

/* ---------- CSS Variables ---------- */
:root {
    --neon-orange: #ff6b35;
    --neon-yellow: #f7c531;
    --neon-blue: #00d4ff;
    --neon-purple: #b829dd;
    --dark-bg: #0a0a12;
    --card-bg: #12121a;
    --card-border: #1e1e2e;
    /* Embed bottom bar (Gameflare etc.) at iframe viewport bottom, cropped by overflow */
    --embed-bottom-crop: 88px;
}

/* ---------- Global Reset ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background: var(--dark-bg);
    overflow-x: hidden;
    color: #fff;
}

/* ---------- Racing Grid Background (Fixed) ---------- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, rgba(255,107,53,0.03) 1px, transparent 1px),
        linear-gradient(rgba(255,107,53,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ---------- Top Gradient Glow (Fixed) ---------- */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255,107,53,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(0,212,255,0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: bgPulse 8s ease-in-out infinite;
}

/* ---------- Global Keyframes ---------- */
@keyframes bgPulse {
    0%, 100% { opacity: 0.8; }
    50%       { opacity: 1; }
}

@keyframes frameBorder {
    0%, 100% { box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px rgba(255,107,53,0.3); }
    33%       { box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px rgba(247,197,49,0.4); }
    66%       { box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px rgba(0,212,255,0.4); }
}

@keyframes speedMove {
    0%   { transform: translateX(-100%); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateX(200vw); opacity: 0; }
}
