/* ---
   FernArcade (fernarcade.nz)
   style.css
   --- */


:root {
    --color-bg: #121212;
    --color-bg-alt: #1a1a1a;
    --color-bg-modal: #242424;
    --color-surface: #2d2d2d;
    --color-surface-hover: #3a3a3a;

    --color-primary: #00a877;
    --color-primary-hover: #00c088;

    --color-text: #f0f0f0;
    --color-text-muted: #a0a0a0;
    --color-border: #444;
    --color-shadow: rgba(0, 0, 0, 0.5);

    --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    --header-height: 70px;
}

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

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

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

body.no-scroll {
    overflow: hidden;
}

main {
    padding-top: var(--header-height);
}

img,
iframe {
    max-width: 100%;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--color-primary-hover);
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

ul {
    list-style: none;
}

section {
    padding: 4rem 0;
}

section:nth-of-type(even) {
    background-color: var(--color-bg-alt);
}

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


.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.grid-2 {
    display: grid;
    gap: 2rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-primary-hover);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 168, 119, 0.2);
    border-color: var(--color-primary-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: rgba(0, 168, 119, 0.1);
    color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}


.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--color-bg-alt);
    box-shadow: 0 2px 10px var(--color-shadow);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
}

.logo:hover,
.logo:focus {
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--color-text-muted);
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 4px;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--color-text);
    background-color: var(--color-surface);
}

.btn-nav-cta {
    display: none;
}

.burger-menu {
    display: block;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.75rem;
    cursor: pointer;
    z-index: 1100;
}

.burger-menu:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}


.age-gate {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}

.age-gate.is-active {
    display: flex;
}

.age-gate-content {
    background-color: var(--color-bg-modal);
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 500px;
    border: 1px solid var(--color-border);
}

.age-gate-icon {
    width: 80px;
    height: 80px; 
    margin: 0 auto 1.5rem; 
}

.age-gate-content h2 {
    color: var(--color-text);
}

.age-gate-content p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.age-gate-disclaimer {
    font-size: 0.9rem !important;
    font-style: italic;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.age-gate-content .btn {
    width: 100%;
    font-size: 1.1rem;
}

.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-modal);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -2px 10px var(--color-shadow);
    padding: 1.5rem;
    z-index: 1500;
    transition: bottom 0.5s ease;
}

.cookie-banner.is-active {
    bottom: 0;
}

.cookie-banner-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-banner-content p {
    margin: 0;
    color: var(--color-text-muted);
}

.cookie-banner-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}


.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1900;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

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

.modal-overlay {
    position: absolute;
    inset: 0;
}

.modal-content {
    position: relative;
    background-color: var(--color-bg-modal);
    border-radius: 12px;
    z-index: 1901;
    width: 90%;
    max-width: 1000px;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 30px var(--color-shadow);
}

.modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: var(--color-text);
    color: var(--color-bg);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 36px;
    z-index: 1902;
    transition: all 0.2s ease;
}

.modal-close:hover,
.modal-close:focus {
    background-color: var(--color-primary);
    color: #fff;
    transform: scale(1.1) rotate(90deg);
    outline: none;
}

.game-frame-container {
    width: 100%;

    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
}

.game-frame-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #000;
}




.hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 0.8)), url('../img/hero.png') no-repeat center center/cover;
    padding-top: 0;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}


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

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    width: 40px;
    text-align: center;
    margin-top: 0.25rem;
}

.feature-item h3 {
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

.feature-item p {
    margin-bottom: 0;
}


.steps-grid {
    display: grid;
    gap: 1.5rem;
}

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

.step-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step-icon {
    font-size: 1.75rem;
}

.step h3 {
    color: var(--color-text);
}


.games-grid {
    display: grid;
    gap: 1.5rem;
}

.game-card {
    background-color: var(--color-surface);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-card:hover,
.game-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--color-shadow);
    border-color: var(--color-primary);
    outline: none;
}

.game-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.game-card-content {
    padding: 1.5rem;
    position: relative;
}

.game-card-content h3 {
    color: var(--color-text);
}

.game-card-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.25rem;
    color: var(--color-primary);
}


.features-grid {
    display: grid;
    gap: 1.5rem;
}

.feature-box {
    background-color: var(--color-surface);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    text-align: center;
}

.feature-icon-alt {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.feature-box h3 {
    color: var(--color-text);
}


.tokens .grid-2 {
    align-items: center;
}

.tokens-text strong {
    color: var(--color-text);
}

.tokens-text a {
    font-weight: 600;
}


.testimonials-grid {
    display: grid;
    gap: 1.5rem;
}

.testimonial-card {
    background-color: var(--color-surface);
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid var(--color-primary);
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.testimonial-card cite {
    font-weight: 600;
    color: var(--color-text-muted);
}


.contact-form-wrapper {
    background-color: var(--color-bg-alt);
    padding: 2rem;
    border-radius: 8px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(0, 168, 119, 0.2);
}

.contact-info {
    padding: 2rem 0;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

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

.contact-list i {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-top: 0.25rem;
    width: 20px;
    text-align: center;
}

.contact-list p,
.contact-list strong {
    margin: 0;
    color: var(--color-text-muted);
}

.contact-list strong {
    color: var(--color-text);
}

.social-icons {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    font-size: 1.75rem;
    color: var(--color-text-muted);
}

.social-icons a:hover,
.social-icons a:focus {
    color: var(--color-primary);
    transform: translateY(-3px);
}


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

.faq-item {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-item summary {
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 3.5rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '\f067';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    content: '\f068';
    transform: translateY(-50%) rotate(180deg);
}

.faq-item p {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid var(--color-border);
    margin-bottom: 0;
}


.footer {
    background-color: var(--color-bg-alt);
    color: var(--color-text-muted);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-about .logo {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-disclaimer {
    font-size: 0.9rem;
    max-width: 450px;
}

.footer-disclaimer strong {
    color: var(--color-text);
}

.footer-links h3 {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--color-text-muted);
}

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

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}


.policy-page {
    padding: 3rem 0;
}

.policy-page .container {
    max-width: 800px;
    background-color: var(--color-bg-alt);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.policy-page h1 {
    font-size: 2.25rem;
    color: var(--color-text);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.policy-page h2 {
    font-size: 1.75rem;
    color: var(--color-text);
    margin-top: 2.5rem;
}

.policy-page ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

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

.policy-page p {
    color: var(--color-text-muted);
}

.policy-page a {
    font-weight: 600;
}

.policy-page strong {
    color: var(--color-text);
}





@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .btn-nav-cta {
        display: inline-block;
    }

    .burger-menu {
        display: none;
    }

    .cookie-banner-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .cookie-banner-actions {
        flex-wrap: nowrap;
    }

    .hero-title {
        font-size: 3.5rem;
    }

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

    .about .grid-2 {
        align-items: center;
    }

    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .policy-page .container {
        padding: 3rem;
    }
}


@media (min-width: 1024px) {
    .nav-menu {
        gap: 2rem;
    }

    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


@media (max-width: 767.98px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-bg-alt);
        flex-direction: column;
        align-items: center;
        padding-top: 3rem;
        gap: 2rem;
        transition: left 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-menu.is-active {
        left: 0;
    }

    .nav-link {
        font-size: 1.25rem;
    }

    .btn-nav-cta {
        display: none;
    }
}
  .footer-legal {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      margin: 30px auto;
  }

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