:root {
  --ameixa: #3b1f3a; --ameixa-2: #b79bb5; --sangue: #c8414b; --coral: #e8735a;
  --creme: #fbf6f1; --papel: #ffffff; --tinta: #2a1c29; --suave: #74626f; --linha: #eadfe3;
  --raio: 18px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: 'Montserrat', system-ui, sans-serif; background: var(--creme); color: var(--tinta); padding-bottom: 92px; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; letter-spacing: -.01em; margin: 0; }
h1 { font-size: 26px; margin: 6px 0 4px; line-height: 1.15; }
.topo { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--ameixa); color: #fff; }
.marca { display: flex; gap: 10px; align-items: center; }
.marca b { display: block; font-family: 'Fraunces', serif; font-size: 18px; }
.marca small { opacity: .75; font-size: 11px; }
.logo { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--coral); font-family: 'Fraunces', serif; font-style: italic; font-size: 20px; }
.btn-icone { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #ffffff55; background: none; color: #fff; font-weight: 700; }
main { max-width: 560px; margin: 0 auto; padding: 14px 16px; }
.sub { color: var(--suave); margin: 0 0 14px; line-height: 1.5; font-size: 14px; }
.card { background: var(--papel); border-radius: var(--raio); padding: 16px; margin: 12px 0; box-shadow: 0 1px 2px #3b1f3a12, 0 6px 20px #3b1f3a0a; }
.tit { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--suave); font-weight: 700; margin: 22px 0 8px; }
.btn { display: block; width: 100%; margin-top: 12px; padding: 15px; border: 0; border-radius: 14px; background: var(--sangue); color: #fff; font: 700 15px 'Montserrat', sans-serif; cursor: pointer; }
.btn.claro { background: #fff; color: var(--ameixa); border: 1.5px solid var(--linha); }
.btn:disabled { opacity: .4; }
.mini { font-size: 12px; color: var(--suave); line-height: 1.5; }
.alerta { border-left: 3px solid var(--sangue); padding: 10px 12px; background: #c8414b12; border-radius: 0 10px 10px 0; font-size: 13.5px; line-height: 1.5; margin: 12px 0; }
.abas { position: fixed; bottom: 0; left: 0; right: 0; z-index: 4; display: flex; background: var(--papel); border-top: 1px solid var(--linha); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.abas button { flex: 1; background: none; border: 0; font: 600 11px 'Montserrat', sans-serif; color: var(--suave); padding: 6px 0; cursor: pointer; }
.abas button span { display: block; font-size: 19px; margin-bottom: 2px; }
.abas button.ativa { color: var(--sangue); }

/* escolhas */
.grade { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.op { display: flex; flex-direction: column; justify-content: flex-start; position: relative; text-align: left; background: var(--papel); border: 0; border-radius: var(--raio); padding: 0; overflow: hidden; cursor: pointer; box-shadow: 0 1px 2px #3b1f3a12, 0 6px 20px #3b1f3a0a; font-family: inherit; color: inherit; width: 100%; }
.op .capa { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #f6ece7; }
.op .tx { display: block; padding: 10px 12px 12px; }
.op b { display: block; font-family: 'Fraunces', serif; font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.op small { color: var(--suave); font-size: 12px; line-height: 1.35; display: block; }
.linha-op { flex-direction: row; gap: 12px; align-items: center; padding: 10px; }
.linha-op .capa { width: 84px; aspect-ratio: 1; border-radius: 12px; flex: none; }
.linha-op .tx { padding: 0; }
.barra { height: 6px; border-radius: 3px; background: var(--linha); overflow: hidden; margin-top: 7px; }
.barra i { display: block; height: 100%; background: var(--coral); }
.sessao { display: flex; gap: 12px; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--linha); cursor: pointer; background: none; border-width: 0 0 1px; width: 100%; text-align: left; font-family: inherit; color: inherit; }
.sessao .n { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: #f6ece7; color: var(--ameixa); }
.sessao.feita .n { background: var(--coral); color: #fff; }
.sessao b { display: block; font-size: 14px; font-weight: 600; }
.sessao small { color: var(--suave); font-size: 12px; }
ul.limpa { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.55; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 2px; border-bottom: 1px solid var(--linha); font-size: 14px; line-height: 1.4; cursor: pointer; }
.check input { width: 20px; height: 20px; flex: none; accent-color: var(--sangue); margin: 1px 0 0; }
.volta { background: none; border: 0; color: var(--suave); font: 600 13px 'Montserrat', sans-serif; padding: 4px 0; cursor: pointer; }
.escala { display: flex; gap: 4px; margin: 10px 0; }
.escala button { flex: 1; aspect-ratio: 1; border: 1.5px solid var(--linha); background: #fff; border-radius: 9px; font: 600 13px 'Montserrat', sans-serif; color: var(--tinta); padding: 0; cursor: pointer; }
.escala button.on { background: var(--ameixa); border-color: var(--ameixa); color: #fff; }

/* tocador */
#tocador { position: fixed; inset: 0; z-index: 10; background: linear-gradient(#fbf6f1, #f6e9e2); display: flex; flex-direction: column; }
.t-cena { flex: 1; min-height: 0; position: relative; }
#cena { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.t-cue { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); background: #3b1f3a; color: #fff; padding: 7px 16px; border-radius: 999px; font: 600 15px 'Fraunces', serif; white-space: nowrap; }
.t-topo { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: 12px 14px; padding-top: max(12px, env(safe-area-inset-top)); }
.t-topo button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #ffffffd9; color: var(--ameixa); font-weight: 700; flex: none; cursor: pointer; }
.t-barras { flex: 1; display: flex; gap: 3px; }
.t-barras i { flex: 1; height: 5px; border-radius: 3px; background: #3b1f3a22; overflow: hidden; display: block; }
.t-barras i b { display: block; height: 100%; width: 0; background: var(--sangue); }
.t-painel { background: #fff; border-radius: 22px 22px 0 0; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px #3b1f3a14; }
.t-etapa { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--suave); font-weight: 700; }
.t-painel h2 { font-size: 22px; margin: 2px 0 6px; line-height: 1.15; }
#tDicas { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.45; min-height: 58px; color: #4d3d4b; }
.t-relogio { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 6px; }
.t-relogio button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--linha); background: #fff; color: var(--ameixa); font-size: 17px; font-weight: 700; cursor: pointer; }
.t-tempo { position: relative; width: 84px; height: 84px; }
.t-tempo svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.t-tempo circle { fill: none; stroke: var(--linha); stroke-width: 7; }
#tArco { stroke: var(--sangue); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.t-tempo b { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Fraunces', serif; font-size: 28px; font-weight: 600; }
.t-painel .btn { margin-top: 8px; padding: 12px; }
.t-pare { text-align: center; font-size: 12px; color: var(--suave); margin: 8px 0 0; }
.t-pare button { background: none; border: 0; color: var(--sangue); font: 700 12px 'Montserrat', sans-serif; text-decoration: underline; padding: 0; cursor: pointer; }
@media (min-width: 821px) {
  #tocador { flex-direction: row; }
  .t-painel { width: 400px; border-radius: 0; display: flex; flex-direction: column; justify-content: center; padding: 26px; order: 2; }
  .t-topo { right: 400px; }
  #tDicas { font-size: 15px; }
  .t-painel h2 { font-size: 28px; }
}
dialog { border: 0; border-radius: 20px; padding: 20px; width: min(92vw, 460px); max-height: 86vh; color: var(--tinta); }
dialog::backdrop { background: #2a1c2999; }
dialog h2 { font-size: 21px; margin-bottom: 8px; }
dialog p { font-size: 14px; line-height: 1.55; margin: 8px 0; }
