.game-page[data-engine="animalfieldstation"] .game-shell {
  background:
    linear-gradient(90deg, rgba(4, 18, 14, .96), rgba(4, 18, 14, .76) 50%, rgba(4, 18, 14, .94)),
    url("/assets/covers/animal-quiz.webp") center 43% / cover;
  border-color: #9c7339;
  box-shadow: 0 24px 60px rgba(1, 10, 7, .62), inset 0 0 0 1px rgba(205, 155, 78, .22);
}

.aq-game {
  --aq-pine: #0b241b;
  --aq-deep: #061610;
  --aq-paper: #ead5aa;
  --aq-paper-deep: #d0ae72;
  --aq-ink: #2d2519;
  --aq-copper: #b77a3a;
  --aq-brass: #d2ad64;
  --aq-moss: #5f873d;
  --aq-rust: #a64f32;
  --aq-aqua: #87e1dc;
  width: min(990px, 100%);
  margin: 0 auto;
  color: #f4e6c6;
  font-family: Georgia, "Times New Roman", serif;
}

.aq-title {
  margin: 0 0 12px;
  color: #f1dfb8;
  font-size: clamp(2rem, 5.7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: .035em;
  line-height: .94;
  text-align: center;
  text-shadow: 0 4px 22px rgba(0, 0, 0, .68);
  text-transform: uppercase;
}

.aq-station {
  position: relative;
  padding: 13px;
  border: 1px solid rgba(210, 173, 100, .76);
  background: rgba(6, 24, 17, .93);
  box-shadow: inset 0 0 0 3px rgba(183, 122, 58, .1), 0 16px 42px rgba(0, 0, 0, .48);
}

.aq-station::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--aq-rust), var(--aq-brass) calc(var(--time-ratio, 1) * 100%), var(--aq-moss) 0);
  content: "";
  transition: background .2s linear;
}

.aq-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 12px;
  border: 1px solid #8a6835;
  background: rgba(10, 40, 29, .97);
}

.aq-summary > span {
  min-width: 0;
  padding: 8px 7px 7px;
  border-right: 1px solid rgba(210, 173, 100, .3);
  text-align: center;
}

.aq-summary > span:last-child { border-right: 0; }
.aq-summary small,
.aq-summary strong { display: block; }

