@font-face { font-family: Figtree; src: url(/fontes/figtree.woff2) format('woff2'); font-weight: 300 900; font-display: swap; }

:root { --laranja: #f24c00; --strava: #fc4c02; --cinza: #a8a8a8; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: #000; color: #fff; font: 16px/1.45 Figtree, 'Segoe UI', system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }

.pagina { max-width: 480px; margin: 0 auto; padding: 0 20px calc(28px + env(safe-area-inset-bottom)); }
.topo { position: relative; margin: 0 -20px 6px; }
.topo img { display: block; width: 100%; height: auto; }
.topo::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(transparent, #000); }
.topo-baixo { width: 300px; max-width: 74%; margin: 0 auto 2px; }
.topo-baixo img {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
}

h1 { font-size: 28px; line-height: 1.15; font-weight: 800; margin: 6px 0 6px; letter-spacing: -.01em; }
.sub { font-size: 17px; color: #d2d2d2; margin: 0 0 18px; }
.passos { list-style: none; counter-reset: p; padding: 0; margin: 0 0 22px; }
.passos li { counter-increment: p; display: flex; gap: 12px; align-items: baseline; padding: 7px 0; font-size: 16px; }
.passos li::before { content: counter(p); color: var(--laranja); font-weight: 800; font-size: 18px; min-width: 14px; }
.erro { color: #ffb08a; font-size: 15px; margin: 0 0 14px; min-height: 0; }
.erro:empty { margin: 0; }

.btn-strava, .btn-laranja {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px;
  border: 0; border-radius: 12px; font: 700 17px/1.2 Figtree, 'Segoe UI', sans-serif; color: #fff; text-decoration: none;
  cursor: pointer; padding: 12px 16px; -webkit-tap-highlight-color: transparent;
}
.btn-strava { background: var(--strava); }
.btn-strava svg { width: 22px; height: 22px; }
.btn-laranja { background: var(--laranja); margin-top: 6px; }
.btn-strava:active, .btn-laranja:active { filter: brightness(.92); }
.btn-laranja:disabled { opacity: .55; cursor: default; }
.btn-linha {
  display: block; width: 100%; margin-top: 12px; min-height: 46px; border: 1px solid #3a3a3a; border-radius: 12px;
  background: transparent; color: #e6e6e6; font: 600 15px Figtree, 'Segoe UI', sans-serif; cursor: pointer;
}
.miuda { color: #8f8f8f; font-size: 13px; margin: 16px 0 0; }
.rodape { color: #6f6f6f; font-size: 12px; text-align: center; margin-top: 28px; }

/* escolher a atividade */
.atividades { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.atividade {
  display: grid; grid-template-columns: 1fr 64px; gap: 12px; align-items: center; text-align: left; width: 100%;
  background: #111; border: 1px solid #2c2c2c; border-radius: 14px; padding: 14px; color: #fff; cursor: pointer;
  font: inherit; -webkit-tap-highlight-color: transparent;
}
.atividade[aria-checked=true] { border: 2px solid var(--laranja); padding: 13px; background: #1a0d06; }
.a-nome { display: block; font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-quando { display: block; color: var(--cinza); font-size: 13px; margin: 1px 0 6px; }
.a-km { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; }
.a-resto { display: block; color: #d6d6d6; font-size: 14px; }
.a-mapa { width: 64px; height: 64px; }
.a-mapa path { fill: none; stroke: var(--laranja); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.previa { width: min(280px, 72vw); aspect-ratio: 874 / 1600; margin: 4px auto 6px; border-radius: 12px; overflow: hidden; background: #000; }
.previa .cartao { display: block; width: 100%; height: 100%; }

/* cartaz para imprimir */
body.cartaz { background: #fff; color: #111; }
.cartaz-folha { max-width: 640px; margin: 0 auto; padding: 0 0 24px; text-align: center; }
.cartaz-topo { display: block; width: 100%; height: auto; }
.cartaz h1 { font-size: 38px; color: #111; margin: 22px 16px 14px; }
.cartaz-qr { width: 340px; height: 340px; max-width: 80vw; max-height: 80vw; }
.cartaz-texto { font-size: 20px; margin: 12px 24px 4px; }
.cartaz-url { font-size: 22px; font-weight: 800; color: var(--laranja); margin: 6px 0 18px; }
.btn-imprimir { font: 600 16px 'Segoe UI', sans-serif; padding: 10px 26px; border: 1px solid #c9d6e4; border-radius: 6px; background: #fff; color: #0b3a6e; cursor: pointer; }
@media print {
  @page { size: A4; margin: 10mm; }
  .btn-imprimir { display: none; }
  .cartaz-folha { max-width: none; }
  .cartaz-qr { width: 9cm; height: 9cm; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
