.game { padding: 38px 0 70px; animation: rise-in .4s both; }
.game.reveal-answer { animation: none; }
.task-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; }
.task-heading h1 { font-size: 34px; font-weight: 400; letter-spacing: -.025em; outline: none; }
#task-title, #feedback-focus { scroll-margin-top: 24px; }
.task-counter { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.task-counter strong { font-size: 26px; font-weight: 400; color: var(--green); }
.progress-track { width: 120px; height: 4px; background: var(--line); border-radius: 10px; overflow: hidden; }
.progress-track span { display: block; height: 100%; background: var(--green); border-radius: 10px; }
.task-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 34px; align-items: start; }
.story-card { overflow: hidden; border: 1px solid #dce4d7c0; border-radius: 25px; background: var(--paper); box-shadow: var(--shadow); }
.story-image { padding: 9px 9px 0; }
.story-image img { width: 100%; border-radius: 17px; object-fit: contain; }
.story-image img.square { max-height: 380px; background: #f5efe5; }
.story-content { padding: 27px 32px 32px; }
.story-intro { font-size: 16px; line-height: 1.7; color: var(--muted); margin-bottom: 24px; }
.story-intro p + p { margin-top: 12px; }
.verse { border-left: 2px solid #e6c684; padding-left: 22px; font-size: 20px; line-height: 1.65; letter-spacing: -.01em; }
.verse p { min-height: 1.65em; }
.question-area { padding: 5px 0; }
.question { font-size: 24px; line-height: 1.5; letter-spacing: -.012em; font-weight: 400; margin-bottom: 25px; }
.answers { display: grid; gap: 13px; }
.answer {
  width: 100%; display: flex; gap: 16px; align-items: center; padding: 19px 20px;
  border: 1px solid #d8e0d2; border-radius: 18px; background: var(--paper);
  color: var(--ink); text-align: left; font-size: 18px; line-height: 1.55;
  box-shadow: 0 3px 10px #23443003;
  transition: border-color .22s, background .22s, transform .22s, box-shadow .22s;
}
@media (hover: hover) {
  .answer:not(:disabled):hover { border-color: #c5ad73; background: #fffdf4; transform: translateY(-2px); box-shadow: 0 8px 22px #2344300c; }
  .answer:not(:disabled):hover .answer-number { background: var(--button-bg); border-color: #e8d5ab; color: var(--button-ink); }
}
.answer-number {
  display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0;
  background: #f4f4e9; border: 1px solid #e4e7d8; border-radius: 50%;
  font-size: 14px; color: #70826b; transition: background .2s, color .2s;
}
.answer-text { flex: 1; min-width: 0; }
.answer.correct { background: #eaf2de; border-color: #87a76c; animation: answer-in .35s both; }
.answer.correct .answer-number { color: var(--green); background: #dceac6; border-color: #c4d5a9; }
.answer.wrong { background: #fcf0ec; border-color: #d4a098; }
.answer.wrong .answer-number { background: #f1d9d1; border-color: #e5c2b8; color: var(--red); }
.answer.picked { box-shadow: inset 0 0 0 1px currentColor; }
.answer.picked.correct { color: #25492f; }
.answer.picked.wrong { color: #8b4139; }
.answer-mark { width: 21px; color: inherit; flex-shrink: 0; }
.answer[disabled]:not(.correct):not(.wrong) { color: #768176; background: #f4f6ef; }
.feedback {
  margin-top: 36px; background: var(--paper); border: 1px solid var(--line);
  border-top: 3px solid #e6c684; border-radius: 25px; box-shadow: var(--shadow);
  padding: 34px 42px 38px; animation: rise-in .4s both;
}
.feedback-heading { display: flex; align-items: flex-start; gap: 18px; padding-bottom: 24px; border-bottom: 1px solid var(--line); outline: none; }
.feedback-symbol { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--button-bg); color: var(--button-ink); }
.feedback-heading h2 { font-size: 25px; line-height: 1.5; letter-spacing: -.015em; font-weight: 400; }
.feedback-body { font-size: 18px; line-height: 1.85; max-width: 890px; margin-top: 26px; color: #49584d; }
.feedback-body p + p { margin-top: 20px; }
.feedback-body strong { color: var(--ink); font-weight: 700; }
.feedback-body .reference { font-size: 15px; line-height: 1.7; color: var(--muted); padding-top: 18px; border-top: 1px solid var(--line); }
.feedback-body .reference + .reference { margin-top: 12px; padding-top: 0; border-top: 0; }
.next-row { display: flex; justify-content: flex-end; margin-top: 30px; }
.next-row .primary { min-width: 230px; padding: 18px 24px; }

.results {
  margin-top: 32px; padding: 32px 40px 36px;
  background: linear-gradient(130deg, #faf7e7, #eef3e3);
  border: 1px solid #dedfc5; border-radius: 25px;
  box-shadow: var(--shadow); animation: rise-in .45s both;
}
.results-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.results h2 { font-size: 28px; letter-spacing: -.025em; font-weight: 400; }
.score {
  position: relative; isolation: isolate; display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 3px; color: var(--green);
  width: 132px; height: 132px; flex-shrink: 0; border-radius: 50%;
  background: conic-gradient(var(--green) var(--score-angle), #dce5cf 0);
  font-size: 48px; font-weight: 400; letter-spacing: -.045em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.score::before { content: ""; position: absolute; z-index: -1; inset: 5px; border-radius: inherit; background: #fafbf3; }
.score svg { width: 22px; height: 22px; margin-bottom: 2px; }
.score small { font-size: 23px; color: #7c9272; letter-spacing: 0; }
.review-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 11px; }
.review-button {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  border: 1px solid #d4dec9; border-radius: 15px; background: var(--paper);
  padding: 19px 6px; color: var(--ink); font-size: 14px; line-height: 1.3;
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.review-button:hover { transform: translateY(-3px); border-color: #86a68c; box-shadow: 0 7px 18px #2344300b; }
.review-button[aria-pressed=true] { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.review-button svg { width: 21px; height: 21px; color: var(--green); }
.review-button.incorrect svg { color: var(--red); }
.results .primary { margin-top: 26px; width: min(100%, 300px); font-size: 20px; }
.game.review-mode .results { margin-top: 0; margin-bottom: 32px; }
.review-mode .task-heading { margin-top: 32px; }

