/* PUFFLEFUSH.XYZ — FULL ON CWAZY. Designed by the Fush himself. */
:root{
  --pond:#062a3a; --deep:#041a26; --aqua:#19c2d8; --fush:#8fb8ff; --fushdark:#2b4c9b;
  --pink:#ff4fa3; --yel:#ffd92e; --lime:#8dff57; --ink:#eafcff;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; font-family:"Trebuchet MS","Comic Sans MS",Verdana,sans-serif;
  color:var(--ink); background:
    radial-gradient(1200px 600px at 15% -5%, #0e5f74 0%, transparent 60%),
    radial-gradient(1000px 700px at 95% 10%, #7a1e5e 0%, transparent 55%),
    linear-gradient(180deg,var(--pond),var(--deep) 70%);
  overflow-x:hidden;
}
body.locked{overflow:hidden}
::selection{background:var(--pink); color:#fff}
a{color:var(--yel)}
h1,h2,h3{font-family:Impact,"Arial Black","Trebuchet MS",sans-serif; letter-spacing:.02em; margin:.2em 0}

/* ---------- bubbles backdrop ---------- */
.bubbles{position:fixed; inset:0; pointer-events:none; z-index:0; overflow:hidden}
.bubbles span{position:absolute; bottom:-60px; border-radius:50%;
  background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.75), rgba(140,220,255,.12) 60%);
  animation:rise linear infinite; opacity:.5}
@keyframes rise{to{transform:translateY(-115vh) translateX(30px)}}

/* ---------- marquees ---------- */
.marquee{position:relative; z-index:3; overflow:hidden; white-space:nowrap; background:var(--pink);
  color:#fff; font-family:Impact,"Arial Black",sans-serif; font-size:clamp(15px,2.4vw,24px);
  padding:.35em 0; border-block:4px solid #000; transform:rotate(-1.1deg) scale(1.02)}
.marquee.alt{background:var(--yel); color:#221; transform:rotate(.8deg) scale(1.02)}
.marquee .track{display:inline-block; padding-left:100%; animation:scrollx 26s linear infinite}
.marquee.alt .track{animation-duration:34s; animation-direction:reverse}
@keyframes scrollx{to{transform:translateX(-100%)}}

/* ---------- gate ---------- */
#gate{position:fixed; inset:0; z-index:100; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:20px; cursor:pointer;
  background:radial-gradient(800px 500px at 50% 30%, rgba(25,194,216,.35), transparent 70%),
             linear-gradient(160deg,#07304a,#0a1030 75%)}
#gate.gone{animation:gatebye .7s ease forwards}
@keyframes gatebye{to{transform:translateY(-110%) rotate(-3deg); opacity:.4}}
#gate .g-puffle{width:min(46vw,300px); border-radius:50%; border:6px solid #000; box-shadow:0 0 0 8px var(--yel),0 30px 60px rgba(0,0,0,.6);
  animation:bob 1.6s ease-in-out infinite}
@keyframes bob{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-16px) rotate(2deg)}}
#gate h1{font-size:clamp(38px,9vw,96px); color:var(--yel); text-shadow:4px 4px 0 var(--pink), 8px 8px 0 #000; margin:.15em 0 0}
#gate .tap{margin-top:18px; font-family:Impact,"Arial Black",sans-serif; font-size:clamp(22px,5vw,44px);
  background:var(--pink); color:#fff; border:5px solid #000; border-radius:999px; padding:.35em 1.1em;
  box-shadow:0 8px 0 #000; animation:pulse .8s ease-in-out infinite alternate}
@keyframes pulse{from{transform:scale(1) rotate(-1.5deg)}to{transform:scale(1.09) rotate(1.5deg)}}
#gate .fine{opacity:.75; font-size:13px; margin-top:14px; max-width:520px}

/* ---------- layout ---------- */
main{position:relative; z-index:2; max-width:1180px; margin:0 auto; padding:0 16px 120px}
section{margin:64px 0}
.sticker{display:inline-block; background:var(--yel); color:#221; font-family:Impact,"Arial Black",sans-serif;
  padding:.2em .7em; border:4px solid #000; border-radius:10px; box-shadow:5px 5px 0 #000; transform:rotate(-2deg)}
.sticker.pink{background:var(--pink); color:#fff; transform:rotate(1.6deg)}
.sticker.lime{background:var(--lime); color:#132; transform:rotate(-1deg)}

/* hero */
.hero{text-align:center; padding-top:34px}
.hero .puffle-wrap{position:relative; display:inline-block}
.hero img.puffle{width:min(72vw,430px); border-radius:50%; border:8px solid #000;
  box-shadow:0 0 0 10px var(--aqua), 0 34px 70px rgba(0,0,0,.55); animation:bob 2.2s ease-in-out infinite}
.drool{position:absolute; left:56%; top:64%; width:14px; height:14px; border-radius:50% 50% 60% 60%;
  background:radial-gradient(circle at 35% 30%, #dff7ff, #57b7ff); animation:drip 1.5s ease-in infinite}
@keyframes drip{0%{transform:translateY(0) scale(.6); opacity:0}25%{opacity:1}80%{transform:translateY(120px) scale(1); opacity:1}100%{transform:translateY(150px) scale(1.3,.5); opacity:0}}
.hero h1{font-size:clamp(44px,11vw,120px); line-height:.95; color:#fff;
  text-shadow:4px 4px 0 var(--fushdark), 8px 8px 0 var(--pink), 12px 12px 0 #000}
.hero h1 .fx{color:var(--yel); display:inline-block; animation:wob .9s ease-in-out infinite alternate}
@keyframes wob{from{transform:rotate(-2deg) scale(1)}to{transform:rotate(2.5deg) scale(1.05)}}
.hero .sub{font-size:clamp(17px,3vw,26px); max-width:760px; margin:10px auto}
.hero .facts{display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:18px}
.fact{background:rgba(0,0,0,.45); border:3px solid var(--aqua); border-radius:999px; padding:.35em 1em; font-weight:700}

/* cards */
.card{background:rgba(2,24,36,.78); border:4px solid #000; border-radius:22px; padding:26px;
  box-shadow:10px 10px 0 rgba(0,0,0,.55)}
.card h2{font-size:clamp(30px,5.5vw,54px); color:var(--yel); text-shadow:3px 3px 0 #000}
.card p{font-size:clamp(16px,2.2vw,20px); line-height:1.5}

/* player */
.player{display:grid; grid-template-columns:1fr; gap:16px}
.nowplay{display:flex; align-items:center; gap:16px; flex-wrap:nowrap}
.nowplay .disc{width:86px; height:86px; border-radius:50%; border:5px solid #000; object-fit:cover}
.playing .disc{animation:spin 5s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.bar{height:16px; background:#000; border-radius:999px; border:3px solid var(--aqua); overflow:hidden; cursor:pointer}
.bar i{display:block; height:100%; width:0%; background:linear-gradient(90deg,var(--aqua),var(--pink))}
.tracks{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:10px}
.tracks li{background:rgba(255,255,255,.06); border:3px solid #000; border-radius:14px; padding:10px 14px;
  cursor:pointer; font-weight:700; transition:transform .12s}
.tracks li:hover{transform:rotate(-1.2deg) scale(1.04); background:rgba(255,79,163,.25)}
.tracks li.on{background:var(--pink); color:#fff; transform:rotate(1deg)}
.ctl{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
button{font-family:Impact,"Arial Black",sans-serif; cursor:pointer; border:4px solid #000; border-radius:999px;
  background:var(--yel); color:#221; padding:.35em 1em; font-size:18px; box-shadow:0 5px 0 #000; transition:transform .1s}
button:active{transform:translateY(4px); box-shadow:0 1px 0 #000}
button.pink{background:var(--pink); color:#fff}
input[type=range]{accent-color:var(--pink); width:130px}

/* meme wall */
.wall{display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:16px}
.wall figure{margin:0; background:#fff; padding:8px 8px 26px; border:3px solid #000; border-radius:6px;
  box-shadow:7px 7px 0 rgba(0,0,0,.5); transition:transform .15s}
.wall figure:hover{transform:scale(1.12) rotate(0deg)!important; z-index:5; position:relative}
.wall img{width:100%; height:170px; object-fit:cover; display:block; border-radius:3px; background:#123}
.wall figcaption{color:#222; font-weight:800; font-size:13px; text-align:center; margin-top:6px}

/* buy */
.buygrid{display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:16px}
.buy{display:block; text-decoration:none; text-align:center; padding:26px 16px; border-radius:20px; border:5px solid #000;
  font-family:Impact,"Arial Black",sans-serif; font-size:clamp(22px,3.4vw,32px); color:#fff; box-shadow:8px 8px 0 #000;
  transition:transform .12s}
.buy:hover{transform:scale(1.05) rotate(-1deg)}
.buy small{display:block; font-family:"Trebuchet MS",sans-serif; font-weight:700; font-size:14px; margin-top:8px; opacity:.9}
.buy.fush{background:linear-gradient(140deg,#0e7d99,#19c2d8)}
.buy.splash{background:linear-gradient(140deg,#5b2ee5,#9b4dff)}
.buy.hunter{background:linear-gradient(140deg,#c2185b,#ff4fa3)}
.policy{word-break:break-all; background:#000; border:3px dashed var(--yel); border-radius:12px; padding:12px;
  font-family:Consolas,monospace; font-size:14px; margin-top:16px; cursor:pointer}

/* snek corner */
.throne{display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:22px; align-items:center}
.throne img{width:100%; border-radius:18px; border:6px solid var(--yel); box-shadow:0 0 0 4px #000, 0 24px 50px rgba(0,0,0,.6)}
.crown{font-size:52px; display:inline-block; animation:bob 1.8s ease-in-out infinite}

/* wet-o-meter */
#meter{position:fixed; right:12px; top:50%; transform:translateY(-50%); z-index:60; width:58px; text-align:center}
#meter .tube{height:230px; border:4px solid #000; border-radius:999px; background:rgba(0,0,0,.55); overflow:hidden;
  display:flex; flex-direction:column-reverse}
#meter .fill{width:100%; height:8%; background:linear-gradient(180deg,var(--aqua),#2b6cff); transition:height .6s}
#meter .lab{font-family:Impact,"Arial Black",sans-serif; font-size:11px; color:var(--yel); text-shadow:1px 1px 0 #000;
  writing-mode:vertical-rl; margin:6px auto 0}

/* ---------- floating puffle companion ----------
   FIXED GEOMETRY BY DESIGN: the companion, its menu and its now-playing slot
   are hard-sized. A track name can truncate/marquee inside its slot, but it
   can never resize or move anything. */
#companion{position:fixed; right:18px; bottom:18px; z-index:70; width:96px; height:96px}
#puffle-pal{position:relative; z-index:3; width:96px; height:96px; padding:0; border:none; background:none;
  box-shadow:none; border-radius:50%}
#puffle-pal:active{transform:none; box-shadow:none}
#puffle-pal .tilt{display:block; transition:transform .3s ease}
#puffle-pal .swim{display:block; position:relative; animation:swimidle 3.8s ease-in-out infinite}
#puffle-pal img{width:96px; height:96px; border-radius:50%; border:4px solid #000; display:block; object-fit:cover;
  box-shadow:0 0 0 4px var(--yel), 0 14px 30px rgba(0,0,0,.55)}
@keyframes swimidle{0%,100%{transform:translate(0,0) rotate(-3deg)}25%{transform:translate(-3px,-7px) rotate(2deg)}50%{transform:translate(0,-11px) rotate(-1deg)}75%{transform:translate(3px,-5px) rotate(3deg)}}
#companion.swimming #puffle-pal .swim{animation:swimfast .42s ease-in-out infinite}
@keyframes swimfast{0%,100%{transform:translateY(1px) rotate(-8deg)}50%{transform:translateY(-7px) rotate(8deg)}}
#puffle-pal .eq{position:absolute; left:50%; bottom:7px; transform:translateX(-50%); display:flex; gap:3px;
  align-items:flex-end; height:15px; background:rgba(0,0,0,.55); border-radius:6px; padding:2px 5px}
#puffle-pal .eq i{width:4px; height:5px; background:var(--lime); border-radius:2px}
#companion.playing .eq i{animation:eqb .7s ease-in-out infinite alternate}
#companion.playing .eq i:nth-child(2){animation-delay:.18s}
#companion.playing .eq i:nth-child(3){animation-delay:.36s}
@keyframes eqb{from{height:4px}to{height:12px}}
#cbubbles{position:absolute; inset:0; z-index:1; pointer-events:none}
#cbubbles span{position:absolute; bottom:55%; border-radius:50%;
  background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.8), rgba(140,220,255,.15) 60%);
  animation:cbub 1s ease-out forwards}
@keyframes cbub{to{transform:translateY(-64px); opacity:0}}

/* companion menu — fixed 220px wide, always */
.cmenu{position:absolute; z-index:4; right:0; bottom:calc(100% + 14px); width:220px; display:none;
  background:rgba(2,24,36,.94); border:4px solid #000; border-radius:18px; padding:12px;
  box-shadow:8px 8px 0 rgba(0,0,0,.5)}
.cmenu.open{display:block; animation:menupop .18s ease-out}
@keyframes menupop{from{transform:translateY(8px) scale(.92); opacity:0}}
.cmenu button,.cmenu .c-link{display:block; width:100%; margin-top:8px; text-align:center; font-size:16px}
.cmenu .c-link{font-family:Impact,"Arial Black",sans-serif; text-decoration:none; cursor:pointer;
  border:4px solid #000; border-radius:999px; background:var(--aqua); color:#062a3a; padding:.35em 1em; box-shadow:0 5px 0 #000}
.c-row{display:flex; gap:8px}
.c-row button{flex:1; padding:.35em .2em}
.cmenu .np{margin-bottom:2px}
.np-lab{font-size:11px; font-weight:800; letter-spacing:.08em; color:var(--aqua)}

/* now-playing name slots — fixed height/width; long names marquee inside */
.np-slot{width:100%; height:22px; overflow:hidden; white-space:nowrap}
.np-slot>span{display:inline-block; white-space:nowrap; font-weight:800; font-size:15px; will-change:transform}
.np-slot>span.mq{animation:namemarq 5.5s ease-in-out infinite alternate}
@keyframes namemarq{0%,12%{transform:translateX(0)}88%,100%{transform:translateX(calc(-1 * var(--overflow,0px)))}}
.np-slot-lg{height:34px}
.np-slot-lg>span{font-family:Impact,"Arial Black",sans-serif; font-size:26px; font-weight:400}
.np-meta{min-width:0; flex:1}
.np-by{opacity:.8; font-weight:700}

/* speech bubble above his head */
.speech{position:absolute; z-index:5; right:2px; bottom:calc(100% + 14px); width:236px; display:none;
  background:#fff; color:#123; border:4px solid #000; border-radius:16px; padding:10px 12px;
  font-weight:700; font-size:14px; line-height:1.35; box-shadow:6px 6px 0 rgba(0,0,0,.45)}
.speech.show{display:block; animation:menupop .18s ease-out}
.speech::after{content:""; position:absolute; right:34px; bottom:-13px; width:18px; height:18px;
  background:#fff; border-right:4px solid #000; border-bottom:4px solid #000; transform:rotate(45deg)}

/* fx layers */
#trail{position:fixed; inset:0; pointer-events:none; z-index:55}
.drop{position:absolute; width:11px; height:11px; border-radius:50% 50% 60% 60%;
  background:radial-gradient(circle at 35% 30%, #dff7ff, #3fa9ff); animation:dropfade .8s ease-out forwards}
@keyframes dropfade{to{transform:translateY(26px) scale(.4); opacity:0}}
body.scream{animation:shake .45s linear infinite}
@keyframes shake{0%{transform:translate(0)}25%{transform:translate(5px,-4px) rotate(.4deg)}50%{transform:translate(-5px,3px)}75%{transform:translate(4px,4px) rotate(-.4deg)}100%{transform:translate(0)}}
body.scream main{filter:hue-rotate(120deg) saturate(1.6)}
.pop{position:fixed; z-index:80; font-family:Impact,"Arial Black",sans-serif; color:var(--yel);
  text-shadow:3px 3px 0 var(--pink), 5px 5px 0 #000; pointer-events:none; animation:popfly 1.1s ease-out forwards}
@keyframes popfly{to{transform:translateY(-90px) rotate(6deg) scale(1.25); opacity:0}}

footer{position:relative; z-index:2; text-align:center; padding:34px 16px 130px; font-size:14px; opacity:.92}
footer .big{font-family:Impact,"Arial Black",sans-serif; font-size:clamp(20px,4vw,34px); color:var(--yel); opacity:1}
.xlinks{display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin:14px 0}
.xlinks a{background:#000; border:3px solid var(--aqua); border-radius:999px; padding:.4em 1.1em; font-weight:800; text-decoration:none}
@media (max-width:640px){ #meter{display:none} .wall{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))} .wall img{height:130px}
  #companion{width:74px; height:74px; right:12px; bottom:12px}
  #puffle-pal{width:74px; height:74px} #puffle-pal img{width:74px; height:74px}
  .cmenu{width:204px} .speech{width:208px; font-size:13px} }
@media (prefers-reduced-motion:reduce){ *{animation-duration:.01s!important; animation-iteration-count:1!important} }
