/* Blokhutwinkel huisstijl: Aleo voor koppen, Open Sans voor tekst,
   oranje als actiekleur en groen voor de tuin. */
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(/fonts/open-sans/OpenSans-latin.woff2) format('woff2'); }
@font-face { font-family: 'Aleo'; font-style: normal; font-weight: 400; font-display: swap; src: url(/skin/frontend/blokhutwinkel/blokhutwinkel/dist/fonts/Aleo-Regular-webfont.woff2) format('woff2'); }
@font-face { font-family: 'Aleo'; font-style: normal; font-weight: 700; font-display: swap; src: url(/skin/frontend/blokhutwinkel/blokhutwinkel/dist/fonts/Aleo-Bold-webfont.woff2) format('woff2'); }

:root {
  --orange: #fea400;
  --orange-dark: #e08a00;
  --green: #62b76e;
  --green-dark: #283d2b;
  --green-deep: #1f3022;
  --ink: #1d1f22;
  --text: #4a4a4a;
  --muted: #909294;
  --line: #e2e2e2;
  --bg: #f5f5f5;
  --card: #ffffff;
  --red: #ef3a3d;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .06);
  font-family: 'Open Sans', system-ui, sans-serif;
  color: var(--text);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); font-size: 15px; line-height: 1.55; }
