/* Same palette as the app's Home screen (src/index.css). System fonts only. */
:root {
  color-scheme: dark;
  --bg: #0e1116;
  --text: #e6e9ef;
  --text-dim: #949cab;
  --amber: #f2a65a;
  --teal: #5ec8c0;
  --home-card: #151a22;
  --home-card-border: #232a36;
  --home-grid: #171d26;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background-color: var(--bg);
  background-image: linear-gradient(var(--home-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--home-grid) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

.card {
  width: 100%;
  max-width: 480px;
  padding: 32px;
  border: 1px solid var(--home-card-border);
  border-radius: 20px;
  background: var(--home-card);
  text-align: center;
}

.brand {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.brand .x {
  color: #6fa8ff;
  font-weight: 800;
}

.brand .o {
  margin-right: 8px;
  color: var(--amber);
  font-weight: 800;
}

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

.code-label {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-dim);
}

.code {
  margin: 8px auto 0;
  padding: 14px 0 14px 0.3em;
  border: 1px solid var(--home-card-border);
  border-radius: 12px;
  background: var(--bg);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 0.3em;
  line-height: 1;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.btn.primary {
  background: var(--amber);
  color: var(--bg);
}

.btn.secondary {
  border: 1px solid var(--amber);
  color: var(--amber);
}

.btn:hover {
  opacity: 0.9;
}

.btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.note {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
}
