* {
  box-sizing: border-box;
  margin: 0;
}

html,
body {
  height: 100%;
}

body {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #05050c;
  color: #f2f2f7;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

/* Vignette to give the background some depth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.6) 100%);
}

/* Transparent, very slightly frosted background with a glossy edge */
.card {
  position: relative;
  z-index: 1;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.5rem;
  background: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  user-select: none;
}

.card h1 {
  line-height: 0;
}

/* The logo is a button: clicking it switches to the next animation */
.logo-button {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0.75rem;
  background: none;
  cursor: pointer;
}

.logo-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 6px;
}

.logo {
  display: block;
  width: clamp(140px, 30vw, 260px);
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
  transition: transform 0.25s ease;
  -webkit-user-drag: none;
}

.logo-button:hover .logo {
  transform: scale(1.04);
}

.logo-button:active .logo {
  transform: scale(0.97);
}
