/* Homepage category strip. All selectors stay inside the component boundary. */
.bs-category-sea {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 320px;
  padding: 52px 24px 58px;
  color: #ffffff;
  background:
    radial-gradient(ellipse 55% 70% at 50% -20%, rgb(55 200 193 / 17%), transparent 70%),
    linear-gradient(135deg, #061f32 0%, #082a41 100%);
}

.bs-category-sea *,
.bs-category-sea *::before,
.bs-category-sea *::after {
  box-sizing: border-box;
}

.bs-sea-scene {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.bs-sea-content {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  margin-inline: auto;
}

.bs-sea-heading-row {
  position: relative;
  min-height: 38px;
  margin-bottom: 20px;
}

.bs-sea-heading-row h2 {
  margin: 0;
  color: #ffffff;
  font-family: inherit;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-align: center;
}

.bs-sea-hint {
  display: none;
}

.bs-sea-arrow {
  font: inherit;
  color: #ffffff;
  background: rgb(3 21 33 / 62%);
  border: 1px solid rgb(117 227 221 / 52%);
  cursor: pointer;
}


.bs-sea-carousel {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
}

.bs-sea-viewport {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #32bebb transparent;
  -webkit-overflow-scrolling: touch;
}

.bs-sea-viewport::-webkit-scrollbar {
  height: 6px;
}

.bs-sea-viewport::-webkit-scrollbar-thumb {
  background: #32bebb;
  border-radius: 99px;
}

.bs-sea-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  gap: 14px;
  margin: 0;
  padding: 3px 2px 10px;
  list-style: none;
}

.bs-sea-item {
  flex: 0 0 104px;
  scroll-snap-align: start;
}

.bs-sea-card {
  display: grid;
  grid-template-rows: 104px auto;
  gap: 8px;
  width: 104px;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
}

.bs-sea-image,
.bs-sea-emoji {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  overflow: hidden;
  background: #d9f8f5;
  border: 1px solid #8fece9;
  border-radius: 11px;
  box-shadow: 0 8px 22px rgb(0 0 0 / 23%);
  transition: transform 160ms ease, border-color 160ms ease;
}

.bs-sea-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bs-sea-emoji {
  color: #082a41;
  font-size: 38px;
  line-height: 1;
}

.bs-sea-name {
  display: -webkit-box;
  min-height: 32px;
  overflow: hidden;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bs-sea-card:hover .bs-sea-image,
.bs-sea-card:hover .bs-sea-emoji {
  border-color: #ffffff;
  transform: translateY(-2px);
}

.bs-sea-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
}

.bs-sea-arrow svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.bs-sea-arrow:hover:not(:disabled) {
  color: #8fece9;
  border-color: #8fece9;
}

.bs-sea-arrow:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

.bs-category-sea a:focus-visible,
.bs-category-sea button:focus-visible,
.bs-sea-viewport:focus-visible {
  outline: 3px solid #8fece9;
  outline-offset: 3px;
}

.bs-sea-wave {
  position: absolute;
  z-index: 0;
  bottom: -1px;
  left: -2px;
  width: calc(200% + 8px);
  height: 56px;
  color: #ffffff;
  pointer-events: none;
  --bs-wave-turn: 0deg;
  transform: translate3d(0, 0, 0) rotate(var(--bs-wave-turn));
  animation: bs-sea-wave-flow 10s linear -3s infinite;
}

.bs-sea-wave--top {
  top: -1px;
  bottom: auto;
  --bs-wave-turn: 180deg;
  animation-duration: 14s;
  animation-delay: -7s;
  animation-direction: reverse;
}

.bs-sea-fish {
  position: absolute;
  display: block;
  left: 0;
  aspect-ratio: 2 / 1;
  opacity: 0.2;
}

.bs-sea-fish-direction,
.bs-sea-fish-body {
  display: block;
  width: 100%;
  height: auto;
}

.bs-sea-fish--one {
  top: 6px;
  width: clamp(112px, 12vw, 176px);
  opacity: 0.28;
  animation: bs-sea-swim-east 53s linear -21s infinite;
}

.bs-sea-fish--two {
  top: 76%;
  width: clamp(96px, 9vw, 128px);
  opacity: 0.22;
  animation: bs-sea-swim-west 62s linear -43s infinite;
}

.bs-sea-fish--three {
  top: 14px;
  width: clamp(88px, 8vw, 112px);
  opacity: 0.16;
  animation: bs-sea-swim-east 41s linear -12s infinite;
}

.bs-sea-fish--four {
  top: 75%;
  width: clamp(104px, 10vw, 144px);
  opacity: 0.24;
  animation: bs-sea-swim-west 35s linear -29s infinite;
}

.bs-sea-fish--two .bs-sea-fish-direction,
.bs-sea-fish--four .bs-sea-fish-direction {
  transform: scaleX(-1);
}

.bs-sea-fish-body {
  animation: bs-sea-fish-sway 5.8s ease-in-out -1.7s infinite;
}

.bs-sea-fish--two .bs-sea-fish-body {
  animation-duration: 6.7s;
  animation-delay: -3.8s;
}

.bs-sea-fish--three .bs-sea-fish-body {
  animation-duration: 4.9s;
  animation-delay: -2.4s;
}

.bs-sea-fish--four .bs-sea-fish-body {
  animation-duration: 7.4s;
  animation-delay: -5.1s;
}

.bs-sea-bubble {
  position: absolute;
  display: block;
  width: 6px;
  height: 6px;
  border: 1px solid rgb(143 236 241 / 32%);
  border-radius: 50%;
  opacity: 0;
  animation: bs-sea-bubble-rise 15s ease-in -3s infinite;
}

.bs-sea-bubble--one {
  right: 9%;
  bottom: 17%;
  animation-duration: 13s;
  animation-delay: -6s;
}

.bs-sea-bubble--two {
  bottom: 12%;
  left: 13%;
  animation-duration: 17s;
  animation-delay: -11s;
}

.bs-sea-bubble--three {
  right: 28%;
  bottom: 23%;
}

.bs-category-sea[data-motion="running"] .bs-sea-fish,
.bs-category-sea[data-motion="running"] .bs-sea-fish-body,
.bs-category-sea[data-motion="running"] .bs-sea-bubble {
  animation-play-state: running;
  will-change: transform, opacity;
}

.bs-category-sea[data-motion="paused"] .bs-sea-fish,
.bs-category-sea[data-motion="paused"] .bs-sea-fish-body,
.bs-category-sea[data-motion="paused"] .bs-sea-bubble,
.bs-category-sea[data-motion="still"] .bs-sea-fish,
.bs-category-sea[data-motion="still"] .bs-sea-fish-body,
.bs-category-sea[data-motion="still"] .bs-sea-bubble {
  animation-play-state: paused;
  will-change: auto;
}

.bs-category-sea[data-motion="running"] .bs-sea-wave {
  animation-play-state: running;
  will-change: transform;
}

.bs-category-sea[data-motion="paused"] .bs-sea-wave,
.bs-category-sea[data-motion="still"] .bs-sea-wave {
  animation-play-state: paused;
  will-change: auto;
}

@keyframes bs-sea-wave-flow {
  from { transform: translate3d(0, 0, 0) rotate(var(--bs-wave-turn)); }
  to { transform: translate3d(-25%, 0, 0) rotate(var(--bs-wave-turn)); }
}

@keyframes bs-sea-swim-east {
  0% { transform: translate3d(-42vw, 0, 0); }
  23% { transform: translate3d(-8vw, -4px, 0); }
  51% { transform: translate3d(36vw, 3px, 0); }
  76% { transform: translate3d(75vw, -3px, 0); }
  100% { transform: translate3d(142vw, 0, 0); }
}

@keyframes bs-sea-swim-west {
  0% { transform: translate3d(142vw, 0, 0); }
  24% { transform: translate3d(101vw, 3px, 0); }
  53% { transform: translate3d(52vw, -3px, 0); }
  76% { transform: translate3d(14vw, 3px, 0); }
  100% { transform: translate3d(-42vw, 0, 0); }
}

@keyframes bs-sea-fish-sway {
  0%, 100% { transform: rotate(-1.4deg) translate3d(0, 0, 0); }
  50% { transform: rotate(1.4deg) translate3d(0, 3px, 0); }
}

@keyframes bs-sea-bubble-rise {
  0% { opacity: 0; transform: translate3d(0, 6px, 0) scale(0.7); }
  15%, 75% { opacity: 0.42; }
  100% { opacity: 0; transform: translate3d(4px, -45px, 0) scale(1.12); }
}

@media (max-width: 680px) {
  .bs-category-sea {
    min-height: 300px;
    padding: 50px 16px 52px;
  }

  .bs-sea-heading-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
  }

  .bs-sea-heading-row h2 {
    width: 100%;
  }

  .bs-sea-hint:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    color: rgb(236 248 247 / 85%);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    transition: opacity 220ms ease, visibility 220ms ease;
  }

  .bs-sea-hint svg {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
  }

  .bs-category-sea[data-swipe-hint="dismissed"] .bs-sea-hint {
    visibility: hidden;
    opacity: 0;
  }


  .bs-sea-carousel {
    display: block;
    margin-right: -16px;
  }

  .bs-sea-arrow {
    display: none;
  }

  .bs-sea-viewport {
    padding-right: 28px;
  }

  .bs-sea-viewport[data-sea-more] {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  }

  .bs-sea-track {
    gap: 12px;
    padding-bottom: 8px;
  }

  .bs-sea-item {
    flex-basis: 84px;
  }

  .bs-sea-card {
    grid-template-rows: 84px auto;
    gap: 7px;
    width: 84px;
  }

  .bs-sea-image,
  .bs-sea-emoji {
    width: 84px;
    height: 84px;
    border-radius: 9px;
  }

  .bs-sea-emoji {
    font-size: 32px;
  }

  .bs-sea-name {
    min-height: 30px;
    font-size: 13px;
  }

  .bs-sea-fish--one {
    top: 3px;
    width: 141px;
  }

  .bs-sea-fish--two {
    top: 76%;
    width: 122px;
  }

  .bs-sea-fish--three,
  .bs-sea-fish--four,
  .bs-sea-bubble--two,
  .bs-sea-bubble--three {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bs-sea-wave { animation: none; will-change: auto; }
  .bs-sea-viewport { scroll-behavior: auto; }
  .bs-sea-image, .bs-sea-emoji { transition: none; }
  .bs-sea-hint:not([hidden]) { transition: none; }
  .bs-category-sea[data-motion="still"] .bs-sea-fish,
  .bs-category-sea[data-motion="still"] .bs-sea-fish-body,
  .bs-category-sea[data-motion="still"] .bs-sea-bubble {
    animation-play-state: paused;
    will-change: auto;
  }
}
