:root {
  --bg: #04070c;
  --bg-2: #0a1320;
  --card: rgba(14, 30, 48, 0.6);
  --border: rgba(0, 220, 255, 0.18);
  --cyan: #00dcff;
  --cyan-2: #5ff0ff;
  --teal: #2b7a99;
  --text: #e8f8ff;
  --muted: #8fb3c4;
  --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 80% 10%, rgba(0, 220, 255, 0.16), transparent 70%),
    radial-gradient(500px 500px at 0% 60%, rgba(43, 122, 153, 0.18), transparent 70%),
    radial-gradient(700px 400px at 50% 110%, rgba(0, 220, 255, 0.10), transparent 70%);
}

.grad {
  background: linear-gradient(90deg, var(--cyan), var(--cyan-2) 50%, #b8f6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 5vw, 64px);
  background: rgba(4, 7, 12, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--cyan);
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background: #000;
}

.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--cyan); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #00141a;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  box-shadow: 0 8px 30px rgba(0, 220, 255, 0.35);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0, 220, 255, 0.5); }
.btn-small { padding: 9px 20px; font-size: .95rem; }
.btn-ghost {
  background: transparent;
  color: var(--cyan);
  border: 2px solid var(--cyan);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(0, 220, 255, 0.1); box-shadow: none; }

/* ---------- HERO ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px clamp(16px, 5vw, 64px) 60px;
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(0, 220, 255, 0.1);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.pill::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 1.6s infinite;
}

h1 {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 20px;
}

.lead { color: var(--muted); font-size: 1.15rem; max-width: 540px; }
.lead.center { margin: 0 auto 32px; text-align: center; }

.ca-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 28px;
  padding: 10px 10px 10px 18px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  max-width: 600px;
}
.ca-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--cyan);
  font-weight: 600;
  flex-shrink: 0;
}
.ca-box code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .92rem;
  color: var(--text);
}
.copy-btn {
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-family: inherit;
  color: #00141a;
  background: var(--cyan);
  transition: background .2s;
}
.copy-btn:hover { background: var(--cyan-2); }

.hero-text { min-width: 0; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}
.ring {
  position: absolute;
  width: 92%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed rgba(0, 220, 255, 0.3);
  animation: spin 40s linear infinite;
}
.ring::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 220, 255, 0.22), transparent 70%);
}
.mascot {
  position: relative;
  width: 100%;
  max-width: 520px;
  filter: drop-shadow(0 20px 40px rgba(0, 220, 255, 0.35));
  animation: float 5s ease-in-out infinite;
}

/* ---------- MARQUEE ---------- */
.marquee {
  overflow: hidden;
  padding: 18px 0;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-2));
  transform: rotate(-1.5deg);
  margin: 20px -10px;
}
.marquee-track {
  display: flex;
  gap: 36px;
  width: max-content;
  animation: scroll 28s linear infinite;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #00141a;
  white-space: nowrap;
}

/* ---------- SECTIONS ---------- */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px clamp(16px, 5vw, 64px);
}
.section-title {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 48px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); border-color: var(--cyan); }
.card-icon {
  font-size: 2rem;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: rgba(0, 220, 255, 0.12);
  margin-bottom: 18px;
}
.card h3, .step h3 {
  font-family: "Fredoka", sans-serif;
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.card p, .step p { color: var(--muted); }

/* ---------- TOKEN ---------- */
.token-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}
.stat-wide { grid-column: 1 / -1; }
.stat-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}
.stat-value {
  font-family: "Fredoka", sans-serif;
  font-size: 1.7rem;
  font-weight: 600;
}
.stat-value.mono {
  font-family: ui-monospace, Menlo, monospace;
  font-size: clamp(.8rem, 2vw, 1.2rem);
  color: var(--cyan);
  word-break: break-all;
}

/* ---------- STEPS ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}
.step-num {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #00141a;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
}

/* ---------- COMMUNITY ---------- */
.community { text-align: center; }
.community .section-title { margin-bottom: 16px; }
.community-logo {
  width: 140px; height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--cyan);
  box-shadow: 0 0 50px rgba(0, 220, 255, 0.4);
  margin-bottom: 24px;
  background: #000;
}
.socials { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.social {
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 600;
  background: var(--card);
  border: 1px solid var(--border);
  transition: all .2s;
}
.social:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-3px); }

/* ---------- FOOTER ---------- */
.footer {
  text-align: center;
  padding: 40px 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .9rem;
}
.disclaimer { max-width: 640px; margin: 10px auto 0; font-size: .8rem; opacity: .7; }

