/* Post-its, quadro digital e medalhas (camadas 2 e 4). */
.postits-camada {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 72px 16px 16px; overflow: auto;
}
.postits-foco {
  display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 22px;
  width: min(100%, 660px);
}
.postit {
  padding: 18px 18px 22px; min-height: 170px;
  color: var(--texto);
  border: 2px solid var(--texto);
  box-shadow: 4px 6px 0 rgba(0, 0, 0, .35);
  transform: rotate(var(--giro, 0deg));
  user-select: text; -webkit-user-select: text;
  animation: postit-entra .45s ease-out both;
}
.postit:nth-child(2) { animation-delay: .06s; }
.postit:nth-child(3) { animation-delay: .12s; }
.postit:nth-child(4) { animation-delay: .18s; }
@keyframes postit-entra { from { opacity: 0; transform: translateY(18px) rotate(var(--giro, 0deg)); } }
.postit h2 { margin: 0 0 6px; font-size: 19px; }
.postit p { margin: 0; font-size: 17px; }
.postits-nota { margin: 0; padding: 4px 12px; border-radius: 999px; background: rgba(250, 247, 240, .92); color: var(--texto-2); font-size: 14px; }
@media (max-width: 560px) {
  .postits-foco { grid-template-columns: 1fr; gap: 14px; }
  .postit { min-height: 0; padding: 14px; }
}

.quadro {
  position: relative; overflow: hidden; background: #111; color: #fff;
  user-select: none; -webkit-user-select: none; touch-action: none;
}
.quadro-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quadro-vazio { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, #1f2933, #374151); font-size: 64px; font-weight: 800; color: rgba(255, 255, 255, .5); }
.quadro-ano { position: absolute; right: 18px; top: 14px; padding: 2px 14px; border-radius: 999px; background: rgba(0, 0, 0, .55); font-size: 34px; font-weight: 800; }
.quadro-seta {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 84px; height: 84px; border-radius: 50%; border: 3px solid #fff; background: rgba(0, 0, 0, .45); color: #fff;
  font-size: 56px; line-height: 1; cursor: pointer; display: none;
}
.tela-slot.interativa .quadro-seta { display: grid; place-items: center; }
.quadro-ant { left: 16px; }
.quadro-prox { right: 16px; }
.quadro.apagado::after { content: ""; position: absolute; inset: 0; background: #000; }
.quadro-legenda {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; align-items: baseline;
  max-width: min(94vw, 720px); padding: 10px 18px; border-radius: 14px;
  background: var(--papel); border: 2px solid var(--texto); box-shadow: var(--sombra);
}
.quadro-legenda strong { font-size: 20px; }
.quadro-credito, .quadro-contagem { color: var(--texto-2); font-size: 15px; }

.medalha-painel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(94vw, 880px); max-height: calc(100% - 84px); margin-top: 22px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px;
  padding: 16px; border-radius: 18px;
  background: rgba(250, 247, 240, .96); border: 2px solid var(--texto); box-shadow: var(--sombra);
}
.medalha-visual { display: flex; flex-direction: column; min-height: 0; }
.medalha-palco {
  position: relative; flex: 1; min-height: 300px; display: grid; place-items: center;
  border-radius: 12px; background: radial-gradient(circle at 50% 40%, #fff 0%, #e8e2d4 70%);
  touch-action: none; cursor: grab; overflow: hidden;
}
.medalha-palco:active { cursor: grabbing; }
.medalha-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.medalha-2d { border-radius: 50%; max-width: 100%; }
.medalha-dica { margin: 8px 0 0; text-align: center; color: var(--texto-2); font-size: 15px; }
.medalha-lado { display: flex; flex-direction: column; gap: 12px; overflow: auto; }
.medalha-info { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: baseline; }
.medalha-info dt { color: var(--texto-2); font-size: 14px; }
.medalha-info dd { margin: 0; font-weight: 700; font-size: 18px; }
.medalha-seletor { display: flex; flex-wrap: wrap; gap: 8px; }
.medalha-opcao {
  width: 52px; height: 52px; padding: 0; border-radius: 50%; border: 2px solid var(--texto); background: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.medalha-opcao[aria-pressed="true"] { outline: 3px solid var(--destaque); outline-offset: 2px; }
.medalha-bolinha { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .5); box-shadow: 0 -6px 0 -2px var(--fita) inset; }
.metal-ouro .medalha-bolinha { background: radial-gradient(circle at 35% 35%, #fff3b0, #e9b949 55%, #a8761a); }
.metal-prata .medalha-bolinha { background: radial-gradient(circle at 35% 35%, #fff, #c9ced6 55%, #7d8590); }
.metal-bronze .medalha-bolinha { background: radial-gradient(circle at 35% 35%, #f8d2b0, #c27c3a 55%, #7a4519); }
.medalha-nota { margin: 0; color: var(--texto-2); font-size: 14px; }

@media (max-width: 700px), (max-height: 520px) {
  .medalha-painel { grid-template-columns: 1fr; overflow: auto; }
  .medalha-palco { min-height: 220px; }
}
@media (max-height: 520px) and (min-width: 600px) {
  .medalha-painel { grid-template-columns: 1fr 1fr; margin-top: 0; max-height: calc(100% - 24px); top: 50%; }
  .medalha-palco { min-height: 0; }
}
