/* Find Huck: DRAFT. Uses site vars from style.css, with fallbacks. Pair with js/findhuck.js */
.findhuck{--f-ink:var(--ink,#151515);--f-sun:var(--sun,#ffc21a);--f-cream:var(--cream,#fff8e6);
  position:relative;overflow:hidden;padding:74px 0 36px;text-align:center;
  background:linear-gradient(180deg,#7cc4f2 0%,#bfe6f7 38%,#d8f0c0 70%,var(--grass,#5bb535) 100%);
  font-family:ui-rounded,"Nunito","Trebuchet MS",system-ui,sans-serif;color:var(--f-ink);
  touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}
.findhuck *{box-sizing:border-box}
.findhuck__head{position:relative;z-index:3;padding:0 10px 8px}
.findhuck__kicker,.findhuck__title,.findhuck__stat,.findhuck__btn,.findhuck__diff,.findhuck__found h3,.findhuck__eyes button{
  font-family:"Freckle Face","Comic Sans MS",cursive;font-weight:400}
.findhuck__kicker{margin:0;color:var(--f-sun);font-size:1.1rem;text-transform:uppercase;letter-spacing:.08em;text-shadow:2px 2px 0 var(--f-ink)}
.findhuck__title{margin:.05em 0 .1em;color:#fff;font-size:clamp(2rem,9vw,3.4rem);line-height:1.05;
  text-shadow:3px 3px 0 var(--f-ink),-2px -2px 0 var(--f-ink),2px -2px 0 var(--f-ink),-2px 2px 0 var(--f-ink)}
.findhuck__sound{position:absolute;top:10px;right:10px;z-index:6}

.findhuck__diffs{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:.5em auto .15em;padding:0 6px;max-width:560px}
.findhuck__diff{font-size:clamp(.9rem,3.4vw,1.2rem);background:var(--f-cream);color:var(--f-ink);border:4px solid var(--f-ink);
  border-radius:18px 22px 16px 24px/22px 16px 24px 18px;box-shadow:3px 3px 0 var(--f-ink);
  padding:.28em .6em;min-height:48px;min-width:0;flex:0 1 auto;cursor:pointer;touch-action:manipulation}
.findhuck__diff.is-on{background:var(--f-sun)}
.findhuck__diff:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--f-ink)}
.findhuck__diff:focus-visible,.findhuck__btn:focus-visible,.findhuck__eyes button:focus-visible{outline:3px dashed #fff;outline-offset:3px}

.findhuck__stats{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:.45em 0 0}
.findhuck__stat{display:inline-block;background:var(--f-sun);border:4px solid var(--f-ink);
  border-radius:22px 28px 20px 30px/28px 20px 30px 22px;box-shadow:4px 4px 0 var(--f-ink);
  padding:.12em .75em;font-size:clamp(1.05rem,4.6vw,1.4rem);color:var(--f-ink);margin:0}
.findhuck__stat[hidden]{display:none}
.findhuck__ask{margin:.55em 0 0;font-size:clamp(1.05rem,4.4vw,1.3rem);font-weight:800;color:var(--f-ink)}

.findhuck__wrap{position:relative;z-index:2;margin:12px auto 0;padding:0 12px;max-width:560px}
.findhuck__board{position:relative;width:100%;aspect-ratio:1/1;overflow:hidden;background:#cde;cursor:pointer;
  border:4px solid var(--f-ink);border-radius:22px 28px 20px 30px/28px 20px 30px 22px;box-shadow:6px 6px 0 var(--f-ink);
  touch-action:manipulation}
.findhuck__board img,.findhuck__stereo{position:absolute;display:block;max-width:none;height:auto;pointer-events:none;
  user-select:none;-webkit-user-select:none;-webkit-user-drag:none}
.findhuck__board .fh-bg,.findhuck__board .fh-ov{left:0;top:0;width:100%}
.findhuck__board .fh-b{transform:scaleX(var(--fx,1));transform-origin:50% 100%}
.findhuck__stereo{left:0;top:0;width:100%;height:100%;image-rendering:pixelated;image-rendering:crisp-edges;image-rendering:pixelated;z-index:5}
.findhuck__stereo[hidden]{display:none}
.findhuck__ring{position:absolute;z-index:300;pointer-events:none;border:5px solid #fff;border-radius:50%;
  box-shadow:0 0 0 4px var(--f-ink),0 0 18px 6px rgba(255,194,26,.9);animation:fh-pulse 1.1s ease-in-out infinite}
.findhuck__oops{position:absolute;z-index:300;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;
  border:4px solid rgba(255,255,255,.95);pointer-events:none;animation:fh-oops .5s ease-out forwards}
.findhuck__board .fh-pop{animation:fh-pop .7s cubic-bezier(.3,1.6,.5,1) both;transform-origin:50% 100%}
.findhuck__board .fh-reveal{filter:drop-shadow(0 0 10px #fff) drop-shadow(0 0 4px var(--f-sun));animation:fh-pop .6s cubic-bezier(.3,1.6,.5,1) both}
.findhuck__star{position:absolute;z-index:310;width:26px;height:26px;margin:-13px 0 0 -13px;pointer-events:none;
  animation:fh-star 1s ease-out forwards}
@keyframes fh-pulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.12);opacity:.8}}
@keyframes fh-oops{from{transform:scale(.4);opacity:1}to{transform:scale(1.6);opacity:0}}
@keyframes fh-pop{0%{transform:scale(calc(var(--fx,1)*1),1)}45%{transform:scale(calc(var(--fx,1)*1.22),1.22)}100%{transform:scale(calc(var(--fx,1)*1.1),1.1)}}
@keyframes fh-star{0%{transform:translate(0,0) scale(.3);opacity:1}100%{transform:translate(var(--dx),var(--dy)) scale(1.1);opacity:0}}

