﻿:root {
  --sky-1: #f0fbf6;
  --sky-2: #fff9ed;
  --meadow-1: #e5f7d8;
  --meadow-2: #d3f1e1;
  --panel: rgba(255, 255, 255, 0.9);
  --text: #21312a;
  --muted: #5f6f66;
  --border: #cfe4d7;
  --primary: #2f9b66;
  --primary-strong: #257c52;
  --primary-soft: #ebf8f0;
  --danger: #b74f4f;
  --ok: #1f8d4c;
  --bad: #be3f3f;
  --ok-bg: #ecfdf1;
  --bad-bg: #fff2f2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 14%, rgba(250, 202, 119, 0.2), transparent 25%),
    radial-gradient(circle at 90% 12%, rgba(117, 201, 136, 0.2), transparent 23%),
    linear-gradient(165deg, var(--sky-1) 0%, var(--sky-2) 52%, var(--meadow-1) 100%);
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
}

body::before {
  width: 360px;
  height: 360px;
  left: -140px;
  top: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 236, 177, 0.55), rgba(255, 236, 177, 0.1));
}

body::after {
  width: 440px;
  height: 440px;
  right: -180px;
  bottom: -140px;
  background: radial-gradient(circle at 40% 45%, rgba(186, 237, 206, 0.5), rgba(186, 237, 206, 0.1));
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 34px 20px 64px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow:
    0 20px 40px rgba(56, 95, 74, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  animation: float-in 520ms ease-out;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: Cambria, Constantia, "Book Antiqua", "Times New Roman", serif;
  letter-spacing: 0.2px;
}

h1 {
  margin-bottom: 12px;
  font-size: 2rem;
  color: #244235;
}

h2 {
  font-size: 1.36rem;
  color: #2b4136;
}

h3 {
  margin-bottom: 10px;
}

.season-tag {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #2f6f4d;
  background: linear-gradient(90deg, rgba(198, 239, 213, 0.8), rgba(255, 239, 204, 0.8));
  border: 1px solid #cbe8d8;
}

.subtitle {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 22px;
  line-height: 1.6;
}

.field {
  margin-bottom: 18px;
}

.hint {
  margin-top: 0;
  color: var(--muted);
  font-size: 14px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #2c4237;
}

select,
button {
  font: inherit;
}

select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #bfdccd;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

select:focus {
  outline: none;
  border-color: #6dbb8e;
  box-shadow: 0 0 0 4px rgba(109, 187, 142, 0.18);
}

button {
  border: 0;
  border-radius: 12px;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 120ms ease, filter 150ms ease;
}

button:hover:enabled,
.btn-link:hover {
  transform: translateY(-1px);
}

.btn-link {
  display: inline-block;
  text-decoration: none;
  border-radius: 12px;
  padding: 11px 18px;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(110deg, var(--primary), #5cb87f);
  color: #fff;
}

.btn-primary:hover:enabled,
.btn-primary.btn-link:hover {
  filter: brightness(0.96);
}

.btn-secondary {
  background: #e8efe9;
  color: #23322b;
}

.btn-danger {
  background: linear-gradient(110deg, var(--danger), #cd6767);
  color: #fff;
}

button:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.meta {
  color: #3f5a4e;
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(236, 250, 241, 0.9), rgba(255, 247, 228, 0.9));
  border: 1px solid #d7ecd8;
}

.loading {
  color: #3f5a4e;
}

.options {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.option {
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.95);
  transition: border-color 150ms ease, transform 120ms ease, box-shadow 150ms ease;
}

.option:hover {
  border-color: #93c7a8;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(87, 124, 102, 0.08);
}

.option label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  margin: 0;
  font-weight: 600;
}

.option input[type="radio"],
.option input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--primary);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hidden {
  display: none;
}

.message {
  min-height: 22px;
  margin-top: 14px;
  color: #a53737;
  font-weight: 600;
}

.score {
  margin-bottom: 16px;
  font-weight: 800;
  font-size: 1.02rem;
  color: #355546;
}

.result-card {
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.96);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 10px 20px rgba(68, 106, 84, 0.08);
}

.result-option {
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 10px;
  background: #f8fcf9;
  margin-bottom: 8px;
}

.result-option.user-correct {
  border-color: var(--ok);
  background: var(--ok-bg);
}

.result-option.user-wrong {
  border-color: var(--bad);
  background: var(--bad-bg);
}

.correct-info {
  margin-top: 10px;
  padding: 10px;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: var(--primary-soft);
}

.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pill.ok {
  color: var(--ok);
  background: var(--ok-bg);
}

.pill.bad {
  color: var(--bad);
  background: var(--bad-bg);
}

.option:nth-child(1) { animation: rise-in 220ms ease-out both; }
.option:nth-child(2) { animation: rise-in 290ms ease-out both; }
.option:nth-child(3) { animation: rise-in 360ms ease-out both; }
.option:nth-child(4) { animation: rise-in 430ms ease-out both; }
.option:nth-child(5) { animation: rise-in 500ms ease-out both; }
.option:nth-child(6) { animation: rise-in 570ms ease-out both; }
.option:nth-child(7) { animation: rise-in 640ms ease-out both; }
.option:nth-child(8) { animation: rise-in 710ms ease-out both; }
.option:nth-child(9) { animation: rise-in 780ms ease-out both; }
.option:nth-child(10) { animation: rise-in 850ms ease-out both; }

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 16px 12px 36px;
  }

  .card {
    border-radius: 18px;
    padding: 16px;
  }

  h1 {
    font-size: 1.65rem;
  }
}
