/* ==========================================================================
   BettyBoob - speelse moppensite
   ========================================================================== */
@font-face { font-family: "Bricolage"; src: url(fonts/bricolage.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(fonts/nunito.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --bg: #FFF4E0;
  --bg-dot: #F3DFC0;
  --card: #FFFFFF;
  --ink: #1E1A2E;
  --muted: #5E5670;
  --line: #1E1A2E;
  --pink: #FF4F8B;
  --yellow: #FFC93C;
  --teal: #2EC4B6;
  --violet: #7B5CFF;
  --shadow: 4px 4px 0 var(--line);
  --shadow-big: 7px 7px 0 var(--line);
  --radius: 18px;
  --font-head: "Bricolage", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16121F; --bg-dot: #241D33; --card: #221B30; --ink: #F6EFFF; --muted: #B7AECB; --line: #0A0710;
    --shadow: 4px 4px 0 #000; --shadow-big: 7px 7px 0 #000; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #16121F; --bg-dot: #241D33; --card: #221B30; --ink: #F6EFFF; --muted: #B7AECB; --line: #0A0710;
  --shadow: 4px 4px 0 #000; --shadow-big: 7px 7px 0 #000; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 400 17px/1.6 var(--font-body); color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(var(--bg-dot) 1.6px, transparent 1.6px);
  background-size: 22px 22px;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; }
a { color: inherit; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--pink); }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: #1E1A2E; padding: 8px 14px; z-index: 99; border-radius: 10px; }
.skip:focus { left: 8px; }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .4em; padding: .7em 1.2em; border-radius: 999px;
  background: var(--pink); color: #fff; border: 2.5px solid var(--line); box-shadow: var(--shadow);
  font: 800 1rem/1 var(--font-head); text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { color: #fff; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.btn-big { font-size: 1.2rem; padding: .85em 1.5em; }
.btn-small { font-size: .9rem; padding: .55em 1em; }
.btn-ghost { background: var(--card); color: var(--ink); }
.btn-ghost:hover { color: var(--ink); }
.btn-random { background: var(--yellow); color: #1E1A2E; }
.btn-random:hover { color: #1E1A2E; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 2.5px solid var(--line);
}
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 800 1.6rem/1 var(--font-head); letter-spacing: -.03em; }
.logo:hover { color: var(--ink); }
.logo b { color: var(--pink); }
.logo-svg { flex: none; width: 42px; height: 42px; transition: transform .3s cubic-bezier(.3, 1.8, .5, 1); }
.logo:hover .logo-svg { transform: rotate(-12deg) scale(1.1); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a { padding: 8px 12px; border-radius: 999px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.nav > a:hover { background: var(--card); color: var(--ink); }
.fav-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--pink); color: #fff; font-size: .75rem; }
.theme { background: none; border: 0; font-size: 1.2rem; width: 40px; height: 40px; border-radius: 50%; }
.theme:hover { background: var(--card); }
.nav .btn-random { margin-left: 6px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.kicker { display: inline-block; margin: 0 0 12px; padding: 6px 14px; border: 2px solid var(--line); border-radius: 99px; background: var(--card); font-weight: 800; transform: rotate(-2deg); }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); font-weight: 800; }
.hl { position: relative; display: inline-block; color: #1E1A2E; padding: 0 .15em; z-index: 0; }
.hl::before { content: ""; position: absolute; inset: .12em -.02em .02em; background: var(--yellow); border-radius: 10px; transform: rotate(-2deg); z-index: -1; border: 2.5px solid var(--line); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.lead a { color: var(--ink); font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.potd { position: relative; }
.potd-label { font: 800 .95rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; }
.potd .mop { box-shadow: var(--shadow-big); transform: rotate(1deg); min-height: 180px; }
.potd .mop-body { font-size: 1.15rem; }
.potd-sticker {
  position: absolute; z-index: 2; right: -14px; top: -26px; width: 92px; height: 92px; display: grid; place-items: center; text-align: center;
  background: var(--teal); color: #1E1A2E; border: 2.5px solid var(--line); border-radius: 50%;
  font: 800 .78rem/1.05 var(--font-head); transform: rotate(12deg); box-shadow: var(--shadow);
  animation: wobble 4s ease-in-out infinite;
}
.potd-acties { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.swap-in { animation: swap .45s cubic-bezier(.3, 1.6, .5, 1); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 2.5px solid var(--line); background: var(--pink); color: #fff; transform: rotate(-1deg); margin: 24px -10px; }
.marquee-in { display: flex; width: max-content; gap: 34px; padding: 12px 0; animation: marquee 40s linear infinite; font: 800 1.15rem/1 var(--font-head); white-space: nowrap; }

/* ---------- Secties ---------- */
.sec { padding: 40px 0; }
.sec-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.over { max-width: 820px; }
.over p { font-size: 1.08rem; color: var(--muted); }
.over a { color: var(--ink); font-weight: 700; }
.over h2 { font-size: 1.6rem; margin-top: .4em; }

/* ---------- Categorie-tegels ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.tile {
  --tilt: -1.2deg; position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px; min-height: 140px;
  background: var(--card); border: 2.5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  text-decoration: none; overflow: hidden; transform: rotate(var(--tilt)); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s;
}
.tile:nth-child(2n) { --tilt: 1deg; }
.tile:nth-child(3n) { --tilt: -.4deg; }
.tile::after { content: ""; position: absolute; right: -34px; bottom: -34px; width: 96px; height: 96px; border-radius: 50%; background: var(--c); opacity: .9; border: 2.5px solid var(--line); transition: transform .3s; }
.tile:hover { color: var(--ink); transform: rotate(0) translate(-3px, -4px) scale(1.02); box-shadow: var(--shadow-big); }
.tile:hover::after { transform: scale(1.35); }
.tile-emoji { font-size: 2.3rem; line-height: 1; position: relative; z-index: 1; transition: transform .3s; }
.tile:hover .tile-emoji { transform: rotate(-12deg) scale(1.2); }
.tile-name { font: 800 1.2rem/1.15 var(--font-head); margin-top: auto; position: relative; z-index: 1; max-width: 78%; }
.tile-count { font-size: .85rem; color: var(--muted); font-weight: 700; position: relative; z-index: 1; }

/* ---------- Spotlight ---------- */
.spot-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.spot-head .sec-title { margin: 0; }

/* ---------- Moppen ---------- */
.moppen { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 24px 20px; align-items: start; }
.mop {
  position: relative; margin: 0; padding: 22px 22px 14px;
  background: var(--card); border: 2.5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.mop:target, .mop.flash { animation: flash 1.4s ease; }
.mop-body { font-size: 1.05rem; overflow-wrap: anywhere; }
.mop-body p { margin: 0 0 .5em; }
.mop-nr { position: absolute; top: -13px; left: 16px; padding: 2px 10px; border: 2px solid var(--line); border-radius: 99px; background: var(--yellow); color: #1E1A2E; font: 800 .8rem/1.5 var(--font-head); text-decoration: none; }
.mop-nr:hover { color: #1E1A2E; background: var(--teal); }
.mop-cat { align-self: flex-start; margin-bottom: 10px; padding: 3px 12px; border: 2px solid var(--line); border-radius: 99px; background: var(--c); color: #1E1A2E; font: 800 .85rem/1.5 var(--font-head); text-decoration: none; }
.mop-cat:hover { color: #1E1A2E; filter: brightness(1.08); }
.vraag { font-weight: 800; font-size: 1.1em; }
.onthul { align-self: flex-start; margin: 4px 0 8px; padding: .45em .95em; border: 2px dashed var(--line); border-radius: 99px; background: transparent; font: 800 .9rem/1 var(--font-head); transition: background .2s; }
.onthul:hover { background: var(--yellow); color: #1E1A2E; }
.clou { display: none; font-weight: 700; color: var(--pink); font-size: 1.1em; }
.mop.open .onthul { display: none; }
.mop.open .clou { display: block; animation: pop .45s cubic-bezier(.3, 1.8, .5, 1); }
.paar-a { font-weight: 800; font-size: 1.1em; }
.paar-b { color: var(--pink); font-weight: 700; font-style: italic; }
.paar-b::before { content: "→ "; color: var(--muted); font-style: normal; }
.woord strong { font-family: var(--font-head); font-size: 1.15em; }
.woord span { color: var(--pink); font-weight: 800; padding: 0 .2em; }
.moppen-glossary { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.mop-glossary { padding: 14px 16px 10px; }
.mop-glossary .mop-nr, .moppen-glossary .mop-acties { display: none; }
.mop-tags { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; font-size: .85rem; font-weight: 700; }
.mop-tags a { color: var(--muted); text-decoration: none; }
.mop-tags a:hover { color: var(--pink); text-decoration: underline; }
.chip-n { display: inline-block; min-width: 1.6em; margin-left: 4px; padding: 0 6px; border-radius: 99px; background: var(--bg); font-size: .8rem; text-align: center; }
.tag-hero { --c: var(--violet); }
.mop-acties { display: flex; gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 2px dashed color-mix(in srgb, var(--muted) 40%, transparent); }
.mop-acties button { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border: 2px solid transparent; border-radius: 99px; background: none; font-weight: 800; font-size: .9rem; color: var(--muted); transition: all .15s; }
.mop-acties button:hover { border-color: var(--line); color: var(--ink); background: var(--bg); }
.lach .lach-emoji { display: inline-block; filter: grayscale(1); opacity: .7; transition: transform .3s cubic-bezier(.3, 2, .5, 1), filter .2s, opacity .2s; }
.lach:hover .lach-emoji { filter: none; opacity: 1; transform: scale(1.25) rotate(-10deg); }
.lach[aria-pressed="true"] { background: var(--yellow) !important; color: #1E1A2E !important; border-color: var(--line) !important; }
.lach[aria-pressed="true"] .lach-emoji { filter: none; opacity: 1; }
.lach.boing .lach-emoji { animation: boing .6s cubic-bezier(.3, 2, .5, 1); }
.leeg { font-size: 1.1rem; font-weight: 700; padding: 20px 0; }

/* ---------- Categoriepagina ---------- */
.cat-hero { padding: 26px 0 30px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 30%, var(--bg)), var(--bg)); border-bottom: 2.5px solid var(--line); }
.crumbs { font-size: .9rem; font-weight: 700; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.cat-hero-in { display: flex; gap: 24px; align-items: center; }
.cat-emoji { flex: none; display: grid; place-items: center; width: 110px; height: 110px; font-size: 3.6rem; background: var(--c); border: 2.5px solid var(--line); border-radius: 30px; box-shadow: var(--shadow-big); transform: rotate(-6deg); animation: wobble 5s ease-in-out infinite; }
.cat-hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); margin-bottom: .2em; }
.cat-hero .lead { margin: 0; }
.cat-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.badge { padding: 8px 14px; border: 2px solid var(--line); border-radius: 99px; background: var(--card); font-weight: 800; }
.filter { flex: 1 1 260px; max-width: 460px; }
input[type="search"] {
  width: 100%; padding: 12px 18px; border: 2.5px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink);
  font: 700 1rem/1.2 var(--font-body); box-shadow: var(--shadow); outline: none;
}
input[type="search"]:focus { box-shadow: 4px 4px 0 var(--violet); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 14px; border: 2px solid var(--line); border-radius: 99px; background: var(--card); font-weight: 800; text-decoration: none; transition: transform .15s, background .15s; }
.chip:hover { background: var(--c); color: #1E1A2E; transform: translateY(-3px) rotate(-2deg); }

/* ---------- Gewone pagina's ---------- */
.page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page > h2 { margin-top: 1.4em; }
.page > p { max-width: 70ch; }
.zoek { display: flex; gap: 12px; max-width: 640px; margin: 20px 0; }
.zoek label { flex: 1; }
.zoek-info { font-weight: 700; color: var(--muted); }
mark { background: var(--yellow); color: #1E1A2E; border-radius: 4px; padding: 0 2px; }
.nf { text-align: center; max-width: 640px; margin: 0 auto; }
.nf .moppen { grid-template-columns: 1fr; text-align: left; margin: 20px 0; }
.nf-big { font: 800 clamp(5rem, 18vw, 9rem)/1 var(--font-head); margin: 0; }

/* ---------- Footer ---------- */
.foot { margin-top: 50px; padding: 46px 0 20px; background: var(--ink); color: var(--bg); border-top: 2.5px solid var(--line); }
:root[data-theme="dark"] .foot { background: #0D0A14; color: #F6EFFF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .foot { background: #0D0A14; color: #F6EFFF; } }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.foot h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--yellow); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 6px 0; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--yellow); }
.foot p { opacity: .8; }
.logo-foot b { color: var(--pink); }
.copy { margin-top: 30px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent); font-size: .9rem; }

/* ---------- Toast + confetti ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; translate: -50% calc(100% + 40px); visibility: hidden; padding: 12px 20px; border: 2.5px solid var(--line); border-radius: 99px; background: var(--yellow); color: #1E1A2E; font-weight: 800; box-shadow: var(--shadow); transition: translate .35s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.toast.show { translate: -50% 0; visibility: visible; }
.burst { position: fixed; z-index: 90; pointer-events: none; font-size: 22px; animation: burst .9s ease-out forwards; }

/* ---------- Animaties ---------- */
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes wobble { 0%, 100% { rotate: 0deg; } 50% { rotate: 6deg; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes swap { from { opacity: 0; transform: rotate(-4deg) scale(.9) translateY(10px); } to { opacity: 1; transform: rotate(1deg); } }
@keyframes boing { 40% { transform: scale(1.7) rotate(-15deg); } 100% { transform: none; } }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 6px var(--yellow), var(--shadow-big); } 100% { box-shadow: var(--shadow); } }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(.4); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsief ---------- */
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 34px; }
  .potd-sticker { right: 0; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-hide-s { display: none; }
  .nav > a { padding: 8px; }
  .btn-random span { display: none; }
  .nav .btn-random { padding: .6em .8em; margin-left: 2px; }
  .top-in { gap: 6px; }
  .nav { gap: 0; }
  .logo { font-size: 1.25rem; gap: 5px; }
  .logo-svg { width: 32px; height: 32px; }
  .theme { width: 34px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 14px; }
  .tile { min-height: 120px; padding: 14px; }
  .tile-name { font-size: 1.05rem; }
  .cat-hero-in { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cat-emoji { width: 84px; height: 84px; font-size: 2.7rem; border-radius: 24px; }
  .foot-in { grid-template-columns: 1fr; }
  .zoek { flex-direction: column; }
  .potd-sticker { width: 76px; height: 76px; font-size: .68rem; top: -36px; right: -4px; }
  .potd-label { padding-right: 70px; line-height: 1.3; }
}
