/* GRUMPY//NET v2 0.22.0 — Phase 10 catch toys (js/ui/toys.js). Prefix ctt-. */

/* ---- the layer: document-sized, above the cards, below header menus / chat / dialogs ---- */
#ctt-layer,#ctt-layer-hd{position:absolute;left:0;top:0;width:0;height:0;z-index:15;pointer-events:none}#ctt-layer-hd{z-index:31}
html.ctt-hand,html.ctt-hand *{cursor:pointer!important}

/* ---- plushies sitting on Home (no disc, no halo: the light only crosses the picture) ---- */
.ctt-pl{position:absolute;pointer-events:none}
.ctt-pl .ctt-art{position:absolute;inset:0;pointer-events:none}
.ctt-pl .ctt-img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 5px 3px rgba(0,0,0,.6));transition:transform .15s,filter .15s;user-select:none;-webkit-user-drag:none}
.ctt-pl.hover .ctt-img{transform:translateY(-3px);filter:drop-shadow(0 8px 5px rgba(0,0,0,.6)) brightness(1.06)}
.ctt-pl.hang{rotate:-14deg;transform-origin:30% 12%}
.ctt-pl.emoji .ctt-img{display:none}
.ctt-pl .ctt-art.fit .ctt-img{object-fit:fill}
.ctt-pl .ctt-art:not(.fit) .ctt-sh{-webkit-mask-size:contain;mask-size:contain}
.ctt-pl .ctt-emo{position:absolute;inset:0;display:none;align-items:center;justify-content:center;font-size:44px;line-height:1;filter:drop-shadow(0 5px 3px rgba(0,0,0,.6))}
.ctt-pl.emoji .ctt-emo{display:flex}
.ctt-sh{position:absolute;inset:0;overflow:hidden;pointer-events:none;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center}
.ctt-sh::before{content:'';position:absolute;top:-25%;left:-90%;width:55%;height:150%;background:linear-gradient(105deg,transparent 15%,var(--ctt-sc) 50%,transparent 85%);animation:ctt-sweep var(--ctt-st) ease-in-out infinite;animation-delay:var(--ctt-sd,0s)}
@keyframes ctt-sweep{0%{left:-90%}26%{left:135%}100%{left:135%}}
.ctt-r-common{--ctt-sc:rgba(255,255,255,.28);--ctt-st:9s}
.ctt-r-uncommon{--ctt-sc:rgba(255,255,255,.4);--ctt-st:7.5s}
.ctt-r-rare{--ctt-sc:rgba(255,255,255,.55);--ctt-st:6s}
.ctt-r-epic{--ctt-sc:rgba(255,255,255,.72);--ctt-st:4.5s}
.ctt-r-legendary,.ctt-r-trophy{--ctt-sc:rgba(255,222,130,.95);--ctt-st:3s}
.ctt-pl.emoji .ctt-sh{display:none}
.ctt-pl.emoji::after{content:'✦';position:absolute;right:-4px;top:-6px;font-size:14px;color:#ffe9a8;animation:ctt-twinkle 2.6s ease-in-out infinite}
@keyframes ctt-twinkle{0%,100%{opacity:0;scale:.6}50%{opacity:1;scale:1}}
/* keyboard: a real button over the picture, only visible when focused */
.ctt-kb{position:absolute;inset:0;opacity:0;pointer-events:none;border:0;background:none;padding:0;margin:0}
.ctt-kb:focus-visible{opacity:1;outline:3px solid var(--orange,#ff9a2e);outline-offset:3px;border-radius:10px}
.ctt-pl.wait{visibility:hidden}
.ctt-pl.hop{animation:ctt-hop .75s cubic-bezier(.3,1.5,.5,1)}
@keyframes ctt-hop{0%{transform:translateY(-40px) scale(.6);opacity:0}55%{opacity:1}100%{transform:none}}
.ctt-pl.gone{animation:ctt-poof .55s forwards}
.ctt-pl.fade{animation:ctt-fade .35s forwards}
@keyframes ctt-poof{0%{transform:none}35%{transform:translateY(-22px) scale(1.1)}100%{transform:translateY(-12px) scale(.12);opacity:0}}
@keyframes ctt-fade{to{opacity:0;transform:scale(.8)}}

/* ---- little pop-up words, puffs, the Legendary burst ---- */
.ctt-toast{position:absolute;z-index:3;transform:translateX(-50%);font:700 12px/1.3 Inter,system-ui,sans-serif;background:#1a110a;border:1px solid var(--orange,#ff9a2e);color:#ffd9a8;border-radius:8px;padding:6px 10px;white-space:nowrap;pointer-events:none;animation:ctt-toast 1.9s forwards}
.ctt-toast.gst{border-color:#8f7b62;color:#e9dccb}
.ctt-toast a{pointer-events:auto;color:#ffb866}
.ctt-coin{position:absolute;z-index:3;transform:translateX(-50%);font:10px 'Press Start 2P',monospace;color:#ffd24a;background:rgba(20,16,10,.92);border:1px solid #ffd24a;border-radius:4px;padding:4px 7px;white-space:nowrap;pointer-events:none;animation:ctt-toast 1.3s forwards}
.ctt-coin.red{color:#ff8a8a;border-color:#ff4d4d}
@keyframes ctt-toast{0%{opacity:0;translate:0 6px}12%{opacity:1;translate:0 0}75%{opacity:1}100%{opacity:0;translate:0 -36px}}
.ctt-puff{position:absolute;width:90px;height:90px;transform:translate(-50%,-50%);border-radius:50%;border:3px solid rgba(255,217,168,.9);animation:ctt-puff .5s ease-out forwards;pointer-events:none}
@keyframes ctt-puff{0%{scale:.2;opacity:1}100%{scale:1.2;opacity:0}}
.ctt-star{position:absolute;pointer-events:none;font-size:18px;color:#ffd24a;text-shadow:0 0 8px rgba(255,200,60,.9);animation:ctt-burst .85s ease-out forwards}
@keyframes ctt-burst{0%{transform:translate(-50%,-50%) scale(.4);opacity:1}100%{transform:translate(calc(-50% + var(--bx)),calc(-50% + var(--by))) scale(1.1);opacity:0}}
.ctt-bit{position:absolute;width:7px;height:7px;border-radius:2px;background:#ff4d4d;pointer-events:none;animation:ctt-burst .55s ease-out forwards}

/* ---- Grump balls on top of the footer's brick wall (every page) ---- */
footer.foot{position:relative}
.ctt-lane{position:absolute;left:0;right:0;top:-100px;height:106px;overflow:hidden;z-index:16;pointer-events:none} /* clipped to the screen: a ball rolling off the edge never widens the page */
.ctt-ball{position:absolute;left:0;bottom:4px;width:64px;height:64px;padding:0;border:0;background:none;cursor:pointer;pointer-events:auto;will-change:transform}
.ctt-ball .ctt-shd{position:absolute;left:12%;right:12%;bottom:-4px;height:9px;border-radius:50%;background:radial-gradient(closest-side,rgba(0,0,0,.6),rgba(0,0,0,0));pointer-events:none}
.ctt-ball .ctt-spin{position:absolute;inset:0;border-radius:50%;background:url(/assets/gagpng.png) center/cover no-repeat;will-change:transform}
.ctt-ball.gold .ctt-spin{filter:sepia(1) saturate(6) hue-rotate(-15deg) brightness(1.25) drop-shadow(0 0 6px rgba(255,200,60,.85))}
.ctt-ball.snow .ctt-spin{filter:saturate(.25) brightness(1.55) contrast(.9)}
.ctt-ball.snow .ctt-spin::after{content:'';position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle at 30% 25%,rgba(255,255,255,.85) 0 3px,transparent 4px),radial-gradient(circle at 70% 70%,rgba(255,255,255,.7) 0 4px,transparent 5px),radial-gradient(circle at 75% 30%,rgba(255,255,255,.6) 0 2px,transparent 3px)}
.ctt-ball .ctt-hat{position:absolute;width:60%;left:30%;top:-34%;rotate:12deg;pointer-events:none;display:none}
.ctt-ball.snow .ctt-hat{display:block}
.ctt-ball:focus-visible{outline:3px solid var(--orange,#ff9a2e);outline-offset:3px;border-radius:50%}
.ctt-ball.pop{pointer-events:none}
.ctt-ball.pop .ctt-spin,.ctt-ball.pop .ctt-shd,.ctt-ball.pop .ctt-hat{animation:ctt-bpop .38s ease-out forwards}
@keyframes ctt-bpop{0%{scale:1;opacity:1}55%{scale:1.35;opacity:.75}100%{scale:.2;opacity:0}}
@media (max-width:700px){.ctt-ball{width:42px;height:42px}}

/* ---- Question Blocks (open space beside the page on wide screens, else on the brick wall) ---- */
.ctt-qb{position:absolute;width:56px;height:56px;box-sizing:border-box;background:linear-gradient(180deg,#2a1a10,#170f08);border:3px solid #ff4d4d;box-shadow:inset 0 0 0 2px rgba(255,77,77,.35),0 4px 10px rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;font:22px/1 'Press Start 2P',monospace;color:#ff4d4d;text-shadow:0 0 8px rgba(255,77,77,.65);cursor:pointer;padding:0;pointer-events:auto;animation:ctt-qglow 2.2s ease-in-out infinite}
@keyframes ctt-qglow{0%,100%{box-shadow:inset 0 0 0 2px rgba(255,77,77,.35),0 4px 10px rgba(0,0,0,.55)}50%{box-shadow:inset 0 0 0 2px rgba(255,77,77,.7),0 4px 14px rgba(255,77,77,.35)}}
.ctt-qb.bA{animation:ctt-qglow 2.2s ease-in-out infinite,ctt-bumpA .32s ease-out}
.ctt-qb.bB{animation:ctt-qglow 2.2s ease-in-out infinite,ctt-bumpB .32s ease-out}
@keyframes ctt-bumpA{0%{transform:none}35%{transform:translateY(-12px) scale(1.06)}60%{transform:translateY(2px) scale(.95)}100%{transform:none}}
@keyframes ctt-bumpB{0%{transform:none}35%{transform:translateY(-12px) scale(1.06)}60%{transform:translateY(2px) scale(.95)}100%{transform:none}}
.ctt-qb.done{animation:ctt-qdone .3s ease-in forwards;pointer-events:none}
@keyframes ctt-qdone{40%{transform:scale(1.15)}100%{transform:scale(.3);opacity:0}}
.ctt-qb:focus-visible{outline:3px solid var(--orange,#ff9a2e);outline-offset:3px}
@media (max-width:700px){.ctt-qb{width:40px;height:40px;font-size:16px}}

/* the plushie that grows out of a Q-Block, then drops onto the wall */
.ctt-pl.sprout{animation:ctt-sprout 1.6s cubic-bezier(.45,.05,.55,1) both}
@keyframes ctt-sprout{0%{transform:translate(var(--sx),var(--sy)) scale(.3);opacity:0}10%{opacity:1}30%{transform:translate(var(--sx),calc(var(--sy) - 30px)) scale(1)}48%{transform:translate(calc(var(--sx) + var(--hx)),calc(var(--sy) - 52px))}100%{transform:none}}

/* ---- October: ghosts drifting in the open space, the pumpkin on the wall ---- */
.ctt-ghost{position:absolute;width:52px;height:58px;padding:0;border:0;background:none;cursor:pointer;pointer-events:auto;filter:drop-shadow(0 0 6px rgba(200,210,255,.5));animation:ctt-ghost var(--gt,16s) ease-in-out infinite;animation-delay:var(--gd,0s)}
.ctt-ghost img{width:100%;height:100%;object-fit:contain;opacity:.8;pointer-events:none}
.ctt-ghost.pumpkin{filter:drop-shadow(0 0 8px rgba(255,140,20,.95)) drop-shadow(0 0 22px rgba(255,100,0,.6))}
@keyframes ctt-ghost{0%,100%{translate:0 0}25%{translate:var(--gx) -18px}50%{translate:0 -6px}75%{translate:calc(var(--gx) * -.6) 10px}}
.ctt-ghost.gone{animation:ctt-poof .5s forwards;pointer-events:none}
.ctt-pumpkin{position:absolute;width:58px;height:58px;padding:0;border:0;background:none;cursor:pointer;pointer-events:auto;filter:drop-shadow(0 0 10px rgba(255,140,20,.7))}
.ctt-pumpkin img{width:100%;height:100%;object-fit:contain;pointer-events:none}

/* ---- Collection: caught plushies are plain cut-outs (Dan, Nov 24: no sweep, no disc, no glow; a soft shadow) ---- */
.cl-art .plushie-visual::after,.cl-sel-art .plushie-visual::after{display:none}
.cl-art .plushie-visual,.cl-sel-art .plushie-visual{background:none;border-radius:0;overflow:visible}
.cl-art .plushie-visual img,.cl-sel-art .plushie-visual img{border-radius:0}
.cl-art .plushie-visual,.cl-sel-art .plushie-visual,.cl-art [class*="plushie-glow-"],.cl-sel-art [class*="plushie-glow-"]{filter:drop-shadow(0 5px 4px rgba(0,0,0,.55))}

/* Calm (Settings) / reduced motion: everything sits still, still catchable */
html.v2-calm .ctt-sh{display:none}
