:root {
    --bg-color: #050505;
    --text-main: #e0e0e0;
    --neon-cyan: #00f3ff;
    --neon-pink: #bc13fe;
    --neon-yellow: #fcee0a;
    --grid-line: rgba(0, 243, 255, 0.1);
    --glass-bg: rgba(20, 20, 30, 0.6);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: 1;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
}

/* Header */
.cyber-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid var(--neon-cyan);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
    letter-spacing: 2px;
}

nav a.cyber-link {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 700;
    position: relative;
    transition: color 0.3s;
}

nav a.cyber-link:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 5px var(--neon-pink);
}

/* Hero Updates */
.hero {
    /* Existing styles need to allow absolute positioning of bg */
    position: relative;
    /* ensure content overrides bg */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/gameplay_1.png') center/cover no-repeat;
    filter: blur(8px) brightness(0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    /* Enforce centering */
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    color: var(--neon-cyan);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.hero-stats span {
    border: 1px solid var(--grid-line);
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.5);
}

/* Button & Common Styles */
.cyber-button {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.cyber-button:hover {
    background: var(--neon-cyan);
    color: black;
    box-shadow: 0 0 20px var(--neon-cyan);
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--neon-pink);
    text-align: center;
    margin-bottom: 60px;
    padding-top: 20px;
    text-shadow: 0 0 10px var(--neon-pink);
}

/* Features Section */
.features {
    padding: 100px 50px;
    background: #0a0a0a;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    position: relative;
    /* transition handled in animation block but we need base properties */
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), transparent);
}

.feature-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 10px;
    color: #fff;
}

/* Footer (Restored) */
.cyber-footer {
    border-top: 1px solid var(--neon-pink);
    padding: 40px 50px;
    background: #000;
    text-align: center;
    margin-top: 50px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    color: #888;
}

/* Intro Section */
.intro-section {
    padding: 60px 20px;
    background: linear-gradient(to bottom, #050505, #0a0a0a);
    text-align: center;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.2rem;
    color: #ccc;
    line-height: 1.8;
}

/* Gallery Scroller */
.gallery {
    padding: 60px 0;
    background: #000;
}

.gallery-scroller {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 50px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.gallery-scroller::-webkit-scrollbar {
    height: 8px;
}

.gallery-scroller::-webkit-scrollbar-track {
    background: #111;
}

.gallery-scroller::-webkit-scrollbar-thumb {
    background: var(--neon-pink);
    border-radius: 4px;
}

.gallery-card {
    min-width: 300px;
    background: var(--glass-bg);
    border: 1px solid var(--grid-line);
    padding: 10px;
    border-radius: 4px;
    transition: transform 0.3s;
}

.gallery-card:hover {
    transform: scale(1.05);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.gallery-card img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid var(--grid-line);
    margin-bottom: 10px;
}

.gallery-card .caption {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-cyan);
    font-size: 0.9rem;
}

/* Rules / Scoring Section */
.rules-section {
    padding: 80px 20px;
    background: #080808;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.rule-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.rule-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.rule-icon {
    font-size: 2rem;
    margin-right: 20px;
    width: 50px;
    text-align: center;
}

.rule-icon.pink {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
}

.rule-icon.purple {
    color: #bc13fe;
    text-shadow: 0 0 10px #bc13fe;
}

.rule-icon.yellow {
    color: #fcee0a;
    text-shadow: 0 0 10px #fcee0a;
}

.rule-icon.cyan {
    color: #00f3ff;
    text-shadow: 0 0 10px #00f3ff;
}

.rule-icon.red {
    color: #ff0000;
    text-shadow: 0 0 10px #ff0000;
}

.rule-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    margin-bottom: 5px;
    color: #fff;
}

.rule-info .points {
    color: var(--neon-cyan);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.rule-info .desc {
    font-size: 0.85rem;
    color: #888;
}

/* Stats for Hero */
.hero-stats {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@media (max-width: 600px) {
    .rules-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 10px;
    }
}

/* Animations */
.feature-card,
.rule-card,
.gallery-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.feature-card.visible,
.rule-card.visible,
.gallery-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover,
.rule-card:hover,
.gallery-card:hover {
    /* Override transform on hover to keep the scale but rely on the base state being 0translate from .visible */
    transform: translateY(-5px) scale(1.02);
    transition: transform 0.3s;
}
/* Hero Logo */
.hero-logo-container {
    margin-bottom: 20px;
    animation: float 6s ease-in-out infinite;
}

.hero-icon {
    width: 120px;
    height: 120px;
    border-radius: 20%;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.4);
    border: 2px solid var(--neon-cyan);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Lore Styles */
.highlight {
    color: var(--neon-cyan);
    font-weight: bold;
    text-shadow: 0 0 5px var(--neon-cyan);
}

.intro-text .final-line {
    margin-top: 20px;
    font-size: 1.4rem;
    color: var(--neon-pink);
    font-family: 'Orbitron', sans-serif;
}

/* Feature Lists */
.feature-list {
    list-style: none;
    margin-top: 15px;
    text-align: left;
}

.feature-list li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.theme-tag {
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 3px;
    margin-right: 5px;
}

.theme-tag.night { color: #00f3ff; border: 1px solid #00f3ff; }
.theme-tag.crimson { color: #ff0000; border: 1px solid #ff0000; }
.theme-tag.toxic { color: #00ff00; border: 1px solid #00ff00; }
.theme-tag.gold { color: #ffd700; border: 1px solid #ffd700; }


/* Controls Section */
.controls-section {
    padding: 80px 50px;
    background: #050505;
    border-top: 1px solid var(--grid-line);
}

.control-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.control-card {
    background: var(--glass-bg);
    border: 1px solid var(--neon-yellow);
    padding: 30px;
    width: 300px;
    text-align: center;
    border-radius: 10px;
    transition: 0.3s;
}

.control-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px var(--neon-yellow);
}

.control-visual {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: var(--neon-yellow);
}

.d-pad-icon {
    display: grid;
    grid-template-areas: 
        ". up ."
        "left center right"
        ". down .";
    gap: 5px;
    font-size: 1rem;
}
.d-up { grid-area: up; }
.d-left { grid-area: left; }
.d-center { grid-area: center; color: #555; }
.d-right { grid-area: right; }
.d-down { grid-area: down; }

.control-desc {
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 10px;
}

/* Legal Nav */
.legal-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 65px; /* Adjust based on header height */
    z-index: 90;
}

.legal-nav a {
    color: #888;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.legal-nav a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
}
