/* ==========================================================================
   Ilunexor – stylesheet
   Donker thema standaard, licht thema via [data-theme="light"].
   ========================================================================== */

@font-face {
    font-family: "Space Grotesk";
    src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/inter-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-heading: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

    --bg: #12141a;
    --bg-alt: #171a22;
    --surface: #1c2029;
    --surface-2: #242936;
    --border: #2f3546;
    --text: #eef1f6;
    --text-muted: #aab2c3;
    --teal: #2de2d0;
    --teal-strong: #2de2d0;
    --teal-soft: rgba(45, 226, 208, 0.12);
    --orange: #ff8a3d;
    --orange-soft: rgba(255, 138, 61, 0.14);
    --on-accent: #0b1414;
    --success: #4ade80;
    --error: #ff7b7b;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    --header-bg: rgba(18, 20, 26, 0.85);

    --radius: 14px;
    --radius-sm: 8px;
    --container: 1180px;
    --gutter: clamp(1rem, 4vw, 2rem);
}

[data-theme="light"] {
    --bg: #f5f6fa;
    --bg-alt: #eceef5;
    --surface: #ffffff;
    --surface-2: #f0f2f7;
    --border: #d5d9e3;
    --text: #151922;
    --text-muted: #4b5466;
    --teal: #0a7d73;
    --teal-strong: #08695f;
    --teal-soft: rgba(10, 125, 115, 0.1);
    --orange: #b5480a;
    --orange-soft: rgba(181, 72, 10, 0.1);
    --on-accent: #ffffff;
    --success: #15803d;
    --error: #b42318;
    --shadow: 0 10px 28px rgba(20, 24, 33, 0.1);
    --header-bg: rgba(245, 246, 250, 0.88);
}

/* ---------- Basis ---------- */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; }

a {
    color: var(--teal);
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
}

a:hover { text-decoration-thickness: 2px; }

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

code {
    font-size: 0.9em;
    background: var(--surface-2);
    padding: 0.1em 0.35em;
    border-radius: 4px;
}

address { font-style: normal; }

:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
    border-radius: 4px;
}

main:focus { outline: none; }

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 200;
    background: var(--orange);
    color: #111;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus { top: 1rem; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.narrow { max-width: 820px; }

.eyebrow {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 0.8rem;
}

