html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
  background: #050607;
  font-family: Inter, Arial, Helvetica, sans-serif;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

#bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 800px at 20% 20%, rgba(255,255,255,0.06), transparent 55%),
    radial-gradient(900px 700px at 80% 30%, rgba(255,255,255,0.05), transparent 55%),
    radial-gradient(1100px 900px at 50% 80%, rgba(255,255,255,0.04), transparent 60%),
    linear-gradient(180deg, #050607 0%, #090b0d 35%, #050607 100%);
  filter: saturate(0.9) contrast(1.05);
}

#sparkle {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.06) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.05) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.04) 0 2px, transparent 3px);
  background-size: 320px 320px, 260px 260px, 420px 420px;
  mix-blend-mode: screen;
  opacity: 0.35;
  animation: drift 10s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-10px, -10px, 0); }
  to   { transform: translate3d(10px, 14px, 0); }
}

#noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.10'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.32;
}

canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
}

.hud {
  position: fixed;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
  z-index: 5;
}

.pill {
  width: 116px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.38);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 14px 40px rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.title { font-size: 12px; opacity: 0.75; letter-spacing: 0.2px; }
.value { font-size: 18px; font-weight: 800; margin-top: 4px; }

.screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 10;
  padding: 18px;
}

.hidden { display: none; }

.card {
  width: min(520px, calc(100vw - 36px));  
  border-radius: 26px;                   
  padding: 26px 22px 22px 22px;

  background:
    radial-gradient(900px 420px at 50% 0%, rgba(255,255,255,0.08), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)),
    rgba(0,0,0,0.62);

  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 28px 90px rgba(0,0,0,0.70),
    inset 0 1px 0 rgba(255,255,255,0.06);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  color: rgba(255,255,255,0.94);

  text-align: center;
}

.brand h1 {
  margin: 0 0 10px 0;
  font-size: 30px;
  letter-spacing: 0.2px;
  line-height: 1.05;
}

.subtitle {
  margin: 0 auto 18px auto;  
  opacity: 0.78;
  line-height: 1.45;
  font-size: 14px;
  max-width: 46ch;       
}

.small {
  font-size: 12px;
  opacity: 0.72;
  margin-top: 12px;
  line-height: 1.45;
  max-width: 60ch;
}

.btnrow {
  display: flex;
  justify-content: center;   
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

button {
  appearance: none;
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  height: 44px;
  min-width: 140px;

  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.2px;

  color: rgba(0,0,0,0.92);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.78));
  box-shadow: 0 14px 36px rgba(0,0,0,0.45);

  transition: transform 0.08s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
  filter: brightness(1.04);
  box-shadow: 0 16px 42px rgba(0,0,0,0.55);
}

button:active {
  transform: translateY(1px) scale(0.99);
}

button.ghost {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: none;
}

button.ghost:hover {
  filter: brightness(1.08);
}


@media (max-width: 520px) {
  .pill { width: 104px; }
  .card { padding: 22px 18px 18px 18px; }
  .brand h1 { font-size: 26px; }
  button { min-width: 120px; width: 100%; }
  .btnrow { width: 100%; }
}
