:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #2b1a1f;
  background: #efe2c4;
  --rodape: 104px;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
button { min-width: 44px; min-height: 44px; font: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid #3349a0; outline-offset: 2px; }
.maquete { position: relative; width: 100%; height: 100dvh; display: grid; grid-template-rows: 56px minmax(0, 1fr) var(--rodape); overflow: hidden; }
.topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 8px; background: #efe2c4; border-bottom: 2px solid #2b1a1f; }
.estacao { font-weight: 700; }
.atalhos { display: flex; gap: 4px; }
.atalhos button { border: 2px solid #2b1a1f; background: #fff6e0; padding: 0; color: #2b1a1f; font-size: 23px; line-height: 1; }
.mundo { position: relative; min-height: 0; overflow: hidden; background: #62a044; }
.mapa, .destinos { position: absolute; inset: 0; }
.mapa canvas { display: block; }
.destinos { pointer-events: none; }
.destinos button { pointer-events: auto; }
.destino { position: absolute; transform: translate(-50%, -50%); width: 44px; height: 44px; border: 0; background: transparent; color: #2b1a1f; padding: 0; }
.destino span { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 16px; height: 16px; border: 1px solid #2b1a1f; border-radius: 50%; background: #fff6e0; font-size: 12px; line-height: 1; }
.destino[data-tipo="caminho"] span { width: 6px; height: 6px; right: 19px; bottom: 19px; border-radius: 0; transform: rotate(45deg); background: #efe2c4; }
.destino[data-tipo="borda"] span { background: #f2c230; border-radius: 2px; }
.destino[data-atual] span { box-shadow: 0 0 0 2px #3349a0; }
.acoes { display: flex; align-items: center; gap: 8px; padding: 8px; background: #efe2c4; border-top: 2px solid #2b1a1f; }
.maquete:has(.relato:not([hidden])) .acoes { visibility: hidden; }
.acoes button { flex: 1; min-width: 44px; min-height: 48px; background: #fff6e0; color: #2b1a1f; border: 2px solid #2b1a1f; padding: 4px; font-size: 14px; }
.acoes button[data-acesa] { background: #f2c230; border-color: #3349a0; box-shadow: inset 0 0 0 1px #3349a0; font-weight: 700; }
.acao-icone { display: block; font-size: 17px; line-height: 1; }
.relato { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: var(--rodape); display: flex; align-items: center; gap: 8px; padding: 8px; border-top: 2px solid #2b1a1f; background: #fff6e0; }
.relato[hidden] { display: none; }
.relato p { margin: 0; flex: 1; font-size: 14px; }
.relato button { border: 2px solid #2b1a1f; background: #efe2c4; color: #2b1a1f; font-size: 24px; line-height: 1; }
.painel { position: fixed; inset: 56px 8px var(--rodape); width: calc(100% - 16px); max-width: 480px; max-height: calc(100dvh - 180px); overflow: auto; background: #fff6e0; color: #2b1a1f; padding: 12px; border: 2px solid #2b1a1f; }
.painel::backdrop { background: rgb(43 26 31 / 45%); }
.painel h2 { font-size: 20px; margin: 0 0 12px; }
.painel ul { padding-left: 0; list-style: none; }
.painel li { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px solid #cfc4ad; }
.detalhe-caderno { display: block; }
.painel button { border: 1px solid #2b1a1f; background: #efe2c4; }
.aviso { position: absolute; left: 8px; top: 8px; }
.aviso:not(:empty) { padding: 4px 8px; border: 2px solid #2b1a1f; background: #fff6e0; color: #2b1a1f; font-weight: 700; }
.somente-leitor { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (min-height: 800px) { :root { --rodape: 112px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.painel a[download] { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; color: #334477; }
