@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: #06060f; }

canvas { display: block; position: fixed; inset: 0; width: 100%; height: 100%; }

/* controls */
.controls {
  position: fixed; left: 50%; bottom: clamp(44px, 7vh, 70px); transform: translateX(-50%);
  z-index: 10; display: inline-flex; align-items: center; gap: clamp(10px, 2vw, 18px); flex-wrap: wrap;
  justify-content: center; max-width: min(94vw, 620px);
  padding: 10px 16px; border-radius: 16px;
  background: rgba(18, 16, 40, 0.55); border: 1px solid rgba(170, 150, 255, 0.18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.ctl { display: inline-flex; align-items: center; gap: 8px; }
.ctl__k { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(210, 200, 255, 0.6); }
.ctl input[type=range] { width: clamp(64px, 12vw, 104px); accent-color: #9a8cff; }
.cbtn {
  appearance: none; font-family: var(--font); font-size: 0.74rem; font-weight: 600; cursor: pointer;
  padding: 8px 15px; border-radius: 10px; border: 1px solid rgba(170, 150, 255, 0.28);
  background: rgba(154, 140, 255, 0.12); color: #e7e2ff;
  transition: background 0.14s, border-color 0.14s, transform 0.08s;
}
.cbtn:hover { background: rgba(154, 140, 255, 0.22); border-color: rgba(170, 150, 255, 0.5); }
.cbtn:active { transform: scale(0.96); }
.cbtn:focus-visible { outline: none; box-shadow: 0 0 0 2px #06060f, 0 0 0 4px rgba(154, 140, 255, 0.7); }

.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(200, 180, 255, 0.28);
  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(220,210,255,0.65); border-bottom-color: rgba(200,180,255,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(200, 180, 255, 0.25);
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
  transition: opacity 0.8s;
}
.hint.is-hidden { opacity: 0; }
