/* Visual "Parquinho": céu azul-claro, blocos de cor chapada, contorno azul-marinho grosso e sombra dura. */
:root {
  --ceu: #CFE8FF; --marinho: #16213E; --texto-2: #36415E; --branco: #FFFFFF;
  --amarelo: #FFC93C; --tomate: #FF5A4F; --verde: #2BB673; --menta: #7FD8A6; --rosa: #FFB3C7;
  --borda: 3px solid var(--marinho);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ceu); }
body { margin: 0; background: var(--ceu); color: var(--marinho); font-family: Fredoka, "Trebuchet MS", system-ui, sans-serif; font-size: 16px; line-height: 22px; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
a { color: var(--marinho); }
:focus-visible { outline: 3px solid var(--tomate); outline-offset: 2px; }
[hidden] { display: none !important; }

.tela { position: relative; max-width: 440px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; overflow: hidden; display: flex; flex-direction: column; gap: 18px;
  padding: calc(24px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); }
.tela > * { position: relative; }
.bola { position: absolute; right: -60px; top: -70px; width: 200px; height: 200px; border-radius: 50%; border: var(--borda); background: var(--amarelo); }
.bola--esq { right: auto; left: -70px; top: -90px; width: 260px; height: 260px; }

h1 { margin: 0; font-weight: 700; font-size: 34px; line-height: 36px; letter-spacing: -0.5px; text-wrap: balance; }
h2 { margin: 0; font-weight: 700; font-size: 22px; line-height: 26px; }
p { margin: 0; }
.apoio { color: var(--texto-2); }
.pequeno { font-size: 14px; line-height: 19px; }

/* Marca e bolota */
.marca { display: flex; align-items: center; gap: 14px; }
.marca__nome { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.marca__nome b { font-weight: 700; font-size: 60px; line-height: 54px; letter-spacing: -1px; }
.marca__nome span { font-weight: 600; font-size: 25px; line-height: 28px; }
.bolota { position: relative; flex: none; width: 124px; height: 124px; }
.bolota > img { display: block; width: 124px; height: 124px; border-radius: 50%; object-fit: cover; border: var(--borda); box-shadow: 5px 5px 0 var(--marinho); background: var(--branco); }
.bolota .mini { position: absolute; width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: var(--borda); background: var(--branco); }
.bolota .mini:nth-of-type(2) { right: -12px; bottom: -8px; }
.bolota .mini:nth-of-type(3) { left: -12px; bottom: -8px; }
.bolota .mini:nth-of-type(4) { left: 37px; bottom: -22px; }
.bolota--p, .bolota--p > img { width: 72px; height: 72px; }
.bolota--p .mini { width: 32px; height: 32px; border-width: 2.5px; }
.bolota--p .mini:nth-of-type(4) { left: 20px; bottom: -16px; }

/* Passos */
.voltar { width: 48px; height: 48px; border: var(--borda); border-radius: 50%; background: var(--branco); display: grid; place-items: center; box-shadow: 3px 3px 0 var(--marinho); cursor: pointer; padding: 0; }
.passos { display: flex; gap: 6px; }
.passos i { flex: 1; height: 10px; border: 2.5px solid var(--marinho); border-radius: 999px; background: var(--branco); }
.passos i.feito { background: var(--tomate); }

/* Cartões e campos */
.cartao { background: var(--branco); border: var(--borda); border-radius: 24px; padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: 6px 6px 0 var(--marinho); min-width: 0; }
.cartao--rosa { background: var(--rosa); } .cartao--menta { background: var(--menta); } .cartao--verde { background: var(--verde); } .cartao--amarelo { background: var(--amarelo); }
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo label, .rotulo { font-size: 15px; font-weight: 600; }
.campo input { width: 100%; height: 52px; min-width: 0; border: var(--borda); border-radius: 16px; padding: 0 14px; font-size: 17px; background: var(--branco); color: var(--marinho); }
.campo input::placeholder { color: #6B7590; }
.campo--codigo input { height: 64px; text-align: center; font-size: 30px; font-weight: 700; letter-spacing: 10px; padding: 0 6px 0 16px; }
.linha2 { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
.achado { background: var(--menta); border: var(--borda); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.achado b { font-size: 17px; font-weight: 600; }

.botao { width: 100%; min-height: 56px; border: var(--borda); border-radius: 18px; background: var(--tomate); color: var(--marinho); font-size: 19px; font-weight: 700; cursor: pointer; box-shadow: 4px 4px 0 var(--marinho); padding: 0 16px; }
.botao:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--marinho); }
.botao[disabled] { opacity: .6; cursor: progress; }
.botao--tracejado { background: transparent; border-style: dashed; box-shadow: none; font-size: 17px; font-weight: 600; min-height: 52px; }
.botao--tracejado:active { transform: none; box-shadow: none; }
.link { background: none; border: 0; padding: 12px 6px; font-size: 15px; font-weight: 600; text-decoration: underline; cursor: pointer; color: var(--marinho); }
.centro { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.fim { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }

.erro { background: var(--branco); border: var(--borda); border-color: var(--tomate); border-radius: 16px; padding: 12px 14px; font-weight: 600; }

/* Escolhas */
.pilulas { display: flex; flex-wrap: wrap; gap: 8px; }
.grade2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opcao { min-height: 48px; padding: 0 16px; border: var(--borda); border-radius: 999px; background: var(--branco); font-size: 16px; font-weight: 500; cursor: pointer; }
.grade2 .opcao { border-radius: 16px; min-height: 52px; padding: 0 8px; }
.opcao[aria-pressed="true"] { background: var(--amarelo); font-weight: 700; box-shadow: 3px 3px 0 var(--marinho); }
.opcao--larga { grid-column: 1 / -1; border-style: dashed; }
.simnao { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.simnao .opcao { border-radius: 18px; min-height: 54px; font-size: 19px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
legend { padding: 0; font-size: 15px; font-weight: 600; margin-bottom: 10px; }

/* Foto */
.foto-linha { display: flex; gap: 14px; align-items: center; }
.foto-linha .campo { flex: 1; }
.foto { position: relative; flex: none; width: 96px; height: 96px; border: 3px dashed var(--marinho); border-radius: 50%; background: var(--branco); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 14px; font-weight: 600; overflow: hidden; }
.foto input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foto.tem { border-style: solid; }
.dep-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Início */
.selos { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.selo { background: var(--amarelo); border: 2.5px solid var(--marinho); border-radius: 999px; padding: 3px 12px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.selo--breve { background: var(--tomate); font-weight: 700; transform: rotate(-4deg); }
.lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lista li { display: flex; align-items: center; gap: 12px; background: var(--branco); border: var(--borda); border-radius: 18px; padding: 8px 12px 8px 8px; min-width: 0; }
.lista img, .mini-fila img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2.5px solid var(--marinho); flex: none; background: var(--ceu); }
.lista .corpo { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.lista .corpo b { display: block; font-weight: 600; font-size: 17px; }
.lista .corpo small { font-size: 14px; color: var(--texto-2); }
.lista .quando { flex: none; font-size: 13px; font-weight: 600; background: var(--ceu); border: 2.5px solid var(--marinho); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.lista .quando.perto { background: var(--amarelo); }
.pessoa { flex-direction: column; align-items: stretch !important; gap: 8px !important; padding: 12px !important; }
.pessoa__topo { display: flex; align-items: center; gap: 12px; }
.mini-fila { display: flex; flex-wrap: wrap; gap: 8px 14px; padding-left: 4px; }
.mini-fila span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; }
.mini-fila img { width: 36px; height: 36px; }
.nav { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); margin-top: auto; background: var(--branco); border: var(--borda); border-radius: 22px; box-shadow: 4px 4px 0 var(--marinho); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 5px; gap: 5px; }
.nav button { min-height: 52px; border: 0; border-radius: 14px; background: transparent; font-size: 15px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.nav button[aria-current="page"] { background: var(--amarelo); }

@media (prefers-reduced-motion: reduce) { .botao:active { transform: none; } }
