@font-face {
  font-family:DM Sans;
  src:url('../assets/fonts/dm-sans-latin-400-normal.woff2') format('woff2');
  font-weight:400;
  font-display:swap
}

@font-face {
  font-family:DM Sans;
  src:url('../assets/fonts/dm-sans-latin-700-normal.woff2') format('woff2');
  font-weight:700;
  font-display:swap
}

:root {
  font-family:'DM Sans',sans-serif;
  color:#173a32;
  background:#f4f0e6;
  font-synthesis:none;
  --ink:#173a32;
  --muted:#53685e;
  --purple:#f7e7df;
  --lime:#dce8c8;
  --aqua:#f7efcf;
  --focus:#bd3f2c;
  scrollbar-color:#718779 #f4f0e6
}

* {
  box-sizing:border-box
}

body {
  margin:0
}

button,a {
  -webkit-tap-highlight-color:transparent
}

button {
  font:inherit;
  cursor:pointer;
  touch-action:manipulation
}

button:disabled {
  cursor:default;
  opacity:.55
}

button:focus-visible,a:focus-visible,summary:focus-visible {
  outline:3px solid var(--focus);
  outline-offset:5px
}

::selection {
  background:#dce8c8;
  color:#173a32
}

svg {
  display:block
}

p {
  line-height:1.6
}

h1,h2,h3,p {
  margin:0
}

h1,h2,h3 {
  text-wrap:balance
}

button {
  transition:background-color .18s,transform .18s,box-shadow .18s
}

button:active {
  transform:translateY(2px)
}

button:hover {
  filter:brightness(.97)
}

[hidden] {
  display:none!important
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap
}

.skip-link {
  position:fixed;
  left:16px;
  top:-80px;
  padding:14px;
  background:white;
  z-index:10;
  color:var(--ink)
}

.skip-link:focus {
  top:10px
}

.topbar {
  min-height:76px;
  border-bottom:1px solid #dfe4d8;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 max(5vw,24px);
  gap:20px;
  background:#fffdf7
}

.brand {
  display:flex;
  align-items:center;
  gap:13px;
  color:#286544;
  font-weight:700;
  font-size:26px;
  text-decoration:none;
  min-height:48px
}

.brand-mark {
  display:grid;
  grid-template-columns:repeat(2,11px);
  gap:3px;
  transform:rotate(-9deg)
}

.brand-mark i {
  width:11px;
  height:11px;
  background:#175c49
}

.brand-mark i:nth-child(2) {
  background:#edbd51
}

.brand-mark i:nth-child(3) {
  background:#bd3f2c
}

.topbar>span {
  font-size:14px;
  color:var(--muted)
}

.shell {
  max-width:1260px;
  margin:0 auto;
  padding:34px 36px 0
}

.title-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px
}

h1 {
  font-size:clamp(28px,3.2vw,42px);
  letter-spacing:-.035em;
  line-height:1.15
}

.title-dot {
  color:#8062bd
}

.text-button {
  background:transparent;
  border:0;
  color:var(--ink);
  padding:12px 2px;
  min-height:44px;
  text-decoration:underline;
  text-underline-offset:5px;
  font-size:14px
}

.steps {
  display:flex;
  list-style:none;
  padding:0;
  margin:27px 0 28px;
  gap:24px;
  flex-wrap:wrap
}

.steps li {
  display:flex;
  align-items:center;
  gap:8px;
  color:#566351;
  font-size:14px
}

.steps li>span {
  width:27px;
  height:27px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#ecede5;
  font-size:12px;
  font-weight:700
}

.steps .active {
  color:var(--ink);
  font-weight:700
}

.steps .active>span {
  color:white;
  background:var(--ink)
}

.layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 290px;
  gap:28px;
  align-items:start
}

.game {
  background:#e6ebd9;
  border-radius:16px;
  padding:29px 30px 24px;
  min-width:0;
  min-height:640px
}

.task-heading h2 {
  font-size:28px;
  line-height:1.2;
  letter-spacing:-.025em
}

.task-heading p {
  font-size:15px;
  margin-top:8px;
  color:#4a5c50;
  max-width:55ch
}

.task-heading h2:focus {
  outline:none
}

.arrival {
  display:flex;
  align-items:center;
  flex-direction:column;
  margin:20px auto 14px;
  position:relative
}

.speech {
  font-size:15px;
  background:#fffdf7;
  border-radius:12px;
  padding:8px 17px;
  position:relative;
  z-index:1
}