/* ---------- Knoppen ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.7rem 1.25rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font: 600 1rem/1.2 var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary {
    background: var(--teal-strong);
    color: var(--on-accent);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px var(--teal-soft);
    text-decoration: none;
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn--ghost:hover { border-color: var(--teal); }

.btn--large { padding: 0.9rem 1.8rem; font-size: 1.05rem; }
.btn--small { min-height: 38px; padding: 0.45rem 1rem; font-size: 0.92rem; }

.btn .icon { flex-shrink: 0; }

.link-button {
    background: none;
    border: 0;
    padding: 0;
    color: var(--teal);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    cursor: pointer;
}

.text-link {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo__accent { color: var(--teal); }

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.site-nav__list {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__list a {
    display: block;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    color: var(--text-muted);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.site-nav__list a:hover { color: var(--text); background: var(--surface-2); }

.site-nav__list a[aria-current="page"] {
    color: var(--text);
    background: var(--teal-soft);
    box-shadow: inset 0 0 0 1px var(--teal);
}

.theme-toggle {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}

.theme-toggle:hover { border-color: var(--teal); }
.theme-toggle__moon { display: none; }
[data-theme="light"] .theme-toggle__sun { display: none; }
[data-theme="light"] .theme-toggle__moon { display: block; }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    position: relative;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 2px;
    margin-left: -10px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__bars { top: 50%; margin-top: -1px; }
.nav-toggle__bars::before { content: ""; top: -6px; }
.nav-toggle__bars::after { content: ""; top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); background: var(--text); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); background: var(--text); }

@media (max-width: 860px) {
    .nav-toggle { display: inline-block; }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 1rem var(--gutter) 1.5rem;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open { display: flex; }

    .site-nav__list { flex-direction: column; }

    .site-nav__list a { padding: 0.8rem 1rem; border-radius: var(--radius-sm); }

    .theme-toggle { align-self: flex-start; }

    /* Geen JavaScript: menu altijd tonen. */
    .no-js .site-nav { display: flex; position: static; box-shadow: none; }
    .no-js .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
    background:
        radial-gradient(900px 420px at 85% 10%, var(--teal-soft), transparent 70%),
        radial-gradient(700px 380px at 10% 90%, var(--orange-soft), transparent 70%);
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.hero__title {
    font-size: clamp(3rem, 9vw, 5.5rem);
    margin-bottom: 0.15em;
    background: linear-gradient(100deg, var(--text) 30%, var(--teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__tagline {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.6vw, 1.75rem);
    font-weight: 500;
    margin-bottom: 1.2rem;
}

.hero__lead {
    color: var(--text-muted);
    max-width: 60ch;
    font-size: 1.1rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.8rem;
}

.hero__actions--center { justify-content: center; }

.hero__facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.hero__facts li {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--teal);
    border-radius: var(--radius);
}

.hero__facts li:nth-child(2) { border-left-color: var(--orange); }

.hero__facts strong {
    font-family: var(--font-heading);
    font-size: 2rem;
    min-width: 4.5ch;
}

.hero__facts span { color: var(--text-muted); }

@media (max-width: 860px) {
    .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Secties ---------- */

.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section--tight { padding-top: 1.5rem; }

.section__head { max-width: 680px; margin-bottom: 2.2rem; }
.section__head p { color: var(--text-muted); font-size: 1.1rem; }

.page-hero {
    padding: clamp(2.5rem, 7vw, 4.5rem) 0 2rem;
    background: radial-gradient(800px 300px at 80% 0%, var(--teal-soft), transparent 70%);
}

.page-hero--center { text-align: center; padding-bottom: 5rem; }

.page-hero__lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 65ch;
}

.page-hero--center .page-hero__lead { margin-inline: auto; }

.meta { font-size: 0.92rem; color: var(--text-muted); }

.error-code {
    font-family: var(--font-heading);
    font-size: clamp(5rem, 18vw, 9rem);
    font-weight: 700;
    line-height: 1;
    margin: 0 0 0.5rem;
    color: var(--teal);
}

/* ---------- Badges ---------- */

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.5;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
}

.badge--genre { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); }
.badge--geen { border-color: var(--success); color: var(--success); background: transparent; }
.badge--optioneel { border-color: var(--orange); color: var(--orange); background: var(--orange-soft); }
.badge--featured { background: var(--orange); border-color: var(--orange); color: #1a0d03; }
[data-theme="light"] .badge--featured { color: #fff; }
.badge--sponsored { background: var(--text); border-color: var(--text); color: var(--bg); }

.badge--pegi { font-family: var(--font-heading); letter-spacing: 0.02em; }
.badge--pegi-3, .badge--pegi-7 { background: #3f9c35; border-color: #3f9c35; color: #fff; }
.badge--pegi-12, .badge--pegi-16 { background: #f2a900; border-color: #f2a900; color: #1a1300; }
.badge--pegi-18 { background: #d6111b; border-color: #d6111b; color: #fff; }
.badge--pegi-none { color: var(--text-muted); }

/* ---------- Gamekaarten ---------- */

.card-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 1.5rem;
}

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

.game-card:hover,
.game-card:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--teal);
}

.game-card .game-figure img,
.game-card .game-placeholder { transition: transform 0.4s ease; }
.game-card:hover .game-figure img,
.game-card:hover .game-placeholder { transform: scale(1.04); }

.game-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.2rem 1.3rem 1.4rem;
}

.game-card__body > p { color: var(--text-muted); font-size: 0.97rem; }

.game-card__title { font-size: 1.35rem; margin-bottom: 0.6rem; }

.game-card__title a,
.game-detail__title a {
    color: var(--text);
    text-decoration: none;
}

.game-card__title a:hover,
.game-detail__title a:hover { color: var(--teal); text-decoration: underline; }

.game-card__actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.2rem;
}

/* ---------- Afbeeldingen en placeholders ---------- */

.game-figure { margin: 0; }
.game-figure > a { text-decoration: none; }

.game-figure > a,
.game-figure > img,
.game-figure > .game-placeholder {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--surface-2);
}

.game-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.credit {
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--text-muted);
    padding: 0.35rem 0.8rem;
    background: var(--surface-2);
}

.credit a { color: inherit; }

