:root {
    --color-bg-dark: #121212;
    --color-bg-medium: #1e1e1e;
    --color-bg-light: #2a2a2a;
    --color-primary-accent: #b71c1c; /* Deeper blood red */
    --color-secondary-accent: #558b2f; /* Muted toxic green */
    --color-text-light: #e0e0e0;
    --color-text-medium: #9e9e9e;
    --color-border: #424242;

    --font-primary: 'Rubik Wet Paint', normal;
    --font-secondary: 'Roboto', sans-serif;

    --container-width: 1200px;
    --border-radius: 5px;
    --header-height: 70px; /* Approximate header height */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.rubik-wet-paint-regular {
    font-family: "Rubik Wet Paint", system-ui;
    font-weight: 400;
    font-style: normal;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    line-height: 1.6;
    background-image: url('https://zombie-slots.com/images/site-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

a {
    color: var(--color-primary-accent);
    text-decoration: underline;
}
header {
    background-color: rgba(18, 18, 18, 0.9); /* Semi-transparent dark background */
    backdrop-filter: blur(8px); /* Frosted glass effect */
    border-bottom: 2px solid var(--color-primary-accent);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex; /* To center container vertically */
    align-items: center; /* To center container vertically */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0; /* Container padding is managed by header height and align-items */
}

#logo {
    height: 70px; /* Max height for logo */
    filter: drop-shadow(0 0 5px var(--color-primary-accent));
    z-index: 1001; /* Ensure logo is above potential nav overlay */
    margin-top: 15px;
}

header nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 700;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    border-radius: var(--border-radius);
}

header nav ul li a:hover,
header nav.main-nav ul li a.active { /* 'active' class can be added by JS for current page */
    color: var(--color-primary-accent);
    text-shadow: 0 0 8px var(--color-primary-accent);
}

/* Language Selector */
.language-selector {
    position: relative;
}
.language-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 6px 10px;
    color: var(--color-text-medium);
    font-family: var(--font-secondary);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}
.language-toggle:hover {
    color: var(--color-text-light);
    border-color: var(--color-secondary-accent);
}
.language-icon-img {
    height: 18px;
    width: 18px;
}
.arrow-icon {
    height: 10px;
    width: 10px;
    transition: transform 0.3s ease;
}
.language-selector.open .arrow-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: var(--color-bg-medium);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    list-style: none;
    padding: 5px;
    min-width: 150px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    z-index: 1010;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}
.language-selector.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px !important; /* Override general nav link padding */
    color: var(--color-text-medium) !important;
    font-size: 0.9rem;
    white-space: nowrap;
    text-shadow: none !important;
}
.dropdown-menu li a:hover {
    background-color: var(--color-secondary-accent);
    color: var(--color-bg-dark) !important;
}
.dropdown-menu li a .full-lang {
    color: var(--color-text-light);
}
.dropdown-menu li a:hover .full-lang {
    color: var(--color-bg-dark);
}

/* Navigation Toggle Button (Burger) */
.nav-toggle {
    display: none; /* Hidden by default, shown on mobile */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100; /* Above nav */
}

.burger-icon-img {
    width: 57px;
 /*   height: 30px;*/
    display: block;
}

header nav.main-nav ul { /* Be more specific if .main-nav is added */
    list-style: none;
    display: flex;
    align-items: center;
}

header nav.main-nav ul li {
    margin-left: 20px;
}

header nav.main-nav ul li a {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 700;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    border-radius: var(--border-radius);
}

