/* Casca: cabeçalho vinho → tinta com o logo e o placar do dia, barra de seções em tinta
   (no celular ela desce para o rodapé, ao alcance do polegar) e a página. */
body { background: var(--fundo); }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icone { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.topo { position: relative; color: var(--sobre-marca); background:
  radial-gradient(900px 260px at 8% -40%, rgb(255 255 255 / .16), transparent 70%),
  linear-gradient(100deg, var(--vinho-1) 0%, var(--vinho-2) 46%, var(--tinta) 100%); }
.topo::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(115deg, rgb(255 255 255 / .035) 0 2px, transparent 2px 26px); }
.topo__linha { position: relative; z-index: 1; max-width: var(--largura); margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 16px; }
.topo__marca { display: flex; align-items: center; gap: 14px; min-width: 0; color: inherit; text-decoration: none; border-radius: 14px; }
.topo__logo { width: 54px; height: 54px; flex: none; border-radius: 15px; background: var(--superficie); display: grid; place-items: center; padding: 7px; box-shadow: 0 6px 16px rgb(0 0 0 / .28); }
.topo__logo img { width: 100%; height: 100%; object-fit: contain; }
.topo__titulo { display: block; font: 800 1.4rem/1.1 var(--fonte); letter-spacing: -.01em; }
.topo__sub { display: block; margin-top: 3px; font: 700 .6875rem/1.2 var(--fonte); letter-spacing: .13em; text-transform: uppercase; color: rgb(255 255 255 / .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.topo__marca > span:last-child { min-width: 0; }
.topo__placar { order: 2; display: flex; gap: 10px; }
.tile-topo { min-width: 164px; padding: 9px 14px 10px; border-radius: 14px; color: inherit; text-decoration: none; background: rgb(255 255 255 / .09); border: 1px solid rgb(255 255 255 / .2); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08); transition: background var(--duracao), transform var(--duracao); }
.tile-topo:hover { background: rgb(255 255 255 / .16); transform: translateY(-1px); }
.tile-topo__n { font: 800 1.375rem/1.1 var(--fonte); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; }
.tile-topo__n .icone { width: 18px; height: 18px; color: var(--estoque-viva); stroke-width: 3; }
.tile-topo__rotulo { font-size: .78rem; color: rgb(255 255 255 / .82); white-space: nowrap; }
.tile-topo__rotulo b { color: var(--sobre-marca); font-weight: 700; }
.tile-topo--quente { border-color: rgb(226 174 44 / .7); background: rgb(226 174 44 / .14); }

.topo__quem { order: 1; margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: var(--t-1); color: rgb(255 255 255 / .82); white-space: nowrap; }
.topo__quem .topo__mov { display: none; }
.topo__quem b { color: var(--sobre-marca); }
.topo__quem select { min-height: 38px; width: auto; max-width: 170px; background: rgb(255 255 255 / .1); color: var(--sobre-marca); border-color: rgb(255 255 255 / .28); font-weight: 700; padding: 4px 10px; }
.topo__quem select option { color: var(--texto); }
.botao-vidro { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 11px; border: 1px solid rgb(255 255 255 / .28); background: rgb(255 255 255 / .08); color: var(--sobre-marca); font: 700 var(--t-1)/1 var(--fonte); cursor: pointer; text-decoration: none; transition: background var(--duracao); }
.botao-vidro:hover { background: rgb(255 255 255 / .18); }
.botao-vidro[disabled] { opacity: .55; cursor: not-allowed; }
.topo__mais, .topo__pend { display: none; }

.menu { position: sticky; top: 0; z-index: 30; background: var(--noite); box-shadow: 0 8px 18px rgb(21 25 32 / .22); }
.menu__lista { max-width: var(--largura); margin: 0 auto; padding: 7px 14px; display: flex; gap: 4px; }
.menu__lista a { flex: 1 1 0; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--toque); padding: 0 10px; border-radius: 11px; color: rgb(255 255 255 / .76); text-decoration: none; font: 700 .9rem/1 var(--fonte); white-space: nowrap; transition: background var(--duracao), color var(--duracao); }
.menu__lista a:hover { background: rgb(255 255 255 / .08); color: var(--sobre-marca); }
.menu__lista a[aria-current="page"] { background: var(--superficie); color: var(--marca-forte); box-shadow: 0 4px 12px rgb(0 0 0 / .28); }
.menu__lista .icone { width: 18px; height: 18px; }
.pilula { min-width: 22px; padding: 2px 7px; border-radius: 999px; background: var(--dourado); color: var(--tinta); font: 800 .72rem/1.3 var(--fonte); text-align: center; font-variant-numeric: tabular-nums; }
.menu__lista a[aria-current="page"] .pilula { background: var(--marca); color: var(--sobre-marca); }