.findhuck__tools{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:16px}
.findhuck__btn{background:var(--f-cream);color:var(--f-ink);font-size:1.2rem;padding:.4em 1em;min-height:52px;border:4px solid var(--f-ink);
  border-radius:22px 28px 20px 30px/28px 20px 30px 22px;box-shadow:4px 4px 0 var(--f-ink);cursor:pointer;touch-action:manipulation}
.findhuck__btn--go{background:var(--f-sun)}
.findhuck__btn:disabled{opacity:.5}
.findhuck__btn:active{transform:translate(2px,2px);box-shadow:2px 2px 0 var(--f-ink)}
.findhuck__eyes{display:flex;gap:6px;justify-content:center;align-items:center;flex-wrap:wrap;margin:14px 0 0;font-weight:800;font-size:.95rem}
.findhuck__eyes[hidden]{display:none}
.findhuck__eyes button{font-size:1rem;background:var(--f-cream);border:3px solid var(--f-ink);border-radius:16px 20px 14px 22px/20px 14px 22px 16px;
  box-shadow:2px 2px 0 var(--f-ink);padding:.2em .7em;min-height:44px;cursor:pointer}
.findhuck__eyes button[aria-pressed="true"]{background:var(--f-sun)}
.findhuck__howto{margin:12px auto 0;max-width:34em;font-size:.95rem;font-weight:700;line-height:1.35;padding:0 6px}
.findhuck__howto[hidden]{display:none}

.findhuck__found{margin:16px auto 0;padding:10px 14px 14px;max-width:420px;background:var(--f-cream);border:4px solid var(--f-ink);
  border-radius:22px 28px 20px 30px/28px 20px 30px 22px;box-shadow:5px 5px 0 var(--f-ink)}
