/* Calm light grey with a blush of pink; per language a soft accent: English rose, French apricot, Spanish warm grey */
:root {
  --bg: #f7f3f2;
  --card: #ffffff;
  --ink: #34292b;
  --muted: #7d6f72;
  --line: #ece3e1;
  --accent: #cc6f87;
  --accent-ink: #ffffff;
  --accent-soft: #f8e6ea;
  --ok: #4c9467;
  --ok-soft: #e3f2e8;
  --bad: #c25d55;
  --bad-soft: #f8e3e0;
  --close: #b07a26;
  --close-soft: #f8eedb;
  --en: #cc6f87;
  --fr: #d97f45;
  --es: #857b8c;
  --paw: #efc6cf;
  --lang: var(--accent);
  --shadow: 0 1px 2px rgba(52, 41, 43, .05), 0 4px 14px rgba(52, 41, 43, .05);
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1f1b1c; --card: #2a2426; --ink: #f2e9ea; --muted: #ab9c9f; --line: #3b3234;
    --accent: #e795a9; --accent-ink: #2a1a1f; --accent-soft: #3d2a30;
    --ok: #7fc499; --ok-soft: #233a2c; --bad: #e8958a; --bad-soft: #432826;
    --close: #dcb064; --close-soft: #3b3020;
    --en: #e795a9; --fr: #efa575; --es: #b7abbc; --paw: #4a3439;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1f1b1c; --card: #2a2426; --ink: #f2e9ea; --muted: #ab9c9f; --line: #3b3234;
  --accent: #e795a9; --accent-ink: #2a1a1f; --accent-soft: #3d2a30;
  --ok: #7fc499; --ok-soft: #233a2c; --bad: #e8958a; --bad-soft: #432826;
  --close: #dcb064; --close-soft: #3b3020;
  --en: #e795a9; --fr: #efa575; --es: #b7abbc; --paw: #4a3439;
  --shadow: none; color-scheme: dark;
}

@font-face {
  font-family: "Playwrite NL";
  src: url("fonts/playwrite-nl.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Gochi Hand";
  src: url("fonts/gochi-hand.woff2") format("woff2");
  font-display: swap;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
body[data-lang="en"] { --lang: var(--en); }
body[data-lang="fr"] { --lang: var(--fr); }
body[data-lang="es"] { --lang: var(--es); }

#app {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  min-height: 100dvh;
  padding-block: calc(env(safe-area-inset-top, 0px) + 20px) calc(env(safe-area-inset-bottom, 0px) + 24px);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
}

button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 30px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 22px; font-weight: 650; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Home ---------- */
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 8px 0 24px; }
.greet { color: var(--muted); margin-top: 4px; }
.pills { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.streak {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-weight: 600; font-size: 15px; white-space: nowrap;
}
.lang-list { display: grid; gap: 12px; }
.lang-card {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
}
.lang-card:active { transform: scale(.99); }
.lang-dot {
  width: 48px; height: 48px; border-radius: 14px; flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: 17px;
  background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c);
}
.lang-card .name { font-weight: 650; font-size: 19px; }
.lang-card .meta { color: var(--muted); font-size: 14px; }
.lang-card .grow { flex: 1; min-width: 0; }
.bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 8px; display: flex; }
.bar i { display: block; height: 100%; }
.bar .k { background: var(--c, var(--lang)); }
.bar .w { background: color-mix(in srgb, var(--c, var(--lang)) 40%, transparent); }
.chev { color: var(--muted); font-size: 22px; }
.foot { margin-top: auto; padding-top: 10px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- Language screen ---------- */
.back {
  background: none; border: 0; padding: 8px 0; color: var(--muted);
  display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; font-size: 16px;
}
.lang-head { display: flex; align-items: center; gap: 12px; margin: 8px 0 4px; }
.lang-head .lang-dot { --c: var(--lang); }
.flag { width: 34px; height: auto; aspect-ratio: 3 / 2; border-radius: 4px; display: block; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent); }
.section { margin-top: 24px; }
.section > .label { font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.dir-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 650; background: color-mix(in srgb, var(--lang) 14%, transparent); color: var(--lang); vertical-align: 2px; }
.label-row { display: flex; justify-content: space-between; align-items: center; }
.link-btn.mini { padding: 0; font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--lang); }
.blocks { display: grid; gap: 8px; }
.block {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px;
}
.block.on { border-color: var(--lang); background: color-mix(in srgb, var(--lang) 7%, var(--card)); }
.check {
  width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line); flex: none;
  display: grid; place-items: center; font-size: 14px; color: transparent;
}
.block.on .check { background: var(--lang); border-color: var(--lang); color: var(--card); }
.block .grow { flex: 1; min-width: 0; }
.block .t { font-weight: 600; }
.block .bar { --c: var(--lang); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: none; border-radius: 10px; padding: 10px 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--lang); color: var(--card); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 10px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--d); }
.empty {
  background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; color: var(--muted); margin-top: 24px;
}
.empty .big { font-size: 34px; margin-bottom: 8px; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 14px; padding: 12px; }