.speech:after {
  content:'';
  position:absolute;
  left:50%;
  bottom:-7px;
  border-left:8px solid transparent;
  border-right:8px solid transparent;
  border-top:8px solid #fffdf7
}

.big-monster {
  width:260px;
  margin-top:-6px;
  animation:hello .6s cubic-bezier(.16,1,.3,1)
}

.big-monster svg {
  width:100%
}

.monster-name {
  font-size:24px;
  font-weight:700;
  margin-top:-8px
}

.features {
  font-size:13px;
  color:#526255;
  margin-top:3px
}

.house-choices {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:24px
}

.house-choice {
  border:0;
  border-radius:12px;
  padding:14px 7px;
  min-height:144px;
  color:var(--ink);
  display:flex;
  flex-direction:column;
  align-items:center
}

.house-choice svg {
  width:54px;
  height:54px;
  margin-bottom:6px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.5;
  stroke-linecap:round;
  stroke-linejoin:round
}

.fly {
  background:var(--purple)
}

.walk {
  background:var(--lime)
}

.swim {
  background:var(--aqua)
}

.house-choice strong {
  font-size:17px
}

.house-choice>span {
  font-size:11px;
  line-height:1.4;
  margin-top:4px
}

.house-choice:hover {
  transform:translateY(-3px);
  box-shadow:0 6px 12px #173a3213
}

.feedback {
  min-height:40px;
  margin-top:15px;
  font-size:14px;
  text-align:center;
  color:#435c4b
}

.sidebar {
  padding:5px 0
}

.sidebar h2 {
  font-size:18px;
  letter-spacing:-.02em
}

.rule {
  display:flex;
  align-items:center;
  gap:13px;
  background:transparent;
  margin-top:17px
}

.rule svg {
  width:46px;
  height:46px;
  flex:none;
  stroke:var(--ink);
  stroke-width:2.3;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
  padding:4px;
  border-radius:10px
}

.rule.fly svg {
  background:var(--purple)
}

.rule.walk svg {
  background:var(--lime)
}

.rule.swim svg {
  background:var(--aqua)
}

.rule strong {
  display:block;
  font-size:15px
}

.rule span {
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-top:3px
}

.rules>p {
  margin:18px 0 27px;
  font-size:14px;
  font-weight:700
}

.examples {
  border-top:1px solid #dce2d5;
  padding-top:24px
}

.examples-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px
}

.examples-heading>span {
  font-size:12px;
  white-space:nowrap;
  font-variant-numeric:tabular-nums
}

.examples>p {
  font-size:13px;
  color:var(--muted);
  margin:7px 0 14px
}

.residents {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px
}

.resident {
  border-radius:10px;
  text-align:center;
  padding:0 4px 5px;
  animation:resident-in .4s cubic-bezier(.16,1,.3,1)
}

.resident svg {
  width:100%;
  height:67px
}

.resident span {
  font-size:11px
}

.empty-resident {
  min-height:85px;
  border:1px dashed #c9d0c1;
  border-radius:10px;
  display:grid;
  place-items:center;
  background:#e6ebd9;
  color:#6b7869;
  font-size:18px
}

.explanation {
  margin-top:25px;
  font-size:13px;
  color:var(--muted)
}

summary {
  cursor:pointer;
  min-height:44px;
  align-content:center;
  text-underline-offset:4px
}

summary:hover {
  text-decoration:underline
}

.explanation p {
  margin:8px 0 12px
}

.primary {
  display:block;
  background:var(--ink);
  color:#fffdf7;
  font-weight:700;
  font-size:17px;
  min-height:54px;
  padding:14px 24px;
  border:0;
  border-radius:10px;
  margin:24px auto 0
}

.primary:hover {
  background:#0f453a
}

.ready-creatures {
  display:flex;
  justify-content:center;
  margin:65px 0 25px
}

.ready-creatures svg {
  width:32%;
  max-width:205px
}

.ready-creatures svg:nth-child(2) {
  transform:translateY(-25px)
}

.ready-note {
  text-align:center;
  max-width:38ch;
  margin:auto
}

.result-summary {
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  margin:23px 0 16px;
  font-size:12px
}

.result-summary strong {
  font-size:15px;
  white-space:nowrap
}

.results-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px
}

.result {
  background:#fffdf7;
  border-radius:12px;
  padding:8px 6px 13px;
  text-align:center;
  min-width:0
}

