:root {
  --abyss: #0E2B30;
  --deep: #164E56;
  --lagoon: #1E6E78;
  --sunset: #E8662A;
  --mango: #F5A623;
  --sand: #F7EEDB;
  --fb-ink: #0A171B;
  --fb-teal: #2DD4C8;
  --display: "Caprasimo", Georgia, serif;
  --body: "Figtree", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--abyss);
  color: var(--sand);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--mango); outline-offset: 4px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- The scene: sky follows the time in Honolulu ---------- */
.scene {
  /* golden hour is the default, and what shows without JavaScript */
  --sky: linear-gradient(180deg, #0E2B30 0%, #1D4F5A 16%, #6E4B5E 34%, #C85A3A 50%, #E8662A 60%, #F5A623 74%, #FBD68A 86%);
  --glow: radial-gradient(ellipse 55% 38% at 50% 62%, rgba(255, 214, 140, .55), transparent 70%);
  --w-back: var(--lagoon);
  --w-mid: var(--deep);
  --ink: var(--sand);
  --ink-shadow: 0 2px 8px rgba(110, 40, 20, .45);
  --stars: 0;
  --moon: 0;
  --cloud: #FFD9C2;
  --cloud-o: .8;
  --bird: #2A1A12;

  position: relative;
  min-height: max(600px, 100svh);
  overflow: hidden;
  overflow: clip;
  background: var(--glow), var(--sky);
  display: grid;
  place-items: center;
  padding: 0 16px 34vh;
}
.scene[data-sky="dawn"] {
  --cloud: #FFCFC8;
  --cloud-o: .75;
  --sky: linear-gradient(180deg, #24365A 0%, #4F4F7A 22%, #9C6A8A 42%, #E8907A 62%, #F7B98A 78%, #FCE1B4 90%);
  --glow: radial-gradient(ellipse 60% 40% at 50% 70%, rgba(255, 226, 190, .5), transparent 70%);
}
.scene[data-sky="day"] {
  --sky: linear-gradient(180deg, #2C86B4 0%, #4FA6CF 25%, #86C8E3 50%, #BFE5EE 72%, #EAF4EC 88%);
  --glow: radial-gradient(ellipse 50% 35% at 50% 45%, rgba(255, 255, 255, .45), transparent 70%);
  --w-back: #2A9AA2;
  --w-mid: #1C7680;
  --ink: var(--abyss);
  --ink-shadow: none;
  --cloud: #FFFFFF;
  --cloud-o: .92;
  --bird: #1B2A33;
}
.scene[data-sky="dusk"] {
  --sky: linear-gradient(180deg, #0B1B30 0%, #22284D 25%, #4B3560 45%, #8E4E6B 66%, #D9784A 86%);
  --glow: radial-gradient(ellipse 40% 32% at 50% 42%, rgba(255, 214, 180, .5), transparent 76%), radial-gradient(ellipse 55% 30% at 50% 78%, rgba(240, 150, 100, .4), transparent 70%);
  --w-back: #1A5A66;
  --w-mid: #123F48;
  --stars: .5;
  --cloud: #8E7A9E;
  --cloud-o: .6;
  --bird: #120E1E;
}
.scene[data-sky="night"] {
  --sky: linear-gradient(180deg, #040B16 0%, #08182A 40%, #0E2840 75%, #133650 92%);
  --glow: radial-gradient(ellipse 40% 32% at 50% 42%, rgba(240, 234, 214, .78), rgba(200, 214, 236, .28) 55%, transparent 78%);
  --w-back: #15485A;
  --w-mid: #0F3542;
  --ink-shadow: 0 2px 10px rgba(0, 0, 0, .6);
  --stars: 1;
  --moon: 1;
  --cloud: #3F5470;
  --cloud-o: .6;
}

.logo-wrap { position: relative; width: min(820px, 92vw); }
.logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(110, 40, 20, .25));
  animation: rise 1.6s cubic-bezier(.2, .7, .2, 1) both;
}
.scene[data-sky="dusk"] .logo,
.scene[data-sky="night"] .logo { filter: drop-shadow(0 0 10px rgba(255, 250, 232, .55)); }
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
/* invisible button over the pineapple in the logo */
.pine {
  position: absolute;
  left: 0;
  top: 12%;
  width: 21%;
  height: 88%;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 40%;
  cursor: pointer;
}

.clock {
  position: absolute;
  top: 18px;
  left: 24px;
  right: 72px;
  margin: 0;
  font-size: .92rem;
  color: var(--ink);
  text-shadow: var(--ink-shadow);
  z-index: 3;
}
.friday {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--mango);
  color: var(--abyss);
  font-family: var(--display);
  text-shadow: none;
}

.stars { position: absolute; inset: 0 0 45% 0; opacity: var(--stars); transition: opacity 2s ease; pointer-events: none; }
.stars span { position: absolute; border-radius: 50%; background: #fff; }
.stars .twinkle { animation: twinkle 3.5s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .25; } }
.moon {
  position: absolute;
  top: 11%;
  right: 13%;
  width: 54px;
  height: 54px;
  overflow: visible;
  filter: drop-shadow(0 0 16px rgba(235, 240, 255, .45));
  opacity: var(--moon);
  transition: opacity 2s ease;
  pointer-events: none;
}
.moon-dark { fill: rgba(220, 230, 255, .1); }
.moon-lit { fill: #FBF7E6; }

.sea {
  position: absolute;
  inset: auto 0 -2px 0;
  height: 28%;
  overflow: clip;
  pointer-events: none;
}
.wave {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  animation: drift linear infinite;
}
.wave.back  { height: 100%; color: var(--w-back); animation-duration: calc(46s * var(--calm, 1)); opacity: .9; }
.wave.mid   { height: 78%;  color: var(--w-mid);  animation-duration: calc(32s * var(--calm, 1)); animation-direction: reverse; }
.wave.front { height: 52%;  color: var(--abyss);  animation-duration: calc(22s * var(--calm, 1)); }
@keyframes drift { to { transform: translateX(-50%); } }

/* the boat that sails by when someone types "aloha" */
.boat { position: absolute; left: 0; bottom: 62%; width: 120px; transform: translateX(-160px); visibility: hidden; }
.boat svg { width: 100%; height: auto; animation: rock 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
.boat.sail { visibility: visible; animation: sail 18s linear forwards; }
@keyframes sail { to { transform: translateX(calc(100vw + 40px)); } }
@keyframes rock {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%      { transform: rotate(3deg) translateY(4px); }
}

/* ---------- Ula's fishing rig ---------- */
.rig {
  position: absolute;
  left: clamp(16px, 8vw, 140px);
  bottom: calc(28% * .52 - 30px);
  width: 320px;
  height: 150px;
  z-index: 2;
}
.ula {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid var(--sand);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  object-fit: cover;
  background: var(--sunset);
}
.ula.yay { animation: hop .45s ease-out 2; }
.ula.meh { animation: tilt 1s ease-in-out; }
@keyframes hop { 50% { transform: translateY(-14px); } }
@keyframes tilt {
  30%, 70% { transform: rotate(-12deg); }
}
.lei { position: absolute; left: -12px; bottom: -12px; width: 120px; height: 120px; pointer-events: none; overflow: visible; }
.ula-tag {
  position: absolute;
  left: 6px;
  bottom: -30px;
  font-family: var(--display);
  font-size: .95rem;
  color: var(--sand);
  white-space: nowrap;
}
.line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.line .rod  { stroke: #2A1A12; stroke-width: 3.5; stroke-linecap: round; }
.line .cord { stroke: rgba(247, 238, 219, .85); stroke-width: 1.2; fill: none; transition: d .35s ease; }
.rig.bite .line .cord { d: path("M150 6 Q215 70 284 106"); }

.bobber {
  position: absolute;
  left: 270px;
  top: 92px;
  width: 30px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  animation: bob 2.8s ease-in-out infinite;
}
.bobber svg { width: 100%; height: 100%; overflow: visible; transition: transform .2s ease; }
.bobber:hover svg { transform: scale(1.12); }
.bobber .pumpkin { display: none; }
.season-halloween .bobber .classic { display: none; }
.season-halloween .bobber .pumpkin { display: inline; }
.scene[data-sky="night"] .bobber svg,
.scene[data-sky="dusk"] .bobber svg { filter: drop-shadow(0 0 7px rgba(245, 166, 35, .9)); }
.rig.bite .bobber { animation: dunk .6s ease-in-out 2; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(5px) rotate(4deg); }
}
@keyframes dunk {
  0%, 100% { transform: translateY(0); }
  40%      { transform: translateY(14px); }
}
.hint {
  position: absolute;
  left: 236px;
  top: 138px;
  font-size: .8rem;
  color: rgba(247, 238, 219, .75);
  white-space: nowrap;
}

.catch {
  position: absolute;
  left: 170px;
  bottom: 160px;
  width: max-content;
  max-width: min(300px, calc(100vw - 32px - clamp(16px, 8vw, 140px)));
  padding: 12px 16px;
  background: var(--sand);
  color: var(--abyss);
  border: 2px solid transparent;
  border-radius: 14px 14px 14px 4px;
  box-shadow: 0 12px 30px rgba(14, 43, 48, .35);
  display: flex;
  gap: 12px;
  align-items: center;
  opacity: 0;
  transform: translateY(12px) scale(.96);
  transition: opacity .25s ease, transform .35s cubic-bezier(.2, .9, .3, 1.3);
  pointer-events: none;
}
.catch.show { opacity: 1; transform: none; }
.catch.rare { border-color: var(--mango); background: #FFF6DA; box-shadow: 0 0 0 4px rgba(245, 166, 35, .3), 0 12px 30px rgba(14, 43, 48, .35); }
.catch.rare::before, .catch.rare::after { content: "✨"; position: absolute; font-size: 1.1rem; }
.catch.rare::before { top: -14px; left: -10px; }
.catch.rare::after { bottom: -12px; right: -8px; }
.catch-emoji { font-size: 2rem; line-height: 1; }
.catch-text { font-size: .95rem; line-height: 1.35; }
.golden { filter: sepia(1) saturate(5) hue-rotate(-12deg) brightness(1.15); }

/* ---------- Seasonal extras ---------- */
.lights, .fireworks { display: none; position: absolute; left: 0; right: 0; top: 0; pointer-events: none; }
.season-winter .lights { display: block; height: 90px; }
.season-winter .clock { top: 92px; }
.lights circle { animation: glint 2.4s ease-in-out infinite; }
.lights circle:nth-of-type(3n+1) { animation-delay: .8s; }
.lights circle:nth-of-type(3n+2) { animation-delay: 1.6s; }
@keyframes glint { 50% { opacity: .45; } }
.season-newyear .fireworks { display: block; bottom: 45%; }
.burst {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  animation: burst 3.2s ease-out infinite;
}
@keyframes burst {
  0%   { transform: scale(.05); opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

/* ---------- Weather: clouds and rain from the National Weather Service ---------- */
.clouds { position: absolute; inset: 0 0 40% 0; pointer-events: none; overflow: hidden; }
.clouds span {
  position: absolute;
  left: 0;
  width: 160px;
  height: 46px;
  border-radius: 999px;
  background: var(--cloud);
  opacity: var(--cloud-o);
  filter: blur(1.5px);
  transform: translateX(-220px) scale(var(--s));
  animation: cloud linear infinite;
  transition: background 2s ease;
}
.clouds span::before, .clouds span::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}
.clouds span::before { width: 76px; height: 76px; left: 26px; top: -38px; }
.clouds span::after  { width: 56px; height: 56px; left: 82px; top: -24px; }
@keyframes cloud { to { transform: translateX(calc(100vw + 60px)) scale(var(--s)); } }

.showers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(40, 55, 70, .22), rgba(40, 55, 70, .1));
}
.showers canvas { display: block; width: 100%; height: 100%; }

/* ---------- Horizon: green flash and whales ---------- */
.greenflash {
  position: absolute;
  left: 50%;
  bottom: 74%;
  width: 150px;
  height: 10px;
  margin-left: -75px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #B8FF9C, #3DDC6A 45%, transparent 72%);
  filter: blur(1px);
  opacity: 0;
}
.greenflash.go { animation: greenflash 1.8s ease-out; }
@keyframes greenflash {
  0%   { opacity: 0; transform: scaleX(.4); }
  20%  { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(.8); }
}

.whale { position: absolute; bottom: 70%; width: 58px; height: 72px; margin-left: -29px; }
.whale .fluke { position: absolute; left: 0; bottom: 0; width: 58px; fill: #10303A; transform: translateY(38px); }
.whale .spout {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 16px;
  height: 34px;
  margin-left: -8px;
  border-radius: 50% 50% 40% 40%;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .2) 70%, transparent);
  transform-origin: 50% 100%;
  opacity: 0;
}
.whale.fluke-up .fluke { animation: fluke 5s ease-in-out; }
.whale.spouting .spout { animation: spout 3s ease-out; }
@keyframes fluke {
  0%   { transform: translateY(38px) rotate(0); }
  30%  { transform: translateY(2px) rotate(-6deg); }
  60%  { transform: translateY(0) rotate(5deg); }
  100% { transform: translateY(42px) rotate(10deg); }
}
@keyframes spout {
  0%   { opacity: 0; transform: scale(.3, .1); }
  25%  { opacity: .95; transform: scale(1, 1); }
  100% { opacity: 0; transform: scale(1.6, 1.15) translateY(-6px); }
}

/* ---------- Shooting stars and wishes ---------- */
.shooting { position: absolute; inset: 0 0 50% 0; pointer-events: none; }
.shoot {
  position: absolute;
  width: 80px;
  height: 80px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  pointer-events: auto;
  animation: shoot 1.9s ease-in forwards;
}
.shoot::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 38px;
  width: 60px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95));
  transform: rotate(22deg);
  box-shadow: 0 0 6px rgba(255, 255, 255, .8);
}
@keyframes shoot {
  0%   { opacity: 0; transform: translate(0, 0); }
  15%  { opacity: 1; }
  100% { opacity: 0; transform: translate(260px, 105px); }
}
.wish {
  position: absolute;
  top: 64px;
  left: 50%;
  z-index: 4;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(247, 238, 219, .95);
  color: var(--abyss);
  font-size: .95rem;
  text-align: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
  transform: translate(-50%, -8px);
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.wish.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- An ʻiwa (frigatebird) gliding over ---------- */
.iwa {
  position: absolute;
  left: 0;
  z-index: 1;
  width: 70px;
  fill: var(--bird);
  visibility: hidden;
  pointer-events: none;
}
.iwa.glide { visibility: visible; animation: glide 26s linear forwards, soar 6s ease-in-out infinite; }
@keyframes glide {
  from { translate: -100px 0; }
  to   { translate: calc(100vw + 100px) 0; }
}
@keyframes soar {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50%      { transform: rotate(5deg) translateY(16px); }
}

/* ---------- Ocean sound toggle ---------- */
.sound {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .18);
  color: var(--ink);
  cursor: pointer;
}
.sound:hover { background: rgba(0, 0, 0, .3); }
.sound svg { width: 22px; height: 22px; }
.sound .sound-on { display: none; }
.sound[aria-pressed="true"] .sound-on { display: inline; }
.sound[aria-pressed="true"] .sound-off { display: none; }
.season-winter .sound { top: 86px; }

