:root {
  --bg: #06061A;
  --panel: #12122b;
  --line: #2a2a45;
  --fg: #ffffff;
  --muted: #9a9ab5;
  --accent: #7c5cff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}

#app {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.screen { width: 100%; }

h1 { font-size: 28px; margin: 0 0 24px; }
h2 { font-size: 22px; line-height: 1.3; margin: 0 0 20px; }

form { display: flex; flex-direction: column; gap: 16px; }

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

input {
  font-size: 18px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--fg);
}
#code { letter-spacing: 6px; text-transform: uppercase; font-weight: 700; }

button {
  font-size: 18px;
  font-weight: 700;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
button:disabled { opacity: 0.5; }

.options { display: flex; flex-direction: column; gap: 12px; }

.options button {
  background: var(--panel);
  border: 1px solid var(--line);
  text-align: left;
  font-weight: 600;
}
.options button.picked {
  background: var(--accent);
  border-color: var(--accent);
}

.error { color: #ff6b6b; font-size: 14px; margin: 4px 0 0; }
.ack { color: var(--muted); font-size: 14px; text-align: center; }

#status-line {
  font-size: 20px;
  text-align: center;
  color: var(--muted);
  line-height: 1.5;
}
