/* =========================================================
   Minkema Games — gedeelde stylesheet
   Donker, "glowing" thema geïnspireerd op het aangeleverde
   voorbeeld, opgebouwd met toegankelijkheid als uitgangspunt:
   - kleurcontrast is bewust ruim boven WCAG AA gehouden
   - alle interactieve elementen hebben een zichtbare focusring
   - animaties respecteren prefers-reduced-motion
   ========================================================= */

:root {
  --bg: #08080c;
  --bg-raised: #0e0e14;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.09);
  --panel-border-strong: rgba(255, 255, 255, 0.16);

  --text-primary: #f6f6f8;
  --text-secondary: #b9b9c4;   /* ~10:1 contrast on --bg */
  --text-muted: #8b8b98;       /* ~6.5:1 contrast on --bg, body text minimum */

  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-blue: #3b82f6;
  --accent-text: #c9bbfb;      /* light violet, ~11:1 contrast on --bg */

  --focus-ring: #b794fb;

  --white: #ffffff;
  --on-white: #0b0b0f;

  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --max-width: 1180px;
  --header-h: 84px;

  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.45);
}

/* ---------- Animaties ---------- */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(59,130,246,0.25); }
  50% { box-shadow: 0 0 0 6px rgba(59,130,246,0.12); }
}
@keyframes softPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Elementen met [data-reveal] starten onzichtbaar en glijden in zodra ze
   in beeld komen (zie de IntersectionObserver in js/main.js). Met
   prefers-reduced-motion vallen animation-duration en transition-duration
   al terug op ~0 via de regel hieronder, dus dit blijft prettig te gebruiken. */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
.grid[data-reveal-group] > * { transition-delay: calc(var(--reveal-index, 0) * 90ms); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-secondary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  color: var(--text-primary);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-text); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--white); }

ul { padding-left: 1.2em; }
li { margin-bottom: 0.4em; }

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

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--white);
  color: var(--on-white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 1000;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Focus visibility (keyboard) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.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;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--white);
  color: var(--on-white);
}
.btn-primary:hover { background: #e7e7ea; color: var(--on-white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,255,0.15); }

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--panel-border-strong);
}
.btn-secondary:hover { border-color: var(--white); color: var(--white); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
  padding: 0 14px;
  min-height: 40px;
}
.btn-ghost:hover { color: var(--white); }

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn:disabled:hover,
.btn[aria-disabled="true"]:hover {
  background: inherit;
  transform: none;
}

.btn-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.85rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  padding: 20px 0 0;
}
.nav-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-pill);
  padding: 10px 10px 10px 22px;
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--text-primary); }
.brand-mark { width: 26px; height: 26px; flex-shrink: 0; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.main-nav a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.main-nav a[aria-current="page"] {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--panel-border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-shell { flex-wrap: wrap; border-radius: var(--radius-lg); }
  .nav-shell.is-open .main-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    order: 3;
    padding-top: 10px;
    border-top: 1px solid var(--panel-border);
    margin-top: 10px;
    gap: 2px;
  }
  .nav-shell.is-open .main-nav a { padding: 12px 16px; }
}

/* ---------- Hero ---------- */
.hero-frame {
  position: relative;
  max-width: var(--max-width);
  margin: 18px auto 0;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-raised);
}
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 380px at 14% 100%, rgba(59,130,246,0.28), transparent 60%),
    radial-gradient(560px 360px at 88% 92%, rgba(236,72,153,0.24), transparent 60%),
    radial-gradient(420px 300px at 70% 0%, rgba(139,92,246,0.20), transparent 60%);
  animation: softPulse 7s ease-in-out infinite;
}

.hero-visual { animation: floatY 6s ease-in-out infinite; }
.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  padding: 64px 56px 72px;
}
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; padding: 40px 24px 48px; text-align: left; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--panel-border-strong);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.25);
  animation: pulseGlow 2.4s ease-in-out infinite;
}

.hero-lede {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  position: relative;
}
.hero-visual svg { width: 100%; height: auto; }

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 28px 24px 4px;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--text-secondary);
  font-size: 0.88rem;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
}
.trust-chip svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Sections ---------- */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 88px 24px;
}
.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head p { color: var(--text-muted); }

/* ---------- Feature / info grid ---------- */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--panel-border-strong);
  box-shadow: 0 16px 36px rgba(0,0,0,0.35);
}
.card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(139,92,246,0.14);
  border: 1px solid rgba(139,92,246,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 20px; height: 20px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); margin-bottom: 0; font-size: 0.95rem; }

.status-pill {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: rgba(139,92,246,0.14);
  border: 1px solid rgba(139,92,246,0.3);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
}

/* ---------- Embed placeholder (consent-gated) ---------- */
.embed-block {
  background: var(--bg-raised);
  border: 1px dashed var(--panel-border-strong);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
}
.embed-block h3 { margin-bottom: 10px; }
.embed-block p { color: var(--text-muted); max-width: 52ch; margin-inline: auto; }
.embed-block .btn { margin-top: 14px; }
.embed-status {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--accent-text);
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 620px;
  margin: 0 auto;
}
@media (max-width: 640px) { .form-card { padding: 26px; } }

