/* =============================================
   BASE RESET & VARIABLES
============================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary:    #ff4d00;
    --primary-glow: rgba(255, 77, 0, 0.45);
    --accent:     #ffcc00;
    --dark:       #0a0c12;
    --dark2:      #12151f;
    --dark3:      #1a1e2e;
    --text:       #e8eaf0;
    --text-muted: #7a8099;
    --gradient:   linear-gradient(135deg, #ff4d00 0%, #ff0066 100%);
    --font-display: 'Orbitron', sans-serif;
    --font-body:    'Rajdhani', sans-serif;
    --radius:     12px;
    --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Preserve older pages' look when NOT game-page — REMOVED, all pages now use dark theme */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================================
   NAVBAR
============================================= */
.navbar {
    background: rgba(10, 12, 18, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 77, 0, 0.2);
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.logo-full { display: inline; }

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}



.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: color var(--transition);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.hamburger svg {
    width: 26px;
    height: 26px;
    stroke-width: 2;
    display: block;
}

/* =============================================
   HERO / BANNER
============================================= */
.game-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-banner {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: brightness(0.55) saturate(1.2);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(10,12,18,0.5) 0%, rgba(10,12,18,0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 5rem;
    padding-bottom: 5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-badge {
    display: inline-block;
    background: var(--gradient);
    color: white;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 var(--primary-glow); }
    50%       { box-shadow: 0 0 0 10px transparent; }
}

.game-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5.5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 0 40px rgba(255,77,0,0.5);
    margin-bottom: 1rem;
    letter-spacing: -1px;
    white-space: nowrap;
}

.game-title .colon { color: var(--primary); }
.game-title .run-text {
    color: var(--accent);
    text-shadow: 0 0 30px rgba(255,204,0,0.5);
}

.game-tagline {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--primary);
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.game-desc {
    font-size: 1.15rem;
    color: rgba(232,234,240,0.8);
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.gplay-btn {
    display: inline-block;
    transition: transform var(--transition), filter var(--transition);
}

.gplay-btn:hover {
    transform: scale(1.06) translateY(-2px);
    filter: brightness(1.1) drop-shadow(0 6px 20px rgba(255,77,0,0.4));
}

.gplay-badge {
    height: 64px;
    width: auto;
    display: block;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.4);
    display: flex;
    animation: bounce 2s infinite;
}

.scroll-hint svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* =============================================
   GAME INTRO
============================================= */
.game-intro {
    background: var(--dark2);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.game-intro::before {
    content: '';
    position: absolute;
    top: -80px; left: -80px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(255,77,0,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.intro-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4rem;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.intro-grid.visible {
    opacity: 1;
    transform: translateY(0);
}

.intro-icon-wrap {
    position: relative;
    flex-shrink: 0;
}

.game-icon-large {
    width: 160px;
    height: 160px;
    border-radius: 28px;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 40px rgba(255,77,0,0.35);
}

.icon-glow {
    position: absolute;
    inset: -12px;
    border-radius: 36px;
    background: radial-gradient(circle, rgba(255,77,0,0.35) 0%, transparent 70%);
    animation: glow-pulse 3s ease-in-out infinite;
    z-index: 0;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.08); }
}

.intro-text h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.intro-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.mini-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stat.visible { opacity: 1; transform: translateY(0); }

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 77, 0, 0.12);
    border: 1px solid rgba(255, 77, 0, 0.25);
    color: var(--primary);
}

.stat-icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 2;
}

.stat-label {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* =============================================
   FEATURES
============================================= */
.features-section {
    background: var(--dark);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.features-section::after {
    content: '';
    position: absolute;
    bottom: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,77,0,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    color: #fff;
    margin-bottom: 3.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feat-card {
    background: var(--dark3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

.feat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
    border-radius: 2px 2px 0 0;
}

.feat-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(var(--i, 0) * 0.08s);
}

.feat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,77,0,0.3);
    box-shadow: 0 12px 40px rgba(255,77,0,0.15);
}

.feat-card:hover::before { transform: scaleX(1); }

.feat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 77, 0, 0.1);
    border: 1px solid rgba(255, 77, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    color: var(--primary);
    transition: background var(--transition), border-color var(--transition);
}

