/* ==========================================================================
   CẢNH BIỂN ĐÊM (.ocean-scene): trời sao, trăng tròn, sóng, đàn cá bơi dưới nước (cá do public/ocean-scene.js tạo)
   Dùng cho:
     - màn hình loading #app-loader (hiện ngay khi mở trang, React ẩn đi qua src/utils/appLoader.ts):
       thêm chữ Tâm An giữa trời có 2 cá chép bơi vòng quanh (.ocean__emblem)
     - nền các trang công khai (src/components/public/OceanBackground.tsx): không có chữ & cá xoay tròn
   ========================================================================== */

#app-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #062420;
  transition: opacity 0.55s ease;
  will-change: opacity;
}
#app-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Mốc chung: đường chân trời ở 55% chiều cao; --emblem là cỡ khung chữ Tâm An + quỹ đạo cá */
.ocean-scene {
  --horizon: 55%;
  /* Vòng cá rộng ≈ 2S: giới hạn theo bề ngang (vừa màn hình điện thoại) & chiều cao (nằm gọn trên mặt biển) */
  --emblem: min(46vw, 250px, 25vh);
  /* Cỡ trăng & tâm trăng theo bề ngang (dùng cho cả vệt trăng phản chiếu trên mặt nước) */
  --moon: clamp(46px, 9vw, 96px);
  --moon-x: calc(100% - max(16px, 8%) - var(--moon) / 2);
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(ellipse 70% 12% at 50% var(--horizon), rgba(40, 128, 110, 0.35), transparent 72%),
    linear-gradient(180deg, #021310 0%, #06231f 38%, #0d4038 var(--horizon), #062420 100%);
}

/* Sao lấp lánh trên trời: lớp sao sáng (lõi trắng + quầng mờ) và lớp sao nhỏ (::before) nhấp nháy lệch nhịp nhau */
.ocean__stars,
.ocean__stars::before {
  position: absolute;
  inset: 0 0 45% 0;
  will-change: opacity;
  animation: oceanTwinkle 3.2s ease-in-out infinite alternate;
}
.ocean__stars {
  --star: #fff, rgba(255, 238, 190, 0.55) 45%, transparent 100%;
  background-image: radial-gradient(2.6px 2.6px at 8% 14%, var(--star)),
    radial-gradient(2px 2px at 18% 32%, var(--star)),
    radial-gradient(2.8px 2.8px at 27% 9%, var(--star)),
    radial-gradient(2px 2px at 38% 22%, var(--star)),
    radial-gradient(2.6px 2.6px at 63% 12%, var(--star)),
    radial-gradient(2px 2px at 72% 30%, var(--star)),
    radial-gradient(2.4px 2.4px at 92% 34%, var(--star)),
    radial-gradient(2px 2px at 4% 40%, var(--star)),
    radial-gradient(2.2px 2.2px at 96% 52%, var(--star)),
    radial-gradient(2.6px 2.6px at 14% 58%, var(--star)),
    radial-gradient(2.2px 2.2px at 47% 6%, var(--star)),
    radial-gradient(2.4px 2.4px at 56% 40%, var(--star)),
    radial-gradient(2px 2px at 80% 46%, var(--star)),
    radial-gradient(2.4px 2.4px at 33% 48%, var(--star));
}
.ocean__stars::before {
  content: '';
  inset: 0;
  --dot: #fff8e0, transparent 100%;
  background-image: radial-gradient(1.3px 1.3px at 3% 7%, var(--dot)),
    radial-gradient(1.2px 1.2px at 12% 24%, var(--dot)),
    radial-gradient(1.4px 1.4px at 22% 44%, var(--dot)),
    radial-gradient(1.2px 1.2px at 31% 16%, var(--dot)),
    radial-gradient(1.3px 1.3px at 42% 34%, var(--dot)),
    radial-gradient(1.2px 1.2px at 51% 18%, var(--dot)),
    radial-gradient(1.4px 1.4px at 59% 28%, var(--dot)),
    radial-gradient(1.2px 1.2px at 67% 4%, var(--dot)),
    radial-gradient(1.3px 1.3px at 76% 22%, var(--dot)),
    radial-gradient(1.2px 1.2px at 87% 40%, var(--dot)),
    radial-gradient(1.4px 1.4px at 9% 50%, var(--dot)),
    radial-gradient(1.2px 1.2px at 69% 54%, var(--dot)),
    radial-gradient(1.3px 1.3px at 44% 58%, var(--dot)),
    radial-gradient(1.2px 1.2px at 24% 66%, var(--dot));
  animation-duration: 2.3s;
  animation-delay: -1.1s;
}

/* Trăng tròn góc phải trên: mặt trăng vàng ngà có vài vết lõm mờ, viền tối nhẹ cho khối tròn, ánh sáng dịu quanh trăng */
.ocean__moon {
  position: absolute;
  z-index: 1;
  top: max(16px, 7%);
  right: max(16px, 8%);
  width: var(--moon);
  height: var(--moon);
  border-radius: 50%;
  background: radial-gradient(circle at 63% 30%, rgba(196, 172, 118, 0.45), transparent 12%),
    radial-gradient(circle at 36% 58%, rgba(196, 172, 118, 0.38), transparent 16%),
    radial-gradient(circle at 70% 68%, rgba(196, 172, 118, 0.32), transparent 10%),
    radial-gradient(circle at 48% 82%, rgba(196, 172, 118, 0.25), transparent 8%),
    radial-gradient(circle at 26% 32%, rgba(196, 172, 118, 0.22), transparent 7%),
    radial-gradient(circle at 40% 36%, #fffdf2 0%, #f8edcb 55%, #e4d29e 100%);
  box-shadow: inset -0.08em -0.1em 0.3em rgba(150, 120, 60, 0.35), 0 0 20px 5px rgba(255, 246, 220, 0.6),
    0 0 56px 18px rgba(255, 236, 182, 0.32), 0 0 120px 48px rgba(255, 228, 165, 0.14);
  font-size: var(--moon);
  will-change: transform, opacity;
  animation: oceanMoonGlow 4s ease-in-out infinite alternate;
}
/* Bấm vào trăng: nảy lên vài nhịp & sáng bừng (class do OceanBackground.tsx gắn tạm thời) */
.ocean__moon.is-bouncing {
  animation: oceanMoonBounce 0.95s cubic-bezier(0.3, 0.7, 0.4, 1) 1;
}
/* Sao lấp lánh 4 cánh: mỗi ngôi sao nhấp nháy, xoay nhẹ theo nhịp riêng (vị trí do OceanBackground.tsx đặt) */
.ocean__sparkles {
  position: absolute;
  inset: 0 0 45% 0;
  pointer-events: none;
}
.ocean__sparkle {
  position: absolute;
  width: calc(var(--s, 14px) * 1.5);
  height: calc(var(--s, 14px) * 1.5);
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.2);
  will-change: transform, opacity;
  animation: oceanSparkle var(--d, 3.6s) ease-in-out var(--delay, 0s) infinite;
}
/* Sao vừa được bấm / bị tia sáng chạm tới: lóe sáng to rồi dịu lại */
.ocean__sparkle.is-lit {
  animation: oceanSparkleFlash 0.9s ease-out 1;
}
/* Sao băng bắn giữa các sao: đuôi mờ dần, đầu sáng ở mép phải (JS xoay & trượt theo hướng bay) */
.ocean__shot {
  position: absolute;
  width: 90px;
  height: 2px;
  border-radius: 2px;
  transform-origin: 100% 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 236, 180, 0.45) 55%, #fffbea);
  pointer-events: none;
  will-change: transform, opacity;
}
.ocean__shot::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 3px rgba(255, 240, 200, 0.9);
}
.ocean__sparkle::before,
.ocean__sparkle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 2px;
  transform: translate(-50%, -50%);
}
.ocean__sparkle::before {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fffbea, transparent);
  box-shadow: 0 0 6px rgba(255, 236, 180, 0.8);
}
.ocean__sparkle::after {
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, #fffbea, transparent);
  box-shadow: 0 0 6px rgba(255, 236, 180, 0.8);
}

