@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: #0b1622; touch-action: none; }

canvas { display: block; position: fixed; inset: 0; cursor: pointer; }

.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(150, 195, 230, 0.44);
  white-space: nowrap; font-family: var(--font); text-shadow: 0 1px 8px rgba(0,0,0,0.9);
}
.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(200, 230, 250, 0.92); border-bottom-color: rgba(150, 195, 230, 0.5); }

.controls {
  position: fixed; top: clamp(16px, 3.2vw, 30px); left: 50%; transform: translateX(-50%);
  z-index: 11; display: flex; gap: 8px;
}
.ctrl-btn {
  font-family: var(--font); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: rgba(170, 205, 235, 0.7);
  background: rgba(20, 36, 54, 0.6); border: 1px solid rgba(120, 165, 205, 0.28);
  border-radius: 999px; padding: 7px 16px; cursor: pointer; backdrop-filter: blur(6px);
  transition: color .14s, border-color .14s, background .14s;
}
.ctrl-btn:hover { color: rgba(210, 235, 255, 0.95); border-color: rgba(150, 195, 230, 0.55); background: rgba(28, 48, 70, 0.7); }
.ctrl-btn.active {
  color: #0b1622; background: rgba(150, 200, 235, 0.92); border-color: rgba(150, 200, 235, 0.92);
}

.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(150, 195, 230, 0.4); pointer-events: none; z-index: 10; white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0,0,0,0.9);
}
