/* Clauffee · Etapa 2 — casca da página de cada estilo (o quarteirão ocupa tudo; painel discreto embaixo) */
@font-face { font-family: "Sora"; src: url("../vendor/fontes/Sora-variavel.ttf") format("truetype"); font-weight: 100 800; font-display: swap; }
:root { --tinta: #0a0a0a; --papel: #efede6; --marca: #ad2926; --fundo: #f5f2ec; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--fundo); color: var(--tinta); font-family: "Sora", system-ui, sans-serif; overflow: hidden; transition: background-color 0.9s ease; }
html.noite, html.noite body { background: #160f0e; }
#palco { position: fixed; inset: 0; }
#palco canvas { display: block; width: 100%; height: 100%; outline: none; -webkit-tap-highlight-color: transparent; }
html:not(.pronto) #palco::after { content: "montando o quarteirão…"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; letter-spacing: 0.08em; opacity: 0.55; }

.painel { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 999px;
  background: rgba(239, 237, 230, 0.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 6px 22px rgba(35, 31, 18, 0.12);
  font-size: 12px; white-space: nowrap; z-index: 2; transition: background-color 0.9s ease, color 0.9s ease; }
.painel .marca { padding: 0 6px 0 10px; font-weight: 600; letter-spacing: 0.02em; }
.painel .marca::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--marca); margin-right: 7px; vertical-align: 1px; }
.painel .grupo { display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(10, 10, 10, 0.05); }
.painel button { font: inherit; color: inherit; border: 0; background: transparent; padding: 7px 12px; border-radius: 999px; cursor: pointer; min-height: 32px; transition: background-color 0.25s, color 0.25s; }
.painel button:hover { background: rgba(10, 10, 10, 0.07); }
.painel button[aria-pressed="true"] { background: var(--tinta); color: var(--papel); }
.painel button:focus-visible { outline: 2px solid var(--marca); outline-offset: 1px; }
html.noite .painel { background: rgba(22, 15, 14, 0.72); color: var(--papel); box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 6px 22px rgba(0,0,0,0.4); }
html.noite .painel .grupo { background: rgba(239, 237, 230, 0.07); }
html.noite .painel button:hover { background: rgba(239, 237, 230, 0.1); }
html.noite .painel button[aria-pressed="true"] { background: var(--papel); color: var(--tinta); }

.dica { position: fixed; left: 0; right: 0; top: 12px; margin: 0; text-align: center; font-size: 11px; letter-spacing: 0.04em; opacity: 0.45; pointer-events: none; transition: opacity 0.6s, color 0.9s; }
html.noite .dica { color: var(--papel); }
.metricas { position: fixed; left: 10px; top: 8px; margin: 0; font: 11px/1.4 ui-monospace, monospace; background: rgba(10,10,10,0.72); color: #efede6; padding: 4px 8px; border-radius: 6px; z-index: 3; }

@media (max-width: 640px) {
  .painel { flex-wrap: wrap; justify-content: center; border-radius: 18px; width: calc(100% - 20px); gap: 6px; }
  .painel .marca { width: 100%; text-align: center; padding: 2px 0 0; }
  .painel button { padding: 7px 9px; }
}
html.embutido .painel, html.embutido .dica { display: none; }
