/* Reset, typography, form controls and buttons, layout utilities, background texture */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  overflow-x: clip;
  max-width: 100%;
}
html {
  scrollbar-width: none;
  background: var(--bg);
}
::-webkit-scrollbar {
  display: none;
}
body {
  margin: 0;
  font: 16px/1.45 var(--font-body);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}
main {
  max-width: 760px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 16px 48px;
  padding-top: max(28px, env(safe-area-inset-top));
}
h1 {
  font: 400 38px/0.95 var(--font-display);
  text-transform: uppercase; /* logotype, as on the poster */
  letter-spacing: 0.01em;
  margin: 0;
  white-space: nowrap;
  color: var(--fg);
  text-shadow:
    3px 3px 0 var(--pink),
    -2px -1.5px 0 rgba(200, 255, 46, 0.85);
}
.sub {
  color: var(--mut);
  font-size: 15px;
  margin: 14px 0 24px;
  line-height: 1.45;
}
.mut {
  color: var(--mut);
  font-size: 14px;
}
a {
  color: inherit;
}
input,
select {
  font: inherit;
  width: 100%;
  color: var(--fg);
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: var(--radius-control);
  padding: 14px 16px;
}
input:focus,
select:focus {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px rgba(200, 255, 46, 0.18);
}
select {
  appearance: none;
}
select option {
  background: var(--sf);
  color: var(--fg);
}
button {
  font: inherit;
  font-weight: 700;
  border: 0;
  padding: 13px 16px;
  cursor: pointer;
  transition:
    transform 0.12s,
    box-shadow 0.12s,
    background 0.15s,
    opacity 0.15s;
  border-radius: var(--radius-control);
}
button:active {
  transform: scale(0.97);
}
.pri {
  background: var(--acc);
  color: var(--ink);
  box-shadow: var(--sh-hard);
}
.pri:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--pink);
}
.sec {
  background: var(--sec);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--bd);
}
button:disabled {
  opacity: 0.5;
}
.field {
  display: grid;
  gap: 10px;
}
.btns {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.btns button {
  flex: 1;
}
.note {
  font-size: 14px;
  color: var(--mut);
  margin-top: 10px;
  min-height: 1px;
}
.foot {
  margin-top: 40px;
  font: 12px/1.6 var(--font-mono);
  color: var(--mut);
}
.hide {
  display: none !important;
}
.err {
  color: var(--err);
}
/* Poster light: pink top left, blue top right, lime low right, like the share card */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(80% 45% at 0% 0%, rgba(255, 47, 176, 0.55), rgba(255, 47, 176, 0) 72%),
    radial-gradient(75% 45% at 100% 0%, rgba(47, 60, 255, 0.62), rgba(47, 60, 255, 0) 72%),
    radial-gradient(65% 40% at 100% 100%, rgba(25, 211, 255, 0.2), rgba(25, 211, 255, 0) 70%),
    radial-gradient(65% 40% at 0% 100%, rgba(123, 43, 255, 0.4), rgba(123, 43, 255, 0) 70%),
    var(--bg);
}
/* Halftone dots, strongest in the top corner and fading out */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 140, 220, 0.75) 1.1px, transparent 1.5px);
  background-size: 7px 7px;
  -webkit-mask-image: radial-gradient(85% 40% at 0% 0%, #000 0%, rgba(0, 0, 0, 0.25) 45%, transparent 75%);
  mask-image: radial-gradient(85% 40% at 0% 0%, #000 0%, rgba(0, 0, 0, 0.25) 45%, transparent 75%);
  opacity: 0.6;
}
/* Film grain over everything, one small tile */
html::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: url(/img/grain.png) 0 0 / 128px 128px;
  opacity: 0.09;
}
input::placeholder {
  color: var(--placeholder);
}
@keyframes in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes sh {
  to {
    background-position: -150% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
