/* The body and relaxed arm tuck behind the sidebar; the gaze reaches the cards. */
.peep-stage{height:300px;position:relative}
.peep-character{
  position:fixed;left:calc(var(--sidebar) - 220px);top:64px;
  width:440px;height:440px;z-index:8;pointer-events:none;
  transform-origin:50% 75%;transform:rotate(28deg);transition:left .25s;
}
.peep-character #peep-face{display:block;position:relative;width:100%;height:100%;object-fit:contain;
  clip-path:polygon(0 0,75% 0,75% 54%,71.7% 63%,69.2% 72%,69.7% 81%,64% 100%,0 100%)}
.peep-resting-arm{position:absolute;inset:0;width:100%;height:100%}
#peep-eye-left,#peep-eye-right{position:absolute;width:0;height:0}
#peep-eye-left{left:42.2%;top:29.5%}
#peep-eye-right{left:60.8%;top:29.1%}
.peep-expression{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.peep-expression[hidden]{display:none}
.peep-gaze-layer{position:fixed;inset:0;width:100%;height:100%;overflow:hidden;pointer-events:none;z-index:9;opacity:0;transition:opacity .22s;stroke:none}
.peep-gaze-layer.is-visible{opacity:1}
.peep-gaze-layer.is-eye-closed{opacity:0;transition-duration:.065s}
.gaze-eye{opacity:1;transition:opacity .065s}
.gaze-eye.is-eye-closed{opacity:0}
.token-card.is-peep-focused{border-color:#e4c4ff;box-shadow:0 0 0 1px #dbc0ff55,0 0 32px #b28aff35}
.token-card.is-peep-focused img{filter:brightness(1.08) saturate(1.06)}
.peep-stage .welcome-banner{margin-left:clamp(270px,27%,390px);height:300px}
.peep-stage .hero-copy{max-width:580px}
.page:has(.peep-stage) .section-top{margin-top:28px;margin-bottom:24px}
@media(min-width:761px){.page:has(.peep-stage) .section-top>div:first-child{padding-left:60px}}
@media(max-width:1100px) and (min-width:761px){
  .peep-stage .welcome-banner{margin-left:195px;padding:28px;height:300px}
  .welcome-banner h1{font-size:42px}.welcome-banner p{font-size:12px}
}
@media(max-width:760px){
  .peep-stage{height:auto;padding-top:225px}
  .peep-character{position:absolute;left:-170px;top:-23px;width:300px;height:300px}
  .peep-stage .welcome-banner{margin-left:0;height:auto;min-height:245px}
  .peep-stage .welcome-banner .hero-copy{max-width:100%}
  .peep-stage .welcome-banner h1{font-size:40px}
}
.peep-expression.is-playing{animation:peep-expression var(--expression-duration,700ms) linear both}
@keyframes peep-expression{0%{opacity:0}12%{opacity:1}84%{opacity:1}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.peep-character,.peep-gaze-layer{transition:none}.peep-expression.is-playing{animation:none}}
/* A compact welcome panel gives the directory's search the leading role. */
.peep-stage{height:260px;display:flex;align-items:center}
.peep-stage .welcome-banner{height:150px;width:calc(100% - clamp(270px,27%,390px));padding:22px 26px;display:flex;align-items:center}
.welcome-banner::before{top:14px;right:24px;font-size:14px;opacity:.35}
.welcome-banner::after{display:none}
.welcome-content{width:100%;display:flex;align-items:center;gap:clamp(20px,3vw,48px);position:relative;z-index:2}
.welcome-intro{flex:0 0 auto}
.welcome-intro .eyebrow{font-size:9px;white-space:nowrap}
.welcome-intro h1{font-size:clamp(25px,2.4vw,35px);line-height:.96;letter-spacing:-1.7px;margin:12px 0 0}
.welcome-search{flex:1;min-width:0}
.hero-search{display:flex;align-items:center;gap:14px;height:58px;padding:0 15px 0 19px;border-radius:10px;border:1px solid #b99ad180;background:#0e0b14b8;color:#d3b9ed;box-shadow:0 6px 24px #10071945;transition:border-color .2s,box-shadow .2s,background .2s}
.hero-search:focus-within{border-color:#e5c3ff;background:#17101f;box-shadow:0 0 0 3px #ba8cff26,0 8px 28px #1007196b}
.hero-search svg{width:21px;height:21px;flex:none;stroke-width:1.8}
.hero-search-input-wrap{display:flex;align-items:center;flex:1;min-width:0;overflow:hidden}
.hero-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#fff;font-size:14px;font-weight:500}
.hero-search input::placeholder{color:#b6a7c0;opacity:1}
.search-accent{display:grid;place-items:center;width:31px;height:31px;flex:none;border-radius:7px;background:#f8c34b;color:#211326;font-size:17px;font-weight:700}
.welcome-search p{margin:9px 0 0;color:#bcacc8;font-size:10px;line-height:1.35}
.welcome-search p span{margin-left:10px;color:#e8c77e;font-size:9px;font-weight:700;letter-spacing:.25px;white-space:nowrap}
@media(max-width:1100px) and (min-width:761px){
  .peep-stage .welcome-banner{height:150px;padding:20px}
  .welcome-content{gap:18px}.welcome-intro h1{font-size:25px}
  .welcome-search p span{display:none}
}
@media(max-width:760px){
  .peep-stage{height:auto;display:block;padding-top:225px}
  .peep-stage .welcome-banner{width:100%;min-height:0;height:auto;padding:20px}
  .welcome-content{display:block}.welcome-intro h1{font-size:25px;line-height:1;margin:8px 0 16px}
  .welcome-intro h1 br{display:none}.hero-search{height:54px}
  .welcome-search p span{display:none}
}
@media(max-width:760px){.peep-stage .welcome-banner .welcome-intro h1{font-size:23px;letter-spacing:-1.2px}}
/* Search and a reserved square for a future sponsor. */
.stage-content{display:grid;grid-template-columns:minmax(0,1fr) 150px;align-items:center;gap:clamp(24px,4.5vw,80px);margin-left:clamp(145px,10vw,165px);width:calc(100% - clamp(145px,10vw,165px));min-width:0}
.peep-stage .stage-content .welcome-banner{width:100%;margin-left:0;min-width:0}
.mhub-spot-search{height:150px;width:150px;position:relative;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;padding:16px;border:1px dashed #8a6c9a;border-radius:12px;background:radial-gradient(circle at 90% 0,#58375b66,transparent 60%),#161219;color:#a89aae}
.mhub-spot-spark{position:absolute;top:14px;right:15px;color:#d2b0ed;font-size:18px}
.mhub-spot-label{font-size:9px;letter-spacing:1.35px;font-weight:700;color:#dab8ef}
.mhub-spot-copy{margin-top:7px;font:600 13px/1.3 'Space Grotesk',sans-serif;color:#c5b9ca}
@media(max-width:1100px) and (min-width:761px){
  .stage-content{grid-template-columns:minmax(0,1fr) 110px;gap:20px;margin-left:140px;width:calc(100% - 140px)}
  .mhub-spot-search{width:110px;height:110px;padding:11px}.mhub-spot-copy{font-size:11px}
  .stage-content .welcome-content{display:block}.stage-content .welcome-intro{display:flex;align-items:center;gap:10px;margin-bottom:10px}
  .stage-content .welcome-intro .eyebrow{font-size:8px}.stage-content .welcome-intro h1{font-size:17px;letter-spacing:-.7px;line-height:1;margin:0}
  .stage-content .welcome-intro h1 br{display:none}.stage-content .hero-search{height:46px}.stage-content .welcome-search p{display:none}
}
@media(max-width:760px){
  .stage-content{display:flex;flex-direction:column;align-items:stretch;gap:14px;margin-left:0;width:100%}
  .mhub-spot-search{width:110px;height:110px;padding:11px;align-self:flex-end}.mhub-spot-copy{font-size:11px}
}
@media(max-width:930px) and (min-width:761px){.stage-content .welcome-intro .eyebrow{display:none}}

/* Gold lightning and little PEEP-pink hearts celebrate the sponsor without covering its content. */
:is(.mhub-spot-search,.mhub-spot-sidebar){overflow:visible;transition:border-color .25s,box-shadow .25s}
:is(.mhub-spot-search,.mhub-spot-sidebar) .mhub-spot-label,:is(.mhub-spot-search,.mhub-spot-sidebar) .mhub-spot-copy,:is(.mhub-spot-search,.mhub-spot-sidebar) .mhub-spot-spark{position:relative;z-index:1}
:is(.mhub-spot-search,.mhub-spot-sidebar) .mhub-spot-spark{position:absolute}
:is(.mhub-spot-search,.mhub-spot-sidebar):is(:hover,:focus-within,.is-peep-focused){border-color:#ffdb85;box-shadow:0 0 0 1px #ffda8059,0 0 14px #ffca5f42,0 0 28px #d59a3630}
.mhub-spot-celebration{position:absolute;inset:-5px;z-index:2;display:block;opacity:0;pointer-events:none;transition:opacity .25s ease}
.mhub-spot-lightning{position:absolute;inset:0;width:100%;height:100%;overflow:visible;fill:none;stroke:#ffda77;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 3px #ffca60)}
.mhub-spot-lightning path{vector-effect:non-scaling-stroke;stroke-dasharray:25 12;opacity:.9}
.mhub-spot-lightning path:nth-child(even){stroke:#fff0ad;stroke-dasharray:17 15}
.mhub-spot-confetti{position:absolute;inset:0;pointer-events:none}
.mhub-spot-confetti i{position:absolute;left:var(--x);top:var(--y);display:block;color:#ffe69b;font:normal var(--size,13px)/1 sans-serif;opacity:0;text-shadow:0 0 8px #ffd16b99;pointer-events:none}
.mhub-spot-confetti i::before{content:'✦'}
.mhub-spot-confetti i:nth-child(even){color:#f76cbd;text-shadow:0 0 8px #f76cbd99}
.mhub-spot-confetti i:nth-child(even)::before{content:'♥'}
.mhub-spot-confetti i:nth-child(1){--x:0%;--y:24%;--dx:-13px;--dy:-15px;--delay:-.4s;--size:13px}
.mhub-spot-confetti i:nth-child(2){--x:10%;--y:3%;--dx:-8px;--dy:-18px;--delay:-1.3s;--size:12px}
.mhub-spot-confetti i:nth-child(3){--x:38%;--y:-2%;--dx:-4px;--dy:-17px;--delay:-2.1s;--size:11px}
.mhub-spot-confetti i:nth-child(4){--x:77%;--y:1%;--dx:9px;--dy:-19px;--delay:-.9s;--size:13px}
.mhub-spot-confetti i:nth-child(5){--x:97%;--y:24%;--dx:12px;--dy:-14px;--delay:-1.8s;--size:14px}
.mhub-spot-confetti i:nth-child(6){--x:98%;--y:73%;--dx:13px;--dy:-13px;--delay:-.2s;--size:11px}
.mhub-spot-confetti i:nth-child(7){--x:76%;--y:96%;--dx:8px;--dy:13px;--delay:-1.4s;--size:12px}
.mhub-spot-confetti i:nth-child(8){--x:8%;--y:90%;--dx:-10px;--dy:12px;--delay:-2.3s;--size:12px}
:is(.mhub-spot-search,.mhub-spot-sidebar):is(:hover,:focus-within,.is-peep-focused) .mhub-spot-celebration{opacity:1}
:is(.mhub-spot-search,.mhub-spot-sidebar):is(:hover,:focus-within,.is-peep-focused) .mhub-spot-lightning path{animation:spot-electric-flow 2.8s linear infinite}
:is(.mhub-spot-search,.mhub-spot-sidebar):is(:hover,:focus-within,.is-peep-focused) .mhub-spot-lightning path:nth-child(even){animation-direction:reverse}
:is(.mhub-spot-search,.mhub-spot-sidebar):is(:hover,:focus-within,.is-peep-focused) .mhub-spot-confetti i{animation:spot-confetti-float 2.8s ease-out var(--delay) infinite}
@keyframes spot-electric-flow{to{stroke-dashoffset:-74}}
@keyframes spot-confetti-float{0%{opacity:0;transform:translate(0,0) scale(.45) rotate(-15deg)}22%{opacity:.95}70%{opacity:.8}100%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(1.05) rotate(16deg)}}
@media(prefers-reduced-motion:reduce){
  :is(.mhub-spot-search,.mhub-spot-sidebar),.mhub-spot-celebration{transition:none}
  :is(.mhub-spot-search,.mhub-spot-sidebar):is(:hover,:focus-within,.is-peep-focused) .mhub-spot-lightning path{animation:none;stroke-dasharray:none}
  :is(.mhub-spot-search,.mhub-spot-sidebar):is(:hover,:focus-within,.is-peep-focused) .mhub-spot-confetti i:nth-child(-n+4){animation:none;opacity:.85}
}
/* Match the HUB heading to the purple in the MemeHub logo. */
.welcome-intro h1 span{color:var(--purple)}
.welcome-search .image-total{color:#f7e4ff;font-weight:700}
/* Keep the image count visible as the search panel narrows. */
@media(max-width:1100px) and (min-width:761px){
  .peep-stage .stage-content .welcome-banner{height:auto;min-height:150px}
  .stage-content .welcome-search p{display:block}
}

/* Draw the gaze above the sidebar when it is focused on its own ad. */
.peep-gaze-layer.is-sidebar-target{z-index:13}
/* Keep the sidebar placement's rounded corners. */
.mhub-spot-sidebar{border-radius:8.44%}
