:root {
  color-scheme: dark;
  font-family: Inter, Arial, sans-serif;
  background: #071426;
  color: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, #123e63, transparent 35%),
    #071426;
}

button {
  border: 0;
  cursor: pointer;
  color: white;
  font: inherit;
  font-weight: 800;
}

.app {
  width: min(1180px, 100%);
  margin: auto;
  padding: 28px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 35px;
}

.marca {
  color: #38bdf8;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 4px;
  margin: 0 0 8px;
}

h1, h2, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(25px, 4vw, 44px);
}

.estado {
  border-radius: 30px;
  padding: 12px 20px;
  font-weight: 900;
}

.online {
  background: #14532d;
  color: #86efac;
}

.offline {
  background: #451a1a;
  color: #fca5a5;
}

.configuracao {
  text-align: center;
  background: #0f2138;
  border: 2px solid #1e3a5f;
  border-radius: 28px;
  padding: 35px;
}

.seletores,
.ramais {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.seletores button,
.ramal {
  min-height: 145px;
  border-radius: 22px;
  background: #16314f;
  border: 2px solid #28557f;
  font-size: 23px;
  transition: .18s;
}

.seletores button:hover,
.ramal.livre:hover {
  transform: translateY(-4px);
  background: #1d4f78;
  border-color: #38bdf8;
}

.ramal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.numero {
  font-size: 16px;
  color: #7dd3fc;
}

.disponibilidade {
  font-size: 16px;
  color: #86efac;
}

.ramal.offline {
  opacity: .42;
  cursor: not-allowed;
}

.ramal.proprio {
  border-color: #facc15;
  cursor: default;
}

.instrucao {
  color: #cbd5e1;
  font-size: 19px;
}

.acoes {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
}

.secundario {
  background: #334155;
  border-radius: 14px;
  padding: 13px 20px;
}

.chamada {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 25px;
  background:
    radial-gradient(circle, #173f62, #030a13 70%);
}

.telefone {
  font-size: clamp(110px, 20vw, 210px);
  animation: tocar .35s infinite alternate;
  transform-origin: center;
}

.chamada > p:first-of-type {
  color: #7dd3fc;
  font-size: clamp(24px, 5vw, 54px);
  font-weight: 950;
}

.chamada h2 {
  font-size: clamp(34px, 7vw, 76px);
  margin-bottom: 15px;
}

#situacao {
  color: #cbd5e1;
  font-size: 22px;
}

.botoes-chamada {
  display: flex;
  gap: 24px;
  margin-top: 35px;
}

.botoes-chamada button,
.desligar {
  border-radius: 22px;
  padding: 25px 45px;
  font-size: clamp(22px, 4vw, 38px);
}

.atender {
  background: #16a34a;
}

.recusar,
.desligar {
  background: #dc2626;
}

.oculto {
  display: none !important;
}

@keyframes tocar {
  from { transform: rotate(-12deg) scale(.96); }
  to { transform: rotate(12deg) scale(1.04); }
}

@media (max-width: 760px) {
  .app {
    padding: 18px;
  }

  header {
    align-items: flex-start;
    flex-direction: column;
  }

  .seletores,
  .ramais {
    grid-template-columns: repeat(2, 1fr);
  }

  .seletores button,
  .ramal {
    min-height: 115px;
    font-size: 18px;
  }

  .botoes-chamada {
    flex-direction: column;
    width: 100%;
  }
}
