@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Mono:wght@400;500&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}
body {
  background: #06080f;
  font-family: "DM Mono", monospace;
  cursor: default;
}
#ocean {
  position: fixed;
  inset: 0;
  display: block;
}
/* ── OVERLAY ── */
.ui {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 40px;
  color: #fff;
}
.ui-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.top-left {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.label {
  font-size: 12px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}
.mode-switch {
  pointer-events: auto;
  display: flex;
  gap: 4px;
  padding: 3px;
  width: fit-content;
  background: rgba(10, 16, 28, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}
#season-switch {
  opacity: 1;
  max-height: 44px;
  margin-top: 0;
  overflow: hidden;
  transition:
    opacity 0.22s ease,
    max-height 0.3s ease,
    margin-top 0.3s ease;
}
#season-switch.hidden {
  opacity: 0;
  max-height: 0;
  margin-top: -10px;
  pointer-events: none;
}
.mode-btn,
.season-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: "DM Mono", monospace;
  font-size: 9.5px;
  letter-spacing: 0.15em;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.season-btn {
  padding: 6px 8px;
}
.mode-btn:hover,
.season-btn:hover {
  color: rgba(255, 255, 255, 0.85);
}
.mode-btn.active,
.season-btn.active {
  background: rgba(255, 255, 255, 0.92);
  color: #16202f;
}
.mode-btn:focus-visible,
.season-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}
.mood {
  text-align: right;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}
.mood span {
  display: block;
}
#mood-name {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.9);
}
.mood-time {
  font-family: "Instrument Serif", serif;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
  color: #fff;
}
.ui-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.caption {
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.1rem, 3vw, 1.9rem);
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  text-align: center;
}
.caption em {
  font-style: italic;
}
/* ── CONTROLS (play button + slider) ── */
.controls {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 600px;
}
.play-btn {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 16, 28, 0.32);
  backdrop-filter: blur(12px);
  color: #fff;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}
.play-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}
.play-btn:active {
  transform: scale(0.92);
}
.play-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}
.play-btn.muted {
  color: rgba(255, 255, 255, 0.4);
}
/* ── SLIDER ── */
.slider-wrap {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 440px;
  padding: 12px 18px;
  background: rgba(10, 16, 28, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}
.slider-end {
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    #3a4a8a 0%,
    #6fa8d4 25%,
    #ffd27f 55%,
    #ff7e54 78%,
    #1a2244 100%
  );
  outline: none;
  cursor: grab;
}
input[type="range"]:active {
  cursor: grabbing;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.15);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.35),
    0 0 0 6px rgba(255, 255, 255, 0.12);
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  cursor: grab;
}
@media (max-width: 600px) {
  .ui {
    padding: 22px 22px;
  }
  .label {
    font-size: 10px;
  }
}
