:root {
  --bg: #07030f;
  --bg-2: #0f0818;
  --green: #7ed957;
  --green-dim: rgba(126, 217, 87, 0.12);
  --green-glow: rgba(126, 217, 87, 0.3);
  --white: #f5f1ff;
  --muted: rgba(245, 241, 255, 0.66);
  --radius-card: 30px;
  --card-w: clamp(300px, 24vw, 390px);
  --card-h: clamp(470px, 38vw, 620px);
}

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

img {
  display: block;
  max-width: 100%;
}

body {
  font-family: "DM Sans", sans-serif;
  background:
    radial-gradient(circle at top, rgba(126, 217, 87, 0.08), transparent 35%),
    linear-gradient(180deg, #090311 0%, var(--bg) 48%, #05020a 100%);
  color: var(--white);
  height: 100vh;
  overflow: hidden;
  cursor: none;
  position: relative;
}

h1,
h2,
h3 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.hidden {
  display: none !important;
}

#bg-glow {
  position: fixed;
  width: 960px;
  height: 960px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(126, 217, 87, 0.14),
    transparent 68%
  );
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  transform: translate(-480px, -480px);
}

#cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  pointer-events: none;
  z-index: 9998;
  box-shadow:
    0 0 18px var(--green-glow),
    0 0 48px rgba(126, 217, 87, 0.14);
  transform: translate(-5px, -5px);
}

#skip-btn {
  position: fixed;
  top: 24px;
  right: 32px;
  padding: 10px 16px;
  border: 1px solid rgba(126, 217, 87, 0.22);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  z-index: 100;
  backdrop-filter: blur(14px);
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

#skip-btn:hover,
#skip-btn:focus-visible {
  color: var(--white);
  border-color: rgba(126, 217, 87, 0.52);
  background: rgba(126, 217, 87, 0.08);
  outline: none;
}

#entry-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  width: min(92vw, 1220px);
  padding: 0 24px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 28px;
  opacity: 0.82;
}

#hero-content h1 {
  font-size: clamp(34px, 5.3vw, 82px);
  line-height: 0.96;
  color: var(--white);
  white-space: nowrap;
}

#hero-content h1 #type-line2 {
  color: var(--green);
}

#hero-content > p {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 300;
}

#enter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin-top: 38px;
  border: 1px solid rgba(126, 217, 87, 0.48);
  background: rgba(126, 217, 87, 0.07);
  color: var(--white);
  font-family: "Bebas Neue", sans-serif;
  font-size: 17px;
  letter-spacing: 0.18em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  animation: btnPulse 3s ease-in-out infinite;
}

#enter-btn:hover,
#enter-btn:focus-visible {
  background: rgba(126, 217, 87, 0.18);
  border-color: var(--green);
  box-shadow: 0 0 40px rgba(126, 217, 87, 0.22);
  transform: scale(1.06);
  outline: none;
}

@keyframes btnPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(126, 217, 87, 0);
  }
  50% {
    box-shadow: 0 0 30px rgba(126, 217, 87, 0.12);
  }
}

#hero-sticker {
  position: absolute;
  bottom: -2vh;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(180px, 20vw, 300px);
  z-index: 1;
  pointer-events: none;
}

#hero-sticker img {
  width: 100%;
  filter: drop-shadow(0 0 40px rgba(126, 217, 87, 0.12));
}

#cards-screen {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 6vh 3vw 4vh;
}

.cards-copy {
  width: min(96vw, 1080px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.cards-prompt {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: 0.08em;
  color: rgba(245, 241, 255, 0.72);
  text-align: center;
}

#diagnosis-stage {
  max-width: 1080px;
}

.diagnosis-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green);
  opacity: 0.8;
}

#diagnosis-title {
  margin-top: 14px;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--white);
}

#diagnosis-text {
  margin: 12px auto 0;
  max-width: 760px;
  font-size: clamp(16px, 1.45vw, 22px);
  line-height: 1.6;
  color: var(--muted);
}

#diagnosis-pill {
  display: inline-flex;
  margin-top: 18px;
  padding: 10px 18px;
  border: 1px solid rgba(126, 217, 87, 0.5);
  border-radius: 999px;
  color: var(--green);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(126, 217, 87, 0.06);
}

