:root {
  --magenta: #e3066a;
  --magenta-deep: #b10552;
  --cyan: #00a7e1;
  --cyan-deep: #0077a8;
  --ink: #10233a;
  --muted: #4d647a;
  --paper: #f3f8fb;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(16, 35, 58, 0.12);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: Manrope, "Noto Sans SC", system-ui, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #e7f6fc 0%, #b9e4f4 38%, #7ec8e6 72%, #4aa8d4 100%);
  overflow-x: hidden;
}

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

.sea-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 420px at 18% 8%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(640px 380px at 88% 18%, rgba(227, 6, 106, 0.16), transparent 55%),
    radial-gradient(900px 500px at 50% 110%, rgba(0, 80, 120, 0.18), transparent 50%);
}

.sea-caustics {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 55%, rgba(255, 255, 255, 0.12) 0 3px, transparent 4px);
  background-size: 180px 180px, 240px 240px;
  animation: caustic 18s linear infinite;
  opacity: 0.55;
}

.swimmer {
  position: absolute;
  width: min(220px, 28vw);
  height: auto;
  opacity: 0.62;
  filter: drop-shadow(0 10px 12px rgba(16, 35, 58, 0.18));
  will-change: transform;
}

.swimmer svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.fish-wobble {
  transform-box: fill-box;
  transform-origin: 45% 55%;
  animation: wobble 0.85s ease-in-out infinite;
}

.fish-wobble.delay {
  animation-delay: -0.42s;
}

.fin-tail {
  transform-box: fill-box;
  transform-origin: 12% 50%;
  animation: flap 0.28s ease-in-out infinite;
}

.fin-dorsal,
.fin-pelvic {
  transform-box: fill-box;
  transform-origin: 50% 90%;
  animation: fin 0.5s ease-in-out infinite;
}

.fin-pelvic {
  transform-origin: 50% 10%;
  animation-duration: 0.42s;
}

.swim-1 {
  top: 10%;
  animation: swim-right 24s linear infinite;
}

.swim-2 {
  top: 32%;
  width: min(170px, 24vw);
  animation: swim-left 29s linear infinite;
}

.swim-3 {
  top: 54%;
  width: min(140px, 20vw);
  animation: swim-right 19s linear infinite;
  animation-delay: -6s;
}

.swim-4 {
  top: 76%;
  width: min(115px, 16vw);
  animation: swim-left 36s linear infinite;
  animation-delay: -10s;
}

.swim-5 {
  top: 20%;
  width: min(190px, 26vw);
  animation: swim-right 41s linear infinite;
  animation-delay: -18s;
}

.swim-6 {
  top: 44%;
  width: min(125px, 18vw);
  animation: swim-left 21s linear infinite;
  animation-delay: -4s;
}

.swim-7 {
  top: 66%;
  width: min(155px, 22vw);
  animation: swim-right 31s linear infinite;
  animation-delay: -14s;
}

.swim-8 {
  top: 86%;
  width: min(100px, 14vw);
  animation: swim-left 26s linear infinite;
  animation-delay: -9s;
}

.swim-9 {
  top: 6%;
  width: min(135px, 19vw);
  animation: swim-left 38s linear infinite;
  animation-delay: -22s;
}

.bubble {
  position: absolute;
  bottom: -40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.12));
  animation: bubble-rise linear infinite;
  box-shadow: inset -2px -3px 6px rgba(255, 255, 255, 0.35);
}

.b1 { left: 6%; width: 10px; height: 10px; animation-duration: 11s; }
.b2 { left: 14%; width: 16px; height: 16px; animation-duration: 15s; animation-delay: -3s; }
.b3 { left: 22%; width: 8px; height: 8px; animation-duration: 9s; animation-delay: -6s; }
.b4 { left: 31%; width: 14px; height: 14px; animation-duration: 13s; animation-delay: -2s; }
.b5 { left: 39%; width: 11px; height: 11px; animation-duration: 17s; animation-delay: -8s; }
.b6 { left: 47%; width: 18px; height: 18px; animation-duration: 12s; animation-delay: -4s; }
.b7 { left: 55%; width: 9px; height: 9px; animation-duration: 10s; animation-delay: -1s; }
.b8 { left: 63%; width: 13px; height: 13px; animation-duration: 16s; animation-delay: -7s; }
.b9 { left: 71%; width: 7px; height: 7px; animation-duration: 8s; animation-delay: -5s; }
.b10 { left: 79%; width: 20px; height: 20px; animation-duration: 19s; animation-delay: -9s; }
.b11 { left: 87%; width: 12px; height: 12px; animation-duration: 14s; animation-delay: -11s; }
.b12 { left: 94%; width: 8px; height: 8px; animation-duration: 10s; animation-delay: -2.5s; }
.b13 { left: 10%; width: 6px; height: 6px; animation-duration: 7s; animation-delay: -4.5s; }
.b14 { left: 26%; width: 15px; height: 15px; animation-duration: 18s; animation-delay: -13s; }
.b15 { left: 43%; width: 9px; height: 9px; animation-duration: 11s; animation-delay: -6.5s; }
.b16 { left: 58%; width: 17px; height: 17px; animation-duration: 20s; animation-delay: -1.8s; }
.b17 { left: 68%; width: 6px; height: 6px; animation-duration: 8s; animation-delay: -9.2s; }
.b18 { left: 76%; width: 11px; height: 11px; animation-duration: 13s; animation-delay: -15s; }
.b19 { left: 84%; width: 22px; height: 22px; animation-duration: 21s; animation-delay: -3.4s; }
.b20 { left: 51%; width: 7px; height: 7px; animation-duration: 9s; animation-delay: -12s; }