/* ---------- ANIMATIONS ---------- */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes scroll { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 48px; }
  .hero-art { order: -1; max-width: 380px; margin: 0 auto; }
  .lead { margin: 0 auto; }
  .ca-box { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .cards, .steps { grid-template-columns: 1fr; }
  .token-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 480px) {
  .ca-label { display: none; }
  .btn { padding: 12px 22px; }
}

/* =========================================================
   WOW LAYER — animations & effects
   ========================================================= */

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: var(--bg);
  transition: opacity .7s ease, visibility .7s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-logo {
  width: 160px;
  animation: hop .7s ease-in-out infinite alternate;
  filter: drop-shadow(0 10px 30px rgba(0,220,255,.5));
}
.preloader-bar { width: 180px; height: 6px; border-radius: 99px; background: rgba(0,220,255,.12); overflow: hidden; }
.preloader-bar span {
  display: block; height: 100%; width: 40%; border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-2));
  animation: loadbar 1s ease-in-out infinite;
}
.preloader p { font-family: "Fredoka", sans-serif; color: var(--muted); letter-spacing: .05em; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50;
  background: linear-gradient(90deg, var(--cyan), #b8f6ff, var(--cyan));
  transform-origin: 0 50%; transform: scaleX(0);
  box-shadow: 0 0 12px var(--cyan);
}

/* ---------- Background canvas + cursor glow ---------- */
#bubbles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-glow { animation: glowshift 14s ease-in-out infinite alternate; }
.cursor-glow {
  position: fixed; top: -200px; left: -200px; z-index: 0;
  width: 400px; height: 400px; border-radius: 50%;
  pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(0,220,255,.13), transparent 65%);
  transition: opacity .4s;
}
main, .footer { position: relative; z-index: 1; }

/* ---------- Nav ---------- */
.nav { transition: padding .3s, background .3s, box-shadow .3s; }
.nav.scrolled { padding-top: 10px; padding-bottom: 10px; background: rgba(4,7,12,.9); box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.nav-links a { position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--cyan); border-radius: 2px;
  transform: scaleX(0); transition: transform .3s;
}
.nav-links a:hover::after { transform: scaleX(1); }
.brand-logo { transition: transform .5s; }
.brand:hover .brand-logo { transform: rotate(-15deg) scale(1.1); }

/* ---------- Animated gradient text ---------- */
.grad-anim {
  background: linear-gradient(90deg, var(--cyan), #b8f6ff, #ffffff, var(--cyan-2), var(--cyan));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}

/* ---------- Intro (hero) animations ---------- */
h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
h1 .line > .intro { display: inline-block; }
.intro {
  opacity: 0; transform: translateY(40px);
  transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--d, 0s);
}
h1 .line > .intro { transform: translateY(110%); }
body.loaded .intro { opacity: 1; transform: none; }

/* ---------- Shine buttons ---------- */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.7), transparent);
  transform: skewX(-20deg);
  animation: shine 3.5s ease-in-out infinite;
}
.copy-btn:active { transform: scale(.92); }

