:root {
  --bg: #ffffff;
  --card: #ffffff;
  --ink: #10201f;
  --soft: rgba(16, 32, 31, 0.58);
  --faint: rgba(16, 32, 31, 0.32);
  --line: rgba(16, 32, 31, 0.09);
  --accent: #0e8f8a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 12px;
}

.sf { position: relative; width: min(324px, 100%); padding: 14px; border-radius: 26px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(16, 32, 31, 0.05), 0 28px 46px -28px rgba(16, 32, 31, 0.32); }

.sf__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 2px; }
.sf__name { min-width: 0; display: grid; }
.sf__name b { font-size: 16px; line-height: 21px; font-weight: 740; font-stretch: 108%; letter-spacing: -0.012em; white-space: nowrap; }
.sf__name span { font-size: 11.500px; line-height: 15px; font-weight: 540; color: var(--soft); white-space: nowrap; }
.sf__rate { flex: none; display: block; height: 28px; padding: 0 12px; border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--accent) 12%, #ffffff); color: color-mix(in srgb, var(--accent) 82%, #000000); font-size: 12.500px; line-height: 28px; font-weight: 720; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 24%, transparent); }
.sf__rate span { display: block; white-space: nowrap; }

/* the sea: one wave, as tall as the swell and as long as its period */
.sf__sea { position: relative; height: 88px; margin-top: 11px; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, #f4f8f8, #eaf2f2); box-shadow: inset 0 0 0 1px var(--line); }
.sf__sea svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.sf__back { fill: var(--accent); opacity: 0.1; }
.sf__crest { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sf__rule { position: absolute; left: 10px; top: 9px; display: flex; align-items: center; gap: 6px; }
.sf__rule i { display: block; width: 2px; height: 14px; border-radius: 1px; background: var(--accent); }
.sf__rule b { display: block; height: 16px; overflow: hidden; font-size: 11.500px; line-height: 16px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.sf__rule b span { display: block; white-space: nowrap; }

.sf__stats { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 6px; margin-top: 8px; }
.sf__stats > div { min-width: 0; padding: 8px 10px 7px; border-radius: 14px; background: #f5f7f7; box-shadow: inset 0 0 0 1px var(--line); }
.sf__stats dt { height: 14px; overflow: hidden; font-size: 11px; line-height: 14px; font-weight: 580; color: var(--soft); white-space: nowrap; }
.sf__stats dt span { display: block; }
.sf__stats dd { position: relative; display: flex; align-items: baseline; gap: 3px; margin-top: 1px; font-variant-numeric: tabular-nums; }
.sf__stats dd b { font-size: 20px; line-height: 24px; font-weight: 760; letter-spacing: -0.02em; }
.sf__stats dd span { font-size: 11.500px; font-weight: 600; color: var(--soft); }
.sf__arrow { position: absolute; right: -2px; top: 1px; width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.sf__hours { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: 8px; padding: 4px; border-radius: 16px; background: #eef2f2; box-shadow: inset 0 0 0 1px var(--line); }
.sf__pill { position: absolute; left: 0; top: 4px; bottom: 4px; width: 20%; border-radius: 12px; background: #ffffff; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(16, 32, 31, 0.1), 0 6px 10px -6px rgba(16, 32, 31, 0.3); }
.sf__hour { position: relative; z-index: 1; display: grid; justify-items: center; gap: 3px; height: 48px; padding: 6px 0 4px; border: 0; border-radius: 12px; background: transparent; color: var(--soft); font: inherit; font-size: 11.500px; line-height: 14px; font-weight: 640; cursor: pointer; outline: none; transition: color 0.25s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.sf__hour[aria-pressed="true"] { color: var(--ink); }
.sf__hour:focus-visible { box-shadow: 0 0 0 2px #eef2f2, 0 0 0 4px var(--ink); }
/* a small bar says how big the swell is at that hour */
.sf__hour i { position: relative; display: block; width: 5px; height: 20px; border-radius: 2.500px; background: rgba(16, 32, 31, 0.1); overflow: hidden; }
.sf__hour b { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 2.500px; background: var(--faint); transition: background-color 0.25s ease; }
.sf__hour[aria-pressed="true"] b { background: var(--accent); }
.sf__hour span { white-space: nowrap; }
@media (hover: hover) { .sf__hour[aria-pressed="false"]:hover { color: var(--ink); } }

.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; transform-origin: 20% 15%; pointer-events: none; opacity: 0; fill: #10201f; stroke: #ffffff; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); z-index: 6; }
