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

:root {
  --pocari-blue: #0047ab;
  --pocari-navy: #002d6e;
  --white: #ffffff;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Mona Sans", system-ui, -apple-system, sans-serif;
  background: var(--pocari-navy);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.finals {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--pocari-blue);
}

.finals__panel {
  position: relative;
  display: block;
  line-height: 0;
}

.finals__hero {
  position: relative;
  height: auto;
}

.finals__hero-sticky {
  position: relative;
  height: auto;
  background: var(--pocari-blue);
}

.finals__hero-clip {
  width: 100%;
  height: auto;
}

.finals__hero.is-tall {
  height: 100vh;
  height: 100dvh;
}

.finals__hero.is-tall .finals__hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.finals__hero.is-tall .finals__hero-clip {
  height: 100%;
  overflow: hidden;
}

.finals__hero-image {
  display: block;
  width: 100%;
  height: auto;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.finals__image {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
  user-select: none;
  -webkit-user-drag: none;
}

.finals__scroll-hint {
  position: absolute;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--white);
  z-index: 2;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.finals__scroll-hint.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.finals__scroll-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 1px 6px rgba(0, 29, 78, 0.9);
  line-height: 1.2;
  white-space: nowrap;
}

.finals__scroll-icon {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 45, 110, 0.72);
  border: 1.5px solid rgba(115, 213, 252, 0.85);
  box-shadow: 0 0 16px rgba(115, 213, 252, 0.45);
  color: var(--white);
  animation: finals-bob 1.6s ease-in-out infinite;
}

.finals__scroll-icon svg {
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 1;
}

.finals__scroll-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(115, 213, 252, 0.7);
  animation: finals-pulse 1.6s ease-out infinite;
}

.finals__scroll-wheel {
  transform-box: fill-box;
  transform-origin: center;
  animation: finals-wheel 1.4s ease-in-out infinite;
}

.finals__to-top {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(115, 213, 252, 0.9);
  border-radius: 50%;
  background: #0f3bb5;
  color: var(--white);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 16px rgba(115, 213, 252, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

.finals__to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.finals__to-top svg {
  width: 22px;
  height: 22px;
}

@keyframes finals-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@keyframes finals-pulse {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@keyframes finals-wheel {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(5px);
    opacity: 0.2;
  }
}

@media (min-width: 768px) {
  body {
    background:
      radial-gradient(ellipse at 50% 0%, rgba(0, 120, 220, 0.35), transparent 55%),
      linear-gradient(180deg, #001a45 0%, var(--pocari-navy) 40%, #001433 100%);
  }

  .finals {
    box-shadow: 0 0 0 1px rgba(115, 213, 252, 0.25), 0 24px 64px rgba(0, 0, 0, 0.45);
  }

  .finals__scroll-hint {
    bottom: 24px;
    gap: 10px;
  }

  .finals__scroll-text {
    font-size: 12px;
  }

  .finals__scroll-icon {
    width: 56px;
    height: 56px;
  }

  .finals__scroll-icon svg {
    width: 28px;
    height: 28px;
  }

  .finals__to-top {
    right: 16px;
    bottom: 24px;
    width: 52px;
    height: 52px;
  }

  .finals__to-top svg {
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .finals__hero {
    height: auto;
  }

  .finals__hero-sticky {
    position: relative;
    height: auto;
  }

  .finals__hero-clip {
    overflow: visible;
    height: auto;
  }

  .finals__hero-image {
    height: auto;
    width: 100%;
    object-fit: contain;
    animation: none !important;
    transform: none !important;
  }

  .finals__scroll-icon,
  .finals__scroll-pulse,
  .finals__scroll-wheel {
    animation: none;
  }
}
