 
:root {
    --color-primary: #006442;
    --color-primary-dark: #004d33;
    --color-secondary: #e67e22;
    --color-text: #333333;
    --color-text-light: #555555;
    --color-background: #ffffff;
    --color-light-gray: #f4f4f4;
    --color-border: #dddddd;
    --color-dark: #222222;
    --color-success: #28a745;
    --color-error: #dc3545;

    --font-family-base: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --max-width-container: 1140px;
    --header-height: 70px;
    --border-radius: 4px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
}

body.no-scroll {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

ul,
ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

input,
textarea,
button {
    font-family: inherit;
    font-size: 1rem;
}

/* 2. Accessibility
----------------------------------- */
:focus-visible {
    outline: 3px solid var(--color-secondary);
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* 3. Layout & Utilities
----------------------------------- */
.container {
    max-width: var(--max-width-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

section:nth-of-type(odd) {
    background-color: var(--color-light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.25rem;
}

/* 4. Buttons
----------------------------------- */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button--primary {
    background-color: var(--color-primary);
    color: #ffffff;
}

.button--primary:hover,
.button--primary:focus {
    background-color: var(--color-primary-dark);
    color: #ffffff;
    text-decoration: none;
}

.button--secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.button--secondary:hover,
.button--secondary:focus {
    background-color: var(--color-primary);
    color: #ffffff;
    text-decoration: none;
}

.button--large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.button--small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* 5. Header
----------------------------------- */
.header {
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.header__brand:hover {
    text-decoration: none;
}

.header__nav-list {
    display: flex;
    list-style: none;
    margin: 0;
}

.header__nav-link {
    display: block;
    padding: 0 1rem;
    color: var(--color-text-light);
    font-weight: 500;
    text-decoration: none;
}

.header__nav-link:hover,
.header__nav-link[aria-current="page"] {
    color: var(--color-primary);
    font-weight: 600;
}

.header__cta {
    margin-left: 1rem;
}

.header__mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text);
    cursor: pointer;
}

/* 6. Overlays (Age Gate)
----------------------------------- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(5px);
}

.overlay[hidden] {
    display: none;
}

.overlay__content {
    background-color: var(--color-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.overlay__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.overlay__info {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* 7. Cookie Banner
----------------------------------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-dark);
    color: #ffffff;
    padding: 1rem;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner__content p {
    margin: 0;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-banner__actions .button--secondary {
    color: #ffffff;
    border-color: #ffffff;
}

.cookie-banner__actions .button--secondary:hover {
    background-color: #ffffff;
    color: var(--color-dark);
}


/* 8. Game Modal
----------------------------------- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal[hidden] {
    display: none;
}

.modal__content {
    background-color: var(--color-background);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 90vw;
    height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.modal__close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color-text-light);
    cursor: pointer;
    line-height: 1;
}

.modal__close:hover {
    color: var(--color-dark);
}

.modal__title {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 1.25rem;
    margin: 0;
    padding-right: 3rem;
}

.modal__body {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}

.modal__loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: var(--color-text-light);
}

.modal__body iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* 9. Footer
----------------------------------- */
.footer {
    background-color: var(--color-dark);
    color: #cccccc;
    padding-top: 3rem;
    padding-bottom: 2rem;
    font-size: 0.9rem;
}

.footer__container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer a {
    color: #ffffff;
}

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

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__brand {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
}

.footer__socials {
    display: flex;
    gap: 1rem;
}

.footer__social-link {
    font-size: 1.5rem;
    color: #ffffff;
    text-decoration: none;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
    padding: 1.5rem 0;
}

.footer__compliance {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #111;
    padding: 1rem;
    border-radius: var(--border-radius);
}

.footer__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    background-color: #ffffff;
    color: var(--color-dark);
    border: 1px solid #ffffff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.footer__disclaimer {
    margin: 0;
    line-height: 1.5;
    font-size: 0.85rem;
    color: #aaa;
}

.footer__contact {
    text-align: center;
    line-height: 1.7;
}

.footer__contact p {
    margin-bottom: 0.25rem;
}

.footer__copyright {
    text-align: center;
    color: #aaa;
    margin-top: 1rem;
}

.footer__copyright p {
    margin: 0;
}

/* 10. Index Page Sections
----------------------------------- */


.hero {
    background-color: var(--color-light-gray);
    padding: 5rem 0;
}

.hero__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero__content {
    flex: 1;
}

.hero__title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero__sub {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__visual {
    flex: 1;
    max-width: 500px;
}

.hero__visual img {
    border-radius: var(--border-radius);
}


.breadcrumb {
    padding: 1rem 0;
    background-color: #f9f9f9;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li::after {
    content: '›';
    margin: 0 0.5rem;
    color: var(--color-text-light);
}

.breadcrumb li:last-child::after {
    content: '';
}

.breadcrumb li a {
    text-decoration: none;
}

.breadcrumb li span[aria-current="page"] {
    color: var(--color-text-light);
    font-weight: 600;
}


.how-it-works__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.step-card {
    background-color: var(--color-background);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.step-card__icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.step-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}


.infobar {
    background-color: var(--color-primary-dark);
    color: #ffffff;
    padding: 1rem 0;
}

.infobar__container {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.infobar__icon {
    font-size: 1.5rem;
}

.infobar p {
    margin: 0;
    font-weight: 500;
}


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

.game-card {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.game-card__image-wrapper {
    position: relative;
    background-color: #eee;
}

.game-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.game-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--color-secondary);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
}

.game-card__badge--new {
    background-color: var(--color-primary);
}

.game-card__content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.game-card__content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    flex-grow: 1;
}

.game-card__button {
    width: 100%;
    margin-top: 1rem;
}


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

.feature-item {
    text-align: center;
}

.feature-item__icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.feature-item__title {
    font-size: 1.25rem;
}


.promo {
    background-color: var(--color-primary-dark) !important;
    color: #ffffff;
}

.promo__container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.promo__icon {
    font-size: 4rem;
    flex-shrink: 0;
}

.promo__title {
    color: #ffffff;
    font-size: 1.75rem;
}

.promo .button--secondary {
    color: #ffffff;
    border-color: #ffffff;
}

.promo .button--secondary:hover {
    background-color: #ffffff;
    color: var(--color-primary-dark);
}


.community,
.about {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about__container {
    display: flex;
    gap: 2rem;
    align-items: center;
    text-align: left;
}

.about__content {
    flex: 1;
}

.about__visual {
    flex: 1;
    max-width: 400px;
}

.about__visual img {
    border-radius: var(--border-radius);
}



.faq__list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq__item {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background-color: var(--color-background);
}

.faq__question {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
    position: relative;
}

.faq__question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-primary);
}

.faq__item[open] .faq__question::after {
    content: '–';
}

.faq__answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--color-text-light);
}

