/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Neon palette brainrot */
  --ink: #f3fff8;
  --bg: #0b0b12;
  --acid: #8aff00;
  --hot: #ff3bd4;
  --cyan: #00f6ff;
  --sun: #ffe600;
  --vio: #8b5cff;

  /* Legacy tokens kept for compat */
  --primary-color: var(--acid);
  --secondary-color: var(--vio);
  --bg-color: var(--bg);
  --fg-color: var(--ink);

  --title-font: "Bagel Fat One", system-ui, sans-serif;
  --text-font: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto,
    sans-serif;

  --radius: 22px;
  --shadow-neon: 0 0 0.5rem #fff0 inset, 0 0 2rem var(--acid),
    0 0 3.5rem var(--hot);
}

html,
body {
  height: 100%;
}
body {
  color: var(--ink);
  background: radial-gradient(
      1200px 600px at 10% -10%,
      #11ffee08,
      transparent 60%
    ),
    radial-gradient(900px 520px at 110% 20%, #ff3bd415, transparent 60%),
    linear-gradient(180deg, #090910 0%, #0b0b12 60%, #08080e 100%);
  font-family: var(--text-font);
  line-height: 1.45;
  overflow-x: hidden;
}

/* Grain / noise overlay */
.noise {
  position: fixed;
  inset: -2px;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.45;
  z-index: 0;
}

/* Floating blur blobs */
.blob {
  position: fixed;
  z-index: 0;
  filter: blur(40px);
  opacity: 0.6;
  pointer-events: none;
  border-radius: 50%;
}
.blob--1 {
  width: 42vmax;
  height: 42vmax;
  left: -15vmax;
  top: -10vmax;
  background: radial-gradient(closest-side, #35ff9918, transparent);
  animation: float1 16s ease-in-out infinite;
}
.blob--2 {
  width: 30vmax;
  height: 30vmax;
  right: -8vmax;
  top: 10vh;
  background: radial-gradient(closest-side, #ff3bd422, transparent);
  animation: float2 18s ease-in-out infinite;
}
.blob--3 {
  width: 28vmax;
  height: 28vmax;
  left: 10vw;
  bottom: -12vmax;
  background: radial-gradient(closest-side, #00f6ff22, transparent);
  animation: float3 22s ease-in-out infinite;
}

@keyframes float1 {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(30px);
  }
}
@keyframes float2 {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-25px) translateX(-20px);
  }
}
@keyframes float3 {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(35px);
  }
}

/* HERO */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 48px 18px 72px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.textContainer {
  display: grid;
  gap: 10px;
  place-items: center;
}

.title .top {
  font: 700 14px/1 var(--text-font);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #c9ffe2cc;
}
.title .big {
  display: block;
  margin-top: 6px;
  font-family: var(--title-font);
  font-weight: 400;
  font-size: clamp(38px, 8vw, 92px);
  line-height: 0.9;
  letter-spacing: 1px;
  background: conic-gradient(
    from 210deg at 50% 50%,
    var(--acid),
    var(--cyan),
    var(--hot),
    var(--sun),
    var(--acid)
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hueflow 8s ease-in-out infinite;
  text-shadow: 0 0 10px #ffffff10;
}
@keyframes hueflow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.subtitle {
  color: #c7fbe9;
  opacity: 0.9;
  font-size: clamp(14px, 2.4vw, 18px);
}

.chips {
  display: flex;
  gap: 10px;
  list-style: none;
  margin-top: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.chip {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: #0c0f12;
  background: linear-gradient(180deg, #fff 0%, #d6ffe2 100%);
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: 0 6px 0 #0d3, inset 0 0 0 2px #00000010;
  transform: rotate(calc(var(--r, 0) * 1deg));
}
.chip:nth-child(2) {
  --r: -2;
}
.chip:nth-child(3) {
  --r: 1.5;
}

/* Button – squishy neon */
.randomBtn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 14px 22px;
  border-radius: 999px;
  border: 2px solid #142a1a;
  background: radial-gradient(120% 160% at 10% 10%, #1aff9a30, transparent 60%),
    linear-gradient(180deg, #1aff9a, #0fd174);
  color: #07160e;
  font: 800 1rem/1 var(--text-font);
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 14px 30px #00ff9c25, 0 3px 0 #0a8f53;
  transition: transform 0.12s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.randomBtn .btn-emoji {
  transform: translateY(1px);
}
.randomBtn .shine {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    120px 60px at 20% 10%,
    #ffffff66,
    transparent 50%
  );
  mix-blend-mode: overlay;
  pointer-events: none;
}
.randomBtn:hover {
  transform: translateY(-2px) rotate(-0.4deg);
  box-shadow: 0 18px 36px #00ff9c33, 0 4px 0 #0a8f53;
}
.randomBtn:active {
  transform: translateY(1px) scale(0.98);
}

/* Sticker card for the character */
.sticker {
  --border: 3px;
  width: min(720px, 92vw);
  margin-top: 8px;
  background: #0f1118ee;
  border-radius: calc(var(--radius) + 6px);
  position: relative;
  padding: 26px 22px 28px;
  box-shadow: 0 2px 0 #000 inset, 0 0 0 var(--border) #000,
    0 22px 60px #00000080;
}
.sticker::before {
  /* funky border */
  content: "";
  position: absolute;
  inset: -6px;
  background: repeating-conic-gradient(
      from 0deg,
      var(--acid) 0 10deg,
      transparent 10deg 20deg
    ),
    repeating-conic-gradient(
      from 8deg,
      var(--hot) 0 10deg,
      transparent 10deg 20deg
    );
  border-radius: calc(var(--radius) + 10px);
  filter: blur(12px) saturate(1.2);
  opacity: 0.35;
  z-index: -1;
}

/* Character content (kept classes) */
#brainrotContainer {
  display: grid;
  place-items: center;
  gap: 30px;
  text-align: center;
}
.characterName {
  font-family: var(--title-font);
  font-weight: 400;
  font-size: clamp(26px, 6vw, 42px);
  line-height: 1;
  background: linear-gradient(45deg, var(--vio), var(--acid));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 0 #0007;
  animation: pop 0.35s ease both;
}
@keyframes pop {
  from {
    transform: translateY(18px) scale(0.96);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.characterImage {
  width: min(320px, 70vw);
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 28%;
  box-shadow: 0 0 0 6px #0a0d12, 0 0 0 10px #1a1f2a, 0 18px 40px #0009;
  transition: transform 0.2s ease, filter 0.2s ease;
  animation: pop 0.45s 0.05s ease both;
}
#brainrotContainer:hover .characterImage {
  transform: rotate(-2.5deg) scale(1.03);
  filter: saturate(1.1);
}

.characterDescription {
  max-width: 56ch;
  font-size: 0.95rem;
  color: #eafff7;
  opacity: 0.92;
  background: none;
  -webkit-text-fill-color: currentColor;
  animation: pop 0.55s 0.06s ease both;
}
.placeholder {
  opacity: 0.7;
  font-style: italic;
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .blob,
  .shine {
    display: none !important;
  }
}
