/*
Theme Name: Pixelfart
Description: Pixel-art thema voor Pixelfart, de spelletjessite van vader & zoon. Werkt samen met de plugin Pixelfart Games.
Version: 1.7.0
Author: Bitless
Requires PHP: 8.2
Text Domain: pixelfart
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Update URI: false

Fonts: Press Start 2P (CodeMan38), Pixelify Sans (Stefie Justprince) en VT323 (Peter Hull), alle SIL Open Font License 1.1, lokaal in assets/fonts.
ALTCHA 3.5.0 (MIT) in assets/vendor/altcha.
*/

/* Fonts (lokaal) staan in theme.json; WordPress zet de @font-face-regels zelf in de pagina en de editor. */

:root {
	--bg: #000;
	--ink: #f2f2f2;
	--dim: #bdbdbd;
	--mute: #8a8a8a;
	--line: #6a6a6a;
	--dark: #3a3a3a;
	--darker: #2a2a2a;
	--green: #5dde7a;
	--blue: #6ec9ff;
	--yellow: #ffcf4a;
	--pink: #ff5c8a;
	--pix: 'Press Start 2P', ui-monospace, monospace;
	--vt: 'VT323', ui-monospace, monospace;
	--txt: 'Pixelify Sans', system-ui, sans-serif; /* leesletter: pixelig, maar goed leesbaar. Raster = 1/11 em, dus 22px is haarscherp */
	--gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
/* de pixelkoppen zonder randjes; de leesletter mag zacht, dat leest beter bij kleinere maten */
.h-pix, .btn, .logo, .wp-element-button, h1, h2, h3, h4 { -webkit-font-smoothing: none; }
body { font-family: var(--txt); font-size: 22px; line-height: 1.4; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; }
::selection { background: var(--ink); color: #000; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 4px solid var(--yellow); outline-offset: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.no-js .js-only { display: none !important; }
[hidden] { display: none !important; }

/* pixel-iconen: één span met box-shadows (kleur = currentColor) */
.px-icon { position: relative; display: inline-block; flex: none; }
.px-icon > span { position: absolute; display: block; }

.site { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- header + grijpmachine ---------- */
.site-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; padding: 28px var(--gutter) 20px; border-bottom: 4px solid var(--ink); }
.logo { display: flex; align-items: baseline; font-family: var(--pix); font-size: clamp(20px, 3.4vw, 34px); letter-spacing: 2px; color: var(--ink); padding-bottom: 18px; user-select: none; }
.logo:hover { color: var(--ink); text-decoration: none; }
/* Gifgroene spetters en een scheetwolkje achter de letters (parts/logo-art.svg, raster = 1/8 em zoals het lettertype).
 * Kort na het laden komen de spetters, dan het wolkje: dat dijt uit en lost op. De spetters blijven staan.
 * Eén keer per bezoek (sessionStorage, zie header.php), en niet bij "minder beweging".
 * Een klik op het logo speelt hem meteen opnieuw (--la-start: 0s) en de volgende pagina speelt verder waar hij was (negatieve start). */
.logo { position: relative; isolation: isolate; }
.logo-art { position: absolute; left: -1em; top: -.75em; width: 11.75em; height: 2.75em; z-index: -1; pointer-events: none; overflow: visible; }
.logo-art path { fill: #9dff2e; }
.logo-art .la-dark { fill: #3d8a12; }
.logo-art .la-gas { opacity: .38; }
.la-splat, .la-cloud { transform-box: fill-box; transform-origin: center; }
.js .la-splat { animation: la-pop .36s steps(3, jump-start) both; animation-delay: calc(var(--la-start, .4s) + var(--i) * .16s); }
.js .la-cloud { transform-origin: 35% 85%; animation: la-gas 3.4s linear both; animation-delay: calc(var(--la-start, .4s) + .95s); }
/* de wolk komt op, dijt uit en lost langzaam op; de spetters blijven staan */
@keyframes la-gas {
	from { opacity: 0; transform: scale(.3); animation-timing-function: steps(5, jump-start); }
	22% { opacity: 1; transform: scale(1.15); animation-timing-function: steps(18, jump-start); }
	to { opacity: 0; transform: scale(2.6); }
}
.logo-seen .la-splat { animation: none; }
.logo-seen .la-cloud { animation: none; visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .la-splat, .la-cloud { animation: none !important; } .la-cloud { visibility: hidden; } }
.logo-f { font-family: var(--vt); font-size: 1.7em; line-height: 0; color: #000; text-shadow: 2px 0 0 var(--line), -2px 0 0 var(--line), 0 2px 0 var(--line), 0 -2px 0 var(--line); transform: rotate(-14deg) translateY(-2px); display: inline-block; margin: 0 2px 0 4px; }

/* ---------- aankondiging (hooguit één, onder de header) ---------- */
.announce { padding: 20px var(--gutter) 0; }
.announce[hidden] { display: none; }
.announce-box { position: relative; max-width: calc(1320px - 2 * var(--gutter)); display: flex; align-items: flex-start; gap: 16px; padding: 16px 48px 16px 18px; background: #000; box-shadow: 0 0 0 4px var(--yellow), 6px 6px 0 4px #5a4a1a; margin: 4px auto 10px; }
.announce-icon { flex: none; color: var(--yellow); padding-top: 2px; }
.announce-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.announce-title { font-family: var(--pix); font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--yellow); }
.announce-body p { margin: 0; color: var(--dim); line-height: 1.3; overflow-wrap: anywhere; }
.announce-body a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.announce-close { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: var(--mute); font-family: var(--pix); font-size: 14px; cursor: pointer; padding: 6px; }
.announce-close:hover { color: var(--ink); }
@media (max-width: 560px) { .announce-icon { display: none; } .announce-title { font-size: 12px; } }

/* pijltjestoetsen links van de rail: je kunt het menu met het toetsenbord bedienen */
.nav-wrap { display: flex; align-items: flex-start; gap: 12px; width: min(660px, 100%); }
.claw-keys { display: flex; gap: 4px; margin-top: -8px; flex: none; }
@media (hover: none), (max-width: 560px) { .claw-keys { display: none !important; } }
.nav-wrap .claw-nav { flex: 1; min-width: 0; }
.claw-nav { position: relative; width: min(600px, 100%); height: 104px; user-select: none; --sel: 0; --n: 4; --rope: 26px; --arm: 8px; --move: 400ms; }
.claw-rail { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--line); }
.claw-rail::before, .claw-rail::after { content: ''; position: absolute; top: -4px; width: 8px; height: 12px; background: var(--line); }
.claw-rail::before { left: 0; } .claw-rail::after { right: 0; }
.claw { position: absolute; top: 0; left: calc((var(--sel) + 0.5) * 100% / var(--n)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; transition: left var(--move) steps(10); z-index: 2; pointer-events: none; }
.claw-trolley { width: 16px; height: 6px; background: var(--ink); }
.claw-rope { width: 4px; height: var(--rope); background: var(--dim); transition: height 200ms steps(5); }
.claw-head { width: 28px; height: 8px; background: var(--ink); }
.claw-arms { position: relative; width: 36px; height: 20px; }
.claw-arms span { position: absolute; top: 0; width: 4px; height: 16px; background: var(--ink); transition: left 120ms steps(2), right 120ms steps(2); }
.claw-arms span:first-child { left: var(--arm); box-shadow: 4px 12px 0 0 var(--ink); }
.claw-arms span:last-child { right: var(--arm); box-shadow: -4px 12px 0 0 var(--ink); }
.claw-nav[data-phase="release"] { --rope: 14px; --arm: 0px; }
.claw-nav[data-phase="drop"] { --rope: 34px; --arm: 0px; }
.claw-nav[data-phase="grab"] { --rope: 34px; --arm: 8px; }
.claw-menu { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.claw-menu a { padding: 10px 0 6px; font-family: var(--pix); font-size: clamp(8px, 1.1vw, 12px); color: var(--line); transition: transform 160ms steps(3), color 160ms; display: flex; flex-direction: column; align-items: center; gap: 8px; white-space: nowrap; }
.claw-menu a:hover { color: var(--dim); text-decoration: none; }
.claw-menu a::after { content: ''; width: 40px; height: 4px; background: transparent; }
.claw-menu a.is-active { color: var(--ink); }
.claw-nav:not([data-phase="release"]):not([data-phase="drop"]) .claw-menu a.is-active::after { background: var(--ink); }
.claw-nav:not([data-phase]) .claw-menu a.is-active, .claw-nav[data-phase="lift"] .claw-menu a.is-active { transform: translateY(-8px); }

/* ---------- hoofdinhoud ---------- */
.site-main { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 36px var(--gutter) 64px; }
.h-pix { margin: 0; font-family: var(--pix); font-size: 16px; font-weight: 400; line-height: 1.4; }
.h-pix .count { color: var(--line); }

/* tags */
.tag-menu { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.tag-btn { display: flex; align-items: center; gap: 10px; margin: 4px; padding: 8px 12px 8px 10px; font-family: var(--txt); font-size: 22px; line-height: 1; background: #000; color: var(--dim); box-shadow: 0 0 0 4px var(--dark); }
.tag-btn:hover { box-shadow: 0 0 0 4px var(--ink); color: var(--dim); text-decoration: none; }
.tag-btn.is-active { background: var(--ink); color: #000; box-shadow: 0 0 0 4px var(--ink); }
.tag-btn .n { opacity: .55; }

.list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.list-head .h-pix { white-space: nowrap; }
.sorts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sorts > span { color: var(--mute); margin-right: 6px; }
.sort-btn { border: 0; cursor: pointer; padding: 8px 10px; font-family: var(--pix); font-size: 9px; background: #000; color: var(--mute); }
.sort-btn:hover { color: var(--ink); }
.sort-btn[aria-pressed="true"] { background: var(--ink); color: #000; }

.home-games { min-width: 0; display: flex; flex-direction: column; gap: 32px; }

/* kaarten */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(220px, calc((100% - 84px) / 4)), 1fr)); gap: 28px; padding: 4px; margin: 0; list-style: none; }
.card { --ring: var(--ink); --accent: var(--green); display: flex; flex-direction: column; height: 100%; background: #000; color: var(--ink); box-shadow: 0 -4px 0 0 var(--ring), 0 4px 0 0 var(--ring), -4px 0 0 0 var(--ring), 4px 0 0 0 var(--ring); transition: transform 120ms steps(2); }
.card:hover, .card:focus-visible { color: var(--ink); text-decoration: none; transform: translate(-4px, -4px); box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink), 8px 8px 0 0 var(--accent); outline: none; }
.game-grid li.is-winner .card { --ring: var(--green); }
.card-thumb { aspect-ratio: 4 / 3; position: relative; display: flex; align-items: center; justify-content: center; border-bottom: 4px solid var(--ink); background: repeating-linear-gradient(45deg, var(--stripe, #1f5a2c) 0 8px, #000 8px 16px); overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; display: block; }
.badge { position: absolute; top: 10px; font-family: var(--pix); font-size: 8px; padding: 6px 8px; line-height: 1; }
.badge-rank { right: 10px; background: #000; color: var(--ink); }
.badge-new { left: 10px; background: var(--ink); color: #000; }
.badge-age { right: 10px; top: auto; bottom: 10px; background: var(--yellow); color: #000; }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.card-title { font-family: var(--pix); font-size: 12px; line-height: 1.5; }
.stats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--dim); line-height: 1; }
.stats > span { display: flex; align-items: center; gap: 6px; }
.stats .stat-star { color: var(--yellow); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: flex; align-items: center; gap: 6px; font-size: 18px; line-height: 1; white-space: nowrap; padding: 3px 8px 4px 6px; color: #000; background: var(--c); }
.no-results { padding: 40px 0; color: var(--mute); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.pager button { border: 0; cursor: pointer; margin: 4px; font-family: var(--pix); font-size: 10px; background: #000; color: var(--ink); box-shadow: 0 0 0 4px var(--ink); }
.pager .pg-n { width: 40px; height: 36px; }
.pager .pg-n[aria-current="page"] { background: var(--ink); color: #000; }
.pager .pg-arrow { padding: 10px 12px; }
.pager .pg-arrow:disabled { color: var(--dark); box-shadow: 0 0 0 4px var(--dark); cursor: default; }

/* ---------- geluksmachine: neemt de plek van één kaartje in ---------- */
.bandit-cell { display: flex; justify-content: center; align-items: stretch; min-height: 300px; }
.bandit { position: relative; width: min(210px, calc(100% - 52px)); margin-right: 48px; user-select: none; display: flex; flex-direction: column; }
.bandit-box { flex: 1; background: #000; box-shadow: 0 0 0 4px var(--ink); padding: 14px 12px 16px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.bandit-title { text-align: center; font-family: var(--pix); font-size: 10px; line-height: 1.6; }
.bandit-lights { display: flex; justify-content: space-between; }
.bandit-lights span { width: 12px; height: 12px; background: var(--darker); }
.bandit.is-spinning .bandit-lights span:nth-child(odd) { background: var(--yellow); }
.bandit.is-spinning .bandit-lights span:nth-child(even) { background: var(--pink); }
.bandit.is-spinning.tick .bandit-lights span:nth-child(odd) { background: var(--pink); }
.bandit.is-spinning.tick .bandit-lights span:nth-child(even) { background: var(--yellow); }
.bandit.has-result .bandit-lights span { background: var(--green); }
.reel { width: 100%; border: 0; cursor: pointer; background: #0d0d0d; box-shadow: inset 0 0 0 4px var(--line); padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; text-align: left; }
.reel-row { height: 30px; display: flex; align-items: center; gap: 8px; color: #4a4a4a; font-size: 18px; line-height: 1; white-space: nowrap; overflow: hidden; }
.reel-row i { width: 12px; height: 12px; flex: none; background: var(--c, #333); opacity: .35; }
.reel-row b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.reel-row.mid { color: var(--ink); font-size: 24px; }
.reel-row.mid i { opacity: 1; }
.bandit.has-result .reel-row.mid { color: var(--green); }
.bandit-play { display: block; text-align: center; padding: 12px 8px; font-family: var(--pix); font-size: 10px; background: var(--green); color: #000; box-shadow: 4px 4px 0 0 #2c6b3a; }
.bandit-play:hover { color: #000; text-decoration: none; }
.bandit-play:active { transform: translate(4px, 4px); box-shadow: none; }
.bandit-hint { text-align: center; color: var(--mute); font-size: 20px; line-height: 1.1; min-height: 38px; display: flex; align-items: center; justify-content: center; }
.bandit-bolt { position: absolute; right: -16px; top: 108px; width: 16px; height: 24px; background: var(--line); }
.lever { position: absolute; right: -48px; top: 0; width: 32px; height: 220px; cursor: pointer; background: none; border: 0; padding: 0; --ball: 0px; }
.bandit.pulled .lever { --ball: 196px; }
.lever-rod { position: absolute; left: 14px; width: 4px; background: var(--dim); top: calc(min(var(--ball) + 10px, 116px)); height: calc(max(116px - var(--ball) - 10px, var(--ball) + 10px - 116px)); transition: top 180ms steps(4), height 180ms steps(4); }
.lever-pivot { position: absolute; left: 12px; top: 112px; width: 8px; height: 8px; background: var(--ink); }
.lever-ball { position: absolute; left: 6px; width: 20px; height: 20px; top: var(--ball); transition: top 180ms steps(4); }
.lever-ball::before { content: ''; position: absolute; left: 4px; top: 0; width: 12px; height: 20px; background: var(--pink); }
.lever-ball::after { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 12px; background: var(--pink); box-shadow: inset 4px 0 0 0 transparent; }
.lever-ball i { position: absolute; left: 4px; top: 4px; width: 4px; height: 4px; background: #ffd0dc; z-index: 1; }

.bulb { position: relative; display: block; color: #4a4a4a; transition: color 200ms steps(2); }
.bulb .bulb-hi { color: var(--line); }
.bulb .bulb-base { color: var(--mute); position: absolute; left: 0; }
.is-lit .bulb { color: var(--yellow); filter: drop-shadow(0 0 14px rgba(255, 207, 74, .7)); }
.is-lit .bulb-hi { color: #fff6d0; }

/* ---------- formulieren ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-family: var(--pix); font-size: 10px; }
.input { background: #000; color: var(--ink); border: 0; box-shadow: 0 0 0 4px var(--line); padding: 10px 12px; font-family: var(--txt); font-size: 22px; outline: none; margin: 4px; border-radius: 0; }
.input:focus { box-shadow: 0 0 0 4px var(--ink); }
textarea.input { resize: vertical; }
.input::placeholder { color: var(--line); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn { display: inline-block; align-self: flex-start; border: 0; cursor: pointer; margin: 4px; padding: 14px 18px; font-family: var(--pix); font-size: 12px; background: var(--ink); color: #000; box-shadow: 4px 4px 0 0 var(--line); line-height: 1.2; }
.btn:hover { color: #000; text-decoration: none; }
.btn:active { transform: translate(4px, 4px); box-shadow: none; }
.btn:disabled { opacity: .4; cursor: default; }
.btn-ghost { background: #000; color: var(--ink); box-shadow: 0 0 0 4px var(--ink); padding: 10px 14px; font-size: 10px; }
.btn-ghost:hover { background: var(--ink); color: #000; }
.btn-yellow { background: var(--yellow); box-shadow: none; font-size: 11px; }
.form-error { color: var(--pink); }

/* Robotcheck (ALTCHA) in pixelstijl: vierkant vinkje, harde randen, geen afronding of schaduw. */
.robot:empty { display: none; }
.robot { margin: 10px 4px 4px; }
.robot .altcha {
	--altcha-border-width: 0;
	--altcha-border-radius: 0;
	--altcha-color-base: #000;
	--altcha-color-base-content: var(--ink);
	--altcha-color-neutral: var(--line);
	--altcha-color-neutral-content: var(--mute);
	--altcha-color-primary: var(--green);
	--altcha-color-primary-content: #000;
	--altcha-color-success: var(--green);
	--altcha-color-success-content: #000;
	--altcha-color-error: var(--pink);
	--altcha-color-error-content: #000;
	--altcha-checkbox-size: 24px;
	--altcha-checkbox-border-radius: 0;
	--altcha-checkbox-border-width: 4px;
	--altcha-checkbox-border-color: var(--line);
	--altcha-checkbox-outline: 4px solid var(--ink);
	--altcha-checkbox-transition-duration: 0s;
	--altcha-input-border-radius: 0;
	--altcha-max-width: 100%;
	--altcha-padding: 10px 12px;
	--altcha-shadow: none;
	--altcha-spinner-color: var(--yellow);
	--altcha-transition-duration: 0s;
	font-family: var(--txt);
	font-size: 22px;
}
.robot .altcha-main { box-shadow: 0 0 0 4px var(--dark); flex-direction: row; align-items: center; }
.robot .altcha-footer { font-size: 18px; opacity: 1; color: var(--mute); }
.robot .altcha-footer a:hover { color: var(--ink); }
.robot .altcha[data-state=verified] .altcha-main { box-shadow: 0 0 0 4px var(--green); }
.robot .altcha[data-state=error] .altcha-main, .robot .altcha[data-state=expired] .altcha-main { box-shadow: 0 0 0 4px var(--pink); }
.robot .altcha-checkbox input:checked::before { transition: none; }
/* Draaiend rondje → knipperend pixelblok */
.robot .altcha-spinner { border: 0; border-radius: 0; background: var(--yellow); animation: robot-blink .5s steps(2) infinite; opacity: 1; }
@keyframes robot-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .robot .altcha-spinner { animation: none; } }
.robot .altcha-checkbox svg { stroke-linecap: square; stroke-linejoin: miter; stroke-width: 3; }
.sent-box { box-shadow: 0 0 0 4px var(--green); padding: 20px; display: flex; flex-direction: column; gap: 12px; margin: 4px; }
.sent-box strong { font-family: var(--pix); font-size: 12px; font-weight: 400; color: var(--green); }

/* ---------- pagina's ---------- */
.page-wrap { max-width: 720px; display: flex; flex-direction: column; gap: 24px; }
.page-wrap.narrow { max-width: 560px; }
/* Opmaak van inhoud uit de blokeditor: assets/content.css */
.pf-contact { max-width: 560px; }
.pf-contact form { display: flex; flex-direction: column; gap: 24px; }

.notfound { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.nf-text { margin: 0; color: var(--dim); max-width: 60ch; }
.nf-goal { font-family: var(--pix); font-size: 12px; font-weight: 400; color: var(--yellow); }
.nf-keys { white-space: nowrap; }
.maze { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 20px 24px; }
.maze-status { flex-basis: 100%; text-align: center; }
.maze-canvas { display: block; image-rendering: pixelated; box-shadow: 0 0 0 4px var(--ink); margin: 4px; }
.maze-pad { display: grid; grid-template-columns: repeat(3, 52px); grid-template-rows: repeat(2, 52px); gap: 6px; touch-action: none; user-select: none; -webkit-user-select: none; }
.maze-pad [data-dir="up"] { grid-column: 2; }
.maze-pad [data-dir="left"] { grid-column: 1; grid-row: 2; }
.maze-pad [data-dir="down"] { grid-column: 2; grid-row: 2; }
.maze-pad [data-dir="right"] { grid-column: 3; grid-row: 2; }
.maze-status { margin: 0; min-height: 1.2em; color: var(--green); }

/* ---------- toetsenbordtoetsen (pixel) ---------- */
.key { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 18px; height: 20px; padding: 0 4px 2px; margin: 0 2px; vertical-align: middle; background: #000; color: var(--dim); box-shadow: inset 0 0 0 2px var(--line), inset 0 -4px 0 0 var(--line); font-family: var(--pix); font-size: 8px; font-weight: 400; line-height: 1; }
.key-word { padding: 0 6px 2px; }
.key-btn { width: 52px; height: 52px; margin: 0; border: 0; cursor: pointer; color: var(--ink); box-shadow: inset 0 0 0 4px var(--line), inset 0 -8px 0 0 var(--line); padding-bottom: 4px; }
.key-btn:active { box-shadow: inset 0 0 0 4px var(--line), inset 0 -4px 0 0 var(--line); padding-bottom: 0; transform: translateY(4px); }

/* ---------- rating als sterren (halve sterren mogelijk, geen cijfer) ---------- */
.rating-stars { display: inline-flex; gap: 2px; vertical-align: middle; line-height: 0; }
.rs { position: relative; display: inline-block; color: var(--dark); }
.rs .rs-fill { position: absolute; left: 0; top: 0; color: var(--yellow); }
.rs.is-empty .rs-fill { display: none; }
.rs.is-half .rs-fill { clip-path: inset(0 50% 0 0); }
.player-rating { display: inline-flex; align-items: center; gap: 8px; }
.player-votes { color: var(--mute); }

/* ---------- footer: idee + nieuwsbrief ---------- */
.foot-forms { border-top: 4px solid var(--ink); padding: 36px max(var(--gutter), calc((100% - 1320px) / 2 + var(--gutter))); display: grid; gap: 40px 64px; grid-template-columns: minmax(0, 620px); }
.foot-forms.has-idea { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.foot-box { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.foot-head { display: flex; gap: 18px; align-items: center; }
.foot-head h2 { margin: 0 0 8px; font-family: var(--pix); font-size: 12px; font-weight: 400; line-height: 1.5; }
.foot-idea h2 { color: var(--yellow); }
.foot-news h2 { color: var(--green); }
.foot-head p { margin: 0; color: var(--dim); line-height: 1.15; text-wrap: pretty; }
.foot-box form { display: flex; flex-direction: column; gap: 14px; }
.bulb-btn { background: none; border: 0; padding: 0; cursor: pointer; flex: none; }
.mail-icon { flex: none; color: var(--green); display: block; width: 40px; }
.news-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.news-row .input { flex: 1 1 220px; min-width: 0; }
.news-row .btn { align-self: center; }
.btn-green { background: var(--green); box-shadow: none; font-size: 11px; }
.fine { margin: 0; font-size: 18px; color: var(--mute); line-height: 1.15; }
.foot-box .sent-box span { color: var(--dim); line-height: 1.15; }

/* ---------- footer ---------- */
.site-footer { border-top: 4px solid var(--ink); padding: 28px var(--gutter) 36px; display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: flex-start; color: var(--dim); }
.foot-left { flex: 1 1 360px; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.foot-right { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.foot-right .mute { color: var(--mute); }
.foot-right .foot-donate { align-self: flex-end; margin: 0 0 12px; }
@media (max-width: 760px) { .foot-right .foot-donate { align-self: flex-start; } }

/* ---------- soort idee ---------- */
.idea-types { display: flex; flex-wrap: wrap; gap: 10px; }
.idea-fields { display: flex; flex-direction: column; gap: inherit; }
.idea-fields[hidden] { display: none; }
.idea-types button { border: 0; cursor: pointer; margin: 4px; padding: 8px 12px; font-family: var(--txt); font-size: 22px; line-height: 1; background: #000; color: var(--yellow); box-shadow: 0 0 0 4px var(--yellow); }
.idea-types button[aria-pressed="true"] { background: var(--yellow); color: #000; }

/* ---------- speler ---------- */
.player-page { height: 100vh; height: 100dvh; overflow: hidden; }
.player { position: fixed; inset: 0; background: #000; display: flex; flex-direction: column; }
.player-bar { display: flex; align-items: center; gap: 16px 20px; padding: 14px clamp(16px, 3vw, 32px); border-bottom: 4px solid var(--ink); }
.player-bar .btn { font-size: 11px; padding: 12px 16px; margin: 0; white-space: nowrap; }
.player-title { font-family: var(--pix); font-size: 12px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; font-weight: 400; }
.player-rating { color: var(--yellow); white-space: nowrap; }
.tool-btn { background: #000; color: var(--ink); border: 0; box-shadow: 0 0 0 4px var(--line); padding: 10px 12px; font-family: var(--pix); font-size: 9px; cursor: pointer; white-space: nowrap; margin: 4px; }
.tool-btn:hover { box-shadow: 0 0 0 4px var(--ink); }
.player-body { flex: 1; min-height: 0; display: flex; position: relative; }
.player-stage { flex: 1; min-width: 0; display: flex; background: #000; }
.player-stage iframe { flex: 1; width: 100%; height: 100%; border: 0; background: #000; display: block; }
.player-missing { margin: auto; color: var(--mute); padding: 24px; text-align: center; }
.panel { width: min(380px, 45vw); flex: none; border-left: 4px solid var(--ink); overflow-y: auto; padding: 22px 22px 32px; display: flex; flex-direction: column; gap: 24px; background: #000; }
.panel-sec { display: flex; flex-direction: column; gap: 12px; }
.panel-sec h2 { margin: 0; font-family: var(--pix); font-size: 10px; font-weight: 400; }
.panel-rule { height: 4px; background: var(--darker); flex: none; }
.panel .muted { color: var(--mute); line-height: 1.1; }
.game-desc { margin: 0; line-height: 1.15; text-wrap: pretty; }
.game-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; color: var(--dim); line-height: 1.1; }
.game-facts dt { color: var(--mute); }
.game-facts dd { margin: 0; }
.stars { display: flex; gap: 6px; }
.stars button { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--dark); }
.stars button.on { color: var(--yellow); }
.panel form { display: flex; flex-direction: column; gap: 12px; }
.panel .input { padding: 8px 10px; }
.panel .btn { padding: 10px 14px; font-size: 10px; box-shadow: none; }
.comments { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; list-style: none; }
.comment-head { display: flex; align-items: center; gap: 10px; line-height: 1; margin-bottom: 4px; list-style: none; cursor: pointer; }
.comment-head::-webkit-details-marker { display: none; }
.comment-name { font-family: var(--pix); font-size: 11px; letter-spacing: 2px; }
.comment-head time { color: var(--line); margin-left: auto; }
.comment-i { flex: none; width: 20px; height: 20px; display: grid; place-items: center; font-family: var(--pix); font-size: 8px; color: var(--mute); box-shadow: inset 0 0 0 2px var(--dark); }
.comment-head:hover .comment-i, .comment[open] .comment-i { color: #000; background: var(--blue); box-shadow: none; }
.comment-info { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 6px 0 8px; padding: 8px 10px; font-size: 18px; color: var(--dim); box-shadow: inset 4px 0 0 var(--blue); }
.comment-info dt { color: var(--mute); }
.comment-info dd { margin: 0; }
.c-who { display: flex; align-items: center; gap: 12px; }
.c-who label { color: var(--mute); }
.input.initials { width: 5.2em; font-family: var(--pix); font-size: 14px; letter-spacing: 4px; text-transform: uppercase; text-align: center; }
.comment-text { line-height: 1.1; text-wrap: pretty; overflow-wrap: anywhere; }
.form-ok { color: var(--green); line-height: 1.1; }

/* volledig scherm zonder Fullscreen API (iPhone): alleen de game */
.player.is-pseudo-fs .player-bar, .player.is-pseudo-fs .panel { display: none; }
.fs-exit { position: absolute; top: 8px; right: 8px; z-index: 5; }

@media (max-width: 760px) {
	.tag-btn { font-size: 18px; padding: 6px 10px 6px 8px; }
	body { font-size: 20px; }
	.site-header { padding-top: 20px; }
	.player-bar { flex-wrap: wrap; padding: 10px 12px; gap: 10px 8px; }
	.player-bar .btn { font-size: 9px; padding: 10px 12px; }
	.player-title { order: -1; flex-basis: 100%; font-size: 11px; }
	.player-rating { margin-right: auto; font-size: 18px; }
	.tool-btn { padding: 8px 8px; margin: 4px 2px; }
	.tool-btn .lbl { display: none; }
	.panel { position: absolute; inset: 0; width: 100%; border-left: 0; z-index: 4; }
	.foot-right { text-align: left; }
}

/* ---------- topscores ---------- */
.hiscore-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.hiscore-list li { display: grid; grid-template-columns: 2.2em 3.2em 1fr; align-items: baseline; padding: 2px 0; }
.hiscore-list li:nth-child(1) { color: var(--yellow); }
.hiscore-list li:nth-child(2) { color: var(--ink); }
.hiscore-list li:nth-child(3) { color: var(--orange, #ff9a4a); }
.hiscore-list li:nth-child(n+4) { color: var(--dim); }
.hiscore-list .hs-rank { font-family: var(--pix); font-size: 10px; color: var(--line); }
.hiscore-list .hs-name { font-family: var(--pix); font-size: 12px; letter-spacing: 2px; }
.hiscore-list .hs-score { text-align: right; font-variant-numeric: tabular-nums; }
.hiscore-list .hs-score small { color: var(--mute); font-size: .8em; }
.hiscore-list li.is-new { background: var(--yellow); color: #000; animation: hs-blink .4s steps(2) 6; }
.hiscore-list li.is-new .hs-rank { color: #000; }
@keyframes hs-blink { 50% { background: transparent; color: var(--yellow); } }

.player-stage { position: relative; }
.hs-entry { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: rgba(0,0,0,.82); padding: 16px; overflow: auto; }
.hs-box { background: #000; box-shadow: 0 0 0 4px var(--yellow), 8px 8px 0 4px #5a4a1a; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 420px; width: 100%; text-align: center; }
.hs-title { margin: 0; font-family: var(--pix); font-size: 14px; font-weight: 400; color: var(--yellow); animation: hs-pulse 1s steps(2) infinite; }
@keyframes hs-pulse { 50% { color: var(--ink); } }
.hs-got { font-size: 26px; }
.hs-help { margin: 0; color: var(--dim); }
.hs-keys { color: var(--mute); }
.hs-letters { display: flex; gap: 14px; }
.hs-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hs-slot button { background: none; border: 0; color: var(--line); font-size: 18px; cursor: pointer; padding: 4px 10px; line-height: 1; }
.hs-slot button:hover { color: var(--ink); }
.hs-letter { width: 56px; height: 64px; text-align: center; font-family: var(--pix); font-size: 28px; text-transform: uppercase; background: #000; color: var(--ink); border: 0; box-shadow: 0 0 0 4px var(--line); caret-color: transparent; border-radius: 0; }
.hs-letter:focus { outline: none; box-shadow: 0 0 0 4px var(--yellow); color: var(--yellow); }
.hs-entry .robot { width: 100%; margin: 0; }
.hs-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hs-privacy { margin: 0; font-size: 16px; color: var(--mute); }
@media (prefers-reduced-motion: reduce) { .hs-title, .hiscore-list li.is-new { animation: none; } }

/* blok Topscores (erelijst) */
/* Topscorepagina: filters bovenaan, daarna alle lijsten onder elkaar. */
.pf-hiscores { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.hs-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding: 16px; margin: 4px 4px 12px; background: #0b0b0b; box-shadow: 0 0 0 4px var(--yellow), 6px 6px 0 4px #5a4a1a; }
.hs-filter label { display: flex; flex-direction: column; gap: 6px; }
.hs-filter label > span { font-family: var(--pix); font-size: 10px; color: var(--yellow); }
.hs-filter-game { flex: 1 1 220px; }
.hs-filter-game select { width: 100%; }
.hs-filter-name .input { width: 6.5em; font-family: var(--pix); letter-spacing: 3px; text-transform: uppercase; }
.js .hs-filter-go { display: none; } /* met JavaScript gaat het vanzelf */
.hs-filter-reset { align-self: center; color: var(--dim); }
.hs-filter-mine { font-size: 9px; }
.pf-hiscore { box-shadow: 0 0 0 4px var(--c, var(--line)); padding: 14px 18px 16px; margin: 4px; display: flex; flex-direction: column; gap: 10px; }
.pf-hiscore h3 { margin: 0; font-family: var(--pix); font-size: 12px; line-height: 1.6; }
.pf-hiscore h3 a { color: var(--c, var(--ink)); }
.pf-hiscore .hs-empty, .hs-none, .hs-open { margin: 0; color: var(--mute); }
.hs-open { margin: 4px; line-height: 1.4; }
.hs-open a { color: var(--dim); }
.pf-hiscores .hiscore-list li { grid-template-columns: 2.6em 4em 1fr auto; gap: 0 12px; color: var(--dim); }
.pf-hiscores .hiscore-list li.is-top1 { color: var(--yellow); }
.pf-hiscores .hiscore-list li.is-top2 { color: var(--ink); }
.pf-hiscores .hiscore-list li.is-top3 { color: var(--orange, #ff9a4a); }
.hiscore-list .hs-date { color: var(--mute); font-size: .8em; text-align: right; min-width: 7.5em; }
@media (max-width: 560px) { .hiscore-list .hs-date { display: none; } .pf-hiscores .hiscore-list li { grid-template-columns: 2.2em 3.6em 1fr; } }

/* ---------- doneren (blokken Doneerknop, Doneren en Pixelmuur) ---------- */
.btn-pink { background: var(--pink); box-shadow: none; font-size: 11px; display: inline-flex; align-items: center; gap: 10px; }
.btn-pink .px-icon { color: #000; }
.pf-donate { box-shadow: 0 0 0 4px var(--pink); padding: 24px; margin: 4px; display: flex; flex-direction: column; gap: 14px; }
.pf-donate-title { margin: 0; font-family: var(--pix); font-size: 14px; font-weight: 400; color: var(--pink); display: flex; align-items: center; gap: 12px; line-height: 1.4; }
.pf-donate-text { margin: 0; }
.pf-donate-form { display: flex; flex-direction: column; gap: 14px; }
.pick { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pick legend { padding: 0; margin-bottom: 8px; color: var(--mute); }
.pick-opt { position: relative; cursor: pointer; }
.pick-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick-opt span { display: block; min-width: 72px; padding: 12px 14px; text-align: center; font-family: var(--pix); font-size: 13px; background: #000; color: var(--ink); box-shadow: inset 0 0 0 4px var(--line); }
.pick-small .pick-opt span { font-size: 10px; min-width: 0; }
.pick-opt:hover span { box-shadow: inset 0 0 0 4px var(--ink); }
.pick-opt input:checked + span { background: var(--pink); color: #000; box-shadow: none; }
.pick-opt input:focus-visible + span { outline: 4px solid var(--yellow); outline-offset: 2px; }
.pf-donate-email { display: flex; flex-direction: column; gap: 6px; }
.pf-donate-email label { color: var(--mute); }
.pf-donate-email .input { max-width: 420px; }
.pf-fee:empty { display: none; }
.pfd-notice { margin: 4px 4px 28px; }
.pfd-notice.is-bad { box-shadow: 0 0 0 4px var(--pink); }
.pfd-notice.is-bad strong { color: var(--pink); }

/* Het kader: mag breder dan de tekstkolom, de muur rekent zelf uit hoe groot hij past (donate.js) */
/* De muur zelf (kader, titel, canvas, info) staat in de plugin: pixelfart-games/assets/wall.css */
.pf-wall > .wall-tools, .pf-wall > .wall-buy { max-width: 712px; }
.wall-tools { display: flex; flex-direction: column; gap: 10px; }
.wall-paint { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.wall-palette { display: flex; flex-wrap: wrap; gap: 6px; }
.wall-reset { margin: 4px; }
.wall-reset:disabled { opacity: .35; cursor: default; }
.wall-reset:disabled:hover { background: #000; color: var(--ink); }
.swatch { width: 32px; height: 32px; border: 0; padding: 0; cursor: pointer; background: var(--c); box-shadow: inset 0 0 0 2px rgba(0,0,0,.35); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 3px #000, 0 0 0 6px var(--ink); }
.wall-help .key { vertical-align: middle; }
.wall-buy { display: flex; flex-direction: column; gap: 12px; padding: 20px; margin: 4px; box-shadow: 0 0 0 4px var(--pink); }
.wall-count { margin: 0; font-family: var(--pix); font-size: 12px; color: var(--pink); line-height: 1.5; }
.wall-fields { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 24px; }
.wall-msg { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; color: var(--mute); }
.wall-msg small { font-size: 18px; color: var(--line); }
.wall-msg .input { width: calc(100% - 8px); resize: vertical; }
.wall-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--dim); line-height: 1.2; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--pink); cursor: pointer; }
