/* Processo n.º 100 — só o que o /assets/base.css do hub não traz. Tudo num ecrã, sem scroll.
   O painel finge ser um impresso oficial: serifas, linhas rectas e um carimbo por cima. */

#stage canvas { touch-action: manipulation; }
.stage-overlay .row { justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.stage-overlay .mini { font-size: var(--fs-2xs); }

.impresso { border-style: solid; }
.cabecalho {
  margin: 0; text-align: center;
  font: 700 clamp(15px, 2.6vmin, 19px)/1.2 Georgia, "Times New Roman", serif;
  letter-spacing: .02em; color: var(--ink);
}
.subcabecalho {
  margin: 2px 0 10px; text-align: center;
  font: 400 var(--fs-2xs)/1.3 Georgia, serif; color: var(--muted);
}

/* A barra do processo, com ar de impresso carimbado */
.barra {
  position: relative; height: 24px; overflow: hidden;
  border: 2px solid var(--ink); border-radius: 4px;
  background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(0, 0, 0, .04) 6px 12px);
}
.barra-cheia { height: 100%; width: 0; background: #1f6b52; transition: width .3s ease-out; }
.numeros {
  display: flex; justify-content: space-between; margin: 5px 0 8px;
  font: 700 var(--fs-2xs)/1 var(--font); color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.recado {
  margin: 0 0 10px; min-height: 2.6em;
  font: 600 var(--fs-xs)/1.35 var(--font); color: #9a3412;
}
.side .stats { grid-template-columns: 1fr 1fr; }
.acoes { margin-top: 10px; gap: 8px; }
.acoes .btn { flex: 1; }

/* Carimbos do fim */
.stage-overlay .big.deferido,
.stage-overlay .big.arquivado {
  display: inline-block; padding: 6px 18px; transform: rotate(-6deg);
  border: 4px double currentColor; border-radius: 6px;
  letter-spacing: .12em;
}
.stage-overlay .big.deferido { color: #1f6b52; }
.stage-overlay .big.arquivado { color: #9a3412; }

/* A verificação de segurança */
.captcha {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  width: min(230px, 56vmin); margin: 10px auto 6px;
}
.captcha .quadrado {
  aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 4px;
  cursor: pointer; padding: 0;
}
.captcha .quadrado:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.escolhas .btn { font-family: Georgia, serif; }

/* A Repartição comenta por cima do balcão */
.aviso {
  position: absolute; z-index: 3; left: 8px; right: 8px; top: 8px; margin: 0;
  padding: 7px 12px; border-radius: 4px; text-align: center;
  background: #fde68a; color: #1d2b2a;
  border: 2px solid #b45309; box-shadow: 0 3px 0 #b45309;
  font: 700 var(--fs-sm)/1.25 var(--font);
  pointer-events: none;
  animation: aviso-entra .22s ease-out;
}
@keyframes aviso-entra { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Balõezinhos por cima do carimbo */
.fx { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.fx .pop {
  position: absolute;
  transform: translate(-50%, -50%);
  font: 700 clamp(14px, 2.4vmin, 20px)/1 Georgia, serif;
  color: #1f6b52;
  text-shadow: 0 2px 0 #fff, 0 0 10px #fff;
  white-space: nowrap;
  animation: sobe 1s ease-out forwards;
}
.fx .pop.grande { font-size: clamp(17px, 3vmin, 24px); }
.fx .pop.mau { color: #9a3412; }
@keyframes sobe {
  0% { opacity: 0; transform: translate(-50%, -20%) scale(0.7); }
  22% { opacity: 1; transform: translate(-50%, -60%) scale(1.06); }
  100% { opacity: 0; transform: translate(-50%, -180%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .fx .pop { animation: none; opacity: 0; }
  .barra-cheia { transition: none; }
}

/* Telemóvel de pé: o balcão é largo, por isso aqui o painel fica POR BAIXO (ao contrário dos
   outros jogos, onde o campo é alto). */
@media (orientation: portrait) and (max-width: 900px) {
  .recado { min-height: 2.2em; font-size: var(--fs-2xs); }
  .subcabecalho { margin-bottom: 6px; }
  .acoes { margin-top: 6px; }
}

/* Telemóvel deitado: painel estreito ao lado */
@media (max-height: 560px) and (orientation: landscape) {
  .game-page .game-layout { grid-template-columns: minmax(0, 1fr) clamp(170px, 26vw, 250px); }
  .cabecalho { font-size: var(--fs-sm); }
  .subcabecalho { display: none; }
  .recado { min-height: 2.2em; font-size: var(--fs-2xs); }
  .acoes { margin-top: 6px; }
}