.result svg {
  width:100%;
  height:112px
}

.result h3 {
  font-size:16px
}

.result p {
  font-size:11px;
  line-height:1.5;
  margin-top:4px
}

.result-label {
  color:#35623d;
  font-weight:700
}

.incorrect .result-label {
  color:#922d22
}

.result.incorrect {
  background:#f7e7df
}

.result-note {
  font-size:14px;
  margin:19px auto 0;
  max-width:55ch;
  text-align:center
}

.helper-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:13px;
  margin:30px 0
}

.helper {
  background:#fffdf7;
  border:2px solid transparent;
  border-radius:12px;
  color:var(--ink);
  padding:7px 8px 14px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px
}

.helper:hover {
  border-color:#718779;
  background:#fffdf7
}

.helper svg {
  width:100%;
  height:136px
}

.helper strong {
  font-size:18px
}

.helper span {
  font-size:11px;
  line-height:1.6
}

.back {
  display:block;
  margin:0 auto
}

.reflection-monster {
  width:180px;
  margin:20px auto 8px
}

.answers {
  display:grid;
  gap:12px;
  max-width:460px;
  margin:auto
}

.answer {
  padding:16px 18px;
  text-align:left;
  background:#fffdf7;
  border:1px solid #d2d6c8;
  border-radius:10px;
  color:var(--ink);
  min-height:54px;
  font-size:16px
}

.answer:hover {
  background:#f7e7df
}

.finish-friends {
  display:flex;
  justify-content:center;
  margin:27px 0
}

.finish-friends svg {
  width:32%;
  max-width:190px
}

.stamp {
  display:flex;
  align-items:center;
  gap:17px;
  padding:20px;
  background:#dce8c8;
  border-radius:12px;
  max-width:460px;
  margin:auto
}

.stamp svg {
  width:58px;
  flex:none;
  fill:none;
  stroke:var(--ink);
  stroke-width:2.5;
  stroke-linecap:round;
  stroke-linejoin:round
}

.stamp h3 {
  font-size:21px
}

.stamp p,.finish>p {
  font-size:14px
}

.finish>p {
  text-align:center;
  margin-top:24px
}

.shell>footer {
  display:flex;
  justify-content:space-between;
  gap:15px;
  font-size:12px;
  color:#687563;
  padding:28px 0
}

.shell>footer span {
  white-space:nowrap
}

@keyframes hello {
  from {
    transform:translateY(9px) rotate(-4deg)
  }
  to {
    transform:translateY(0) rotate(0)
  }
}

@keyframes resident-in {
  from {
    transform:scale(.88);
    clip-path:inset(0 0 20% 0)
  }
  to {
    transform:scale(1);
    clip-path:inset(0)
  }
}

@media(min-width:1450px) {
  .shell {
    padding-top:46px
  }
  .game {
    min-height:670px
  }
  .arrival {
    margin-top:28px
  }
  .big-monster {
    width:280px
  }
}

@media(max-width:1000px) {
  .layout {
    grid-template-columns:minmax(0,1fr) 245px;
    gap:22px
  }
  .shell {
    padding:28px 24px 0
  }
  .game {
    padding:24px 20px
  }
  .house-choice strong {
    font-size:15px
  }
  .steps {
    gap:16px
  }
  .house-choices {
    gap:8px
  }
  .results-grid {
    gap:8px
  }
  .result-summary {
    display:block
  }
  .result-summary span {
    display:block;
    margin-top:5px
  }
}

@media(max-width:760px) {
  .layout {
    grid-template-columns:1fr
  }
  .sidebar {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
    padding:3px 4px
  }
  .examples {
    border-top:0;
    padding-top:0
  }
  .explanation {
    grid-column:1/-1;
    margin:0;
    border-top:1px solid #dce2d5;
    padding-top:10px
  }
  .steps {
    gap:9px;
    justify-content:space-between;
    margin:22px 0
  }
  .steps li {
    font-size:11px;
    gap:5px
  }
  .steps li>span {
    width:23px;
    height:23px
  }
  .game {
    min-height:0
  }
  .topbar {
    padding:0 24px
  }
  .topbar>span {
    font-size:12px
  }
  .title-row {
    align-items:start
  }
  .title-row h1 {
    max-width:11ch
  }
  .title-row .text-button {
    flex:none;
    font-size:12px
  }
  .shell>footer {
    font-size:11px
  }
  .big-monster {
    width:235px
  }
  .ready-creatures {
    margin-top:45px
  }
}