.game-placeholder {
    position: relative;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    padding: 1.2rem 1.4rem;
    color: #fff;
    --ph-a: #1f2a44;
    --ph-b: #0f766e;
    background: linear-gradient(135deg, var(--ph-a), var(--ph-b));
    isolation: isolate;
}

.game-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to top, transparent, #000 70%);
    -webkit-mask-image: linear-gradient(to top, transparent, #000 70%);
}

.game-placeholder__mark {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    font-family: var(--font-heading);
    font-size: clamp(5rem, 14vw, 8rem);
    font-weight: 700;
    line-height: 1;
    opacity: 0.22;
}

.game-placeholder__name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.game-placeholder__genre {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
}

.game-placeholder--albion-online { --ph-a: #3a2a63; --ph-b: #b5651d; }
.game-placeholder--brawlhalla { --ph-a: #1e4fa3; --ph-b: #d9367a; }
.game-placeholder--krunker { --ph-a: #1c3b2c; --ph-b: #5e7f1a; }

/* ---------- Stappen en features ---------- */

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1.5rem;
    counter-reset: none;
}

.step {
    position: relative;
    padding: 1.6rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.step p { color: var(--text-muted); margin: 0; }

.step__num {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: var(--teal-soft);
    color: var(--teal);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px var(--teal);
}

.step:nth-child(2) .step__num { background: var(--orange-soft); color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.25rem;
}

.feature {
    padding: 1.4rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-top: 3px solid var(--teal);
}

.feature:nth-child(even) { border-top-color: var(--orange); }
.feature p { margin: 0; color: var(--text-muted); }

.cta {
    text-align: center;
    background:
        radial-gradient(600px 260px at 50% 0%, var(--teal-soft), transparent 70%),
        var(--bg);
}

.cta__inner p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 1.6rem; }

/* ---------- Mededelingen ---------- */

.notice {
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    border-left: 4px solid var(--orange);
    background: var(--surface);
    font-size: 0.95rem;
    max-width: 70ch;
}

.notice--info { border-left-color: var(--teal); margin-top: 1.5rem; }
.notice h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.notice p:last-child { margin: 0; }

.highlight-box {
    padding: 1.6rem 1.8rem;
    margin: 2.5rem 0;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--teal);
}

.small-print {
    margin-top: 2.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ---------- Tekstpagina's ---------- */

.prose { padding-bottom: 4rem; }
.prose section { margin-bottom: 2.4rem; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-top: 0.5rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--teal); }

.numbered li { padding-left: 0.3rem; }

.toc {
    padding: 1.3rem 1.6rem;
    margin-bottom: 2.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.toc h2 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.toc ol { margin: 0; columns: 2 220px; }
.toc li { margin-bottom: 0.3rem; }

.info-block {
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.table-wrap {
    overflow-x: auto;
    margin-bottom: 1.2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
    min-width: 560px;
}

th, td {
    text-align: left;
    vertical-align: top;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--border);
}

th { background: var(--surface-2); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- Filters ---------- */

.filters {
    padding: 1.4rem 1.6rem;
    margin-bottom: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.filters__title { font-size: 1.15rem; margin-bottom: 1rem; }

.filters__group {
    border: 0;
    margin: 0 0 1rem;
    padding: 0;
}

.filters__group legend {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    padding: 0;
}

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.chip { position: relative; cursor: pointer; }

.chip input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.chip span {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg);
    font-size: 0.92rem;
    font-weight: 500;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.chip:hover span { border-color: var(--teal); }

.chip input:checked + span {
    background: var(--teal-strong);
    border-color: var(--teal-strong);
    color: var(--on-accent);
    font-weight: 600;
}

.chip input:focus-visible + span {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
}

.filters__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border);
}

.filters__count { margin: 0; font-weight: 600; }

.empty-state {
    padding: 2rem;
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

/* ---------- Gamedetails ---------- */

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

.game-detail {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 2rem;
    padding: 1.6rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.game-detail[hidden] { display: none; }

.game-detail:target { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }

.game-detail__media .game-figure {
    position: sticky;
    top: 6rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.game-detail__title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.7rem; }

.game-detail__columns {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 1.5rem;
    margin: 1.4rem 0;
}

.game-detail__columns h3 { font-size: 1.05rem; }

.check-list, .tag-list { list-style: none; margin: 0; padding: 0; }

.check-list li {
    position: relative;
    padding-left: 1.7rem;
    margin-bottom: 0.55rem;
    font-size: 0.97rem;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 1rem;
    height: 0.55rem;
    border-left: 2px solid var(--teal);
    border-bottom: 2px solid var(--teal);
    transform: rotate(-45deg);
}

.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.tag-list li {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--orange-soft);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
}

.facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem 1.5rem;
    margin: 0 0 1.5rem;
    padding: 1.1rem 1.2rem;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
}

.facts dt {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.facts dd { margin: 0.1rem 0 0; font-size: 0.95rem; }

.facts__note {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .game-detail { grid-template-columns: 1fr; padding: 1.2rem; }
    .game-detail__media .game-figure { position: static; }
}

@media (max-width: 600px) {
    .game-detail__columns,
    .facts { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 2rem;
    padding-bottom: 4rem;
    align-items: start;
}

.contact-card,
.contact-form-wrap {
    padding: 1.6rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.contact-card h2,
.contact-form-wrap h2 { font-size: 1.4rem; }

.contact-list { margin: 0; display: grid; gap: 0.9rem; }
.contact-list dt { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.contact-list dd { margin: 0.1rem 0 0; overflow-wrap: anywhere; }

@media (max-width: 860px) {
    .contact-layout { grid-template-columns: 1fr; }
}

.field { margin-bottom: 1.1rem; }

.field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: 1rem;
}

.field textarea { resize: vertical; min-height: 9rem; }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 1px;
    border-color: var(--teal);
}

.field [aria-invalid="true"] { border-color: var(--error); }

.field__error {
    margin: 0.35rem 0 0;
    color: var(--error);
    font-size: 0.9rem;
    font-weight: 500;
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-note { font-size: 0.9rem; color: var(--text-muted); }

.alert {
    padding: 1rem 1.2rem;
    margin-bottom: 1.4rem;
    border-radius: var(--radius-sm);
    border: 1px solid;
}

.alert--success { border-color: var(--success); background: rgba(74, 222, 128, 0.1); }
.alert--error { border-color: var(--error); background: rgba(255, 123, 123, 0.1); }

/* ---------- Footer ---------- */

.site-footer {
    margin-top: 0;
    padding-top: 3.5rem;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1.2fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}

.site-footer__title {
    font-size: 1rem;
    margin-bottom: 0.9rem;
    color: var(--text);
}

.site-footer p,
.site-footer address { color: var(--text-muted); }

.site-footer__disclosure { font-size: 0.88rem; }

.site-footer__links { list-style: none; margin: 0; padding: 0; }
.site-footer__links li { margin-bottom: 0.45rem; }
.site-footer__links a,
.site-footer__links .link-button { color: var(--text-muted); text-decoration: none; }
.site-footer__links a:hover,
.site-footer__links .link-button:hover { color: var(--teal); text-decoration: underline; }

.site-footer__ids { margin-top: 0.8rem; }

.site-footer__bottom {
    padding-top: 1.2rem;
    padding-bottom: 1.6rem;
    border-top: 1px solid var(--border);
}

.site-footer__bottom p { margin: 0; font-size: 0.85rem; }

@media (max-width: 900px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .site-footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Cookiebanner ---------- */

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 300;
    display: flex;
    justify-content: center;
}

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

.cookie-banner__inner {
    width: 100%;
    max-width: 760px;
    padding: 1.4rem 1.6rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.cookie-banner__title { font-size: 1.15rem; margin-bottom: 0.5rem; }
.cookie-banner p { font-size: 0.93rem; color: var(--text-muted); }

.cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

/* Beide knoppen even prominent, zoals de Autoriteit Persoonsgegevens vraagt. */
.btn--cookie {
    background: var(--teal-strong);
    color: var(--on-accent);
    border-color: var(--teal-strong);
}

.btn--cookie:hover { filter: brightness(1.08); }

@media (max-width: 480px) {
    .cookie-banner__actions { grid-template-columns: 1fr; }
}

/* ---------- Beweging beperken ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .game-card:hover,
    .game-card:focus-within,
    .btn--primary:hover { transform: none; }

    .game-card:hover .game-figure img,
    .game-card:hover .game-placeholder { transform: none; }
}