@keyframes swim-right {
  0% { transform: translateX(-32vw) translateY(0) scaleX(1); }
  18% { transform: translateX(6vw) translateY(-26px) scaleX(1); }
  36% { transform: translateX(32vw) translateY(14px) scaleX(1); }
  50% { transform: translateX(58vw) translateY(-10px) scaleX(1); }
  50.01% { transform: translateX(58vw) translateY(-10px) scaleX(-1); }
  68% { transform: translateX(30vw) translateY(22px) scaleX(-1); }
  84% { transform: translateX(2vw) translateY(-16px) scaleX(-1); }
  100% { transform: translateX(-32vw) translateY(8px) scaleX(-1); }
}

@keyframes swim-left {
  0% { transform: translateX(112vw) translateY(0) scaleX(-1); }
  18% { transform: translateX(78vw) translateY(20px) scaleX(-1); }
  36% { transform: translateX(48vw) translateY(-24px) scaleX(-1); }
  50% { transform: translateX(18vw) translateY(12px) scaleX(-1); }
  50.01% { transform: translateX(18vw) translateY(12px) scaleX(1); }
  68% { transform: translateX(46vw) translateY(-18px) scaleX(1); }
  84% { transform: translateX(82vw) translateY(16px) scaleX(1); }
  100% { transform: translateX(112vw) translateY(-8px) scaleX(1); }
}

@keyframes wobble {
  0%, 100% { transform: rotate(-7deg) translateY(0); }
  50% { transform: rotate(7deg) translateY(5px); }
}

@keyframes flap {
  0%, 100% { transform: rotate(-16deg); }
  50% { transform: rotate(18deg); }
}

@keyframes fin {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(10deg); }
}

@keyframes bubble-rise {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10% { opacity: 0.75; }
  50% { transform: translateY(-55vh) translateX(12px) scale(1.2); }
  100% { transform: translateY(-110vh) translateX(-8px) scale(1.4); opacity: 0; }
}

@keyframes caustic {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-80px, 40px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .swimmer,
  .bubble,
  .sea-caustics,
  .fish-wobble,
  .fin-tail,
  .fin-dorsal,
  .fin-pelvic {
    animation: none;
  }

  .swimmer {
    display: none;
  }
}

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

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
}

.company {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  color: var(--muted);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.brand {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.brand--mini img {
  height: 48px;
  width: auto;
  animation: bob 3.2s ease-in-out infinite;
}

.logo {
  width: min(280px, 70vw);
  height: auto;
  position: relative;
  z-index: 2;
  background: transparent;
  filter: drop-shadow(0 12px 18px rgba(16, 35, 58, 0.16));
  animation: bob 3.6s ease-in-out infinite;
  transition: transform 0.35s ease;
}

.lang {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  background: #fff;
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--shadow);
}

.lang button {
  border: 0;
  background: transparent;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
}

.lang button.is-active {
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  color: #fff;
}

main {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 20px 80px;
  min-height: calc(100vh - 140px);
}

.stage {
  display: none;
  animation: rise 0.55s ease;
}

.stage.is-active {
  display: block;
}

h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 8px 0 8px;
  letter-spacing: -0.03em;
}

html.is-zh h2,
html.is-zh h3 {
  font-family: "Noto Sans SC", sans-serif;
  letter-spacing: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan-deep);
  text-align: center;
  max-width: 36ch;
  line-height: 1.45;
}

.lede {
  color: var(--muted);
  max-width: 46ch;
  line-height: 1.55;
}

.note {
  margin: 22px 0 0;
  padding: 12px 14px;
  max-width: 62ch;
  color: var(--ink);
  background: rgba(0, 167, 225, 0.1);
  border-left: 3px solid var(--cyan);
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.config-hero .note {
  margin-top: 12px;
}

#stage-welcome .lede,
#stage-welcome .eyebrow {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: min(360px, 86vw);
  margin: 12px auto 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.logo-wrap:hover .logo,
.logo-wrap:focus-visible .logo {
  transform: scale(1.06) rotate(-2deg);
}

.logo-wrap.is-splash .logo {
  animation: splash 0.7s ease forwards;
}

.ripple,
.ripple.delay {
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(0, 167, 225, 0.35);
  animation: pulse 2.8s ease-out infinite;
}

.ripple.delay {
  animation-delay: 1.1s;
  border-color: rgba(227, 6, 106, 0.28);
}

.logo-hint {
  margin-top: 18px;
  font-weight: 700;
  color: var(--magenta);
}

.video-stage {
  width: min(860px, 100%);
  margin: 8px auto 22px;
}

.video-kicker {
  margin: 0 0 12px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--magenta-deep);
}

