/* Catch a Monster Bird: DRAFT */
.catch{--c-ink:var(--ink,#151515);--c-sun:var(--sun,#ffc21a);--c-cream:var(--cream,#fff8e6);
  position:relative;overflow:hidden;padding:28px 0 0;text-align:center;
  background:linear-gradient(180deg,var(--sky-deep,#0f5fc2) 0%,var(--sky,#1e8fe8) 45%,#7fc0ef 75%,#bfe3f7 100%);
  font-family:ui-rounded,"Nunito","Trebuchet MS",system-ui,sans-serif;color:var(--c-ink);
  touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}
.catch *{box-sizing:border-box}
.catch__head{position:relative;z-index:3;padding:0 70px}
.catch__kicker,.catch__title,.catch__count,.catch__btn,.catch__end h3{font-family:"Freckle Face","Comic Sans MS",cursive;font-weight:400}
.catch__kicker{margin:0;color:var(--c-sun);font-size:1.1rem;text-transform:uppercase;letter-spacing:.08em;text-shadow:2px 2px 0 var(--c-ink)}
.catch__title{margin:.05em 0 .1em;color:#fff;font-size:clamp(2rem,9vw,3.4rem);line-height:1.05;
  text-shadow:3px 3px 0 var(--c-ink),-2px -2px 0 var(--c-ink),2px -2px 0 var(--c-ink),-2px 2px 0 var(--c-ink)}
.catch__count{display:inline-block;margin:.3em 0 0;background:var(--c-sun);border:4px solid var(--c-ink);border-radius:22px 28px 20px 30px/28px 20px 30px 22px;
  box-shadow:4px 4px 0 var(--c-ink);padding:.15em .8em;font-size:clamp(1.3rem,6vw,1.7rem)}
.catch__count.bump{animation:catch-bump .3s}
@keyframes catch-bump{50%{transform:scale(1.2) rotate(-3deg)}}
.catch__sound{position:absolute;top:10px;right:10px;z-index:6}
@keyframes mb-bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@media (prefers-reduced-motion:reduce){}
.catch__sky{position:relative;height:min(120vw,560px);margin:0 auto}
.catch__hill{position:absolute;left:-10%;right:-10%;bottom:0;height:24%;z-index:1;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 200' preserveAspectRatio='none'%3E%3Cpath d='M0 70 Q300 -10 600 70 V200 H0Z' fill='%235bb535' stroke='%23151515' stroke-width='6'/%3E%3Cpath d='M0 150 Q300 100 600 150 V200 H0Z' fill='%236b3f1f' stroke='%23151515' stroke-width='6'/%3E%3C/svg%3E") center top/100% 100% no-repeat}
.catch__bird{position:absolute;left:0;top:0;z-index:2;width:120px;height:120px;padding:0;border:0;background:none;cursor:pointer;touch-action:manipulation;will-change:transform}
.catch__bird::before{content:"";position:absolute;inset:-14px}/* extra-forgiving hit area */
.catch__flip{position:absolute;inset:8px;pointer-events:none}
.catch__body{position:absolute;inset:0;transform-origin:50% 45%}
.catch__body img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(4px 4px 0 rgba(21,21,21,.35))}
.catch__wing{position:absolute;width:58%;height:52%;left:10%;top:-2%;overflow:visible;transform-origin:50% 92%}
.catch__wing--back{z-index:0;filter:brightness(.78)}
.catch__wing--front{z-index:2}
.catch__body img{z-index:1}
.catch__bird.got{pointer-events:none}
.catch__bird.got .catch__flip{animation:catch-spin .4s ease-in forwards}
@keyframes catch-spin{to{transform:rotate(540deg) scale(0);opacity:0}}
.catch__fx{position:absolute;inset:0;z-index:4;pointer-events:none}
.catch__bit{position:absolute;width:16px;height:16px;border:3px solid var(--c-ink);background:var(--c-sun);
  clip-path:polygon(50% 0,63% 35%,100% 38%,70% 60%,80% 100%,50% 76%,20% 100%,30% 60%,0 38%,37% 35%);animation:catch-fly .7s ease-out forwards}
.catch__bit.f{clip-path:none;border-radius:50% 50% 50% 50%/70% 70% 30% 30%;width:12px;height:22px}
@keyframes catch-fly{to{transform:translate(var(--dx),var(--dy)) rotate(var(--r));opacity:0}}
.catch__end{position:absolute;inset:0;z-index:5;display:none;align-items:center;justify-content:center;padding:12px 16px 22%}
.catch.is-done .catch__end{display:flex;animation:catch-in .4s both}
@keyframes catch-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.catch__panel{background:var(--c-cream);border:4px solid var(--c-ink);border-top:12px solid var(--c-sun);border-radius:22px 28px 20px 30px/28px 20px 30px 22px;box-shadow:6px 6px 0 var(--c-ink);padding:14px 16px 18px;max-width:420px;width:100%}
.catch__end h3{margin:0;font-size:clamp(1.6rem,7vw,2.1rem);line-height:1.1;color:var(--sunset,#ff8a1f);text-shadow:2px 2px 0 var(--c-ink),-1px -1px 0 var(--c-ink),1px -1px 0 var(--c-ink),-1px 1px 0 var(--c-ink)}
.catch__got{list-style:none;margin:12px 0 0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;width:100%}
.catch__got li{min-width:0;aspect-ratio:1;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#fff;border:3px solid var(--c-ink);border-radius:12px}
.catch__got img{display:block;width:86%;height:86%;max-width:86%;max-height:86%;object-fit:contain}
.catch__btn{margin-top:16px;background:var(--c-sun);color:var(--c-ink);font-size:1.4rem;padding:.5em 1.2em;min-height:56px;border:4px solid var(--c-ink);
  border-radius:22px 28px 20px 30px/28px 20px 30px 22px;box-shadow:4px 4px 0 var(--c-ink);cursor:pointer;touch-action:manipulation}
.catch__btn:active{transform:translate(2px,2px);box-shadow:2px 2px 0 var(--c-ink)}
@media (prefers-reduced-motion:reduce){.catch__bit{display:none}.catch__count.bump,.catch.is-done .catch__end{animation:none}.catch__bird.got .catch__flip{animation-duration:1ms}}
.catch.is-done .catch__count{visibility:hidden}

.catch__diffs{display:flex;flex-wrap:nowrap;justify-content:center;gap:6px;margin:.4em auto .15em;padding:0 6px}
.catch__diff{font-family:"Freckle Face","Comic Sans MS",cursive;font-weight:400;font-size:clamp(.95rem,3.5vw,1.3rem);
  background:var(--c-cream);color:var(--c-ink);border:4px solid var(--c-ink);
  border-radius:18px 22px 16px 24px/22px 16px 24px 18px;box-shadow:3px 3px 0 var(--c-ink);
  padding:.28em .6em;min-height:48px;min-width:0;flex:0 1 auto;cursor:pointer;touch-action:manipulation}
.catch__diff.is-on{background:var(--c-sun)}
.catch__diff:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--c-ink)}
.catch__diff:focus-visible{outline:3px dashed #fff;outline-offset:3px}
@media (prefers-reduced-motion:reduce){.catch__diff:active{transform:none}}

/* PREVIEW ONLY: Scribble challenge ground strip + wild cats. Do not copy to live deploy. */
.catch__cat-ground{
  display:none;position:absolute;left:-8%;right:-8%;bottom:0;height:28%;z-index:3;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 200' preserveAspectRatio='none'%3E%3Cpath d='M0 86 Q80 70 160 88 Q240 108 320 80 Q400 56 480 84 Q560 110 640 82 Q720 60 800 86 V200 H0Z' fill='%235bb535' stroke='%23151515' stroke-width='7'/%3E%3Cpath d='M0 128 Q200 108 400 132 Q600 154 800 126 V200 H0Z' fill='%236b3f1f' stroke='%23151515' stroke-width='6'/%3E%3Cpath d='M40 150 Q70 142 90 152 M210 160 Q240 150 270 162 M470 148 Q500 138 530 150 M660 158 Q690 148 720 160' fill='none' stroke='%234a2a14' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center top/100% 100% no-repeat
}
.catch.is-challenge .catch__cat-ground{display:block}
.catch__cat{
  position:absolute;left:0;top:0;z-index:4;padding:0;border:0;background:none;cursor:pointer;
  touch-action:manipulation;will-change:transform
}
.catch__cat::before{content:"";position:absolute;inset:-16px}
.catch__cat img{width:100%;height:100%;object-fit:fill;display:block;pointer-events:none;
  filter:drop-shadow(3px 3px 0 rgba(21,21,21,.3))}
.catch__cat.got{pointer-events:none;opacity:0;transition:opacity .25s}
.catch__challenge-ui{position:absolute;left:0;right:0;top:8px;z-index:5;pointer-events:none;text-align:center}
.catch__challenge-banner{
  display:inline-block;margin:0;padding:.35em .9em;background:#ffc21a;color:#151515;
  font-family:"Freckle Face","Comic Sans MS",cursive;font-size:clamp(1rem,4.4vw,1.3rem);
  border:3px solid #151515;border-radius:18px 22px 16px 24px/22px 16px 24px 18px;box-shadow:3px 3px 0 #151515
}
.catch:not(.is-challenge) .catch__challenge-banner{display:none}
.catch__challenge-end{
  position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);width:min(88%,340px);
  background:#fff8e6;color:#151515;border:4px solid #151515;
  border-radius:22px 28px 20px 30px/28px 20px 30px 22px;box-shadow:5px 5px 0 #151515;
  padding:16px 14px;pointer-events:none
}
.catch__challenge-end[hidden]{display:none!important}
.catch__challenge-end-title{margin:0;font-family:"Freckle Face","Comic Sans MS",cursive;font-size:clamp(1.3rem,5.5vw,1.75rem);line-height:1.15}
.catch__challenge-end-note{margin:.4em 0 0;font-weight:800;font-size:1rem}
.catch__scribble-bit{border-radius:40% 60% 50% 50%/60% 40% 60% 40%}
