@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600&display=swap");

:root { --font: "Geist", system-ui, -apple-system, sans-serif; }

*,*::before,*::after { box-sizing: border-box; }
html, body {
  -webkit-tap-highlight-color: transparent; height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
body { font-family: var(--font); background: #0b0c10; }

canvas { display: block; position: fixed; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
canvas:active { cursor: grabbing; }

.controls {
  position: fixed;
  bottom: clamp(48px, 8vh, 80px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.btn {
  appearance: none;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(200, 215, 240, 0.6);
  background: rgba(200, 215, 240, 0.06);
  border: 1px solid rgba(200, 215, 240, 0.18);
  border-radius: 8px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, border-color 0.14s, transform 0.08s;
  white-space: nowrap;
}
.btn:hover { background: rgba(200,215,240,0.13); color: rgba(220,235,255,0.9); border-color: rgba(200,215,240,0.4); }
.btn:active { transform: scale(0.94); }
.btn.is-active { background: rgba(200,215,240,0.14); color: #e8f0ff; border-color: rgba(200,215,240,0.5); box-shadow: 0 0 12px rgba(180,200,255,0.2); }

.frame { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
.frame__corner {
  position: absolute;
  font-size: clamp(0.56rem, 1.2vw, 0.7rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(180, 200, 240, 0.32);
  white-space: nowrap;
  font-family: var(--font);
}
.frame__corner--tl { top: clamp(18px, 3.5vw, 34px); left: clamp(18px, 3.5vw, 34px); }
.frame__corner--tr { top: clamp(18px, 3.5vw, 34px); right: clamp(18px, 3.5vw, 34px); }
.frame__corner--bl { bottom: clamp(20px, 3.5vw, 34px); left: clamp(18px, 3.5vw, 34px); }
.frame__corner a { color: inherit; text-decoration: none; pointer-events: auto; border-bottom: 1px solid transparent; transition: color .14s, border-color .14s; }
.frame__corner a:hover { color: rgba(210,225,255,0.65); border-bottom-color: rgba(180,200,240,0.4); }

.hint {
  position: fixed;
  bottom: clamp(20px, 3.5vw, 34px);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(180, 200, 240, 0.28);
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
  transition: opacity 0.6s;
}
.hint.is-hidden { opacity: 0; }

@media (prefers-reduced-motion: reduce) { canvas { display: none; } }