/* ---------- Pineapple rain ---------- */
.rain { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.rain span {
  position: absolute;
  top: -60px;
  animation: fall var(--d) linear var(--delay) forwards;
}
@keyframes fall { to { transform: translateY(calc(100vh + 120px)) rotate(var(--r)); } }

/* ---------- Fat Boy Fishing Club, out on the water ---------- */
.crew {
  position: absolute;
  right: clamp(16px, 6vw, 120px);
  bottom: calc(28% - 64px);
  z-index: 1;
  width: 400px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 22px 18px 18px;
  background: var(--fb-ink);
  border-top: 4px solid var(--fb-teal);
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(14, 43, 48, .45);
  transform: rotate(-1.5deg);
  transition: transform .25s ease, box-shadow .25s ease;
}
.crew:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 24px 48px rgba(14, 43, 48, .55); }
.crew:focus-visible { outline-color: var(--fb-teal); }
.crew-note {
  position: absolute;
  left: 14px;
  top: -40px;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--ink);
  text-shadow: var(--ink-shadow);
  transform: rotate(-3deg);
  white-space: nowrap;
}
.crew-logo { width: 72px; height: auto; }
.crew-name {
  display: block;
  font-family: "Anton", Impact, sans-serif;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.crew-line { display: block; margin: 8px 0 12px; font-size: .92rem; line-height: 1.4; color: rgba(255, 255, 255, .78); }
.crew-cta {
  display: inline-block;
  padding: 8px 14px;
  background: var(--fb-teal);
  color: var(--fb-ink);
  font-size: .85rem;
  font-weight: 600;
  border-radius: 2px;
}
.crew:hover .crew-cta { background: #fff; }

/* ---------- Below the waterline ---------- */
.shore {
  max-width: 1040px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.away h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1;
  margin: 0 0 20px;
  color: var(--mango);
}
.away > p { margin: 0; max-width: 34ch; font-size: 1.15rem; color: rgba(247, 238, 219, .88); }

.basket { margin-top: 40px; }
.basket-head { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; margin: 0 0 14px; }
.basket h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.35rem; color: var(--sand); }
.basket-count { font-size: .95rem; color: rgba(247, 238, 219, .65); }
/* woven like a lauhala (pandanus leaf) basket: diagonal plait over warm tan strips */
.basket-grid {
  list-style: none;
  margin: 0;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 8px;
  max-width: 460px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 240, 205, .22) 0 7px, transparent 7px 14px),
    repeating-linear-gradient(45deg, rgba(110, 74, 34, .38) 0 1.5px, transparent 1.5px 14px),
    repeating-linear-gradient(-45deg, rgba(110, 74, 34, .38) 0 1.5px, transparent 1.5px 14px),
    linear-gradient(180deg, #DDBB80, #C49C5E);
  border: 4px solid #8A6534;
  border-radius: 22px;
  box-shadow: inset 0 0 0 2px rgba(255, 236, 196, .35), inset 0 -10px 18px rgba(90, 58, 22, .3), 0 10px 24px rgba(0, 0, 0, .3);
}
.basket-grid li {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  border-radius: 12px;
  background: rgba(96, 62, 26, .22);
  box-shadow: inset 0 2px 5px rgba(70, 42, 14, .4);
}
.basket-grid li.missing span { filter: brightness(0); opacity: .28; }
.basket-grid li.rare { border: 2px dashed #7A4A12; }
.basket-grid li.rare.missing span { filter: none; opacity: .8; font-family: var(--display); font-size: 1.3rem; color: #6B4416; }
.basket-grid li.rare:not(.missing) { background: rgba(245, 166, 35, .45); border-style: solid; }
.basket-grid li.fresh { animation: pop .5s ease-out; }
@keyframes pop { 40% { transform: scale(1.25); } }
.basket-reset {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(247, 238, 219, .55);
  font: inherit;
  font-size: .85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.basket-reset:hover { color: var(--sand); }

.side { display: grid; gap: 20px; }
.card {
  border: 2px solid rgba(247, 238, 219, .18);
  border-radius: 20px;
  padding: 26px 28px;
}
.card-label { margin: 0 0 10px; font-size: .95rem; color: rgba(247, 238, 219, .65); }
.word-term {
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 1.05;
  margin: 0 0 8px;
  color: var(--sand);
}
.word-meaning { margin: 0; font-size: 1.05rem; color: rgba(247, 238, 219, .88); }

.tides ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tides li { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; color: rgba(247, 238, 219, .8); }
.tides li .when { font-variant-numeric: tabular-nums; }
.tides li .height { color: rgba(247, 238, 219, .55); font-variant-numeric: tabular-nums; min-width: 4.2em; text-align: right; }
.tides li.next { color: var(--mango); font-weight: 600; }
.tides li.next .height { color: var(--mango); }
.tides li.past { opacity: .5; }
.card-source { margin: 12px 0 0; font-size: .8rem; color: rgba(247, 238, 219, .45); }
.card-source a { color: inherit; }

.surf { margin-top: 40px; max-width: 460px; }
.surf-call { margin: 0 0 14px; font-family: var(--display); font-size: 1.6rem; line-height: 1.15; color: var(--sand); }
.stats { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; }
.stats dt { color: rgba(247, 238, 219, .6); }
.stats dd { margin: 0; color: rgba(247, 238, 219, .9); font-variant-numeric: tabular-nums; }
.today-pick { margin: 0 0 14px; font-family: var(--display); font-size: 1.25rem; line-height: 1.3; color: var(--sand); }

footer {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 24px 40px;
  font-size: .85rem;
  color: rgba(247, 238, 219, .5);
}

/* ---------- 404: lost at sea ---------- */
.lost { text-align: center; max-width: 34rem; }
.lost h1 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 5.5rem);
  line-height: 1;
  color: var(--ink);
  text-shadow: var(--ink-shadow);
}
.lost p { margin: 0 0 26px; font-size: 1.15rem; color: var(--ink); text-shadow: var(--ink-shadow); }
.home-btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--abyss);
  color: var(--sand);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(14, 43, 48, .35);
}
.home-btn:hover { background: var(--deep); }
.adrift {
  position: absolute;
  left: 50%;
  bottom: calc(28% * .52 - 44px);
  margin-left: -48px;
  z-index: 2;
  animation: adrift 4s ease-in-out infinite;
}
.adrift .ula { position: static; }
@keyframes adrift {
  0%, 100% { transform: translate(-30px, 0) rotate(-6deg); }
  50%      { transform: translate(30px, 8px) rotate(6deg); }
}

/* clean frame for capturing the link-preview image (?og=1) */
.og .clock, .og .hint, .og .crew { display: none; }
.og .logo { animation: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .scene { align-content: center; gap: 64px; }
  .crew { position: relative; right: auto; bottom: auto; width: min(400px, 100%); }
}
@media (min-width: 1001px) and (max-height: 760px) {
  .logo-wrap { width: min(640px, 60vw); }
}
@media (max-width: 720px) {
  .shore { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 56px; }
  .scene { padding-bottom: 30vh; padding-top: 56px; }
  .rig { transform: scale(.85); transform-origin: left bottom; }
  .catch { left: 60px; max-width: 260px; }
  .crew { grid-template-columns: 54px 1fr; gap: 14px; padding: 16px; }
  .crew-logo { width: 54px; }
  .crew-name { font-size: 1.55rem; }
  .moon { display: none; }
  .friday { display: table; margin-bottom: 6px; }
  .clock { left: 16px; right: 64px; font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
