:root {
  --og-cyan: #00aff0;
  --og-cyan-light: #1abcff;
  --og-cyan-deep: #0099d6;
  --og-ink: #0f172a;
  --og-ink-soft: #475569;
  --og-white: #ffffff;
  --og-surface: #ffffff;
  --og-mist: #f4fafd;
  --og-glow: rgba(0, 175, 240, 0.28);
  --font-display: "Plus Jakarta Sans", sans-serif;
  --font-body: "Nunito Sans", sans-serif;
  --footer-space: 5.5rem;
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--og-ink);
  background: var(--og-mist);
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% -15%, rgba(0, 175, 240, 0.2), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f0f9fd 48%, #e7f6fc 100%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Ccircle cx='2' cy='2' r='1.2' fill='%2300AFF0' fill-opacity='0.1'/%3E%3C/svg%3E");
  animation: grain-drift 28s linear infinite;
}

.atmosphere__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: orb-float 14s ease-in-out infinite;
}

.atmosphere__orb--a {
  width: min(48vw, 320px);
  height: min(48vw, 320px);
  top: -8%;
  left: 10%;
  background: rgba(0, 175, 240, 0.35);
}

.atmosphere__orb--b {
  width: min(42vw, 280px);
  height: min(42vw, 280px);
  right: -5%;
  bottom: 18%;
  background: rgba(26, 188, 255, 0.28);
  animation-delay: -4s;
  animation-duration: 18s;
}

.atmosphere__orb--c {
  width: min(36vw, 220px);
  height: min(36vw, 220px);
  left: 35%;
  bottom: -8%;
  background: rgba(0, 153, 214, 0.22);
  animation-delay: -8s;
  animation-duration: 16s;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1rem, 3vw, 2.5rem) 1rem var(--footer-space);
  text-align: center;
}

.brand {
  animation: brand-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand__logo {
  display: block;
  width: min(280px, 82vw);
  height: auto;
  margin: 0 auto 0.65rem;
  transform-origin: center center;
  animation: logo-reveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  filter: drop-shadow(0 0 0 rgba(0, 175, 240, 0));
}

.brand__tagline {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 6vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--og-ink);
  line-height: 1.1;
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.brand__support {
  margin: 0 auto;
  max-width: 28rem;
  font-size: clamp(0.95rem, 3.2vw, 1.12rem);
  font-weight: 400;
  color: var(--og-ink-soft);
  line-height: 1.5;
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.wheel-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 440px;
  animation: wheel-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.wheel-wrap {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
  margin-inline: auto;
  filter: drop-shadow(0 16px 32px rgba(15, 23, 42, 0.12));
  transition: filter 0.3s ease;
  animation: wheel-idle 7s ease-in-out infinite;
}

.wheel-wrap::before {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 175, 240, 0.22), transparent 68%);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  z-index: -1;
}

.wheel-wrap.is-spinning {
  animation: none;
  filter: drop-shadow(0 18px 40px rgba(0, 175, 240, 0.38));
}

.wheel-wrap.is-spinning::before {
  opacity: 1;
  transform: scale(1);
  animation: glow-pulse 1.1s ease-in-out infinite;
}

.wheel-pointer {
  position: absolute;
  top: -4px;
  left: 50%;
  z-index: 2;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 24px solid var(--og-cyan);
  filter: drop-shadow(0 2px 2px rgba(15, 23, 42, 0.2));
  animation: pointer-idle 1.8s ease-in-out infinite;
  transform: translateX(-50%);
  transform-origin: top center;
}

.wheel-wrap.is-spinning .wheel-pointer {
  animation: pointer-tick 0.18s linear infinite;
}

#og-wheel {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  border-radius: 50%;
}

