/* Telas do portal. Tokens e componentes do roteiro ficam em guia.css. */
html { -webkit-text-size-adjust: 100%; }
body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
.wrap { max-width: 760px; }
section { padding-block: 24px 8px; }
section.bloco { display: grid; gap: 12px; padding-block: 28px 0; }
section.bloco > h2 { font-size: 20px; margin: 0; }

.bar { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.bar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 56px; }
.bar .logo { width: 92px; }
.bar-xp { display: flex; gap: 10px; align-items: baseline; font-size: 13px; color: var(--muted); }
.bar-xp b { color: var(--accent); font-variant-numeric: tabular-nums; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabs a { display: grid; justify-items: center; gap: 2px; padding: 10px 2px 8px; font-size: 12px; color: var(--subtle); text-decoration: none; min-height: 60px; }
.tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.tabs a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.tabs a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.view { padding-block: 20px; }
.v-h { font-size: 28px; }
.quando { color: var(--muted); font-size: 15px; }
.view > .quando { margin-top: 6px; }
.vazio { color: var(--muted); font-size: 15px; border: 1px dashed var(--line); border-radius: 8px; padding: 16px; }
.rodape { font-size: 12px; color: var(--subtle); margin-top: 28px; }

.band { background: var(--band-bg); color: var(--band-fg); border-radius: 8px; padding: 22px 20px; display: grid; gap: 6px; }
.band h1 { font-size: 26px; }
.band p { opacity: .85; }
.band-n { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.band-n span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .65; }
.band-n b { font-size: 18px; }
.xp { height: 8px; background: var(--muted); border-radius: 4px; overflow: hidden; margin-top: 12px; }
.xp div { height: 100%; background: var(--accent); }
.band small { opacity: .7; font-size: 12px; }
.view .score { margin-top: 16px; }
.start.larga { width: 100%; margin-top: 16px; text-align: center; }

.missao { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 15px; }
.missao i { width: 18px; height: 18px; border: 1.5px solid var(--accent); border-radius: 50%; }
.missao.ok i { background: var(--accent); }
.missao.ok span { color: var(--muted); text-decoration: line-through; }
.missao b { font-variant-numeric: tabular-nums; color: var(--accent); }

.acao { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; gap: 12px; }
.acao-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.acao-top .label { color: var(--accent); }
.acao-top h3 { font-size: 18px; margin-top: 2px; overflow-wrap: anywhere; }
.acao-sub { font-size: 13px; color: var(--subtle); text-align: right; }
.card-extra { display: grid; gap: 10px; }
.card-extra:empty { display: none; }
.acao-bts { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-b { font: inherit; font-size: 14px; font-weight: 700; min-height: 40px; padding: 8px 14px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; }
.mini-b:hover { border-color: var(--accent); }
.mini-b.primary { background: var(--accent); border-color: var(--accent); color: var(--band-fg); }
.mini-b:focus-visible, .chip:focus-visible, .cena:focus-visible, .provinha:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.ver-mais { font-size: 14px; font-weight: 700; color: var(--accent); }

.msg-pe { display: flex; flex-wrap: wrap; gap: 8px; }
.msg-pe .copy { text-decoration: none; min-height: 36px; padding: 6px 14px; display: inline-flex; align-items: center; }
.msg-it { display: grid; gap: 6px; }
.grupo { display: grid; gap: 12px; }
.grupo-t { font-size: 16px; color: var(--accent); }
.guia-box { display: grid; gap: 20px; margin-top: 14px; }
.guia-box section { padding-block: 0; }
.guia-box section > h2 { display: none; }
.guia-t { font-size: 22px; }
.guia-box .quando { margin-top: -14px; }
.guia-t + .quando { margin-top: -14px; }
.mini-solo { justify-self: start; }

.preenche { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-top: 14px; }
@media (max-width: 560px) { .preenche { grid-template-columns: 1fr; } }
.preenche .fld input { font-size: 16px; padding: 10px 12px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-block: 16px 4px; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; flex: none; }
.chip[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.chips-l { position: sticky; top: 56px; background: var(--bg); z-index: 10; margin-top: 8px; padding-bottom: 12px; }
.levels { margin-top: 16px; }

details.nova { margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
details.nova summary { padding: 14px 16px; font-weight: 700; cursor: pointer; color: var(--accent); }
.nova-f { display: grid; gap: 12px; padding: 0 16px 16px; }

.turno { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.turno summary { display: flex; justify-content: space-between; padding: 13px 16px; font-weight: 700; cursor: pointer; }
.turno summary b { color: var(--accent); font-variant-numeric: tabular-nums; }
.item { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 15px; cursor: pointer; align-items: start; }
.item input { width: 20px; height: 20px; accent-color: var(--accent); margin: 2px 0 0; }

.stepper { display: grid; grid-template-columns: 1fr 44px 40px 44px; align-items: center; gap: 6px; }
.stepper b { text-align: center; font-size: 18px; font-variant-numeric: tabular-nums; }
.stepper .mini-b { padding: 0; font-size: 20px; }
.rel { font-family: var(--font); font-size: 15px; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; white-space: pre-wrap; }

.prov-n { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.provinha, .cena { font: inherit; color: var(--fg); text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.provinha { border: 1.5px solid var(--accent); margin-top: 16px; }
.provinha b { display: block; font-size: 16px; }
.provinha .label { color: var(--accent); }
.provinha:hover, .cena:hover { border-color: var(--accent); }
.cenas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .cenas { grid-template-columns: 1fr; } }
.cena b { display: block; }
.cena span { font-size: 13px; color: var(--muted); }
.cena .nova-t { color: var(--accent); font-weight: 700; }
.stars { display: inline-flex; gap: 3px; flex: none; }
.stars i { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--accent); }
.stars i.on { background: var(--accent); }
.medalhas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .medalhas { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.medalha { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 14px 6px; border: 1px solid var(--line); border-radius: 8px; color: var(--subtle); min-width: 0; }
.medalha b { font-size: 13px; line-height: 1.25; }
.medalha small { font-size: 11px; line-height: 1.3; }
.med-i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; border: 2px dashed var(--line); }
.medalha.on { background: var(--surface); border-color: var(--accent); color: var(--fg); }
.medalha.on .med-i { background: var(--accent); border: 0; color: var(--band-fg); }

.cena-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chat { display: grid; gap: 10px; margin-top: 16px; }
.bolha { max-width: 86%; padding: 11px 14px; border-radius: 8px; font-size: 16px; }
.bolha.ela { background: var(--surface); border: 1px solid var(--line); justify-self: start; }
.bolha.eu { background: var(--accent-soft); color: var(--accent-ink); justify-self: end; }
.narra { font-size: 14px; color: var(--muted); font-style: italic; }
.fb { font-size: 14px; padding: 2px 0 2px 12px; border-left: 2px solid var(--line); color: var(--muted); }
.fb.boa { border-color: var(--accent); }
.fb.boa b { color: var(--accent); }
.fb.ruim b { color: var(--fg); }
.chat-acoes { display: grid; gap: 10px; margin-top: 18px; }
.res { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 16px 0; }
.res .stars i { width: 20px; height: 20px; }
.res-n { font-size: 24px; font-weight: 700; }
.quiz { display: grid; gap: 14px; margin-top: 18px; }
.quiz-q { font-size: 22px; }
.big:disabled { cursor: default; color: var(--muted); }
.big.certa { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.big.errada { text-decoration: line-through; }

.toasts { position: fixed; left: 0; right: 0; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 70; display: grid; justify-items: center; gap: 6px; pointer-events: none; padding-inline: 16px; }
.toast { background: var(--band-bg); color: var(--band-fg); font-size: 14px; font-weight: 700; padding: 9px 16px; border-radius: 8px; animation: rise .2s ease; }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

.fora { padding-block: 64px; display: grid; gap: 14px; }
.fora .logo { width: 120px; }
.fora h1 { font-size: 30px; }
