/* Cronometro da standup: ocupa a tela toda, tamanhos em vmin para ficar bom do celular a TV. */

body { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }

.topo {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--borda);
  background: var(--topo);
  backdrop-filter: saturate(180%) blur(20px);
}
.topo-logo { height: 38px; width: auto; }
.nome {
  font: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--texto);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  min-width: 0;
  flex: 1;
  max-width: 420px;
}
.nome:hover { border-color: var(--borda); }
.nome:focus { outline: none; border-color: var(--azul); background: var(--fundo-2); }
.topo-direita { margin-left: auto; display: flex; gap: 10px; align-items: center; }
:fullscreen .topo-direita { display: none; }
.voltar { text-decoration: none; }

.palco {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.5vmin;
  padding: 2vmin 16px;
}

/* --- Anel --- */
.relogio-anel { position: relative; width: min(62vmin, 92vw); aspect-ratio: 1; --fase: var(--marca); }
.relogio-anel svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.trilho { fill: none; stroke: var(--cartao-2); stroke-width: 9; }
.progresso {
  fill: none;
  stroke: var(--fase);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 565.49;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .25s linear, stroke .4s;
}
.centro {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1vmin;
}
.estado {
  font-size: max(13px, 2.4vmin);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fase);
}
.tempo {
  font-size: min(16vmin, 22vw);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.termina { font-size: max(13px, 2.2vmin); color: var(--texto-suave); min-height: 1.2em; }

.relogio-anel.final { --fase: #ff9f0a; }
.relogio-anel.esgotado { --fase: var(--perigo); }
.relogio-anel.esgotado .tempo { color: var(--perigo); animation: pisca 1s steps(2, start) infinite; }
.relogio-anel.pausado .tempo { opacity: .55; }
@keyframes pisca { to { opacity: .35; } }

/* --- Botoes --- */
.controles { display: flex; align-items: center; gap: 3vmin; }
.btn-principal {
  font: inherit;
  font-size: max(16px, 2.8vmin);
  font-weight: 600;
  min-width: max(170px, 26vmin);
  padding: 1.6vmin 3vmin;
  border: none;
  border-radius: 99px;
  background: var(--marca);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--sombra);
}
.btn-principal:hover { filter: brightness(1.08); }
.btn-principal.pausar { background: var(--cartao); color: var(--texto); border: 1px solid var(--borda); }
.btn-redondo {
  font: inherit;
  font-size: max(15px, 2.2vmin);
  font-weight: 600;
  width: max(52px, 8vmin);
  height: max(52px, 8vmin);
  border-radius: 50%;
  border: 1px solid var(--borda);
  background: var(--cartao);
  color: var(--texto);
  cursor: pointer;
  box-shadow: var(--sombra);
}
.topo .btn-redondo { width: 38px; height: 38px; font-size: 1rem; }
.btn-redondo:hover { border-color: var(--texto-suave); }

.secundarios { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.presets { display: flex; background: var(--cartao-2); border: 1px solid var(--borda); border-radius: 99px; padding: 3px; }
.presets button {
  font: inherit;
  font-weight: 600;
  background: none;
  border: none;
  color: var(--texto-suave);
  padding: 7px 14px;
  border-radius: 99px;
  cursor: pointer;
}
.presets button.ativo { background: var(--cartao); color: var(--texto); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.btn-texto {
  font: inherit;
  font-weight: 600;
  background: none;
  border: 1px solid var(--borda);
  border-radius: 99px;
  color: var(--texto);
  padding: 8px 16px;
  cursor: pointer;
}
.btn-texto:hover { background: var(--cartao); }
.atalhos { margin: 0; color: var(--texto-suave); font-size: .82rem; text-align: center; }
:fullscreen .secundarios, :fullscreen .atalhos { display: none; }

@media (max-width: 600px) {
  .topo { padding: 10px 14px; gap: 10px; }
  .topo-logo { height: 30px; }
  .atalhos { display: none; }
}
