/* Noah’s Stuff — meme HQ vibes */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-deep: #0a0a12;
  --bg-card: rgba(18, 18, 32, 0.72);
  --neon-cyan: #00f5d4;
  --neon-magenta: #ff2d95;
  --neon-yellow: #ffe66d;
  --neon-purple: #9b5de5;
  --text: #f4f4ff;
  --text-muted: rgba(244, 244, 255, 0.72);
  --radius: 1.25rem;
  --font-display: "Bungee", cursive;
  --font-body: "Fredoka", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 245, 212, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 93, 229, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.glow-orb--1 {
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, var(--neon-magenta), transparent 70%);
}

.glow-orb--2 {
  width: min(380px, 65vw);
  height: min(380px, 65vw);
  bottom: -100px;
  left: -60px;
  background: radial-gradient(circle, var(--neon-cyan), transparent 70%);
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem) 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero {
  text-align: center;
}

.hero__title {
  margin: 0 0 0.35em;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 8vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  background: linear-gradient(
    120deg,
    var(--neon-cyan),
    var(--neon-yellow),
    var(--neon-magenta)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(0, 245, 212, 0.35);
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.35));
}

.hero__subtitle {
  margin: 0;
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 600;
  color: var(--text-muted);
  max-width: 28ch;
  margin-inline: auto;
}

.card {
  width: 100%;
  border-radius: var(--radius);
}

.video-card {
  position: relative;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--bg-card);
  border: 1px solid rgba(0, 245, 212, 0.2);
  box-shadow:
    0 0 0 1px rgba(255, 45, 149, 0.08),
    0 20px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

.video-card__glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(0, 245, 212, 0.25),
    rgba(155, 93, 229, 0.2),
    rgba(255, 45, 149, 0.22)
  );
  opacity: 0.55;
  z-index: -1;
  filter: blur(18px);
  pointer-events: none;
}

.video-card__frame {
  position: relative;
  border-radius: calc(var(--radius) - 0.35rem);
  overflow: hidden;
  border: 2px solid rgba(255, 230, 109, 0.35);
  box-shadow:
    0 0 24px rgba(0, 245, 212, 0.15),
    inset 0 0 40px rgba(0, 0, 0, 0.25);
}

.video-card__ratio {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050508;
}

.video-card__ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card__caption {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--neon-yellow);
  text-shadow: 0 0 12px rgba(255, 230, 109, 0.35);
  min-height: 1.5em;
}

.btn-reroll {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.9rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--bg-deep);
  background: linear-gradient(
    95deg,
    var(--neon-cyan),
    var(--neon-yellow)
  );
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    0 4px 0 #0a6b5e,
    0 8px 24px rgba(0, 245, 212, 0.35);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.btn-reroll:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.05);
  box-shadow:
    0 7px 0 #0a6b5e,
    0 14px 32px rgba(255, 45, 149, 0.35);
}

.btn-reroll:active {
  transform: translateY(1px) scale(0.99);
  box-shadow:
    0 2px 0 #0a6b5e,
    0 6px 16px rgba(0, 245, 212, 0.25);
}

.btn-reroll:focus-visible {
  outline: 3px solid var(--neon-magenta);
  outline-offset: 3px;
}

.btn-reroll__emoji {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-reroll:hover .btn-reroll__emoji {
  transform: rotate(25deg) scale(1.15);
}

@media (prefers-reduced-motion: reduce) {
  .btn-reroll,
  .btn-reroll__emoji {
    transition: none;
  }

  .btn-reroll:hover {
    transform: none;
  }

  .btn-reroll:hover .btn-reroll__emoji {
    transform: none;
  }
}
