@font-face { font-family: "Baloo 2"; src: url("../fonts/baloo2.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --ink: #14213D;
  --muted: #3D4A6B;
  --ground: #E8F3FF;
  --accent: #FFD23F;
  --action: #1D4ED8;
  --display: "Baloo 2", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a { color: inherit; }
a:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; }

.page { max-width: 1200px; margin: 0 auto; padding: 0 16px 48px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.lift { transition: transform .12s ease; }
.lift:hover { transform: translate(-2px, -2px); }

/* Header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 20px 0; }
.logo { display: flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.logo-mark { display: flex; }
.logo-mark svg { display: block; width: 46px; height: auto; }
.logo-mark svg + svg { margin-left: -8px; }
.logo-text { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; }
.promises { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; font-weight: 700; }
.promises li { display: flex; align-items: center; gap: 4px; }
.lang-switch { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 900px) { .promises { order: 3; flex-basis: 100%; } }
.lang-switch a { display: flex; align-items: center; justify-content: center; min-width: 48px; min-height: 44px; background: #FFF; border: 2px solid var(--ink); border-radius: 12px; font-weight: 800; font-size: 15px; text-decoration: none; }
.lang-switch a.selected { background: var(--accent); }

/* Intro op de startpagina */
.intro { margin: 4px 0 24px; }
.intro h1 { margin: 0 0 10px; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.05; }
.intro .promises { gap: 8px 12px; color: var(--ink); font-size: clamp(15px, 1.6vw, 18px); }
.intro .promises li { gap: 6px; padding: 4px 14px 4px 10px; background: #FFF; border: 2px solid var(--ink); border-radius: 999px; }
.intro .promises svg { width: 20px; height: 20px; color: #1B8A5A; }

/* Spelerskaarten */
.players { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 2vw, 20px); }
.player { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; padding: 8px; background: #FFF; border: 3px solid var(--ink); border-radius: 16px; text-decoration: none; }
.player.selected { background: var(--accent); }
.figures { display: flex; justify-content: center; align-items: flex-end; }
.figures svg { display: block; width: clamp(40px, 6vw, 64px); height: auto; }
.player-label { font-family: var(--display); font-weight: 800; font-size: clamp(16px, 2.2vw, 22px); line-height: 1.1; }

/* Spelkaarten */
.result-count { margin: 28px 0 16px; font-weight: 800; }
.empty { margin: 0; padding: 24px 28px; background: #FFF; border: 2px solid var(--ink); border-radius: 20px; font-size: 18px; font-weight: 700; }
.hello { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 28px; padding: 24px 28px; background: #FFF; border: 2px solid var(--ink); border-radius: 20px; font-size: 18px; }
.hello .figures svg { width: 84px; }
.hello > p, .hello > div { flex: 1 1 260px; margin: 0; font-weight: 700; }
.hello h1 { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; }
.hello div p { margin: 0 0 16px; font-weight: 400; }
.hello .back { margin-bottom: 0; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 24px; }
.game-card { display: flex; flex-direction: column; overflow: hidden; background: #FFF; border: 3px solid var(--ink); border-radius: 20px; box-shadow: 5px 5px 0 var(--ink); text-decoration: none; }
.cover { display: block; position: relative; width: 100%; aspect-ratio: 5 / 4; overflow: hidden; border-bottom: 3px solid var(--ink); }
.shape { position: absolute; border: 3px solid var(--ink); }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.game-card-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; }
.game-name { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.15; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { padding: 2px 10px; background: #FFF; border: 2px solid var(--ink); border-radius: 8px; font-size: 14px; font-weight: 800; }
.badge.accent { background: var(--accent); }

/* Spelpagina */
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 20px; padding: 0 16px 0 10px; background: #FFF; border: 2px solid var(--ink); border-radius: 12px; font-size: 15px; font-weight: 800; text-decoration: none; }
.game-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.game-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.game-side p { margin: 0; }
.game-cover { display: block; position: relative; overflow: hidden; border: 3px solid var(--ink); border-radius: 20px; box-shadow: 5px 5px 0 var(--ink); }
.game-cover .cover { border-bottom: 0; }
div.game-cover { box-shadow: none; }
.play-mark { position: absolute; right: 12px; bottom: 12px; width: 64px; height: 64px; }
.play { display: flex; align-items: center; justify-content: center; min-height: 60px; padding: 8px 20px; background: var(--action); color: #FFF; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 5px 5px 0 var(--ink); font-family: var(--display); font-size: 24px; font-weight: 800; text-decoration: none; }
.game-side .play-disabled { background: #FFF; color: var(--muted); box-shadow: none; }
.game-main { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.game-main h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; }
.description { margin: 0; font-size: 18px; }
.review { padding: 20px 24px; background: #FFF; border: 2px solid var(--ink); border-radius: 20px; }
.review h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-size: 26px; }
.review dl { margin: 0; }
.review dl div { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, 2fr); gap: 12px; padding: 12px 0; border-top: 2px solid var(--ground); }
.review dt { font-weight: 800; }
.review dd { margin: 0; }
.review > p { margin: 8px 0 0; padding-top: 12px; border-top: 2px solid var(--ground); }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; margin-top: 56px; padding-top: 24px; border-top: 3px solid var(--ink); font-size: 15px; }
.site-footer p { margin: 0; max-width: 560px; }

/* Formulieren voor makers en het beheer */
.narrow { max-width: 640px; display: flex; flex-direction: column; gap: 16px; }
.narrow.wide { max-width: 860px; }
.narrow h1 { margin: 12px 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.narrow h2 { margin: 16px 0 0; font-family: var(--display); font-weight: 800; font-size: 26px; }
.narrow p { margin: 0; }
.form { display: flex; flex-direction: column; gap: 18px; padding: 20px 24px; background: #FFF; border: 2px solid var(--ink); border-radius: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field > legend { padding: 0; font-weight: 800; }
.field.group { padding: 14px 16px; border: 2px solid var(--ground); border-radius: 14px; gap: 12px; }
.field.group > legend { padding: 0 8px; }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field input[type="password"], .field textarea {
  width: 100%; padding: 10px 12px; background: #FFF; color: var(--ink); border: 2px solid var(--ink); border-radius: 10px; font: inherit;
}
.field input:focus-visible, .field textarea:focus-visible, .button:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; }
.field img, .listing img { border: 2px solid var(--ink); border-radius: 10px; max-width: 100%; height: auto; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.checks.column { flex-direction: column; }
.checks label { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.checks input { width: 20px; height: 20px; accent-color: var(--action); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 6px 20px; background: var(--action); color: #FFF; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.button.plain { min-height: 40px; padding: 4px 14px; background: #FFF; color: var(--ink); border-width: 2px; box-shadow: none; font-size: 15px; }
.button.danger { color: #B42318; border-color: #B42318; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.toolbar form { margin: 0; }
.errors { margin: 0; padding: 12px 16px 12px 16px; background: #FFE4E0; border: 2px solid #B42318; border-radius: 12px; font-weight: 700; list-style-position: inside; }
.note { padding: 12px 16px; background: #FFF7D1; border: 2px solid var(--ink); border-radius: 12px; }
.listings { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.listing { display: flex; flex-wrap: wrap; gap: 16px; padding: 16px; background: #FFF; border: 2px solid var(--ink); border-radius: 18px; }
.listing-body { flex: 1 1 260px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.narrow > .back, .narrow > form > .button, .narrow > p > .button { align-self: flex-start; }
.narrow .back { margin-bottom: 0; }
.review dd, .listing-body, .note { overflow-wrap: anywhere; }

/* Telefoon: compacte kop en twee spellen naast elkaar */
@media (max-width: 600px) {
  .site-header { gap: 8px 12px; padding: 12px 0; }
  .logo-mark svg { width: 34px; }
  .logo-text { font-size: 23px; }
  .lang-switch { gap: 6px; }
  .lang-switch a { min-width: 44px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .game-card { border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); }
  .game-card-body { gap: 6px; padding: 10px 12px 12px; }
  .game-name { font-size: 19px; }
  .game-card .badge { padding: 1px 7px; font-size: 13px; }
  .review dl div { grid-template-columns: 1fr; gap: 2px; }
}
