/* Amish Heavy Games: the shared stylesheet for every page. Phone first (375 px with a 16 px gutter), scaling up
   to desktop; the synthwave palette matches PILOT99's night city. */
:root {
  --bg: #0a0b24;
  --bg-deep: #05061a;
  --line: rgba(120, 110, 255, 0.28);
  --text: #e9e6ff;
  --muted: #a7a2d6;
  --cyan: #3cf2ff;
  --magenta: #ff3cc7;
  --violet: #8a5bff;
  --display: "Orbitron", "Arial Black", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(120% 60% at 50% 0%, rgba(138, 91, 255, 0.28), transparent 60%),
    radial-gradient(90% 50% at 50% 100%, rgba(255, 60, 199, 0.16), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  color: var(--text);
  font: 400 17px/1.55 var(--body);
  overflow-x: hidden;
}

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #9ff8ff; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

main { flex: 1; padding: 40px 0 56px; }

h1 {
  margin: 0;
  font: 900 clamp(40px, 13vw, 84px)/1.05 var(--display);
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #ffffff 0%, #ffd2f3 45%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 60, 199, 0.45));
  overflow-wrap: anywhere;
}

.button {
  display: inline-block;
  padding: 14px 22px;
  border: 1.5px solid var(--cyan);
  border-radius: 999px;
  color: var(--text);
  font: 700 15px/1 var(--display);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(60, 242, 255, 0.35), inset 0 0 12px rgba(60, 242, 255, 0.15);
}
.button:hover { color: #ffffff; background: rgba(60, 242, 255, 0.12); }

/* The playtest landing page: the trailer and the signup form in one centered column over the night shot. The shot is
   a fixed layer rather than background-attachment: fixed, which iOS Safari does not draw, and a scrim at the top
   darkens the sky's brightest bands. */
.landing::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 6, 26, 0.6) 0%, rgba(5, 6, 26, 0) 40%),
    url("gamesbeat/background.webp") center 70% / cover no-repeat var(--bg-deep);
}
.landing main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 5vh, 48px);
  padding: clamp(36px, 8vh, 80px) 16px 56px;
}

/* The studio home: the night shot and the studio's logo, alone, centered in the page. */
.home main { justify-content: center; padding: 16px; text-align: center; }
.home .logo { width: min(100% - 32px, 600px); }

.logo { width: min(100% - 64px, 420px); line-height: 0; filter: drop-shadow(0 0 22px rgba(255, 60, 199, 0.6)); }
.logo img { display: block; width: 100%; height: auto; }

.player {
  position: relative;
  width: min(100%, 960px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(5, 6, 26, 0.55) center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 60, 199, 0.15), 0 18px 60px rgba(138, 91, 255, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 84px;
  height: 84px;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  background: rgba(5, 6, 26, 0.55);
  box-shadow: 0 0 22px rgba(60, 242, 255, 0.45), inset 0 0 14px rgba(60, 242, 255, 0.2);
  cursor: pointer;
}
.play::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 26px;
  height: 30px;
  transform: translateX(3px);
  background: var(--text);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.play:hover { background: rgba(60, 242, 255, 0.18); }
.play:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.landing .button {
  padding: 18px 34px;
  font-size: clamp(15px, 4.2vw, 18px);
  background: rgba(5, 6, 26, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.landing .button:hover { background: rgba(60, 242, 255, 0.18); }

/* The signup form under the trailer: a glass panel like the player's, every control at least 44 px tall for a thumb
   arriving from the card's QR code. "Join the playtest" scrolls here. */
html { scroll-behavior: smooth; }
.signup {
  width: min(100%, 560px);
  scroll-margin-top: 24px;
  padding: 24px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(5, 6, 26, 0.68);
  box-shadow: 0 0 0 1px rgba(255, 60, 199, 0.15), 0 18px 60px rgba(138, 91, 255, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.signup h2 {
  margin: 0 0 18px;
  color: var(--cyan);
  font: 700 clamp(17px, 4.6vw, 20px)/1.2 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.signup form { display: flex; flex-direction: column; gap: 20px; }
.signup fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.signup legend, .field > span { display: block; margin-bottom: 8px; font-weight: 600; font-size: 15px; }
.field { display: block; }
.signup fieldset .field { margin-top: 12px; }
.field input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10, 11, 36, 0.8);
  color: var(--text);
  font: 400 17px/1.3 var(--body);
}
.field input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: transparent; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10, 11, 36, 0.8);
  text-align: center;
  font-size: 16px;
}
.choice input:checked + span {
  border-color: var(--cyan);
  background: rgba(60, 242, 255, 0.14);
  box-shadow: 0 0 12px rgba(60, 242, 255, 0.3), inset 0 0 8px rgba(60, 242, 255, 0.15);
}
.choice input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.signup [hidden] { display: none; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.signup .error { margin: 0; color: #ff8bdc; font-size: 15px; }
.signup .button { align-self: center; min-height: 48px; cursor: pointer; }
.signup .button:disabled { opacity: 0.6; cursor: progress; }
.signup .done { margin: 4px 0; font-size: 18px; font-weight: 600; text-align: center; }
.privacy { margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; text-align: center; }
