:root {
  --bg: #f5f4f0;
  --panel: #ffffff;
  --ink: #1c1c1e;
  --muted: #6b6b70;
  --accent: #ff6b35;
  --accent-ink: #ffffff;
  --border: #e2e0da;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius: 16px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

button {
  font-family: inherit;
  cursor: pointer;
}

a { color: inherit; }

/* ---------- Landing page ---------- */
.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 32px;
  text-align: center;
}

.landing h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin: 0;
}

.landing p.subtitle {
  color: var(--muted);
  margin: 4px 0 0;
  max-width: 420px;
}

.landing-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.landing-card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  transition: transform 0.15s ease;
}

.landing-card:hover { transform: translateY(-3px); }

.landing-card .icon { font-size: 2.4rem; }
.landing-card h2 { margin: 0; font-size: 1.15rem; }
.landing-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.big-btn {
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  text-align: left;
}

.field label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.field input {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-align: center;
}

.field input#nameInput {
  letter-spacing: normal;
  text-align: left;
  font-size: 1rem;
}

.error-text {
  color: #d64545;
  font-size: 0.85rem;
  min-height: 1.1em;
}

.hint {
  color: var(--muted);
  font-size: 0.8rem;
}
