/* ==========================================================================
   TRES4 — prévia da foto 3x4. Usa os tokens de base.css.
   ========================================================================== */
.t34 { display: grid; gap: 22px clamp(28px, 4vw, 56px); grid-template-columns: minmax(0, 420px) minmax(0, 1fr); grid-template-areas: "frame start" "frame side" "frame ."; align-items: start; }
.t34__start { grid-area: start; display: grid; gap: 14px; }
.t34__frame { grid-area: frame; }
.t34 > .t34__side { grid-area: side; }
@media (max-width: 860px) {
  .t34 { grid-template-columns: minmax(0, 1fr); grid-template-areas: "start" "frame" "side"; }
  /* quadro, "Tirar foto" e o controle cabem juntos na tela, mesmo no navegador de dentro de outro app (barra no topo) */
  .t34__stage { width: min(100%, max(210px, calc((100svh - 400px) * 0.75))); margin-inline: auto; }
  .t34__zoom { max-width: calc(100% - 84px); } /* a ponta do controle não fica embaixo do botão do WhatsApp */
}

.t34__aviso { max-width: 44ch; margin-bottom: clamp(28px, 4vw, 48px); --r: -1deg; }
.t34__aviso b { font-size: 19px; }

.t34__frame { scroll-margin-top: 22px; padding: 12px 12px 14px; background: var(--cream); border: 2.5px solid var(--ink); box-shadow: var(--sh); rotate: -1deg; }
.t34__stage { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #FFFFFF; border: 2px solid var(--ink); touch-action: none; cursor: grab; }
.t34__stage:active { cursor: grabbing; }
.t34__stage:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.t34__stage canvas, .t34__stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t34__stage video { scale: -1 1; object-fit: contain; }
.t34__guide { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.t34__guide ellipse, .t34__guide line { fill: none; stroke: var(--amarelo); stroke-width: 3; stroke-dasharray: 10 8; filter: drop-shadow(0 0 1px var(--ink)); }
.t34__empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; font-weight: 650; color: var(--ink); }
.t34__cap { margin-top: 10px; font-size: 15px; font-weight: 650; text-align: center; }

.t34__side { display: grid; gap: 22px; align-content: start; }
.t34__row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.t34__file { position: relative; }
.t34__file input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.t34__file:focus-within { translate: -2px -2px; box-shadow: 6px 6px 0 var(--ink); background: var(--amarelo); outline: 3px solid var(--ink); outline-offset: 3px; }
.t34__zoom { display: grid; gap: 8px; max-width: 360px; font-weight: 700; }
.t34__zoom input { width: 100%; min-height: 44px; accent-color: var(--azul); }
.t34__tip { font-size: 16px; max-width: 44ch; }
.t34__err, .t34__falta { padding: 12px 16px; background: #FFF3A6; border: 2.5px solid var(--ink); font-weight: 650; max-width: 44ch; }
.t34 .pill:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; transform: none; }
.t34__done { display: grid; gap: 14px; padding-top: 8px; border-top: 2px dashed var(--ink); }
.t34 [hidden] { display: none !important; }