#heroi:empty { display: none; }
.pagina { max-width: var(--largura); margin: 0 auto; padding: 22px 20px 40px; }
.pagina > * + * { margin-top: 18px; }
.pagina--sobe { margin-top: -54px; position: relative; z-index: 2; }

/* ── celular: cabeçalho compacto, seções no rodapé ─────────────────────── */
@media (max-width: 820px) {
  :root { --barra-baixo: calc(62px + env(safe-area-inset-bottom, 0px)); }
  body { padding-bottom: var(--barra-baixo); }
  body.modo-tarefa { --barra-baixo: 0px; }
  .topo__linha { padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
  .topo__logo { width: 42px; height: 42px; border-radius: 12px; padding: 5px; }
  .topo__titulo { font-size: 1.15rem; } .topo__sub { font-size: .625rem; letter-spacing: .1em; }
  .topo__marca { flex: 1 1 0; }
  .topo__pend { display: inline-flex; align-items: center; gap: 6px; min-height: var(--toque); padding: 0 12px; border-radius: 12px; background: rgb(226 174 44 / .16); border: 1px solid rgb(226 174 44 / .6); color: var(--sobre-marca); font: 800 .85rem/1 var(--fonte); text-decoration: none; }
  .topo__pend .icone { width: 18px; height: 18px; color: var(--dourado); }
  .topo__mais { display: inline-grid; place-items: center; width: var(--toque); height: var(--toque); border-radius: 12px; border: 1px solid rgb(255 255 255 / .26); background: rgb(255 255 255 / .08); color: var(--sobre-marca); cursor: pointer; }
  .topo__quem .topo__mov { display: inline-flex; }
  .topo__quem { display: none; order: 9; margin-left: 0; white-space: normal; flex: 1 1 100%; flex-wrap: wrap; padding: 10px; border-radius: 14px; background: rgb(0 0 0 / .22); border: 1px solid rgb(255 255 255 / .14); }
  .topo--aberto .topo__quem { display: flex; }
  .topo__quem select { flex: 1 1 140px; max-width: none; min-height: var(--toque); }
  .topo__quem .botao-vidro { min-height: var(--toque); flex: 1 1 auto; }
  .topo__quem .topo__ola { flex: 1 1 100%; }
  .topo__placar { order: 8; flex: 1 1 100%; margin: 2px 0 4px; display: none; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .topo--inicio .topo__placar { display: grid; }
  .tile-topo { min-width: 0; padding: 8px 10px; border-radius: 12px; }
  .tile-topo__n { font-size: 1.2rem; } .tile-topo__rotulo { font-size: .7rem; white-space: normal; line-height: 1.25; display: block; }

  .menu { position: fixed; top: auto; bottom: 0; left: 0; right: 0; padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -8px 20px rgb(21 25 32 / .28); }
  body.modo-tarefa .menu { display: none; }
  .menu__lista { padding: 5px 6px; gap: 2px; }
  .menu__lista a { flex-direction: column; gap: 3px; min-height: 52px; padding: 5px 2px 4px; font-size: .66rem; letter-spacing: -.01em; border-radius: 12px; }
  .menu__lista .icone { width: 22px; height: 22px; }
  .menu__lista a.menu--so-largo { display: none; }
  .menu__lista .pilula { position: absolute; top: 3px; left: calc(50% + 6px); font-size: .62rem; min-width: 18px; padding: 1px 5px; }
  .pagina { padding: 14px 14px 28px; }
  .pagina > * + * { margin-top: 14px; }
  .pagina--sobe { margin-top: -40px; }
}
/* notebook com zoom (página de ~1024 px): o nome da unidade vale mais que o "olá, fulano" */
@media (min-width: 821px) and (max-width: 1160px) { .topo__ola { display: none; } .tile-topo { min-width: 150px; } }
