/* Quem é esse dinossauro? (same stage as Quem é esse animal?, in Jurassic colors) The silhouette, painted in one color through the PNG used as a mask, over a burst of rays.
   At the end (.palco--revelado) it fades into the real photo. */
.palco {
  position: relative;
  aspect-ratio: 16 / 10;
  width: min(100%, 560px);
  margin: 0 auto;
  overflow: hidden;
  background: linear-gradient(115deg, #e8b931 0%, #4c9a3f 50%, #1f5f4a 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.palco__raios {
  position: absolute;
  left: 32%;
  top: 50%;
  width: 190%;
  aspect-ratio: 1;
  translate: -50% -50%;
  background:
    radial-gradient(circle, #fff 0 9%, rgba(255, 255, 255, 0.85) 14%, rgba(255, 216, 74, 0.55) 26%, transparent 46%),
    repeating-conic-gradient(from 0deg, rgba(255, 216, 74, 0.9) 0deg 4deg, transparent 4deg 9deg, rgba(255, 255, 255, 0.55) 9deg 11deg, transparent 11deg 17deg);
  mask-image: radial-gradient(circle, #000 18%, transparent 48%);
  animation: palco-gira 60s linear infinite;
}

.palco__silhueta {
  position: absolute;
  inset: 10% 30% 8% 4%;
  background: #3b2a12;
  mask: var(--silhueta) center / contain no-repeat;
  -webkit-mask: var(--silhueta) center / contain no-repeat;
  filter: drop-shadow(6px 6px 0 rgba(7, 6, 17, 0.35));
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.palco__pergunta {
  position: absolute;
  right: 9%;
  top: 50%;
  translate: 0 -50%;
  font: 800 clamp(64px, 20vw, 120px) / 1 var(--display);
  color: #ffd84a;
  -webkit-text-stroke: 4px #1f2a8c;
  paint-order: stroke;
  text-shadow: 4px 4px 0 rgba(7, 6, 17, 0.35);
  transition: opacity 0.5s ease;
}

.palco__foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1s ease 0.3s, transform 1.2s ease 0.3s;
}

.palco--revelado .palco__silhueta {
  opacity: 0;
  transform: scale(1.1);
}

.palco--revelado .palco__pergunta {
  opacity: 0;
}

.palco--revelado .palco__foto {
  opacity: 1;
  transform: none;
}

.palco .nota {
  position: relative;
  padding: 20px;
  text-align: center;
  color: #fff;
}

@keyframes palco-gira {
  to {
    rotate: 360deg;
  }
}

.chute {
  grid-template-columns: 1fr auto;
  padding-right: 8px;
}

/* The answer's card: locked lines that open as guesses share them. */
.ficha {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.ficha li {
  display: grid;
  padding: 7px 10px;
  font-size: 14px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 10px;
}

.ficha small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.ficha li.ficha--aberta {
  color: var(--text);
  font-weight: 600;
  background: rgba(47, 191, 113, 0.12);
  border: 1px solid var(--green);
  animation: quiz-pulo 0.45s ease;
}

.chute__comum {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.chute__comum .chip {
  min-width: 0;
  font-size: 12px;
}

/* The result on top of the revealed photo. */
.palco__resultado {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 2;
  margin: 0;
  padding: 8px 16px;
  max-width: calc(100% - 24px);
  font: 800 17px var(--display);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  translate: -50% 0;
  animation: quiz-pulo 0.6s ease 0.9s backwards;
}

.palco__resultado--certo {
  background: var(--green);
}

.palco__resultado--errado {
  background: var(--red);
}

.chute--errado .chute__nome {
  color: var(--soft);
}

/* A wrong guess: the name on top, what it shares with the answer underneath. */
.chute.chute--errado {
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 8px 12px;
}

.chute--errado .chute__comum {
  justify-content: flex-start;
}
