/* Guess the animal: a big silhouette card beside the hints, the choices in a row underneath. The silhouette is the
   animal's emoji with brightness(0); answering lifts the filter and the animal bounces in full colour. */
.ga-main {
  --ga-sky: #dff0f2; --ga-sun: #f3d36b; --ga-grass: #cfe3b4;
  --ga-a: #2a8c9a; --ga-b: #e08a2c; --ga-c: #b5649a; --ga-d: #5b8a3c;
  --emoji: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  justify-content: stretch; gap: clamp(8px, 1.6vh, 18px);
}
.ga-main [hidden] { display: none !important; }

.ga-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1400px, 100%); flex-wrap: wrap; }
.ga-dots { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ga-dots li { width: 18px; height: 18px; border-radius: 50%; background: var(--sand-deep); transition: transform 0.2s, background-color 0.2s; }
.ga-dots li.is-now { background: var(--sea); transform: scale(1.25); }
.ga-dots li.is-right { background: var(--good); }
.ga-dots li.is-wrong { background: var(--bad); }

/* ---------- silhouette + hints ---------- */
.ga-body {
  flex: 1; min-height: 0; width: min(1400px, 100%);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(14px, 2.5vw, 36px); align-items: stretch;
}
.ga-stage {
  position: relative; min-height: 0; overflow: hidden; border-radius: 32px;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 84% 18%, var(--ga-sun) 0 7%, rgba(243,211,107,0.35) 7.5% 11%, transparent 11.5%),
    linear-gradient(to bottom, var(--ga-sky) 0 72%, var(--ga-grass) 72% 100%);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,0.6), 0 10px 30px rgba(22,44,51,0.10);
  container-type: size;
}
.ga-animal {
  font-family: var(--emoji); font-size: min(70cqh, 60cqw); line-height: 1;
  filter: brightness(0);
  transition: filter 0.45s ease;
}
.ga-stage.is-revealed .ga-animal { filter: none; animation: ga-bounce 0.7s cubic-bezier(.3,1.6,.5,1); }
@keyframes ga-bounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.12) translateY(-6%); }
  55% { transform: scale(0.96) translateY(0); }
  75% { transform: scale(1.03) translateY(-2%); }
  100% { transform: none; }
}
.ga-name {
  position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%);
  padding: 0.15em 0.8em; border-radius: 999px; background: rgba(255,255,255,0.88); color: var(--sea-deep);
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 5vh, 3.2rem); white-space: nowrap;
}
.ga-name:empty { display: none; }

.ga-side { min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: clamp(10px, 2vh, 22px); }
.ga-message { font-size: clamp(1.5rem, 3.6vh, 2.3rem); text-align: left; margin: 0; min-height: 1.3em; line-height: 1.15; }
.ga-hints { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ga-hints li {
  position: relative; padding: 0.55em 0.9em 0.55em 2.4em; border-radius: 16px;
  background: #fff6dc; font-size: clamp(1.15rem, 2.6vh, 1.55rem); line-height: 1.2;
  animation: ga-in 0.3s ease-out;
}
.ga-hints li::before { content: "💡"; position: absolute; left: 0.6em; top: 0.5em; font-family: var(--emoji); }
@keyframes ga-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ga-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ga-hint { background: #fff6dc; box-shadow: inset 0 0 0 2px var(--ga-sun); font-size: 1.15rem; }
.ga-hint:disabled { opacity: 0.5; cursor: default; }
.ga-next { min-height: 76px; padding: 0 2em; font-size: 1.35rem; }

/* ---------- choices ---------- */
.ga-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); width: min(1400px, 100%); }
.ga-choices[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ga-choice {
  --c: var(--ga-a);
  position: relative; display: flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: max(var(--tap), clamp(76px, 12vh, 120px)); padding: 0.3em 0.8em 0.3em 2.6em;
  border: 3px solid transparent; border-radius: 22px; cursor: pointer; touch-action: manipulation;
  background: #fff; box-shadow: 0 5px 0 color-mix(in srgb, var(--c) 45%, transparent), 0 6px 18px rgba(22,44,51,0.07);
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 4.4vh, 2.8rem); line-height: 1; color: var(--ink);
  transition: background-color 0.2s, opacity 0.2s, transform 0.1s;
}
.ga-choice[data-key="B"] { --c: var(--ga-b); }
.ga-choice[data-key="C"] { --c: var(--ga-c); }
.ga-choice[data-key="D"] { --c: var(--ga-d); }
.ga-key {
  position: absolute; left: 0.5em; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 12px;
  background: var(--c); color: #fff; font-family: var(--sans); font-size: 1rem; font-weight: 600;
}
.ga-pic { font-family: var(--emoji); font-size: 1.25em; line-height: 1; }
.ga-choices.has-pictures .ga-choice { min-height: max(var(--tap), clamp(90px, 15vh, 150px)); font-size: clamp(1.9rem, 5vh, 3.2rem); }
.ga-choice:hover { border-color: var(--c); }
.ga-choice:active { transform: translateY(3px); }
.ga-choice[aria-disabled="true"] { cursor: default; }
.ga-choice[aria-disabled="true"]:hover { border-color: transparent; }
.ga-choice.is-right { background: #e3f1e8; border-color: var(--good); }
.ga-choice.is-right .ga-key { background: var(--good); }
.ga-choice.is-wrong { background: #f6e1dd; border-color: var(--bad); }
.ga-choice.is-wrong .ga-key { background: var(--bad); }
.ga-choice.is-dim { opacity: 0.4; }
.ga-choice.is-pop { animation: ga-pop 0.4s ease-out; }
@keyframes ga-pop { 40% { transform: scale(1.05); } }

@media (prefers-reduced-motion: reduce) {
  .ga-animal, .ga-choice, .ga-dots li { transition: none; }
  .ga-stage.is-revealed .ga-animal, .ga-choice.is-pop, .ga-hints li { animation: none; }
}
