/* The alpha pages.
 *
 * Same palette as the front page, which takes it from the game's theme file so
 * the site and the app cannot drift apart. Pulled out into its own stylesheet
 * rather than copied into three <style> blocks: three copies of a colour is
 * three chances for two of them to be right.
 */

:root {
  --abyss:   #07090F;
  --surface: #141924;
  --line:    #303A4D;

  --text:  #EDF1F7;
  --muted: #9AA6BC;
  --faint: #64708A;

  --gold:    #F2B544;
  --cyan:    #3FD0E0;
  --emerald: #3DD68C;
  --crimson: #E5484D;

  --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--abyss);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: -30vh -20vw;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(48vw 48vw at 50% -6%, rgba(242,181,68,.13), transparent 62%),
    radial-gradient(44vw 44vw at 84% 74%, rgba(63,208,224,.08), transparent 60%);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

header {
  padding: 32px 0 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

header img { height: 30px; width: auto; display: block; }

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .3em;
  font-size: 13px;
  line-height: 1;
  color: var(--gold);
  text-transform: uppercase;
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(27px, 6vw, 38px);
  letter-spacing: -.022em;
  line-height: 1.15;
  margin: 44px 0 12px;
}

.lede { color: var(--muted); margin: 0 0 32px; }

.card {
  background: linear-gradient(180deg, var(--surface), rgba(20,25,36,.5));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 20px 0 7px;
}

label:first-child { margin-top: 0; }

input, textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(7,9,15,.6);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
}

textarea { resize: vertical; min-height: 96px; }

input:focus, textarea:focus {
  outline: none;
  border-color: rgba(242,181,68,.55);
  box-shadow: 0 0 0 3px rgba(242,181,68,.1);
}

.hint { font-size: 13px; color: var(--faint); margin: 7px 0 0; }

button {
  width: 100%;
  margin-top: 26px;
  padding: 13px 18px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(96deg, var(--gold), #FFDFA0);
  color: #1A1204;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  cursor: pointer;
  transition: filter .2s ease, opacity .2s ease;
}

button:hover:not(:disabled) { filter: brightness(1.08); }
button:disabled { opacity: .45; cursor: default; }

/* What the page says back. Never rendered as markup — everything that lands
   here is set with textContent, including anything the server echoes. */
.said {
  margin-top: 20px;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 15px;
  display: none;
}

.said.show { display: block; }

.said.good {
  border: 1px solid rgba(61,214,140,.4);
  background: rgba(61,214,140,.08);
  color: var(--emerald);
}

.said.bad {
  border: 1px solid rgba(229,72,77,.4);
  background: rgba(229,72,77,.08);
  color: var(--crimson);
}

.builds { list-style: none; margin: 0; padding: 0; }

.build {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.build:first-child { border-top: 0; padding-top: 0; }

.build-what { flex: 1; min-width: 160px; }

.build-platform {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  text-transform: capitalize;
}

.build-meta { font-size: 13px; color: var(--faint); }

.build a {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 9px;
  border: 1px solid rgba(242,181,68,.4);
  background: rgba(242,181,68,.08);
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.build a:hover { background: rgba(242,181,68,.16); }

footer {
  margin-top: 40px;
  font-size: 13.5px;
  color: var(--faint);
  text-align: center;
}

footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