#cards-grid {
  display: flex;
  gap: 18px;
  align-items: stretch;
  justify-content: center;
  position: relative;
  width: 100%;
}

.reel-card {
  position: relative;
  width: var(--card-w);
  height: var(--card-h);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid rgba(126, 217, 87, 0.12);
  background: rgba(14, 9, 24, 0.8);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    opacity 0.35s ease;
  will-change: transform, opacity;
}

.reel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.reel-card:hover,
.reel-card:focus-visible,
.reel-card.is-active {
  transform: translateY(-12px);
  border-color: rgba(126, 217, 87, 0.4);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.55),
    0 0 46px rgba(126, 217, 87, 0.12);
  outline: none;
}

.reel-card.is-muted {
  opacity: 0.16;
  transform: scale(0.96);
}

.reel-card.is-selected {
  z-index: 6;
}

.reel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.viral-bg {
  background: linear-gradient(
    160deg,
    #18002f 0%,
    #340050 38%,
    #7b006f 78%,
    #b00058 100%
  );
}

.confused-bg {
  background:
    radial-gradient(
      circle at top left,
      rgba(126, 217, 87, 0.12),
      transparent 32%
    ),
    linear-gradient(180deg, #090d16 0%, #101423 48%, #070a12 100%);
}

.volume-bg {
  background:
    radial-gradient(
      circle at top right,
      rgba(126, 217, 87, 0.1),
      transparent 32%
    ),
    linear-gradient(160deg, #02060e 0%, #08131d 58%, #05101c 100%);
}

.reel-visual-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viral-display {
  text-align: center;
  position: relative;
  z-index: 2;
}

.viral-fire {
  font-family: "Bebas Neue", sans-serif;
  font-size: 20px;
  letter-spacing: 0.26em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 12px;
}

.viral-views {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(72px, 6vw, 92px);
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 0.9;
  text-shadow: 0 0 30px rgba(255, 100, 200, 0.45);
}

.viral-unit {
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 6px;
}

.viral-bars {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 0 28px;
  opacity: 0.28;
}

.vbar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(to top, var(--green), rgba(126, 217, 87, 0.24));
  border-radius: 4px 4px 0 0;
  animation: barPulse 2s ease-in-out infinite;
}

.vbar:nth-child(1) {
  animation-delay: 0s;
}

.vbar:nth-child(2) {
  animation-delay: 0.1s;
}

.vbar:nth-child(3) {
  animation-delay: 0.2s;
}

.vbar:nth-child(4) {
  animation-delay: 0.3s;
}

.vbar:nth-child(5) {
  animation-delay: 0.4s;
}

.vbar:nth-child(6) {
  animation-delay: 0.5s;
}

.vbar:nth-child(7) {
  animation-delay: 0.6s;
}

@keyframes barPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
    height: calc(var(--h) * 1.08);
  }
}

.confused-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 220px;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  opacity: 0.88;
}

.cg-cell {
  background: hsl(var(--h), var(--s), 40%);
  animation: colorShift 3s ease-in-out infinite;
  animation-delay: calc(var(--h) * 10ms);
}

@keyframes colorShift {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.3) saturate(1.22);
  }
}

.confused-mark {
  position: absolute;
  font-family: "Bebas Neue", sans-serif;
  font-size: 120px;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.22);
  animation: qPulse 2s ease-in-out infinite;
}

@keyframes qPulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.volume-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 220px;
  padding: 6px;
}

.vg-cell {
  aspect-ratio: 9 / 16;
  border-radius: 6px;
  background: rgba(126, 217, 87, 0.08);
  border: 1px solid rgba(126, 217, 87, 0.15);
  animation: cellFlash 4s ease-in-out infinite;
}

.vg-cell.s1 {
  animation-delay: 0s;
  background: rgba(126, 217, 87, 0.15);
}

.vg-cell.s2 {
  animation-delay: 0.2s;
  background: rgba(100, 180, 255, 0.12);
}

.vg-cell.s3 {
  animation-delay: 0.4s;
  background: rgba(255, 120, 80, 0.12);
}

.vg-cell.s4 {
  animation-delay: 0.6s;
}

