:root {
    --bg: #f6f1e7;
    --surface: rgba(255, 250, 243, 0.9);
    --surface-strong: #fff9ef;
    --text: #18231f;
    --muted: #4d5d56;
    --line: rgba(24, 35, 31, 0.12);
    --deep: #10261f;
    --deep-soft: #18372d;
    --accent: #d7a94d;
    --accent-soft: #f4c76b;
    --green: #65b788;
    --shadow: 0 18px 55px rgba(16, 38, 31, 0.12);
    --radius: 8px;
    --max: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

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

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

a:hover {
    text-decoration: underline;
}

iframe {
    border: 0;
}

.container {
    width: min(calc(100% - 2rem), var(--max));
    margin: 0 auto;
}

.section,
.hero,
.site-footer {
    padding: 4.5rem 0;
}

.section-label,
.eyebrow,
.game-kicker,
.promo-kicker {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--green);
    font-weight: 700;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(2.5rem, 4vw, 4.9rem);
    line-height: 1.04;
    max-width: 12ch;
}

h2 {
    font-size: clamp(1.9rem, 2.6vw, 3rem);
    line-height: 1.12;
    max-width: 18ch;
}

h3 {
    font-size: 1.35rem;
    line-height: 1.2;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 3rem;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

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

.button-secondary {
    background: rgba(255, 255, 255, 0.56);
    border-color: rgba(255, 255, 255, 0.22);
    color: var(--text);
}

.button-large {
    min-width: 11rem;
    min-height: 4rem;
    font-size: 1.05rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: rgba(246, 241, 231, 0.84);
    border-bottom: 1px solid var(--line);
}

.topbar {
    min-height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

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

.brand-mark {
    flex: 0 0 3rem;
    width: 3rem;
    height: 3rem;
}

.brand-copy {
    display: grid;
    gap: 0.1rem;
}

.brand-copy strong {
    font-size: 1rem;
}

.brand-copy span {
    font-size: 0.82rem;
    color: var(--muted);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1rem;
}

.site-nav a {
    color: var(--muted);
    font-weight: 600;
}

.site-nav a.is-active {
    color: var(--deep);
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero-home {
    background:
        linear-gradient(130deg, rgba(16, 38, 31, 0.9), rgba(24, 55, 45, 0.68)),
        linear-gradient(0deg, rgba(255, 247, 233, 0.1), rgba(255, 247, 233, 0.1));
    color: #f8f1e2;
}

.hero-secondary {
    background:
        linear-gradient(130deg, rgba(16, 38, 31, 0.92), rgba(40, 75, 63, 0.74)),
        #153228;
    color: #f8f1e2;
}

.hero-grid,
.split-band,
.statement-grid,
.contact-layout,
.resource-grid {
    display: grid;
    gap: 2rem;
}

.hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
}

.hero-copy p,
.hero-copy li {
    max-width: 56ch;
}

.hero-zulu,
.copy-zulu,
.footer-zulu {
    color: var(--accent-soft);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1.35rem 0;
}

.hero-badges span {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.95rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero-media img,
.visual-panel img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    aspect-ratio: 5 / 4;
    object-fit: cover;
}

.statement-band {
    background: #efe7d6;
}

.statement-grid {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
}

.statement-points {
    display: grid;
    gap: 1rem;
}

.statement-points p,
.resource-panel,
.promo-panel,
.game-card,
.tool-panel,
.simple-panel,
.legal-document {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.statement-points p,
.resource-panel,
.tool-panel,
.promo-panel {
    padding: 1.25rem;
}

.games-section {
    background: linear-gradient(180deg, #f6f1e7, #fbf8f1);
}

.section-heading {
    margin-bottom: 1.8rem;
}

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

.game-card {
    padding: 1.25rem;
}

.game-frame {
    margin-top: 1rem;
    border-radius: calc(var(--radius) - 2px);
    overflow: hidden;
    background: #0c1714;
    aspect-ratio: 4 / 3;
}

.game-frame iframe {
    width: 100%;
    height: 100%;
}

.split-band {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.copy-panel,
.contact-intro {
    display: grid;
    gap: 1rem;
}

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

.tool-panel {
    padding: 1.5rem;
}

.compact-panel {
    align-self: start;
}

.quiz-form,
.contact-form {
    display: grid;
    gap: 1rem;
}

.quiz-form label,
.contact-form label {
    display: grid;
    gap: 0.45rem;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    min-height: 3rem;
    padding: 0.85rem 0.95rem;
    border-radius: 6px;
    border: 1px solid rgba(24, 35, 31, 0.18);
    background: #fffdf7;
    color: var(--text);
    font: inherit;
}

textarea {
    min-height: 8rem;
    resize: vertical;
}

.quiz-result {
    margin-top: 1rem;
    min-height: 8rem;
    padding: 1rem;
    border-radius: 6px;
    background: #fcf6ea;
    border: 1px dashed rgba(24, 35, 31, 0.2);
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.promo-panel {
    display: grid;
    gap: 0.5rem;
    padding: 1.45rem;
    color: var(--text);
}

.promo-panel strong {
    font-size: 1.2rem;
}

.promo-panel:hover {
    text-decoration: none;
    border-color: rgba(102, 183, 136, 0.45);
}

.contact-section {
    position: relative;
    overflow: hidden;
    color: #f8f1e2;
}

.contact-backdrop {
    position: absolute;
    inset: 0;
}

.contact-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(10, 20, 18, 0.92), rgba(18, 41, 34, 0.65));
}

.contact-backdrop img {
    height: 100%;
    object-fit: cover;
}

.contact-layout {
    position: relative;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
}

.team-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.team-list div,
.feedback,
.map-frame,
.contact-form {
    background: rgba(255, 252, 245, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
}

.team-list div {
    padding: 1rem;
}

.team-list span,
.footer-heading,
.mini-heading,
.footer-brand {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.contact-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.contact-points a,
.site-footer a {
    color: inherit;
}

.contact-tools {
    display: grid;
    gap: 1rem;
}

.feedback,
.contact-form {
    padding: 1rem;
}

.feedback-success {
    border-color: rgba(101, 183, 136, 0.5);
}

.feedback-warning {
    border-color: rgba(244, 199, 107, 0.55);
}

.map-frame {
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
}

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

.reason-list {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.55rem;
}

.site-footer {
    background: var(--deep);
    color: #e9e4d9;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
    gap: 1.5rem;
}

.site-footer a {
    display: block;
    margin-bottom: 0.55rem;
}

.footer-link-button {
    display: block;
    margin: 0 0 0.55rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.footer-note {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.footer-support {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.footer-support-block {
    display: grid;
    gap: 0.2rem;
}

.sound-toggle {
    min-height: 2.75rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.cookie-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 20;
    display: grid;
    gap: 1rem;
    width: min(28rem, calc(100% - 2rem));
    padding: 1rem;
    border-radius: var(--radius);
    background: rgba(255, 249, 239, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.cookie-title {
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.cookie-copy {
    display: grid;
    gap: 0.35rem;
}

.cookie-inline-link {
    font-weight: 700;
}

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

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 25;
}

.cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 18, 0.55);
}

.cookie-modal-panel {
    position: relative;
    width: min(40rem, calc(100% - 2rem));
    margin: min(10vh, 4rem) auto 0;
    padding: 1.4rem;
    border-radius: var(--radius);
    background: rgba(255, 251, 244, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.icon-button {
    min-width: 2.6rem;
    min-height: 2.6rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fffaf0;
    color: var(--text);
    font: inherit;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.cookie-settings-form {
    display: grid;
    gap: 1rem;
}

.cookie-option {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-radius: 6px;
    background: #fdf7eb;
    border: 1px solid rgba(24, 35, 31, 0.1);
}

.cookie-option strong,
.cookie-option small {
    display: block;
}

.cookie-option small {
    margin-top: 0.3rem;
    color: var(--muted);
}

.cookie-option input[type="checkbox"] {
    width: 1.2rem;
    min-height: 1.2rem;
    accent-color: var(--deep);
}

.cookie-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
}

.cookie-toast {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 22;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    background: rgba(16, 38, 31, 0.94);
    color: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-modal-open {
    overflow: hidden;
}

.page-gate {
    min-height: 100vh;
    display: grid;
    place-items: center;
    position: relative;
    background: #10261f;
    color: #f8f1e2;
}

.gate-shell,
.simple-shell,
.legal-shell {
    width: min(calc(100% - 2rem), 72rem);
    margin: 0 auto;
    padding: 2rem 0;
}

.gate-panel,
.simple-panel {
    position: relative;
    z-index: 1;
    width: min(36rem, 100%);
    padding: 2rem;
    border-radius: var(--radius);
    background: rgba(15, 31, 26, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.gate-actions,
.gate-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.gate-actions {
    margin: 1.5rem 0;
}

.gate-links a {
    color: #f3dfac;
}

.gate-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.gate-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16, 38, 31, 0.8), rgba(38, 74, 61, 0.62));
}

.gate-background img {
    height: 100%;
    object-fit: cover;
}

.page-denied,
.page-legal {
    background: linear-gradient(180deg, #f6f1e7, #faf7f1);
}

.simple-panel,
.legal-document {
    color: var(--text);
    background: rgba(255, 251, 244, 0.96);
}

.legal-document {
    padding: 2rem;
}

.legal-document h2 {
    margin-top: 2rem;
    font-size: 1.35rem;
}

.legal-document ul {
    padding-left: 1.2rem;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 980px) {
    .hero-grid,
    .split-band,
    .statement-grid,
    .contact-layout,
    .resource-grid,
    .promo-grid,
    .footer-grid,
    .footer-support {
        grid-template-columns: 1fr;
    }

    .team-list {
        grid-template-columns: 1fr;
    }

    .footer-note {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .section,
    .hero,
    .site-footer {
        padding: 3.5rem 0;
    }

    .topbar,
    .site-nav,
    .gate-actions,
    .cookie-actions,
    .cookie-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav {
        width: 100%;
    }

    .brand {
        align-items: flex-start;
    }

    .gate-panel,
    .simple-panel,
    .legal-document {
        padding: 1.4rem;
    }

    .cookie-option,
    .cookie-modal-header {
        grid-template-columns: 1fr;
    }
}
