:root {
  --color-bg: #07130d;
  --color-bg-deep: #020705;
  --color-focus: #f6c84c;
}

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

html,
body {
  width: 100%;
  min-width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body {
  position: fixed;
  inset: 0;
  color: #f9f0cc;
  background:
    radial-gradient(ellipse at 48% 72%, rgba(246, 200, 76, 0.13), transparent 25rem),
    radial-gradient(ellipse at 18% 86%, rgba(199, 117, 62, 0.14), transparent 18rem),
    radial-gradient(ellipse at 82% 78%, rgba(144, 113, 201, 0.1), transparent 20rem),
    linear-gradient(180deg, #020705 0%, #07130d 42%, #0f2a19 72%, #17351f 100%);
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
}

body::before {
  opacity: 0.82;
  background:
    radial-gradient(ellipse at 8% 100%, rgba(74, 124, 62, 0.32), transparent 26rem),
    radial-gradient(ellipse at 54% 100%, rgba(65, 124, 57, 0.34), transparent 34rem),
    radial-gradient(ellipse at 96% 100%, rgba(94, 129, 62, 0.28), transparent 24rem),
    linear-gradient(180deg, transparent 0 54%, rgba(21, 57, 31, 0.22) 74%, rgba(7, 18, 11, 0.62) 100%);
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%;
}

body::after {
  opacity: 0.5;
  background:
    radial-gradient(circle at 18% 82%, rgba(255, 219, 123, 0.11) 0 0.16rem, transparent 0.19rem),
    radial-gradient(circle at 62% 74%, rgba(238, 185, 96, 0.12) 0 0.13rem, transparent 0.16rem),
    radial-gradient(circle at 84% 88%, rgba(217, 175, 233, 0.09) 0 0.15rem, transparent 0.18rem),
    radial-gradient(ellipse at 50% 50%, transparent 0 42%, rgba(0, 0, 0, 0.58) 100%);
  background-size:
    13rem 13rem,
    17rem 17rem,
    19rem 19rem,
    100% 100%;
}

.pollination-hint {
  position: fixed;
  right: 1.25rem;
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  left: 1.25rem;
  z-index: 2;
  max-width: 28rem;
  margin: 0 auto;
  color: rgba(255, 239, 184, 0.68);
  font-family:
    "Work Sans",
    "Segoe UI",
    system-ui,
    sans-serif;
  font-size: clamp(0.78rem, 1.6vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: center;
  text-transform: lowercase;
  text-shadow: 0 0 1.2rem rgba(246, 200, 76, 0.34);
  pointer-events: none;
  opacity: 0;
  transform: translateY(0.35rem);
  animation: hint-arrival 1600ms ease 900ms forwards;
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.pollination-hint.is-hidden {
  opacity: 0 !important;
  transform: translateY(0.7rem);
  animation: none;
}

.pollinator-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  pointer-events: none;
}

@keyframes hint-arrival {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

:focus-visible {
  outline: 0.2rem solid var(--color-focus);
  outline-offset: 0.2rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
