@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../../assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../../assets/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0400-045F, U+0490-0491, U+2116;
}

:root {
  --bg: #f4f5f3;
  --ink: #1a1c18;
  --muted: #55584f;
  --accent: #2f5d42;
  --accent-ink: #eef3ee;
  --hairline: #d7d9d2;
  --wrong: #8a3b2f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14160f;
    --ink: #ece9e2;
    --muted: #9a9d92;
    --accent: #7ec097;
    --accent-ink: #0f1710;
    --hairline: #2c2f26;
    --wrong: #d98673;
  }
}

* { box-sizing: border-box; }
html { color-scheme: light dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.back-link {
  display: inline-block;
  margin: 1.25rem clamp(1.25rem, 5vw, 3rem) 0;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1.5px solid transparent;
}
.back-link:hover { color: var(--accent); border-color: var(--accent); }

.wrap {
  max-width: 760px;
  margin-inline: auto;
  padding: 1.5rem clamp(1.25rem, 5vw, 3rem) 4rem;
}

.game-head h1 {
  font-weight: 800;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}
.game-sub {
  color: var(--muted);
  max-width: 60ch;
  margin: 0;
}

.score-row {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding-block: 0.75rem;
}
.score-row strong { color: var(--ink); font-size: 1.1rem; }

.petition-text {
  font-size: clamp(1.1rem, 0.4vw + 1rem, 1.3rem);
  margin: 2rem 0;
  min-height: 4em;
}

.picker { margin-bottom: 1.5rem; }
.picker-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.btn-grid { display: grid; gap: 0.6rem; }
.type-grid { grid-template-columns: repeat(4, 1fr); }
.ministry-grid { grid-template-columns: repeat(3, 1fr); }

.pick-btn {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.8em 0.5em;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pick-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.pick-btn:disabled { cursor: default; }
.pick-btn.selected { background: var(--ink); color: var(--bg); }
.pick-btn.correct { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pick-btn.incorrect { background: var(--wrong); border-color: var(--wrong); color: var(--accent-ink); }

@media (max-width: 560px) {
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .ministry-grid { grid-template-columns: repeat(2, 1fr); }
}

.reveal-row { min-height: 5rem; }
.reveal-msg {
  font-weight: 700;
  min-height: 1.5em;
  margin: 0 0 1rem;
}
.reveal-msg.correct { color: var(--accent); }
.reveal-msg.incorrect { color: var(--wrong); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.8em 1.3em;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
