/* Layout: a night flight seen through a fixed 3D scene; the text sits on the scene and the documents (map, inventory,
   printout) are physical sheets laid over it. Left aligned, big stencil type, no cards. Deliberately one dark theme. */

/* Served from this site, latin subset, weights in use only. All under the SIL Open Font License, from Google Fonts. */
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url("fonts/barlow-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Stencil"; font-weight: 800 900; font-display: swap; src: url("fonts/big-shoulders-stencil.woff2") format("woff2"); }
@font-face { font-family: "Caveat Brush"; font-weight: 400; font-display: swap; src: url("fonts/caveat-brush-400.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-weight: 400; font-display: swap; src: url("fonts/courier-prime-400.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-weight: 700; font-display: swap; src: url("fonts/courier-prime-700.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --noite: #141d27;
  --noite-funda: #0c131b;
  --holofote: #f3e3b8;
  --neblina: #a7b4ba;
  --manila: #d6c49b;
  --manila-escura: #b7a377;
  --tinta: #26231c;
  --giz: #c23022;
  --oliva: #5a6240;
  --papel-verde: #dfe6d2;
  --papel: #ece8da;
  --stencil: "Big Shoulders Stencil", "Big Shoulders Stencil Display", Impact, "Arial Narrow", sans-serif;
  --texto: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;
  --estreita: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --maquina: "Courier Prime", "Courier New", Courier, monospace;
  --pincel: "Caveat Brush", "Segoe Print", "Comic Sans MS", cursive;
  --lateral: clamp(16px, 5vw, 88px);
  --poster: url("poster.jpg");
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--noite);
  color: var(--holofote);
  font-family: var(--texto);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* no paragraph ends on a word alone: app.js keeps the last three words together, this evens out the rest */
p, dt, dd, li { text-wrap: pretty; }
.ordens dd, .secao-titulo, .fim-frase, .fala-forte, .chamada, .carta-legenda p, .legenda-itens li, .botao span, .formulario-rodape, .manifesto-saida, .manifesto li span:first-child { text-wrap: balance; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
a, button { color: inherit; font: inherit; }
:focus-visible { outline: 3px solid var(--holofote); outline-offset: 3px; }

/* the fixed scene and what sits on top of it. The poster lies under the canvas, which only shows up after its first
   finished frame: an opaque WebGL canvas would paint black over the poster during the wait */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0;
  background: var(--noite-funda) center / cover no-repeat;
  background-image: var(--poster, none);
}
#cena { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; opacity: 0; transition: opacity .8s ease; }
#cena[data-pronto] { opacity: 1; }
.grao {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .13; mix-blend-mode: overlay;
  background-image: var(--ruido, none); background-size: 220px 220px;
}
.moldura {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 60% 42%, transparent 52%, rgba(6, 10, 15, .62) 100%),
    linear-gradient(180deg, rgba(6, 10, 15, .42) 0, transparent 16%);
}
main { position: relative; z-index: 2; }

.atalho {
  position: fixed; z-index: 4; font-family: var(--estreita); font-weight: 600; font-size: 17px; text-decoration: none;
  top: calc(16px + env(safe-area-inset-top, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  padding: 8px 14px; color: var(--noite-funda); background: var(--holofote);
  transform: translateY(-160%); transition: transform .3s ease;
}
.atalho.visivel { transform: none; }
.atalho.visivel.na-lista { transform: translateY(-160%); }
.radio {
  position: fixed; z-index: 4; display: grid; gap: 0; width: fit-content; max-width: min(320px, calc(100vw - 32px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: max(16px, env(safe-area-inset-left, 0px));
  border: 1px solid rgba(243, 227, 184, .38); background: rgba(12, 19, 27, .84);
  font-family: var(--estreita); color: var(--holofote);
}
.radio-botao {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer; padding: 7px 12px 7px 10px; border: 0; background: transparent;
  font-family: var(--estreita); font-weight: 500; font-size: 16px; color: var(--holofote); text-align: left;
}
.radio-luz { width: 8px; height: 8px; border-radius: 50%; background: #5d6a70; flex: none; }
.radio.sinal .radio-luz { background: #e0a93f; animation: sinal 1.4s steps(2, jump-none) infinite; }
.radio-botao[aria-pressed="true"] .radio-luz { background: #e8583f; box-shadow: 0 0 9px #e8583f; animation: none; }
@keyframes sinal { from { opacity: 1; } to { opacity: .25; } }
.radio-visor { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 6px 10px; align-items: center; padding: 0 10px 9px; width: 300px; max-width: 100%; }
#radio-onda { width: 88px; height: 22px; display: block; background: rgba(0, 0, 0, .42); }
.radio-dados p { margin: 0; line-height: 1.1; }
.radio-freq { font-family: var(--maquina); font-size: 14px; font-variant-numeric: tabular-nums; }
.radio-status { font-size: 14px; font-weight: 600; color: var(--neblina); }
.radio.alerta .radio-status { color: #ff8a70; }
.radio-fala { grid-column: 1 / -1; margin: 0; min-height: 1.25em; font-family: var(--maquina); font-size: 13.5px; line-height: 1.25; color: var(--holofote); }
.grao.interferencia { opacity: .34; }

/* opening */
.abertura {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(20px, 3vw, 40px);
  padding-block: clamp(40px, 8svh, 90px) clamp(70px, 8vw, 96px);
  padding-left: max(var(--lateral), env(safe-area-inset-left, 0px));
  padding-right: max(var(--lateral), env(safe-area-inset-right, 0px));
}
.titulo {
  margin: 0; font-family: var(--stencil); font-weight: 900; text-transform: uppercase;
  font-size: clamp(min(17.5vw, 64px), min(13.6vw, 24svh), 250px); line-height: 1.02; letter-spacing: .002em; color: var(--holofote);
  text-shadow: 0 2px 34px rgba(8, 13, 19, .7);
}
.titulo span { display: block; }
.abertura-base {
  display: grid; grid-template-columns: minmax(0, 34ch) minmax(max-content, 1fr) max-content; gap: 24px clamp(24px, 4vw, 64px); align-items: end;
}
.abertura-frase { margin: 0; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.38; font-weight: 500; text-shadow: 0 1px 14px rgba(8, 13, 19, .85); }
.fatos { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 8px 34px; }
.fatos > div:first-child { grid-column: 1 / -1; }
.fatos dt { font-family: var(--estreita); font-size: 15px; color: var(--neblina); }
.fatos dd { margin: 0; font-family: var(--estreita); font-weight: 600; font-size: 20px; line-height: 1.15; }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 52px; padding: 11px 22px; cursor: pointer;
  border: 0; border-radius: 0; text-decoration: none; font-family: var(--estreita); font-weight: 700; font-size: 21px; line-height: 1.1;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.botao svg { width: 25px; height: 25px; fill: currentColor; flex: none; }
.botao-discord { background: var(--holofote); color: var(--noite-funda); }
.botao-discord:hover { background: #fff5d6; transform: translateY(-1px); }
.botao-discord[aria-disabled="true"] { background: #6d7477; color: #1c2329; cursor: not-allowed; transform: none; }
.botao-radio { background: transparent; color: var(--holofote); box-shadow: inset 0 0 0 1.5px rgba(243, 227, 184, .55); }
.botao-radio:hover { box-shadow: inset 0 0 0 1.5px var(--holofote); }
.botao-sair { background: transparent; color: var(--neblina); box-shadow: inset 0 0 0 1.5px rgba(167, 180, 186, .5); font-size: 18px; min-height: 44px; }
.botao-sair:hover { color: var(--holofote); }

/* the broadcast: one voice, far apart, so the flight happens between the sentences */
.transmissao {
  display: grid; gap: clamp(150px, 34vh, 340px);
  padding-block: clamp(90px, 22vh, 220px) clamp(140px, 28vh, 280px);
  padding-left: max(var(--lateral), env(safe-area-inset-left, 0px));
  padding-right: max(var(--lateral), env(safe-area-inset-right, 0px));
}
.transmissao { background: linear-gradient(90deg, rgba(7, 11, 16, .74) 0, rgba(7, 11, 16, .5) 42%, transparent 70%); }
.fala {
  margin: 0; max-width: 25em; font-weight: 500; font-size: clamp(23px, 2.75vw, 40px); line-height: 1.26;
  text-shadow: 0 1px 2px rgba(6, 10, 15, .9), 0 2px 30px rgba(6, 10, 15, .95);
}
.fala-forte { font-family: var(--stencil); font-weight: 800; font-size: clamp(38px, 6.2vw, 92px); line-height: 1.02; max-width: 15em; text-transform: uppercase; }

/* situation map: sheet of paper, red grease pencil */
.carta { height: 230vh; }
.carta-fixa {
  position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center;
  padding-block: 18px 60px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.carta-folha {
  position: relative; margin: 0; display: flex; flex-direction: column; container-type: inline-size; color: var(--tinta); background-color: var(--manila);
  width: min(100%, calc((100svh - 150px) * 1.116)); padding: 12px 16px 10px; transform: rotate(-.7deg);
  box-shadow: 0 30px 70px rgba(3, 6, 10, .7), 0 1px 0 rgba(255, 255, 255, .25) inset;
  background-image:
    linear-gradient(90deg, transparent 49.9%, rgba(60, 45, 20, .16) 50%, rgba(255, 245, 215, .14) 50.15%, transparent 50.35%),
    linear-gradient(180deg, transparent 49.8%, rgba(60, 45, 20, .13) 50%, rgba(255, 245, 215, .12) 50.2%, transparent 50.4%),
    radial-gradient(120% 120% at 50% 50%, transparent 62%, rgba(90, 70, 35, .2) 100%);
}
.carta-topo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 18px; padding-bottom: 6px; }
.carta-topo h2 { margin: 0; font-family: var(--stencil); font-weight: 800; font-size: clamp(22px, 4.2cqw, 36px); line-height: 1; text-transform: uppercase; }
.carta-topo p { margin: 0; font-family: var(--maquina); font-size: 14px; }
.carta-mapa { position: relative; width: 100%; aspect-ratio: 16400 / 14700; }
#mapa-tinta, #mapa-giz { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.carta-rodape { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-top: 7px; font-family: var(--maquina); font-size: 13.5px; line-height: 1.28; }
.carta-rodape p { margin: 0; }
.carta-escala { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.escala-barra { display: inline-block; height: 6px; border: 1.5px solid var(--tinta); background: linear-gradient(90deg, var(--tinta) 50%, transparent 50%); }
#mapa-giz text { paint-order: stroke; stroke: var(--manila); stroke-linejoin: round; }
#mapa-giz .cidade { font-family: var(--estreita); font-weight: 700; fill: var(--tinta); }
#mapa-giz .nota { font-family: var(--pincel); fill: var(--giz); }
#mapa-giz path { fill: none; stroke: var(--giz); stroke-linecap: round; stroke-linejoin: round; }
#mapa-giz .ponto { fill: var(--tinta); stroke: var(--manila); }
.carta-legenda {
  position: absolute; left: 3%; top: 9%; width: 38%; display: grid; gap: 6px; font-family: var(--maquina); font-size: clamp(11.5px, 1.5cqw, 15.5px); line-height: 1.26;
}
.carta-legenda p { margin: 0; }
.carta-legenda .chamada { font-family: var(--estreita); font-weight: 700; font-size: clamp(16px, 2.6cqw, 27px); line-height: 1.08; }
.legenda-itens { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.legenda-itens li { display: flex; align-items: center; gap: 8px; }
.legenda-itens i { width: 20px; height: 12px; flex: none; }
.leg-selado { background: linear-gradient(45deg, transparent 44%, var(--giz) 44% 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, var(--giz) 44% 56%, transparent 56%); }
.leg-cidade { background: radial-gradient(circle, var(--tinta) 0 4px, transparent 4.5px); }
.leg-estrada { background: linear-gradient(180deg, transparent 40%, var(--tinta) 40% 60%, transparent 60%); }
.leg-rio { background: #8aa2af; }

/* titles and running text */
.secao-titulo {
  margin: 0; font-family: var(--stencil); font-weight: 800; text-transform: uppercase;
  font-size: clamp(52px, 8.6vw, 148px); line-height: .96; text-shadow: 0 2px 34px rgba(6, 10, 15, .8);
}
.corrido { margin: 0; max-width: 34em; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.5; text-shadow: 0 1px 2px rgba(6, 10, 15, .9), 0 1px 18px rgba(6, 10, 15, .95); }

/* triage room */
.triagem {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(36px, 6vw, 96px); align-items: center;
  padding-block: clamp(90px, 16vh, 170px);
  padding-left: max(var(--lateral), env(safe-area-inset-left, 0px));
  padding-right: max(var(--lateral), env(safe-area-inset-right, 0px));
}
.triagem-texto { display: grid; gap: 18px; }
.manifesto {
  position: relative; color: var(--tinta); background-color: var(--papel); padding: 34px clamp(20px, 3vw, 42px) 30px; font-family: var(--maquina); font-size: 15.5px; line-height: 1.32;
  transform: rotate(1.1deg); box-shadow: 0 26px 60px rgba(3, 6, 10, .65);
  background-image: radial-gradient(130% 120% at 50% 45%, transparent 66%, rgba(90, 75, 45, .16) 100%);
}
.manifesto header { border-bottom: 2px solid var(--tinta); padding-bottom: 8px; margin-bottom: 10px; }
.manifesto header p { margin: 0; }
.manifesto h3 { margin: 0; font-family: var(--maquina); font-weight: 700; font-size: 22px; }
.manifesto ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.manifesto li { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px dotted rgba(38, 35, 28, .4); padding-block: 2px; }
.manifesto li span:last-child { white-space: nowrap; }
.manifesto .fora span:first-child { text-decoration: line-through; text-decoration-color: var(--giz); text-decoration-thickness: 2px; }
.manifesto .fora span:last-child { color: var(--giz); font-weight: 700; }
.manifesto-saida { margin: 14px 0 0; font-weight: 700; }
.carimbo {
  position: absolute; right: 22px; top: 26px; margin: 0; padding: 3px 10px; color: var(--giz); border: 3px solid var(--giz);
  font-family: var(--stencil); font-weight: 800; font-size: 25px; line-height: 1.05; text-transform: uppercase; transform: rotate(7deg); opacity: .82; mix-blend-mode: multiply;
}

/* the three days */
.dias {
  display: grid; gap: clamp(90px, 20vh, 220px);
  padding-block: clamp(70px, 12vh, 130px);
  padding-left: max(var(--lateral), env(safe-area-inset-left, 0px));
  padding-right: max(var(--lateral), env(safe-area-inset-right, 0px));
}
.dias-intro { margin-top: calc(-1 * clamp(70px, 17vh, 190px)); }
.dia { display: grid; grid-template-columns: auto minmax(0, 620px); gap: clamp(14px, 3vw, 44px); align-items: start; }
.dia-direita { justify-content: end; }
.dia-num {
  margin: 0; font-family: var(--stencil); font-weight: 900; font-size: clamp(120px, 21vw, 340px); line-height: .8; color: var(--holofote); opacity: .94;
  text-shadow: 0 4px 44px rgba(6, 10, 15, .75);
}
.dia-corpo { display: grid; gap: 12px; padding-top: 6px; }
.dia h3 { margin: 0; font-family: var(--stencil); font-weight: 800; font-size: clamp(38px, 4.6vw, 70px); line-height: 1; text-transform: uppercase; text-shadow: 0 2px 26px rgba(6, 10, 15, .85); }
.dia-hora { margin: 0; font-family: var(--estreita); font-weight: 600; font-size: 20px; color: var(--neblina); text-shadow: 0 1px 10px rgba(6, 10, 15, .95); }
.faixa {
  display: grid; grid-template-columns: 50fr 37fr 13fr; height: 30px; margin-top: 8px; font-family: var(--estreita); font-weight: 600; font-size: 15px; line-height: 30px;
  box-shadow: inset 0 0 0 1px rgba(243, 227, 184, .4);
}
.faixa span { padding-inline: 9px; overflow: hidden; white-space: nowrap; }
.faixa span:nth-child(1) { background: rgba(243, 227, 184, .88); color: var(--noite-funda); }
.faixa span:nth-child(2) { background: rgba(12, 19, 27, .86); color: var(--neblina); }
.faixa span:nth-child(3) { background: var(--giz); color: #fff3e4; padding-inline: 6px; }

/* field orders */
.regras {
  display: grid; gap: clamp(30px, 5vw, 60px);
  padding-block: clamp(110px, 20vh, 220px);
  padding-left: max(var(--lateral), env(safe-area-inset-left, 0px));
  padding-right: max(var(--lateral), env(safe-area-inset-right, 0px));
  background: linear-gradient(180deg, transparent, rgba(8, 13, 19, .68) 18%, rgba(8, 13, 19, .68) 82%, transparent);
}
.ordens { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(26px, 3.4vw, 46px) clamp(30px, 6vw, 96px); }
.ordens > div { border-top: 2px solid rgba(243, 227, 184, .55); padding-top: 12px; }
.ordens dt { font-family: var(--estreita); font-weight: 700; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.1; }
.ordens dd { margin: 7px 0 0; color: #e0dac6; font-size: clamp(17px, 1.25vw, 19px); line-height: 1.46; max-width: 36em; }

/* the list: a greenbar printout, the only thing on the page that holds people */
.lista {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 640px); gap: clamp(36px, 6vw, 96px); align-items: start;
  padding-block: clamp(100px, 18vh, 200px) clamp(70px, 10vh, 120px);
  padding-left: max(var(--lateral), env(safe-area-inset-left, 0px));
  padding-right: max(var(--lateral), env(safe-area-inset-right, 0px));
  scroll-margin-top: 30px;
}
.lista { background: linear-gradient(90deg, rgba(18, 12, 9, .68) 0, rgba(18, 12, 9, .44) 44%, transparent 72%); }
.lista-texto { display: grid; gap: 22px; }
.aviso { margin: 0; max-width: 34em; padding: 10px 14px; font-weight: 500; background: rgba(12, 19, 27, .86); box-shadow: inset 3px 0 0 var(--holofote); }
.impressao { position: relative; display: grid; gap: 0; }
.formulario {
  --furo: radial-gradient(circle at 50% 50%, rgba(20, 29, 39, .95) 0 4.5px, transparent 5px);
  color: #20261c; font-family: var(--maquina); font-size: 15.5px; line-height: 30px; padding: 22px 44px 22px; transform: rotate(-.5deg);
  box-shadow: 0 30px 70px rgba(3, 6, 10, .6);
  background-color: #f1f2e8;
  background-image: var(--furo), var(--furo), repeating-linear-gradient(180deg, var(--papel-verde) 0 30px, transparent 30px 60px);
  background-size: 24px 34px, 24px 34px, auto; background-position: left 0 top 0, right 0 top 0, 0 8px;
  background-repeat: repeat-y, repeat-y, repeat;
}
.formulario-topo { display: flex; justify-content: space-between; gap: 14px; font-weight: 700; }
.formulario-topo p { margin: 0; }
.formulario-topo p:first-child { font-size: 19px; }
.formulario-colunas, .linha { display: grid; grid-template-columns: 34px minmax(0, 1fr) 118px; gap: 10px; align-items: center; }
.formulario-colunas { font-weight: 700; border-bottom: 1.5px dashed rgba(32, 38, 28, .7); }
.formulario-linhas { list-style: none; margin: 0; padding: 0; }
.linha { min-height: 30px; }
.linha-nome { display: flex; align-items: center; gap: 8px; min-width: 0; }
.linha-nome span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linha-nome img { width: 22px; height: 22px; filter: grayscale(1) contrast(1.15); flex: none; }
.linha-inicial { width: 22px; height: 22px; flex: none; display: grid; place-items: center; background: #20261c; color: #f1f2e8; font-size: 12px; line-height: 1; font-weight: 700; }
.linha-vazia { color: rgba(32, 38, 28, .48); }
.situacao-confirmado { font-weight: 700; color: #1d5a2c; }
.situacao-aguardando { color: rgba(32, 38, 28, .68); }
.situacao-espera { font-weight: 700; color: var(--giz); }
.linha-eu { font-weight: 700; box-shadow: inset 0 -2px 0 var(--giz); }
.formulario-rodape { margin: 0; border-top: 1.5px dashed rgba(32, 38, 28, .7); line-height: 1.36; padding-top: 8px; font-size: 14px; }
.ficha {
  position: relative; z-index: 1; display: flex; gap: 14px; align-items: center; width: min(100%, 340px); justify-self: end; margin-top: -14px; padding: 12px 16px 12px 12px;
  background: var(--manila); color: var(--tinta); font-family: var(--maquina); transform: rotate(2deg); box-shadow: 0 18px 40px rgba(3, 6, 10, .55);
}
.ficha img { width: 84px; height: 84px; filter: grayscale(1) contrast(1.3) brightness(1.05); background: var(--manila-escura); flex: none; }
.ficha p { margin: 0; }
.ficha-rotulo { font-size: 13px; }
.ficha-nome { font-weight: 700; font-size: 19px; line-height: 1.15; overflow-wrap: anywhere; }
.ficha-num { font-size: 15px; }

.fim {
  display: grid; gap: 22px; padding-block: clamp(70px, 22vh, 240px) 96px;
  padding-left: max(var(--lateral), env(safe-area-inset-left, 0px));
  padding-right: max(var(--lateral), env(safe-area-inset-right, 0px));
}
.fim-frase { margin: 0; font-family: var(--stencil); font-weight: 900; font-size: clamp(50px, 10.4vw, 190px); line-height: .94; text-transform: uppercase; color: #fff4d4; text-shadow: 0 2px 6px rgba(40, 16, 6, .55), 0 2px 44px rgba(40, 16, 6, .8); }
.fim-legal { margin: 0; max-width: 58em; font-size: 14px; line-height: 1.45; color: #ece3cc; text-shadow: 0 1px 8px rgba(10, 8, 6, .9); }

@media (max-width: 1500px) {
  .abertura-base .acoes { flex-direction: column; align-items: stretch; }
}
@media (max-width: 1080px) {
  .abertura-base .acoes { flex-direction: row; align-items: center; }
  .lista { background: linear-gradient(180deg, transparent, rgba(18, 12, 9, .62) 12%, rgba(18, 12, 9, .5) 88%, transparent); }
  .abertura-base { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .triagem, .lista { grid-template-columns: minmax(0, 1fr); }
  .ordens { grid-template-columns: minmax(0, 1fr); }
  .dia { grid-template-columns: minmax(0, 1fr); }
  .dia-direita { justify-content: stretch; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .botao { width: 100%; }
  .acoes { width: 100%; }
  .fatos dd { font-size: 18px; }
  .fatos { gap: 7px 22px; }
  .carta-rodape { flex-direction: column; align-items: flex-start; gap: 5px; font-size: 12.5px; }
  .carta-folha { padding: 9px 9px 8px; width: 100%; }
  .faixa { grid-template-columns: 44fr 32fr 24fr; }
  .formulario { padding: 18px 26px; font-size: 13.5px; background-size: 15px 34px, 15px 34px, auto; --furo: radial-gradient(circle at 50% 50%, rgba(20, 29, 39, .95) 0 3px, transparent 3.5px); }
  .formulario-topo { flex-direction: column; gap: 0; }
  .formulario-colunas, .linha { grid-template-columns: 22px minmax(0, 1fr) 88px; gap: 6px; }
  .manifesto { font-size: 14px; }
  .carimbo { font-size: 17px; top: 16px; right: 12px; }
  .transmissao { gap: 42vh; }
}
@media (max-width: 620px), (max-height: 500px) {
  .carta-legenda { position: static; width: 100%; padding-top: 6px; font-size: 12px; }
  .carta-legenda .chamada { font-size: 16px; }
  .legenda-itens { gap: 2px 10px; }
}
@media (max-height: 500px) {
  .legenda-itens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carta { height: auto; }
  .carta-fixa { position: static; height: auto; padding-block: 18px; }
  .carta-folha { width: min(100%, 560px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
