:root {
  --bg: #0f1220;
  --panel: #191d2e;
  --ink: #f2f4ff;
  --muted: #a6adc8;
  --accent: #5b8cff;
  --accent-ink: #ffffff;
  --lock: #2a2f45;
  --danger: #ff6b6b;
  --line: #2c3350;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  min-height: 100vh;
}

.screen { display: flex; flex-direction: column; gap: 16px; }

h1 { font-size: 2.1rem; margin: 8px 0 0; text-align: center; letter-spacing: 0.02em; }
h2 { font-size: 1.4rem; margin: 0; }
h3 { font-size: 1.1rem; margin: 0; text-align: center; }

.tagline, .hint { color: var(--muted); margin: 0; }
.tagline { text-align: center; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.95rem; }
.field span { color: var(--muted); }
.field.inline { flex-direction: row; align-items: center; gap: 10px; }

input, select, button { font: inherit; }
input[type=number], select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}
input[type=checkbox] { width: 22px; height: 22px; }

button {
  cursor: pointer;
  border: 0;
  border-radius: 14px;
  padding: 16px;
  font-size: 1.05rem;
}
button.primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
button.primary:disabled { opacity: 0.4; cursor: not-allowed; }
button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }

.row { display: flex; gap: 12px; }
.row > button { flex: 1; }

.seat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.seat {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  min-height: 64px;
  font-weight: 600;
}
.seat.locked { background: var(--lock); color: var(--muted); }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 18, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}
.sheet {
  background: var(--panel);
  border-radius: 20px;
  padding: 20px;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reveal-pad {
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  background: #11152a;
  border: 2px dashed #33406b;
  border-radius: 16px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 16px;
}
.hold-prompt { color: var(--muted); font-size: 1.1rem; }
.hold-prompt.hidden { display: none; }
.word { font-size: 2rem; font-weight: 800; }
.word.hidden { visibility: hidden; }
.role-hint { color: var(--danger); font-weight: 600; }

.big { font-size: 1.3rem; font-weight: 700; }
