/* Bunnimoo — צְבָעִים וּגְוָנִים (colors & shades) v1.0. Scoped to .co. Big tap targets (>= 64 px), calm eased motion, works at 390 px.
   Uses Bunnimoo's own clay tokens when present (--a6-*), with the same values as fallbacks. */
.co { --co-ink: var(--a6-ink, #4a3626); --co-ink2: var(--a6-ink-2, #7a6150); --co-surface: var(--a6-surface, #f8eedf); --co-sunk: var(--a6-sunk, #e6d2b8);
  --co-base: var(--a6-key-base, #d8c0a0); --co-clay: var(--a6-clay-in, inset 3px 4px 6px rgba(255,255,255,.65), inset -3px -5px 8px rgba(120,84,50,.14));
  --co-ease: cubic-bezier(.22, .8, .3, 1); position: relative; padding-bottom: 18px; overflow-x: clip; }
.co .head-row h1 { font-size: 1.45rem; line-height: 1.35; }
.co button { -webkit-tap-highlight-color: transparent; font: inherit; color: inherit; }

/* paint blobs */
.co .co-blob { --s: 64px; display: block; width: var(--s); height: var(--s); border-radius: 50%; background: var(--c, #ccc); flex: 0 0 auto;
  box-shadow: inset 4px 6px 9px rgba(255,255,255,.42), inset -4px -6px 10px rgba(40,20,10,.16), 0 0 0 2px rgba(74,54,38,.10);
  transition: background-color .45s var(--co-ease), transform .35s var(--co-ease); }
.co .co-blob.co-big { --s: 104px; }
.co .co-blob.co-sm { --s: 38px; } .co .co-blob.co-xs { --s: 28px; }

/* bunny + speech bubble */
.co .co-say { display: flex; align-items: center; gap: 10px; margin: 10px 0 8px; min-height: 92px; }
.co .co-bun { flex: 0 0 auto; width: 86px; position: relative; }
.co .co-bun-in { animation: coBob 4.2s ease-in-out infinite; transform-origin: 50% 100%; will-change: transform; }
.co .co-bun-in.hop { animation: coHop .6s var(--co-ease) 1, coBob 4.2s ease-in-out .6s infinite; }
.co .co-bun .charwrap { width: 86px; margin: 0; }
.co .co-bubble { position: relative; flex: 1 1 auto; min-width: 0; background: var(--co-surface); border-radius: 22px; padding: 12px 14px; display: flex; align-items: center; gap: 8px;
  box-shadow: var(--co-clay), 0 4px 0 var(--co-base); }
.co .co-bubble::before { content: ''; position: absolute; inset-inline-start: -8px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: var(--co-surface); transform: rotate(45deg); border-radius: 3px; }
.co .co-bubble p { margin: 0; flex: 1 1 auto; font-size: 1.28rem; line-height: 1.6; font-weight: 600; color: var(--co-ink); position: relative; }
.co .co-spk { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #fff6e0; box-shadow: 0 3px 0 var(--co-base); cursor: pointer; position: relative; }
.co .co-spk svg { width: 28px; height: 28px; }

/* home: four games */
.co .co-levels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.co .co-lv { position: relative; min-height: 150px; border: 0; border-radius: 26px; padding: 14px 8px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: var(--tint, #fff4e3); box-shadow: var(--co-clay), 0 5px 0 var(--cb, var(--co-base)), 0 12px 18px -12px rgba(92,62,40,.35); cursor: pointer; color: var(--co-ink);
  transition: transform .18s var(--co-ease), box-shadow .18s var(--co-ease); }
.co .co-lv:active { transform: translateY(3px); box-shadow: var(--co-clay), 0 2px 0 var(--cb, var(--co-base)); }
.co .co-lv b { font-size: 1.12rem; line-height: 1.4; }
.co .co-lv small { font-size: .84rem; line-height: 1.3; color: var(--co-ink2); text-align: center; }
.co .co-lv1 { --tint: #fde3df; --cb: #cc6e64; } .co .co-lv2 { --tint: #dcebf7; --cb: #5a8cbc; }
.co .co-lv3 { --tint: #fdebc8; --cb: #d7a446; } .co .co-lv4 { --tint: #e7e1f7; --cb: #8a7cc4; }
.co .co-ta { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; margin-bottom: 4px; }
.co .co-ta-emoji { font-size: 2.3rem; line-height: 1; }
.co .co-op { font-size: 1.3rem; color: var(--co-ink2); font-weight: 700; }
.co .co-ramp { display: flex; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 2px rgba(74,54,38,.10); }
.co .co-ramp i { display: block; width: 22px; height: 38px; background: var(--c); }
.co .co-badge { position: absolute; top: 8px; inset-inline-end: 10px; font-size: .8rem; font-weight: 700; background: rgba(255,255,255,.75); border-radius: 999px; padding: 2px 8px; }

/* progress: six paint drops that fill with the colours found */
.co .co-prog { display: flex; justify-content: center; gap: 10px; margin: 10px 0 2px; }
.co .co-prog i { width: 16px; height: 16px; border-radius: 50%; background: var(--co-sunk); box-shadow: inset 1px 2px 3px rgba(120,84,50,.18); transition: background-color .5s var(--co-ease), transform .5s var(--co-ease); }
.co .co-prog i.now { transform: scale(1.18); box-shadow: inset 1px 2px 3px rgba(120,84,50,.18), 0 0 0 3px rgba(240,168,101,.45); }
.co .co-prog i[style] { background: var(--c); box-shadow: inset 2px 3px 4px rgba(255,255,255,.4), 0 0 0 1.5px rgba(74,54,38,.12); }
.co .co-prog-done { margin: 12px 0 16px; } .co .co-prog-done i { width: 26px; height: 26px; }

/* the question */
.co .co-stage { margin-top: 4px; }
.co .co-show { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 140px; margin: 6px 0 10px; }
.co .co-obj { font-size: 6.2rem; line-height: 1; filter: drop-shadow(0 8px 8px rgba(92,62,40,.18)); }
.co .co-sample { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.co .co-sample small, .co .co-drop small { font-size: .95rem; color: var(--co-ink2); font-weight: 600; }
.co .co-ldicon { font-size: 4rem; min-height: 96px; }
.co .co-opts { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.co .co-opts.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 300px; margin-inline: auto; }
.co .co-opts.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 300px; margin-inline: auto; }
.co .co-opt { min-height: 118px; border: 0; border-radius: 24px; padding: 12px 4px 10px; background: var(--co-surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  box-shadow: var(--co-clay), 0 5px 0 var(--co-base), 0 12px 16px -12px rgba(92,62,40,.35); transition: transform .3s var(--co-ease), opacity .4s var(--co-ease), box-shadow .3s var(--co-ease); }
.co .co-opt .co-blob { --s: 70px; }
.co .co-opts.n2 .co-opt .co-blob, .co .co-opts.n4 .co-opt .co-blob { --s: 80px; }
.co .co-opt:active { transform: translateY(3px); box-shadow: var(--co-clay), 0 2px 0 var(--co-base); }
.co .co-ol { font-size: 1.12rem; font-weight: 700; line-height: 1.3; color: var(--co-ink); max-width: 100%; padding: 0 2px; text-align: center; overflow-wrap: anywhere; }
.co[lang="ru"] .co-ol { font-size: .86rem; }
.co[lang="ru"] .co-lv b { font-size: 1rem; }
.co .co-he { font-size: .85rem; color: var(--co-ink2); line-height: 1.2; }
.co .co-opt.no { opacity: .38; transform: scale(.94); cursor: default; }
.co .co-opt.yes { box-shadow: inset 0 0 0 4px #b9d3a4, var(--co-clay), 0 5px 0 #5f7a4b; }
.co .co-opt:disabled { cursor: default; }
.co .co-msg { min-height: 1.9em; margin: 12px 0 6px; text-align: center; font-size: 1.15rem; font-weight: 700; color: var(--co-ink); line-height: 1.5; }
.co .co-next { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 64px; animation: coIn .4s var(--co-ease) both; }

/* mixing: two paints and a bowl that fills */
.co .co-eq { gap: 8px; flex-wrap: nowrap; }
.co .co-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; transition: transform .6s var(--co-ease), opacity .6s var(--co-ease); }
.co .co-drop .co-blob { --s: 58px; }
.co .co-bowl { position: relative; width: 84px; height: 84px; border-radius: 50%; background: var(--co-sunk); overflow: hidden; display: grid; place-items: center;
  box-shadow: inset 4px 8px 12px rgba(120,84,50,.28), 0 0 0 3px #fff6e0, 0 5px 0 var(--co-base); }
.co .co-bowl-in { position: absolute; inset: 0; border-radius: 50%; background: var(--c); opacity: 0; transform: scale(.4); transition: opacity .7s var(--co-ease) .15s, transform .7s var(--co-ease) .15s;
  box-shadow: inset 4px 6px 9px rgba(255,255,255,.42), inset -4px -6px 10px rgba(40,20,10,.16); }
.co .co-q { position: relative; font-size: 2rem; font-weight: 700; color: var(--co-ink2); transition: opacity .3s; }
.co .co-eq.full .co-bowl-in { opacity: 1; transform: none; }
.co .co-eq.full .co-q { opacity: 0; }
.co .co-eq.full .co-da { transform: translateX(var(--co-pull, -6px)); }
.co .co-eq.full .co-db { transform: translateX(var(--co-pull, -6px)); }
.co[dir="ltr"] .co-eq.full { --co-pull: 6px; }

/* light & dark: paint it like the sample */
.co .co-paint { gap: 28px; }
.co .co-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.co .co-tool { min-height: 96px; border: 0; border-radius: 24px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer;
  background: var(--co-surface); box-shadow: var(--co-clay), 0 5px 0 var(--co-base); transition: transform .2s var(--co-ease), box-shadow .3s var(--co-ease); }
.co .co-tool b { font-size: 1.1rem; } .co .co-tool small { font-size: .85rem; color: var(--co-ink2); }
.co .co-tool:active { transform: translateY(3px); box-shadow: var(--co-clay), 0 2px 0 var(--co-base); }
.co .co-tool.hint { box-shadow: inset 0 0 0 4px rgba(245,201,111,.8), var(--co-clay), 0 5px 0 var(--co-base); }
.co .co-tool:disabled { opacity: .55; cursor: default; }

/* end of a round */
.co .co-done { text-align: center; padding: 18px 16px 20px; margin-top: 12px; position: relative; }
.co .co-done .co-bun { margin: 0 auto 4px; width: 110px; } .co .co-done .co-bun .charwrap { width: 110px; }
.co .co-done h2 { margin: 4px 0 4px; font-size: 1.5rem; }
.co .co-done .sub { margin: 0; }
.co .co-wide { width: 100%; min-height: 60px; margin-top: 10px; }

/* small sparkles: a few soft dots that drift out and fade */
.co .co-spark { position: absolute; left: 50%; top: 40%; width: 0; height: 0; pointer-events: none; z-index: 2; }
.co .co-spark i { position: absolute; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--c); opacity: 0; animation: coSpark 1.3s var(--co-ease) var(--dl, 0ms) forwards; }
.co .co-spark.big i { width: 12px; height: 12px; }

.co .co-in { animation: coIn .38s var(--co-ease) both; }
@keyframes coIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes coBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes coHop { 0% { transform: translateY(0); } 40% { transform: translateY(-7px); } 100% { transform: translateY(0); } }
@keyframes coSpark { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1); } }

@media (max-width: 360px) {
  .co .co-opt .co-blob { --s: 58px; } .co .co-obj { font-size: 5rem; } .co .co-drop .co-blob { --s: 48px; } .co .co-bowl { width: 70px; height: 70px; }
  .co .co-bubble p { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .co *, .co *::before { animation: none !important; transition: none !important; }
  .co .co-spark { display: none; }
}
html.rm .co *, html.rm .co *::before { animation: none !important; transition: none !important; }
