* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  overscroll-behavior: none;
}

body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

.stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  touch-action: none;
  cursor: grab;
}

.stage.dragging { cursor: grabbing; }

#fish {
  position: relative;
  width: min(92vw, 78vh * 1.586, 620px);
  aspect-ratio: 471 / 297;
  pointer-events: none;
}

#fish .frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  -webkit-user-drag: none;
}

#fish .frame.on { opacity: 1; }

.hint {
  position: fixed;
  left: 50%;
  bottom: max(6vh, 28px);
  transform: translateX(-50%);
  color: #b8bec5;
  font-size: clamp(13px, 3.2vw, 16px);
  letter-spacing: 0.06em;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.hint.gone { opacity: 0; }

.note {
  bottom: auto;
  top: max(6vh, 28px);
  color: #c9ced4;
}

.note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  color: #aab1b9;
}

.repo {
  position: fixed;
  right: max(3vw, 16px);
  bottom: max(3vh, 16px);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #c2c8ce;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 8px;
  border-radius: 8px;
  transition: color 0.25s ease;
}

.repo:hover,
.repo:focus-visible { color: #6b7580; }

@media (max-width: 480px) {
  .repo span { display: none; }
}