.feat-icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 2;
}

.feat-card:hover .feat-icon {
    background: rgba(255, 77, 0, 0.2);
    border-color: rgba(255, 77, 0, 0.5);
}

.feat-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.7rem;
    letter-spacing: 0.5px;
}

.feat-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

/* =============================================
   CTA SECTION
============================================= */
.cta-section {
    background: linear-gradient(135deg, #0f1120 0%, #1a0a05 50%, #0f1120 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 60% at 30% 50%, rgba(255,77,0,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 70% 50%, rgba(255,0,102,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-inner {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-inner h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 0 40px rgba(255,77,0,0.4);
}

.cta-inner p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.cta-gplay {
    display: inline-block;
}

/* =============================================
   FOOTER
============================================= */
footer {
    background: #070810;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 2.5rem 0;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.footer-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--primary); }

/* =============================================
   NON-GAME PAGES (privacy, terms, contact)
============================================= */

/* Inner page layout */
.inner-page {
    min-height: calc(100vh - 140px);
    padding: 5rem 0 6rem;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.5rem;
}

.page-header h1 span { color: var(--primary); }

.page-header .page-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 1px;
}

.title-line {
    width: 60px;
    height: 3px;
    background: var(--gradient);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

/* Contact page */
.contact-card {
    background: var(--dark3);
    border: 1px solid rgba(255,77,0,0.15);
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient);
}

.contact-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(255,77,0,0.12);
    border: 1px solid rgba(255,77,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
}

.contact-card-icon svg { width: 30px; height: 30px; stroke-width: 2; }

.contact-card h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.contact-card p { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.7; }

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.email-link:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,77,0,0.4);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info-card {
    background: var(--dark3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 1.8rem;
}

.contact-info-card h3 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.contact-info-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; }

.support-list { list-style: none; padding: 0; }
.support-list li {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.6;
}
.support-list li::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

/* Policy / Terms pages */
.policy-wrap {
    max-width: 860px;
    margin: 0 auto;
}

.last-updated {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 3rem;
    font-style: italic;
}

.policy-section {
    margin-bottom: 1.5rem;
    background: var(--dark3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 2rem 2.2rem;
    position: relative;
    overflow: hidden;
}

.policy-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--gradient);
    border-radius: 2px;
}

.policy-section h2 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.policy-section h3 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1.5rem 0 0.7rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.policy-section p {
    color: var(--text-muted);
    margin-bottom: 0.9rem;
    line-height: 1.75;
    font-size: 0.97rem;
}

.policy-section ul {
    margin: 0.5rem 0 0.9rem 0;
    padding: 0;
    list-style: none;
}

.policy-section li {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 0.35rem 0 0.35rem 1.2rem;
    position: relative;
    line-height: 1.6;
}

.policy-section li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--primary);
}

.policy-section a {
    color: var(--primary);
    text-decoration: none;
    word-break: break-all;
}

.policy-section a:hover { text-decoration: underline; }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 900px) {
    .intro-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
    .intro-icon-wrap { margin: 0 auto; }
    .mini-stats { justify-content: center; }
    .game-icon-large { width: 130px; height: 130px; }
}

@media (max-width: 768px) {
    .hamburger { display: block; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: rgba(10,12,18,0.97);
        flex-direction: column;
        padding: 1rem 1.5rem 1.5rem;
        gap: 1.2rem;
        border-bottom: 1px solid rgba(255,77,0,0.2);
    }

    .nav-links.open { display: flex; }

    .navbar { position: relative; }

    .logo-full { display: none; }

    .game-hero { min-height: 100svh; }

    .game-title {
        font-size: clamp(1.4rem, 6vw, 2.4rem);
        white-space: nowrap;
    }

    .hero-overlay {
        background:
            linear-gradient(to bottom, rgba(10,12,18,0.5) 0%, rgba(10,12,18,0.92) 100%);
    }

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

    .feat-card { padding: 1.6rem; }

    .footer-links { gap: 1.2rem; }
}

@media (max-width: 480px) {
    .gplay-badge { height: 52px; }
    .hero-content { padding-top: 3rem; padding-bottom: 3rem; }
    .game-desc { font-size: 1rem; }
}