/* ---------- Hero art ---------- */
.hero-art {
  --px: 0px; --py: 0px; --rx: 0deg;
  aspect-ratio: 1;
  max-width: 560px; width: 100%; margin-left: auto;
  container-type: inline-size;
}
.ring { width: 92%; }
.ring-2 {
  width: 76%;
  border: 1px solid rgba(0,220,255,.18);
  animation: spin 25s linear infinite reverse;
}
.ring-2::after { display: none; }
.mascot {
  position: absolute; left: 50%; top: 50%;
  width: 86%; max-width: none;
  cursor: pointer;
  translate: calc(-50% + var(--px)) calc(-50% + var(--py));
  rotate: var(--rx);
  transition: translate .3s ease-out, rotate .3s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.mascot.stomp { animation: stomp .6s cubic-bezier(.3,1.6,.5,1), float 5s ease-in-out .6s infinite; }

.orbit { position: absolute; inset: 0; z-index: 2; animation: spin 30s linear infinite; pointer-events: none; }
.orbit-chip {
  position: absolute; top: 50%; left: 50%;
  padding: 7px 14px; border-radius: 999px;
  font-size: .85rem; font-weight: 600; white-space: nowrap;
  background: rgba(10, 25, 40, .85); border: 1px solid var(--border);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 24px rgba(0,220,255,.2);
  transform: rotate(var(--a)) translateY(-46cqw) rotate(calc(-1 * var(--a)));
  translate: -50% -50%;
  animation: counter-spin 30s linear infinite;
}
.tap-hint {
  position: absolute; z-index: 3; bottom: 4%; left: 50%; translate: -50% 0;
  font-size: .8rem; color: var(--muted);
  padding: 4px 12px; border-radius: 999px; background: rgba(0,220,255,.08);
  animation: bob 2s ease-in-out infinite;
  transition: opacity .4s;
}
.tap-hint.gone { opacity: 0; }
.ripple {
  position: absolute; left: 50%; top: 55%; width: 40px; height: 40px;
  border-radius: 50%; border: 3px solid var(--cyan);
  translate: -50% -50%;
  animation: ripple 1s ease-out forwards; pointer-events: none;
}
body.shake main { animation: shake .45s ease; }

.burst {
  position: fixed; z-index: 200; pointer-events: none; font-size: 1.6rem;
  translate: -50% -50%;
  animation: burst 1.1s cubic-bezier(.2,.8,.3,1) forwards;
}

/* ---------- Marquee ---------- */
.marquee-wrap { position: relative; margin: 30px 0; padding: 30px 0; overflow: hidden; }
.marquee { margin: 0 -20px; box-shadow: 0 10px 40px rgba(0,220,255,.25); }
.marquee-alt {
  background: #071824; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  transform: rotate(1.5deg); margin-top: -12px; box-shadow: none;
}
.marquee-alt .marquee-track { color: var(--cyan); }
.marquee-track.reverse { animation-direction: reverse; animation-duration: 34s; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(50px) scale(.97);
  transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
  transition-delay: var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: none; }
.tilt.visible { transition: transform .15s ease-out, border-color .25s, opacity .9s; transition-delay: 0s; }

/* ---------- Card spotlight ---------- */
.card, .stat, .step { position: relative; overflow: hidden; --mx: 50%; --my: 50%; }
.card::before, .stat::before, .step::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(0,220,255,.16), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.card:hover::before, .stat:hover::before, .step:hover::before { opacity: 1; }
.card:hover, .stat:hover, .step:hover { border-color: rgba(0,220,255,.6); }
.card-icon { transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.card:hover .card-icon { transform: scale(1.2) rotate(-10deg); }
.step-num { box-shadow: 0 0 0 0 rgba(0,220,255,.6); animation: numpulse 2.4s infinite; }
.step:nth-child(2) .step-num { animation-delay: .6s; }
.step:nth-child(3) .step-num { animation-delay: 1.2s; }
.step:nth-child(4) .step-num { animation-delay: 1.8s; }

/* ---------- Waves ---------- */
.waves { height: 110px; margin-bottom: -2px; overflow: hidden; }
.waves svg { width: 150%; height: 100%; display: block; }
.wave { animation: wavemove 10s linear infinite; }
.w1 { fill: rgba(0,220,255,.10); }
.w2 { fill: rgba(0,220,255,.16); animation-duration: 14s; animation-direction: reverse; }
.w3 { fill: #061522; animation-duration: 18s; }
.section-band {
  max-width: none;
  background: linear-gradient(180deg, #061522, rgba(6,21,34,0));
}
.section-band .section-title, .section-band .token-grid { max-width: 1072px; margin-left: auto; margin-right: auto; }
.section-band .section-title { margin-bottom: 48px; }

/* ---------- Community ---------- */
.community-logo-wrap { position: relative; display: inline-block; margin-bottom: 24px; }
.community-logo { margin-bottom: 0; position: relative; z-index: 1; animation: float 5s ease-in-out infinite; }
.pulse-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--cyan);
  animation: pulsering 2s ease-out infinite;
}
.social { position: relative; overflow: hidden; }
.social::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(0,220,255,.25), transparent 70%);
  transform: translateX(-100%); transition: transform .6s;
}
.social:hover::after { transform: translateX(100%); }