header nav.main-nav ul li a:hover,
header nav.main-nav ul li a.active { /* 'active' class can be added by JS for current page */
    color: var(--color-primary-accent);
    text-shadow: 0 0 8px var(--color-primary-accent);
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: var(--border-radius);
    transition: transform 0.2s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    cursor: pointer;
    background-image: url('https://zombie-slots.com/images/button-texture.png');
    background-size: 100px 100px; /* Adjust if texture is not seamless or needs scaling */
    background-position: center;
    color: var(--color-text-light);
    border: 2px solid var(--color-primary-accent);
    background-color: var(--color-primary-accent);
    box-shadow: 0 4px 15px rgba(183, 28, 28, 0.4);
    position: relative;
    overflow: hidden;
}
.cta-button > * { /* Ensure text span is above overlay */
    position: relative;
    z-index: 2;
}
.cta-button::before { /* Subtle overlay for texture interaction */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.1); /* Darken texture slightly, adjust as needed */
    z-index: 1;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    background-color: #c62828; /* Darker red on hover */
    box-shadow: 0 6px 20px rgba(183, 28, 28, 0.6);
}
.cta-button:hover::before {
    background-color: rgba(0,0,0,0.3); /* More pronounced overlay on hover */
}
.cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(183, 28, 28, 0.5);
}


header .cta-button.small-cta {
    padding: 8px 15px;
    font-size: 0.9em;
    background-color: transparent;
    border: 2px solid var(--color-secondary-accent);
    color: var(--color-secondary-accent);
    box-shadow: 0 4px 15px rgba(85, 139, 47, 0.3);
}
header .cta-button.small-cta:hover {
    background-color: var(--color-secondary-accent);
    color: var(--color-bg-dark);
    box-shadow: 0 6px 20px rgba(85, 139, 47, 0.5);
}
header .cta-button.small-cta::before {
    background-color: rgba(255,255,255,0.1); /* Lighten for green button texture */
}
header .cta-button.small-cta:hover::before {
    background-color: rgba(0,0,0,0.1);
}

/* Hero Section */
#hero {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(rgba(18, 18, 18, 0.75), rgba(18, 18, 18, 0.95)), transparent; /* Darkening overlay for text readability on top of site-bg */
    position: relative;
}
#hero .container {
    max-width: 800px;
}

#hero h1 {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem); /* Responsive font size */
    color: var(--color-primary-accent);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 0px #000,
    0 0 20px var(--color-primary-accent);
    letter-spacing: 2px;
}

#hero p {
    font-size: clamp(1rem, 2vw + 0.5rem, 1.3rem);
    color: var(--color-text-medium);
    margin-bottom: 2rem;
    line-height: 1.8;
}

#hero .large-cta {
    padding: 15px 35px;
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.2rem);
}

/* General Section Styling */
section {
    padding: 60px 20px; /* Add horizontal padding for content within sections */
    background-color: rgba(30, 30, 30, 0.85); /* Semi-transparent background for content sections */
    /* margin-bottom: 20px; Removed for seamless flow, use padding for spacing */
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
}

#why-us {
    background: transparent;
    box-shadow: none;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

section:not(#hero) { /* Add top margin to sections after hero, except hero itself */
    margin-top: 1px; /* Creates a subtle separation if needed, or remove */
}

section h2 {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-primary-accent);
    text-shadow: 2px 2px 0px #000, 0 0 10px var(--color-primary-accent);
    letter-spacing: 1px;
}

/* Why Us Section */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 20px;
}
.why-us-card {
    text-align: center;
    padding: 20px;
}
.why-us-icon {
    width: 125px;
    /*height: 70px;
    margin-bottom: 20px;*/
}
.why-us-card h3 {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--color-secondary-accent);
    margin-bottom: 10px;
}
.why-us-card p {
    color: var(--color-text-medium);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Game Showcase */
#games .game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.game-card {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden; /* Ensures child elements like images don't break rounded corners */
}

.game-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 10px 30px rgba(183, 28, 28, 0.5), 0 0 15px var(--color-primary-accent);
    border-color: var(--color-primary-accent);
}

.game-card img {
    width: 100%; /* Make image responsive within card */
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    border: 2px solid var(--color-border);
    transition: border-color 0.3s ease;
}
.game-card:hover img {
    border-color: var(--color-primary-accent);
}

.game-card h3 {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--color-secondary-accent);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.game-card p {
    font-size: 0.9rem;
    color: var(--color-text-medium);
    margin-bottom: 20px;
    flex-grow: 1;
}

