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

html, body {
  margin: 0;
  height: 100%;
  background: #000;
  color: #f2ebe4;
  font-family: "Unbounded", system-ui, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  touch-action: none;
}

body, a, button { cursor: none; }
@media (hover: none) { body, a, button { cursor: auto; } }

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

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 22px 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 12px;
  letter-spacing: .02em;
}
.logo { font-weight: 800; font-size: 13px; letter-spacing: .08em; }
.logo sup { font-size: 8px; }
.nav nav { display: flex; gap: 22px; opacity: .72; }
.nav nav a:hover { opacity: 1; color: #ff3b2f; }
.cta {
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: #111;
  font-weight: 400;
  transition: background .2s, color .2s;
}
.cta:hover { background: #ff2a1f; color: #fff; }

/* ---------- stage ---------- */
.stage {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 62% 60%, rgba(150, 0, 0, .55), transparent 70%),
    linear-gradient(90deg, #050101 0%, #120202 40%, #000 100%);
}

.glow {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 7px);
  pointer-events: none;
}

.head {
  position: absolute;
  left: 64%;
  bottom: calc(-4% - 12px);
  width: min(100dvh, 92vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  will-change: transform;
  -webkit-mask-image: radial-gradient(ellipse 50% 92% at 50% 100%, #000 72%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 92% at 50% 100%, #000 72%, transparent 100%);
}
.head img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 140ms linear;
  user-select: none;
  pointer-events: none;
}
.head img.on { opacity: 1; }
.head.chomp { animation: chomp .42s ease-out; }
@keyframes chomp {
  0%   { scale: 1; }
  25%  { scale: 1.04 .97; }
  55%  { scale: .98 1.03; }
  100% { scale: 1; }
}

.title {
  position: absolute;
  left: clamp(20px, 5vw, 80px);
  bottom: clamp(70px, 14vh, 160px);
  z-index: 3;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: clamp(28px, 3.9vw, 64px);
  line-height: .98;
  letter-spacing: -.03em;
  text-transform: uppercase;
  pointer-events: none;
}
.title span:nth-child(2) { color: #ff2a1f; }

.counter {
  position: absolute;
  left: clamp(20px, 5vw, 80px);
  bottom: clamp(28px, 6vh, 70px);
  z-index: 3;
  margin: 0;
  font-size: 12px;
  opacity: .6;
  letter-spacing: .04em;
}

/* ---------- banana cursor ---------- */
.banana {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  width: 84px;
  height: 84px;
  margin: -12px 0 0 -10px;
  transform-origin: 10px 12px;
  pointer-events: none;
  will-change: transform;
}
.banana img { width: 100%; height: 100%; object-fit: contain; object-position: 0 0; filter: drop-shadow(0 6px 14px rgba(0,0,0,.6)); }
.banana.hide { opacity: 0; }

.flying {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 50;
  width: 72px;
  height: 72px;
  margin: -16px 0 0 -16px;
  pointer-events: none;
}
.flying img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 760px) {
  .nav { gap: 14px; inset: 14px 0 auto; }
  .nav nav { display: none; }
  .head { left: 50%; width: min(118vw, 78dvh); }
  .title { top: 76px; bottom: auto; font-size: clamp(26px, 8.4vw, 44px); }
  .counter { left: 50%; transform: translateX(-50%); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .head img { transition: none; }
  .head.chomp { animation: none; }
}
