@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../../fonts/outfit-400.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../../fonts/outfit-600.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../../fonts/outfit-700.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../../fonts/outfit-800.woff2") format("woff2");
}

:root {
  --oranje: #ff9a3c;
  --oranje-diep: #f06a22;
  --oranje-zacht: #ffd7a8;
  --inkt: #3a2418;
  --zacht: #8a5a3c;
  --wit: #fffdfb;
  --schaduw: 0 14px 34px rgba(196, 84, 18, 0.18);
  --tegel-rand: #f0b27a;
  --radius: 22px;
  --blad: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 8% 0%, #ffe3b0 0, transparent 26%),
    radial-gradient(circle at 96% 8%, #ffb15a 0, transparent 28%),
    radial-gradient(circle at 80% 100%, #ffcf86 0, transparent 32%),
    linear-gradient(165deg, #ffc56b 0%, #ff9d42 42%, #ffb15a 100%);
  color: var(--inkt);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 400;
}

.decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  filter: blur(2px);
}

.blob-a {
  width: 280px;
  height: 280px;
  top: -80px;
  right: -40px;
}

.blob-b {
  width: 180px;
  height: 180px;
  bottom: 8%;
  left: -50px;
  background: rgba(255, 122, 47, 0.28);
}

.blob-c {
  width: 90px;
  height: 90px;
  top: 38%;
  right: 6%;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 12px 24px rgba(196, 84, 18, 0.12);
}

.kruis {
  position: absolute;
  color: rgba(255, 255, 255, 0.55);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

.kruis-a {
  top: 18%;
  left: 6%;
}

.kruis-b {
  bottom: 14%;
  right: 10%;
  font-size: 1.6rem;
}

.driehoek {
  position: absolute;
  top: 22%;
  right: 18%;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 24px solid rgba(255, 255, 255, 0.35);
  transform: rotate(18deg);
}

main,
.kop,
.voet {
  position: relative;
  z-index: 1;
}

main {
  flex: 1;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

a {
  color: var(--inkt);
}

img,
svg {
  display: block;
}

::selection {
  background: #ffd0a4;
  color: var(--inkt);
}

:focus-visible {
  outline: 2px solid var(--oranje-diep);
  outline-offset: 3px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 5;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--oranje-diep);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.blad {
  width: min(var(--blad), calc(100% - 32px));
  margin-inline: auto;
}

.kop {
  padding: 16px 0 0;
}

.kop-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border-radius: 20px;
  background: rgba(255, 253, 251, 0.88);
  box-shadow: var(--schaduw), inset 0 1px 0 #fff;
  backdrop-filter: blur(10px);
}

.merk {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--inkt);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.merk-icoon {
  width: 36px;
  height: 36px;
  flex: none;
  filter: drop-shadow(0 3px 0 rgba(240, 178, 122, 0.9));
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff4e8;
  box-shadow: 0 3px 0 #f0c9a4;
  font-weight: 700;
  text-decoration: none;
}

.nav a[aria-current="page"] {
  background: var(--oranje-diep);
  color: #fff;
  box-shadow: 0 3px 0 #c2410c;
}

.spel {
  padding: 8px 0 64px;
}

.intro {
  margin: 26px 0 18px;
}

h1 {
  font-size: 2rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 2px 0 rgba(194, 90, 20, 0.25);
}

.sub {
  max-width: 36rem;
  margin-top: 4px;
  color: #fff8ef;
  font-size: 1.05rem;
  font-weight: 600;
}

.maten {
  display: flex;
  gap: 4px;
  width: fit-content;
  margin-bottom: 14px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 2px 6px rgba(180, 70, 10, 0.12);
}

.maten button {
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
}

.maten button[aria-pressed="true"] {
  background: var(--wit);
  color: var(--oranje-diep);
  box-shadow: 0 4px 0 rgba(194, 80, 16, 0.18), 0 8px 16px rgba(180, 70, 10, 0.12);
}

.melding {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--wit);
  box-shadow: var(--schaduw);
  font-weight: 600;
}

.melding[hidden] {
  display: none;
}

.speelveld {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.bordkolom {
  min-width: 0;
  max-width: 720px;
  padding: 18px 18px 22px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(180deg, #ffb15e 0%, #ff8a32 100%);
  box-shadow:
    var(--schaduw),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -8px 16px rgba(194, 70, 16, 0.12);
}

.bord {
  position: relative;
  width: 100%;
  touch-action: none;
  user-select: none;
}

.bord.is-fout {
  animation: schud 0.35s ease;
}

.rij {
  display: grid;
  gap: 6px;
  margin-bottom: 6px;
}

.rij:last-child {
  margin-bottom: 0;
}

.bord-12 .rij {
  grid-template-columns: repeat(12, 1fr);
}

.bord-15 .rij {
  gap: 4px;
  margin-bottom: 4px;
  grid-template-columns: repeat(15, 1fr);
}

.cel {
  position: relative;
  z-index: 1;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #fff6ee 100%);
  color: var(--inkt);
  box-shadow:
    inset 0 1px 0 #fff,
    0 4px 0 var(--tegel-rand),
    0 8px 12px rgba(196, 90, 24, 0.16);
  font-weight: 800;
  font-size: clamp(0.75rem, 1.7vw, 1.2rem);
  line-height: 1;
}

.bord-15 .cel {
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 #fff,
    0 2px 0 var(--tegel-rand),
    0 4px 8px rgba(196, 90, 24, 0.14);
  font-size: clamp(0.62rem, 1.25vw, 0.95rem);
}

.cel.is-woord {
  background: var(--tegel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 3px 0 rgba(160, 90, 40, 0.18);
}

.cel.is-sel {
  background: linear-gradient(180deg, #ff8d42, #f06420);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 3px 0 #c2410c;
}

.cel.is-hint {
  z-index: 2;
  background: #fff;
  color: var(--oranje-diep);
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px var(--oranje-diep),
    0 6px 0 #c2410c;
}

.stroken {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.strook {
  position: absolute;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
}

.zij {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 18px 18px;
  border-radius: 28px;
  background: var(--wit);
  box-shadow: var(--schaduw), inset 0 1px 0 #fff;
}

.score-getal {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 3.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.score-van {
  color: var(--zacht);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0;
}

.tijd {
  display: block;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.balk {
  appearance: none;
  width: 100%;
  height: 8px;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  background: #ffe8d2;
  color: var(--oranje-diep);
}

.balk::-webkit-progress-bar {
  background: #ffe8d2;
  border-radius: 999px;
}

.balk::-webkit-progress-value {
  background: linear-gradient(90deg, #ffb15e, #f06420);
  border-radius: 999px;
}

.balk::-moz-progress-bar {
  background: linear-gradient(90deg, #ffb15e, #f06420);
  border-radius: 999px;
}

.tekstknop {
  align-self: flex-start;
  margin-top: 8px;
  color: var(--oranje-diep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.lijst-titel {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--zacht);
}

.woorden {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: -8px 0 0;
  padding: 0;
  list-style: none;
}

.woorden li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.stip {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 4px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px #f0c9a4;
}

.woorden li.is-gevonden {
  color: #b08974;
}

.woorden li.is-gevonden .woord {
  text-decoration: line-through;
}

.acties {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.knop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8d42 0%, #f06420 100%);
  color: #fff;
  box-shadow: 0 4px 0 #c2410c, 0 10px 18px rgba(194, 65, 12, 0.28);
  font-weight: 700;
}

.knop:hover {
  transform: translateY(1px);
  box-shadow: 0 3px 0 #c2410c, 0 8px 14px rgba(194, 65, 12, 0.24);
}

.knop:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #c2410c;
}

.knop:disabled,
.knop:disabled:hover {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.hint-tekst {
  flex-basis: 100%;
  color: var(--zacht);
  font-weight: 600;
}

.hint-tekst[hidden] {
  display: none;
}

.knop-lijn {
  background: #fff;
  color: var(--oranje-diep);
  box-shadow: 0 4px 0 #f0c9a4, 0 8px 16px rgba(196, 90, 24, 0.12);
}

.knop-lijn:hover {
  background: #fff6ee;
  color: var(--oranje-diep);
}

.info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.info > li {
  padding: 20px;
  border-radius: 24px;
  background: var(--wit);
  box-shadow: var(--schaduw), inset 0 1px 0 #fff;
}

.info h2 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 800;
}

#tip {
  font-weight: 600;
}

.toetsen {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
  color: var(--zacht);
  font-size: 0.9rem;
}

.toetsen kbd {
  margin-right: 6px;
  padding: 2px 7px;
  border-radius: 8px;
  background: #fff1e4;
  box-shadow: 0 2px 0 #f0c9a4;
  font-family: inherit;
  font-weight: 700;
  color: var(--inkt);
}

.voet {
  padding: 8px 0 28px;
  color: #fff8ef;
  font-weight: 600;
}

dialog {
  width: min(440px, calc(100vw - 32px));
  height: fit-content;
  margin: auto;
  padding: 28px;
  border: 0;
  border-radius: 28px;
  background: var(--wit);
  color: var(--inkt);
  box-shadow: 0 24px 60px rgba(120, 48, 8, 0.28);
}

dialog::backdrop {
  background: rgba(90, 36, 8, 0.38);
}

dialog h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.winst-regel {
  margin-top: 8px;
  font-weight: 600;
}

.cijfers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}

.cijfers div {
  padding: 12px;
  border-radius: 16px;
  background: #fff4e8;
  box-shadow: inset 0 2px 0 #fff, 0 3px 0 #f3d2b4;
}

.cijfers dt {
  color: var(--zacht);
  font-size: 0.85rem;
  font-weight: 600;
}

.cijfers dd {
  margin: 2px 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.deeltekst {
  font-weight: 600;
}

.winst-acties {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.archief-kop {
  margin: 26px 0 8px;
}

.archief-lead {
  max-width: 42rem;
  margin-bottom: 28px;
  color: #fff8ef;
  font-weight: 600;
}

.maand {
  margin: 28px 0 10px;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 0 rgba(194, 90, 20, 0.25);
}

.dagen {
  margin: 0;
  padding: 6px 18px;
  list-style: none;
  border-radius: 24px;
  background: var(--wit);
  box-shadow: var(--schaduw);
}

.dag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #ffe4cc;
}

.dag:last-child {
  border-bottom: 0;
}

.dag-tekst {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.dag-datum {
  font-weight: 800;
  text-decoration: none;
}

.dag-datum:hover {
  color: var(--oranje-diep);
}

.dag-thema {
  color: var(--zacht);
  font-weight: 600;
}

.badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--oranje-diep);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.dag-maten {
  display: flex;
  gap: 8px;
}

.maat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff4e8;
  box-shadow: 0 3px 0 #f0c9a4;
  font-weight: 700;
  text-decoration: none;
}

.maat-link:hover {
  background: #ffe0c2;
}

.vink {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: var(--oranje-diep);
}

.vink svg {
  width: 16px;
  height: 16px;
}

.leeg {
  font-weight: 600;
  color: #fff8ef;
}

@keyframes schud {
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

@media (max-width: 860px) {
  .speelveld {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .bordkolom {
    order: -1;
  }

  .info {
    grid-template-columns: 1fr;
  }

  .dag {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 1.6rem;
  }

  .melding {
    flex-direction: column;
    align-items: flex-start;
  }

  .cel {
    border-radius: 8px;
    box-shadow:
      inset 0 1px 0 #fff,
      0 2px 0 var(--tegel-rand);
  }
}

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