:root {
  color-scheme: dark;
  --blue: #62d8ff;
  --blue-hot: #d9f7ff;
  --ink: #03070a;
}

* { box-sizing: border-box; }

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

body {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% 36%, rgba(79, 202, 255, .16), transparent 22rem),
    radial-gradient(circle at 18% 82%, rgba(21, 93, 140, .2), transparent 24rem),
    linear-gradient(150deg, #020304 0%, #071017 48%, #020304 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(124, 240, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 240, 255, .032) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 75%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 38%, rgba(0, 0, 0, .72));
}

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(1200px, 100vw);
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 44px);
}

.topbar,
.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: rgba(218, 247, 255, .68);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(98, 216, 255, .28);
}

.mode {
  color: var(--blue-hot);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: right;
}

.stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
}

#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.copy {
  position: relative;
  z-index: 2;
  align-self: end;
  justify-self: center;
  margin-bottom: clamp(34px, 8vh, 74px);
  text-align: center;
  pointer-events: none;
  text-shadow: 0 0 38px rgba(0, 0, 0, .7);
}

.kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 11px;
  letter-spacing: .34em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(50px, 10vw, 126px);
  font-weight: 500;
  line-height: .88;
  letter-spacing: .02em;
}

.controls {
  justify-content: center;
}

button {
  min-width: 98px;
  height: 38px;
  border: 1px solid rgba(98, 216, 255, .34);
  border-radius: 999px;
  background: rgba(9, 8, 6, .58);
  color: #d9f7ff;
  font: inherit;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(16px);
}

button:hover { border-color: rgba(98, 216, 255, .78); }

.meter {
  width: min(260px, 34vw);
  height: 2px;
  overflow: hidden;
  background: rgba(124, 240, 255, .14);
}

.meter span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #1d78ff, #d9f7ff);
  box-shadow: 0 0 18px rgba(98, 216, 255, .68);
}

@media (max-width: 720px) {
  .shell { padding: 18px; }
  .mode { display: none; }
  .brand { font-size: 10px; letter-spacing: .1em; }
  .copy { margin-bottom: 8vh; }
  .controls { flex-wrap: wrap; gap: 8px; }
  button { min-width: 84px; height: 34px; padding: 0 10px; letter-spacing: .12em; }
  .meter { width: 26vw; }
}