.findhuck__found[hidden]{display:none}
.findhuck__found h3{margin:0 0 .1em;font-size:clamp(1.8rem,8vw,2.6rem);line-height:1.05;color:var(--huck,#16a3f5);
  text-shadow:2px 2px 0 var(--f-ink),-1px -1px 0 var(--f-ink),1px -1px 0 var(--f-ink),-1px 1px 0 var(--f-ink)}
.findhuck__found p{margin:.1em 0 .6em;font-weight:800}
@media (min-width:700px){.findhuck__wrap{padding:0 20px}}
@media (prefers-reduced-motion:reduce){.findhuck__ring,.findhuck__board .fh-pop,.findhuck__board .fh-reveal{animation:none}.findhuck__star{display:none}}

/* ---- v2: wordless find, Peek, 20-shape picker ---- */
.findhuck__found{display:flex;align-items:center;justify-content:center;gap:14px;width:fit-content;padding:10px 20px}
.findhuck__found[hidden]{display:none}
.findhuck__btn--icon{display:inline-flex;align-items:center;justify-content:center;min-width:72px;min-height:64px;padding:.2em .7em}
.findhuck__btn--icon svg{display:block}
.findhuck__newbest{display:inline-flex;animation:fh-pop2 .7s cubic-bezier(.3,1.6,.5,1) both}
.findhuck__newbest[hidden]{display:none}
.findhuck__stat.is-new{animation:fh-pulse2 1s ease-in-out 3}
.findhuck__btn[hidden]{display:none}
.findhuck__btn--peek{display:inline-flex;align-items:center;gap:8px;background:#fff8e6}
.findhuck__btn--peek svg{display:block;flex:none}
.findhuck__btn--peek.is-peeking{background:var(--f-sun)}
.findhuck__choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:14px auto 0;padding:10px;max-height:min(52vh,340px);overflow-y:auto;-webkit-overflow-scrolling:touch;
  background:var(--f-cream);border:4px solid var(--f-ink);border-radius:22px 28px 20px 30px/28px 20px 30px 22px;box-shadow:5px 5px 0 var(--f-ink);overscroll-behavior:contain}
.findhuck__choices[hidden]{display:none}
.findhuck__choice{position:relative;aspect-ratio:1/1;min-width:0;min-height:52px;padding:5px;background:#fff;border:3px solid var(--f-ink);cursor:pointer;touch-action:manipulation;
  border-radius:14px 18px 12px 18px/18px 12px 18px 14px;box-shadow:2px 2px 0 var(--f-ink);transition:opacity .25s,filter .25s,background .2s}
.findhuck__choice img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;-webkit-user-drag:none;user-select:none}
.findhuck__choice:active{transform:translate(2px,2px);box-shadow:0 0 0 var(--f-ink)}
.findhuck__choice:focus-visible{outline:3px dashed var(--f-ink);outline-offset:2px}
.findhuck__choice.is-tried{opacity:.34;filter:grayscale(1)}
.findhuck__choice.is-nope{animation:fh-nope .4s ease-in-out}
.findhuck__choice.is-right{background:var(--f-sun);opacity:1;filter:none;animation:fh-pop2 .7s cubic-bezier(.3,1.6,.5,1) both;box-shadow:0 0 0 4px #fff,0 0 0 7px var(--f-ink),0 0 16px 8px rgba(255,194,26,.85);z-index:2}
.findhuck__choice:disabled{cursor:default}
.findhuck__board .fh-silhouette{position:absolute;display:block;max-width:none;z-index:210;pointer-events:none;object-fit:fill}
.findhuck__board .fh-peek{opacity:0;animation:fh-peek 2.3s ease-in-out both;filter:drop-shadow(0 0 5px rgba(255,255,255,.95))}
.findhuck__board .fh-solved{opacity:.9;filter:drop-shadow(0 0 7px #fff) drop-shadow(0 0 4px var(--f-sun));animation:fh-silpop .7s cubic-bezier(.3,1.6,.5,1) both;transform-origin:50% 55%}
@keyframes fh-peek{0%{opacity:0}22%{opacity:.9}72%{opacity:.9}100%{opacity:0}}
@keyframes fh-nope{0%,100%{transform:translateX(0)}25%{transform:translateX(-4px)}60%{transform:translateX(4px)}}
@keyframes fh-pop2{0%{transform:scale(1)}45%{transform:scale(1.18)}100%{transform:scale(1.05)}}
@keyframes fh-silpop{0%{transform:scale(1)}45%{transform:scale(1.1)}100%{transform:scale(1.04)}}
@keyframes fh-pulse2{0%,100%{transform:scale(1)}50%{transform:scale(1.12)}}
.findhuck.is-insane .findhuck__board{cursor:default}
.findhuck.is-insane .findhuck__howto{max-width:34em}
@media (min-width:860px){
  .findhuck.is-insane .findhuck__wrap{max-width:940px;display:grid;grid-template-columns:minmax(0,560px) minmax(0,1fr);column-gap:22px;align-items:start}
  .findhuck.is-insane .findhuck__board{grid-column:1;grid-row:1}
  .findhuck.is-insane .findhuck__choices{grid-column:2;grid-row:1/span 6;margin-top:0;grid-template-columns:repeat(4,minmax(0,1fr));max-height:none}
  .findhuck.is-insane .findhuck__tools,.findhuck.is-insane .findhuck__eyes,.findhuck.is-insane .findhuck__howto,.findhuck.is-insane .findhuck__found{grid-column:1}
}
@media (prefers-reduced-motion:reduce){.findhuck__choice.is-nope,.findhuck__choice.is-right,.findhuck__newbest,.findhuck__stat.is-new,.findhuck__board .fh-solved{animation:none}.findhuck__board .fh-peek{animation:fh-peek-rm 2.3s steps(1,end) both}}
@keyframes fh-peek-rm{0%{opacity:0}15%{opacity:.9}85%{opacity:0}100%{opacity:0}}
