:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --error: #ef4444;
  --success: #22c55e;
  --norm-bg: #f1f5f9;
  --norm-text: #475569;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 650px;
}

/* ГЛАВНЫЙ ЗАГОЛОВОК КУРСА */
.main-header {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.4;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* ЗАГОЛОВОК ТЕМЫ ВО ВРЕМЯ ИГРЫ */
.theme-title-display {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  line-height: 1.4;
}

.quiz-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.screen-title {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

/* Темы */
.themes-grid {
  display: grid;
  gap: 1rem;
}

.theme-btn {
  background: white;
  border: 2px solid #e2e8f0;
  padding: 1.2rem;
  border-radius: 1rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.theme-btn:hover {
  border-color: var(--primary);
  background: #f5f3ff;
  transform: translateY(-2px);
}

/* Игра */
.header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.score-box, .attempts-box {
  background: #f1f5f9;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
}

#score, #attempts {
  color: var(--primary);
}

.norm-doc {
  background: var(--norm-bg);
  color: var(--norm-text);
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary);
  display: none;
}

.question-section h2 {
  font-size: 1.25rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.options-grid {
  display: grid;
  gap: 0.75rem;
}

.option-btn {
  background: white;
  border: 2px solid #e2e8f0;
  padding: 1rem;
  border-radius: 1rem;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.option-btn:hover {
  border-color: var(--primary);
  background: #f5f3ff;
}

.option-btn.correct {
  background-color: var(--success);
  color: white;
  border-color: var(--success);
}

.option-btn.wrong {
  background-color: var(--error);
  color: white;
  border-color: var(--error);
}

.btn-primary {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.hidden {
  display: none;
}

#result-screen {
  text-align: center;
}

#result-screen h2 {
  margin-bottom: 1rem;
}

#result-screen p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
