html {
  height: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: "Lato", system-ui, -apple-system, sans-serif;
  color: #0b2a3d;
  position: relative;
  overflow-x: hidden;
  background: transparent;
}

.bg-water {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #8fd4ef 0%, #6ec5e8 35%, #4eb0d9 70%, #358fbf 100%);
}

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

main,
header,
footer {
  position: relative;
  z-index: 2;
}

main {
  flex: 1;
}

a {
  color: #0d5f8a;
}

.hero {
  position: relative;
  text-align: center;
  padding: 56px 20px 40px;
}

.hero-logo img {
  width: min(420px, 88vw);
  height: auto;
  display: block;
  margin: 0 auto 12px;
  filter: drop-shadow(0 8px 24px rgba(11, 42, 61, 0.18));
}

.tagline {
  margin: 0 0 20px;
  font-size: 1.2rem;
  color: rgba(11, 42, 61, 0.82);
}

.hero nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}

.hero nav a {
  color: #0b4668;
  text-decoration: none;
  font-weight: 700;
}

.hero nav a:hover {
  text-decoration: underline;
}

.hero-actions {
  margin-bottom: 20px;
}

a.button {
  display: inline-block;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.35);
  color: #083149;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 6px 20px rgba(11, 42, 61, 0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}

a.button:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.04);
}

.panel .button-wrap {
  margin-top: 8px;
  text-align: center;
}

.hero::after,
.content-section + .content-section::before,
.site-footer::before {
  content: "";
  display: block;
  width: min(720px, 82%);
  height: 3px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.7) 0, rgba(255, 255, 255, 0.55) 3px, transparent 4px),
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.18) 14%,
      rgba(255, 255, 255, 0.55) 50%,
      rgba(255, 255, 255, 0.18) 86%,
      transparent 100%
    );
  box-shadow: 0 1px 10px rgba(255, 255, 255, 0.12);
}

.hero::after {
  margin-top: 28px;
}

.content-section + .content-section::before {
  margin-bottom: 28px;
}

.site-footer::before {
  margin-bottom: 28px;
}

.content-section + .content-section {
  padding-top: 8px;
}

.content-section {
  max-width: 920px;
  width: 100%;
  padding: 36px 24px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 24px;
}

.section-header h2 {
  margin: 0 0 10px;
  font-size: 1.85rem;
  color: #083149;
}

.section-intro {
  margin: 0 auto;
  max-width: 560px;
  line-height: 1.55;
  color: rgba(11, 42, 61, 0.82);
}

.release-note {
  padding-top: 0;
  padding-bottom: 12px;
  text-align: center;
}

.release-note h2 {
  margin: 0 0 12px;
  font-size: 1.85rem;
  color: #083149;
}

.release-note p {
  margin: 0 auto;
  max-width: 640px;
  line-height: 1.65;
  color: rgba(11, 42, 61, 0.9);
  font-size: 1.02rem;
}

.release-note a {
  font-weight: 700;
}

.panel {
  padding: 28px 32px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 28px rgba(11, 42, 61, 0.12);
  backdrop-filter: blur(6px);
}

.panel p {
  margin: 0 0 16px;
  line-height: 1.65;
  color: #0b2a3d;
}

.panel p:last-child {
  margin-bottom: 0;
}

.mechanics-section {
  padding-bottom: 48px;
}

.swim-path {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 8px;
}

.swim-path::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 40px;
  bottom: 40px;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.55) 15%,
    rgba(255, 255, 255, 0.55) 85%,
    rgba(255, 255, 255, 0.05) 100%
  );
  pointer-events: none;
}

.swim-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: min(100%, 520px);
}

.swim-step--left {
  align-self: flex-start;
  padding-right: 12%;
}

.swim-step--right {
  align-self: flex-end;
  flex-direction: row-reverse;
  padding-left: 12%;
  text-align: right;
}

.swim-marker {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.15) 45%, rgba(255, 255, 255, 0.08) 100%);
  box-shadow:
    inset 0 -10px 18px rgba(255, 255, 255, 0.25),
    0 6px 16px rgba(11, 42, 61, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 900;
  
  color: #083149;
  
}

.swim-body h3 {
  margin: 6px 0 8px;
  font-size: 1.2rem;
  color: #083149;
}

.swim-body p {
  margin: 0;
  line-height: 1.65;
  color: rgba(11, 42, 61, 0.92);
}

.swim-visual {
  margin: 14px 0 0;
  display: flex;
  justify-content: flex-start;
}

.swim-step--right .swim-visual {
  justify-content: flex-end;
}

.swim-visual img {
  display: block;
  width: auto;
  height: 72px;
  filter: drop-shadow(0 6px 14px rgba(11, 42, 61, 0.18));
}

.swim-visual--power img {
  height: 80px;
  animation: powerup-pulse 2.4s ease-in-out infinite;
}

@keyframes powerup-pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 6px 14px rgba(11, 42, 61, 0.18)) drop-shadow(0 0 8px rgba(255, 211, 77, 0.35));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 18px rgba(11, 42, 61, 0.2)) drop-shadow(0 0 16px rgba(255, 211, 77, 0.55));
  }
}

@media (max-width: 640px) {
  .swim-path::before {
    left: 29px;
    transform: none;
  }

  .swim-step,
  .swim-step--left,
  .swim-step--right {
    align-self: stretch;
    flex-direction: row;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
    width: 100%;
  }

  .swim-step--right {
    flex-direction: row;
  }

  .swim-step--right .swim-visual {
    justify-content: flex-start;
  }
}

.video-container {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.video-container video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 2px dashed rgba(11, 66, 97, 0.35);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder-inner {
  text-align: center;
  padding: 24px;
}

.video-placeholder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  border-radius: 50%;
  border: 2px solid rgba(11, 66, 97, 0.35);
  color: #0b4668;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.2);
}

.video-placeholder-label {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #083149;
}

.video-placeholder-hint {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(11, 42, 61, 0.72);
}

.site-footer {
  margin-top: auto;
  padding: 36px 20px 40px;
  border-top: none;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 42, 61, 0.08) 100%);
}

.footer-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-logo img {
  display: block;
  height: 50px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.footer-logo:hover img {
  opacity: 1;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
}

.footer-nav.footer-credits {
  gap: 0;
}

.footer-nav.footer-credits .footer-sep {
  margin: 0 0.35em;
}

.footer-nav a {
  color: #0b4668;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
}

.footer-nav a:hover {
  color: #083149;
  text-decoration: underline;
}

.footer-sep {
  color: #0b4668;
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 0.5;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 3;
  width: 56px;
  height: 56px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.2) 45%, rgba(255, 255, 255, 0.1) 100%);
  box-shadow:
    inset 0 -10px 18px rgba(255, 255, 255, 0.25),
    0 8px 22px rgba(11, 42, 61, 0.18);
  color: #083149;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.92);
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    transform 0.35s ease,
    background 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.28) 45%, rgba(255, 255, 255, 0.12) 100%);
  transform: translateY(-2px) scale(1.04);
}

.back-to-top-icon {
  display: block;
  width: 26px;
  height: 26px;
  color: rgba(11, 49, 73, 0.52);
}

.back-to-top:hover .back-to-top-icon {
  color: rgba(11, 49, 73, 0.68);
}

.back-to-top-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

@media (max-width: 640px) {
  .hero {
    padding-top: 40px;
  }

  .panel {
    padding: 20px 18px;
  }
}