/* ---------- Keyframes ---------- */
@keyframes hop { from { transform: translateY(0) scale(1, 1); } to { transform: translateY(-24px) scale(.98, 1.02); } }
@keyframes loadbar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@keyframes glowshift { from { filter: hue-rotate(0deg); transform: scale(1); } to { filter: hue-rotate(25deg); transform: scale(1.1); } }
@keyframes shimmer { to { background-position: 300% 0; } }
@keyframes shine { 0%, 60% { left: -75%; } 100% { left: 130%; } }
@keyframes counter-spin { to { rotate: -360deg; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes stomp {
  0% { transform: translateY(0); }
  35% { transform: translateY(-50px) scale(1.04, .96); }
  70% { transform: translateY(0) scale(1.08, .9); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes shake {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-6px, 4px); }
  40% { transform: translate(6px, -4px); }
  60% { transform: translate(-4px, 2px); }
  80% { transform: translate(3px, -2px); }
}
@keyframes ripple { to { width: 140%; height: 140%; opacity: 0; border-width: 1px; } }
@keyframes burst {
  0% { transform: translate(0,0) scale(.4) rotate(0); opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) scale(1.2) rotate(var(--r)); opacity: 0; }
}
@keyframes wavemove { to { transform: translateX(-33.33%); } }
@keyframes numpulse {
  0% { box-shadow: 0 0 0 0 rgba(0,220,255,.6); }
  70%,100% { box-shadow: 0 0 0 16px rgba(0,220,255,0); }
}
@keyframes pulsering { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 900px) {
  .hero-art { margin: 0 auto; max-width: 400px; }
  .orbit-chip { font-size: .75rem; padding: 5px 10px; }
}

/* ---------- Reduced motion: show everything, no movement ---------- */
@media (prefers-reduced-motion: reduce) {
  .intro, .reveal { opacity: 1 !important; transform: none !important; }
  .preloader { display: none; }
}

/* ---------- Meme Maker ---------- */
.meme-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 22px;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,.45), 0 0 60px rgba(0,220,255,.1);
}
.meme-stage { position: relative; }
#memeCanvas {
  display: block; width: 100%; height: auto; aspect-ratio: 1;
  border-radius: 18px;
  border: 2px solid rgba(0,220,255,.35);
  box-shadow: 0 0 40px rgba(0,220,255,.2);
  touch-action: none;
  background: #000;
}
#memeCanvas.dragging { cursor: grabbing !important; }
.meme-hint {
  position: absolute; left: 50%; bottom: 14px; translate: -50% 0;
  padding: 6px 14px; border-radius: 99px; font-size: .85rem;
  background: rgba(0,0,0,.6); color: #fff; pointer-events: none;
  animation: bob 2s ease-in-out infinite; transition: opacity .4s;
}
.meme-hint.gone { opacity: 0; }

.meme-controls { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ctrl-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ctrl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ctrl-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--cyan); font-weight: 600; }
.ctrl-input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  font: 600 1rem "Inter", sans-serif; color: var(--text);
  background: rgba(0,0,0,.35); border: 1px solid var(--border);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.ctrl-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,220,255,.15); }

.bg-options { display: flex; flex-wrap: wrap; gap: 10px; }
.bg-btn {
  width: 52px; height: 52px; border-radius: 14px; cursor: pointer;
  background-size: cover; background-position: center;
  border: 2px solid transparent; outline: 1px solid var(--border);
  transition: transform .2s, border-color .2s;
}
.bg-btn:hover { transform: translateY(-3px); }
.bg-btn.active { border-color: var(--cyan); box-shadow: 0 0 16px rgba(0,220,255,.5); }
.bg-upload {
  display: grid; place-items: center; font-size: 1.3rem; color: var(--cyan);
  background: rgba(0,220,255,.08); border-style: dashed; border-color: rgba(0,220,255,.5);
}

.swatches { display: flex; gap: 10px; }
.swatch {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  background: var(--c); border: 3px solid rgba(255,255,255,.15);
  transition: transform .2s;
}
.swatch:hover { transform: scale(1.12); }
.swatch.active { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,220,255,.25); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: rgba(0,220,255,.18); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); cursor: pointer; }

.ctrl-toggles { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 99px; cursor: pointer;
  font: 600 .9rem "Inter", sans-serif; color: var(--text);
  background: rgba(0,0,0,.3); border: 1px solid var(--border);
  transition: border-color .2s, color .2s;
}
.chip-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.chip-btn.check input { accent-color: var(--cyan); width: 16px; height: 16px; }

.meme-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.meme-actions .btn { border: none; cursor: pointer; font-family: "Fredoka", sans-serif; }
.meme-actions .btn-ghost { border: 2px solid var(--cyan); }

@media (max-width: 900px) {
  .meme-wrap { grid-template-columns: 1fr; padding: 14px; }
}
@media (max-width: 420px) {
  .ctrl-row { grid-template-columns: 1fr; }
  .meme-actions .btn { flex: 1; text-align: center; padding: 12px 14px; white-space: nowrap; font-size: .95rem; }
}