.faq__answer p:last-child {
    margin-bottom: 0;
}


.contact__container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
    border-color: var(--color-error);
}

.form-group__error {
    font-size: 0.9rem;
    color: var(--color-error);
    margin-top: 0.25rem;
    display: none;
}

.form-group input:invalid:not(:placeholder-shown)~.form-group__error,
.form-group textarea:invalid:not(:placeholder-shown)~.form-group__error {
    display: block;
}

.form-group.has-error .form-group__error {
    display: block;
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: var(--color-error);
}

.form-success-message {
    background-color: var(--color-success);
    color: #ffffff;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    text-align: center;
}

.form-success-message[hidden] {
    display: none;
}

.contact__info {
    background-color: var(--color-light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.contact__info-title {
    margin-top: 0;
}

.contact__info-list {
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact__info-list i {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-top: 0.25rem;
}

.contact__badge {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 11. Static Content Pages
----------------------------------- */
.content-page {
    padding: 3rem 0;
}

.content-page .container {
    max-width: 800px;
    background-color: var(--color-background);
    padding: 3rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.content-page h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.content-page__updated,
.content-page__intro {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.content-page h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
}

.content-page ul {
    margin-bottom: 1.5rem;
}

.content-page li {
    margin-bottom: 0.5rem;
}

/* 12. Responsive (Mobile-First)
----------------------------------- */


@media (max-width: 992px) {
    .header__nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--color-background);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        padding: 1rem 0;
    }

    .header__nav.is-active {
        display: flex;
    }

    .header__nav-list {
        flex-direction: column;
        width: 100%;
    }

    .header__nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
        border-bottom: 1px solid var(--color-light-gray);
    }

    .header__nav-link:last-child {
        border-bottom: none;
    }

    .header__mobile-toggle {
        display: block;
    }

    .hero__container {
        flex-direction: column;
        text-align: center;
    }

    .hero__visual {
        margin-top: 2rem;
    }

    .hero__actions {
        justify-content: center;
    }

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

    .about__container {
        flex-direction: column;
        text-align: center;
    }
}


@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    section {
        padding: 2rem 0;
    }

    .header__cta {
        display: none;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero__title {
        font-size: 2.25rem;
    }

    .hero__sub {
        font-size: 1.1rem;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }

    .footer__top,
    .footer__compliance {
        flex-direction: column;
        text-align: center;
    }

    .footer__links {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .content-page .container {
        padding: 1.5rem;
    }

    .content-page h1 {
        font-size: 2rem;
    }
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.footer-legal img {
    height: 60px;
}