*{box-sizing:border-box}
:root{color-scheme:dark;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#f0f3ff;background:#060c1d}
body{margin:0}
.icons{position:absolute;width:0;height:0;overflow:hidden}
.sea{position:relative;isolation:isolate;width:100%;height:100vh;height:100svh;min-height:320px;overflow:hidden;background:radial-gradient(ellipse at 68% -36%,#233758 0%,#111f37 38%,transparent 68%),radial-gradient(ellipse at 90% 60%,#0d2032,transparent 58%),linear-gradient(135deg,#0c152a,#060b1a 72%,#0d142a)}
#water{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair;-webkit-tap-highlight-color:transparent}
#water:focus-visible{outline:2px solid #d5cdff;outline-offset:-6px}
header,footer{position:absolute;left:var(--edge);right:var(--edge);display:flex;align-items:center;justify-content:space-between;pointer-events:none}
.sea{--edge:clamp(24px,4.7vw,88px)}
header{top:max(env(safe-area-inset-top),clamp(24px,4.3vh,52px))}
.brand{display:inline-flex;align-items:center;gap:11px;font-size:26px;font-weight:650;letter-spacing:-1.55px;line-height:1;user-select:none}
.brand svg{height:34px;width:34px;color:#c5bbef;transform:rotate(-12deg)}
button{appearance:none;-webkit-appearance:none;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;pointer-events:auto;-webkit-tap-highlight-color:transparent}
button:focus-visible{outline:2px solid #c9c4fc;outline-offset:4px}
button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.sound{display:flex;align-items:center;gap:9px;padding:0 16px;min-height:42px;border:1px solid #c9dcf439;border-radius:28px;background:#0b1528aa;font-size:14px;color:#d4ddeb;backdrop-filter:blur(8px)}
.sound svg{width:17px;height:17px;color:#a6aec4}
.sound[aria-pressed=true] svg{color:#c3b0ff}
.intro{position:absolute;left:clamp(28px,8.5vw,160px);top:45%;transform:translateY(-46%);pointer-events:none;transition:opacity .45s,visibility .45s;text-shadow:0 2px 30px #080f2080;user-select:none}
h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:clamp(76px,min(8.7vw,14.4vh),164px);line-height:.91;letter-spacing:-.072em;margin:0}
h1 em{display:inline-block;font-weight:400;letter-spacing:-.065em;color:#cbc1fc;padding:.005em .13em .1em 0}
.intro p{font-size:clamp(16px,1.22vw,21px);line-height:1.52;color:#bdc6da;font-weight:400;margin:clamp(22px,3.8vh,42px) 0 0;letter-spacing:.002em}
footer{bottom:max(env(safe-area-inset-bottom),clamp(22px,4.8vh,54px));gap:16px}
.view{display:flex;align-items:center;gap:9px;min-height:44px;font-size:14px;color:#c3cddc;padding:0 4px;line-height:1}
.view svg{width:19px;color:#b1bfce}
.currents{position:relative;display:flex;align-items:center;gap:13px;border:0;padding:0;margin:0;transition:opacity .4s,visibility .4s}
legend{float:left;line-height:44px;padding:0;font-size:14px;letter-spacing:.01em;color:#b8c5d6}
.modes{display:flex;align-items:center;background:#101a2bbd;border:1px solid #98afd139;border-radius:28px;padding:4px;backdrop-filter:blur(7px)}
.modes button{min-width:44px;height:38px;display:flex;align-items:center;justify-content:center;gap:7px;padding:0 10px;border-radius:22px;color:#a0aec4}
.modes button[aria-pressed=true]{background:#c9bdf1;color:#26253d}
.modes button span{display:none;font-size:14px}
.modes button[aria-pressed=true] span{display:inline}
@media(hover:hover){.view:hover,.sound:hover{color:white}.sound:hover,.modes button:not([aria-pressed=true]):hover{background:#26334b}}
.sea.quiet .intro,.sea.quiet .brand,.sea.quiet .currents,.sea.quiet .sound{visibility:hidden;opacity:0}
.quiet .view{color:#a1aec4}
@media(max-width:700px) and (orientation:portrait){
  .sea{--edge:22px}
  header{top:max(calc(env(safe-area-inset-top) + 10px),20px)}
  .brand{font-size:23px;gap:8px}.brand svg{width:29px;height:29px}
  .sound{min-height:40px;padding:0 13px;font-size:13px}
  .intro{top:15.8%;left:var(--edge);transform:none}
  h1{font-size:clamp(57px,min(16vw,9.2svh),87px);line-height:.92}
  .intro p{font-size:15px;margin-top:14px;line-height:1.4}
  footer{bottom:max(calc(env(safe-area-inset-bottom) + 8px),15px);gap:10px}
  .view{min-width:44px;min-height:46px;padding:0 10px;margin-left:-8px}.view span{display:none}
  .currents{gap:9px}.modes{padding:3px}.modes button{height:38px}
  legend{font-size:13px}
}
@media(max-height:500px) and (orientation:landscape){
  header{top:10px}footer{bottom:8px}.intro{top:46%}h1{font-size:clamp(42px,12vh,61px)}.intro p{font-size:14px;margin-top:10px}.brand{font-size:20px}.brand svg{height:26px;width:26px}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.sea{background:#080e1f url(assets/water.webp) center center/100% 100% no-repeat}
@media(max-width:700px) and (orientation:portrait){.sea{background-size:auto 100%;background-position:66% top}}
