:root {
  --ink: #050308;
  --surface: #0e0a16;
  --surface-2: #150e23;
  --line: #241a3d;
  --violet: #8b5cf6;
  --violet-bright: #a78bfa;
  --violet-soft: #c4b5fd;
  --violet-deep: #3b1d6e;
  --muted: #8d84a8;
  --kick: #53fc18;

  --font-display: "Unbounded", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

img { display: block; }
a { color: inherit; text-decoration: none; }

#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.aurora {
  position: fixed;
  inset: -20% -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(45rem 26rem at 20% 0%, rgba(109, 63, 242, 0.16), transparent 65%),
    radial-gradient(50rem 30rem at 85% 15%, rgba(167, 139, 250, 0.10), transparent 65%),
    radial-gradient(60rem 40rem at 50% 110%, rgba(59, 29, 110, 0.25), transparent 60%);
  animation: aurora-drift 24s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

.page {
  position: relative;
  z-index: 1;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.25rem 6rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal-in 900ms var(--ease-out) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes reveal-in {
  to { opacity: 1; transform: none; }
}

.rise {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition:
    opacity 900ms var(--ease-out),
    transform 900ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.rise.in { opacity: 1; transform: none; }

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--violet-deep) 20%, var(--violet) 50%, var(--violet-deep) 80%, transparent) 1;
}

.brand { display: flex; align-items: center; gap: 1rem; min-width: 0; }

.bat-glyph {
  width: 3.6rem;
  height: auto;
  flex-shrink: 0;
  color: var(--violet-bright);
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.55));
  animation: glyph-breathe 4s ease-in-out infinite;
}

@keyframes glyph-breathe {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.45)); }
  50% { transform: translateY(-3px); filter: drop-shadow(0 0 16px rgba(167, 139, 250, 0.75)); }
}

.brand-text { display: flex; flex-direction: column; min-width: 0; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
}

.brand-tag {
  margin-top: 0.3rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: var(--muted);
  white-space: nowrap;
}

.kick-pill {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: rgba(14, 10, 22, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 9999px;
  padding: 0.65rem 1.2rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: border-color 200ms ease, transform 200ms var(--ease-out), box-shadow 200ms ease;
}
.kick-pill:hover {
  border-color: rgba(83, 252, 24, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(83, 252, 24, 0.16);
}
.kick-label { color: #fff; }
.kick-icon { color: var(--kick); }

.live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--kick);
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(83, 252, 24, 0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(83, 252, 24, 0); }
}

@media (max-width: 560px) {
  .masthead { flex-direction: column; gap: 1rem; padding-bottom: 1.2rem; }
  .brand { flex-direction: column; text-align: center; gap: 0.6rem; }
  .brand-text { align-items: center; }
}

.hero { position: relative; padding: 4.5rem 0 2.5rem; text-align: center; }

.signal {
  position: absolute;
  top: -8rem;
  left: 50%;
  width: min(52rem, 120vw);
  height: 30rem;
  transform: translateX(-50%);
  pointer-events: none;
  background: conic-gradient(
    from 180deg at 50% 0%,
    transparent 165deg,
    rgba(139, 92, 246, 0.10) 173deg,
    rgba(224, 212, 255, 0.20) 180deg,
    rgba(139, 92, 246, 0.10) 187deg,
    transparent 195deg
  );
  filter: blur(4px);
  animation: signal-flicker 7s ease-in-out infinite;
  z-index: -1;
}

@keyframes signal-flicker {
  0%, 100% { opacity: 0.85; }
  42% { opacity: 1; }
  46% { opacity: 0.55; }
  50% { opacity: 0.95; }
  78% { opacity: 0.7; }
}

.skyline {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: clamp(70px, 12vw, 150px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

.skyline .win { opacity: 0.15; animation: window-glow 6s ease-in-out infinite; }
.skyline .w1 { animation-delay: 0s; }
.skyline .w2 { animation-delay: 2s; }
.skyline .w3 { animation-delay: 4s; }

@keyframes window-glow {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.75; }
}

.eyebrow {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--violet-bright);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
}

.pool {
  display: block;
  font-size: 3rem;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow:
    0 0 32px rgba(139, 92, 246, 0.55),
    0 0 90px rgba(139, 92, 246, 0.25);
}

.pool-label {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.45rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: var(--violet-soft);
  border: 1px solid rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.1);
  border-radius: 9999px;
}