h1, h2, h3 { font-family: 'Aleo', Georgia, serif; color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* --- Kopbalk ---------------------------------------------------------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 45px; width: auto; flex: none; }
.brand-sub { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding-left: 14px; border-left: 1px solid var(--line); }
@media (max-width: 480px) { .brand-sub { display: none; } }
.topbar nav { margin-left: auto; display: flex; gap: 6px; }
.topbar nav a { text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: var(--radius); color: var(--ink); }
.topbar nav a:hover, .topbar nav a.active { background: var(--bg); }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* --- Knoppen ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 15px 'Open Sans', sans-serif; color: #fff; background: var(--orange);
  border: 0; border-radius: var(--radius); padding: 11px 20px; cursor: pointer;
  text-decoration: none; transition: background .15s, transform .05s; white-space: nowrap;
}
.btn:hover { background: var(--orange-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.green { background: var(--green); }
.btn.green:hover { background: #4fa35b; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: var(--bg); }
.btn.danger { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1px #f3c2c3; }
.btn.danger:hover { background: #fdeeee; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.big { padding: 15px 28px; font-size: 17px; }

/* --- Formulieren -------------------------------------------------------- */
label { display: block; font-weight: 600; font-size: 13px; color: var(--ink); margin-bottom: 4px; }
.hint { font-size: 12px; color: var(--muted); font-weight: 400; }
input[type=text], input[type=number], textarea, select {
  width: 100%; font: 14px 'Open Sans', sans-serif; color: var(--ink);
  border: 1px solid #cfcfcf; border-radius: var(--radius); padding: 9px 11px; background: #fff;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--orange); outline-offset: -1px; border-color: transparent; }
textarea { resize: vertical; min-height: 70px; }
.field { margin-bottom: 14px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green); }

/* --- Kaarten ------------------------------------------------------------ */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px; background: var(--orange); color: #fff;
}
.badge.green { background: var(--green); }
.badge.grey { background: #d9d9d9; color: var(--ink); }

/* --- Hero (startpagina) ------------------------------------------------- */
.hero {
  background:
    radial-gradient(1200px 400px at 85% 120%, rgba(98, 183, 110, .35), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 14px, rgba(0, 0, 0, .04) 14px 15px),
    var(--green-dark);
  color: #e8efe9;
}
.hero .wrap { padding-top: 48px; padding-bottom: 48px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(30px, 5vw, 48px); }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p { font-size: 17px; max-width: 34em; }
.hero .name-box { background: rgba(0, 0, 0, .22); border-radius: var(--radius); padding: 20px; }
.hero .name-box label { color: #fff; }
.hero .controls { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; margin-top: 16px; color: #cfdcd1; }
.hero .controls b { color: #fff; }
@media (max-width: 800px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 32px; } }

/* --- Levelkaarten ------------------------------------------------------- */
.levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 32px 0 48px; }
.level-card { display: flex; flex-direction: column; overflow: hidden; }
.level-card .thumb { aspect-ratio: 16 / 10; background: linear-gradient(#cfe3d2, #a9c9ae); position: relative; }
.level-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.level-card .thumb .badge { position: absolute; left: 12px; top: 12px; }
.level-card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.level-card h3 { font-size: 19px; margin: 0; }
.level-card p { margin: 0; font-size: 14px; }
.level-card .meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; }
.level-card .best { font-size: 13px; color: var(--muted); }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }

.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 36px; }
.section-title h2 { margin: 0; font-size: 26px; }

footer.site { padding: 24px 0 40px; color: var(--muted); font-size: 13px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: var(--radius); font-weight: 600;
  box-shadow: var(--shadow); opacity: 0; transition: opacity .2s; pointer-events: none;
}
.toast.show { opacity: 1; }
.toast.error { background: var(--red); }

/* --- Sterren -------------------------------------------------------------- */
.stars { display: inline-flex; gap: 2px; font-size: 18px; line-height: 1; }
.star { color: #d9d9d9; }
.star.on { color: var(--orange); }
.level-card .mine { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.level-card a.thumb { display: block; }
.level-card { transition: transform .15s, box-shadow .15s; }
.level-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0, 0, 0, .08), 0 12px 28px rgba(0, 0, 0, .12); }

/* --- Portal ----------------------------------------------------------------- */
.portal-hero .wrap { grid-template-columns: 1.4fr 1fr; padding-bottom: 0; align-items: end; }
.portal-hero .wrap > div:first-child { padding-bottom: 48px; }
.portal-hero .name-box { max-width: 380px; margin-top: 24px; }
.mascot-stage { align-self: end; display: flex; justify-content: center; }
.mascot-stage img { width: min(380px, 100%); height: auto; margin-bottom: -18px; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .35)); animation: mascot-bob 4s ease-in-out infinite; }
@keyframes mascot-bob { 50% { transform: translateY(-8px) rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce) { .mascot-stage img { animation: none; } }
@media (max-width: 800px) {
  .portal-hero .wrap { grid-template-columns: 1fr; }
  .portal-hero .wrap > div:first-child { padding-bottom: 8px; }
  .mascot-stage img { width: 220px; }
}

.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin: 24px 0 48px; }
.game-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s; }
.game-card:hover, .game-card:focus-visible { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(0, 0, 0, .08), 0 16px 36px rgba(0, 0, 0, .14); outline: none; }
.game-card:focus-visible { box-shadow: 0 0 0 3px var(--orange), 0 16px 36px rgba(0, 0, 0, .14); }
.game-card:hover .btn { background: var(--orange-dark); }
.game-card .art { aspect-ratio: 16 / 9; position: relative; overflow: hidden; display: grid; place-items: center; }
.art-bouwer { background: linear-gradient(#cfe3d2, #a9c9ae); }
.art-plankenjacht {
  background:
    radial-gradient(circle at 50% 120%, #7ecb89 0 45%, transparent 46%),
    linear-gradient(#bfe3f5, #e9f6fb);
}
.game-card .art-photo { width: 100%; height: 100%; object-fit: cover; }
.game-card .art-logo { width: 55%; background: #fff; padding: 14px 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.game-card .art-mascot { position: absolute; left: 50%; bottom: -8%; height: 100%; width: auto; max-width: none; transform: translateX(-50%); filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .25)); transition: transform .25s; }
.game-card:hover .art-mascot { transform: translateX(-50%) scale(1.05) rotate(-2deg); }
.game-card .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-card .tags { display: flex; gap: 6px; }
.game-card h3 { font-size: 26px; margin: 4px 0 0; }
.game-card p { margin: 0; font-size: 14px; }
.game-card .tagline { font-weight: 600; color: var(--ink); font-size: 15px; }
.game-card .meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; }
.game-card .best { font-size: 13px; color: var(--muted); }
.art-zaag { background: linear-gradient(#bfe3f5, #e9f6fb); }
.game-card .art-saw { position: absolute; inset: 0; width: 100%; height: 100%; }
