body { background-color: #111719; }
header, main, footer { max-width: 1500px; }
.scarf { display: none; }
.header { display: grid; grid-template-columns: minmax(230px,1fr) auto minmax(145px,200px); gap: 24px; padding: 24px 32px 28px; min-height: 112px; }
.brand { position: relative; display: block; font-size: 48px; line-height: 1.05; padding: 0; }
.brand span { position: relative; z-index: 1; }
.tabs { align-self: center; margin: 0; padding: 0; gap: 10px; }
.tabs button { min-width: 0; min-height: 52px; padding: 12px 16px; font-size: 17px; background: #182124; --pencil: #667877; border: 0; }
.tabs button:nth-child(n) { transform: none; }
.tabs button[aria-current] { color: #111719; background: #ff7518; --pencil: #ff7518; }
.tabs button:hover { color: #ffcf00; }
.tabs button[aria-current]:hover { color: #111719; background: #ffcf00; }
.account { max-width: none; min-width: 0; min-height: 82px; padding: 8px 15px 8px 8px; background: transparent; font-size: 18px; --pencil: #788784; }
.account canvas { flex-shrink: 0; width: 51px; height: 60px; image-rendering: pixelated; }
.account > svg { width: 16px; margin-left: auto; }
.community { display: grid; grid-template-columns: minmax(265px,1fr) minmax(250px,1.2fr) minmax(220px,.8fr); gap: 30px; align-items: center; padding: 24px 25px; margin-bottom: 28px; position: relative; border: 0; --pencil: #a2a59a; }
.community::after, .sidebar::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: var(--pencil); mask: var(--outline) center / 100% 100% no-repeat; -webkit-mask: var(--outline) center / 100% 100% no-repeat; }
.community-heading h2 { font-size: 32px; line-height: 1.05; gap: 15px; }
.community-heading svg { width: 45px; height: 60px; stroke-width: 1.4; color: #ffcf00; transform: rotate(-7deg); }
.community-count { font-size: 29px; white-space: normal; display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px; }
#community-total { color: #ff7518; }
.community-count > span:last-child { font-size: 16px; color: #f0eeec; }
.community-meter { min-width: 0; }
.community progress { margin: 10px 0 0; height: 25px; border: 3px solid #727b75; border-radius: 0; }
.community progress::-webkit-progress-value { background: #ff7518; box-shadow: none; }
.community progress::-moz-progress-bar { background: #ff7518; box-shadow: none; }
.community[data-state="complete"] progress::-webkit-progress-value { background: #00e070; }
.community[data-state="complete"] progress::-moz-progress-bar { background: #00e070; }
.community-bottom { display: block; }
.community-bottom p { font-size: 14px; }
#community-status { color: #ff7518; text-align: left; font-size: 17px; font-weight: 800; margin-top: 6px; }
.game-picker { display: grid; grid-template-columns: 235px minmax(0,1fr); gap: 26px; align-items: center; margin-bottom: 24px; }
.game-picker .section-title { margin: 0; }
.section-title h1 { font-size: 40px; padding-bottom: 0; }
.section-title h1::after { display: none; }
.games { margin: 0; gap: 16px; }
.game-card { min-height: 105px; padding: 8px 12px 8px 0; overflow: hidden; gap: 10px; --pencil: #667877; border-radius: 0; background: #182124; }
.game-card canvas { width: 94px; height: 86px; object-fit: cover; flex-shrink: 0; image-rendering: pixelated; }
.game-card strong { font-size: 18px; }
.game-card small { font-size: 14px; }
.game-card.coral { --game-accent: #ff4938; }
.game-card.green { --game-accent: #00e070; }
.game-card.yellow { --game-accent: #00b8ff; }
.game-card { --pencil: var(--game-accent); }
.game-card[aria-pressed=true] { background: var(--game-accent); color: #111719; --pencil: var(--game-accent); }
.game-card[aria-pressed=true] small { color: #111719; }
.game-card[aria-pressed=true]:hover { background: var(--game-accent); }
.game-layout { grid-template-columns: minmax(0,3.2fr) minmax(230px,1fr); gap: 20px; align-items: stretch; }
.game-stage { --pencil: #9aaba2; padding: 7px; background: #10232d; min-width: 0; }
.stage-top { padding: 18px 24px; min-height: 96px; background: #0d1c23; }
.stage-top h2 { font-size: 32px; }
.tools { gap: 12px; }
.tools button { width: 51px; height: 51px; background: #18282e; border: 0; border-radius: 0; }
.tools button svg { width: 26px; height: 26px; }
.screen { background: #10232d; }
.game-overlay { justify-content: flex-end; align-items: flex-end; padding: 18px 22px; background: transparent; pointer-events: none; }
.game-overlay > strong { display: none; }
.game-overlay .primary { pointer-events: auto; min-width: 160px; min-height: 60px; font-size: 24px; border-radius: 0; background: #ffcf00; box-shadow: none; }
.scorebar { padding: 14px 23px; background: #121c22; align-items: center; }
.scorebar strong { color: #ffcf00; font-size: 35px; }
.scorebar > span { font-size: 13px; }
.sidebar { position: relative; display: block; padding: 16px 18px 20px; background: #132026; --pencil: #869590; text-align: center; min-width: 0; }
.scout-showcase h2 { font-size: 30px; margin: 4px 0 0; }
.scout-showcase canvas { display: block; width: 100%; height: auto; aspect-ratio: 288/300; image-rendering: pixelated; }
.scout-showcase > strong { display: block; font: 700 28px/1.15 var(--display-font); padding: 13px 0 0; overflow-wrap: anywhere; }
.sidebar .rule { display: block; margin: 20px 0 13px; height: 4px; background: #768782; }
.record-summary .eyebrow { color: #e7e9e7; font-size: 15px; text-transform: none; margin-bottom: 2px; }
.big-score { font-size: 48px; color: #ffcf00; }
.sidebar #record-label { font-size: 12px; }
.round-summary { margin-top: 14px; }
.round-summary h2 { font: 600 15px/1.4 Barlow,sans-serif; margin: 6px 0 0; }
.mode { display: inline-block; max-width: 100%; border: 0; padding: 0; color: #abbfbb; font-size: 12px; }
.round-summary .text-button { padding: 5px 0; }
.save-feedback { margin-top: 6px; }
.sidebar .save-feedback p { font-size: 12px; }
.paused { inset: 103px 7px 7px; }
.quiz { min-height: 540px; }
footer { border-width: 1px; border-color: #43504c; color: #a7b9b2; }
@media (max-width:1250px) {
  .header { grid-template-columns: minmax(220px,1fr) auto 165px; gap: 16px; }
  .brand { font-size: 44px; }
  .tabs { gap: 9px; }
  .tabs button { font-size: 15px; gap: 7px; }
  .community { grid-template-columns: minmax(230px,1fr) minmax(235px,1fr) minmax(180px,.8fr); gap: 22px; }
  .community-heading h2 { font-size: 34px; }
  .game-picker { grid-template-columns: 190px minmax(0,1fr); gap: 18px; }
  .section-title h1 { font-size: 44px; }
  .game-card canvas { width: 65px; height: 75px; }
  .game-card strong { font-size: 16px; }
  .stage-top h2 { font-size: 35px; }
  .scout-showcase h2 { font-size: 31px; }
}
@media (max-width:1000px) {
  .header { grid-template-columns: minmax(0,1fr) 180px; padding-bottom: 17px; }
  .brand { max-width: 370px; font-size: 44px; }
  .account { grid-column: 2; grid-row: 1; }
  .tabs { grid-column: 1/-1; justify-content: center; gap: 25px; margin-top: 8px; }
  .tabs button { font-size: 16px; }
  .community { grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); }
  .community-bottom { grid-column: 1/-1; display: flex; gap: 16px; }
  #community-status { margin: 0; }
  .game-picker { display: block; }
  .game-picker .section-title { margin-bottom: 17px; }
  .game-card canvas { width: 83px; height: 82px; }
  .game-layout { grid-template-columns: minmax(0,1fr) 220px; gap: 14px; }
  .stage-top { padding: 14px; min-height: 78px; }
  .stage-top h2 { font-size: 28px; }
  .tools button { width: 39px; height: 39px; }
  .tools button svg { width: 21px; height: 21px; }
  .paused { inset: 85px 7px 7px; }
}
@media (max-width:760px) {
  .game-layout { grid-template-columns: minmax(0,1fr); }
  .sidebar { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 8px 20px; }
  .scout-showcase { grid-row: 1/4; }
  .scout-showcase h2 { font-size: 27px; }
  .scout-showcase canvas { max-width: 200px; margin: auto; }
  .scout-showcase > strong { font-size: 23px; padding-top: 5px; }
  .sidebar .rule { display: none; }
  .sidebar .save-feedback { grid-column: 2; }
  .round-summary { margin: 0; }
  .game-card { flex-direction: column; align-items: flex-start; padding: 8px 12px 13px; gap: 4px; }
  .game-card canvas { width: 80px; height: 62px; }
  .game-card strong { font-size: 16px; }
  .game-card small { font-size: 12px; }
}
@media (max-width:560px) {
  .header { padding: 20px 18px 12px; grid-template-columns: minmax(0,1fr) 115px; gap: 14px 8px; }
  .brand { font-size: 30px; padding: 0; }
  .account { padding: 5px 8px; min-height: 62px; font-size: 12px; gap: 5px; }
  .account canvas { width: 34px; height: 40px; }
  .account > svg { width: 13px; }
  .tabs { gap: 5px; justify-content: space-between; width: 100%; padding: 0; margin-top: 0; }
  .tabs button { flex: 1; font-size: 12px; gap: 6px; padding: 10px 3px; min-height: 47px; flex-direction: row; }
  .community { padding: 18px; grid-template-columns: minmax(0,1fr); gap: 13px; margin-bottom: 24px; }
  .community-heading h2 { font-size: 31px; }
  .community-heading svg { width: 28px; height: 36px; }
  .community-count { font-size: 25px; }
  .community-count > span:last-child { font-size: 14px; }
  .community-bottom { grid-column: auto; display: block; }
  #community-status { font-size: 15px; margin-top: 4px; }
  .community progress { height: 22px; margin-top: 6px; }
  .section-title h1 { font-size: 38px; }
  .games { gap: 10px; }
  .game-card { padding: 7px 9px 12px; min-height: 150px; }
  .game-card canvas { width: 65px; height: 57px; }
  .game-card strong { font-size: 14px; }
  .game-card small { font-size: 11px; }
  .game-stage { padding: 5px; }
  .stage-top { padding: 12px 9px; min-height: 68px; }
  .stage-top h2 { font-size: 25px; }
  .tools { gap: 6px; }
  .tools button { width: 35px; height: 35px; }
  .game-overlay { padding: 12px; }
  .game-overlay .primary { font-size: 18px; min-width: 116px; min-height: 46px; }
  .scorebar { padding: 11px 14px; }
  .scorebar > span { font-size: 11px; }
  .scorebar strong { font-size: 25px; }
  .paused { inset: 73px 5px 5px; }
  .sidebar { gap: 8px 12px; padding: 16px 12px; }
  .quiz { min-height: 390px; }
}

/* Dezelfde vierkante potloodrand op alle bedienbare vlakken. */
button, input, select, dialog, progress, .game-card, .screen, .quiz-portret { border-radius: 0; }
.tools button, .icon-button, .text-button, .subtle, .answers button, .quiz-portret { position: relative; --pencil: #869590; }
.tools button, .icon-button, .answers button { border: 0; }
.text-button, .subtle, .round-summary .text-button { padding: 10px 14px; text-decoration: none; }
.primary { box-shadow: none; }
.tools button::after, .icon-button::after, .text-button::after, .subtle::after,
.answers button::after, .quiz-portret::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: var(--pencil); mask: var(--outline) center / 100% 100% no-repeat;
  -webkit-mask: var(--outline) center / 100% 100% no-repeat;
}
select, input:not([type=radio]), .community progress {
  border: 3px solid #869590;
  border-image: url('assets/potlood-rand-dun.svg') 4 / 3px stretch;
}
.avatar-swatches label { position: relative; }
.avatar-swatches label::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: #f1f3ef; mask: var(--outline) center / 100% 100% no-repeat;
  -webkit-mask: var(--outline) center / 100% 100% no-repeat;
}
.avatar-effects input { appearance: none; border: 2px solid #b8c5c4; padding: 2px; background: #182124; }
.avatar-effects input:checked { background: #ff7518; box-shadow: inset 0 0 0 2px #182124; }
.game-card img { flex-shrink: 0; width: 76px; height: 76px; margin: 0 9px; object-fit: contain; }
.quiz { background: #1b2929; }
#quiz-body { max-width: 810px; margin: auto; }
.quiz-podium { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 24px; align-items: center; margin-top: 24px; }
.quiz-portret { padding: 6px; background: #ffcf00; --pencil: #ffcf00; }
.quiz-photo { width: 100%; aspect-ratio: 4/3; border: 0; margin: 0; object-fit: cover; image-rendering: auto; }
.quiz h3 { font: 700 28px/1.1 var(--display-font); margin: 0 0 16px; }
.quiz .answers { grid-template-columns: minmax(0,1fr); margin: 0; gap: 12px; }
.quiz .answers button { min-height: 60px; padding: 12px 16px; font-size: 23px; color: #111719; background: #00b8ff; --pencil: #00b8ff; }
.quiz .answers .correct { background: #00e070; color: #111719; --pencil: #00e070; opacity: 1; }
.quiz .answers .wrong { background: #ff4938; color: #111719; --pencil: #ff4938; opacity: 1; }
.quiz-cover { display: block; margin: 48px auto 24px; }
@media (max-width:1250px) { .tabs button { padding-inline: 12px; } }
@media (max-width:760px) { .game-card img { width: 65px; height: 62px; margin: 0; } }
@media (max-width:560px) {
  .tabs button { padding-inline: 5px; }
  .game-card img { width: 57px; height: 57px; }
  .quiz-podium { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .quiz-portret { width: min(280px,100%); margin: auto; }
  .quiz .answers button { min-height: 48px; font-size: 20px; }
  .quiz h3 { font-size: 24px; }
}
@media (max-width:360px) {
  .header { grid-template-columns: minmax(0,1fr) 115px; }
  .brand { font-size: 24px; }
  .tabs button { font-size: 11px; }
  .tabs button svg { width: 14px; }
  .game-card { padding: 6px; }
  .stage-top h2 { font-size: 22px; }
  .scout-showcase h2 { font-size: 24px; }
}
