@font-face {
  font-family: "Fredoka";
  src: url("fonts/fredoka-bold-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #06265a;
  --navy-deep: #031b43;
  --copy: #516b91;
  --border: #b8c9dd;
  --surface: #f5faff;
  --lime: #74e744;
  --lime-dark: #42bd2b;
  --board-light: #155589;
  --board-dark: #0b4577;
  --display-font: "Fredoka", ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  font-family: Inter, ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  min-height: 100%;
  background: var(--board-dark);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--navy);
  background: var(--board-dark);
}

.checkerboard {
  position: fixed;
  z-index: 0;
  inset: -6rem 0;
  pointer-events: none;
  background-color: var(--board-dark);
  background-image: conic-gradient(
    var(--board-light) 25%,
    var(--board-dark) 0 50%,
    var(--board-light) 0 75%,
    var(--board-dark) 0
  );
  background-size: 6rem 6rem;
  animation: checkerboard-drift 12s linear infinite;
  will-change: transform;
}

body::after {
  content: "";
  position: fixed;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(1, 24, 58, 0.06), rgba(1, 24, 58, 0.16)),
    radial-gradient(circle at 50% 42%, rgba(23, 101, 153, 0.12), rgba(2, 30, 65, 0.2) 88%);
}

@keyframes checkerboard-drift {
  from {
    transform: translate3d(0, -6rem, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

.page-shell {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, 38rem);
  min-height: 100vh;
  min-height: 100dvh;
  margin-inline: auto;
  padding-block: clamp(2rem, 5vh, 4.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: clamp(1.5rem, 3vh, 2.25rem);
}

.brand-lockup {
  text-align: center;
  color: #fff;
  text-shadow: 0 0.2rem 0 rgba(2, 28, 66, 0.28);
}

.studio-name {
  margin: 0 0 0.75rem;
  color: #b9ddfa;
  font-size: clamp(0.76rem, 1.5vw, 0.9rem);
  font-weight: 800;
  letter-spacing: 0.25em;
  line-height: 1.35;
  text-transform: uppercase;
}

.game-title {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(4rem, 12vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.82;
  text-transform: uppercase;
}

.game-title span {
  display: block;
}

.title-soccer {
  color: #fff;
}

.title-pinball {
  margin-top: 0.16em;
  color: var(--lime);
  text-shadow:
    0 0.08em 0 var(--navy-deep),
    0 0.14em 0 rgba(3, 27, 67, 0.58);
}

.tagline {
  margin: 1rem 0 0;
  color: #fff;
  font-size: clamp(1.35rem, 4.3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.signup-card {
  padding: clamp(1.75rem, 6vw, 2.75rem);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: clamp(1.5rem, 4vw, 2rem);
  background: linear-gradient(145deg, #fbfdff 0%, var(--surface) 100%);
  box-shadow:
    0 1.4rem 3.5rem rgba(2, 28, 66, 0.3),
    inset 0 1px 0 #fff;
}

.signup-card h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--display-font);
  font-size: clamp(2rem, 7vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.intro {
  max-width: 31rem;
  margin: 0.9rem 0 1.8rem;
  color: var(--copy);
  font-size: clamp(1rem, 2.8vw, 1.12rem);
  font-weight: 600;
  line-height: 1.48;
}

form {
  position: relative;
  display: grid;
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: 0.5rem;
}

label {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.25;
}

input {
  width: 100%;
  height: 3.75rem;
  padding: 0 1.1rem;
  border: 2px solid var(--border);
  border-radius: 0.9rem;
  outline: 0;
  color: var(--navy-deep);
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

input::placeholder {
  color: #8194b0;
  opacity: 1;
}

input:hover {
  border-color: #8ca8c7;
}

input:focus-visible {
  border-color: #1b6fb0;
  background: #fff;
  box-shadow: 0 0 0 0.25rem rgba(35, 126, 190, 0.2);
}

button {
  min-height: 3.9rem;
  margin-top: 0.15rem;
  padding: 0.9rem 1.25rem;
  border: 0;
  border-radius: 1rem;
  color: #fff;
  background: linear-gradient(180deg, var(--lime) 0%, var(--lime-dark) 100%);
  box-shadow:
    0 0.35rem 0 #2b9426,
    0 0.65rem 1.2rem rgba(42, 148, 38, 0.18);
  cursor: pointer;
  font-family: var(--display-font);
  font-size: clamp(1rem, 3vw, 1.18rem);
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.1;
  text-transform: uppercase;
  transition: filter 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

button:not(:disabled):hover {
  filter: brightness(1.04) saturate(1.04);
  transform: translateY(-1px);
  box-shadow:
    0 0.42rem 0 #2b9426,
    0 0.8rem 1.4rem rgba(42, 148, 38, 0.22);
}

button:not(:disabled):active {
  transform: translateY(0.25rem);
  box-shadow:
    0 0.1rem 0 #2b9426,
    0 0.35rem 0.8rem rgba(42, 148, 38, 0.18);
}

button:focus-visible {
  outline: 0.25rem solid #0f5792;
  outline-offset: 0.25rem;
}

button:disabled {
  cursor: wait;
  filter: saturate(0.7);
  opacity: 0.78;
}

.form-note,
.form-status {
  margin: 0;
  text-align: center;
  color: var(--copy);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}

.form-status {
  padding: 0.8rem 1rem;
  border: 1px solid #b4cbe0;
  border-radius: 0.75rem;
  color: #244f77;
  background: #e8f4ff;
}

.form-status.is-success {
  border-color: #a9d99c;
  color: #225e2b;
  background: #eaf8e7;
}

.form-status.is-error {
  border-color: #e0b6b6;
  color: #7d2d36;
  background: #fff0f1;
}

.form-status[hidden] {
  display: none;
}

@media (max-width: 31rem) {
  .page-shell {
    width: min(100% - 1.5rem, 38rem);
    padding-block: 1.5rem;
  }

  .studio-name {
    letter-spacing: 0.18em;
  }

  .signup-card {
    border-radius: 1.5rem;
  }

  .intro {
    margin-bottom: 1.5rem;
  }
}

@media (max-height: 50rem) and (min-width: 32rem) {
  .page-shell {
    padding-block: 1.5rem;
    gap: 1.35rem;
  }

  .studio-name {
    margin-bottom: 0.55rem;
  }

  .game-title {
    font-size: clamp(3.75rem, 10vh, 5rem);
  }

  .tagline {
    margin-top: 0.75rem;
  }

  .signup-card {
    padding-block: 1.8rem;
  }

  .intro {
    margin-block: 0.7rem 1.25rem;
  }

  form {
    gap: 1rem;
  }

  input {
    height: 3.35rem;
  }

  button {
    min-height: 3.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .checkerboard {
    animation: none;
  }

  input,
  button {
    transition: none;
  }
}
