@import url("/fonts/fonts.css");

:root {
  color-scheme: dark;
  --red: #d22630;
  --night: #25282a;
  --black: #090909;
  --cream: #f2efe9;
  --bone: #cfcbc4;
  --moss: #5e6a5a;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--black);
  color: var(--cream);
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(circle at 20% 12%, rgb(210 38 48 / 35%), transparent 25%),
    radial-gradient(circle at 80% 32%, rgb(94 106 90 / 30%), transparent 27%),
    linear-gradient(180deg, #17181a, var(--black));
}

body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background: repeating-linear-gradient(0deg, rgb(255 255 255 / 2%) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}

.registration-shell {
  position: relative;
  width: min(100%, 440px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
  overflow: hidden;
}

.club-lights {
  position: absolute;
  inset: 0;
  opacity: .6;
  background:
    linear-gradient(72deg, transparent 0 42%, rgb(210 38 48 / 25%) 43% 47%, transparent 48%),
    linear-gradient(108deg, transparent 0 43%, rgb(242 239 233 / 12%) 44% 48%, transparent 49%);
  animation: lights 6s ease-in-out infinite alternate;
}

.brand-lockup,
.arcade-card,
footer { position: relative; z-index: 1; }

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-family: "League Spartan", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.brand-lockup b { color: var(--red); }

.brand-mark {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--black);
}

.arcade-card {
  padding: 22px 18px 20px;
  border: 3px solid var(--cream);
  background: rgb(9 9 9 / 84%);
  box-shadow: 7px 7px 0 var(--red), inset 0 0 26px rgb(210 38 48 / 12%);
}

.stage {
  margin: 0 0 14px;
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-family: "League Spartan", Arial, sans-serif;
  font-size: clamp(35px, 10vw, 48px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.benefit,
.status-screen > p:not(.stage) {
  margin: 18px 0 0;
  color: var(--bone);
  font-size: 16px;
  line-height: 1.45;
}

form { margin-top: 28px; }

label {
  display: block;
  margin-bottom: 8px;
  font-family: "League Spartan", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 54px;
  border: 3px solid var(--bone);
  border-radius: 0;
  padding: 0 13px;
  color: var(--night);
  background: var(--cream);
  font: 700 17px/1.2 inherit;
  outline: none;
}

input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgb(210 38 48 / 35%); }

.consent-copy {
  margin: 14px 0 0;
  color: var(--bone);
  font-size: 12px;
  line-height: 1.45;
}

.legal-links {
  display: flex;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 12px;
}

a { color: var(--cream); text-underline-offset: 3px; }

button {
  width: 100%;
  min-height: 56px;
  margin-top: 20px;
  border: 0;
  padding: 10px 14px;
  color: var(--cream);
  background: var(--red);
  box-shadow: 5px 5px 0 var(--cream);
  font: 900 14px/1.15 "League Spartan", Arial, sans-serif;
  letter-spacing: .025em;
  text-transform: uppercase;
  cursor: pointer;
}

button:disabled { cursor: wait; opacity: .62; }
button:focus-visible { outline: 3px solid var(--cream); outline-offset: 4px; }

.status-screen { min-height: 470px; text-align: center; }
.status-screen h1 { max-width: none; }
.pixel-mail { margin: 20px auto 28px; color: var(--red); font-size: 72px; filter: drop-shadow(5px 5px 0 var(--cream)); }
.auto-check { padding-top: 18px; border-top: 2px solid rgb(242 239 233 / 20%); }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: pulse 1s steps(2, end) infinite; }

.game-code {
  display: block;
  margin: 34px 0 24px;
  color: var(--cream);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(72px, 25vw, 108px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .08em;
  text-shadow: 6px 6px 0 var(--red);
}

.code-expiry { font-size: 12px !important; }
.error-screen { border-color: var(--red); }

footer {
  margin-top: 28px;
  color: rgb(207 203 196 / 65%);
  font-family: ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: .08em;
  text-align: center;
}

[hidden] { display: none !important; }

@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }
@keyframes lights { to { transform: translateX(10px) scale(1.05); opacity: .9; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