.aq-summary small {
  color: var(--aq-brass);
  font-family: Arial, sans-serif;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.aq-summary svg,
.aq-actions svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.aq-summary svg { margin-right: 4px; vertical-align: -3px; }

.aq-summary strong {
  margin-top: 3px;
  color: #f2e5c6;
  font-size: clamp(.98rem, 2vw, 1.35rem);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.aq-dossier {
  position: relative;
  display: grid;
  min-height: 184px;
  padding: 48px 135px 30px 46px;
  border: 2px solid #aa7b3f;
  background:
    radial-gradient(circle at 88% 23%, rgba(73, 94, 49, .15) 0 42px, transparent 43px),
    repeating-linear-gradient(0deg, rgba(71, 55, 30, .04) 0 1px, transparent 1px 5px),
    var(--aq-paper);
  box-shadow: inset 0 0 0 5px #dcc08a, 0 7px 16px rgba(0, 0, 0, .38);
  color: var(--aq-ink);
  place-items: center;
  text-align: center;
}

.aq-habitat {
  position: absolute;
  top: 18px;
  left: 46px;
  padding: 4px 8px;
  border: 2px solid #52713c;
  color: #46622f;
  font-family: Arial, sans-serif;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

.aq-clue {
  max-width: 720px;
  font-size: clamp(1.18rem, 2.65vw, 1.83rem);
  line-height: 1.29;
}

.aq-group {
  align-self: end;
  color: #6b5a37;
  font-family: Arial, sans-serif;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.aq-film {
  position: absolute;
  top: 50%;
  right: 20px;
  display: grid;
  grid-template-columns: repeat(3, 28px);
  gap: 5px;
  transform: translateY(-50%);
}

.aq-film small {
  grid-column: 1 / -1;
  color: #66522f;
  font-family: Arial, sans-serif;
  font-size: .5rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.aq-film span {
  position: relative;
  display: block;
  width: 28px;
  height: 22px;
  border: 2px solid #7e6940;
  opacity: .28;
}

.aq-film span::before {
  position: absolute;
  inset: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
}

.aq-film span::after {
  position: absolute;
  inset: -2px 2px;
  border-top: 2px dotted #7e6940;
  border-bottom: 2px dotted #7e6940;
  content: "";
}

.aq-film span.active {
  border-color: #3f6d44;
  color: #3f6d44;
  opacity: 1;
  transform: rotate(-2deg);
}

.aq-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.aq-choice {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  min-height: 76px;
  align-items: center;
  padding: 9px 13px;
  border: 2px solid #a9753d;
  border-radius: 1px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .02) 0 2px, transparent 2px 7px),
    #3c2718;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.045), 0 5px 0 #1d130e, 0 8px 16px rgba(0,0,0,.38);
  color: #f3dfb5;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}

.aq-choice:hover:not(:disabled) { transform: translateY(-2px); }

.aq-choice:focus-visible {
  outline: 4px solid var(--aq-aqua);
  outline-offset: 3px;
}

.aq-choice > span {
  width: 32px;
  padding: 5px 0;
  border: 1px solid rgba(243, 223, 181, .6);
  color: var(--aq-aqua);
  font-family: Arial, sans-serif;
  font-size: .8rem;
  font-weight: 900;
  text-align: center;
}

.aq-choice strong {
  min-width: 0;
  padding: 0 8px;
  font-size: clamp(1.02rem, 2.2vw, 1.47rem);
  letter-spacing: .02em;
  line-height: 1.08;
  text-transform: uppercase;
}

.aq-choice i {
  color: #c7a875;
  font-family: Arial, sans-serif;
  font-size: .54rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.aq-choice.correct {
  border-color: #80a953;
  background: #315a34;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.07), 0 0 0 4px rgba(95,135,61,.45), 0 5px 0 #19351d;
}

.aq-choice.wrong {
  border-color: #c46b4c;
  background: #713322;
  filter: saturate(.85);
}

.aq-choice.rejected {
  filter: saturate(.35) brightness(.62);
  opacity: .62;
}

.aq-progress {
  position: relative;
  display: flex;
  justify-content: space-between;
  max-width: 650px;
  margin: 18px auto 11px;
}

.aq-progress::before {
  position: absolute;
  top: 50%;
  right: 20px;
  left: 20px;
  height: 2px;
  border-top: 2px dashed #9f7d46;
  content: "";
}

.aq-progress span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 36px;
  height: 36px;
  border: 2px solid #9e783d;
  border-radius: 50%;
  background: #0c2d20;
  color: #dbbd7e;
  font-family: Arial, sans-serif;
  font-size: .78rem;
  font-weight: 900;
  place-items: center;
}

.aq-progress span.active {
  border-color: var(--aq-aqua);
  box-shadow: 0 0 0 5px rgba(135,225,220,.13);
  color: var(--aq-aqua);
  animation: aq-pulse 1.8s ease-in-out infinite;
}

.aq-progress span.done {
  border-color: #84aa57;
  background: #426a38;
  color: transparent;
}

.aq-progress span.done::after {
  color: #f2ead8;
  content: "✓";
}

.aq-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.aq-actions button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid #906732;
  border-radius: 0;
  background: #294329;
  color: #f0dcae;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.aq-actions button:last-child { background: #753a27; }
.aq-actions button:hover:not(:disabled) { filter: brightness(1.14); }
.aq-actions button:focus-visible { outline: 3px solid var(--aq-aqua); outline-offset: 2px; }
.aq-actions button:disabled { cursor: default; opacity: .42; }

.aq-note {
  min-height: 1.35em;
  margin: 12px auto 0;
  color: #e5d2aa;
  font-size: .8rem;
  line-height: 1.45;
  text-align: center;
}

.aq-prompt {
  margin: 7px 0 0;
  color: #9dc8ba;
  font-family: Arial, sans-serif;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .065em;
  text-align: center;
  text-transform: uppercase;
}

.aq-game.paused .aq-dossier,
.aq-game.paused .aq-choices { filter: saturate(.45) brightness(.68); }

.aq-game.complete .aq-station {
  box-shadow: inset 0 0 0 3px rgba(95,135,61,.26), 0 0 38px rgba(95,135,61,.2);
}

@keyframes aq-pulse {
  50% { box-shadow: 0 0 0 8px rgba(135,225,220,.04); }
}

@media (max-width: 680px) {
  .aq-title { margin-bottom: 10px; }
  .aq-station { padding: 9px; }
  .aq-summary > span { padding: 7px 2px 6px; }
  .aq-summary small { font-size: .49rem; letter-spacing: .065em; }
  .aq-summary svg { display: none; }
  .aq-summary strong { font-size: .88rem; }
  .aq-dossier { min-height: 168px; padding: 46px 18px 58px; }
  .aq-habitat { left: 18px; }
  .aq-clue { font-size: clamp(1.05rem, 4.8vw, 1.35rem); }
  .aq-group { font-size: .57rem; }
  .aq-film {
    top: auto;
    right: 50%;
    bottom: 13px;
    grid-template-columns: auto repeat(3, 27px);
    align-items: center;
    transform: translateX(50%);
  }
  .aq-film small { grid-column: auto; margin-right: 3px; }
  .aq-choice { min-height: 64px; }
  .aq-choice strong { font-size: 1.08rem; }
  .aq-note { font-size: .73rem; }
  .aq-prompt { font-size: .55rem; line-height: 1.4; }
}

@media (max-width: 520px) {
  .aq-title { font-size: 2.02rem; }
  .aq-choices { grid-template-columns: 1fr; gap: 9px; }
  .aq-choice { min-height: 54px; grid-template-columns: 36px 1fr auto; padding: 7px 10px; }
  .aq-choice > span { width: 29px; }
  .aq-progress { margin-top: 15px; }
  .aq-progress span { width: 31px; height: 31px; }
  .aq-actions { grid-template-columns: 1fr 1fr; }
  .aq-actions button { min-height: 46px; padding-inline: 6px; font-size: .66rem; letter-spacing: .035em; }
}

@media (prefers-reduced-motion: reduce) {
  .aq-choice { transition: none; }
  .aq-progress span.active { animation: none; }
}