.wheel-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 7rem;
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.btn-spin {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--og-white);
  background: linear-gradient(180deg, var(--og-cyan-light) 0%, var(--og-cyan) 55%, var(--og-cyan-deep) 100%);
  padding: 0.95rem 2rem;
  min-height: 52px;
  min-width: min(100%, 260px);
  border-radius: var(--radius-pill);
  box-shadow:
    0 10px 24px rgba(0, 175, 240, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-spin.is-ready {
  animation: cta-pulse 2.4s ease-in-out infinite;
}

.btn-spin:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 14px 30px rgba(0, 175, 240, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-spin:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.btn-spin:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
  animation: none;
}

.spin-result {
  margin: 0;
  width: 100%;
  max-width: 22rem;
  padding: 0.95rem 1.1rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 175, 240, 0.28);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: center;
}

.spin-result[hidden] {
  display: none;
}

.spin-result.is-pop {
  animation: result-pop 0.55s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}

.spin-result__badge {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--og-cyan);
}

.spin-result__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--og-ink);
  line-height: 1.2;
}

.spin-result__detail {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--og-ink-soft);
  line-height: 1.45;
}

.site-footer {
  position: relative;
  margin-top: -3.5rem;
  padding: 0.85rem 1rem 1.1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--og-ink-soft);
  line-height: 1.45;
  animation: fade-up 0.9s ease-out 0.45s both;
}

.site-footer p {
  margin: 0 auto 0.35rem;
  max-width: 36rem;
}

.site-footer__legal {
  font-size: 0.74rem;
  opacity: 0.92;
}

@keyframes brand-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wheel-in {
  from {
    opacity: 0;
    transform: scale(0.92) rotate(-4deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes logo-reveal {
  0% {
    opacity: 0;
    transform: scale(0.88);
    filter: drop-shadow(0 0 0 rgba(0, 175, 240, 0));
  }
  55% {
    opacity: 1;
    transform: scale(1.03);
    filter: drop-shadow(0 8px 22px rgba(0, 175, 240, 0.35));
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 4px 14px rgba(0, 175, 240, 0.18));
  }
}

@keyframes wheel-idle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(1.4deg);
  }
}

@keyframes result-pop {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.94);
  }
  60% {
    opacity: 1;
    transform: translateY(-2px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pointer-idle {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(3px);
  }
}

@keyframes pointer-tick {
  0%,
  100% {
    transform: translateX(-50%) rotate(0deg);
  }
  50% {
    transform: translateX(-50%) rotate(-8deg);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes cta-pulse {
  0%,
  100% {
    box-shadow:
      0 10px 24px rgba(0, 175, 240, 0.38),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
  50% {
    box-shadow:
      0 14px 34px rgba(0, 175, 240, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.45);
  }
}

@keyframes orb-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(18px, -22px) scale(1.06);
  }
}

@keyframes grain-drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-36px, -36px);
  }
}

@media (min-width: 721px) {
  .wheel-wrap {
    width: min(100%, 440px);
  }

  .brand__logo {
    width: min(320px, 88vw);
  }

  .wheel-pointer {
    top: -6px;
    border-left-width: 14px;
    border-right-width: 14px;
    border-top-width: 28px;
  }
}

@media (min-width: 900px) {
  :root {
    --footer-space: 6.5rem;
  }

  .hero {
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    gap: 3rem;
    padding-inline: 3rem;
    text-align: left;
  }

  .brand {
    flex: 0 1 380px;
  }

  .brand__logo {
    margin-left: 0;
  }

  .brand__support {
    margin-left: 0;
  }

  .wheel-stage {
    flex: 0 1 480px;
  }

  .site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin-top: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.96), transparent);
  }
}

@media (max-width: 720px) {
  .hero {
    justify-content: flex-start;
    padding-top: 1.25rem;
    gap: 0.85rem;
  }

  .brand__tagline {
    font-size: clamp(1.4rem, 7vw, 1.85rem);
  }

  .site-footer {
    margin-top: 0.5rem;
    padding-bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .brand__tagline,
  .brand__support,
  .brand__logo,
  .wheel-stage,
  .wheel-actions,
  .wheel-wrap,
  .spin-result.is-pop,
  .wheel-pointer,
  .wheel-wrap.is-spinning::before,
  .btn-spin.is-ready,
  .atmosphere__orb,
  .atmosphere::after,
  .site-footer {
    animation: none !important;
  }

  .brand__logo {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .btn-spin {
    transition: none;
  }
}
