/* ============ THE GLAM ARCADE (glam.js companion) ============ */
#glam{background:linear-gradient(#050505,#0a1206 55%,#050505)}
.gl-wrap{max-width:1080px;margin:0 auto;display:flex;flex-direction:column;gap:30px}
.gl-panel{
  background:#0a0a0a;border:2px solid #241019;border-radius:18px;
  padding:26px;position:relative;overflow:hidden;
}
.gl-panel h3{
  font-family:'Bungee',cursive;font-size:20px;letter-spacing:2px;margin-bottom:4px;
  background:linear-gradient(180deg,#fff 5%,#d9d9d9 22%,#5f5f5f 46%,#f6f6f6 56%,#333 78%,#dedede 96%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.gl-panel .gl-sub{color:#9a8f96;font-size:14px;margin-bottom:18px;font-family:'Space Grotesk',sans-serif}
.gl-duo{display:grid;grid-template-columns:1fr;gap:30px}
@media(min-width:900px){.gl-duo{grid-template-columns:1.25fr .75fr}}

/* pixel button */
.gl-btn{
  font-family:'Press Start 2P',monospace;font-size:10px;letter-spacing:1px;
  background:var(--slime);color:#000;border:3px solid #000;border-radius:8px;
  padding:12px 16px;box-shadow:0 0 0 2px var(--slime),0 6px 18px rgba(79,232,8,.35);
  cursor:pointer;transition:transform .12s;
}
.gl-btn:hover{transform:translateY(-2px)}
.gl-btn.gl-ghost{background:#111;color:#fff;box-shadow:0 0 0 2px #3a3a3a}
.gl-btn.gl-ghost:hover{box-shadow:0 0 0 2px var(--slime);color:var(--slime)}
.gl-btn:disabled{opacity:.4;cursor:not-allowed;transform:none}

/* ============ A) JUNK'D CAM ============ */
.gl-cam-flex{display:flex;gap:28px;flex-wrap:wrap;align-items:flex-start}
.gl-cam-body{
  flex:0 0 320px;max-width:100%;margin:0 auto;
  background:linear-gradient(165deg,#1c1c1c,#050505 60%);
  border:3px solid #000;outline:2px solid #2c2c2c;border-radius:26px;
  padding:18px 18px 22px;position:relative;
  box-shadow:0 24px 60px rgba(0,0,0,.7), inset 0 2px 0 rgba(255,255,255,.08);
}
.gl-cam-top{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.gl-lens{
  width:52px;height:52px;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#5a5a5a,#0a0a0a 55%);
  border:3px solid #000;outline:2px solid #444;
  position:relative;
}
.gl-lens::after{content:"";position:absolute;left:12px;top:9px;width:12px;height:8px;border-radius:50%;background:rgba(255,255,255,.55);transform:rotate(-25deg)}
.gl-flashdot{
  width:20px;height:20px;border-radius:6px;
  background:radial-gradient(circle at 40% 35%,#fff,#c9c9c9 60%,#8e8e8e);
  border:2px solid #000;
}
.gl-flashdot.gl-charging{animation:gl-charge 1s steps(2) infinite}
@keyframes gl-charge{50%{background:var(--slime)}}
.gl-cam-brand{
  margin-left:auto;font-family:'Permanent Marker',cursive;color:var(--slime);
  font-size:15px;transform:rotate(-3deg);
}
.gl-instax{
  background:#f6f4ef;border-radius:10px;padding:8% 8% 22%;
  box-shadow:0 10px 30px rgba(0,0,0,.55);
  position:relative;
}
.gl-viewport{
  aspect-ratio:3/4;background:#0e0e0e;position:relative;overflow:hidden;border-radius:2px;
}
.gl-viewport video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}
.gl-viewport .gl-off{
  position:absolute;inset:0;display:grid;place-items:center;text-align:center;
  color:#5c5c5c;font-family:'Press Start 2P',monospace;font-size:9px;line-height:2;padding:14px;
}
.gl-count{
  position:absolute;inset:0;display:none;place-items:center;z-index:4;
  font-family:'Press Start 2P',monospace;font-size:64px;color:#fff;
  text-shadow:0 0 24px var(--slime);background:rgba(0,0,0,.25);
}
.gl-flash-ov{position:absolute;inset:0;background:#fff;opacity:0;pointer-events:none;z-index:5}
.gl-flash-ov.gl-pop{animation:gl-flashpop .35s}
@keyframes gl-flashpop{0%{opacity:1}100%{opacity:0}}
.gl-instax-tag{
  position:absolute;left:0;right:0;bottom:6%;text-align:center;
  font-family:'Permanent Marker',cursive;color:#2b2b2b;font-size:18px;
}
.gl-cam-controls{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:16px}
.gl-slot{
  height:8px;background:#000;border-radius:4px;margin-top:16px;
  box-shadow:inset 0 2px 4px rgba(255,255,255,.12);
}
.gl-gallery{
  flex:1;min-width:260px;display:flex;flex-wrap:wrap;gap:14px;align-content:flex-start;
}
.gl-shot{
  width:132px;background:#f6f4ef;padding:8px 8px 10px;border-radius:4px;
  box-shadow:0 10px 26px rgba(0,0,0,.6);
  animation:gl-develop 1.6s ease both;position:relative;
}
.gl-shot img{width:100%;border-radius:2px;display:block}
.gl-shot .gl-save{
  width:100%;margin-top:6px;font-family:'Press Start 2P',monospace;font-size:8px;
  background:#111;color:#fff;border:2px solid #000;border-radius:4px;padding:6px;cursor:pointer;
}
.gl-shot .gl-save:hover{color:var(--slime)}
@keyframes gl-develop{
  0%{transform:translateY(26px) rotate(0);filter:brightness(.15) saturate(.2);opacity:0}
  30%{opacity:1}
  100%{transform:translateY(0) rotate(var(--tilt,-2deg));filter:none}
}
.gl-hint{font-family:'Press Start 2P',monospace;font-size:8px;color:#6f6169;letter-spacing:1px;margin-top:10px;text-align:center;line-height:1.9}

/* ============ B) BUILD-A-JUNK ============ */
.gl-builder-flex{display:flex;gap:22px;flex-wrap:wrap;justify-content:center}
.gl-stage-bg{
  flex:0 0 auto;padding:22px;border-radius:16px;
  background:url(assets/leopard.jpg) center/280px;
  border:3px solid #000;box-shadow:inset 0 0 0 2px rgba(0,0,0,.4);
}
.gl-case{
  width:240px;height:480px;border-radius:38px;position:relative;overflow:hidden;
  background:linear-gradient(155deg,#232323,#0a0a0a 45%,#161616 80%);
  border:3px solid #3c3c3c;outline:3px solid #000;
  box-shadow:inset 0 0 30px rgba(0,0,0,.8),0 20px 44px rgba(0,0,0,.55);
  touch-action:none;cursor:crosshair;
}
.gl-case::before{
  content:"";position:absolute;left:16px;top:16px;width:74px;height:74px;border-radius:22px;
  background:#050505;border:2px solid #444;
  box-shadow:inset 0 0 0 4px #111;
}
.gl-case::after{
  content:"";position:absolute;left:26px;top:26px;width:22px;height:22px;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#3f5a72,#0a0a0a 65%);
}
.gl-charm{
  position:absolute;user-select:none;cursor:grab;line-height:1;
  filter:drop-shadow(0 3px 4px rgba(0,0,0,.6));
  animation:gl-plop .3s;z-index:2;touch-action:none;
}
.gl-charm.gl-sel{outline:2px dashed var(--slime);outline-offset:3px;border-radius:8px;z-index:3}
.gl-charm:active{cursor:grabbing}
@keyframes gl-plop{0%{transform:scale(0) rotate(40deg)}70%{transform:scale(1.25)}100%{transform:scale(1)}}
.gl-palette{
  display:grid;grid-template-columns:repeat(6,1fr);gap:6px;max-width:270px;
  align-content:flex-start;
}
.gl-palette button{
  font-size:24px;background:#141414;border:2px solid #2a2a2a;border-radius:10px;
  padding:8px 0;cursor:pointer;transition:.12s;
}
.gl-palette button:hover{border-color:var(--slime);transform:scale(1.12)}
.gl-charm-ctl{display:flex;gap:6px;margin-top:12px;justify-content:center;min-height:40px}
.gl-charm-ctl button{
  width:40px;height:36px;font-size:15px;background:#141414;color:#fff;
  border:2px solid #2a2a2a;border-radius:8px;cursor:pointer;
}
.gl-charm-ctl button:hover{border-color:var(--slime);color:var(--slime)}
.gl-builder-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:16px}
.gl-side{display:flex;flex-direction:column}

/* ============ C) SHAKE THE 8 ============ */
.gl-ball-zone{display:flex;flex-direction:column;align-items:center;gap:18px;padding-top:8px}
.gl-ball{
  width:190px;height:190px;border-radius:50%;cursor:pointer;position:relative;
  background:radial-gradient(circle at 32% 26%,#4a4a4a,#111 38%,#000 70%);
  box-shadow:0 24px 48px rgba(0,0,0,.7), inset 0 -14px 30px rgba(0,0,0,.8), inset 0 8px 18px rgba(255,255,255,.14);
  transition:transform .15s;
}
.gl-ball:hover{transform:scale(1.04)}
.gl-ball .gl-eight{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:74px;height:74px;border-radius:50%;background:#f2f2f2;
  display:grid;place-items:center;font-family:'Bungee',cursive;font-size:38px;color:#000;
  box-shadow:inset 0 -4px 8px rgba(0,0,0,.3);
}
.gl-ball .gl-window{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:120px;height:120px;border-radius:50%;background:#07001a;
  display:none;place-items:center;overflow:hidden;
  box-shadow:inset 0 0 22px #000;
}
.gl-ball.gl-answering .gl-eight{display:none}
.gl-ball.gl-answering .gl-window{display:grid}
.gl-tri{
  width:104px;height:92px;clip-path:polygon(50% 100%,0 0,100% 0);
  background:linear-gradient(var(--slime),#1d7a00);
  display:grid;place-items:center;padding:10px 16px 34px;
  animation:gl-float-in 1s ease both;
}
.gl-tri span{
  font-family:'Press Start 2P',monospace;font-size:7px;line-height:1.8;color:#fff;
  text-align:center;max-width:82px;
}
@keyframes gl-float-in{0%{transform:translateY(70px);opacity:0}100%{transform:none;opacity:1}}
.gl-ball.gl-shaking{animation:gl-shake .7s}
@keyframes gl-shake{
  0%,100%{transform:translate(0,0) rotate(0)}
  15%{transform:translate(-14px,4px) rotate(-9deg)}
  30%{transform:translate(12px,-6px) rotate(8deg)}
  45%{transform:translate(-10px,-4px) rotate(-6deg)}
  60%{transform:translate(9px,5px) rotate(5deg)}
  75%{transform:translate(-6px,2px) rotate(-3deg)}
}
.gl-ball-note{font-family:'Permanent Marker',cursive;color:#b48ba1;font-size:16px;transform:rotate(-2deg)}