@media(max-width:420px) {
  .topbar {
    min-height:68px;
    padding:0 18px
  }
  .topbar>span {
    max-width:110px;
    font-size:11px;
    text-align:right
  }
  .brand {
    font-size:23px
  }
  .shell {
    padding:23px 14px 0
  }
  .steps {
    gap:9px 6px;
    display:grid;
    grid-template-columns:1fr 1fr;
    margin:20px 0
  }
  .steps li {
    font-size:12px
  }
  .game {
    padding:23px 14px 16px
  }
  .task-heading h2 {
    font-size:25px
  }
  .task-heading p {
    font-size:13px;
    margin-top:6px
  }
  .arrival {
    margin-top:16px;
    margin-bottom:10px
  }
  .big-monster {
    width:210px
  }
  .speech {
    font-size:13px
  }
  .monster-name {
    font-size:21px
  }
  .features {
    font-size:11px
  }
  .house-choices {
    margin-top:18px;
    gap:6px
  }
  .house-choice {
    padding:12px 4px;
    min-height:134px
  }
  .house-choice svg {
    width:45px;
    height:45px
  }
  .house-choice strong {
    font-size:13px
  }
  .house-choice>span {
    font-size:10px
  }
  .feedback {
    font-size:12px;
    min-height:28px
  }
  .sidebar {
    grid-template-columns:1fr;
    gap:5px;
    padding:8px
  }
  .rules {
    padding-bottom:16px
  }
  .rules>p {
    margin:14px 0 0
  }
  .rule {
    margin-top:12px
  }
  .examples {
    border-top:1px solid #dce2d5;
    padding-top:20px
  }
  .residents {
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:4px
  }
  .resident svg {
    height:42px
  }
  .resident span {
    font-size:9px
  }
  .empty-resident {
    min-height:62px
  }
  .explanation {
    margin-top:16px
  }
  .results-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .result svg {
    height:116px
  }
  .helper-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin:20px 0
  }
  .helper svg {
    height:125px
  }
  .stamp {
    padding:16px;
    gap:12px
  }
  .stamp h3 {
    font-size:18px
  }
  .stamp p {
    font-size:12px
  }
  .shell>footer {
    flex-direction:column;
    gap:5px
  }
  .primary {
    font-size:16px
  }
  .result-summary {
    margin-top:18px
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
}

@media(max-width:360px) {
  .title-row {
    gap:8px
  }
  .title-row h1 {
    font-size:25px;
    min-width:0
  }
  .title-row .text-button {
    font-size:11px
  }
}

/* Keep learning content readable on small workshop tablets and phones. */
.house-choice>span {
  font-size:13px
}

.rule span {
  font-size:13px
}

.result p,.helper span {
  font-size:13px
}

.result-label {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:3px
}

.result-label svg {
  width:15px;
  height:15px;
  flex:none;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round
}

@media(max-width:420px) {
  .house-choice strong {
    font-size:14px
  }
  .house-choice>span {
    font-size:12px
  }
  .house-choice {
    min-height:150px
  }
  .features,.feedback {
    font-size:13px
  }
  .residents {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px
  }
  .resident svg {
    height:67px
  }
  .resident span {
    font-size:12px
  }
  .empty-resident {
    min-height:80px
  }
  .helper span,.result p {
    font-size:13px
  }
  .result-label {
    align-items:start
  }
}


/* Partnerlogo's in de gedeelde activiteitenheader */
.brand { gap: clamp(8px, 1vw, 14px); min-width: 0; flex-shrink: 1; }
.brand img { display: block; max-height: 46px; height: auto; object-fit: contain; }
.brand .brand-btxt { width: clamp(74px, 16vw, 152px); }
.brand .brand-maakbib { width: clamp(78px, 14vw, 124px); }
.task-panel { display:grid; grid-template-columns:minmax(140px,.4fr) minmax(0,1.6fr); gap:30px; align-items:baseline; margin:22px 0 26px; padding:26px 30px; background:var(--lime); border-radius:12px; }
.task-panel h2 { font-size:clamp(27px,3vw,36px); line-height:1.15; }
.task-panel p { max-width:65ch; font-size:clamp(16px,1.5vw,19px); line-height:1.5; }
@media (max-width:760px) { .task-panel { grid-template-columns:1fr; gap:7px; padding:22px; } }