.hero-sub {
  max-width: 28rem;
  margin: 1.25rem auto 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.code { font-family: var(--font-mono); font-weight: 700; color: var(--violet-soft); }

@media (min-width: 640px) {
  .pool { font-size: 4.5rem; }
}

.countdown {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 5rem;
}

.ticker-unit { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }

.ticker-cell {
  overflow: hidden;
  border-radius: 0.625rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #150e23 0%, #0a0712 100%);
  box-shadow:
    inset 0 1px 0 rgba(196, 181, 253, 0.06),
    0 0 28px rgba(139, 92, 246, 0.10);
  padding: 0.75rem;
}

.tick-digit {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1;
}

.tick-digit.flip { animation: digit-drop 420ms var(--ease-out); }

@keyframes digit-drop {
  0% { transform: translateY(-115%); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: none; opacity: 1; }
}

.ticker-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted);
}

.ticker-colon {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--muted);
  padding-bottom: 2rem;
  animation: colon-blink 2s steps(1) infinite;
}

@keyframes colon-blink {
  0%, 60%, 100% { opacity: 1; }
  70%, 90% { opacity: 0.25; }
}

@media (min-width: 640px) {
  .countdown { gap: 0.75rem; }
  .ticker-cell { padding: 1rem 1.25rem; }
  .tick-digit { font-size: 3rem; }
  .ticker-colon { font-size: 2.25rem; }
}

.podium {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 3rem;
  padding-top: 2.5rem;
  margin-bottom: 3.5rem;
  perspective: 1200px;
}

.podium-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 1.125rem;
  padding: 3.5rem 1.5rem 1.75rem;
  text-align: center;
  transform-style: preserve-3d;
  will-change: transform;
  /* mouse spotlight */
  background-image: radial-gradient(
    16rem 16rem at var(--mx, 50%) var(--my, -20%),
    rgba(139, 92, 246, 0.10),
    transparent 70%
  );
}

.place-1 {
  order: 1;
  background-color: var(--surface-2);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 48px rgba(139, 92, 246, 0.16);
  padding-top: 4rem;
  padding-bottom: 2.5rem;
}
.place-2 { order: 2; }
.place-3 { order: 3; }

@media (min-width: 1024px) {
  .podium { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .place-2 { order: 1; }
  .place-1 { order: 2; top: -1rem; }
  .place-3 { order: 3; }
}

.bat-crown {
  position: absolute;
  top: -4.9rem;
  left: 50%;
  width: 4.2rem;
  height: auto;
  margin-left: -2.1rem;
  color: var(--violet-bright);
  filter: drop-shadow(0 0 14px rgba(167, 139, 250, 0.65));
  animation: bat-hover 3.2s ease-in-out infinite;
  z-index: 2;
}

@keyframes bat-hover {
  0%, 100% { transform: translateY(0) rotate(-2deg) scale(1); }
  50% { transform: translateY(-8px) rotate(2deg) scale(1.05); }
}

.podium-avatar {
  position: absolute;
  top: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.avatar-frame {
  border-radius: 9999px;
  padding: 2px;
  background: var(--line);
}
.avatar-frame img {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: var(--ink);
  object-fit: contain;
}

@property --ring-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.champion-ring {
  position: relative;
  border-radius: 9999px;
  padding: 3px;
  background: conic-gradient(
    from var(--ring-angle, 0deg),
    #a78bfa 0deg, #3b1d6e 90deg, #e0d4ff 180deg, #3b1d6e 270deg, #a78bfa 360deg
  );
  animation: ring-turn 6s linear infinite;
}
.champion-ring::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
  animation: halo-breathe 3.4s ease-in-out infinite;
  z-index: -1;
}
.champion-ring img {
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  background: var(--ink);
  object-fit: contain;
}

@keyframes ring-turn { to { --ring-angle: 360deg; } }
@keyframes halo-breathe {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

.place-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}
.first { color: var(--violet-bright); text-shadow: 0 0 16px rgba(167, 139, 250, 0.6); }
.silver { color: #cfc9e0; }
.bronze { color: #7e6bb0; }

.podium-name {
  margin-top: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.place-1 .podium-name { font-size: 1.5rem; }

.podium-wager {
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.875rem;
  color: var(--muted);
}

.skeleton {
  position: relative;
  color: transparent !important;
  border-radius: 0.375rem;
  background: linear-gradient(90deg, #1a1229 25%, #251a3c 50%, #1a1229 75%);
  background-size: 200% 100%;
  animation: skeleton-sweep 1.4s ease-in-out infinite;
  max-width: 10rem;
  margin-left: auto !important;
  margin-right: auto !important;
}

@keyframes skeleton-sweep {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.prize-chip {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  width: fit-content;
  margin: 1rem auto 0;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.12);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--violet-soft);
  transition: box-shadow 250ms ease, border-color 250ms ease;
}
.podium-card:hover .prize-chip {
  border-color: rgba(167, 139, 250, 0.7);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.35);
}
.prize-chip img { width: 0.875rem; height: 0.875rem; }
.prize-chip-lg { font-size: 1rem; padding: 0.45rem 0.9rem; }

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 4.5rem;
}

.rank-row {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 0.875rem;
  transition: transform 220ms var(--ease-out), border-color 220ms ease, box-shadow 220ms ease;
  opacity: 0;
  transform: translateX(-22px);
  animation: row-in 700ms var(--ease-out) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes row-in {
  to { opacity: 1; transform: none; }
}

.rank-row:hover {
  transform: translateX(5px);
  border-color: var(--violet);
  box-shadow: 0 4px 28px rgba(139, 92, 246, 0.18);
}

.rank-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--violet-deep), var(--violet-bright));
  transition: width 1200ms var(--ease-out) 300ms;
  border-radius: 2px;
}