.game-card .game-cta {
    background-color: var(--color-secondary-accent);
    border-color: var(--color-secondary-accent);
    box-shadow: 0 4px 15px rgba(85, 139, 47, 0.4);
    color: var(--color-bg-dark);
}
.game-card .game-cta:hover {
    background-color: #689f38;
    border-color: #689f38;
    box-shadow: 0 6px 20px rgba(85, 139, 47, 0.6);
    color: #fff;
}
.game-card .game-cta::before {
    background-color: rgba(255,255,255,0.1);
}
.game-card .game-cta:hover::before {
    background-color: rgba(0,0,0,0.1);
}

/* Latest News Section */
#latest-news .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 10px 30px rgba(85, 139, 47, 0.5), 0 0 15px var(--color-secondary-accent);
    border-color: var(--color-secondary-accent);
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    border: 2px solid var(--color-border);
    transition: border-color 0.3s ease;
}

.news-card:hover img {
    border-color: var(--color-secondary-accent);
}

.news-card h3 {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--color-primary-accent);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.news-card p {
    font-size: 0.9rem;
    color: var(--color-text-medium);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Casino Offers Section */
#casino-offers {
    text-align: center;
}
.casino-offers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}
.casino-offer-card {
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    align-items: center;
    gap: 20px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.casino-offer-card:hover {
    border-color: var(--color-secondary-accent);
    box-shadow: 0 0 20px rgba(85, 139, 47, 0.4);
}
.offer-logo-section {
    text-align: center;
}
.offer-logo-section img {
    width: 260px;
    height: 80px;
    object-fit: contain;
    margin: 10px 0;
   /* filter: brightness(0) invert(0.9);*/
}
.offer-logo-section h4 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: var(--color-text-light);
}
.offer-logo-section p {
    font-size: 0.75rem;
    color: var(--color-text-medium);
    margin-top: 5px;
}

.offer-bonus-section {
    text-align: center;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    padding: 0 20px;
}
.offer-bonus-section h3 {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    color: var(--color-secondary-accent);
    margin-bottom: 10px;
}
.offer-bonus-section p {
    font-size: 1rem;
    color: var(--color-text-light);
}

.offer-cta-section .cta-button {
    background-color: var(--color-secondary-accent);
    border-color: var(--color-secondary-accent);
    box-shadow: 0 4px 15px rgba(85, 139, 47, 0.4);
    color: var(--color-bg-dark);
    width: 100%;
    max-width: 200px;
}
.offer-cta-section .cta-button:hover {
    background-color: #689f38;
    border-color: #689f38;
    box-shadow: 0 6px 20px rgba(85, 139, 47, 0.6);
    color: #fff;
}

/* Zombie Game Article Section */
#zombie-game-article {
    background: transparent;
    box-shadow: none;
    padding-top: 80px;
    padding-bottom: 80px;
}
.article-layout {
    display: flex;
    align-items: center;
    gap: 40px;
}
.article-image {
    flex: 0 0 300px;
    width: 300px;
    height: auto;
    object-fit: cover;
    margin-top: 15px;
   /* border-radius: var(--border-radius);
    border: 2px solid var(--color-border);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);*/
}
.article-text h3 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--color-primary-accent);
    margin-bottom: 20px;
}
.article-text p, .article-text ul {
    margin-bottom: 15px;
    color: var(--color-text-medium);
    font-size: 1.05rem;
    line-height: 1.7;
}
.article-text ul {
    list-style-position: outside;
    padding-left: 20px;
}
.article-text ul li {
    margin-bottom: 8px;
}
.article-text ul li::marker {
    color: var(--color-secondary-accent);
}
.article-text a {
    color: var(--color-secondary-accent);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s ease;
}
.article-text a:hover {
    text-decoration: underline;
    color: var(--color-primary-accent);
}


/* Responsible Gaming Section */
#responsible-gaming {
    background-color: var(--color-bg-dark);
    text-align: center;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
#responsible-gaming h2 {
    color: var(--color-secondary-accent);
    text-shadow: 2px 2px 0px #000, 0 0 10px var(--color-secondary-accent);
}
#responsible-gaming p {
  /*  max-width: 800px;*/
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-medium);
}

