/* --- Reset & Base --- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Roboto', sans-serif;
            background-color: #121212; /* Very dark grey */
            color: #e0e0e0; /* Light grey text */
            line-height: 1.6;
        }

        img {
            max-width: 100%;
            height: auto;
            display: block;
        }

        a {
            text-decoration: none;
            color: #00aaff; /* Bright blue accent */
            transition: color 0.3s ease;
        }

        a:hover {
            color: #00eaff; /* Lighter blue on hover */
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        h1, h2, h3 {
             font-family: 'Poppins', sans-serif;
             font-weight: 700;
             color: #ffffff; /* White headings */
             margin-bottom: 1rem;
        }

        h2 {
            font-size: 2rem;
            border-left: 4px solid #00aaff;
            padding-left: 10px;
            margin-bottom: 1.5rem;
        }

        section {
            padding: 60px 0;
        }

        /* --- Header & Navigation --- */
        .main-header {
            background-color: rgba(18, 18, 18, 0.8); /* Semi-transparent dark */
            padding: 15px 0;
            position: fixed; /* Changed to fixed */
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            transition: background-color 0.3s ease;
            backdrop-filter: blur(5px); /* Frosted glass effect */
        }

        .main-header.scrolled {
             background-color: rgba(18, 18, 18, 0.95); /* More opaque on scroll */
        }

        .main-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-family: 'Poppins', sans-serif;
            font-size: 1.8rem;
            font-weight: 700;
            color: #ffffff;
        }
        .logo span {
            color: #00aaff;
        }

        .nav-links {
            list-style: none;
            display: flex;
        }

        .nav-links li {
            margin-left: 30px;
        }

        .nav-links a {
            color: #e0e0e0;
            font-weight: 600;
            font-family: 'Poppins', sans-serif;
            font-size: 1rem;
            padding-bottom: 5px;
            border-bottom: 2px solid transparent;
            transition: color 0.3s ease, border-color 0.3s ease;
        }

        .nav-links a:hover,
        .nav-links a.active {
            color: #ffffff;
            border-bottom-color: #00aaff;
        }

        /* --- Mobile Nav --- */
         .menu-toggle {
             display: none; /* Hidden by default */
             cursor: pointer;
             background: none;
             border: none;
             padding: 5px;
         }
         .menu-toggle .bar {
             display: block;
             width: 25px;
             height: 3px;
             margin: 5px auto;
             background-color: #e0e0e0;
             transition: all 0.3s ease-in-out;
         }


        /* --- Hero Section --- */
        .hero {
            height: 100vh; /* Full viewport height */
            background: url('https://via.placeholder.com/1920x1080/333333/cccccc?text=Epic+Gaming+Background') no-repeat center center/cover; /* Placeholder */
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            position: relative;
            color: #fff;
             padding-top: 80px; /* Account for fixed header height */
        }

        .hero::before { /* Overlay */
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.6); /* Dark overlay */
        }

        .hero-content {
            position: relative; /* Ensure content is above overlay */
            z-index: 1;
            max-width: 800px;
        }

        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
        }

        .hero p {
            font-size: 1.2rem;
            margin-bottom: 2rem;
            font-weight: 400;
        }

        .btn {
            display: inline-block;
            background-color: #00aaff;
            color: #121212;
            padding: 12px 30px;
            border-radius: 5px;
            font-weight: 600;
            font-family: 'Poppins', sans-serif;
            transition: background-color 0.3s ease, transform 0.2s ease;
            border: none;
            cursor: pointer;
        }

        .btn:hover {
            background-color: #00eaff;
            transform: translateY(-2px);
            color: #121212;
        }

        /* --- Ad Placeholder Styles --- */
        .ad-slot {
            background-color: #333; /* Dark grey background for ad */
            border: 1px dashed #555; /* Dashed border to indicate placeholder */
            display: flex;
            align-items: center;
            justify-content: center;
            color: #888; /* Dim text color */
            font-size: 0.9rem;
            margin: 30px auto; /* Center horizontally and add vertical space */
            padding: 10px;
            text-align: center;
        }

        /* Specific Ad Sizes */
        .ad-banner-top, .ad-banner-footer {
            min-height: 90px;
            max-width: 728px; /* Standard leaderboard size */
            width: 100%; /* Responsive */
        }

        .ad-rectangle-sidebar {
            min-height: 250px;
            max-width: 300px; /* Standard MREC size */
            width: 100%;
            margin-bottom: 40px; /* Space before news title */
        }

        .ad-infeed {
            min-height: 100px; /* Adjust as needed for in-feed */
            max-width: 100%; /* Take available width in news item flow */
            margin: 20px 0; /* Space within the news list */
             background-color: #404040; /* Slightly different bg */
        }

	
        .character-collage {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100%;
            gap: 20px;
            animation: slide 30s linear infinite;
        }
        
        .character-collage img {
            height: 200px;
            object-fit: contain;
            filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
        }
        
        @keyframes slide {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }


        /* --- Featured Section --- */
        .featured {
            background-color: #1a1a1a; /* Slightly lighter dark shade */
            padding-top: 30px; /* Adjust padding if ad is above */
        }

        .card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
        }

        .card {
            background-color: #252525; /* Card background */
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 170, 255, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 170, 255, 0.2);
        }

        .card img {
            width: 100%;
            height: 270px;
            object-fit: cover;
        }

        .card-content {
            padding: 20px;
        }

        .card h3 {
            font-size: 1.3rem;
            margin-bottom: 0.5rem;
        }

        .card p {
            font-size: 0.95rem;
            color: #b0b0b0; /* Lighter grey for descriptions */
            margin-bottom: 1rem;
        }

        .card .btn-secondary {
             background: none;
             border: 1px solid #00aaff;
             color: #00aaff;
             padding: 8px 15px;
             font-size: 0.9rem;
        }
         .card .btn-secondary:hover {
             background-color: rgba(0, 170, 255, 0.1);
             color: #00eaff;
              transform: none;
         }

        /* --- Latest News Section --- */
	
        .latest-news .news-list {
            margin-top: 20px; /* Space between title and list */
         }

        .news-item {
            display: flex;
            gap: 20px;
            background-color: #252525;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 20px;
             transition: background-color 0.3s ease;
        }
         .news-item:hover {
             background-color: #303030;
         }

        .news-item img {
            width: 150px;
            height: 100px;
            object-fit: cover;
            border-radius: 5px;
            flex-shrink: 0;
        }

        .news-content h3 {
            font-size: 1.2rem;
            margin-bottom: 0.3rem;
        }
        .news-content .meta {
            font-size: 0.85rem;
            color: #888;
            margin-bottom: 0.5rem;
        }
        .news-content p {
            font-size: 0.95rem;
            color: #b0b0b0;
        }

        .btn-small { /* For "Read More" button in news */
    	     padding: 6px 12px !important;
    	     font-size: 0.85rem !important;
         }

         .loading-news {
            text-align: center;
            color: #aaa;
            padding: 20px;
         }

         /* Responsive for news items */
         @media (max-width: 600px) {
          .news-item {
             flex-direction: column;
           }
         .news-item img {
            width: 100%; /* Full width on small screens */
            height: 180px; /* Adjust height accordingly */
            margin-bottom: 15px;
          }
       }

        /* --- Footer --- */
        .main-footer {
            background-color: #1a1a1a;
            padding: 40px 0 20px;
            text-align: center;
            border-top: 1px solid #333;
        }
        .footer-links {
            list-style: none;
            padding: 0;
            margin-bottom: 15px;
        }
        .footer-links li {
             display: inline-block;
             margin: 0 15px;
        }
         .footer-links a {
             color: #b0b0b0;
             font-size: 0.9rem;
         }
         .footer-links a:hover {
             color: #ffffff;
         }

        .social-links a {
            margin: 0 10px;
            color: #b0b0b0;
            font-size: 1.5rem; /* Make icons bigger */
        }
         .social-links a:hover {
             color: #00aaff;
         }
        .copyright {
            margin-top: 20px;
            font-size: 0.85rem;
            color: #888;
        }


        /* --- Responsive Design --- */
        @media (max-width: 768px) {
            .nav-links {
                display: none; /* Hide normal links */
                position: absolute;
                top: 70px; /* Adjust based on header height */
                right: 0;
                background-color: #1a1a1a;
                width: 100%;
                flex-direction: column;
                text-align: center;
                padding: 20px 0;
                 box-shadow: 0 5px 10px rgba(0,0,0,0.2);
            }

             .nav-links.active {
                 display: flex; /* Show when active */
             }

            .nav-links li {
                margin: 15px 0;
            }

            .menu-toggle {
                display: block; /* Show burger */
            }

             /* Burger Animation */
            .menu-toggle.active .bar:nth-child(1) {
                 transform: translateY(8px) rotate(45deg);
             }
             .menu-toggle.active .bar:nth-child(2) {
                 opacity: 0;
             }
             .menu-toggle.active .bar:nth-child(3) {
                 transform: translateY(-8px) rotate(-45deg);
             }


            .hero h1 {
                font-size: 2.5rem;
            }
            .hero p {
                 font-size: 1rem;
             }

             h2 {
                 font-size: 1.8rem;
             }

            .news-item {
                 flex-direction: column;
             }
            .news-item img {
                 width: 100%;
                 height: 150px;
             }

             /* Adjust ad sizes for mobile if needed */
             .ad-banner-top, .ad-banner-footer {
                 min-height: 50px; /* Smaller banner on mobile */
                 max-width: 320px;
             }
              .ad-rectangle-sidebar {
                  max-width: 300px; /* Can stay same or adjust */
                  margin-left: auto;
                  margin-right: auto; /* Center it */
              }
        }

* { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Roboto', sans-serif; background-color: #121212; color: #e0e0e0; line-height: 1.6; }
        img { max-width: 100%; height: auto; display: block; }
        a { text-decoration: none; color: #00aaff; transition: color 0.3s ease; }
        a:hover { color: #00eaff; }
        .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
        h1, h2, h3 { font-family: 'Poppins', sans-serif; font-weight: 700; color: #ffffff; margin-bottom: 1rem; }
        /* --- Header & Navigation --- */
        .main-header { background-color: rgba(18, 18, 18, 0.8); padding: 15px 0; position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; transition: background-color 0.3s ease; backdrop-filter: blur(5px); }
        .main-header.scrolled { background-color: rgba(18, 18, 18, 0.95); }
        .main-nav { display: flex; justify-content: space-between; align-items: center; }
        .logo { font-family: 'Poppins', sans-serif; font-size: 1.8rem; font-weight: 700; color: #ffffff; }
        .logo span { color: #00aaff; }
        .nav-links { list-style: none; display: flex; }
        .nav-links li { margin-left: 30px; }
        .nav-links a { color: #e0e0e0; font-weight: 600; font-family: 'Poppins', sans-serif; font-size: 1rem; padding-bottom: 5px; border-bottom: 2px solid transparent; transition: color 0.3s ease, border-color 0.3s ease; }
        .nav-links a:hover, .nav-links a.active { color: #ffffff; border-bottom-color: #00aaff; }
        .menu-toggle { display: none; cursor: pointer; background: none; border: none; padding: 5px; }
        .menu-toggle .bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: #e0e0e0; transition: all 0.3s ease-in-out; }
        /* --- Footer --- */
        .main-footer { background-color: #1a1a1a; padding: 40px 0 20px; text-align: center; border-top: 1px solid #333; margin-top: 60px; /* Add margin top */ }
        .footer-links { list-style: none; padding: 0; margin-bottom: 15px; }
        .footer-links li { display: inline-block; margin: 0 15px; }
        .footer-links a { color: #b0b0b0; font-size: 0.9rem; }
        .footer-links a:hover { color: #ffffff; }
        .social-links a { margin: 0 10px; color: #b0b0b0; font-size: 1.5rem; }
        .social-links a:hover { color: #00aaff; }
        .copyright { margin-top: 20px; font-size: 0.85rem; color: #888; }
        /* --- Ad Placeholder Styles --- */
        .ad-slot { background-color: #333; border: 1px dashed #555; display: flex; align-items: center; justify-content: center; color: #888; font-size: 0.9rem; margin: 20px auto; padding: 10px; text-align: center; }
        .ad-banner-top, .ad-banner-bottom { min-height: 90px; max-width: 728px; width: 100%; }
        .ad-rectangle-side { min-height: 250px; max-width: 300px; width: 100%; margin: 20px 15px; flex-shrink: 0; /* Prevent shrinking */ }
        /* --- END: Copied/Reference Styles --- */

        /* --- Styles Specific to Game Page --- */
        .game-page-main {
            padding-top: 100px; /* Account for fixed header + some space */
            padding-bottom: 40px;
        }

        .game-area-wrapper {
            display: flex;
            justify-content: center;
            align-items: flex-start; /* Align items to top */
            flex-wrap: wrap; /* Allow wrapping on smaller screens */
            gap: 20px;
        }

        .game-container {
            display: flex;
            flex-direction: column; /* Stack game and title */
            align-items: center;
            max-width: 386px; /* Canvas width + border */
             flex-grow: 1; /* Allow game container to grow */
        }

        .game-container h1 {
            margin-bottom: 20px;
            font-size: 2rem;
            color: #00aaff;
        }

        #gameCanvas { /* Style the canvas */
            border: 1px solid #000;
            display: block;
            background-color: #70c5ce;
            max-width: 100%;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
        }

        /* Responsive adjustments for game page */
        @media (max-width: 768px) {
            .game-area-wrapper {
                flex-direction: column;
                align-items: center; /* Center items when stacked */
            }
            .ad-rectangle-side {
                order: 3; /* Move side ad below game on mobile */
                margin: 20px auto; /* Center */
            }
            .game-container {
                 order: 2;
            }
             .ad-banner-top {
                order: 1;
                 min-height: 50px; /* Smaller banner on mobile */
                 max-width: 320px;
            }
             .ad-banner-bottom {
                 order: 4;
                 min-height: 50px;
                 max-width: 320px;
             }
             .nav-links { /* Copied from index.html for mobile nav */
                 display: none; position: absolute; top: 70px; right: 0; background-color: #1a1a1a; width: 100%; flex-direction: column; text-align: center; padding: 20px 0; box-shadow: 0 5px 10px rgba(0,0,0,0.2);
             }
             .nav-links.active { display: flex; }
             .nav-links li { margin: 15px 0; }
             .menu-toggle { display: block; }
             .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
             .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
             .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
        }
        @media (min-width: 769px) and (max-width: 1100px) {
             /* Adjust side ad placement if screen isn't wide enough for side-by-side comfortably */
              .game-area-wrapper {
                 justify-content: center; /* Center items if side ad might wrap */
              }
        }