:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #171521;
  color: #f6f2ff;
}
* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
#canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}
.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) 1rem
    max(1rem, env(safe-area-inset-bottom));
  overflow-y: auto;
  background: radial-gradient(ellipse at top, #35304a, #171521 70%);
}
.card {
  width: min(100%, 37rem);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid #5e5478;
  border-radius: 1.25rem;
  background: #242030;
  box-shadow: 0 1rem 5rem #0005;
}
.eyebrow {
  color: #94e3bd;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
}
h1 {
  margin: 0.75rem 0;
  font-size: clamp(1.6rem, 6vw, 2.8rem);
  overflow-wrap: anywhere;
}
p {
  color: #d3cada;
  line-height: 1.6;
}
button {
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 0.65rem;
  color: #11221b;
  background: #94e3bd;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #f0bcf5;
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
progress {
  width: 100%;
  height: 0.75rem;
  margin-top: 1.25rem;
  accent-color: #94e3bd;
}
.credits {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: #aaa0b5;
}
a {
  color: #bfead5;
}
#resume {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0.5rem 2rem #0008;
}
#failure {
  color: #ffb8c4;
}
.noscript {
  position: fixed;
  inset: 1rem;
  background: #242030;
  padding: 1rem;
}
[hidden] {
  display: none !important;
}
