/* Glasswing — full-viewport scene with quiet controls. */
:root {
  --ink: #17322c;
  --glass: rgba(250, 252, 244, 0.62);
  --glass-line: rgba(255, 255, 255, 0.55);
}

* { box-sizing: border-box; }

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #cfe4e8;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

main {
  position: fixed;
  inset: 0;
}

#scene {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

/* Soft vignette; no interaction. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 48%,
    transparent 52%,
    rgba(24, 48, 40, 0.16) 100%
  );
}

.hint {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px;
  letter-spacing: 0.01em;
  color: rgba(23, 50, 44, 0.78);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  animation: settle 1.2s ease-out both;
  transition: opacity 1.1s ease, transform 1.1s ease;
}

.hint.quiet {
  opacity: 0;
  transform: translate(-50%, 6px);
  animation: none;
}

.hint.species {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  max-width: calc(100vw - 40px);
  white-space: normal;
  text-align: center;
  background: rgba(250, 252, 244, 0.86);
  color: rgba(23, 50, 44, 0.92);
}

@keyframes settle {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.zoom {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  gap: 8px;
}

.zoom button {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease;
}

.zoom button:hover { background: rgba(255, 255, 255, 0.82); }
.zoom button:active { transform: scale(0.94); }

.zoom button:focus-visible,
.hint:focus-visible {
  outline: 2px solid #2f7a68;
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .hint {
    bottom: 84px;
    font-size: 12px;
  }
  .zoom {
    right: 50%;
    transform: translateX(50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hint { animation: none; }
  .zoom button { transition: none; }
}