.vg-cell.s5 {
  animation-delay: 0.8s;
  background: rgba(126, 217, 87, 0.1);
}

.vg-cell.s6 {
  animation-delay: 1s;
}

.vg-cell.s7 {
  animation-delay: 1.2s;
  background: rgba(100, 180, 255, 0.1);
}

.vg-cell.s8 {
  animation-delay: 1.4s;
}

.vg-cell.s9 {
  animation-delay: 1.6s;
  background: rgba(126, 217, 87, 0.08);
}

.vg-cell.s10 {
  animation-delay: 1.8s;
}

.vg-cell.s11 {
  animation-delay: 2s;
  background: rgba(255, 120, 80, 0.08);
}

.vg-cell.s12 {
  animation-delay: 2.2s;
}

.vg-cell.s13 {
  animation-delay: 2.4s;
  background: rgba(126, 217, 87, 0.12);
}

.vg-cell.s14 {
  animation-delay: 2.6s;
}

.vg-cell.s15 {
  animation-delay: 2.8s;
}

.vg-cell.s16 {
  animation-delay: 3s;
  background: rgba(100, 180, 255, 0.08);
}

.vg-cell.s17 {
  animation-delay: 3.2s;
}

.vg-cell.s18 {
  animation-delay: 3.4s;
  background: rgba(126, 217, 87, 0.1);
}

@keyframes cellFlash {
  0%,
  90%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.volume-count-display {
  position: absolute;
  bottom: 74px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.volume-count-display span:first-child {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(64px, 5vw, 82px);
  color: var(--green);
  line-height: 0.9;
}

.vc-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(126, 217, 87, 0.64);
}

.reel-ui {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 16px 18px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    transparent 24%,
    transparent 58%,
    rgba(0, 0, 0, 0.62) 100%
  );
}

.reel-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reel-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  flex-shrink: 0;
}

.av-purple {
  background: linear-gradient(135deg, #a855f7, #ec4899);
}

.av-teal {
  background: linear-gradient(135deg, #06b6d4, #22c55e);
}

.av-green {
  background: linear-gradient(135deg, #7ed957, #06b6d4);
}

.reel-username {
  font-size: 12px;
  font-weight: 500;
  flex: 1;
}

.reel-follow {
  font-size: 11px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.85);
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.reel-side-actions {
  position: absolute;
  right: 16px;
  bottom: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.reel-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ra-icon {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
}

.ra-label {
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  min-width: 30px;
}

.live-likes {
  color: var(--green);
}

.reel-caption {
  font-size: 11.5px;
  line-height: 1.4;
  max-width: calc(100% - 62px);
  padding-bottom: 12px;
}

.reel-tags {
  margin-top: 5px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.62);
}

.reel-label-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 14px 16px;
  background: rgba(8, 5, 14, 0.82);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(126, 217, 87, 0.14);
}

.rlb-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--white);
}

.rlb-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

#logo-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0;
  background: #000;
}

#logo-preview-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #04060d;
  transform: scale(1.03);
  opacity: 0;
}

#logo-mask-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#logo-mask-svg text {
  text-rendering: geometricPrecision;
  shape-rendering: geometricPrecision;
  paint-order: stroke fill;
}

@media (max-width: 1180px) {
  body {
    overflow: auto;
    min-height: 100vh;
    height: auto;
  }

  #cards-screen {
    justify-content: flex-start;
    overflow-y: auto;
    padding-top: 120px;
  }

  #cards-grid {
    flex-direction: column;
    align-items: center;
    padding-bottom: 40px;
  }
}

@media (max-width: 640px) {
  #hero-content h1 {
    white-space: normal;
    font-size: clamp(30px, 10vw, 56px);
  }

  #hero-sticker {
    width: 170px;
    bottom: 0;
  }

  #cards-screen {
    gap: 26px;
    padding-inline: 16px;
  }

  #diagnosis-title {
    font-size: clamp(36px, 11vw, 56px);
  }

  #diagnosis-text {
    font-size: 15px;
  }

  :root {
    --card-w: min(90vw, 460px);
    --card-h: min(138vw, 620px);
  }
}

@media (pointer: coarse) {
  body {
    cursor: auto;
  }

  #cursor {
    display: none;
  }
}