.primary {
  width: 100%; border: 0; border-radius: 16px; padding: 16px; font-size: 18px; font-weight: 700;
  background: var(--lang); color: var(--card);
  box-shadow: 0 3px 0 color-mix(in srgb, var(--lang) 70%, #000);
}
.primary:active { transform: translateY(2px); box-shadow: 0 1px 0 color-mix(in srgb, var(--lang) 70%, #000); }
.primary:disabled { opacity: .45; box-shadow: none; transform: none; }
.secondary {
  width: 100%; margin-top: 10px; border: 1.5px solid var(--lang); border-radius: 16px; padding: 14px;
  font-size: 16px; font-weight: 650; background: var(--card); color: var(--lang);
}
.sticky-cta { position: sticky; bottom: calc(env(safe-area-inset-bottom) + 12px); margin-top: 28px; }

/* ---------- Session ---------- */
.play { flex: 1; display: flex; flex-direction: column; }
.play-top { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.x { background: none; border: 0; font-size: 26px; line-height: 1; color: var(--muted); padding: 4px 6px; }
.progress { flex: 1; height: 12px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--lang); border-radius: 999px; transition: width .35s ease; }
.ask { color: var(--muted); font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.prompt { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.prompt .word { font-size: 30px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.speak {
  border: 1px solid var(--line); background: var(--card); border-radius: 12px;
  width: 42px; height: 42px; display: grid; place-items: center; flex: none; color: var(--lang);
}
.speak svg { width: 20px; height: 20px; }
.sentence {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  font-size: 19px; line-height: 1.5; margin-bottom: 8px;
}
.blank { display: inline-block; min-width: 72px; border-bottom: 2.5px solid var(--lang); margin: 0 2px; height: 1.1em; vertical-align: -3px; }
.sentence b { color: var(--lang); }
.hint { color: var(--muted); font-size: 15px; margin-bottom: 4px; }
.hint-btn { align-self: flex-start; text-align: left; background: none; border: 0; color: var(--lang); font-size: 15px; font-weight: 600; padding: 6px 0; }
.options { display: grid; gap: 10px; margin-top: 20px; }
.opt {
  width: 100%; text-align: left; background: var(--card); border: 1.5px solid var(--line);
  border-bottom-width: 3.5px; border-radius: 14px; padding: 14px 16px; font-size: 18px; font-weight: 550;
}
.opt:active { transform: translateY(1px); }
.opt.right { border-color: var(--ok); background: var(--ok-soft); }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.opt:disabled { cursor: default; }
.answer-row { margin-top: 20px; }
.answer {
  width: 100%; font: inherit; font-size: 20px; padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink); outline: none;
}
.answer:focus { border-color: var(--lang); }
.accents { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.accents button {
  min-width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); font-size: 18px;
}
.play-actions { margin-top: auto; padding-top: 24px; display: grid; gap: 4px; }
.dunno { background: none; border: 0; color: var(--muted); font-size: 15px; padding: 10px; }

/* Matching */
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.match .col { display: grid; gap: 10px; align-content: start; }
.tile {
  width: 100%; min-height: 56px; background: var(--card); border: 1.5px solid var(--line);
  border-bottom-width: 3.5px; border-radius: 14px; padding: 10px; font-size: 16px; font-weight: 550;
  overflow-wrap: anywhere;
}
.tile.sel { border-color: var(--lang); background: color-mix(in srgb, var(--lang) 10%, var(--card)); }
.tile.done { border-color: var(--ok); background: var(--ok-soft); opacity: .45; }
.tile.oops { border-color: var(--bad); background: var(--bad-soft); animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Feedback sheet */
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding-block: 18px calc(env(safe-area-inset-bottom, 0px) + 16px);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: var(--ok-soft); border-top: 1px solid color-mix(in srgb, var(--ok) 30%, transparent);
  animation: up .2s ease-out;
}
.sheet.bad { background: var(--bad-soft); border-top-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.sheet.close { background: var(--close-soft); border-top-color: color-mix(in srgb, var(--close) 30%, transparent); }
.sheet-in { max-width: 540px; margin: 0 auto; }
.sheet h3 { color: var(--ok); font-size: 20px; margin-bottom: 4px; }
.sheet.bad h3 { color: var(--bad); }
.sheet.close h3 { color: var(--close); }
.sheet .sol { font-size: 17px; margin-bottom: 4px; }
.sheet .sol strong { font-weight: 700; }
.sheet .note { font-size: 15px; color: var(--muted); }
.sheet .ex { font-size: 15px; color: var(--muted); margin-top: 6px; font-style: italic; }
.sheet .primary { margin-top: 14px; background: var(--ok); box-shadow: 0 3px 0 color-mix(in srgb, var(--ok) 70%, #000); }
.sheet.bad .primary { background: var(--bad); box-shadow: 0 3px 0 color-mix(in srgb, var(--bad) 70%, #000); }
.sheet.close .primary { background: var(--close); box-shadow: 0 3px 0 color-mix(in srgb, var(--close) 70%, #000); }
.cmp { display: inline-flex; gap: 8px; align-items: baseline; }
.cmp-l { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); min-width: 38px; }
.cmp s { text-decoration-color: color-mix(in srgb, var(--close) 70%, transparent); color: var(--muted); }
.cmp mark { background: color-mix(in srgb, var(--close) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.sheet-row { display: flex; align-items: center; gap: 10px; }
.sheet-row .grow { flex: 1; min-width: 0; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
.spacer { height: 210px; flex: none; }

/* Done */
.done { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; gap: 8px; }
.done .big { font-size: 56px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; width: 100%; margin: 20px 0 28px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 8px; }
.stat b { display: block; font-size: 24px; }
.stat span { font-size: 13px; color: var(--muted); }
.done .primary { margin-bottom: 4px; }

/* ---------- Cats & paws ---------- */
.top, .lang-list { position: relative; z-index: 1; }
.paws { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 6px); right: 4px; width: 180px; height: 120px; color: var(--paw); pointer-events: none; z-index: 0; }
.paws span { position: absolute; width: 22px; height: 22px; left: calc(var(--i) * 34px); top: calc(80px - var(--i) * 18px + (var(--i) * 2 % 4) * 6px); transform: rotate(48deg); }
.paws span:nth-child(odd) { margin-top: 14px; }
.paws svg { width: 100%; height: 100%; display: block; }
.daycat { display: flex; align-items: flex-end; justify-content: center; gap: 0; margin: 0 auto 2px; }
.daycat .dc-cat { width: 104px; margin-right: -6px; position: relative; z-index: 1; }
.daycat .dc-cat svg { width: 100%; height: auto; display: block; }
.daycat .box { width: 118px; height: auto; display: block; margin-bottom: 2px; }
.dc-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 650; color: var(--accent); margin-bottom: 10px; }
.foot { display: flex; flex-direction: column; align-items: center; }
.run {
  display: flex; align-items: center; gap: 4px; color: var(--lang); font-weight: 700; font-size: 15px;
  min-width: 44px; justify-content: flex-end; transition: opacity .2s;
}
.run svg { width: 18px; height: 18px; }
.run.idle { opacity: .35; color: var(--muted); }
.seg4 { grid-template-columns: repeat(4, 1fr); }
.seg4 button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 2px; }
.seg4 small { font-size: 12px; font-weight: 500; opacity: .8; }

.celebrate {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center;
  padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: fadein .2s ease-out;
}
.celebrate { cursor: pointer; }
.celebrate.out { opacity: 0; transition: opacity .25s; }
.cele-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow);
  padding: 20px 28px 22px; text-align: center; max-width: 320px; width: 100%;
  animation: pop .45s cubic-bezier(.2, 1.4, .4, 1);
}
.cele-cat { width: 170px; margin: 0 auto; }
.cele-cat svg { width: 100%; height: auto; display: block; }
.cele-title { font-size: 24px; font-weight: 800; color: var(--accent); margin-top: 4px; text-wrap: balance; }
.is-fire .cele-title { color: var(--fr); }
.cele-sub { color: var(--muted); font-size: 15px; margin-top: 2px; }
.cele-btn { margin-top: 16px; background: var(--accent); box-shadow: 0 3px 0 color-mix(in srgb, var(--accent) 70%, #000); color: var(--accent-ink); }
.is-fire .cele-btn { background: var(--fr); box-shadow: 0 3px 0 color-mix(in srgb, var(--fr) 70%, #000); }
.is-rainbow .cele-title { background: linear-gradient(90deg, #e0485a, #f0a03c, #d9b52c, #4fa36a, #4b8fd0, #8a6bd1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.is-rainbow .cele-btn { background: #e0485a; box-shadow: 0 3px 0 #a8303f; color: #fff; }
.is-gold .cele-title { color: #c08a12; }
.is-gold .cele-btn { background: #e0a91f; box-shadow: 0 3px 0 #a87a0c; color: #fff; }
.is-gold .cele-card { box-shadow: 0 0 0 3px #f7c948, var(--shadow); }
.cat .tw { transform-box: fill-box; transform-origin: center; animation: twinkle 1.6s ease-in-out infinite; }
.cat.gold .rays { animation: spin 18s linear infinite; }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes spin { to { transform: rotate(360deg); } }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 13px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { top: 105%; transform: translateX(30px) rotate(540deg); } }
.cat.fire .fl { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker .5s ease-in-out infinite alternate; }
.cat.fire .f2 { animation-duration: .38s; animation-delay: -.2s; }
.cat.fire .f3 { animation-duration: .3s; animation-delay: -.1s; }
@keyframes flicker { from { transform: scaleY(1) scaleX(1); } to { transform: scaleY(1.08) scaleX(.96); } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadein { from { opacity: 0; } }

.refresh-tag {
  align-self: flex-start; margin: -14px 0 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 650;
}

/* Toets */
.test-pill { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 650; vertical-align: 2px;
  background: color-mix(in srgb, var(--c, var(--lang)) 14%, transparent); color: var(--c, var(--lang)); }
.test-pill.soon { background: var(--c, var(--lang)); color: var(--card); }
.test-banner { margin-top: 14px; border-radius: 16px; padding: 12px 14px; background: color-mix(in srgb, var(--lang) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--lang) 30%, transparent); }
.test-banner.soon { border-width: 2px; border-color: var(--lang); }
.tb-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; align-items: baseline; }
.tb-label { font-weight: 750; color: var(--lang); }
.tb-when { font-size: 13px; color: var(--muted); }
.tb-body { font-size: 15px; margin-top: 4px; }

/* Hartjes en adoptie */
.lit { position: relative; }
.lit.fav { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.heart { position: absolute; top: 4px; left: 4px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: color-mix(in srgb, var(--card) 85%, transparent); color: var(--accent); font-size: 20px; line-height: 1; }
.heart.on { color: #e0485a; }
.hearts { color: #e0485a; letter-spacing: 2px; font-size: 16px; text-transform: none; }
.hearts .h-off { color: var(--muted); opacity: .6; }
.fav-empty { background: var(--card); border: 1px dashed var(--line); border-radius: 14px; padding: 14px; color: var(--muted); font-size: 14px; }
.fav-msg { background: var(--close-soft); color: var(--ink); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-bottom: 10px; }
.cele-heart { margin-top: 12px; border: 1.5px solid #e0485a; background: transparent; color: #e0485a; border-radius: 999px; padding: 7px 14px; font-size: 15px; font-weight: 650; }
.cele-heart.on { background: #e0485a; color: #fff; }
.dc-adopt { font-size: 13.5px; color: var(--muted); margin: -4px 0 12px; max-width: 280px; text-wrap: balance; }
.dc-adopt.done { color: var(--ok); font-weight: 600; }
.adopt { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; background: var(--accent-soft); border-radius: 16px; padding: 10px 14px; margin-bottom: 12px; }
.adopt-cat { width: 64px; flex: none; cursor: pointer; }
.adopt-cat svg { width: 100%; height: auto; display: block; }

/* Kattenbrokjes */
.kibble { width: 26px; height: auto; display: inline-block; vertical-align: middle; }
.streak.kib { gap: 4px; }
.streak.kib .kibble { width: 22px; }
.kib-earn { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; background: var(--close-soft); border-radius: 16px; padding: 10px 14px; margin: -8px 0 20px; }
.kib-earn .kibble { width: 44px; flex: none; }
.is-space .cele-title { color: #4b4fa8; }
.is-space .cele-btn { background: #3f4380; box-shadow: 0 3px 0 #262a5c; color: #fff; }
.is-unicorn .cele-title { color: #b06ad0; }
.is-unicorn .cele-btn { background: #c48ae0; box-shadow: 0 3px 0 #9459b3; color: #fff; }

/* Hoofdmenu-tegels */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; position: relative; z-index: 1; }
.tile-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; min-width: 0;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: var(--radius); padding: 12px 14px; }
.tile-btn.room-tile { background: color-mix(in srgb, var(--fr) 12%, var(--card)); border-color: color-mix(in srgb, var(--fr) 30%, transparent); }
.tile-btn .tb-art { display: flex; align-items: flex-end; height: 44px; margin-bottom: 4px; }
.tile-btn .name { font-weight: 700; font-size: 17px; }
.tile-btn .meta { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tile-btn .meta .kibble { width: 20px; }
.lb-item { width: 40px; margin-right: 2px; display: block; }
.lb-item svg { width: 100%; max-height: 44px; display: block; }

/* Kattenkamer */
.room-head { display: flex; justify-content: space-between; align-items: center; }
.room { position: relative; isolation: isolate; width: 100%; aspect-ratio: 1 / 0.95; border-radius: 20px; overflow: hidden; margin-top: 14px;
  box-shadow: var(--shadow); border: 1px solid var(--line); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.room.editing { touch-action: none; outline: 3px dashed color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 3px; }
.r-wall { position: absolute; inset: 0 0 40% 0; background: #f6ece8; }
.r-wall.papered { background-color: var(--paper); background-image: radial-gradient(var(--paper-dot) 18%, transparent 20%); background-size: 26px 26px; }
.r-wall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7%; background: #fdfaf7; border-top: 2px solid rgba(0,0,0,.06); }
.r-floor { position: absolute; inset: 60% 0 0 0; background: #e4c9a8;
  background-image: repeating-linear-gradient(90deg, rgba(120,80,40,.08) 0 2px, transparent 2px 22%), linear-gradient(#dcbf9c, #ead4b7); }
.ritem { position: absolute; transform: translate(-50%, -100%); line-height: 0; }
.ritem.z-rug { transform: translate(-50%, -50%); }
.ritem svg { width: 100%; height: auto; display: block; overflow: visible; }
.room.editing .ritem { cursor: grab; filter: drop-shadow(0 0 0 transparent); }
.room.editing .ritem::after { content: ""; position: absolute; inset: -4px; border: 2px dashed color-mix(in srgb, var(--accent) 70%, transparent); border-radius: 10px; pointer-events: none; }
.ritem.dragging { cursor: grabbing; opacity: .85; }
.rcat { position: absolute; transform: translate(-50%, -100%); cursor: pointer; line-height: 0; }
.rcat .rc-in { transition: none; }
.rcat svg { width: 100%; height: auto; display: block; }
.rcat.walking .rc-in svg { animation: bob .45s ease-in-out infinite alternate; }
.rcat.happy svg { animation: hop .6s ease-out 2; }
.room.editing .rcat { pointer-events: none; opacity: .5; }
.room.treating .rcat { filter: drop-shadow(0 0 6px #f7d36a); }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-4%); } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14%); } }
.float-heart { position: absolute; top: 20%; color: #e0485a; font-size: 18px; line-height: 1; animation: floatup 1.6s ease-out forwards; pointer-events: none; }
@keyframes floatup { from { opacity: 1; transform: translateY(0) scale(.8); } to { opacity: 0; transform: translateY(-60px) scale(1.3); } }
.room-empty { position: absolute; left: 10%; right: 10%; top: 26%; text-align: center; color: var(--muted); font-size: 15px; background: rgba(255,255,255,.75); border-radius: 12px; padding: 10px; }
.room-help { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.room-msg { margin-top: 10px; }
.room-actions { display: grid; gap: 8px; margin-top: 14px; }
.room-actions .secondary { margin-top: 0; }
.room-actions .secondary:disabled { opacity: .45; }
.room-foot { text-align: center; margin-top: 12px; }
.paper-row { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line); }
.swatch.on { box-shadow: 0 0 0 3px var(--accent); }
.lights .bulb { animation: glow 2s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .55; } to { opacity: 1; } }
.fish { animation: swim 6s ease-in-out infinite alternate; }
.fish.f2 { animation-duration: 4.5s; animation-direction: alternate-reverse; }
.ritem.splash .fish { animation-duration: .35s; }
.ritem .drops { position: absolute; left: 50%; top: 18%; width: 0; height: 0; pointer-events: none; }
.ritem .drops i { position: absolute; width: 7px; height: 9px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #9fd3f0; animation: drop .9s ease-out forwards; }
.ritem .drops i:nth-child(1) { --dx: -26px; } .ritem .drops i:nth-child(2) { --dx: -9px; animation-delay: .05s; }
.ritem .drops i:nth-child(3) { --dx: 10px; animation-delay: .1s; } .ritem .drops i:nth-child(4) { --dx: 27px; animation-delay: .03s; }
@keyframes drop { 0% { transform: translate(0, 0); opacity: 1; } 45% { transform: translate(calc(var(--dx) * .7), -26px); } 100% { transform: translate(var(--dx), 6px); opacity: 0; } }
@keyframes swim { from { transform: translateX(-14px); } to { transform: translateX(10px); } }
.room-sheet { background: var(--card); border-top: 1px solid var(--line); }
.room-sheet h3 { color: var(--ink); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 8px; }
.swatch-big { background: var(--bg); border: 2px solid var(--line); border-radius: 14px; padding: 8px 6px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; color: var(--muted); }
.swatch-big svg { width: 100%; max-height: 56px; }
.swatch-big.on { border-color: var(--accent); color: var(--ink); font-weight: 650; }
.room-sheet .primary { background: var(--accent); box-shadow: 0 3px 0 color-mix(in srgb, var(--accent) 70%, #000); color: var(--accent-ink); }

/* Kattenkamer: knoppen, hengel, dag en nacht, foto */
.room-tools { display: grid; gap: 8px; }
.tool { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 8px 2px; font-size: 12.5px; font-weight: 650; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 64px; justify-content: center; }
.tool span { font-size: 22px; line-height: 1; }
.tool:disabled { opacity: .45; }
.room.fishing { touch-action: none; cursor: crosshair; }
.rod-string { position: absolute; top: 0; width: 1.5px; margin-left: -.75px; background: rgba(90, 70, 80, .55); z-index: 2900; pointer-events: none; }
.rod-feather { position: absolute; width: 9%; transform: translate(-50%, -6%); z-index: 2901; pointer-events: none; line-height: 0; }
.rod-feather svg { width: 100%; height: auto; animation: feather 1s ease-in-out infinite alternate; transform-origin: 50% 0; }
@keyframes feather { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
.room::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2500; transition: background .6s; }
.room.t-avond::after { background: rgba(255, 140, 60, .1); }
.room.t-nacht::after { background: rgba(30, 30, 80, .32); }
.room.t-nacht .ritem[data-item="lampjes"], .room.t-nacht .ritem[data-item="boomlampjes"] { z-index: 2600 !important; }
.room.t-avond .ri.lights .bulb, .room.raining .ri.lights .bulb { filter: drop-shadow(0 0 3px #fff6c4); }
.room.t-nacht .ritem[data-item="tuinlampjes"] { filter: brightness(1.5); }
.room.t-nacht .ritem[data-item="tuinlampjes"] .bulb { filter: drop-shadow(0 0 8px #fff6c4); }
.room.t-nacht .ri.lights .bulb { filter: drop-shadow(0 0 5px #fff6c4); }
.win-sky { position: absolute; left: 20%; top: 15%; width: 60%; height: 66.7%; border-radius: 3px; overflow: hidden; pointer-events: none; }
.room.t-avond .win-sky { background: linear-gradient(#f7a6a0, #f9d29a); opacity: .7; }
.room.t-nacht .win-sky { background: #2b2d5c; }
.win-sky .moon { position: absolute; right: 16%; top: 12%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: #fff6c4; box-shadow: -4px 2px 0 0 #2b2d5c inset; }
.room.t-nacht .win-sky::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(#fff 1px, transparent 1.5px); background-size: 14px 12px; opacity: .6; }
.win-snow { position: absolute; inset: -40% 0 0 0; background-image: radial-gradient(#fff 1.6px, transparent 2px), radial-gradient(#fff 1.2px, transparent 1.6px); background-size: 16px 16px, 11px 13px; background-position: 0 0, 6px 4px; animation: snowfall 6s linear infinite; }
@keyframes snowfall { to { transform: translateY(40%); } }
.rcat.petted svg { filter: brightness(1.04); }
.photo-sheet { text-align: center; }
.room-photo { width: 100%; border-radius: 14px; margin: 8px 0 12px; box-shadow: var(--shadow); }
.photo-dl { display: block; text-decoration: none; text-align: center; }
.photo-sheet .muted { margin-top: 10px; }

/* Tuin */
.scene-tabs { grid-template-columns: 1fr 1fr; margin-top: 10px; }
.scene-tabs small { font-weight: 600; opacity: .75; margin-left: 4px; }
.room.garden { background: #a6d98a; }
.scene-bg { position: absolute; inset: 0; line-height: 0; z-index: 0; }
.scene-bg svg { width: 100%; height: 100%; display: block; }
.flap { position: absolute; width: 6.5%; transform: translate(-50%, -100%); z-index: 6; line-height: 0; pointer-events: none; }
.flap svg { width: 100%; height: auto; }
.ritem.z-fixed { transform: translate(-50%, -100%); }
.rain { position: absolute; inset: -20% 0 0 0; pointer-events: none; z-index: 2400;
  background-image: linear-gradient(105deg, transparent 46%, rgba(255,255,255,.55) 48%, transparent 50%), linear-gradient(105deg, transparent 46%, rgba(220,235,255,.45) 48%, transparent 50%);
  background-size: 22px 60px, 15px 44px; background-position: 0 0, 9px 20px; animation: rainfall .5s linear infinite; }
@keyframes rainfall { to { background-position: -6px 60px, 3px 64px; } }
.room.raining.t-dag::after { background: rgba(70, 80, 100, .12); }
.win-sky.wet { background: #9aa3b0; opacity: .85; }
.win-rain { position: absolute; inset: -30% 0 0 0; background-image: linear-gradient(105deg, transparent 45%, rgba(255,255,255,.8) 48%, transparent 51%); background-size: 9px 26px; animation: rainfall .45s linear infinite; }
.ri.swing-item { transform-origin: 50% 0; }
.ritem.swing-go svg { animation: swingslow 1.2s ease-in-out infinite alternate; transform-origin: 50% 0; }
.rcat.act-swing .rc-in { animation: swingslow 1.2s ease-in-out infinite alternate; transform-origin: 50% -45%; }
@keyframes swingslow { from { transform: rotate(-13deg); } to { transform: rotate(13deg); } }
.rcat.act-bounce svg { animation: bounce .6s cubic-bezier(.3,.7,.4,1) infinite alternate; transform-origin: 50% 100%; }
@keyframes bounce { 0% { transform: translateY(0) scale(1.06, .92); } 30% { transform: translateY(-20%) scale(.97, 1.04); } 100% { transform: translateY(-55%) scale(1, 1); } }
.rcat.climbing svg { animation: shake .2s linear infinite alternate; }
.ri.birdhouse .birdie { opacity: 0; transition: opacity .3s; }
.ritem.peeping .birdie { animation: peep 4s ease-in-out; }
@keyframes peep { 0%, 100% { opacity: 0; } 15%, 80% { opacity: 1; } }
.tool small { display: block; font-size: 10.5px; font-weight: 600; color: var(--muted); margin-top: 1px; }
.room-tools { grid-template-columns: repeat(3, 1fr); }
.photo-choices { display: grid; gap: 8px; margin: 10px 0 6px; }
.photo-choices .secondary { margin: 0; }

/* Natvoer */
.rcat.zoom svg { animation: zoomrun .14s linear infinite alternate; transform-origin: 50% 100%; }
@keyframes zoomrun { from { transform: rotate(-7deg) translateY(0); } to { transform: rotate(-3deg) translateY(-7%); } }
.rcat.act-gobble svg { animation: gobble .13s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes gobble { from { transform: rotate(4deg) translateY(2%); } to { transform: rotate(13deg) translateY(7%) scaleY(.95); } }
.wetfood { position: absolute; left: 14%; right: 14%; top: -14%; line-height: 0; animation: eaten 7.5s ease-in forwards; transform-origin: 50% 100%; }
.wetfood svg { width: 100%; height: auto; }
@keyframes eaten { 0%, 25% { transform: scaleY(1); opacity: 1; } 90% { transform: scaleY(.15); opacity: 1; } 100% { transform: scaleY(0); opacity: 0; } }

/* Leven in de tuin */
.ritem .act-label { position: absolute; top: -30%; left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 800; color: #5a3b42; background: rgba(255,255,255,.92);
  border-radius: 999px; padding: 3px 7px; line-height: 1; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.15); animation: floatup 1.6s ease-out forwards; pointer-events: none; }
.sprite { position: absolute; transform: translate(-50%, -100%); line-height: 0; pointer-events: none; }
.sprite svg { width: 100%; height: auto; display: block; overflow: visible; }
.sprite.left svg { transform: scaleX(-1); }
.sprite.apple.rolling svg { animation: spinv 1.4s ease-out; }
.critter.fly svg { animation: flutterpath 1.6s ease-in-out infinite; }
.critter.fly .wings, .critter.hover .wings { animation: flap .18s linear infinite alternate; transform-origin: 50% 50%; transform-box: fill-box; }
@keyframes flap { from { transform: scaleX(1); } to { transform: scaleX(.35); } }
@keyframes flutterpath { 0%, 100% { translate: 0 0; } 25% { translate: 0 -30%; } 50% { translate: 0 10%; } 75% { translate: 0 -15%; } }
.critter.hover { animation: hoverflower 3.4s ease-in-out infinite; }
.critter.hover.h1 { animation-duration: 4.1s; animation-direction: reverse; }
@keyframes hoverflower { 0%, 100% { translate: 0 0; } 25% { translate: 140% -80%; } 50% { translate: 60% -150%; } 75% { translate: -120% -60%; } }
.critter.walk svg { animation: waddle .5s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.critter.walk.left svg { animation-name: waddleleft; }
@keyframes waddle { from { transform: rotate(-3deg); } to { transform: rotate(3deg) translateY(-3%); } }
@keyframes waddleleft { from { transform: scaleX(-1) rotate(-3deg); } to { transform: scaleX(-1) rotate(3deg) translateY(-3%); } }
.critter.run svg { animation: hop .3s ease-in-out infinite; }
.critter.run.left svg { transform: scaleX(-1); }
.critter.climb svg { transform: rotate(-80deg); animation: none; }
.ri.birdbath .birds { opacity: 0; transition: opacity .4s; }
.ritem.birds-on .birds { opacity: 1; }
.ritem.birds-on .bird { animation: dip .5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
.ritem.birds-on .bird.b2 { animation-delay: -.25s; }
.ritem.birds-on .splash { animation: twinkle .3s infinite alternate; }
@keyframes dip { from { transform: rotate(0); } to { transform: rotate(-14deg) translateY(10%); } }
.ritem.flyoff .bird { animation: flyaway .8s ease-in forwards !important; }
.ritem.flyoff .bird.b2 { animation-name: flyaway2 !important; }
@keyframes flyaway { to { transform: translate(-120%, -400%) rotate(-20deg); opacity: 0; } }
@keyframes flyaway2 { to { transform: translate(140%, -380%) rotate(20deg); opacity: 0; } }

/* Aanbieding van de dag */
.deal-banner { width: 100%; margin-top: 14px; display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 14px; border-radius: 16px;
  border: 2px dashed color-mix(in srgb, #f2a65a 70%, transparent); background: color-mix(in srgb, #f2a65a 12%, var(--card)); color: var(--ink); }
.db-art { width: 64px; flex: none; line-height: 0; }
.db-art svg { width: 100%; height: auto; max-height: 64px; }
.db-txt { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.db-txt b { font-size: 15px; }
.db-txt small { color: var(--muted); }
.db-txt .kibble, .deal-note .kibble { width: 18px; vertical-align: -3px; }
.shop-item { position: relative; }
.shop-item.deal { border-color: #f2a65a; box-shadow: 0 0 0 2px color-mix(in srgb, #f2a65a 35%, transparent); }
.deal-badge { position: absolute; top: 8px; right: 8px; background: #e86a3c; color: #fff; font-weight: 800; font-size: 13px; border-radius: 999px; padding: 3px 8px; z-index: 1; }
.si-price s, .db-txt s { opacity: .6; font-weight: 600; }
.deal-note { margin-top: 6px; font-size: 14px; font-weight: 700; color: #c4652f; }
.tool-price { font-weight: 650; display: inline-flex; align-items: center; gap: 3px; }
.tool-price .kibble { width: 16px; }

/* Instellingen */
.gear { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.gear svg { width: 20px; height: 20px; }
.set-seg { margin-top: 2px; }
.set-note { margin-top: 6px; }
.set-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: grid; gap: 12px; }
.set-row { display: grid; gap: 8px; }
.set-lang { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.set-lang .flag { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.set-colors { display: flex; gap: 8px; flex-wrap: wrap; }
.set-colors .swatch { width: 32px; height: 32px; }
.set-line { display: grid; gap: 6px; }
.test-row { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.test-row:last-child { border-bottom: 0; padding-bottom: 0; }
.test-row .set-lang { flex-wrap: wrap; }
.test-row .set-lang small { width: 100%; font-weight: 500; font-size: 13px; }
.test-inputs { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.test-inputs input { font: inherit; font-size: 16px; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); min-height: 44px; width: 100%; box-sizing: border-box; }
.test-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.set-line > span { font-weight: 600; }
.set-buttons { display: grid; gap: 8px; }
.set-buttons .secondary { margin: 0; text-align: center; }
.file-btn { display: flex; align-items: center; justify-content: center; cursor: pointer; }
.credits { text-align: center; margin: 28px 0 10px; display: grid; gap: 4px; font-family: "Gochi Hand", "Chalkboard SE", "Comic Sans MS", cursive; font-size: 20px; color: var(--accent); }
.credits .muted { font-family: inherit; font-size: 13px; color: var(--muted); letter-spacing: .02em; }

/* Pootjes, staart en blazen */
.cat .paw, .cat .tail, .cat .ears { transform-box: fill-box; }
.rcat.walking .paw.pl { animation: step .32s ease-in-out infinite alternate; }
.rcat.walking .paw.pr { animation: step .32s ease-in-out infinite alternate-reverse; }
.rcat.zoom .paw.pl { animation: step .12s linear infinite alternate; }
.rcat.zoom .paw.pr { animation: step .12s linear infinite alternate-reverse; }
@keyframes step { from { transform: translateY(0); } to { transform: translateY(-38%) translateX(4%); } }
.rcat .tail { transform-origin: 0% 100%; animation: tailsway 3.2s ease-in-out infinite alternate; }
.rcat.walking .tail { animation-duration: .9s; }
.rcat.act-nap .tail, .rcat.act-sleep .tail { animation-duration: 6s; }
@keyframes tailsway { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }
.rcat.act-pounce .paw, .rcat.act-play .paw { animation: swat .25s ease-in-out infinite alternate; }
.rcat.act-pounce .paw.pr, .rcat.act-play .paw.pr { animation-delay: -.12s; }
@keyframes swat { from { transform: translateY(0); } to { transform: translateY(-60%) rotate(-12deg); } }
.rcat.act-hiss .puff, .rcat.act-hiss .hissface { opacity: 1; }
.rcat.act-hiss .mouth { opacity: 0; }
.rcat.act-hiss svg { animation: hiss .12s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.rcat.act-hiss .ears { transform-origin: 50% 100%; transform: scaleY(.7) translateY(6%); }
.rcat.act-hiss .tail { animation: none; transform: rotate(-14deg); transform-origin: 0% 100%; }
@keyframes hiss { from { transform: scale(1.08, 1.1) translateY(-2%); } to { transform: scale(1.1, 1.12) translateY(-3%) translateX(1%); } }
.rcat.act-startle svg { animation: startle .5s ease-out; transform-origin: 50% 100%; }
@keyframes startle { 0% { transform: none; } 30% { transform: translateY(-28%) scale(1.06, 1.12); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .rcat .tail, .rcat .paw { animation: none !important; } }

/* Slapen: ogen dicht en lekker liggen */
.rcat.act-nap .sleepeyes, .rcat.act-sleep .sleepeyes, .rcat.act-purr .sleepeyes { opacity: 1; }
.rcat.act-nap .eyes:has(+ .sleepeyes), .rcat.act-sleep .eyes:has(+ .sleepeyes), .rcat.act-purr .eyes:has(+ .sleepeyes) { opacity: 0; }
.rcat.act-nap svg, .rcat.act-sleep svg { animation: loaf 3s ease-in-out infinite !important; transform-origin: 50% 100%; }
@keyframes loaf { 0%, 100% { transform: scale(1.14, .72) rotate(-2deg); } 50% { transform: scale(1.12, .76) rotate(-2deg); } }
.rcat.act-nap .paw, .rcat.act-sleep .paw { opacity: 0; }
.rcat.act-nap .tail, .rcat.act-sleep .tail { transform: rotate(18deg); animation: none; }

.laser-dot { position: absolute; width: 2.2%; aspect-ratio: 1; border-radius: 50%; background: #ff2d3a; transform: translate(-50%, -50%);
  box-shadow: 0 0 6px 3px rgba(255, 60, 70, .55); z-index: 2600; pointer-events: none; transition: left .25s ease-out, top .25s ease-out; animation: laserbuzz .1s linear infinite alternate; }
@keyframes laserbuzz { from { translate: 0 0; } to { translate: 1px -1px; } }
.ri.laser .laser-tip { opacity: .25; }
.ritem.on .ri.laser .laser-tip { opacity: 1; animation: twinkle .2s infinite alternate; }

/* Automatische back-up */
.code-box { text-align: center; background: var(--accent-soft); border-radius: 14px; padding: 12px; display: grid; gap: 6px; }
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 21px; font-weight: 700; letter-spacing: .06em; color: var(--ink); user-select: all; -webkit-user-select: all; }
.code-sheet { display: grid; gap: 10px; text-align: center; }
.code-sheet .code-box { margin: 2px 0; }
.set-buttons.two { grid-template-columns: 1fr 1fr; }
.restore-box { border-top: 1px solid var(--line); padding-top: 12px; }
.code-input { font: inherit; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); min-height: 44px; width: 100%; box-sizing: border-box; }
.restore-box .secondary { margin: 0; }
.set-card .primary { margin: 0; }
.file-backup summary { cursor: pointer; padding: 4px 0 8px; }
.cloud-hint { display: flex; align-items: stretch; gap: 6px; margin-top: 12px; }
.cloud-hint-main { flex: 1; text-align: left; border: 1px dashed var(--line); background: var(--card); border-radius: 14px; padding: 10px 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
.cloud-hint-x { width: 40px; border: 0; background: none; color: var(--muted); font-size: 22px; }

/* Toetsweek: dubbele brokjes */
.x2-pill { display: inline-block; margin-left: 6px; font-size: 11.5px; font-weight: 800; color: #fff; background: #e86a3c; border-radius: 999px; padding: 2px 7px; vertical-align: 2px; }
.tb-x2 { display: flex; align-items: center; gap: 6px; font-size: 14px; margin: 6px 0 2px; color: #c4652f; }
.tb-x2 .kibble { width: 22px; flex: none; }
.kib-earn .x2 { color: #e86a3c; margin-left: 4px; }
.kib-earn.double { border-color: #f2a65a; }

.sprite .act-label { position: absolute; top: -40%; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 800; color: #5a3b42; background: rgba(255,255,255,.92);
  border-radius: 999px; padding: 2px 6px; line-height: 1; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.15); animation: floatup 1.6s ease-out forwards; pointer-events: none; }
.sprite.left .act-label { transform: translateX(-50%); }
.critter.bird .wing { transform-box: fill-box; transform-origin: 30% 100%; }
.critter.bird.flying .wing { animation: birdflap .12s linear infinite alternate; }
.critter.bird.flying .legs { opacity: 0; }
@keyframes birdflap { from { transform: rotate(0); } to { transform: rotate(-60deg) scaleY(.6); } }
.critter.bird.pecking svg { animation: peck 1.4s ease-in-out infinite; transform-origin: 40% 100%; }
.critter.bird.pecking.left svg { animation-name: peckleft; }
@keyframes peck { 0%, 60%, 100% { transform: rotate(0); } 70%, 80% { transform: rotate(28deg); } }
@keyframes peckleft { 0%, 60%, 100% { transform: scaleX(-1) rotate(0); } 70%, 80% { transform: scaleX(-1) rotate(28deg); } }
.critter.hopper svg { animation: hopper var(--hopms, .5s) ease-in-out infinite; transform-origin: 50% 100%; }
.critter.hopper.left svg { animation-name: hopperleft; }
@keyframes hopper { 0%, 100% { transform: translateY(0) scale(1.05, .92); } 50% { transform: translateY(-55%) scale(.96, 1.06); } }
@keyframes hopperleft { 0%, 100% { transform: scaleX(-1) translateY(0) scale(1.05, .92); } 50% { transform: scaleX(-1) translateY(-55%) scale(.96, 1.06); } }
.critter.snail svg { animation: creep 1.6s ease-in-out infinite alternate; transform-origin: 0 100%; }
.critter.snail.left svg { animation-name: creepleft; }
@keyframes creep { from { transform: scaleX(1); } to { transform: scaleX(1.08); } }
@keyframes creepleft { from { transform: scaleX(-1); } to { transform: scaleX(-1.08); } }
.critter.bee svg { animation: buzzbob .25s ease-in-out infinite alternate; }
.critter.bee.left svg { animation-name: buzzbobleft; }
.critter.bee .wing { animation: flap .06s linear infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes buzzbob { from { transform: translateY(0); } to { transform: translateY(-12%); } }
@keyframes buzzbobleft { from { transform: scaleX(-1) translateY(0); } to { transform: scaleX(-1) translateY(-12%); } }
.critter.owl .owl-eye { animation: blink 4s infinite; transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.room.t-nacht .critter.owl { z-index: 2600 !important; }

/* Katten spelen */
.rcat .act-label { position: absolute; top: -2%; right: 6%; font-size: 13px; font-weight: 800; color: #5a3b42; background: rgba(255, 255, 255, .92);
  border-radius: 999px; padding: 3px 7px; line-height: 1; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); animation: floatup 2.2s ease-out infinite; pointer-events: none; }
.room-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 40px; }
.cat-name-bubble { position: relative; font-family: "Gochi Hand", "Chalkboard SE", "Comic Sans MS", cursive; font-size: 19px; line-height: 1.1;
  background: var(--card); color: var(--accent); border: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 16px; padding: 4px 12px; transform: rotate(-3deg); }
.cat-name-bubble::before { content: ""; position: absolute; left: -9px; top: 50%; margin-top: -6px; border: 6px solid transparent; border-right: 8px solid color-mix(in srgb, var(--accent) 40%, transparent); border-left: 0; }
.cat-name-bubble.pop { animation: namepop .45s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes namepop { from { transform: rotate(-3deg) scale(.4); opacity: 0; } to { transform: rotate(-3deg) scale(1); opacity: 1; } }
.rcat.act-sleep svg { animation: breathe 2.4s ease-in-out infinite; transform-origin: 50% 100%; }
.rcat.act-eat svg { animation: nod .5s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.rcat.act-scratch svg { animation: shake .18s linear infinite alternate; }
.rcat.act-play svg { animation: tilt .4s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.rcat.act-pounce svg { animation: hop .6s ease-out 3; }
.rcat.act-watch svg { animation: tilt 1.4s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.rcat.act-sniff svg { animation: nod .9s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.rcat.act-dig svg { animation: shake .25s linear infinite alternate; }
.rcat.act-tunnel { opacity: 0; transition: opacity .5s ease-in !important; }
.rcat { touch-action: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.rcat.act-nap svg { animation: breathe 2.8s ease-in-out infinite; transform-origin: 50% 100%; filter: saturate(.9); }
.rcat.act-lick svg { animation: lick .35s ease-in-out infinite alternate; transform-origin: 40% 60%; }
.rcat.act-stretch svg { animation: stretch 2.2s ease-in-out; transform-origin: 50% 100%; }
.rcat.act-groom svg { animation: groom .4s ease-in-out infinite alternate; transform-origin: 50% 90%; }
.rcat.act-purr svg { animation: breathe 1.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes groom { from { transform: rotate(4deg) translateX(0); } to { transform: rotate(10deg) translateX(3%); } }
.rcat.act-fight { opacity: 0; transition: opacity .2s !important; }
.rcat.held { cursor: grabbing; z-index: 3000 !important; }
.room-empty { z-index: 1; pointer-events: none; }
.rcat.held svg { animation: dangle 1.1s ease-in-out infinite alternate; transform-origin: 50% 8%; filter: drop-shadow(0 10px 6px rgba(0, 0, 0, .18)); }
.rcat.falling svg { animation: floaty .8s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.rcat.landed svg { animation: land .45s ease-out; transform-origin: 50% 100%; }
.fight-cloud { position: absolute; transform: translate(-50%, -88%); pointer-events: none; line-height: 0; }
.fight-cloud svg { width: 100%; height: auto; overflow: visible; }
.fight-cloud .fc-cloud { animation: tumble .22s linear infinite alternate; transform-origin: 50% 50%; transform-box: fill-box; }
.fight-cloud .fc-bits { animation: tumble .17s linear infinite alternate-reverse; transform-origin: 100px 90px; }
.fight-cloud .fc-stars { animation: twinkle .5s ease-in-out infinite alternate; }
@keyframes lick { from { transform: rotate(-3deg) translateY(0); } to { transform: rotate(5deg) translateY(2%); } }
@keyframes stretch { 0%, 100% { transform: none; } 40%, 70% { transform: scale(1.14, .86); } }
@keyframes dangle { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@keyframes floaty { from { transform: rotate(-4deg) scaleY(1.04); } to { transform: rotate(4deg) scaleY(1.04); } }
@keyframes land { 0% { transform: scale(1.12, .84); } 60% { transform: scale(.96, 1.05); } 100% { transform: none; } }
@keyframes tumble { from { transform: rotate(-4deg) translate(-2%, 1%); } to { transform: rotate(4deg) translate(2%, -1%); } }
@keyframes twinkle { from { opacity: .4; } to { opacity: 1; } }
.rcat.act-hide svg { animation: peek 2.4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scaleY(.9); } 50% { transform: scaleY(.95); } }
@keyframes nod { from { transform: rotate(0); } to { transform: rotate(8deg) translateY(3%); } }
@keyframes shake { from { transform: translateX(-2%); } to { transform: translateX(2%); } }
@keyframes tilt { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@keyframes peek { 0%, 100% { transform: translateY(6%); } 50% { transform: translateY(-2%); } }
.ri.ghost { animation: ghostfloat 3.2s ease-in-out infinite; transform-origin: 50% 0; }
.ri.pumpkin .glow { animation: flicker 2.6s steps(1) infinite; }
.ri .spider { animation: spiderbob 4s ease-in-out infinite; }
.ritem.swinging svg { animation: swingit .4s ease-in-out 6 alternate; transform-origin: 50% 0; }
@keyframes ghostfloat { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(6%) rotate(3deg); } }
@keyframes flicker { 0%, 100% { opacity: 1; } 12% { opacity: .55; } 16% { opacity: 1; } 47% { opacity: .75; } 52% { opacity: 1; } 78% { opacity: .4; } 81% { opacity: .9; } }
@keyframes spiderbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes swingit { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
@media (prefers-reduced-motion: reduce) { .ri.ghost, .ri.pumpkin .glow, .ri .spider { animation: none; } }
.ritem.pokeable { cursor: pointer; }
.ritem.scooting svg { animation: scoot .15s ease-in-out infinite alternate; }
@keyframes scoot { from { transform: scaleX(var(--dir, 1)) translateY(0) rotate(-6deg); } to { transform: scaleX(var(--dir, 1)) translateY(-8%) rotate(6deg); } }
.ritem.rolling svg { animation: spinv var(--spint, 1.3s) ease-out; }
.ritem.bonk svg { animation: bonk .18s ease-out; transform-origin: var(--bonk, 50%) 70%; }
@keyframes spinv { to { transform: rotate(calc(var(--spin, 1) * 540deg)); } }
@keyframes bonk { 50% { transform: scale(.8, 1.12); } }
.ritem.hopping svg { animation: hop .5s ease-out 2; }
.house { position: absolute; top: 4px; left: 38px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: color-mix(in srgb, var(--card) 85%, transparent); font-size: 17px; line-height: 1; filter: grayscale(1); opacity: .45; }
.house.on { filter: none; opacity: 1; background: color-mix(in srgb, var(--fr) 18%, var(--card)); }
.legend-row { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.home-msg { background: color-mix(in srgb, var(--fr) 14%, var(--card)); }

/* Inruilen */
.trade-btn { margin-top: 6px; border: 0; border-radius: 999px; padding: 4px 10px; font-size: 13px; white-space: nowrap; font-weight: 700; display: inline-flex; align-items: center; gap: 4px;
  background: var(--fr); color: #fff; }
.trade-btn .kibble { width: 18px; }
.trade-btn.sure { background: var(--bad); }
.trade-mode { width: 100%; min-height: 48px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: 16px; color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 6px; }
.trade-mode .kibble { width: 22px; }
.trade-mode.on { background: var(--accent); color: #fff; border-color: transparent; }
.chip-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.chip-label { font-size: 12px; color: var(--muted); flex: 0 0 100%; }
.chip { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 6px 11px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; }
.chip small { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.chip.on { background: var(--accent); border-color: transparent; color: #fff; }
.chip.on small { color: rgba(255,255,255,.8); }
.chip .stars { margin: 0; }
.chip .stars svg { width: 14px; height: 14px; }
.trade-all { margin-top: 10px; width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--ink); }
.trade-all .kibble { width: 20px; }
.trade-all.sure { background: var(--bad); color: #fff; border-color: transparent; }
.trade-no { margin-top: 6px; font-size: 12px; color: var(--muted); }

/* Kamerkleuren */
.r-wall { background: var(--wall, #f6ece8) !important; }
.r-wall.dotted { background-image: radial-gradient(var(--wall-dot) 18%, transparent 20%) !important; background-size: 26px 26px !important; }
.r-floor { background-color: var(--floor, #e4c9a8) !important;
  background-image: repeating-linear-gradient(90deg, var(--floor-line, rgba(120,80,40,.08)) 0 2px, transparent 2px 22%), linear-gradient(var(--floor-top, #dcbf9c), var(--floor-bottom, #ead4b7)) !important; }
.room.setup { aspect-ratio: 1 / 0.7; }
.room-colors { display: grid; gap: 12px; margin-top: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.rc-row { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 10px; }
.rc-label { font-size: 14px; font-weight: 650; color: var(--muted); }
.rc-sw { display: flex; flex-wrap: wrap; gap: 8px; }
.floor-sw { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--line); background: var(--bg); border-radius: 999px; padding: 4px 10px 4px 4px; font-size: 13px; }
.floor-sw span { width: 22px; height: 22px; border-radius: 50%; background: var(--fb); background-image: repeating-linear-gradient(90deg, var(--fl) 0 2px, transparent 2px 7px); }
.floor-sw.on { border-color: var(--accent); font-weight: 650; }
.floor-sw[data-dots] { padding: 4px 12px; }
.shop-item { font: inherit; color: inherit; cursor: pointer; }
.si-price { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 6px 14px; margin-top: 4px; font-weight: 700; background: var(--fr); color: #fff; }
.si-price .kibble { width: 22px; }
.si-price.short { background: var(--line); color: var(--muted); }
.is-head { display: flex; gap: 12px; align-items: center; }
.is-art { width: 92px; flex: none; }
.is-art svg { width: 100%; max-height: 80px; }
.room-sheet .primary:disabled { opacity: .5; }

/* Bijzondere uitvoeringen */
.fin-label { margin: 12px 0 4px; font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.swatch-big.fin { background: linear-gradient(160deg, var(--bg), color-mix(in srgb, #f7c948 12%, var(--bg))); }
.glint { transform-box: fill-box; transform-origin: center; opacity: 0; animation: glint 3.2s ease-in-out infinite; }
@keyframes glint { 0%, 70%, 100% { opacity: 0; transform: scale(.3); } 80% { opacity: 1; transform: scale(1.2); } 90% { opacity: .6; transform: scale(.8); } }
.ri.fin-diamant, .ri.fin-goud { filter: drop-shadow(0 0 3px rgba(255, 240, 200, .6)); }

/* Zeldzaamheid */
.rar { border-radius: 16px; position: relative; overflow: hidden; }
.rar-zwart { background: var(--card); }
.rar-zilver { background: linear-gradient(135deg, #f4f6f9, #dfe4ec 40%, #f9fafc 52%, #cfd6e2); }
.rar-goud { background: linear-gradient(135deg, #fff8dc, #f7d36a 48%, #fff3c4 60%, #f0c24a); }
.rar-regenboog { background: linear-gradient(120deg, #ffd1d1, #ffe2b8, #fff3b0, #d6f5c9, #cde8fb, #e3d4fb, #ffd1d1); background-size: 300% 300%; animation: rainbowbg 6s linear infinite; }
.rar-zilver::after, .rar-goud::after, .rar-regenboog::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%); background-size: 250% 100%; animation: sheen 3.5s ease-in-out infinite; }
.rar-zilver::after { animation-duration: 4.5s; }
@keyframes sheen { 0% { background-position: 150% 0; } 60%, 100% { background-position: -100% 0; } }
@keyframes rainbowbg { to { background-position: 300% 0; } }
.lit-cat.rar { padding: 4px; }
.stars { display: inline-flex; gap: 1px; justify-content: center; margin-top: 4px; }
.stars svg { width: 15px; height: 15px; }
.st-zwart svg { fill: #2b2326; }
.st-zilver svg { fill: #a9b2c3; filter: drop-shadow(0 0 1px #6b7486); }
.st-goud svg { fill: #f2b51d; filter: drop-shadow(0 0 2px #f7d36a); }
.st-regenboog svg:nth-child(1) path { fill: #f28b82; } .st-regenboog svg:nth-child(2) path { fill: #8cc4ec; } .st-regenboog svg:nth-child(3) path { fill: #9bd48f; }
.st-regenboog { filter: drop-shadow(0 0 3px #f7d36a); animation: hop 1.2s ease-in-out infinite; }
.lit-soort { font-size: 12px; font-weight: 650; color: var(--muted); margin-top: -1px; }
:root[data-theme="dark"] .st-zwart svg { fill: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .st-zwart svg { fill: var(--ink); } }
.cele-card .stars svg { width: 26px; height: 26px; }
.cele-card .stars { margin-top: 0; }

/* Doos openen */
.cele-run { font-weight: 700; color: var(--muted); font-size: 15px; }
.box-btn { border: 0; background: none; padding: 0; width: 200px; max-width: 70%; margin: 8px auto 4px; display: block; cursor: pointer; }
.box-btn svg { width: 100%; height: auto; display: block; animation: boxwiggle 1.4s ease-in-out infinite; transform-origin: 50% 90%; }
.box-btn.opening svg { animation: boxshake .5s linear; }
.box-btn.opening .lid-l { transform: translate(-24px, -30px) rotate(-30deg); transition: transform .45s ease-out; transform-box: fill-box; transform-origin: 100% 100%; }
.box-btn.opening .lid-r { transform: translate(24px, -30px) rotate(30deg); transition: transform .45s ease-out; transform-box: fill-box; transform-origin: 0 100%; }
.mbox.shiny { filter: drop-shadow(0 0 10px #f7d36a); }
.box-glints path { transform-box: fill-box; transform-origin: center; animation: glint 1.6s ease-in-out infinite; }
.box-glints path:nth-child(2) { animation-delay: .5s; } .box-glints path:nth-child(3) { animation-delay: 1s; }
@keyframes boxwiggle { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-5deg); } 84% { transform: rotate(5deg); } 92% { transform: rotate(-3deg); } }
@keyframes boxshake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px) rotate(-3deg); } 40% { transform: translateX(6px) rotate(3deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.cele-cat.pop-out { animation: popout .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes popout { from { transform: translateY(40%) scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.revealed .cele-card { padding-top: 14px; }
.is-zilver .cele-title { color: #6b7486; }
.is-goud .cele-title { color: #c08a12; }
.is-goud .cele-card { box-shadow: 0 0 0 3px #f7c948, 0 0 30px rgba(247, 201, 72, .6); }
.is-regenboog .cele-title { font-size: 30px; background: linear-gradient(90deg, #e0485a, #f0a03c, #d9b52c, #4fa36a, #4b8fd0, #8a6bd1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.is-regenboog .cele-card { box-shadow: 0 0 0 4px #fff, 0 0 40px rgba(255, 255, 255, .9); }
.is-zilver .cele-btn { background: #8a93a6; box-shadow: 0 3px 0 #646c7d; color: #fff; }
.is-goud .cele-btn { background: #e0a91f; box-shadow: 0 3px 0 #a87a0c; color: #fff; }
.is-regenboog .cele-btn { background: linear-gradient(90deg, #e0485a, #f0a03c, #4fa36a, #4b8fd0, #8a6bd1); box-shadow: 0 3px 0 #5a4a8a; color: #fff; }
.fx-shimmer { position: fixed; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 30%, rgba(220, 228, 240, .8) 50%, transparent 70%); background-size: 250% 100%; animation: sheen 1.4s ease-out 2; z-index: -1; }
.fx-rays { position: fixed; left: 50%; top: 45%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax; pointer-events: none; z-index: -1;
  background: repeating-conic-gradient(rgba(247, 201, 72, .35) 0 8deg, transparent 8deg 24deg); animation: spin 14s linear infinite; }
.fx-legend { position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .55;
  background: linear-gradient(120deg, #f28b82, #f7b267, #f9e07f, #9bd48f, #8cc4ec, #b9a0e8, #f28b82); background-size: 300% 300%; animation: rainbowbg 3s linear infinite; }
.fx-starrain { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.fx-starrain i { position: absolute; top: -30px; font-style: normal; font-size: 22px; color: #fff; text-shadow: 0 0 8px #f7d36a; animation: fall linear infinite; }
.celebrate.revealed { isolation: isolate; }

/* Statistieken */
.rh-right { display: flex; align-items: center; gap: 8px; }
.stat-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 18px; }
.stat-total { margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; align-items: baseline; gap: 10px; }
.stat-total b { font-size: 34px; font-variant-numeric: tabular-nums; color: var(--accent); }
.stat-total span { color: var(--muted); }
.stat-tabs { grid-template-columns: 1fr 1fr; margin-top: 14px; }
.stat-note { margin-top: 10px; }
.stat-list { margin-top: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); min-height: 44px; }
.stat-row:first-child { border-top: 0; }
.stat-row b { font-variant-numeric: tabular-nums; font-size: 17px; }
.stat-row.unknown { color: var(--muted); letter-spacing: .12em; }
.stat-row .stars { margin: 0; }
.stat-row .stars svg { width: 18px; height: 18px; }

/* Verzamelalbum */
.album-progress { margin-top: 12px; font-size: 14px; color: var(--muted); }
.ap-bar { height: 8px; border-radius: 99px; background: var(--line); margin-top: 6px; overflow: hidden; }
.ap-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.album { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.al-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 8px; text-align: center; }
.al-cat { border-radius: 10px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.al-cat svg { width: 92%; height: auto; }
.al-card.unknown .al-cat { background: var(--bg); }
.al-card.unknown .al-cat svg { filter: brightness(0); opacity: .13; }
.al-name { font-size: 13px; font-weight: 700; margin-top: 4px; line-height: 1.2; min-height: 2.4em; display: flex; align-items: center; justify-content: center; }
.al-card.unknown .al-name { color: var(--muted); letter-spacing: .12em; }
.al-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.al-card:not(.unknown) .al-count { color: var(--accent); font-weight: 700; }

/* Seizoen in de winkel, opbergen en verkopen */
.season-box { margin-top: 18px; background: color-mix(in srgb, #f2a65a 12%, var(--card)); border: 1px solid color-mix(in srgb, #f2a65a 35%, var(--line)); border-radius: 18px; padding: 12px; }
.season-label { margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.season-tag { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 700; color: #b0662a; background: var(--card); border-radius: 99px; padding: 3px 9px; }
.season-box .shop { margin-top: 0; }
.keep-sell { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 4px; }
.keep-sell .secondary { margin: 0; min-height: 44px; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 8px; }
.keep-sell .secondary .kibble { width: 18px; }
.keep-sell .sell.sure { background: var(--bad); color: #fff; border-color: transparent; }
.keep-sell > :only-child { grid-column: 1 / -1; }

/* Winkel */
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.shop-item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.shop-item.owned { background: color-mix(in srgb, var(--ok) 8%, var(--card)); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.si-art { height: 82px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.si-art svg { max-width: 100%; max-height: 82px; width: auto; height: auto; }
.si-name { font-weight: 650; font-size: 15px; }
.si-colors { display: flex; gap: 4px; }
.si-colors i { width: 12px; height: 12px; border-radius: 50%; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.si-buy { display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 999px; padding: 6px 14px; margin-top: 4px; font-weight: 700;
  background: var(--fr); color: #fff; box-shadow: 0 2px 0 color-mix(in srgb, var(--fr) 70%, #000); }
.si-buy .kibble { width: 22px; }
.si-buy:disabled { background: var(--line); color: var(--muted); box-shadow: none; }
.si-need { font-size: 12px; color: var(--muted); }
.si-own { color: var(--ok); font-weight: 650; font-size: 14px; margin-top: 4px; }
.shop-note { margin-top: 14px; background: var(--card); border: 1px dashed var(--line); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--muted); }

/* Pluizebeesten */
.litter-btn {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; margin-top: 12px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--radius); padding: 12px 16px; position: relative; z-index: 1;
}
.litter-btn .name { display: block; font-weight: 650; font-size: 19px; }
.litter-btn .meta { display: block; color: var(--muted); font-size: 14px; }
.litter-btn .grow { flex: 1; min-width: 0; }
.lb-cats { display: flex; flex: none; width: 92px; justify-content: center; }
.lb-cat { width: 40px; margin: 0 -6px; }
.lb-cat svg, .lb-paw svg { width: 100%; height: auto; display: block; }
.lb-paw { width: 34px; color: var(--accent); opacity: .6; }
.lb-paw.big { width: 48px; margin: 0 auto 8px; }
.litter { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-top: 16px; }
.lit { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px 6px 10px; text-align: center; min-width: 0; }
.lit-cat { position: relative; cursor: pointer; }
.lit-cat svg { width: 100%; height: auto; display: block; }
.lit-fire { position: absolute; top: 0; right: 2px; font-size: 18px; }
.lit-name { font-family: "Gochi Hand", "Chalkboard SE", "Comic Sans MS", cursive; font-size: 20px; line-height: 1.1; overflow-wrap: anywhere; }
.lit-name.long { font-size: 16px; }
.lit-meta { font-size: 11.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.cele-cat, .dc-cat { cursor: pointer; }
.cele-hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.cele-hint.warn { color: var(--close); font-weight: 600; }
.wiggle { animation: wiggle .5s ease-in-out; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-7deg) scale(1.04); } 50% { transform: rotate(6deg) scale(1.04); } 75% { transform: rotate(-3deg); } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* No focus ring after a tap, only for keyboard users */
button:focus:not(:focus-visible) { outline: none; }

/* ---------- Topografie ---------- */
body[data-lang="topo"] { --lang: var(--topo); }
:root { --topo: #4c9a7a; --map-sea: #e4eef2; --map-land: #fbf8f4; --map-line: #9a8d8f; --map-grey: #e3dcd9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --topo: #7fc4a6; --map-sea: #1d2a30; --map-land: #3a3234; --map-line: #8d7f82; --map-grey: #2c2627; } }
:root[data-theme="dark"] { --topo: #7fc4a6; --map-sea: #1d2a30; --map-land: #3a3234; --map-line: #8d7f82; --map-grey: #2c2627; }
.topo-explore { margin: 14px 0 4px; }
.topo-mapbox { height: min(48vh, 430px); margin: 4px -6px 0; }
.topo-mapbox.big { height: min(64vh, 560px); margin-top: 12px; }
.tmap { position: relative; width: 100%; height: 100%; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--map-sea); }
.tmap-svg { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.tm-sea { fill: var(--map-sea); }
.tm-grey path { pointer-events: visibleFill; fill: var(--map-grey); stroke: var(--map-line); stroke-width: .8; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.tm-land { pointer-events: visibleFill; fill: var(--map-land); stroke: var(--map-line); stroke-width: .9; vector-effect: non-scaling-stroke; stroke-linejoin: round; transition: fill .2s; }
.tm-land.is-target { fill: var(--lang); }
.tm-land.is-sel { fill: color-mix(in srgb, var(--lang) 55%, var(--map-land)); stroke: var(--ink); stroke-width: 1.6; }
.tm-land.is-right { fill: var(--ok); }
.tm-land.is-wrong { fill: var(--bad); }
.tm-top { pointer-events: none; }
.tm-ring { fill: none; stroke: var(--lang); stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-dasharray: 5 4; }
.tm-ring.right { stroke: var(--ok); }
.tm-ring.pulse { animation: tmPulse 1.4s ease-in-out infinite; }
@keyframes tmPulse { 50% { opacity: .35; } }
.tm-label text { font: 700 13px/1 ui-rounded, system-ui, sans-serif; text-anchor: middle; dominant-baseline: middle; fill: var(--ink); paint-order: stroke; stroke: var(--card); stroke-width: 3.5px; stroke-linejoin: round; }
.tm-label.num text { font-size: 11px; font-weight: 650; }
.tm-label.right text { fill: color-mix(in srgb, var(--ok) 60%, var(--ink)); font-size: 14px; }
.tm-label.wrong text { fill: color-mix(in srgb, var(--bad) 60%, var(--ink)); }
.tmap-zoom { position: absolute; right: 8px; bottom: 8px; display: grid; gap: 6px; }
.tmap-zoom button { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 20px; font-weight: 700; line-height: 1; box-shadow: var(--shadow); }
.topo-play .play-top { margin-bottom: 14px; }
.topo-play .prompt .word { font-size: 26px; }
.topo-opts { grid-template-columns: 1fr 1fr; margin-top: 14px; }
.topo-opts .opt { font-size: 15.5px; padding: 12px 10px; }
.topo-pick { margin-top: 10px; min-height: 2.8em; }
.topo-play .play-actions { padding-top: 6px; }
.topo-play .answer-row { margin-top: 14px; }
.topo-name { min-height: 1.6em; margin: 10px 2px 12px; font-size: 18px; }

/* ---------- Kattenkamer: birthdays, gifts, verstoppertje, shelves, piano, seasons ---------- */
.lit-cat { position: relative; }
.lit-bday { position: absolute; right: 2px; top: -6px; width: 18px; line-height: 0; pointer-events: none; transform-origin: 50% 100%; animation: tileballoon 3s ease-in-out infinite alternate; }
.lit-bday svg { width: 100%; height: auto; display: block; }
.cat-info .ci-top { display: flex; align-items: center; gap: 14px; }
.cat-info .ci-cat { width: 96px; flex: none; border-radius: 18px; padding: 4px; }
.cat-info .ci-cat svg { width: 100%; height: auto; display: block; }
.cat-info h3 { margin: 0; color: var(--ink); font-size: 22px; }
.cat-info .ci-bday { margin: 12px 0 0; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, #f7d36a 30%, var(--card)); font-weight: 700; }
.ci-list { margin: 12px 0 4px; display: grid; gap: 6px; }
.ci-row { display: flex; gap: 10px; justify-content: space-between; font-size: 15px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.ci-k { color: var(--muted); white-space: nowrap; }
.ci-v { text-align: right; font-weight: 600; }
.ci-v .muted { font-weight: 400; font-size: 13px; }
.hide-hint { margin: 10px 2px 0; font-size: 14.5px; font-weight: 650; color: var(--muted); text-align: center; }
.hide-hint.bday { color: var(--ink); }
.party { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.pt-garland { position: absolute; left: 0; top: 0; width: 100%; height: 11%; }
.pt-balloons { position: absolute; top: 9%; width: 13%; animation: floaty 3.2s ease-in-out infinite alternate; }
.pt-balloons.l { left: 2%; } .pt-balloons.r { right: 2%; animation-delay: -1.6s; }
.pt-balloons svg { width: 100%; height: auto; display: block; }
@keyframes floaty { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-6%) rotate(3deg); } }
.cake { cursor: pointer; }
.cake .flame { animation: flick .35s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes flick { from { transform: scale(1, 1); opacity: 1; } to { transform: scale(.85, 1.15); opacity: .8; } }
.party-hat { animation: none; }
.hidetail { position: absolute; transform: translate(-12%, -100%); width: 4.5%; min-width: 22px; padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; }
.hidetail svg { width: 100%; height: auto; display: block; transform-origin: 15% 100%; animation: tailtwitch 2.4s ease-in-out infinite; }
.hidetail.hang { transform: translate(-50%, 0); }
.hidetail.hang svg { transform: scaleY(-1); animation: none; }
.hidetail::after { content: ''; position: absolute; inset: -14px; }
@keyframes tailtwitch { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(14deg); } 80% { transform: rotate(-8deg); } 90% { transform: rotate(10deg); } }
.hidetail.found { width: 16%; transform: translate(-50%, -100%); }
.hide-pop { animation: hidepop .5s cubic-bezier(.3,1.6,.5,1); }
.hide-pop svg { width: 100%; height: auto; }
@keyframes hidepop { from { transform: scale(.2) translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
.ritem.gift { border: 0; background: none; padding: 0; cursor: pointer; animation: giftin .5s ease-out; }
.ritem.gift svg { animation: glimmer 2.2s ease-in-out infinite; }
.ritem.gift.taken svg { animation: giftup .8s ease-out forwards; }
@keyframes giftin { from { opacity: 0; } }
@keyframes glimmer { 0%, 100% { filter: none; } 50% { filter: drop-shadow(0 0 4px #fff6c4) brightness(1.08); } }
@keyframes giftup { to { transform: translateY(-60%) scale(1.3); opacity: 0; } }
.note-fx { position: absolute; transform: translate(-50%, -50%); font-size: 20px; font-weight: 800; color: #9a7cc4; pointer-events: none; z-index: 2600; animation: notefloat 1.25s ease-out forwards; }
@keyframes notefloat { from { opacity: 0; transform: translate(-50%, 0) rotate(-10deg); } 20% { opacity: 1; } to { opacity: 0; transform: translate(-30%, -46px) rotate(12deg); } }
.leaf-fly { position: absolute; width: 3.4%; min-width: 14px; transform: translate(-50%, -50%); pointer-events: none; z-index: 2500; animation: leaffly 1.4s cubic-bezier(.2,.6,.4,1) forwards; }
.leaf-fly svg, .leaves-fall svg { width: 100%; height: auto; display: block; }
@keyframes leaffly { to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 60px)) rotate(var(--r)); opacity: 0; } }
.leaves-fall { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2400; }
.leaves-fall i { position: absolute; top: -6%; width: 3%; min-width: 12px; animation: leaffall 10s linear infinite; }
@keyframes leaffall { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 8% { opacity: .9; } 50% { transform: translate(30px, 45vh) rotate(200deg); } 92% { opacity: .8; } 100% { transform: translate(-10px, 85vh) rotate(420deg); opacity: 0; } }
.snowfall { position: absolute; inset: 0; pointer-events: none; z-index: 2400;
  background-image: radial-gradient(2.5px 2.5px at 20px 30px, #fff 50%, transparent 51%), radial-gradient(2px 2px at 80px 70px, #fff 50%, transparent 51%), radial-gradient(3px 3px at 140px 20px, #fff 50%, transparent 51%), radial-gradient(2px 2px at 50px 110px, #fff 50%, transparent 51%), radial-gradient(2.5px 2.5px at 110px 140px, #fff 50%, transparent 51%);
  background-size: 160px 160px; animation: snow 9s linear infinite; opacity: .9; }
@keyframes snow { from { background-position: 0 0; } to { background-position: 30px 160px; } }
.ritem.deco.pokeable { cursor: pointer; }
.ritem.wobbling svg { animation: wobble .5s ease-in-out 3; transform-origin: 50% 100%; }
@keyframes wobble { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
.rcat.act-squeeze svg { transform: scale(1.12, .8); transform-origin: 50% 100%; }
.rcat.act-hidefull svg { animation: hidefull 3.2s ease-in-out forwards; }
@keyframes hidefull { 0% { transform: translateY(6%); } 15%, 68% { transform: translateY(58%); } 76% { transform: translateY(-8%); } 84%, 100% { transform: translateY(4%); } }
.rcat.on-keys svg { animation: bob .26s ease-in-out infinite alternate; }

/* gapen, niezen, staart achterna, dromen, kijken, vlieg */
.rcat.act-yawn .yawnface { opacity: 1; animation: yawn 2.4s ease-in-out forwards; transform-box: fill-box; transform-origin: 50% 0; }
.rcat.act-yawn .mouth { opacity: 0; }
.rcat.act-yawn .sleepeyes { opacity: 1; }
.rcat.act-yawn .eyes:has(+ .sleepeyes) { opacity: 0; }
.rcat.act-yawn svg { animation: yawnbody 2.4s ease-in-out; transform-origin: 50% 100%; }
@keyframes yawn { 0% { transform: scaleY(.2); } 30%, 70% { transform: scaleY(1.15); } 100% { transform: scaleY(.2); opacity: 0; } }
@keyframes yawnbody { 30%, 70% { transform: scale(.98, 1.05) rotate(-3deg); } }
.rcat.act-sneeze svg { animation: sneeze .8s ease-in forwards; transform-origin: 50% 100%; }
@keyframes sneeze { 0% { transform: none; } 70% { transform: rotate(-6deg) translateY(-2%) scaleY(1.04); } 100% { transform: rotate(-8deg) translateY(-3%); } }
.rcat.act-chase .rc-in { animation: chasetail .7s linear infinite; }
.rcat.act-chase .tail { animation-duration: .25s; }
@keyframes chasetail { 0% { transform: translateX(0) scaleX(1); } 24% { transform: translateX(12%) scaleX(1); } 26% { transform: translateX(12%) scaleX(-1); } 50% { transform: translateX(0) scaleX(-1) translateY(-4%); } 74% { transform: translateX(-12%) scaleX(-1); } 76% { transform: translateX(-12%) scaleX(1); } 100% { transform: translateX(0) scaleX(1); } }
.rcat.act-nap .ears, .rcat.act-sleep .ears { animation: eartwitch 6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes eartwitch { 0%, 86%, 100% { transform: none; } 89% { transform: rotate(-5deg) scaleY(.94); } 92% { transform: rotate(3deg); } }
.rcat.act-nap .tail, .rcat.act-sleep .tail { animation: dreamtail 7s ease-in-out infinite; }
@keyframes dreamtail { 0%, 80%, 100% { transform: rotate(18deg); } 84% { transform: rotate(10deg); } 88% { transform: rotate(22deg); } }
.rcat .eyes { transition: transform .25s ease-out; }
.tap-ring { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.9); box-shadow: 0 0 0 1px rgba(0,0,0,.08); pointer-events: none; z-index: 2600; animation: tapring .6s ease-out forwards; }
@keyframes tapring { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.sprite.fly-bug { cursor: pointer; pointer-events: auto; }
.sprite.fly-bug::after { content: ''; position: absolute; inset: -14px; }
.sprite.fly-bug svg { animation: buzz .08s linear infinite alternate; }
.sprite.fly-bug .wings { animation: flap .06s linear infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
.sprite.fly-bug.left svg { transform: scaleX(-1); }
@keyframes buzz { from { translate: 0 0; } to { translate: 1px -1px; } }
.tile-btn.room-tile.jarig { position: relative; overflow: visible; }
.tile-balloon { position: absolute; right: 6px; top: -18px; width: 34px; pointer-events: none; transform-origin: 50% 100%; animation: tileballoon 3s ease-in-out infinite alternate; z-index: 2; }
.tile-balloon svg { width: 100%; height: auto; display: block; }
@keyframes tileballoon { from { transform: translateY(0) rotate(-6deg); } to { transform: translateY(-5px) rotate(5deg); } }

/* ---------- Zolder ---------- */
.scene-tabs { grid-template-columns: repeat(3, 1fr); }
.scene-tabs button { font-size: 14px; padding-inline: 4px; white-space: nowrap; }
.scene-tabs small { margin-left: 2px; font-size: 11.5px; }
.rope { position: absolute; top: 0; height: 66%; width: 3.2%; transform: translateX(-50%); z-index: 4; pointer-events: none; line-height: 0; }
.rope svg { width: 100%; height: 100%; display: block; }
.rope::before { content: ''; position: absolute; left: 50%; top: -3%; width: 260%; height: 5%; transform: translateX(-50%); border-radius: 50%; background: rgba(60, 40, 30, .45); }
.room.t-nacht .rope { filter: brightness(.8); }
.hatch { position: absolute; width: 16%; transform: translate(-50%, -100%); z-index: 6; pointer-events: none; line-height: 0; }
.hatch svg { width: 100%; height: auto; overflow: visible; }
.rcat.on-rope svg { animation: shake .2s linear infinite alternate; }
.rcat.up-hatch svg { animation: uphatch .6s ease-out; transform-origin: 50% 100%; }
@keyframes uphatch { from { transform: translateY(45%) scale(.7); } to { transform: none; } }
.rcat.down-hatch svg { animation: downhatch .7s ease-in forwards; transform-origin: 50% 100%; }
@keyframes downhatch { to { transform: translateY(50%) scale(.6); } }
.rcat.hop svg { animation: hoparc .48s ease-out; transform-origin: 50% 100%; }
@keyframes hoparc { 0% { transform: none; } 45% { transform: translateY(-34%) scale(.96, 1.05); } 100% { transform: none; } }
.ritem .ri.hammock { overflow: visible; }
.shop-tip { margin: 10px 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.room.attic.t-nacht .ri.lights .bulb { filter: drop-shadow(0 0 6px #fff6c4); }
.room.attic.t-nacht .ritem[data-item^="lampion"] { z-index: 2600 !important; }
.ritem.reflecting .reflect { opacity: .55; transition: opacity .6s; }
.sprite.plush { pointer-events: none; }
.sprite.plush svg { width: 100%; height: auto; display: block; }
.rcat.sliding svg { transform: rotate(18deg); transform-origin: 50% 100%; }
.sprite.fly-bug.moth .wings { animation-duration: .18s; }
/* speelvisje en visjesmobiel */
.rcat.act-kick svg { animation: kick .28s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.rcat.act-kick .paw { animation: swat .18s ease-in-out infinite alternate; }
@keyframes kick { from { transform: rotate(-14deg) scale(1.05, .9); } to { transform: rotate(6deg) scale(1.02, .94); } }
.ritem.flopping .toyfish { animation: flop .22s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 80%; }
@keyframes flop { from { transform: rotate(-12deg) translateY(0); } to { transform: rotate(10deg) translateY(-14%); } }
.ri.mobile .mfish { animation: mobsway 4s ease-in-out infinite alternate; transform-box: view-box; transform-origin: 50% 0; }
@keyframes mobsway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
/* kortingsbon */
.bon-ico { width: 44px; height: 28px; flex: none; }
.bon-banner, .bon-btn { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin: 10px 0 4px; padding: 10px 12px; border-radius: 14px;
  background: color-mix(in srgb, #f7d36a 22%, var(--card)); border: 1.5px dashed #d29b16; color: var(--ink); font-size: 14px; line-height: 1.35; }
.bon-banner span, .bon-btn span { display: flex; flex-direction: column; }
.bon-banner b, .bon-btn b { font-size: 15px; }
.bon-btn small { color: var(--muted); font-size: 12.5px; }
.bon-banner.used { background: var(--card); border-color: var(--line); color: var(--muted); }
.bon-banner.used .bon-ico { filter: grayscale(1); opacity: .6; }
.bon-btn { font: inherit; cursor: pointer; margin: 12px 0 8px; }
.bon-btn.on { background: color-mix(in srgb, #f7d36a 45%, var(--card)); border-style: solid; }
.bon-btn.on .bon-ico { animation: bonstick .35s ease-out; }
@keyframes bonstick { 0% { transform: scale(1.4) rotate(-12deg); } 100% { transform: none; } }
/* superdoos */
.mbox.super { filter: drop-shadow(0 0 14px #f7c948) drop-shadow(0 0 4px #fff6c4); animation: superpulse 1.2s ease-in-out infinite alternate; }
@keyframes superpulse { from { filter: drop-shadow(0 0 8px #f7c948); } to { filter: drop-shadow(0 0 22px #f7c948) drop-shadow(0 0 6px #fff); } }
.super-glints path { animation-duration: 1.1s; }
.super-glints path:nth-child(4) { animation-delay: .3s; } .super-glints path:nth-child(5) { animation-delay: .7s; } .super-glints path:nth-child(6) { animation-delay: .2s; } .super-glints path:nth-child(7) { animation-delay: .85s; }
.celebrate.super-box .cele-card { background: radial-gradient(circle at 50% 35%, #fff8d8, var(--card) 70%); }
.celebrate.super-box .cele-title { color: #b9852a; font-size: 26px; }
.super-sub { font-weight: 700; color: #b9852a; }
/* vijver */
.ritem .ice { display: none; }
.ritem.frozen .ice { display: inline; }
.ritem.frozen .fish { animation-play-state: paused; opacity: .5; }
.ripple { position: absolute; width: 3%; aspect-ratio: 2.4; transform: translate(-50%, -50%); border: 1.5px solid rgba(255,255,255,.85); border-radius: 50%; pointer-events: none; animation: ripple 1.4s ease-out forwards; }
.ripple.big { width: 5%; border-width: 2px; }
@keyframes ripple { from { transform: translate(-50%, -50%) scale(.3); opacity: 1; } to { transform: translate(-50%, -50%) scale(3); opacity: 0; } }
.pond-drops { position: absolute; width: 0; height: 0; z-index: 2500; pointer-events: none; }
.pond-drops i { position: absolute; width: 6px; height: 8px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #9fd3f0; animation: drop .9s ease-out forwards; }
.rcat.in-water svg { animation: sinkin .6s ease-in forwards; }
@keyframes sinkin { to { transform: translateY(42%) scale(1, .9); clip-path: inset(0 0 40% 0); } }
.rcat.wet svg { filter: saturate(.7) brightness(.92) hue-rotate(-8deg); }
.rcat.act-shake svg { animation: shakeoff .12s linear infinite alternate; transform-origin: 50% 100%; }
@keyframes shakeoff { from { transform: rotate(-7deg) scaleX(1.04); } to { transform: rotate(7deg) scaleX(1.04); } }
.sprite.padfrog { pointer-events: auto; cursor: pointer; }
.sprite.padfrog.jumpin { transition: top .45s ease-in, opacity .45s; animation: frogjump .45s ease-in forwards; }
@keyframes frogjump { 0% { transform: translate(-50%, -100%); } 40% { transform: translate(-10%, -160%); } 100% { transform: translate(30%, -60%) scale(.6); opacity: 0; } }
.sprite.duck { pointer-events: auto; cursor: pointer; }
.sprite.duck.swim svg { animation: duckbob 1.4s ease-in-out infinite alternate; }
.sprite.duck.left svg { transform: scaleX(-1); }
.sprite.duck.left.swim svg { animation-name: duckbobl; }
@keyframes duckbob { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-6%) rotate(2deg); } }
@keyframes duckbobl { from { transform: scaleX(-1) translateY(0) rotate(-2deg); } to { transform: scaleX(-1) translateY(-6%) rotate(2deg); } }
.sprite.duck.flying svg { animation: none; transform: rotate(-14deg); }
.sprite.duck.left.flying svg { transform: scaleX(-1) rotate(-14deg); }
.sprite.dragonfly .wings { animation: flap .05s linear infinite alternate; transform-box: fill-box; transform-origin: 50% 50%; }
/* Sinterklaas en het visjesschilderij */
.ri.shoe .treat { display: none; }
.ritem.filled .ri.shoe .treat { display: inline; }
.ritem.filled .ri.shoe .carrot { display: none; }
.ritem.filled svg { animation: glimmer 2.2s ease-in-out infinite; }
.sprite.pepernoot svg { width: 100%; height: auto; display: block; animation: roll .5s linear 2; }
@keyframes roll { to { transform: rotate(360deg); } }
.ri.steamboat .smoke { opacity: 0; }
.ritem.tooting .ri.steamboat .smoke circle { animation: puff 1.2s ease-out 2; transform-box: fill-box; transform-origin: center; }
.ritem.tooting .ri.steamboat .smoke { opacity: 1; }
@keyframes puff { from { transform: translate(0, 6px) scale(.3); opacity: 1; } to { transform: translate(6px, -10px) scale(1.4); opacity: 0; } }
.ritem.tooting svg { animation: wobble .4s ease-in-out 3; transform-origin: 50% 100%; }
.ri.rocking .rocker { transform-box: view-box; transform-origin: 50% 92%; }
.ritem.rocking-go .ri.rocking .rocker { animation: rock 1s ease-in-out infinite alternate; }
@keyframes rock { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
.rcat.riding svg { animation: rockcat 1s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes rockcat { from { transform: rotate(-6deg) translateX(-3%); } to { transform: rotate(6deg) translateX(3%); } }
.ri.partylights .bulb { animation: glow 1.4s ease-in-out infinite alternate; }
.ri.partylights .bulb.fb1 { animation-delay: -.45s; } .ri.partylights .bulb.fb2 { animation-delay: -.9s; }
.ritem.blinking .ri.partylights .bulb { animation-duration: .18s; }
.ritem[data-item="vis"] { transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.ritem.crooked[data-item="vis"] svg { transform: rotate(var(--tilt, 8deg)); transform-origin: 50% 0; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.ritem[data-item="vis"] svg { transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.ritem.fishwiggle .pfish { animation: flop .2s ease-in-out 6 alternate; transform-box: fill-box; transform-origin: 50% 50%; }
.ritem.fishwiggle .pbubbles { animation: bubbleup 1.4s ease-out; }
@keyframes bubbleup { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-12px); opacity: 0; } }
/* Sinterklaas: tuin en zolder, en het paard */
.ri.flags .flag { transform-box: fill-box; transform-origin: 50% 0; animation: flagwave 2.4s ease-in-out infinite alternate; }
.ri.flags .flag.f1 { animation-delay: -1.2s; }
@keyframes flagwave { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
.ri.paperroll .unroll { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(.06); transition: transform .9s cubic-bezier(.3,1.2,.5,1); }
.ritem.unrolled .ri.paperroll .unroll { transform: none; }
.horse-peek { position: absolute; padding: 0; border: 0; background: none; cursor: pointer; overflow: hidden; z-index: 3; }
.horse-peek span { display: block; width: 100%; line-height: 0; transition: transform 1.1s cubic-bezier(.3,1.1,.5,1); }
.horse-peek svg { width: 100%; height: auto; display: block; }
.horse-peek.in-window { left: 50%; top: 24.2%; width: 12%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); }
.horse-peek.in-window span { transform: translateX(105%); }
.horse-peek.in-window.in span { transform: translate(18%, 12%); }
.horse-peek.over-fence { top: 25%; width: 13%; height: 12%; transform: translateX(-50%); }
.horse-peek.over-fence span { transform: translateY(100%); }
.horse-peek.over-fence.in span { transform: translateY(8%); }
.horse-peek.in span svg { animation: horsenod 1.6s ease-in-out infinite alternate; transform-origin: 80% 100%; }
@keyframes horsenod { from { transform: rotate(-3deg); } to { transform: rotate(4deg); } }
.season-more { margin: -2px 2px 10px; }

/* ---------- Engelse grammatica ---------- */
.gram-row { display: flex; gap: 8px; align-items: stretch; }
.gram-row .block { flex: 1; min-width: 0; }
.gram-book { flex: 0 0 48px; border-radius: 14px; border: 1px solid var(--line, #e4e0d8); background: var(--card, #fff); font-size: 22px; cursor: pointer; }
.gram-q { font-size: 20px; line-height: 2.1; margin: 18px 2px 8px; color: var(--ink, #333); }
.gram-in { font: inherit; font-size: 19px; padding: 2px 6px; margin: 0 3px; border: 0; border-bottom: 2px solid var(--accent, #8aa); border-radius: 6px 6px 0 0; background: rgba(0,0,0,.04); color: inherit; max-width: 100%; text-align: center; }
.gram-in:focus { outline: none; background: rgba(0,0,0,.07); }
.gram-in.right { border-bottom-color: #6aa874; background: #e9f4ea; }
.gram-in.wrong { border-bottom-color: #c98a7a; background: #f8ebe7; }
.gram-blank { display: inline-block; min-width: 3.2em; border-bottom: 2px solid var(--accent, #8aa); margin: 0 3px; color: transparent; line-height: 1.2; }
.gram-help { margin-bottom: 14px; }
.gram-opts { grid-template-columns: 1fr 1fr; }
.gram-opts.many { grid-template-columns: 1fr 1fr 1fr; }
.gram-opts .opt { font-size: 17px; }
.gram-uitleg { max-height: 82vh; overflow-y: auto; padding-bottom: 10px; }
.gram-uitleg .gu-p { margin: 0 0 12px; line-height: 1.5; font-size: 16px; }
.gram-uitleg table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 4px 0; }
.gram-uitleg td, .gram-uitleg th { border-bottom: 1px solid #e8e4dc; padding: 5px 6px; text-align: left; vertical-align: top; }
.gram-uitleg .ex { display: block; color: #6b6f6c; font-style: italic; }
.sheet .sol b { color: #3f7a4b; }

/* the neighbours' dog over the fence */
.dog-peek { position: absolute; top: 20.5%; width: 19%; height: 16%; transform: translateX(-50%); padding: 0; border: 0; background: none; cursor: pointer; overflow: hidden; z-index: 3; }
.dog-peek span { display: block; line-height: 0; transform: translateY(100%); transition: transform 1s cubic-bezier(.3,1.2,.5,1); }
.dog-peek.in span { transform: translateY(6%); }
.dog-peek svg { width: 100%; height: auto; display: block; }
.dog-peek .dog-tongue { transform-origin: 45px 56px; animation: dogpant .5s ease-in-out infinite alternate; }
.dog-peek .dog-ear { transform-box: fill-box; transform-origin: 50% 0; }
.dog-peek.bark svg { animation: dogbark .32s ease-in-out 4; transform-origin: 50% 100%; }
.dog-peek.bark .dog-ear { animation: dogear .32s ease-in-out 4; }
.dog-peek.wag svg { animation: dogwag .25s ease-in-out 4; transform-origin: 50% 100%; }
@keyframes dogpant { from { transform: scaleY(.85); } to { transform: scaleY(1.1); } }
@keyframes dogbark { 50% { transform: translateY(-7%) scale(1.04); } }
@keyframes dogear { 50% { transform: rotate(-12deg); } }
@keyframes dogwag { 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }
@media (prefers-reduced-motion: reduce) { .dog-peek span { transition: none; } .dog-peek svg, .dog-peek .dog-tongue, .dog-peek .dog-ear { animation: none !important; } }

.peek-label { position: absolute; translate: -50% -100%; z-index: 4; font-size: 14px; font-weight: 800; color: #5a3b42; background: rgba(255,255,255,.94);
  border-radius: 999px; padding: 4px 9px; line-height: 1; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.15); animation: floatup 1.6s ease-out forwards; pointer-events: none; }

/* topo: only countries (groep 7) or countries + capitals (groep 8) */
.topo-what { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.topo-what button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 8px; border-radius: 16px; border: 2px solid var(--line); background: var(--card, #fff); color: var(--ink); font: inherit; cursor: pointer; }
.topo-what button b { font-size: 16px; }
.topo-what button span { font-size: 13px; color: var(--muted); }
.topo-what button.on { border-color: var(--lang); background: color-mix(in srgb, var(--lang) 12%, var(--card, #fff)); }
.topo-what button.on span { color: var(--ink); }
.topo-cap { font-weight: 700; color: var(--lang); }

/* verzamelalbum: grouped per zeldzaamheid */
.al-group { margin-top: 14px; }
.al-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 2px 6px; font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.al-head small { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 700; }
.al-card { position: relative; }
.al-new { position: absolute; top: 4px; left: 4px; z-index: 2; background: #7cc7a3; color: #fff; font-size: 10px; font-weight: 800; border-radius: 6px; padding: 1px 5px; }
.al-group .album { margin-top: 0; }

/* ---------- sticker album ---------- */
.room-head .stat-btn + .stat-btn { margin-left: 8px; }
.room-head .stat-btn[data-stickers] { margin-left: auto; }
.stk-cover { position: relative; overflow: hidden; margin-top: 10px; border-radius: 18px 8px 8px 18px; background: #f6c7cf; padding: 22px 16px 18px; text-align: center; box-shadow: 0 8px 18px rgba(120, 60, 70, .18); }
.stk-paws { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; pointer-events: none; }
.stk-cover h1 { position: relative; margin: 0; font-size: 34px; line-height: 1.05; color: #fff; text-shadow: 0 3px 0 #e48ea0, 0 6px 12px rgba(160, 60, 80, .25); }
.stk-naam, .stk-naam-in { position: relative; display: inline-block; margin: 8px 0 12px; border: 0; background: rgba(255, 255, 255, .55); border-radius: 99px; padding: 5px 14px; font: inherit; font-weight: 800; color: #8a4a58; font-size: 16px; }
.stk-naam-in { width: 180px; text-align: center; background: #fff; outline: 2px solid #e48ea0; }
.stk-peek { position: relative; display: block; width: 46%; max-width: 180px; margin: 0 auto 14px; padding: 5px; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .18); transform: rotate(-4deg); cursor: pointer; }
.stk-peek svg { display: block; width: 100%; height: auto; border-radius: 6px; }
.stk-peek.empty { aspect-ratio: 5 / 6; display: flex; align-items: center; justify-content: center; color: #c48a96; font-weight: 800; font-size: 13px; border: 2px dashed #e9a9b6; background: rgba(255, 255, 255, .5); box-shadow: none; padding: 10px; }
.stk-badge { position: relative; display: inline-block; background: #fff; border-radius: 99px; padding: 6px 16px; font-weight: 800; color: #8a4a58; }
.stk-intro { text-align: center; margin: 12px 8px 4px; }
.stk-page { margin-top: 14px; background: #fffaf2; border-radius: 8px 16px 16px 8px; padding: 14px 12px 10px; border: 1px solid var(--line); background-image: radial-gradient(#f1e4d0 1.2px, transparent 1.3px); background-size: 16px 16px; color: #4a3a34; }
.stk-page h2 { margin: 0 0 10px; font-size: 21px; color: #6b4e44; }
.stk-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.stk-slot { aspect-ratio: 5 / 6.4; border-radius: 10px; border: 2px dashed #e2cfb4; background: rgba(255, 248, 236, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #c8b39a; position: relative; padding: 4px; text-align: center; }
.stk-slot .n { font-size: 26px; font-weight: 800; line-height: 1; }
.stk-slot .t { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.stk-slot .soon { position: absolute; bottom: 5px; left: 4px; right: 4px; font-size: 9.5px; font-weight: 700; color: #cdb9a2; }
.stk-slot.full { border: 0; background: none; padding: 0; cursor: pointer; transform: rotate(var(--tilt, -2deg)); }
.stk-mini { display: block; width: 100%; height: 100%; border-radius: 10px; padding: 3px; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); overflow: hidden; position: relative; }
.stk-mini svg, .stk-mini img { display: block; width: 100%; height: 100%; border-radius: 7px; }
.stk-mini::after { content: ""; position: absolute; right: 0; bottom: 0; width: 20px; height: 20px; background: linear-gradient(135deg, transparent 50%, #efe3d0 50%); border-radius: 0 0 10px 0; }
.stk-mini-name { position: absolute; bottom: 6px; left: 6px; right: 6px; background: rgba(255, 255, 255, .9); border-radius: 6px; font-size: 10px; font-weight: 800; color: #4a3a34; padding: 1px 2px; }
.stk-tally { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: #9a8270; }
.stk-tally b { color: #6b4e44; }
.stk-pnr { color: #d3bfa5; font-weight: 800; }

/* the sticker itself, with a holo edge that moves when you tilt it */
.stk-scene { perspective: 900px; width: 230px; margin: 10px auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.stk-scene.big { width: min(78vw, 320px); }
.stk-card { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --o: 0; position: relative; border-radius: 16px; padding: 8px; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s cubic-bezier(.2, .8, .3, 1); box-shadow: 0 14px 28px rgba(60, 40, 20, .3); }
.stk-card.live { transition: none; }
.stk-in { border-radius: 11px; overflow: hidden; background: #fffaf0; position: relative; color: #4a3a34; text-align: left; }
.stk-in { container-type: inline-size; }
/* the name always fits on one line: long names get a smaller letter */
.stk-top { display: flex; align-items: center; gap: 6px; padding: 6px 9px 5px; font-weight: 800; }
.stk-top b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; font-size: min(7.4cqw, calc(100cqw / var(--len, 10))); line-height: 1.25; }
.stk-top span { flex: 0 0 auto; font-size: max(10px, 4.2cqw); font-weight: 800; color: #9a8270; background: #f6ecd9; border-radius: 99px; padding: 1px 7px; white-space: nowrap; }
.stk-art { display: block; width: 100%; height: auto; aspect-ratio: 300 / 330; -webkit-user-drag: none; pointer-events: none; }
.mega .stk-art { aspect-ratio: 600 / 660; }
/* inside a tilting card the rainbow background stands still (moving it every frame made tilting stutter); the holo layer moves instead */
.stk-card.stk-super { animation: none; }
.stk-bot { padding: 6px 10px 8px; font-size: 12px; line-height: 1.35; color: #6a564b; border-top: 1px dashed #ecdcc2; }
.stk-stars { color: #e8b53c; }
.stk-goud, .stk-mini.stk-goud { background: linear-gradient(145deg, #fff7e3, #f3d99b 30%, #fff3cf 50%, #e9c677 75%, #fff4d6); }
.stk-cosmos, .stk-mini.stk-cosmos { background: radial-gradient(circle at 20% 15%, #7a5cc7, transparent 45%), radial-gradient(circle at 85% 80%, #2f7fb8, transparent 50%), radial-gradient(circle at 70% 25%, #c75c9f, transparent 40%), #1d1838; }
.stk-card.stk-cosmos { padding: 12px; }
.stk-regenboog, .stk-mini.stk-regenboog { background: linear-gradient(145deg, #ffd1d1, #fff3b0 25%, #d6f5c9 50%, #cde8fb 75%, #e3d4fb); }
.stk-holo, .stk-glare, .stk-sparks { position: absolute; inset: 0; border-radius: 16px; pointer-events: none; }
.stk-glare { background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .65), rgba(255, 255, 255, 0) 45%); mix-blend-mode: overlay; opacity: var(--o); transition: opacity .4s; }
.stk-goud .stk-holo { background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .7) 45%, transparent 58%); background-size: 250% 250%; background-position: var(--mx) var(--my); mix-blend-mode: soft-light; }
.stk-cosmos .stk-holo { border: 12px solid transparent; background-origin: border-box; background: linear-gradient(calc(var(--ry) * 4 + 120deg), rgba(255, 120, 220, 0) 20%, rgba(255, 120, 220, .85) 35%, rgba(120, 200, 255, .85) 50%, rgba(170, 255, 200, .7) 62%, rgba(255, 230, 140, 0) 78%); background-size: 250% 250%; background-position: var(--mx) var(--my); mix-blend-mode: screen;
  -webkit-mask: linear-gradient(#000, #000) padding-box, linear-gradient(#000, #000) border-box; -webkit-mask-composite: xor; mask: linear-gradient(#000, #000) padding-box exclude, linear-gradient(#000, #000) border-box; }
/* the cosmos ring has a rounded inner edge (16 - 12 = 4px), so the picture gets the same corner and no dark corner peeks through */
.stk-card.stk-cosmos .stk-in { border-radius: 4px; }
.stk-sparks { overflow: hidden; }
.stk-sparks i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 2px rgba(255, 255, 255, .8); opacity: 0; animation: stktw 2.6s ease-in-out infinite; }
@keyframes stktw { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }
.stk-regenboog .stk-holo { background: repeating-linear-gradient(115deg, rgba(255, 90, 90, 0) 0%, rgba(255, 90, 90, .55) 3%, rgba(255, 200, 80, .55) 6%, rgba(120, 230, 120, .55) 9%, rgba(80, 190, 255, .55) 12%, rgba(170, 120, 255, .55) 15%, rgba(255, 90, 200, 0) 18%, rgba(255, 255, 255, 0) 30%);
  background-size: 300% 300%; background-position: var(--mx) var(--my); mix-blend-mode: hard-light; opacity: calc(.2 + var(--o) * .5); filter: saturate(1.6); }
.stk-view { position: fixed; inset: 0; z-index: 60; background: rgba(40, 30, 28, .72); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; animation: fadein .2s ease; }
.stk-view.out { opacity: 0; transition: opacity .2s; }
.stk-view-hint { color: #fff; opacity: .8; font-size: 13px; margin: 6px 0 12px; }
.stk-view .stk-close { min-width: 160px; }
.stk-cele .stk-scene { margin: 6px auto 10px; }
.stk-cele [data-album] { margin-bottom: 8px; }
@media (prefers-reduced-motion: reduce) { .stk-card { transition: none; } .stk-sparks i { animation: none; opacity: .7; } }

/* ---------- Poezie-album: a book you leaf through ---------- */
.album-tile { flex-direction: row !important; align-items: center !important; gap: 12px !important; width: 100%; margin-top: 10px; background: color-mix(in srgb, #f6c7cf 35%, var(--card)); border-color: color-mix(in srgb, #e48ea0 45%, transparent); }
.album-tile .at-book { width: 60px; flex: 0 0 60px; }
.album-tile .at-book svg { width: 100%; height: auto; display: block; transform: rotate(-4deg); }
.album-tile .grow { display: flex; flex-direction: column; gap: 2px; }
.album-tile .chev { margin-left: auto; color: var(--muted); font-size: 22px; }
.bk-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 6px 0 10px; scrollbar-width: none; }
.bk-tabs button { flex: 0 0 auto; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 99px; padding: 5px 11px; font: inherit; font-size: 13px; font-weight: 700; }
.bk-tabs button.on { background: #f6c7cf; border-color: #e48ea0; color: #7a3a4a; }
.bk-book { position: relative; width: min(100%, 420px); margin: 0 auto; aspect-ratio: 300 / 420; perspective: 1600px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.bk-book::before { content: ""; position: absolute; left: -6px; top: 6px; bottom: -6px; width: 100%; border-radius: 6px 14px 14px 6px; background: #e9dccb; box-shadow: 0 10px 22px rgba(70, 45, 30, .22); }
.bk-stack { position: absolute; inset: 0; }
.bk-leaf { position: absolute; inset: 0; transform-origin: left center; transition: transform .5s cubic-bezier(.4, .1, .3, 1); backface-visibility: hidden; transform-style: preserve-3d; }
.bk-leaf.under { z-index: 1; }
.bk-leaf.cur { z-index: 2; }
.bk-leaf.turning { z-index: 3; }
.bk-leaf.turning .bk-page { box-shadow: -8px 0 24px rgba(0, 0, 0, .18); }
.bk-page { position: absolute; inset: 0; border-radius: 4px 14px 14px 4px; overflow: hidden; color: #4a3a34; box-shadow: inset 10px 0 14px -10px rgba(0, 0, 0, .25); }
.bk-paper { background: #fffaf2; background-image: radial-gradient(#f1e4d0 1.2px, transparent 1.3px); background-size: 16px 16px; }
.bk-deco, .bk-paws { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bk-cover { background: linear-gradient(160deg, #f8d0d7, #f2b6c2); text-align: center; }
.bk-paws { opacity: .32; }
.bk-title { position: relative; margin-top: 9%; font-size: clamp(30px, 10vw, 42px); font-weight: 800; color: #fff; text-shadow: 0 3px 0 #e48ea0, 0 7px 14px rgba(160, 60, 80, .25); letter-spacing: .01em; }
.bk-coverart { position: relative; width: 74%; margin: 4% auto 0; background: #fff8ef; border-radius: 50%; aspect-ratio: 1; overflow: hidden; border: 6px solid #fff; box-shadow: 0 6px 16px rgba(160, 60, 80, .2); }
.bk-coverart svg { width: 112%; margin: 0 -6%; display: block; }
.bk-label { position: relative; margin-top: 5%; font-size: 17px; color: #8a4a58; }
.bk-count { position: relative; display: inline-block; margin-top: 3%; background: #fff; border-radius: 99px; padding: 6px 16px; font-weight: 800; color: #8a4a58; }
.bk-back { display: flex; align-items: center; justify-content: center; }
.bk-intro { padding: 12% 9% 0; text-align: center; }
.bk-h { font-size: 15px; color: #9a8270; font-weight: 700; }
.bk-naam, .bk-naam-in { display: block; width: 100%; margin: 8px 0 18px; border: 0; border-bottom: 2px dashed #e2cfb4; background: none; font: inherit; font-size: 24px; font-weight: 800; color: #6b4e44; padding: 6px 0; text-align: center; }
.bk-naam-in { outline: none; border-bottom-color: #e48ea0; }
.bk-rules { text-align: left; font-size: 14.5px; line-height: 1.45; }
.bk-rules p { margin: 0 0 10px; }
.bk-stamp { position: absolute; right: 10%; bottom: 7%; width: 56px; transform: rotate(-14deg); opacity: .8; }
.bk-banner { position: absolute; left: 6%; right: 6%; top: 3.2%; text-align: center; }
.bk-banner b { display: inline-block; font-size: clamp(18px, 5.6vw, 23px); background: #fff; border-radius: 10px; padding: 3px 14px; box-shadow: 0 2px 0 rgba(0, 0, 0, .06); color: #6b4e44; }
.bk-banner span { display: block; font-size: 11.5px; color: #8f7a6c; margin-top: 3px; font-weight: 700; }
.bk-zilver { background-color: #eef1f6; background-image: radial-gradient(#dde3ec 1.2px, transparent 1.3px); }
.bk-goud { background-color: #fff3d6; background-image: radial-gradient(#f3dfab 1.2px, transparent 1.3px); }
.bk-regenboog { background-color: #f3eefc; background-image: radial-gradient(#e2d9f4 1.2px, transparent 1.3px); }
.bk-foto { background-color: #f7efe2; }
.bk-slot { position: absolute; aspect-ratio: 5 / 6.4; border-radius: 9px; border: 2px dashed #dcc7aa; background: rgba(255, 252, 246, .9); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; color: #c2ab90; padding: 0 3px 5px; text-align: center; transform: rotate(var(--rot, 0deg)); overflow: hidden; }
.bk-foto .bk-slot { border-style: solid; border-width: 0; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); padding-bottom: 14%; }
.bk-foto .bk-slot::before, .bk-foto .bk-slot::after { content: ""; position: absolute; width: 18px; height: 18px; background: #c9a77e; opacity: .7; }
.bk-foto .bk-slot::before { left: -2px; top: -2px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.bk-foto .bk-slot::after { right: -2px; bottom: -2px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.bk-sil { position: absolute; inset: 6% 6% 26%; display: flex; align-items: center; justify-content: center; }
.bk-sil svg { width: 100%; height: 100%; filter: brightness(0); opacity: .09; }
.bk-sil.cam { font-size: 24px; opacity: .25; inset: 10% 0 auto 0; height: 30%; }
.bk-slot .n { position: relative; font-size: clamp(16px, 5vw, 22px); font-weight: 800; line-height: 1; }
.bk-slot .t { position: relative; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; margin-top: 2px; line-height: 1.1; }
.bk-slot .soon { position: relative; font-size: 8px; font-weight: 700; color: #d2c0aa; margin-top: 2px; }
.bk-slot.full { border: 0; background: none; padding: 0; cursor: pointer; overflow: visible; }
/* the whole drawing, never cropped: the sticker keeps its own shape and sits in the middle of the slot */
.bk-slot.full .stk-mini { position: absolute; left: 0; right: 0; top: 50%; width: 100%; height: auto; transform: translateY(-50%); }
.bk-slot.full .stk-mini svg, .bk-slot.full .stk-mini img { height: auto; aspect-ratio: 300 / 330; }
.bk-cap { position: absolute; left: 6%; right: 6%; bottom: 5%; background: rgba(255, 255, 255, .92); border-radius: 5px; font-size: 9px; font-weight: 800; color: #4a3a34; padding: 1px 2px; }
.bk-foot { position: absolute; left: 6%; right: 6%; bottom: 2.4%; display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: #a8917c; }
.bk-pnr { color: #cdb79e; }
.bk-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 14px 0 6px; }
.bk-arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 28px; line-height: 1; color: var(--ink); }
.bk-arrow:disabled { opacity: .3; }
.bk-where { min-width: 110px; text-align: center; font-weight: 700; color: var(--muted); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .bk-leaf { transition: none; } }
/* silhouettes stand still (the fire of the Vuurkat flickered through the filter) */
.bk-sil * { animation: none !important; transition: none !important; }
.bk-slot .n { margin-bottom: 6%; font-size: clamp(18px, 6vw, 26px); }
.bk-cap { left: auto; right: 6%; width: auto; min-width: 22px; text-align: center; padding: 1px 6px; }
.bk-slot.full .bk-cap { bottom: calc(7% + 4px); }

/* superplaat: four stickers that touch and make one big picture */
.stk-super, .stk-mini.stk-super { background: linear-gradient(135deg, #ffd1e3, #fff3b0 25%, #cdeffd 50%, #e3d4fb 75%, #ffd1e3); background-size: 200% 200%; animation: rainbowbg 6s linear infinite; }
.stk-card.stk-super { padding: 10px; }
.stk-super .stk-holo { background: repeating-linear-gradient(115deg, rgba(255, 90, 90, 0) 0%, rgba(255, 90, 90, .5) 3%, rgba(255, 200, 80, .5) 6%, rgba(120, 230, 120, .5) 9%, rgba(80, 190, 255, .5) 12%, rgba(170, 120, 255, .5) 15%, rgba(255, 90, 200, 0) 18%, rgba(255, 255, 255, 0) 30%);
  background-size: 300% 300%; background-position: var(--mx) var(--my); mix-blend-mode: hard-light; opacity: calc(.12 + var(--o) * .5); }
.stk-scene.big.mega { width: min(90vw, 420px); }
.bk-mega { background-color: #fff6e6; background-image: radial-gradient(#f3e0bd 1.2px, transparent 1.3px); }
.bk-megagrid { position: absolute; left: 10%; top: 17%; width: 80%; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 10px; padding: 6px; background: linear-gradient(135deg, #f8d0d7, #fff3b0, #cdeffd, #e3d4fb); box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.bk-mega.done .bk-megagrid { cursor: pointer; animation: megaglow 2.4s ease-in-out infinite alternate; }
@keyframes megaglow { from { box-shadow: 0 4px 12px rgba(0, 0, 0, .12); } to { box-shadow: 0 0 22px 4px rgba(247, 211, 106, .8); } }
.bk-mq { aspect-ratio: 300 / 330; background: rgba(255, 252, 246, .95); border: 2px dashed #dcc7aa; display: flex; align-items: center; justify-content: center; color: #c2ab90; margin: 1px; }
.bk-mq .n { font-size: clamp(20px, 7vw, 30px); font-weight: 800; }
.bk-mq.full { border: 0; padding: 0; margin: 0; background: none; cursor: pointer; }
.bk-mq.full svg { display: block; width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) { .stk-super, .bk-mega.done .bk-megagrid { animation: none; } }

/* holo IN the picture (some stickers): sterren, swirl, glans or regenboog. It moves along when you tilt the card */
.stk-artw { position: relative; }
.stk-ah { position: absolute; inset: 0; pointer-events: none; background-size: 300% 300%; background-position: var(--mx) var(--my); opacity: calc(.42 + var(--o) * .5); transition: opacity .4s; }
.stk-card:not(.live) .stk-ah { animation: ahdrift 7s ease-in-out infinite alternate; }
@keyframes ahdrift { from { background-position: 0% 20%; } to { background-position: 100% 80%; } }
.ah-sterren { background-image: linear-gradient(calc(var(--ry, 0deg) * 5 + 125deg), #ff7ac8, #ffd36a, #8cf5b0, #6ad7ff, #b78cff, #ff7ac8, #ffd36a, #8cf5b0); mix-blend-mode: color-dodge; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70'%3E%3Cpath d='M10 5Q10 12 17 12Q10 12 10 19Q10 12 3 12Q10 12 10 5ZM42 4Q42 8 46 8Q42 8 42 12Q42 8 38 8Q42 8 42 4ZM30 25Q30 34 39 34Q30 34 30 43Q30 34 21 34Q30 34 30 25ZM56 35Q56 40 61 40Q56 40 56 45Q56 40 51 40Q56 40 56 35ZM12 46Q12 50 16 50Q12 50 12 54Q12 50 8 50Q12 50 12 46ZM48 52Q48 58 54 58Q48 58 48 64Q48 58 42 58Q48 58 48 52ZM24 59Q24 62 27 62Q24 62 24 65Q24 62 21 62Q24 62 24 59ZM62 15Q62 18 65 18Q62 18 62 21Q62 18 59 18Q62 18 62 15Z' fill='%23fff'/%3E%3Cg fill='%23fff'%3E%3Ccircle cx='38' cy='22' r='1.4'/%3E%3Ccircle cx='4' cy='30' r='1.2'/%3E%3Ccircle cx='60' cy='60' r='1.3'/%3E%3Ccircle cx='20' cy='42' r='1'/%3E%3C/g%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70'%3E%3Cpath d='M10 5Q10 12 17 12Q10 12 10 19Q10 12 3 12Q10 12 10 5ZM42 4Q42 8 46 8Q42 8 42 12Q42 8 38 8Q42 8 42 4ZM30 25Q30 34 39 34Q30 34 30 43Q30 34 21 34Q30 34 30 25ZM56 35Q56 40 61 40Q56 40 56 45Q56 40 51 40Q56 40 56 35ZM12 46Q12 50 16 50Q12 50 12 54Q12 50 8 50Q12 50 12 46ZM48 52Q48 58 54 58Q48 58 48 64Q48 58 42 58Q48 58 48 52ZM24 59Q24 62 27 62Q24 62 24 65Q24 62 21 62Q24 62 24 59ZM62 15Q62 18 65 18Q62 18 62 21Q62 18 59 18Q62 18 62 15Z' fill='%23fff'/%3E%3Cg fill='%23fff'%3E%3Ccircle cx='38' cy='22' r='1.4'/%3E%3Ccircle cx='4' cy='30' r='1.2'/%3E%3Ccircle cx='60' cy='60' r='1.3'/%3E%3Ccircle cx='20' cy='42' r='1'/%3E%3C/g%3E%3C/svg%3E"); -webkit-mask-size: 70px 70px; mask-size: 70px 70px; opacity: calc(.6 + var(--o) * .4); }
.ah-swirl { background-image: linear-gradient(calc(var(--ry, 0deg) * 5 + 125deg), #ff7ac8, #ffd36a, #8cf5b0, #6ad7ff, #b78cff, #ff7ac8, #ffd36a, #8cf5b0); mix-blend-mode: color-dodge; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M40 40 m0 -3 a3 3 0 1 1 -3 3 a7 7 0 1 1 7 7 a11 11 0 1 1 -11 -11 a15 15 0 1 1 15 15 a19 19 0 1 1 -19 -19'/%3E%3Cpath d='M0 0 m0 -3 a3 3 0 1 1 -3 3 a7 7 0 1 1 7 7 a11 11 0 1 1 -11 -11 a15 15 0 1 1 15 15'/%3E%3Cpath d='M80 80 m0 -3 a3 3 0 1 1 -3 3 a7 7 0 1 1 7 7 a11 11 0 1 1 -11 -11 a15 15 0 1 1 15 15'/%3E%3Cpath d='M80 0 m0 -3 a3 3 0 1 1 -3 3 a7 7 0 1 1 7 7 a11 11 0 1 1 -11 -11 a15 15 0 1 1 15 15'/%3E%3Cpath d='M0 80 m0 -3 a3 3 0 1 1 -3 3 a7 7 0 1 1 7 7 a11 11 0 1 1 -11 -11 a15 15 0 1 1 15 15'/%3E%3C/g%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M40 40 m0 -3 a3 3 0 1 1 -3 3 a7 7 0 1 1 7 7 a11 11 0 1 1 -11 -11 a15 15 0 1 1 15 15 a19 19 0 1 1 -19 -19'/%3E%3Cpath d='M0 0 m0 -3 a3 3 0 1 1 -3 3 a7 7 0 1 1 7 7 a11 11 0 1 1 -11 -11 a15 15 0 1 1 15 15'/%3E%3Cpath d='M80 80 m0 -3 a3 3 0 1 1 -3 3 a7 7 0 1 1 7 7 a11 11 0 1 1 -11 -11 a15 15 0 1 1 15 15'/%3E%3Cpath d='M80 0 m0 -3 a3 3 0 1 1 -3 3 a7 7 0 1 1 7 7 a11 11 0 1 1 -11 -11 a15 15 0 1 1 15 15'/%3E%3Cpath d='M0 80 m0 -3 a3 3 0 1 1 -3 3 a7 7 0 1 1 7 7 a11 11 0 1 1 -11 -11 a15 15 0 1 1 15 15'/%3E%3C/g%3E%3C/svg%3E"); -webkit-mask-size: 96px 96px; mask-size: 96px 96px; opacity: calc(.2 + var(--o) * .45); }
.ah-regenboog { background-image: repeating-linear-gradient(calc(var(--ry, 0deg) * 5 + 125deg), #ff7ac8 0 2%, #ffd36a 2% 4%, #8cf5b0 4% 6%, #6ad7ff 6% 8%, #b78cff 8% 10%); background-size: 260% 260%; mix-blend-mode: screen; opacity: calc(.13 + var(--o) * .3); }
.ah-regenboog::after { content: ""; position: absolute; inset: 0; background: inherit; background-position: inherit; mix-blend-mode: multiply; opacity: .35; }
.ah-glans { background-image: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, .55) 46%, rgba(255, 250, 225, .9) 50%, rgba(255, 255, 255, .55) 54%, transparent 64%); background-size: 260% 260%; mix-blend-mode: screen; opacity: calc(.55 + var(--o) * .45); }
.ah-glans::after { content: ""; position: absolute; inset: 0; background: #fff; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46'%3E%3Cpath d='M8 5Q8 10 13 10Q8 10 8 15Q8 10 3 10Q8 10 8 5ZM34 24Q34 30 40 30Q34 30 34 36Q34 30 28 30Q34 30 34 24ZM20 37Q20 40 23 40Q20 40 20 43Q20 40 17 40Q20 40 20 37ZM40 3.5Q40 6 42.5 6Q40 6 40 8.5Q40 6 37.5 6Q40 6 40 3.5Z' fill='%23fff'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46'%3E%3Cpath d='M8 5Q8 10 13 10Q8 10 8 15Q8 10 3 10Q8 10 8 5ZM34 24Q34 30 40 30Q34 30 34 36Q34 30 28 30Q34 30 34 24ZM20 37Q20 40 23 40Q20 40 20 43Q20 40 17 40Q20 40 20 37ZM40 3.5Q40 6 42.5 6Q40 6 40 8.5Q40 6 37.5 6Q40 6 40 3.5Z' fill='%23fff'/%3E%3C/svg%3E"); -webkit-mask-size: 46px 46px; mask-size: 46px 46px; animation: ahtwinkle 1.8s ease-in-out infinite alternate; mix-blend-mode: normal; }
.ah-glans::before { content: ""; position: absolute; inset: 0; background: #fff; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46'%3E%3Cpath d='M8 5Q8 10 13 10Q8 10 8 15Q8 10 3 10Q8 10 8 5ZM34 24Q34 30 40 30Q34 30 34 36Q34 30 28 30Q34 30 34 24ZM20 37Q20 40 23 40Q20 40 20 43Q20 40 17 40Q20 40 20 37ZM40 3.5Q40 6 42.5 6Q40 6 40 8.5Q40 6 37.5 6Q40 6 40 3.5Z' fill='%23fff'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46'%3E%3Cpath d='M8 5Q8 10 13 10Q8 10 8 15Q8 10 3 10Q8 10 8 5ZM34 24Q34 30 40 30Q34 30 34 36Q34 30 28 30Q34 30 34 24ZM20 37Q20 40 23 40Q20 40 20 43Q20 40 17 40Q20 40 20 37ZM40 3.5Q40 6 42.5 6Q40 6 40 8.5Q40 6 37.5 6Q40 6 40 3.5Z' fill='%23fff'/%3E%3C/svg%3E"); -webkit-mask-size: 46px 46px; mask-size: 46px 46px; -webkit-mask-position: 23px 18px; mask-position: 23px 18px; animation: ahtwinkle 1.8s ease-in-out -0.9s infinite alternate; }
@keyframes ahtwinkle { from { opacity: 0; } to { opacity: .95; } }
.stk-holo-tag { display: inline-block; margin: 0 auto 6px; font-size: 13px; font-weight: 800; color: #7a3a4a; background: linear-gradient(90deg, #ffd1e3, #fff3b0, #cdeffd, #e3d4fb); border-radius: 99px; padding: 3px 10px; }
@media (prefers-reduced-motion: reduce) { .stk-ah, .stk-ah::before, .stk-ah::after { animation: none !important; } }
.stk-mini { --o: 0; }
.stk-mini .stk-ah { inset: 3px; border-radius: 7px; animation: ahdrift 7s ease-in-out infinite alternate; }
.album-tile.soon { opacity: .75; cursor: default; }
.album-tile.soon .meta { font-weight: 800; color: #b25a6e; }

/* the close button under a big sticker: a button, not a bar across the whole screen */
.stk-view .stk-close { width: auto; min-width: 160px; max-width: 260px; padding-left: 28px; padding-right: 28px; }
/* cover: an own picture fills the round frame */
.bk-coverart img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* ---------- iPad: the album lies open, two pages side by side ---------- */
.bk-book.spread { width: min(100%, 920px, calc((100vh - 220px) * 600 / 420)); aspect-ratio: 600 / 420; }
.bk-book.spread::before { left: 0; width: 100%; border-radius: 14px; }
.bk-book.spread::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 28px; margin-left: -14px; z-index: 5; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(80, 50, 30, .16) 45%, rgba(80, 50, 30, .22) 50%, rgba(80, 50, 30, .16) 55%, transparent); }
.bk-book.spread.closed::before, .bk-book.spread.closed::after { left: 50%; width: 50%; margin-left: 0; }
.bk-book.spread.closed::after { display: none; }
.bk-half { position: absolute; top: 0; bottom: 0; width: 50%; perspective: 1800px; }
.bk-half.l { left: 0; }
.bk-half.r { left: 50%; }
.spread .bk-leaf { transition: transform .26s ease-in; }
.spread .bk-leaf.from-r { transform-origin: right center; }
.spread .bk-leaf.empty { display: none; }
.spread .bk-half.l .bk-page { border-radius: 14px 4px 4px 14px; box-shadow: inset -10px 0 14px -10px rgba(0, 0, 0, .25); }
.spread .bk-half.l .bk-cover { border-radius: 14px 4px 4px 14px; }
.spread .bk-title { font-size: 40px; }
.spread .bk-banner b { font-size: 22px; }
#app:has(.bk-book.spread) { max-width: 980px; }
.dunno.sure { background: #e5534b; color: #fff; border-radius: 12px; font-weight: 700; padding: 10px 18px; animation: dunnopop .18s ease; }
@keyframes dunnopop { from { transform: scale(.94); } to { transform: scale(1); } }
/* "van <naam>" on the cover in Dutch connected school handwriting */
.bk-label { font-family: "Playwrite NL", "Gochi Hand", cursive; font-size: 21px; color: #7a3a4a; line-height: 1.6; margin-top: 4%; }
.bk-label b { font-weight: 400; font-size: 1.12em; }
.spread .bk-label { font-size: 23px; }
.box-btn, .box-btn:focus, .box-btn:focus-visible { outline: none; -webkit-tap-highlight-color: transparent; }

/* ---------- the painted box ---------- */
.box-btn { width: 210px; }
.mbox-img { position: relative; display: block; width: 100%; aspect-ratio: 1; animation: boxwiggle 1.4s ease-in-out infinite; transform-origin: 50% 92%; }
.mbox-img img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; -webkit-user-drag: none; pointer-events: none; }
.mbox-img .mb-lid { transform-origin: 50% 55%; }
.mbox-img .mb-glow { position: absolute; left: 12%; right: 12%; top: 34%; height: 26%; border-radius: 50%; background: radial-gradient(closest-side, #fffbe8, rgba(255, 236, 160, .85) 45%, rgba(255, 220, 120, 0)); opacity: 0; transform: scale(.4); }
.mbox-img .mb-shine { position: absolute; inset: 0; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .75) 47%, rgba(255, 255, 255, .9) 50%, transparent 62%); background-size: 260% 100%; animation: mbshine 2.4s ease-in-out infinite; mix-blend-mode: soft-light; pointer-events: none; }
.mbox-img.super .mb-shine { animation-duration: 1.6s; mix-blend-mode: overlay; }
@keyframes mbshine { 0% { background-position: 130% 0; } 60%, 100% { background-position: -30% 0; } }
.mb-tw { position: absolute; width: 16px; height: 16px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: mbtw 1.6s ease-in-out infinite; pointer-events: none; }
.mb-tw.t1 { left: 14%; top: 40%; } .mb-tw.t2 { right: 12%; top: 30%; animation-delay: .5s; width: 12px; height: 12px; } .mb-tw.t3 { left: 46%; top: 8%; animation-delay: 1s; }
.mb-tw.t4 { left: 4%; top: 18%; animation-delay: .3s; background: #ffe58a; } .mb-tw.t5 { right: 4%; bottom: 22%; animation-delay: .8s; background: #ffe58a; }
@keyframes mbtw { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
.mbox-img.shiny { filter: drop-shadow(0 0 10px rgba(247, 211, 106, .8)); }
/* opening: a short shake, then the lid pops off and light comes out of the box */
.box-btn.opening .mbox-img { animation: boxshake .32s linear; }
.box-btn.opening .mb-lid { animation: lidpop .5s .26s cubic-bezier(.25, .7, .4, 1) forwards; }
.box-btn.opening .mb-glow { animation: glowup .55s .26s ease-out forwards; }
.box-btn.opening .mb-shine, .box-btn.opening .mb-tw { display: none; }
@keyframes lidpop { 0% { transform: none; } 35% { transform: translate(4%, -22%) rotate(-10deg); } 100% { transform: translate(34%, -48%) rotate(28deg); opacity: 0; } }
@keyframes glowup { 0% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1.4, 1.6); } 100% { opacity: .9; transform: scale(2.4, 3); } }
@media (prefers-reduced-motion: reduce) { .mbox-img, .mb-shine, .mb-tw { animation: none !important; } }
.mbox-img.super { animation: boxwiggle 1.4s ease-in-out infinite, superpulse 1.2s ease-in-out infinite alternate; }

/* ---------- cat castle ---------- */
.ritem .kbrug { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .45s ease-in-out; }
.ritem.k-open .kbrug { transform: scaleY(-.32); }
.ritem .kflag { transform-box: fill-box; transform-origin: 0 50%; }
.ritem.k-wave .kflag { animation: kflag .5s ease-in-out infinite alternate; }
.ritem.k-wave .kflag.k2 { animation-delay: .25s; }
@keyframes kflag { from { transform: scaleX(1) skewY(0); } to { transform: scaleX(.75) skewY(8deg); } }
.rcat.k-peek .rc-in { animation: kpeek 3.6s ease-in-out; }
@keyframes kpeek { 0% { transform: translateY(40%); } 15%, 85% { transform: translateY(0); } 50% { transform: translateY(-4%); } 100% { transform: translateY(40%); } }
.cat-crown { position: absolute; left: 50%; top: 21%; width: 28%; transform: translate(-50%, -40%) rotate(-8deg); z-index: 2; pointer-events: none; animation: crownpop .35s ease-out; }
.cat-crown svg { width: 100%; height: auto; display: block; }
@keyframes crownpop { from { transform: translate(-50%, -140%) rotate(-30deg); opacity: 0; } to { transform: translate(-50%, -40%) rotate(-8deg); opacity: 1; } }
.sheet .sol .speak { vertical-align: middle; margin-left: 6px; }