.video-stage,
.socials {
  position: relative;
  z-index: 3;
}

.video-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  overflow: hidden;
  background: #081422;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  box-shadow:
    0 0 0 3px rgba(227, 6, 106, 0.35),
    0 0 0 8px rgba(0, 167, 225, 0.12),
    0 28px 70px rgba(16, 35, 58, 0.28);
}

.video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
}

.play-btn {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 78px;
  height: 78px;
  margin: -39px 0 0 -39px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  box-shadow: 0 12px 30px rgba(16, 35, 58, 0.35);
}

.play-btn::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 24px;
  border-style: solid;
  border-width: 15px 0 15px 24px;
  border-color: transparent transparent transparent #fff;
}

.video-frame:hover .play-btn {
  transform: scale(1.06);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 18px auto 0;
}

.socials--compact {
  justify-content: flex-start;
  margin: 10px 0 6px;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.78;
  padding: 4px 2px;
  pointer-events: auto;
  cursor: pointer;
}

.social svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.social[data-network="youtube"] {
  color: #c81e3a;
}

.social[data-network="instagram"] {
  color: #c13584;
}

.social[data-network="facebook"] {
  color: #1877f2;
}

.social:hover,
.social:focus-visible {
  opacity: 1;
  color: var(--ink);
}

.social[data-network="youtube"]:hover {
  color: #e11d48;
}

.social[data-network="instagram"]:hover {
  color: #c13584;
}

.social[data-network="facebook"]:hover {
  color: #1877f2;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.family {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
  border: 1px solid rgba(16, 35, 58, 0.06);
  box-shadow: var(--shadow);
}

.family h3 {
  font-family: Fraunces, Georgia, serif;
  margin: 0 0 4px;
  font-size: 1.4rem;
}

.sci {
  margin: 0 0 12px;
  font-weight: 500;
  font-style: italic;
  font-size: 0.82rem;
  color: var(--muted);
}

.choice .sci {
  display: block;
  margin: 4px 0 0;
  font-weight: 500;
}

.cards-2 {
  grid-template-columns: 1fr 1fr;
}

.choices {
  display: grid;
  gap: 10px;
}

.choice {
  border: 1px solid rgba(16, 35, 58, 0.1);
  background: #f7fbfe;
  border-radius: 20px;
  padding: 12px 14px 16px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.choice svg,
.choice .photo {
  width: 100%;
  height: 148px;
  object-fit: contain;
}

.choice:hover,
.choice:focus-visible {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 18px 36px rgba(0, 119, 168, 0.16);
}

.config-hero {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 8px;
}

.preview-stack {
  display: grid;
  gap: 12px;
}

.photo-frame {
  margin: 0;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.photo-frame figcaption {
  margin: 0;
  padding: 10px 14px 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.frame-body {
  min-height: 168px;
  display: grid;
  place-items: center;
  padding: 6px 12px 14px;
}

.frame-body svg,
.frame-body .photo {
  width: 100%;
  height: 150px;
  object-fit: contain;
}

.media {
  width: 100%;
}

.chip.is-preview:not(.is-on) {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 167, 225, 0.18);
}

.card h3 {
  font-family: Fraunces, Georgia, serif;
  margin: 8px 0 6px;
  font-size: 1.45rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.config {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

legend,
label span {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
}

#filletUnitSwitch {
  margin: -4px 0 12px;
  display: inline-flex;
  box-shadow: none;
  border: 1px solid rgba(16, 35, 58, 0.1);
}

#filletUnitSwitch[hidden] {
  display: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid rgba(16, 35, 58, 0.12);
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.chip.is-on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

input,
select {
  width: 100%;
  border: 1px solid rgba(16, 35, 58, 0.14);
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}

.dest-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dest-suggest button {
  border: 0;
  background: rgba(0, 167, 225, 0.12);
  color: var(--cyan-deep);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
}

.cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  text-decoration: none;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  color: #fff;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(227, 6, 106, 0.25);
  width: fit-content;
}

.cta--wa {
  margin-top: 18px;
  background: #128c7e;
  box-shadow: 0 14px 30px rgba(18, 140, 126, 0.28);
}

.back {
  border: 0;
  background: transparent;
  color: var(--cyan-deep);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin-bottom: 8px;
}

.ticket {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  max-width: 560px;
}

.ticket dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 12px;
  margin: 0;
}

.ticket dt {
  color: var(--muted);
  font-weight: 600;
}

.ticket dd {
  margin: 0;
  font-weight: 700;
}

.fineprint {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 52ch;
}

footer {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  padding: 0 20px 24px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--magenta);
}

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

@keyframes pulse {
  0% {
    transform: scale(0.7);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@keyframes splash {
  40% {
    transform: scale(1.18) rotate(-4deg);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 840px) {
  .cards,
  .cards-2,
  .grid-2,
  .config-hero,
  .ticket dl {
    grid-template-columns: 1fr;
  }

  .topbar .company {
    display: none;
  }
}
