* { box-sizing: border-box; }
:root {
  color: #f7fbff;
  background: #050611;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body { margin: 0; min-height: 100vh; overflow-x: hidden; }
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 15%, rgba(0, 245, 255, .28), transparent 24%),
    radial-gradient(circle at 80% 25%, rgba(255, 61, 242, .24), transparent 26%),
    radial-gradient(circle at 50% 90%, rgba(57, 255, 136, .18), transparent 30%),
    linear-gradient(135deg, #060714 0%, #111633 52%, #050611 100%);
  filter: saturate(1.2);
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle, black 30%, transparent 82%);
  z-index: -1;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}
.hero-card {
  width: min(100%, 720px);
  padding: clamp(18px, 4vw, 32px);
  border: 1px solid rgba(118, 255, 248, .25);
  border-radius: 30px;
  background: rgba(7, 8, 22, .72);
  box-shadow: 0 24px 80px rgba(0,0,0,.42), inset 0 0 40px rgba(0, 245, 255, .05);
  backdrop-filter: blur(18px);
}
.title-row, .stats { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.eyebrow { margin: 0 0 6px; color: #76fff8; letter-spacing: .22em; text-transform: uppercase; font-size: 12px; }
h1 { margin: 0; font-size: clamp(36px, 8vw, 70px); line-height: .9; text-shadow: 0 0 24px rgba(0, 245, 255, .6); }
.ghost-button, .controls button {
  color: #f7fbff;
  border: 1px solid rgba(118, 255, 248, .38);
  background: linear-gradient(180deg, rgba(118,255,248,.18), rgba(255,61,242,.10));
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 245, 255, .14);
}
.ghost-button { padding: 12px 18px; font-weight: 800; }
.stats { margin: 22px 0; }
.stats div {
  flex: 1;
  min-width: 130px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
}
.stats span { display: block; color: rgba(247, 251, 255, .62); font-size: 12px; margin-bottom: 4px; }
.stats strong { font-size: 24px; }
canvas {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(0, 245, 255, .35);
  box-shadow: 0 0 36px rgba(0, 245, 255, .18), 0 0 80px rgba(255, 61, 242, .08);
}
.controls { display: grid; place-items: center; gap: 8px; margin: 20px auto 8px; }
.controls div { display: flex; gap: 8px; }
.controls button { width: 58px; height: 48px; font-size: 20px; font-weight: 900; }
.hint { color: rgba(247, 251, 255, .68); text-align: center; margin: 14px 0 0; font-size: 14px; }
@media (max-width: 520px) {
  .hero-card { border-radius: 22px; }
  .stats { gap: 10px; }
  .stats div { min-width: 0; }
}

.signature {
  margin-top: 16px;
  text-align: center;
  color: rgba(247, 251, 255, .72);
  font-size: 13px;
  letter-spacing: .04em;
}
