:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
  user-select: none;
  background: #001321;
  cursor: none;
}
#tide {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 0 82%, rgba(0,18,32,0.18) 100%);
}
.sr-only {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.gl-fallback {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  color: rgba(240,245,255,0.9);
  background: #001321;
  font: 500 15px/1.4 system-ui, sans-serif;
  text-align: center;
}
.debug-panel {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  width: min(22rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 0.9rem;
  border: 1px solid rgba(190, 235, 255, 0.20);
  border-radius: 14px;
  background: rgba(3, 15, 26, 0.86);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  color: rgba(232, 244, 255, 0.96);
  font: 500 13px/1.35 system-ui, sans-serif;
  cursor: auto;
  user-select: auto;
}
.debug-panel[hidden] { display: none; }
.debug-panel__title {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.debug-panel__hint {
  margin: 0.3rem 0 0.8rem;
  color: rgba(205, 225, 240, 0.74);
  font-size: 0.74rem;
}
.debug-panel__row {
  display: block;
  margin-top: 0.72rem;
}
.debug-panel__row.is-disabled {
  opacity: 0.58;
}
.debug-panel__top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.34rem;
}
.debug-panel__name {
  min-width: 0;
}
.debug-panel__check {
  width: 1rem;
  height: 1rem;
  accent-color: #7fdcff;
}
.debug-panel__value {
  min-width: 2.9rem;
  text-align: right;
  color: rgba(200, 240, 255, 0.88);
  font-variant-numeric: tabular-nums;
}
.debug-panel__slider {
  width: 100%;
  accent-color: #8be6ff;
}
