:root {
  --black: #0e0e0e;
  --charcoal: #232323;
  --gold: #c6a357;
  --light: #f5f3ee;
  --muted: #a8a39a;
  --danger: #d9534f;
  --ok: #75c98d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(198, 163, 87, 0.16), transparent 34rem),
    linear-gradient(145deg, #111 0%, #070707 100%);
  color: var(--light);
  font-family: Bahnschrift, "Segoe UI", Arial, sans-serif;
}

.doorbell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.panel {
  width: min(520px, 100%);
  border: 1px solid rgba(245, 243, 238, 0.18);
  border-radius: 28px;
  padding: 28px;
  background: rgba(14, 14, 14, 0.82);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
}

.intro {
  margin: 18px auto 28px;
  color: var(--light);
  font-size: 18px;
  line-height: 1.35;
  max-width: 32rem;
}

.status {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--light);
  font-size: 17px;
}

.status.ok {
  color: var(--ok);
}

.status.bad {
  color: var(--danger);
}

.privacy,
.small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.ring-button,
.retry-button {
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
}

.ring-button {
  width: min(74vw, 280px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto 26px;
  padding: 0;
  font-size: clamp(34px, 11vw, 58px);
  line-height: 0.94;
  background: var(--gold);
  color: #090909;
  box-shadow:
    0 0 0 10px rgba(198, 163, 87, 0.16),
    0 18px 48px rgba(0, 0, 0, 0.42);
}

.retry-button {
  width: 100%;
  background: var(--light);
  font-size: 18px;
  margin-top: 18px;
  padding: 18px 24px;
}

.scanner-light {
  position: relative;
  overflow: hidden;
  width: min(220px, 70%);
  height: 10px;
  margin: 22px auto 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.65);
}

.scanner-light span {
  position: absolute;
  top: 0;
  left: -35%;
  width: 35%;
  height: 100%;
  border-radius: inherit;
  background:
    radial-gradient(circle, rgba(255, 75, 60, 1) 0%, rgba(255, 26, 16, 0.92) 34%, rgba(255, 26, 16, 0.18) 68%, transparent 100%);
  box-shadow:
    0 0 12px rgba(255, 30, 20, 0.95),
    0 0 28px rgba(255, 30, 20, 0.55);
  animation: scanner-sweep 1.55s ease-in-out infinite alternate;
}

@keyframes scanner-sweep {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(385%);
  }
}

button:disabled {
  opacity: 0.45;
  box-shadow: none;
}

button:not(:disabled) {
  cursor: pointer;
}

.ring-button:not(:disabled):active {
  transform: scale(0.96);
  box-shadow:
    0 0 0 14px rgba(198, 163, 87, 0.2),
    0 10px 28px rgba(0, 0, 0, 0.46);
}

@media (max-width: 420px) {
  .doorbell {
    padding: 12px;
  }

  .panel {
    padding: 22px;
    border-radius: 22px;
  }
}
