/* Page d'inscription : style doré de l'interface du jeu et du lanceur */
:root {
  --bg: #0e131d;
  --panel: rgba(22, 27, 40, 0.86);
  --cell: rgba(10, 13, 21, 0.9);
  --trim: #c2ad78;
  --trim-soft: rgba(194, 173, 120, 0.45);
  --gold-text: #f3dca2;
  --gold-hi: #ffde80;
  --gold-lo: #d69228;
  --text: #ece8de;
  --hint: #b9b2a3;
  --bad: #f2907e;
  --good: #8fd99a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  font: 15px/1.5 "Segoe UI", system-ui, sans-serif; color: var(--text);
  background: var(--bg);
}
/* Image officielle du jeu en fond, floutée et assombrie ; nette en tête de la fenêtre */
body::before {
  content: ""; position: fixed; inset: -40px; z-index: -1;
  background: url("/key-art.jpg") center / cover no-repeat;
  filter: blur(14px) brightness(0.45) saturate(1.1);
}
.window {
  width: min(100%, 480px); padding: 0 28px 24px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--trim); border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
}
.banner {
  display: block; width: calc(100% + 56px); height: auto; margin: 0 -28px 14px;
  border-bottom: 1px solid var(--trim-soft);
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.server-status {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 0 10px; font-size: 14px; color: var(--hint);
}
.server-status strong { color: var(--text); font-weight: 600; }
.server-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hint); }
.server-status[data-state="online"] .dot { background: var(--good); box-shadow: 0 0 6px var(--good); }
.server-status[data-state="online"] strong { color: var(--good); }
.server-status[data-state="offline"] .dot { background: var(--bad); }
.server-status[data-state="offline"] strong { color: var(--bad); }
.intro { margin: 0 0 18px; text-align: center; color: var(--hint); font-size: 14px; }
form { display: grid; gap: 4px; }
label { margin-top: 10px; color: var(--gold-text); font-weight: 600; font-size: 13px; }
input {
  font: inherit; color: var(--text); background: var(--cell);
  border: 1px solid var(--trim-soft); border-radius: 4px; padding: 8px 10px;
}
input:focus-visible { outline: none; border-color: var(--gold-hi); box-shadow: 0 0 0 2px rgba(255, 222, 128, 0.2); }
.hint { margin: 2px 0 0; color: var(--hint); font-size: 12px; }
button {
  margin-top: 20px; padding: 10px; cursor: pointer;
  font: 700 16px "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; letter-spacing: 0.06em;
  color: var(--gold-text); background: linear-gradient(180deg, rgba(40, 46, 66, 0.95), rgba(14, 18, 28, 0.95));
  border: 1.5px solid var(--trim); border-radius: 6px;
}
button:hover:not(:disabled) { filter: brightness(1.15); }
button:disabled { cursor: default; opacity: 0.6; }
.download { display: grid; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--trim-soft); text-align: center; }
.download-button {
  display: block; padding: 10px; text-decoration: none;
  font: 700 16px "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif; letter-spacing: 0.06em;
  color: #1a1206; background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
  border: 1.5px solid var(--trim); border-radius: 6px;
}
.download-button:hover { filter: brightness(1.08); }
.download-button:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.download .hint strong { color: var(--text); font-weight: 600; }
#message { min-height: 1.5em; margin: 12px 0 0; text-align: center; font-size: 14px; }
#message.bad { color: var(--bad); }
#message.good { color: var(--good); }
