:root {
  color-scheme: dark;
  --ink: #f5efe5;
  --muted: #c8bda9;
  --panel: rgba(28, 29, 27, 0.92);
  --line: rgba(255, 255, 255, 0.14);
  --accent: #ffc857;
  --active: #86d6c6;
  --danger: #ff7a7a;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #11120f;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.landing {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 24px;
}

.card {
  width: min(420px, 100%);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  margin: 4px 0 28px;
  font-size: clamp(3rem, 10vw, 5rem);
  line-height: 0.86;
}

.field {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

input[type="text"] {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
}

input[type="text"]:focus {
  border-color: rgba(255, 200, 87, 0.7);
}

input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.color-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--color);
  cursor: pointer;
  transition: transform 0.1s, border-color 0.15s, box-shadow 0.15s;
}

.color-swatch:hover {
  transform: scale(1.14);
}

.color-swatch.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 200, 87, 0.35);
}

.btn-primary {
  width: 100%;
  height: 46px;
  margin-top: 4px;
  border: none;
  border-radius: 8px;
  background: var(--active);
  color: #0e2420;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-primary:active {
  transform: translateY(1px);
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.join-row {
  display: flex;
  gap: 8px;
}

.code-input {
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.btn-secondary {
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, transform 0.1s;
}

.btn-secondary:hover {
  border-color: rgba(255, 200, 87, 0.6);
}

.btn-secondary:active {
  transform: translateY(1px);
}

.error {
  margin: 12px 0 0;
  min-height: 1.2em;
  color: var(--danger);
  font-size: 0.84rem;
  text-align: center;
}
