/* Hoekaccenten geïnspireerd op de afgeronde kleurvlakken en krabbels uit de merkanimatie.
   Alleen decoratie: buiten de leesruimte, zonder muis- of toetsenbordinteractie. */
[data-playful] {
  --playful-blob: #b7e2e9;
  position: relative;
  isolation: isolate;
}
[data-playful]::before,
[data-playful]::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}
[data-playful]::before {
  top: -34px;
  right: -32px;
  width: clamp(110px, 13vw, 195px);
  height: 115px;
  border-radius: 52% 35% 46% 60% / 50% 40% 65% 55%;
  background: var(--playful-blob);
  opacity: .68;
  transform-origin: 80% 15%;
  animation: learning-corner-sway 12s ease-in-out infinite;
}
[data-playful]::after {
  left: 16px;
  bottom: 7px;
  width: clamp(145px, 18vw, 220px);
  height: 76px;
  background: url("/assets/learning-doodles.svg") center / contain no-repeat;
  opacity: .78;
  animation: learning-doodle-drift 9s -3s ease-in-out infinite;
}
[data-playful="coral"] { --playful-blob: #f5aa96; }
[data-playful="gold"] { --playful-blob: #f5cf56; }
[data-playful="sage"] { --playful-blob: #bad698; }
[data-playful="night"] { --playful-blob: #79b4c5; }
[data-playful="night"]::before { opacity: .22; }
[data-playful="coral"]::before,
[data-playful="sage"]::before { animation-delay: -5s; }
[data-playful="gold"]::after,
[data-playful="night"]::after { animation-duration: 11s; animation-delay: -7s; }
[data-playful-edge="left"]::before {
  right: auto;
  left: -38px;
  border-radius: 35% 65% 60% 40% / 45% 50% 55% 65%;
  transform-origin: 15% 15%;
}
[data-playful-edge="left"]::after { left: auto; right: 18px; }
@keyframes learning-corner-sway {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(7px) rotate(3deg); }
}
@keyframes learning-doodle-drift {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}
@media (max-width: 780px) {
  [data-playful]::before {
    top: -22px;
    right: -21px;
    width: 100px;
    height: 68px;
    opacity: .5;
  }
  [data-playful-edge="left"]::before { left: -28px; }
  [data-playful]::after {
    width: 125px;
    height: 42px;
    bottom: 5px;
    left: 10px;
    opacity: .64;
    animation-duration: 12s;
  }
  [data-playful-edge="left"]::after { left: auto; right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-playful]::before,
  [data-playful]::after { animation: none; }
}
@media print {
  [data-playful]::before,
  [data-playful]::after { display: none; }
}