.field {
  margin-bottom: 22px;
}
.field label {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.field .hint {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 6px;
}
.required-mark { color: var(--accent-pink); margin-left: 2px; }

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--panel-border-strong);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-size: 0.96rem;
  font-family: inherit;
}
input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder { color: var(--text-muted); }

textarea { resize: vertical; min-height: 130px; }

.field-error {
  color: #fca5c1;
  font-size: 0.85rem;
  margin-top: 6px;
  display: none;
}
.field.has-error input,
.field.has-error textarea {
  border-color: #f472b6;
}
.field.has-error .field-error { display: block; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 26px;
}
.checkbox-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--accent-purple);
}
.checkbox-row label {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 400;
}

.form-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 16px;
}
.form-success {
  display: none;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.35);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 0.92rem;
}
.form-success.is-visible { display: block; }

/* ---------- Legal pages ---------- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 100px;
}
.legal-content h2 { margin-top: 2em; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 0.92rem;
}
.legal-content th, .legal-content td {
  border: 1px solid var(--panel-border-strong);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  color: var(--text-secondary);
}
.legal-content th { color: var(--text-primary); background: var(--panel); }
.legal-content .updated-on {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 2.5em;
}
.legal-content .callout {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-left: 3px solid var(--accent-purple);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 1.6em 0;
  font-size: 0.94rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--panel-border);
  margin-top: 60px;
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  color: var(--text-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-grid a:hover { color: var(--white); }
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 32ch;
}
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px 32px;
  border-top: 1px solid var(--panel-border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.link-btn {
  background: none;
  border: none;
  color: var(--accent-text);
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-btn:hover { color: var(--white); }
.footer-bottom button.link-btn { color: var(--text-muted); }
.footer-bottom button.link-btn:hover { color: var(--white); }

/* ---------- Losstaande notitie (bv. onder een spel of embed-demo) ---------- */
.game-note {
  max-width: 640px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Uitgelichte game (gamepagina) ---------- */
.featured-game {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.featured-game:hover {
  border-color: rgba(139,92,246,0.45);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
@media (max-width: 860px) {
  .featured-game { grid-template-columns: 1fr; }
}
.featured-game-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a0714;
}
.featured-game-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.featured-game:hover .featured-game-media img,
.featured-game-media:focus-visible img { transform: scale(1.05); }
.featured-game-body {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.featured-game-body h2 { margin-bottom: 0; }
.featured-game-body p { color: var(--text-muted); margin-bottom: 0; }
.featured-game-tags {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.featured-game-tags li { margin: 0; padding-left: 1.3em; position: relative; }
.featured-game-tags li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-purple);
}
.featured-game-body .btn { align-self: flex-start; margin-top: 6px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  max-width: 620px;
  margin: 0 auto;
  background: #101018;
  border: 1px solid var(--panel-border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 22px 24px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.cookie-banner h2 { font-size: 1.05rem; margin-bottom: 8px; }
.cookie-banner p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Cookie preferences modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.is-visible { opacity: 1; pointer-events: auto; }
.modal-dialog {
  background: #101018;
  border: 1px solid var(--panel-border-strong);
  border-radius: var(--radius-md);
  max-width: 520px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 30px;
  box-shadow: var(--shadow-soft);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}
.modal-overlay.is-visible .modal-dialog { transform: none; }
.modal-dialog h2 { margin-bottom: 10px; }
.modal-dialog > p { color: var(--text-muted); font-size: 0.92rem; }
.consent-option {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  border-top: 1px solid var(--panel-border);
  padding: 18px 0;
}
.consent-option:first-of-type { border-top: none; margin-top: 8px; }
.consent-option-text h3 { font-size: 0.98rem; margin-bottom: 6px; }
.consent-option-text p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

/* Toggle switch, built from a real checkbox for keyboard/AT support */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.switch .track {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.14);
  border: 1px solid var(--panel-border-strong);
  border-radius: var(--radius-pill);
  transition: background-color 0.15s ease;
}
.switch .thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.switch input:checked ~ .track { background: rgba(139,92,246,0.5); border-color: var(--accent-purple); }
.switch input:checked ~ .thumb { transform: translateX(20px); background: var(--white); }
.switch input:disabled ~ .track { opacity: 0.6; }
.switch input:focus-visible ~ .track {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: 1px solid var(--panel-border-strong);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-dialog { position: relative; }

/* =========================================================
   Games grid + speler
   Bouwt voort op .card/.grid hierboven, met wat extra's die
   nodig zijn voor thumbnails en de embed-speler.
   ========================================================= */

.games-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.game-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  padding: 0;
}
.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--panel-border-strong);
  box-shadow: 0 16px 36px rgba(0,0,0,0.35);
}
.game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--bg-raised);
}
.game-card-body {
  padding: 14px 16px;
}
.game-card-body h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.game-card-body p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: capitalize;
}

.player {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.player.hidden { display: none; }
.player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.player-header h2 { margin: 0; }
.player-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.game-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-raised);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.game-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