/* Chữ "Tâm An" giữa trời, 2 cá chép cong ôm vòng tròn quanh chữ */
.ocean__emblem {
  position: absolute;
  z-index: 2;
  left: calc(50% - var(--emblem) / 2);
  top: calc(var(--horizon) - 28px - var(--emblem) * 1.51);
  width: var(--emblem);
  height: var(--emblem);
}
.ocean__title {
  position: absolute;
  inset: 0 12.5%;
  background: url('/loader-ocean-sun.webp') center / contain no-repeat;
  will-change: transform;
  animation: oceanTitleBreath 2.8s ease-in-out infinite;
}
.ocean__orbit {
  position: absolute;
  inset: -51.67%;
  will-change: transform;
  animation: oceanSpin 10s linear infinite;
}

/* Biển: nền nước dưới chân trời + quầng sáng trăng loang ở đường chân trời */
.ocean__sea {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: var(--horizon);
  bottom: 0;
  background: radial-gradient(ellipse 34% 26% at var(--moon-x) 0, rgba(247, 220, 138, 0.16), transparent 70%),
    linear-gradient(180deg, #0d4038 0%, #072e28 45%, #03160f 100%);
}

/* Sóng: 4 lớp xa → gần, mỗi lớp là một dải SVG lặp ngang liền mạch (đỉnh sóng cao thấp không đều, viền vàng sáng
   ở đỉnh & mờ dần xuống hõm sóng; lớp gần thêm vệt bọt mảnh). Lớp xa nhỏ, mờ, trôi chậm; lớp gần to, rõ, trôi nhanh hơn
   → cảm giác chiều sâu. Trôi bằng GPU transform (translate3d) đúng một chu kỳ dải (--tile) nên không bị giật khi lặp.
   (Đường sóng sinh từ tổng các sóng sin có số chu kỳ nguyên trên mỗi dải nên hai đầu khớp nhau.) */
.ocean__wave {
  position: absolute;
  left: calc(-1 * var(--tile));
  right: calc(-1 * var(--tile));
  bottom: -10px;
  will-change: transform;
  background: var(--wave) 0 0 / var(--tile) var(--h) repeat-x,
    linear-gradient(var(--deep), #03160f) 0 calc(var(--h) - 1px) / 100% 100% no-repeat;
  animation: oceanWaveDrift var(--dur) linear infinite;
}
.ocean__wave--far {
  --tile: 360px;
  --h: 24px;
  --dur: 46s;
  --deep: #0c3f37;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 24'%3E%3Cdefs%3E%3ClinearGradient id='f' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%230f4b42'/%3E%3Cstop offset='1' stop-color='%230c3f37'/%3E%3C/linearGradient%3E%3ClinearGradient id='s' gradientUnits='userSpaceOnUse' x1='0' y1='9.2' x2='0' y2='15.7'%3E%3Cstop offset='0' stop-color='%23f7dc8a' stop-opacity='0.22'/%3E%3Cstop offset='1' stop-color='%23d4af37' stop-opacity='0.040'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 10.8C2.5 10.6 5.0 10.4 7.5 10.3C10.0 10.3 12.5 10.3 15.0 10.3C17.5 10.4 20.0 10.5 22.5 10.7C25.0 10.9 27.5 11.1 30.0 11.3C32.5 11.6 35.0 11.8 37.5 12.0C40.0 12.2 42.5 12.4 45.0 12.6C47.5 12.7 50.0 12.8 52.5 12.8C55.0 12.9 57.5 12.9 60.0 12.8C62.5 12.8 65.0 12.7 67.5 12.7C70.0 12.6 72.5 12.6 75.0 12.5C77.5 12.5 80.0 12.5 82.5 12.6C85.0 12.6 87.5 12.7 90.0 12.8C92.5 12.9 95.0 13.1 97.5 13.3C100.0 13.4 102.5 13.6 105.0 13.8C107.5 14.0 110.0 14.1 112.5 14.3C115.0 14.4 117.5 14.5 120.0 14.6C122.5 14.7 125.0 14.7 127.5 14.7C130.0 14.7 132.5 14.7 135.0 14.6C137.5 14.6 140.0 14.5 142.5 14.5C145.0 14.4 147.5 14.4 150.0 14.3C152.5 14.3 155.0 14.3 157.5 14.2C160.0 14.2 162.5 14.2 165.0 14.2C167.5 14.2 170.0 14.2 172.5 14.1C175.0 14.1 177.5 14.0 180.0 13.9C182.5 13.7 185.0 13.6 187.5 13.3C190.0 13.1 192.5 12.8 195.0 12.5C197.5 12.1 200.0 11.8 202.5 11.4C205.0 11.1 207.5 10.7 210.0 10.4C212.5 10.1 215.0 9.8 217.5 9.6C220.0 9.4 222.5 9.2 225.0 9.2C227.5 9.2 230.0 9.3 232.5 9.4C235.0 9.6 237.5 9.9 240.0 10.2C242.5 10.5 245.0 10.9 247.5 11.3C250.0 11.6 252.5 12.1 255.0 12.5C257.5 12.9 260.0 13.3 262.5 13.6C265.0 13.9 267.5 14.2 270.0 14.5C272.5 14.7 275.0 14.9 277.5 15.1C280.0 15.3 282.5 15.4 285.0 15.4C287.5 15.5 290.0 15.6 292.5 15.6C295.0 15.7 297.5 15.7 300.0 15.7C302.5 15.7 305.0 15.7 307.5 15.7C310.0 15.7 312.5 15.7 315.0 15.6C317.5 15.5 320.0 15.4 322.5 15.3C325.0 15.1 327.5 14.9 330.0 14.7C332.5 14.4 335.0 14.1 337.5 13.8C340.0 13.5 342.5 13.1 345.0 12.8C347.5 12.4 350.0 12.0 352.5 11.7C355.0 11.4 357.5 11.1 360.0 10.8V24H0Z' fill='url(%23f)'/%3E%3Cpath d='M0 10.8C2.5 10.6 5.0 10.4 7.5 10.3C10.0 10.3 12.5 10.3 15.0 10.3C17.5 10.4 20.0 10.5 22.5 10.7C25.0 10.9 27.5 11.1 30.0 11.3C32.5 11.6 35.0 11.8 37.5 12.0C40.0 12.2 42.5 12.4 45.0 12.6C47.5 12.7 50.0 12.8 52.5 12.8C55.0 12.9 57.5 12.9 60.0 12.8C62.5 12.8 65.0 12.7 67.5 12.7C70.0 12.6 72.5 12.6 75.0 12.5C77.5 12.5 80.0 12.5 82.5 12.6C85.0 12.6 87.5 12.7 90.0 12.8C92.5 12.9 95.0 13.1 97.5 13.3C100.0 13.4 102.5 13.6 105.0 13.8C107.5 14.0 110.0 14.1 112.5 14.3C115.0 14.4 117.5 14.5 120.0 14.6C122.5 14.7 125.0 14.7 127.5 14.7C130.0 14.7 132.5 14.7 135.0 14.6C137.5 14.6 140.0 14.5 142.5 14.5C145.0 14.4 147.5 14.4 150.0 14.3C152.5 14.3 155.0 14.3 157.5 14.2C160.0 14.2 162.5 14.2 165.0 14.2C167.5 14.2 170.0 14.2 172.5 14.1C175.0 14.1 177.5 14.0 180.0 13.9C182.5 13.7 185.0 13.6 187.5 13.3C190.0 13.1 192.5 12.8 195.0 12.5C197.5 12.1 200.0 11.8 202.5 11.4C205.0 11.1 207.5 10.7 210.0 10.4C212.5 10.1 215.0 9.8 217.5 9.6C220.0 9.4 222.5 9.2 225.0 9.2C227.5 9.2 230.0 9.3 232.5 9.4C235.0 9.6 237.5 9.9 240.0 10.2C242.5 10.5 245.0 10.9 247.5 11.3C250.0 11.6 252.5 12.1 255.0 12.5C257.5 12.9 260.0 13.3 262.5 13.6C265.0 13.9 267.5 14.2 270.0 14.5C272.5 14.7 275.0 14.9 277.5 15.1C280.0 15.3 282.5 15.4 285.0 15.4C287.5 15.5 290.0 15.6 292.5 15.6C295.0 15.7 297.5 15.7 300.0 15.7C302.5 15.7 305.0 15.7 307.5 15.7C310.0 15.7 312.5 15.7 315.0 15.6C317.5 15.5 320.0 15.4 322.5 15.3C325.0 15.1 327.5 14.9 330.0 14.7C332.5 14.4 335.0 14.1 337.5 13.8C340.0 13.5 342.5 13.1 345.0 12.8C347.5 12.4 350.0 12.0 352.5 11.7C355.0 11.4 357.5 11.1 360.0 10.8' fill='none' stroke='url(%23s)' stroke-width='0.8' stroke-linecap='round'/%3E%3C/svg%3E");
  z-index: 4;
  top: calc(var(--horizon) - 10px);
  opacity: 0.9;
}
.ocean__wave--back {
  --tile: 560px;
  --h: 40px;
  --dur: 32s;
  --deep: #0a3630;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 40'%3E%3Cdefs%3E%3ClinearGradient id='f' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%230e453d'/%3E%3Cstop offset='1' stop-color='%230a3630'/%3E%3C/linearGradient%3E%3ClinearGradient id='s' gradientUnits='userSpaceOnUse' x1='0' y1='15.3' x2='0' y2='26.3'%3E%3Cstop offset='0' stop-color='%23f7dc8a' stop-opacity='0.32'/%3E%3Cstop offset='1' stop-color='%23d4af37' stop-opacity='0.058'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 17.2C3.9 17.1 7.8 17.1 11.7 17.2C15.6 17.2 19.4 17.2 23.3 17.2C27.2 17.2 31.1 17.2 35.0 17.2C38.9 17.1 42.8 17.0 46.7 16.8C50.6 16.7 54.4 16.5 58.3 16.3C62.2 16.1 66.1 15.8 70.0 15.7C73.9 15.5 77.8 15.4 81.7 15.3C85.6 15.3 89.4 15.3 93.3 15.4C97.2 15.5 101.1 15.7 105.0 15.9C108.9 16.2 112.8 16.5 116.7 16.9C120.6 17.2 124.4 17.6 128.3 17.9C132.2 18.2 136.1 18.5 140.0 18.7C143.9 18.9 147.8 19.0 151.7 19.0C155.6 19.0 159.4 19.0 163.3 18.8C167.2 18.7 171.1 18.4 175.0 18.2C178.9 18.0 182.8 17.7 186.7 17.4C190.6 17.2 194.4 17.0 198.3 16.8C202.2 16.7 206.1 16.6 210.0 16.6C213.9 16.6 217.8 16.7 221.7 16.8C225.6 17.0 229.4 17.2 233.3 17.4C237.2 17.6 241.1 17.8 245.0 18.0C248.9 18.1 252.8 18.3 256.7 18.4C260.6 18.5 264.4 18.5 268.3 18.5C272.2 18.5 276.1 18.4 280.0 18.3C283.9 18.3 287.8 18.1 291.7 18.1C295.6 18.0 299.4 18.0 303.3 18.0C307.2 18.1 311.1 18.2 315.0 18.4C318.9 18.7 322.8 19.0 326.7 19.4C330.6 19.8 334.4 20.4 338.3 20.9C342.2 21.4 346.1 22.0 350.0 22.6C353.9 23.1 357.8 23.7 361.7 24.2C365.6 24.6 369.4 25.1 373.3 25.4C377.2 25.7 381.1 25.9 385.0 26.0C388.9 26.1 392.8 26.2 396.7 26.2C400.6 26.2 404.4 26.1 408.3 26.0C412.2 25.9 416.1 25.8 420.0 25.8C423.9 25.8 427.8 25.7 431.7 25.8C435.6 25.8 439.4 25.9 443.3 25.9C447.2 26.0 451.1 26.1 455.0 26.2C458.9 26.3 462.8 26.3 466.7 26.3C470.6 26.3 474.4 26.2 478.3 26.0C482.2 25.8 486.1 25.5 490.0 25.1C493.9 24.7 497.8 24.2 501.7 23.7C505.6 23.1 509.4 22.5 513.3 21.9C517.2 21.3 521.1 20.7 525.0 20.1C528.9 19.6 532.8 19.0 536.7 18.6C540.6 18.2 544.4 17.9 548.3 17.6C552.2 17.4 556.1 17.3 560.0 17.2V40H0Z' fill='url(%23f)'/%3E%3Cpath d='M0 17.2C3.9 17.1 7.8 17.1 11.7 17.2C15.6 17.2 19.4 17.2 23.3 17.2C27.2 17.2 31.1 17.2 35.0 17.2C38.9 17.1 42.8 17.0 46.7 16.8C50.6 16.7 54.4 16.5 58.3 16.3C62.2 16.1 66.1 15.8 70.0 15.7C73.9 15.5 77.8 15.4 81.7 15.3C85.6 15.3 89.4 15.3 93.3 15.4C97.2 15.5 101.1 15.7 105.0 15.9C108.9 16.2 112.8 16.5 116.7 16.9C120.6 17.2 124.4 17.6 128.3 17.9C132.2 18.2 136.1 18.5 140.0 18.7C143.9 18.9 147.8 19.0 151.7 19.0C155.6 19.0 159.4 19.0 163.3 18.8C167.2 18.7 171.1 18.4 175.0 18.2C178.9 18.0 182.8 17.7 186.7 17.4C190.6 17.2 194.4 17.0 198.3 16.8C202.2 16.7 206.1 16.6 210.0 16.6C213.9 16.6 217.8 16.7 221.7 16.8C225.6 17.0 229.4 17.2 233.3 17.4C237.2 17.6 241.1 17.8 245.0 18.0C248.9 18.1 252.8 18.3 256.7 18.4C260.6 18.5 264.4 18.5 268.3 18.5C272.2 18.5 276.1 18.4 280.0 18.3C283.9 18.3 287.8 18.1 291.7 18.1C295.6 18.0 299.4 18.0 303.3 18.0C307.2 18.1 311.1 18.2 315.0 18.4C318.9 18.7 322.8 19.0 326.7 19.4C330.6 19.8 334.4 20.4 338.3 20.9C342.2 21.4 346.1 22.0 350.0 22.6C353.9 23.1 357.8 23.7 361.7 24.2C365.6 24.6 369.4 25.1 373.3 25.4C377.2 25.7 381.1 25.9 385.0 26.0C388.9 26.1 392.8 26.2 396.7 26.2C400.6 26.2 404.4 26.1 408.3 26.0C412.2 25.9 416.1 25.8 420.0 25.8C423.9 25.8 427.8 25.7 431.7 25.8C435.6 25.8 439.4 25.9 443.3 25.9C447.2 26.0 451.1 26.1 455.0 26.2C458.9 26.3 462.8 26.3 466.7 26.3C470.6 26.3 474.4 26.2 478.3 26.0C482.2 25.8 486.1 25.5 490.0 25.1C493.9 24.7 497.8 24.2 501.7 23.7C505.6 23.1 509.4 22.5 513.3 21.9C517.2 21.3 521.1 20.7 525.0 20.1C528.9 19.6 532.8 19.0 536.7 18.6C540.6 18.2 544.4 17.9 548.3 17.6C552.2 17.4 556.1 17.3 560.0 17.2' fill='none' stroke='url(%23s)' stroke-width='1.0' stroke-linecap='round'/%3E%3C/svg%3E");
  z-index: 4;
  top: calc(var(--horizon) - 2px);
}
.ocean__wave--mid {
  --tile: 720px;
  --h: 56px;
  --dur: 23s;
  --deep: #072b25;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 56'%3E%3Cdefs%3E%3ClinearGradient id='f' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%230b3b34'/%3E%3Cstop offset='1' stop-color='%23072b25'/%3E%3C/linearGradient%3E%3ClinearGradient id='s' gradientUnits='userSpaceOnUse' x1='0' y1='17.8' x2='0' y2='37.6'%3E%3Cstop offset='0' stop-color='%23f7dc8a' stop-opacity='0.42'/%3E%3Cstop offset='1' stop-color='%23d4af37' stop-opacity='0.076'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 18.9C5.0 18.5 10.0 18.2 15.0 18.1C20.0 17.9 25.0 17.8 30.0 17.8C35.0 17.8 40.0 17.9 45.0 18.1C50.0 18.2 55.0 18.5 60.0 18.7C65.0 19.0 70.0 19.3 75.0 19.7C80.0 20.0 85.0 20.3 90.0 20.7C95.0 21.0 100.0 21.4 105.0 21.7C110.0 22.0 115.0 22.3 120.0 22.7C125.0 23.0 130.0 23.3 135.0 23.6C140.0 23.9 145.0 24.2 150.0 24.4C155.0 24.7 160.0 25.0 165.0 25.2C170.0 25.5 175.0 25.7 180.0 25.9C185.0 26.2 190.0 26.4 195.0 26.6C200.0 26.7 205.0 26.9 210.0 27.0C215.0 27.1 220.0 27.2 225.0 27.2C230.0 27.3 235.0 27.3 240.0 27.3C245.0 27.3 250.0 27.2 255.0 27.2C260.0 27.2 265.0 27.1 270.0 27.1C275.0 27.1 280.0 27.1 285.0 27.1C290.0 27.2 295.0 27.3 300.0 27.5C305.0 27.6 310.0 27.9 315.0 28.2C320.0 28.5 325.0 29.0 330.0 29.4C335.0 29.9 340.0 30.5 345.0 31.1C350.0 31.7 355.0 32.4 360.0 33.0C365.0 33.6 370.0 34.3 375.0 34.9C380.0 35.5 385.0 36.0 390.0 36.5C395.0 36.9 400.0 37.3 405.0 37.4C410.0 37.6 415.0 37.7 420.0 37.6C425.0 37.5 430.0 37.3 435.0 36.9C440.0 36.6 445.0 36.0 450.0 35.4C455.0 34.8 460.0 34.1 465.0 33.4C470.0 32.6 475.0 31.8 480.0 31.1C485.0 30.3 490.0 29.5 495.0 28.9C500.0 28.3 505.0 27.6 510.0 27.2C515.0 26.7 520.0 26.4 525.0 26.2C530.0 26.0 535.0 25.9 540.0 25.9C545.0 26.0 550.0 26.2 555.0 26.4C560.0 26.6 565.0 27.0 570.0 27.3C575.0 27.6 580.0 28.0 585.0 28.3C590.0 28.6 595.0 28.9 600.0 29.1C605.0 29.3 610.0 29.4 615.0 29.4C620.0 29.4 625.0 29.2 630.0 29.0C635.0 28.8 640.0 28.4 645.0 27.9C650.0 27.5 655.0 26.9 660.0 26.3C665.0 25.7 670.0 24.9 675.0 24.3C680.0 23.6 685.0 22.8 690.0 22.2C695.0 21.5 700.0 20.9 705.0 20.3C710.0 19.8 715.0 19.3 720.0 18.9V56H0Z' fill='url(%23f)'/%3E%3Cpath d='M0 18.9C5.0 18.5 10.0 18.2 15.0 18.1C20.0 17.9 25.0 17.8 30.0 17.8C35.0 17.8 40.0 17.9 45.0 18.1C50.0 18.2 55.0 18.5 60.0 18.7C65.0 19.0 70.0 19.3 75.0 19.7C80.0 20.0 85.0 20.3 90.0 20.7C95.0 21.0 100.0 21.4 105.0 21.7C110.0 22.0 115.0 22.3 120.0 22.7C125.0 23.0 130.0 23.3 135.0 23.6C140.0 23.9 145.0 24.2 150.0 24.4C155.0 24.7 160.0 25.0 165.0 25.2C170.0 25.5 175.0 25.7 180.0 25.9C185.0 26.2 190.0 26.4 195.0 26.6C200.0 26.7 205.0 26.9 210.0 27.0C215.0 27.1 220.0 27.2 225.0 27.2C230.0 27.3 235.0 27.3 240.0 27.3C245.0 27.3 250.0 27.2 255.0 27.2C260.0 27.2 265.0 27.1 270.0 27.1C275.0 27.1 280.0 27.1 285.0 27.1C290.0 27.2 295.0 27.3 300.0 27.5C305.0 27.6 310.0 27.9 315.0 28.2C320.0 28.5 325.0 29.0 330.0 29.4C335.0 29.9 340.0 30.5 345.0 31.1C350.0 31.7 355.0 32.4 360.0 33.0C365.0 33.6 370.0 34.3 375.0 34.9C380.0 35.5 385.0 36.0 390.0 36.5C395.0 36.9 400.0 37.3 405.0 37.4C410.0 37.6 415.0 37.7 420.0 37.6C425.0 37.5 430.0 37.3 435.0 36.9C440.0 36.6 445.0 36.0 450.0 35.4C455.0 34.8 460.0 34.1 465.0 33.4C470.0 32.6 475.0 31.8 480.0 31.1C485.0 30.3 490.0 29.5 495.0 28.9C500.0 28.3 505.0 27.6 510.0 27.2C515.0 26.7 520.0 26.4 525.0 26.2C530.0 26.0 535.0 25.9 540.0 25.9C545.0 26.0 550.0 26.2 555.0 26.4C560.0 26.6 565.0 27.0 570.0 27.3C575.0 27.6 580.0 28.0 585.0 28.3C590.0 28.6 595.0 28.9 600.0 29.1C605.0 29.3 610.0 29.4 615.0 29.4C620.0 29.4 625.0 29.2 630.0 29.0C635.0 28.8 640.0 28.4 645.0 27.9C650.0 27.5 655.0 26.9 660.0 26.3C665.0 25.7 670.0 24.9 675.0 24.3C680.0 23.6 685.0 22.8 690.0 22.2C695.0 21.5 700.0 20.9 705.0 20.3C710.0 19.8 715.0 19.3 720.0 18.9' fill='none' stroke='url(%23s)' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M0 18.9C5.0 18.5 10.0 18.2 15.0 18.1C20.0 17.9 25.0 17.8 30.0 17.8C35.0 17.8 40.0 17.9 45.0 18.1C50.0 18.2 55.0 18.5 60.0 18.7C65.0 19.0 70.0 19.3 75.0 19.7C80.0 20.0 85.0 20.3 90.0 20.7C95.0 21.0 100.0 21.4 105.0 21.7C110.0 22.0 115.0 22.3 120.0 22.7C125.0 23.0 130.0 23.3 135.0 23.6C140.0 23.9 145.0 24.2 150.0 24.4C155.0 24.7 160.0 25.0 165.0 25.2C170.0 25.5 175.0 25.7 180.0 25.9C185.0 26.2 190.0 26.4 195.0 26.6C200.0 26.7 205.0 26.9 210.0 27.0C215.0 27.1 220.0 27.2 225.0 27.2C230.0 27.3 235.0 27.3 240.0 27.3C245.0 27.3 250.0 27.2 255.0 27.2C260.0 27.2 265.0 27.1 270.0 27.1C275.0 27.1 280.0 27.1 285.0 27.1C290.0 27.2 295.0 27.3 300.0 27.5C305.0 27.6 310.0 27.9 315.0 28.2C320.0 28.5 325.0 29.0 330.0 29.4C335.0 29.9 340.0 30.5 345.0 31.1C350.0 31.7 355.0 32.4 360.0 33.0C365.0 33.6 370.0 34.3 375.0 34.9C380.0 35.5 385.0 36.0 390.0 36.5C395.0 36.9 400.0 37.3 405.0 37.4C410.0 37.6 415.0 37.7 420.0 37.6C425.0 37.5 430.0 37.3 435.0 36.9C440.0 36.6 445.0 36.0 450.0 35.4C455.0 34.8 460.0 34.1 465.0 33.4C470.0 32.6 475.0 31.8 480.0 31.1C485.0 30.3 490.0 29.5 495.0 28.9C500.0 28.3 505.0 27.6 510.0 27.2C515.0 26.7 520.0 26.4 525.0 26.2C530.0 26.0 535.0 25.9 540.0 25.9C545.0 26.0 550.0 26.2 555.0 26.4C560.0 26.6 565.0 27.0 570.0 27.3C575.0 27.6 580.0 28.0 585.0 28.3C590.0 28.6 595.0 28.9 600.0 29.1C605.0 29.3 610.0 29.4 615.0 29.4C620.0 29.4 625.0 29.2 630.0 29.0C635.0 28.8 640.0 28.4 645.0 27.9C650.0 27.5 655.0 26.9 660.0 26.3C665.0 25.7 670.0 24.9 675.0 24.3C680.0 23.6 685.0 22.8 690.0 22.2C695.0 21.5 700.0 20.9 705.0 20.3C710.0 19.8 715.0 19.3 720.0 18.9' transform='translate(0 3.8)' fill='none' stroke='%23e9cf7a' stroke-opacity='0.1' stroke-width='0.72' stroke-dasharray='40 24'/%3E%3C/svg%3E");
  z-index: 6;
  top: calc(var(--horizon) + 14px);
}
.ocean__wave--front {
  --tile: 960px;
  --h: 72px;
  --dur: 17s;
  --deep: #04190f;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 960 72'%3E%3Cdefs%3E%3ClinearGradient id='f' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23082f29'/%3E%3Cstop offset='1' stop-color='%2304190f'/%3E%3C/linearGradient%3E%3ClinearGradient id='s' gradientUnits='userSpaceOnUse' x1='0' y1='22.1' x2='0' y2='46.2'%3E%3Cstop offset='0' stop-color='%23f7dc8a' stop-opacity='0.55'/%3E%3Cstop offset='1' stop-color='%23d4af37' stop-opacity='0.099'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 22.2C6.7 22.0 13.3 22.0 20.0 22.1C26.7 22.3 33.3 22.6 40.0 23.0C46.7 23.3 53.3 23.9 60.0 24.4C66.7 24.9 73.3 25.5 80.0 26.0C86.7 26.5 93.3 27.0 100.0 27.5C106.7 27.9 113.3 28.3 120.0 28.6C126.7 29.0 133.3 29.2 140.0 29.6C146.7 29.9 153.3 30.2 160.0 30.6C166.7 31.0 173.3 31.5 180.0 32.1C186.7 32.7 193.3 33.4 200.0 34.2C206.7 35.0 213.3 35.9 220.0 36.9C226.7 37.9 233.3 38.9 240.0 39.9C246.7 40.9 253.3 41.9 260.0 42.7C266.7 43.6 273.3 44.3 280.0 44.9C286.7 45.5 293.3 45.8 300.0 46.1C306.7 46.3 313.3 46.3 320.0 46.2C326.7 46.1 333.3 45.8 340.0 45.6C346.7 45.3 353.3 44.9 360.0 44.5C366.7 44.2 373.3 43.9 380.0 43.6C386.7 43.3 393.3 43.1 400.0 42.9C406.7 42.8 413.3 42.7 420.0 42.6C426.7 42.5 433.3 42.5 440.0 42.3C446.7 42.2 453.3 42.1 460.0 41.9C466.7 41.6 473.3 41.3 480.0 40.8C486.7 40.4 493.3 39.8 500.0 39.2C506.7 38.6 513.3 37.8 520.0 37.1C526.7 36.4 533.3 35.6 540.0 35.0C546.7 34.3 553.3 33.7 560.0 33.2C566.7 32.8 573.3 32.4 580.0 32.2C586.7 32.0 593.3 32.0 600.0 32.1C606.7 32.2 613.3 32.5 620.0 32.7C626.7 33.0 633.3 33.3 640.0 33.6C646.7 33.9 653.3 34.2 660.0 34.3C666.7 34.5 673.3 34.5 680.0 34.5C686.7 34.4 693.3 34.3 700.0 34.0C706.7 33.8 713.3 33.4 720.0 33.1C726.7 32.7 733.3 32.3 740.0 31.9C746.7 31.6 753.3 31.3 760.0 31.0C766.7 30.8 773.3 30.7 780.0 30.6C786.7 30.5 793.3 30.5 800.0 30.6C806.7 30.6 813.3 30.7 820.0 30.7C826.7 30.8 833.3 30.8 840.0 30.7C846.7 30.6 853.3 30.5 860.0 30.1C866.7 29.8 873.3 29.4 880.0 28.9C886.7 28.4 893.3 27.7 900.0 27.0C906.7 26.4 913.3 25.6 920.0 25.0C926.7 24.3 933.3 23.7 940.0 23.2C946.7 22.8 953.3 22.4 960.0 22.2V72H0Z' fill='url(%23f)'/%3E%3Cpath d='M0 22.2C6.7 22.0 13.3 22.0 20.0 22.1C26.7 22.3 33.3 22.6 40.0 23.0C46.7 23.3 53.3 23.9 60.0 24.4C66.7 24.9 73.3 25.5 80.0 26.0C86.7 26.5 93.3 27.0 100.0 27.5C106.7 27.9 113.3 28.3 120.0 28.6C126.7 29.0 133.3 29.2 140.0 29.6C146.7 29.9 153.3 30.2 160.0 30.6C166.7 31.0 173.3 31.5 180.0 32.1C186.7 32.7 193.3 33.4 200.0 34.2C206.7 35.0 213.3 35.9 220.0 36.9C226.7 37.9 233.3 38.9 240.0 39.9C246.7 40.9 253.3 41.9 260.0 42.7C266.7 43.6 273.3 44.3 280.0 44.9C286.7 45.5 293.3 45.8 300.0 46.1C306.7 46.3 313.3 46.3 320.0 46.2C326.7 46.1 333.3 45.8 340.0 45.6C346.7 45.3 353.3 44.9 360.0 44.5C366.7 44.2 373.3 43.9 380.0 43.6C386.7 43.3 393.3 43.1 400.0 42.9C406.7 42.8 413.3 42.7 420.0 42.6C426.7 42.5 433.3 42.5 440.0 42.3C446.7 42.2 453.3 42.1 460.0 41.9C466.7 41.6 473.3 41.3 480.0 40.8C486.7 40.4 493.3 39.8 500.0 39.2C506.7 38.6 513.3 37.8 520.0 37.1C526.7 36.4 533.3 35.6 540.0 35.0C546.7 34.3 553.3 33.7 560.0 33.2C566.7 32.8 573.3 32.4 580.0 32.2C586.7 32.0 593.3 32.0 600.0 32.1C606.7 32.2 613.3 32.5 620.0 32.7C626.7 33.0 633.3 33.3 640.0 33.6C646.7 33.9 653.3 34.2 660.0 34.3C666.7 34.5 673.3 34.5 680.0 34.5C686.7 34.4 693.3 34.3 700.0 34.0C706.7 33.8 713.3 33.4 720.0 33.1C726.7 32.7 733.3 32.3 740.0 31.9C746.7 31.6 753.3 31.3 760.0 31.0C766.7 30.8 773.3 30.7 780.0 30.6C786.7 30.5 793.3 30.5 800.0 30.6C806.7 30.6 813.3 30.7 820.0 30.7C826.7 30.8 833.3 30.8 840.0 30.7C846.7 30.6 853.3 30.5 860.0 30.1C866.7 29.8 873.3 29.4 880.0 28.9C886.7 28.4 893.3 27.7 900.0 27.0C906.7 26.4 913.3 25.6 920.0 25.0C926.7 24.3 933.3 23.7 940.0 23.2C946.7 22.8 953.3 22.4 960.0 22.2' fill='none' stroke='url(%23s)' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M0 22.2C6.7 22.0 13.3 22.0 20.0 22.1C26.7 22.3 33.3 22.6 40.0 23.0C46.7 23.3 53.3 23.9 60.0 24.4C66.7 24.9 73.3 25.5 80.0 26.0C86.7 26.5 93.3 27.0 100.0 27.5C106.7 27.9 113.3 28.3 120.0 28.6C126.7 29.0 133.3 29.2 140.0 29.6C146.7 29.9 153.3 30.2 160.0 30.6C166.7 31.0 173.3 31.5 180.0 32.1C186.7 32.7 193.3 33.4 200.0 34.2C206.7 35.0 213.3 35.9 220.0 36.9C226.7 37.9 233.3 38.9 240.0 39.9C246.7 40.9 253.3 41.9 260.0 42.7C266.7 43.6 273.3 44.3 280.0 44.9C286.7 45.5 293.3 45.8 300.0 46.1C306.7 46.3 313.3 46.3 320.0 46.2C326.7 46.1 333.3 45.8 340.0 45.6C346.7 45.3 353.3 44.9 360.0 44.5C366.7 44.2 373.3 43.9 380.0 43.6C386.7 43.3 393.3 43.1 400.0 42.9C406.7 42.8 413.3 42.7 420.0 42.6C426.7 42.5 433.3 42.5 440.0 42.3C446.7 42.2 453.3 42.1 460.0 41.9C466.7 41.6 473.3 41.3 480.0 40.8C486.7 40.4 493.3 39.8 500.0 39.2C506.7 38.6 513.3 37.8 520.0 37.1C526.7 36.4 533.3 35.6 540.0 35.0C546.7 34.3 553.3 33.7 560.0 33.2C566.7 32.8 573.3 32.4 580.0 32.2C586.7 32.0 593.3 32.0 600.0 32.1C606.7 32.2 613.3 32.5 620.0 32.7C626.7 33.0 633.3 33.3 640.0 33.6C646.7 33.9 653.3 34.2 660.0 34.3C666.7 34.5 673.3 34.5 680.0 34.5C686.7 34.4 693.3 34.3 700.0 34.0C706.7 33.8 713.3 33.4 720.0 33.1C726.7 32.7 733.3 32.3 740.0 31.9C746.7 31.6 753.3 31.3 760.0 31.0C766.7 30.8 773.3 30.7 780.0 30.6C786.7 30.5 793.3 30.5 800.0 30.6C806.7 30.6 813.3 30.7 820.0 30.7C826.7 30.8 833.3 30.8 840.0 30.7C846.7 30.6 853.3 30.5 860.0 30.1C866.7 29.8 873.3 29.4 880.0 28.9C886.7 28.4 893.3 27.7 900.0 27.0C906.7 26.4 913.3 25.6 920.0 25.0C926.7 24.3 933.3 23.7 940.0 23.2C946.7 22.8 953.3 22.4 960.0 22.2' transform='translate(0 4.5)' fill='none' stroke='%23e9cf7a' stroke-opacity='0.14' stroke-width='0.84' stroke-dasharray='53 32'/%3E%3C/svg%3E");
  z-index: 8;
  top: calc(var(--horizon) + 36px);
}

/* Vệt trăng phản chiếu trên mặt nước: các vạch sáng ngang đứt quãng ngay dưới trăng, thu hẹp & mờ dần về phía gần;
   hai lớp vạch khác nhịp nhấp nháy lệch nhau nên mặt nước lăn tăn lấp lánh */
.ocean__glint {
  --gw: calc(var(--moon) * 1.9);
  position: absolute;
  z-index: 9;
  left: calc(var(--moon-x) - var(--gw) / 2);
  width: var(--gw);
  top: calc(var(--horizon) - 4px);
  bottom: 14%;
  pointer-events: none;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 50% 100% at 50% 0, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 78%);
  mask-image: radial-gradient(ellipse 50% 100% at 50% 0, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 78%);
}
.ocean__glint::before,
.ocean__glint::after {
  content: '';
  position: absolute;
  inset: 0;
  will-change: opacity, transform;
}
.ocean__glint::before {
  background: repeating-linear-gradient(180deg, transparent 0 6px, rgba(255, 234, 176, 0.55) 6px 8px, transparent 8px 15px, rgba(255, 234, 176, 0.3) 15px 16px);
  animation: oceanGlint 3.6s ease-in-out infinite alternate;
}
.ocean__glint::after {
  inset: 3px 12% 0;
  background: repeating-linear-gradient(180deg, transparent 0 9px, rgba(255, 246, 214, 0.5) 9px 10px, transparent 10px 21px);
  animation: oceanGlint 2.7s ease-in-out -1.3s infinite alternate-reverse;
}

/* Đàn cá chép vàng bơi dưới nước (1 canvas do public/ocean-scene.js vẽ: cá, glow & bong bóng; rê chuột trong nước thì đàn lại gần) */
.ocean__underwater {
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  top: calc(var(--horizon) + 40px);
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Đường sóng mảnh ở vùng nước sâu (chuyển động bằng GPU translate3d) */
.ocean__ripples {
  position: absolute;
  z-index: 8;
  left: -300px;
  right: -300px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24'%3E%3Cpath d='M0 12 C40 2 110 2 150 12 S260 22 300 12' fill='none' stroke='%23d4af37' stroke-opacity='.2' stroke-width='1'/%3E%3C/svg%3E")
    0 0 / 300px 24px repeat-x;
  will-change: transform;
  animation: oceanRipple300 8s linear infinite;
}
.ocean__ripples--1 {
  top: calc(var(--horizon) + 105px);
}
.ocean__ripples--2 {
  top: calc(var(--horizon) + 165px);
  opacity: 0.7;
  animation-duration: 11s;
  animation-direction: reverse;
}
.ocean__ripples--3 {
  top: calc(var(--horizon) + 235px);
  opacity: 0.45;
  animation-duration: 14s;
}

.koi-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: url(#koiGold);
  filter: drop-shadow(0 0 2px rgba(255, 220, 120, 0.6)) drop-shadow(0 0 9px rgba(255, 190, 60, 0.3));
}

@keyframes oceanTwinkle {
  from {
    opacity: 0.3;
  }
  to {
    opacity: 1;
  }
}
@keyframes oceanSparkleFlash {
  0% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(0.6) rotate(0deg);
  }
  30% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(2.1) rotate(45deg);
  }
  100% {
    opacity: 0.4;
    transform: translate3d(-50%, -50%, 0) scale(0.9) rotate(90deg);
  }
}
@keyframes oceanSparkle {
  0%,
  100% {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.2) rotate(0deg);
  }
  45%,
  55% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1) rotate(45deg);
  }
}
@keyframes oceanMoonGlow {
  from {
    opacity: 0.92;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: scale(1.02);
  }
}
@keyframes oceanMoonBounce {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  12% {
    transform: translate3d(0, 0, 0) scale(1.08, 0.9);
  }
  32% {
    transform: translate3d(0, -34px, 0) scale(0.96, 1.05);
  }
  52% {
    transform: translate3d(0, 0, 0) scale(1.06, 0.93);
  }
  66% {
    transform: translate3d(0, -14px, 0) scale(0.99, 1.02);
  }
  80% {
    transform: translate3d(0, 0, 0) scale(1.02, 0.98);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}
@keyframes oceanSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes oceanTitleBreath {
  0%,
  100% {
    transform: scale(0.96);
  }
  50% {
    transform: scale(1.04);
  }
}
@keyframes oceanWaveDrift {
  0% {
    transform: translate3d(0, -2px, 0);
  }
  50% {
    transform: translate3d(calc(var(--tile) / 2), 2px, 0);
  }
  100% {
    transform: translate3d(var(--tile), -2px, 0);
  }
}
@keyframes oceanGlint {
  from {
    opacity: 0.45;
    transform: scaleX(0.82);
  }
  to {
    opacity: 1;
    transform: scaleX(1.08);
  }
}
@keyframes oceanRipple300 {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(300px, 0, 0);
  }
}

/* Người dùng bật giảm chuyển động: giữ cảnh tĩnh, chỉ còn chuyển động rất chậm */
@media (prefers-reduced-motion: reduce) {
  .ocean__orbit {
    animation-duration: 30s;
  }
  .ocean__title,
  .ocean__stars,
  .ocean__stars::before,
  .ocean__moon,
  .ocean__moon.is-bouncing,
  .ocean__sparkle,
  .ocean__sparkle.is-lit,
  .ocean__ripples,
  .ocean__wave,
  .ocean__glint::before,
  .ocean__glint::after {
    animation: none;
  }
  /* Giảm chuyển động: sao lấp lánh hiện tĩnh thay vì ẩn hẳn */
  .ocean__sparkle {
    opacity: 0.7;
    transform: translate3d(-50%, -50%, 0) scale(0.8);
  }
}