/* Promotions Section - DELETED */
#promotions {
    display:none;
}

/* Sponsors Section */
#sponsors {
    background-color: rgba(10,10,10, 0.9);
    padding: 50px 20px;
}
#sponsors .container {
    text-align: center;
}
#sponsors h2 {
    color: var(--color-text-medium);
    text-shadow: none;
    font-size: 2rem;
}
.sponsor-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 20px;
}
.sponsor-grid img {
    height: 45px;
    opacity: 0.6;
    transition: opacity 0.3s ease, filter 0.3s ease;
    filter: brightness(0) invert(0.8); /* Makes transparent PNGs appear greyish-white */
}
.sponsor-grid img:hover {
    opacity: 1;
    filter: brightness(1) invert(0) drop-shadow(0 0 5px var(--color-text-light));
}

/* Footer */
footer {
    background-color: rgba(10,10,10, 0.95);
    text-align: center;
    padding: 40px 20px;
    border-top: 2px solid var(--color-primary-accent);
    margin-top: 1px; /* Small separation */
}

footer .container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.responsible-gaming-footer {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 20px;
}
.responsible-gaming-footer p {
    font-size: 0.85rem;
   /* max-width: 700px;*/
    margin: 0 auto 10px auto;
    color: var(--color-text-medium);
    line-height: 1.5;
}

.help-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px 25px;
    flex-wrap: wrap;
}

.footer-links {
    margin: 0;
}

footer a {
    color: var(--color-secondary-accent);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--color-text-light);
    text-decoration: underline;
}

footer .footer-bottom p {
    color: var(--color-text-medium);
    font-size: 0.9rem;
    margin: 0;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    header {
        height: auto; /* Allow header to grow if nav wraps */
        min-height: var(--header-height);
        position: sticky; /* Ensure it remains sticky */
    }
    header .container {
        flex-direction: row; /* Keep logo and burger on one line */
        justify-content: space-between; /* Space between logo and burger */
        align-items: center;
        padding: 10px 15px; /* Adjust padding as needed */
        width: 100%;
        position: relative; /* For nav positioning */
    }
    #logo {
        margin-bottom: 0; /* Reset margin if any was added for column layout */
    }

    .nav-toggle {
        display: block; /* Show burger on mobile */
    }

    header nav.main-nav {
        position: absolute;
        top: 100%; /* Position below the header container */
        left: 0;
        width: 100%;
        background-color: rgba(18, 18, 18, 0.95); /* Match header bg */
        backdrop-filter: blur(8px);
        border-top: 1px solid var(--color-primary-accent);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    header.nav-open nav.main-nav {
        max-height: 500px; /* Arbitrary large enough value */
    }

    header nav.main-nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 10px 0; /* Add some padding when open */
    }
    header nav.main-nav ul li {
        margin: 10px 0;
        width: 90%; /* Full width for touch targets */
        text-align: center;
    }
    header nav.main-nav ul li a {
        display: block;
        padding: 0.8rem 1rem;
        width: 100%;
    }
    header nav.main-nav ul li:last-child {
        margin-bottom: 10px; /* Spacing at the bottom of the mobile nav */
    }
    header .cta-button.small-cta { /* Ensure small cta in nav is full width */
        display: block;
        width: auto; /* Let text determine width or set specific width if needed */
        margin: 5px auto;
    }

    /* Mobile Language Selector */
    .language-selector {
        width: 90%;
        margin: 10px 0;
    }
    .language-toggle {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1rem;
        background-color: rgba(0,0,0,0.2);
    }
    .dropdown-menu {
        position: static; /* Unset absolute positioning */
        min-width: auto;
        /* --- flexbox: --- */
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start; /* или center, если нужно */
        gap: 5px 10px;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        margin-top: 5px;
        background-color: transparent;
        border: none;
        transition: max-height 0.3s ease-out;
    }
    .language-selector.open .dropdown-menu {
        max-height: 200px; /* Allow it to expand */
        border-top: 1px solid var(--color-border);
    }
    .dropdown-menu li {
        flex: 0 0 25%;        /* ровно 25% ширины контейнера */
        box-sizing: border-box;
    }
    .dropdown-menu li a {
        display: block;
        width: 100%;
        padding: 8px 12px !important;
        text-align: center;   /* по желанию */
    }

    #hero {
        min-height: calc(100vh - (140px)); /* Updated fallback if header gets taller, actual height determined by content */
        padding-top: 20px; padding-bottom: 20px;
    }

    .casino-offer-card {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    .offer-bonus-section {
        border-left: none;
        border-right: none;
        border-top: 1px solid var(--color-border);
        border-bottom: 1px solid var(--color-border);
        padding: 20px 0;
    }
    .article-layout {
        flex-direction: column;
    }
    .article-image {
        flex-basis: auto;
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .game-card {
        min-width: calc(100% - 20px); /* Full width minus some margin */
        margin-left: auto;
        margin-right: auto;
    }
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    #hero .large-cta {
        padding: 12px 25px;
    }
}
body.game-page-body {
    background-color: var(--color-bg-dark);
    background-image: url('https://zombie-slots.com/images/site-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--font-secondary); /* Ensure base font is set */
    color: var(--color-text-light); /* Ensure base text color is set */
}

body.game-page-body header {
    /* Header styles are primarily from style.css and remain unchanged */
}

#game-area {
    flex-grow: 1;
    display: flex;
    /* align-items: center; Aligning to top for blog post */
    justify-content: center;
    padding: 40px 20px;
    width: 100%;
    margin-top: var(--header-height);
}

