:root {
  --bg1: #ede9fe; --bg2: #faf5ff;
  --accent: #7c3aed; --accent2: #6d28d9; --accent-zacht: #ede9fe;
}
.ts-rustig { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; background: #fff; border: 2px solid var(--lijn);
  border-radius: 999px; padding: 6px 14px; font-weight: 700; cursor: pointer; font-size: 16px; }
.ts-rustig input { width: 20px; height: 20px; accent-color: var(--accent); }
.tijdbalk.uit { visibility: hidden; }

/* speurtocht */
.ts-tocht { position: relative; height: 78px; border-radius: 18px; margin-bottom: 4px; overflow: hidden;
  background: linear-gradient(180deg, #bbf7d0, #86efac); box-shadow: inset 0 -6px 0 rgba(0,0,0,.08), var(--schaduw); }
.ts-pad { position: absolute; left: 14px; right: 14px; top: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; }
.ts-pad::before { content: ""; position: absolute; left: 10px; right: 30px; top: 50%; border-top: 4px dashed #a16207; opacity: .5; }
.ts-stap { position: relative; font-size: 22px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.75); border: 2px solid #a3e635; filter: grayscale(.6); opacity: .8; transition: all .3s; }
.ts-stap.gevonden { background: #fef08a; border-color: #eab308; filter: none; opacity: 1; transform: scale(1.08); }
.ts-stap.gevonden::after { content: "✓"; position: absolute; right: -6px; bottom: -6px; font-size: 13px; font-weight: 900; color: #fff;
  background: var(--goed); border-radius: 50%; width: 18px; height: 18px; display: grid; place-items: center; }
.ts-schat { position: relative; font-size: 38px; }
.ts-speurder { position: absolute; top: 4px; left: 0; font-size: 44px; line-height: 1; transition: left .7s cubic-bezier(.3,1.3,.6,1);
  filter: drop-shadow(0 3px 2px rgba(0,0,0,.2)); pointer-events: none; }
.ts-speurder.hup { animation: tshup .6s; }
@keyframes tshup { 30% { transform: translateY(-14px) rotate(-8deg); } 60% { transform: translateY(0) rotate(4deg); } }
.ts-speurder.struikel { animation: tsstr .5s; }
@keyframes tsstr { 25% { transform: rotate(-18deg); } 50% { transform: rotate(14deg); } 100% { transform: none; } }

/* tekst en vraag */
.ts-blad { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; align-items: start; }
.ts-tekst { background: #fffdf7; border-radius: 20px; box-shadow: var(--schaduw); padding: 18px 22px 20px; border: 2px solid #f1e7c8; }
.ts-tekst h2 { margin: 0 0 8px; font-size: 22px; color: var(--accent2); font-family: var(--lees); }
#tekst { font-family: var(--lees); font-size: 23px; line-height: 1.75; }
.ts-zin { border-radius: 8px; padding: 1px 2px; transition: background .2s, box-shadow .2s; }
.ts-zin mark { background: #fde68a; border-radius: 6px; padding: 0 4px; font-weight: 700; color: inherit; }
#tekst.kiezen .ts-zin { cursor: pointer; background: #f5f3ff; box-shadow: 0 0 0 2px #ddd6fe; }
#tekst.kiezen .ts-zin:hover { background: #ddd6fe; }
.ts-zin.bewijs { background: var(--goed-zacht) !important; box-shadow: 0 0 0 3px var(--goed) !important; }
.ts-zin.mis { background: var(--fout-zacht) !important; box-shadow: 0 0 0 3px var(--fout) !important; }
.ts-vraagdeel { background: #fff; border-radius: 20px; box-shadow: var(--schaduw); padding: 16px; }
.ts-vraag { font-family: var(--lees); font-weight: 700; font-size: 23px; line-height: 1.4; margin-bottom: 12px; }
.ts-label { display: block; font-family: system-ui, sans-serif; font-size: 14px; font-weight: 900; color: var(--accent);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.ts-label.goed { color: var(--goed); }
.ts-keuzes { display: grid; gap: 10px; }
.ts-keuze { position: relative; text-align: left; background: #fff; border: 3px solid var(--lijn); border-radius: 14px;
  padding: 10px 14px 10px 36px; font-family: var(--lees); font-weight: 700; font-size: 20px; line-height: 1.3;
  box-shadow: 0 4px 0 var(--lijn); animation: in .2s ease-out both; }
.ts-keuze .k { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 6px;
  display: grid; place-items: center; background: var(--accent-zacht); color: var(--accent2); font-family: system-ui, sans-serif; font-size: 12px; font-weight: 900; }
.ts-keuze:hover:not(:disabled) { border-color: var(--accent); }
.ts-keuze:disabled { cursor: default; }
.ts-keuze.goed { background: var(--goed-zacht); border-color: var(--goed); }
.ts-keuze.fout { background: var(--fout-zacht); border-color: var(--fout); }
.ts-keuzes.wns .ts-keuze { text-align: center; padding-left: 14px; }
.ts-keuzes.wns .ts-keuze .k { left: 10px; }

.laag .ts-v { font-weight: 700; margin-bottom: 6px; }
.laag .ts-bz { background: var(--goed-zacht); border-radius: 12px; padding: 8px 12px; margin-top: 8px; }

@media (max-width: 820px) {
  .ts-blad { grid-template-columns: 1fr; }
  #tekst { font-size: 21px; }
}
@media (max-width: 560px) {
  .ts-tocht { height: 64px; }
  .ts-pad { left: 6px; right: 6px; }
  .ts-stap { width: 28px; height: 28px; font-size: 15px; }
  .ts-schat { font-size: 28px; }
  .ts-speurder { font-size: 34px; top: 6px; }
  .ts-tekst { padding: 14px 14px 16px; }
  #tekst { font-size: 19px; line-height: 1.65; }
  .ts-vraag { font-size: 20px; }
  .ts-keuze { font-size: 18px; }
}
.ts-oud { display: block; font-size: 17px; font-weight: 400; color: #475569; background: #f8fafc; border-radius: 10px; padding: 6px 10px; margin-bottom: 8px; }
.ts-oud b { color: var(--goed); }
