* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-overlay: linear-gradient(165deg, #042314 0%, #063d23 42%, #0c5f34 100%);
  --card-bg: rgba(4, 36, 20, 0.8);
  --card-border: rgba(230, 127, 35, 0.32);
  --text-main: #f6f6f4;
  --text-muted: #d8ddda;
  --primary-1: #009241;
  --primary-2: #0a6a36;
  --accent-1: #e67f23;
  --accent-2: #fb8e29;
  --glass-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

body {
  min-height: 100vh;
  background: var(--bg-overlay);
  color: var(--text-main);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
}

#conteudo.card {
  width: min(840px, 100%);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  box-shadow: var(--glass-shadow);
  padding: clamp(1.2rem, 3vw, 2rem);
  display: grid;
  gap: clamp(1rem, 2vw, 1.4rem);
}

.card-header {
  display: grid;
  gap: 0.4rem;
  text-align: center;
}

.badge {
  justify-self: center;
  padding: 0.32rem 0.7rem;
  border: 1px solid rgba(251, 142, 41, 0.45);
  border-radius: 999px;
  font-size: 0.78rem;
  color: #ffe2c7;
  background: rgba(230, 127, 35, 0.2);
  letter-spacing: 0.02em;
}

.card-header h1 {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 700;
}

.descricao {
  color: var(--text-muted);
  font-size: clamp(0.9rem, 1.8vw, 1rem);
}

#relogio {
  width: 100%;
  border: 1px solid rgba(251, 142, 41, 0.36);
  border-radius: 18px;
  padding: clamp(0.9rem, 2.5vw, 1.8rem);
  text-align: center;
  letter-spacing: 0.08em;
  font-size: clamp(2rem, 10vw, 5.6rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #f8fafc;
  background: radial-gradient(circle at top, rgba(0, 146, 65, 0.32), rgba(2, 30, 17, 0.78));
  text-shadow: 0 0 18px rgba(251, 142, 41, 0.22);
}

#botoes {
  width: 100%;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.button {
  border: 0;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f8fafc;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary-1), var(--primary-2));
  box-shadow: 0 8px 22px rgba(0, 146, 65, 0.4);
}

.button-secondary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 8px 22px rgba(230, 127, 35, 0.38);
}

.volume-control {
  width: 100%;
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 226, 199, 0.2);
}

.volume-control label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fef6eb;
}

.volume-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  align-items: center;
}

#volumeRange {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

#volumeRange::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
}

#volumeRange::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -6px;
  border-radius: 50%;
  border: 2px solid #fff2e2;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

#volumeRange::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
}

#volumeRange::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff2e2;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

#volumeValue {
  min-width: 3.3rem;
  text-align: right;
  font-weight: 700;
  color: #ffe2c7;
}

.pwa-actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.button-ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 226, 199, 0.33);
  box-shadow: none;
}

.rodape {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

@media (max-width: 768px) {
  #botoes {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
