:root {
  --bg: #0d0d0d;
  --surface: #1a1a1a;
  --surface2: #222;
  --accent: #e50914;
  --accent-dim: #200808;
  --text: #f0f0f0;
  --text-muted: #777;
  --word-color: #ff6b6b;
  --word-border: #3a1010;
  --radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* ── Screens ───────────────────────────────────── */

.screen {
  display: none;
  width: 100%;
  max-width: 480px;
}

.screen.active {
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

/* ── Main screen ───────────────────────────────── */

.main-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 0;
}

.main-logo {
  font-size: 5rem;
  line-height: 1;
}

.main-title {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.main-tagline {
  color: var(--text-muted);
  font-size: 1rem;
  text-align: center;
  max-width: 280px;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* ── Game screen ───────────────────────────────── */

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.15s;
}

.btn-link:hover {
  color: var(--text);
}

.progress-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.movie-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 24px;
}

.movie-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 28px;
  word-break: break-word;
  hyphens: auto;
}

.forbidden-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.words {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.word {
  background: var(--accent-dim);
  border: 1px solid var(--word-border);
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  color: var(--word-color);
  letter-spacing: 0.01em;
}

/* ── Done screen ───────────────────────────────── */

.done-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 0;
  text-align: center;
}

.done-icon {
  font-size: 4rem;
  line-height: 1;
}

.done-title {
  font-size: 2rem;
  font-weight: 900;
}

.done-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 8px;
}

/* ── Buttons ───────────────────────────────────── */

.btn {
  border: none;
  border-radius: var(--radius);
  padding: 18px 24px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  opacity: 0.85;
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  margin-top: 4px;
}

/* ── Loading state ─────────────────────────────── */

.btn-primary.loading::after {
  content: ' ⏳';
}

/* ── Responsive: bigger screens ────────────────── */

@media (min-width: 480px) {
  .movie-title {
    font-size: 2.4rem;
  }

  .word {
    font-size: 1.5rem;
    padding: 16px 24px;
  }

  .btn {
    padding: 20px 28px;
    font-size: 1.15rem;
  }
}
