:root {
  --bg: #f4f6fb;
  --fg: #1d2333;
  --accent: #2f6fed;
  --muted: #6b7280;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2rem 1rem;
  font-family: system-ui, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
}

header,
main {
  max-width: 34rem;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 1.5rem;
}

h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  letter-spacing: 0.3rem;
}

.logo {
  width: auto;
  height: 40px;
  object-fit: contain;
}

nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

#score {
  color: var(--muted);
  font-size: 0.95rem;
}

button {
  font: inherit;
  padding: 0.6rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.05);
}

button.secondary,
button.mode {
  background: #fff;
  color: var(--fg);
  border-color: #d5dae6;
}

button.mode.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  min-height: 12rem;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(29, 35, 51, 0.08);
}

.word {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.translation {
  font-size: 1.4rem;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.example {
  color: var(--muted);
  font-style: italic;
  margin: 0;
}

.hint {
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.options {
  display: grid;
  gap: 0.6rem;
}

.option {
  background: #fff;
  color: var(--fg);
  border-color: #d5dae6;
  text-align: left;
}

.option.correct {
  background: #e4f7ec;
  border-color: #2e9e5b;
}

.option.wrong {
  background: #fdeaea;
  border-color: #d64545;
}

#quiz {
  text-align: center;
}

#quiz-next {
  margin-top: 1.25rem;
}

#progress {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
}

#progress h2 {
  margin-top: 0;
}

#progress-boxes {
  margin-bottom: 0;
  line-height: 2;
}

.hidden {
  display: none;
}