#game-area .container {
    max-width: 1400px; /* Wider container */
    width: 100%;
    /* text-align: center; Removed, text-align will be per element */
    background-color: rgba(30, 30, 30, 0.92);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 0 25px rgba(0,0,0,0.7);
    border: 1px solid var(--color-border);
}

/* Featured image moved inside article */
#featured-image-container {
    margin-bottom: 25px;
}
#article-featured-image {
    width: 100%;
    height: auto;
    max-height: 450px; /* Control max height */
    object-fit: contain;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

/* Content Wrapper for Article and Sidebar */
.content-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allow sidebar to wrap on smaller screens */
    gap: 30px; /* Space between article and sidebar */
    margin-bottom: 40px; /* Space before similar games */
}

#article-content {
    flex: 3; /* Article takes more space */
    min-width: 300px; /* Minimum width before wrapping */
    background-color: rgba(18, 18, 18, 0.6); /* Slightly darker, distinct background for text */
    padding: 25px 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    /* margin-bottom: 40px; Removed, handled by content-wrapper gap */
    color: var(--color-text-light);
    line-height: 1.7; /* Improved readability for article text */
}

#sidebar {
    flex: 1; /* Sidebar takes less space */
    min-width: 250px; /* Minimum width before wrapping */
    background-color: rgba(22, 22, 22, 0.7);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    align-self: flex-start; /* Align to top if content heights differ */
}

.sidebar-widget {
    margin-bottom: 30px;
}
.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: var(--color-secondary-accent);
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--color-border);
    text-shadow: 1px 1px 2px #000;
}

.sidebar-widget ul {
    list-style: none;
    padding-left: 0;
}

.sidebar-widget ul li {
    margin-bottom: 10px;
}

.sidebar-widget ul li a {
    color: var(--color-text-medium);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.sidebar-widget ul li a:hover {
    color: var(--color-primary-accent);
    text-decoration: underline;
}


#article-content p {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    margin-bottom: 1.5em;
    color: var(--color-text-light); /* Ensure paragraphs are light */
}
#article-content p strong {
    color: var(--color-secondary-accent); /* Highlight strong text */
}

#article-content h2 { /* Subheadings within the article */
    font-family: var(--font-secondary); /* Not Creepster for readability */
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-primary-accent);
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    font-weight: 700;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.3em;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

#article-content ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 1.5em;
}
#article-content ul li {
    margin-bottom: 0.5em;
    font-size: clamp(0.95rem, 1.7vw, 1.1rem);
}
#article-content ul li strong {
    color: var(--color-secondary-accent);
}


