/*
 * Visual: carta náutica (mapa claro, tinta azul-marinho, nomes de água em itálico),
 * placa de praia (veredito em letra grossa sobre cor chapada) e instrumento de bordo
 * (o bloco escuro com o mostrador). Sóbrio: a cor forte fica só no veredito.
 */

@font-face {
  font-family: 'Overpass';
  src: url('fontes/overpass-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('fontes/source-serif-4-latin.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('fontes/source-serif-4-italico-latin.woff2') format('woff2');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* papel e tinta */
  --papel: #f2f4f1;
  --papel-claro: #fbfcfa;
  --tinta: #152738;
  --tinta-2: #4a5d6c;
  --tinta-3: #8493a0;
  --fio: #c7d0d3;
  /* carta */
  --mar-0: #e4ecee;
  --mar-1: #d8e5e9;
  --mar-2: #cadbe3;
  --mar-3: #bbd1dc;
  --terra: #e7e0ca;
  --areia: #f6efd6;
  --agua-nome: #3b627f;
  --magenta: #9c1f64;
  /* instrumento */
  --instrumento: #13283a;
  --instrumento-fio: rgba(232, 238, 240, 0.16);
  --instrumento-texto: #e8eef0;
  --instrumento-apagado: #93a7b6;
  --ambar: #f0b33c;
  /* veredito: do cinza ao verde fundo, mais o vermelho de perigo */
  --v-nao: #a8b4bb;
  --v-fraco: #d6b248;
  --v-da: #a4bc4c;
  --v-bom: #3d9959;
  --v-classico: #0e6843;
  --v-perigo: #c5361f;

  --sans: 'Overpass', 'Segoe UI', system-ui, sans-serif;
  --serifa: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }

/* Cada classe v-* define a cor e a espessura do veredito; quem usa escolhe o que pintar. */
.v-nao { --cor: var(--v-nao); --sobre: var(--tinta); --esp: 3.5px; }
.v-fraco { --cor: var(--v-fraco); --sobre: var(--tinta); --esp: 5px; }
.v-da { --cor: var(--v-da); --sobre: var(--tinta); --esp: 6.5px; }
.v-bom { --cor: var(--v-bom); --sobre: #fff; --esp: 8.5px; }
.v-classico { --cor: var(--v-classico); --sobre: #fff; --esp: 11px; }
.v-perigo { --cor: var(--v-perigo); --sobre: #fff; --esp: 5px; }

/* ------------------------------------------------------------- estrutura */
.app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 448px;
  height: 100vh;
  height: 100dvh;
}
.palco {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
}
.moldura { position: relative; min-height: 0; overflow: hidden; background: var(--mar-0); }
.painel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid var(--tinta);
  background: var(--papel);
}

/* ------------------------------------------------------------------ carta */
#carta { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; user-select: none; }
#carta.arrastando { cursor: grabbing; }
#carta text { font-family: var(--sans); }

.mar { fill: var(--mar-0); }
.fundura { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.fundura-1 { stroke: var(--mar-1); }
.fundura-2 { stroke: var(--mar-2); }
.fundura-3 { stroke: var(--mar-3); }
.grade line { stroke: var(--tinta); stroke-opacity: 0.09; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.grau { font-family: var(--serifa); font-style: italic; font-size: 10px; fill: var(--tinta-3); }
.cristas { pointer-events: none; }
pattern path { stroke: var(--tinta); fill: none; stroke-linecap: round; }
.terra { fill: var(--terra); }
.areia { fill: var(--areia); }
.lagoa { fill: var(--mar-2); stroke: var(--tinta); stroke-width: 0.8px; vector-effect: non-scaling-stroke; }
.canal { fill: none; stroke: var(--agua-nome); stroke-width: 1.2px; stroke-opacity: 0.7; vector-effect: non-scaling-stroke; }
.linha-costa { fill: none; stroke: var(--tinta); stroke-width: 1px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

.rotulo text { pointer-events: none; }
.rotulo.agua text { font-family: var(--serifa); font-style: italic; font-size: 13.5px; fill: var(--agua-nome); letter-spacing: 0.02em; }
.rotulo.agua.grande text { font-size: 19px; letter-spacing: 0.34em; fill-opacity: 0.62; }
.rotulo.agua.pequeno text { font-size: 11.5px; }
.rotulo.praia text {
  font-weight: 700; font-size: 12.5px; letter-spacing: 0.02em; fill: var(--tinta);
  paint-order: stroke; stroke: var(--terra); stroke-width: 3.5px; stroke-linejoin: round;
}
.rotulo.terra-nome text { font-weight: 500; font-size: 11px; letter-spacing: 0.16em; fill: var(--tinta-2); }
.morro path { fill: var(--tinta); }
.morro text { font-size: 10.5px; font-weight: 600; fill: var(--tinta); pointer-events: none; paint-order: stroke; stroke: var(--terra); stroke-width: 3px; }
.morro .altitude { font-weight: 400; fill: var(--tinta-2); }
.posto rect { fill: var(--papel-claro); stroke: var(--tinta); stroke-width: 0.9px; }
.posto text { font-size: 8.5px; font-weight: 700; fill: var(--tinta); pointer-events: none; }
/* De longe, os detalhes miúdos somem para não embolar. */
#carta.longe .posto, #carta.longe .marca-grau, #carta.longe .morro .altitude, #carta.longe .rotulo.pequeno { display: none; }
#carta.longe .rotulo.agua.grande text { font-size: 14px; letter-spacing: 0.24em; }

/* trechos */
.trecho { cursor: pointer; outline: none; }
.trecho path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.trecho .toque { stroke: transparent; stroke-width: 30px; pointer-events: stroke; }
/* O "halo" é o contorno de tinta em volta da cor: sem ele o verde-claro some contra a areia. */
.trecho .halo { stroke: var(--tinta); stroke-opacity: 0.62; stroke-width: calc(var(--esp) + 2.4px); pointer-events: none; }
.trecho.sobre .halo, .trecho.sel .halo, .trecho:focus-visible .halo { stroke-opacity: 1; }
.trecho .traco { stroke: var(--cor); stroke-width: var(--esp); pointer-events: none; transition: stroke 0.25s, stroke-width 0.25s; }
.trecho.sobre .halo { stroke: var(--tinta); stroke-width: calc(var(--esp) + 4px); }
.trecho.sel .halo { stroke: var(--tinta); stroke-width: calc(var(--esp) + 6px); }
.trecho:focus-visible .halo { stroke: var(--magenta); stroke-width: calc(var(--esp) + 6px); }
body:not(.pronto) .trechos { opacity: 0; }
.trechos.entrando .trecho { animation: tinta 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; animation-delay: calc(var(--i) * 60ms + 120ms); }
@keyframes tinta { from { opacity: 0; transform: translateY(5px); } }

.etiqueta { display: none; pointer-events: none; }
.etiqueta.visivel { display: block; }
.etiqueta line { stroke: var(--tinta); stroke-width: 1px; }
.etiqueta text { paint-order: stroke; stroke: var(--papel-claro); stroke-width: 4px; stroke-linejoin: round; }
.etiqueta .nome { font-size: 13px; font-weight: 700; fill: var(--tinta); }
.etiqueta .veredito { font-size: 11.5px; font-weight: 600; fill: var(--tinta-2); }

/* cartucho: o bloco de título, como nas cartas */
.cartucho {
  position: absolute; top: 16px; left: 16px;
  padding: 10px 14px 9px;
  background: var(--papel-claro);
  border: 1px solid var(--tinta);
  box-shadow: 3px 3px 0 rgba(21, 39, 56, 0.12);
  pointer-events: none;
}
.cartucho h1 { font-size: 21px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
.cartucho p { font-family: var(--serifa); font-style: italic; font-size: 14px; color: var(--tinta-2); margin-top: 1px; }

.botoes-mapa { position: absolute; top: 16px; right: 16px; display: flex; gap: 6px; }
.botoes-mapa button {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--papel-claro); border: 1px solid var(--tinta);
  font-size: 19px; font-weight: 600; line-height: 1;
}
.botoes-mapa button.largo { width: auto; padding: 2px 12px 0; font-size: 13px; }
.botoes-mapa button:hover { background: var(--tinta); color: var(--papel-claro); }

.pe-do-mapa {
  position: absolute; left: 16px; right: 16px; bottom: 12px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  pointer-events: none;
}
.legenda { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--tinta); }
.legenda li { display: flex; align-items: center; gap: 6px; text-shadow: 0 0 3px var(--mar-0), 0 0 3px var(--mar-0), 0 0 2px var(--mar-0); }
.legenda i { display: block; width: 22px; height: var(--esp); border-radius: 99px; background: var(--cor); box-shadow: 0 0 0 1.2px rgba(21, 39, 56, 0.62); }
.escala { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 11px; color: var(--tinta); flex: none; }
#escala-barra { display: block; height: 6px; border: 1px solid var(--tinta); border-top: 0; min-width: 20px; }

/* ------------------------------------------------------------------ régua */
.regua { background: var(--papel); border-top: 1px solid var(--tinta); padding: 10px 16px 12px; }
.regua-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 24px; }
#regua-hora { font-size: 15px; font-weight: 700; }
.botao-texto { font-size: 13px; font-weight: 600; color: var(--magenta); text-decoration: underline; text-underline-offset: 3px; }
.regua-faixa { position: relative; margin-top: 2px; }
.regua-dias { position: relative; height: 18px; font-size: 11.5px; color: var(--tinta-2); }
.regua-dia { position: absolute; top: 2px; padding-left: 4px; white-space: nowrap; }
.regua-divisa { position: absolute; top: 0; width: 1px; height: 70px; background: var(--tinta); opacity: 0.35; z-index: 1; pointer-events: none; }
.regua-trilho { position: relative; height: 52px; }
#regua-svg { display: block; width: 100%; height: 100%; }
.celula { fill: var(--cor); }
.celula.noite { fill-opacity: 0.28; }
.regua-mare { fill: none; stroke: var(--agua-nome); stroke-width: 1.4px; }
.regua-cursor {
  position: absolute; top: -5px; bottom: -4px; width: 0; margin-left: -1px;
  border-left: 2px solid var(--tinta); pointer-events: none; z-index: 2;
}
.regua-cursor::before {
  content: ''; position: absolute; top: -1px; left: -7px;
  border: 6px solid transparent; border-top-color: var(--tinta); border-bottom: 0;
}
#regua-entrada {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; touch-action: pan-y;
}
.regua-trilho:has(#regua-entrada:focus-visible) { outline: 2px solid var(--magenta); outline-offset: 3px; }

/* ----------------------------------------------------------------- painel */
.escolhas { padding: 14px 20px 12px; border-bottom: 1px solid var(--fio); display: grid; gap: 8px; }
.escolha { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 8px; }
.escolha-rotulo { font-size: 13px; color: var(--tinta-2); }
.segmentos { display: flex; border: 1px solid var(--tinta); }
.segmentos button {
  flex: 1 1 0; min-width: 0;
  padding: 7px 4px 5px; text-align: center;
  font-size: 13px; font-weight: 600;
  border-left: 1px solid var(--tinta);
}
.segmentos button:first-child { border-left: 0; }
.segmentos button:hover { background: rgba(21, 39, 56, 0.08); }
.segmentos button[aria-pressed='true'] { background: var(--tinta); color: var(--papel-claro); }

.painel-conteudo { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 20px 20px 28px; }
.carregando { font-family: var(--serifa); font-style: italic; font-size: 17px; color: var(--tinta-2); padding-top: 24px; }

.momento { font-size: 13px; font-weight: 600; color: var(--tinta-2); }
.manchete { font-size: 38px; font-weight: 800; line-height: 1.04; letter-spacing: -0.015em; margin-top: 4px; text-wrap: balance; }
.apoio { font-family: var(--serifa); font-size: 17px; line-height: 1.5; margin-top: 12px; max-width: 34em; }
.apoio.secundario { color: var(--tinta-2); margin-top: 6px; }
.elo { font: inherit; font-weight: 600; color: var(--tinta); text-decoration: underline; text-decoration-color: var(--magenta); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.elo:hover { color: var(--magenta); }

.alerta {
  margin-top: 14px; padding: 10px 12px 9px;
  border-left: 5px solid var(--v-perigo);
  background: #f8e6e1;
  font-size: 14.5px; line-height: 1.4;
}
.alerta.fraco { border-left-color: var(--v-fraco); background: #f6f0d9; }
.nota-escuro { margin-top: 12px; font-size: 13.5px; color: var(--tinta-2); }

.cameras { margin-top: 14px; display: grid; gap: 5px; }
.camera {
  display: block; padding: 10px 14px 8px; text-align: center;
  border: 1px solid var(--tinta); background: var(--papel-claro);
  font-weight: 700; font-size: 14.5px; text-decoration: none;
}
.camera:hover { background: var(--tinta); color: var(--papel-claro); }
.cameras span { font-size: 12.5px; color: var(--tinta-2); }

.titulo-secao { font-size: 13px; font-weight: 700; margin: 26px 0 8px; padding-bottom: 5px; border-bottom: 1px solid var(--tinta); }

/* lista de trechos e janelas: linhas com a marca de cor à esquerda */
.linha-trecho, .janela {
  display: grid; width: 100%;
  grid-template-columns: 30px 1fr auto;
  grid-template-areas: 'marca nome veredito' 'marca detalhe detalhe';
  column-gap: 10px; align-items: center;
  padding: 8px 4px 7px;
  border-bottom: 1px solid var(--fio);
}
.linha-trecho:hover, .janela:hover { background: var(--papel-claro); }
.marca { grid-area: marca; display: block; height: var(--esp); border-radius: 99px; background: var(--cor); }
.lt-nome, .j-quando { grid-area: nome; font-weight: 700; font-size: 15px; }
.lt-veredito, .j-veredito { grid-area: veredito; font-size: 13.5px; font-weight: 600; }
.lt-detalhe, .j-detalhe { grid-area: detalhe; font-size: 13px; color: var(--tinta-2); }
.v-perigo .lt-veredito, .v-perigo .j-veredito { color: var(--v-perigo); }
.vazio { font-family: var(--serifa); font-size: 15.5px; color: var(--tinta-2); margin: 6px 0; }

/* placa do trecho */
.voltar { font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--magenta); text-decoration-thickness: 2px; }
.voltar::before { content: '‹ '; }
.placa { margin-top: 12px; padding: 16px 18px 15px; background: var(--cor); color: var(--sobre); }
.placa-onde { font-size: 13px; font-weight: 500; opacity: 0.88; }
.placa-nome { font-size: 19px; font-weight: 700; line-height: 1.2; }
.placa-veredito { font-size: 58px; font-weight: 900; line-height: 0.98; letter-spacing: -0.02em; margin: 12px 0 10px; text-wrap: balance; }
.placa.v-perigo .placa-veredito, .placa.v-da .placa-veredito { font-size: 46px; }
.placa-resumo { font-family: var(--serifa); font-size: 16px; line-height: 1.45; }

/* modalidades */
.equipamentos { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--tinta); }
.equipamento { display: grid; gap: 4px; padding: 9px 12px 8px; border-right: 1px solid var(--fio); border-bottom: 1px solid var(--fio); }
.equipamento:nth-child(2n) { border-right: 0; }
.equipamento:nth-last-child(-n + 2) { border-bottom: 0; }
.equipamento:hover { background: var(--papel-claro); }
.equipamento.ativo { background: var(--papel-claro); box-shadow: inset 0 0 0 2px var(--tinta); }
.eq-nome { font-weight: 700; font-size: 14px; }
.eq-barra { display: block; height: 6px; background: rgba(21, 39, 56, 0.1); }
.eq-barra i { display: block; height: 100%; background: var(--cor); }
.eq-veredito { font-size: 13px; color: var(--tinta-2); }
.equipamento.v-perigo .eq-veredito { color: var(--v-perigo); font-weight: 600; }

/* fatores */
.fator { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 11px 0 10px; border-bottom: 1px solid var(--fio); }
.fator-sinal { display: flex; align-items: flex-end; gap: 2px; height: 16px; margin-top: 2px; }
.fator-sinal i { display: block; width: 5px; background: rgba(21, 39, 56, 0.16); }
.fator-sinal i:nth-child(1) { height: 6px; }
.fator-sinal i:nth-child(2) { height: 11px; }
.fator-sinal i:nth-child(3) { height: 16px; }
.f-ruim .fator-sinal i:nth-child(1) { background: var(--v-perigo); }
.f-medio .fator-sinal i:nth-child(-n + 2) { background: #b8922b; }
.f-bom .fator-sinal i { background: var(--v-bom); }
.fator-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fator-topo strong { font-size: 15px; font-weight: 700; }
.fator-valor { font-size: 13.5px; font-weight: 600; color: var(--tinta-2); text-align: right; }
.fator-texto { font-family: var(--serifa); font-size: 15.5px; line-height: 1.5; margin-top: 2px; }
.freio-nota { font-style: italic; color: var(--v-perigo); }
.fator-oque { margin-top: 4px; }
.fator-oque summary { font-size: 12.5px; color: var(--tinta-2); cursor: pointer; width: fit-content; text-decoration: underline dotted; text-underline-offset: 3px; list-style: none; }
.fator-oque summary::-webkit-details-marker { display: none; }
.fator-oque p { font-size: 13.5px; color: var(--tinta-2); margin-top: 4px; padding-left: 10px; border-left: 2px solid var(--fio); }

/* instrumento de bordo */
.instrumento {
  margin-top: 24px; padding: 16px 16px 12px;
  background: var(--instrumento); color: var(--instrumento-texto);
  border-radius: 10px;
}
.instrumento-topo { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; }
.rosa { display: block; width: 150px; height: 150px; }
.rosa-fundo { fill: #0d1e2d; }
.rosa-terra { fill: #6b6650; fill-opacity: 0.55; }
.rosa-areia { fill: #d9cfa6; }
.rosa-aro { fill: none; stroke: var(--instrumento-texto); stroke-opacity: 0.7; stroke-width: 1.6; }
.rosa-tique { stroke: var(--instrumento-texto); stroke-opacity: 0.55; stroke-width: 1.3; }
.rosa-tique.forte { stroke-opacity: 0.95; stroke-width: 2; }
.rosa-ponto { font-family: var(--sans); font-size: 17px; font-weight: 700; fill: var(--instrumento-texto); fill-opacity: 0.8; }
.rosa-swell line { stroke: var(--instrumento-texto); stroke-linecap: round; }
.rosa-swell path { fill: var(--instrumento-texto); }
.rosa-vento line { stroke: var(--ambar); stroke-linecap: round; }
.rosa-vento path { fill: var(--ambar); }
.rosa-centro { fill: #0d1e2d; stroke: var(--instrumento-texto); stroke-width: 1.5; }
.leituras { display: grid; gap: 7px; }
.leitura dt { font-size: 12px; color: var(--instrumento-apagado); display: flex; align-items: center; gap: 6px; }
.leitura dd { font-size: 15px; font-weight: 600; line-height: 1.25; }
.leitura.swell dt::before, .leitura.vento dt::before, .leitura.praia dt::before { content: ''; display: block; width: 12px; height: 3px; border-radius: 2px; }
.leitura.swell dt::before { background: var(--instrumento-texto); height: 4px; }
.leitura.vento dt::before { background: var(--ambar); }
.leitura.praia dt::before { background: #d9cfa6; }
.boia { margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--instrumento-fio); }
.boia-titulo { font-size: 13px; color: var(--instrumento-apagado); }
.boia-titulo strong { color: var(--instrumento-texto); font-weight: 700; }
.boia-valores { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: 2px; font-size: 15px; font-weight: 600; }
.boia-valores b { font-size: 24px; font-weight: 800; color: var(--ambar); letter-spacing: -0.01em; }
.boia-valores span { flex-basis: 100%; font-size: 12.5px; font-weight: 400; color: var(--instrumento-apagado); }
.instrumento-mare { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--instrumento-fio); }
.mare-titulo { font-size: 14px; }
.mare-titulo strong { font-weight: 700; }
.mare { display: block; width: 100%; height: auto; margin-top: 4px; }
.mare-noite { fill: #0d1e2d; }
.mare-zero { stroke: var(--instrumento-texto); stroke-opacity: 0.25; stroke-dasharray: 2 4; }
.mare-area { fill: #3d7ea6; fill-opacity: 0.28; }
.mare-linha { fill: none; stroke: #9fd0ea; stroke-width: 1.8; stroke-linejoin: round; }
.mare-ponto { fill: var(--instrumento-texto); }
.mare-hora { font-family: var(--sans); font-size: 10.5px; font-weight: 600; fill: var(--instrumento-texto); }
.mare-eixo { font-family: var(--sans); font-size: 9.5px; fill: var(--instrumento-apagado); }
.mare-cursor { stroke: var(--ambar); stroke-width: 1.5; }
.instrumento-rodape { margin-top: 8px; padding-top: 9px; border-top: 1px solid var(--instrumento-fio); font-size: 12.5px; color: var(--instrumento-apagado); }

/* sobre o pico */
.descricao { font-family: var(--serifa); font-size: 16px; line-height: 1.55; }
.ficha-dados { margin-top: 12px; display: grid; gap: 0; }
.ficha-dados div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 6px 0 5px; border-top: 1px solid var(--fio); font-size: 14px; }
.ficha-dados dt { color: var(--tinta-2); }
.confianca { margin-top: 12px; font-size: 13px; color: var(--tinta-2); }

.erro .botao, .botao { display: inline-block; margin-top: 16px; padding: 9px 16px 7px; background: var(--tinta); color: var(--papel-claro); font-weight: 600; }

.rodape { padding: 10px 20px 12px; border-top: 1px solid var(--fio); font-size: 12px; line-height: 1.4; color: var(--tinta-2); }
.rodape p + p { margin-top: 2px; }

/* --------------------------------------------------------- telas estreitas */
@media (max-width: 899px) {
  .app { display: block; height: auto; }
  .palco { display: block; }
  .moldura { height: clamp(270px, 42vh, 520px); }
  .painel { border-left: 0; border-top: 1px solid var(--tinta); }
  .painel-conteudo { overflow: visible; padding: 18px 16px 24px; }
  .escolhas { padding: 12px 16px 10px; }
  .escolha { grid-template-columns: 62px 1fr; }
  .segmentos button { font-size: 12.5px; padding-left: 2px; padding-right: 2px; }
  .cartucho { top: 10px; left: 10px; padding: 7px 10px 6px; }
  .cartucho h1 { font-size: 16px; }
  .cartucho p { font-size: 12px; }
  .botoes-mapa { top: 10px; right: 10px; }
  .pe-do-mapa { left: 10px; right: 10px; bottom: 8px; }
  .legenda { font-size: 11px; gap: 2px 10px; }
  .legenda i { width: 16px; }
  .escala { display: none; }
  .regua { padding: 8px 16px 10px; }
  .manchete { font-size: 31px; }
  .placa-veredito { font-size: 50px; }
  .placa.v-perigo .placa-veredito, .placa.v-da .placa-veredito { font-size: 40px; }
  .rodape { padding: 10px 16px 16px; }
}
@media (max-width: 380px) {
  .instrumento-topo { grid-template-columns: 118px 1fr; gap: 12px; }
  .rosa { width: 118px; height: 118px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