.rank-left { display: flex; align-items: center; gap: 1rem; min-width: 0; }

.rank-number {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--muted);
  width: 2rem;
  flex-shrink: 0;
}

.rank-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.375rem;
  flex-shrink: 0;
}

.rank-wager {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  color: var(--muted);
}

.rank-row .prize-chip { margin: 0; padding: 0.25rem 0.625rem; font-size: 0.75rem; }
.rank-row .prize-chip img { width: 0.75rem; height: 0.75rem; }

.rank-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 1rem;
}

@media (min-width: 640px) {
  .rank-row { padding: 1rem 1.5rem; }
  .rank-wager { font-size: 0.875rem; }
  .rank-right { flex-direction: row; align-items: center; gap: 1.25rem; }
  .rank-row .prize-chip { font-size: 0.875rem; }
}

.beam-border {
  position: relative;
  border-radius: 1.2rem;
  padding: 1px;
  overflow: hidden;
  isolation: isolate;
}
.beam-border::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: conic-gradient(
    from var(--ring-angle, 0deg),
    transparent 0deg,
    transparent 250deg,
    rgba(167, 139, 250, 0.9) 300deg,
    #e0d4ff 320deg,
    rgba(167, 139, 250, 0.9) 340deg,
    transparent 360deg
  );
  animation: ring-turn 5s linear infinite;
  z-index: -1;
}

.cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: calc(1.2rem - 1px);
  background:
    radial-gradient(40rem 20rem at 80% -10%, rgba(167, 139, 250, 0.22), transparent 60%),
    linear-gradient(to bottom right, #170d2c, #2a1653);
}

.cta-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.cta-logo { width: 4rem; height: 4rem; border-radius: 1rem; }

.cta-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }

.cta-sub {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
}

.cta-button {
  position: relative;
  background: #fff;
  color: #2a1653;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 0.6rem;
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease;
  box-shadow: 0 0 0 rgba(224, 212, 255, 0);
}
.cta-card:hover .cta-button {
  transform: scale(1.06);
  box-shadow: 0 0 32px rgba(224, 212, 255, 0.45);
}

@media (min-width: 640px) {
  .cta-card { flex-direction: row; justify-content: space-between; padding: 2.5rem; }
  .cta-info { flex-direction: row; gap: 1.5rem; text-align: left; }
  .cta-title { font-size: 1.5rem; }
}

.disclaimer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}
a:focus-visible, .cta-button:focus-visible {
  outline: 2px solid var(--violet-bright);
  outline-offset: 3px;
  border-radius: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .aurora, .champion-ring, .champion-ring::after, .bat-crown, .bat-glyph,
  .signal, .skyline .win, .live-dot,
  .pool, .ticker-colon, .beam-border::before, .skeleton { animation: none !important; }
  .reveal, .rise, .rank-row { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  .tick-digit.flip { animation: none; }
  .rank-bar { transition: none; }
  .kick-pill, .kick-pill:hover, .rank-row:hover, .cta-card:hover .cta-button { transform: none; transition: none; }
  .pool { opacity: 1; }
  #fx { display: none; }
}

.socials {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.insta-icon { color: var(--violet-bright); }

.insta-pill:hover {
  border-color: var(--violet);
  box-shadow: 0 6px 26px rgba(139, 92, 246, 0.25);
}

.x-icon { color: #fff; }

.x-pill:hover {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 6px 26px rgba(255, 255, 255, 0.14);
}
#intro {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--ink);
  opacity: 1;
  transition: opacity 850ms ease;
}
#intro.fade { opacity: 0; pointer-events: none; }
#intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
body.intro-hold .reveal,
body.intro-hold .pool { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  #intro { display: none; }
  body.intro-hold .reveal,
  body.intro-hold .pool { animation-play-state: running !important; }
}