.article-play-button {
    display: block; /* Make it a block to center it */
    max-width: 300px; /* Limit width */
    margin: 30px auto 10px auto; /* Center it */
    text-align: center;
}

/* Article Navigation Links */
.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Make links same height */
    gap: 20px;
    margin: 40px 0;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}
.article-nav-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all 0.3s ease;
}
.article-nav-link:hover {
    border-color: var(--color-secondary-accent);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(85, 139, 47, 0.3);
}
.article-nav-link img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
    flex-shrink: 0;
}
.article-nav-text {
    color: var(--color-text-medium);
}
.article-nav-text.align-right {
    text-align: right;
}
.article-nav-link h3 {
    color: var(--color-text-light);
    font-family: var(--font-secondary);
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-top: 5px;
    font-weight: 700;
}
.article-nav-link span {
    font-size: 0.85rem;
}


/* Similar Games Section */
#similar-games {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

#similar-games .section-title-font, /* Use this class for Creepster font if needed */
h2.section-title-font { /* Target H2 specifically if it has the class */
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 30px;
    color: var(--color-primary-accent);
    text-shadow: 2px 2px 0px #000, 0 0 10px var(--color-primary-accent);
    letter-spacing: 1px;
}

/* .game-grid and .game-card styles are mostly inherited from style.css */
/* We can add overrides if needed */
#similar-games .game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

#similar-games .game-card {
    /* Example override: */
    /* background-color: var(--color-bg-dark); */
}
#similar-games .game-card img {
    height: 220px; /* Slightly taller image for 2-col layout */
}


body.game-page-body footer {
    /* Footer styles are primarily from style.css and remain unchanged */
}

/* Responsive adjustments for game page blog layout */
@media (max-width: 768px) {
    #game-area {
        padding: 20px 10px;
        margin-top: var(--header-height); /* Respect sticky header */
    }
    /* If header is taller in mobile due to logo/burger stacking differently, adjust this */
    body.game-page-body.nav-open + #game-area {
        /* Potentially push content down if nav is very tall, but usually not needed due to absolute positioning of nav */
    }

    .content-wrapper {
        flex-direction: column; /* Stack article and sidebar */
    }
    #article-content, #sidebar {
        flex: 1 1 100%; /* Allow them to take full width when stacked */
    }
    #sidebar {
        margin-top: 20px; /* Add some space when stacked */
    }

    #game-area .container {
        padding: 20px;
    }
    #article-content {
        padding: 20px;
    }
    .article-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    #article-content h2 {
        font-size: clamp(1.3rem, 3vw, 1.8rem);
    }

    body.game-page-body header + #game-area {
        margin-top: var(--header-height); /* Ensure this respects the actual header height */
        /* This rule exists, ensure it interacts well with responsive header */
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    #article-content {
        padding: 15px;
    }
    #article-content p, #article-content ul li {
        font-size: 0.95rem;
    }
    #article-content h2 {
        font-size: clamp(1.2rem, 3vw, 1.6rem);
    }
    #similar-games .game-grid {
        grid-template-columns: 1fr; /* Stack cards on very small screens */
    }
    .article-navigation {
        flex-direction: column; /* Stack prev/next buttons */
        gap: 15px;
    }
    .article-nav-link {
        gap: 10px;
    }
    .article-nav-link img {
        width: 60px;
        height: 60px;
    }
    .article-nav-link h3 {
        font-size: 1rem;
    }
}


.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-medium);
    color: var(--color-text-light);
    box-shadow: 0 -5px 15px rgba(0,0,0,0.5);
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 2000;
}
.cookie-consent.show {
    transform: translateY(0);
}
.cookie-consent__wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}
.cookie-consent__text {
    flex: 1;
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-right: 20px;
    line-height: 1.4;
}
@media (max-width: 480px) {
    .cookie-consent__wrapper {
        flex-direction: column;
        text-align: center;
    }
    .cookie-consent__text {
        margin: 0 0 10px 0;
    }
}

