*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
}

body {
  background: #030303;
  color: #fff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -30%;
  background:
    radial-gradient(ellipse 45% 40% at 30% 40%, rgba(55, 55, 55, 0.35), transparent 55%),
    radial-gradient(ellipse 40% 45% at 70% 60%, rgba(40, 40, 40, 0.3), transparent 50%);
  animation: bg-drift 14s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: -25%;
  background:
    radial-gradient(ellipse 38% 34% at 22% 28%, rgba(255, 123, 0, 0.34), transparent 58%),
    radial-gradient(ellipse 34% 40% at 78% 72%, rgba(255, 102, 0, 0.28), transparent 60%);
  animation: orange-drift 16s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes bg-drift {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.85;
  }
  100% {
    transform: translate(2%, -1.5%) scale(1.06);
    opacity: 1;
  }
}

@keyframes orange-drift {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.65;
  }
  100% {
    transform: translate(-2%, 1.5%) scale(1.08);
    opacity: 1;
  }
}

.inactive-screen {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.1rem;
  text-align: center;
  padding: 1.5rem;
}

.title-anim {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: title-pulse 4s ease-in-out infinite;
}

@keyframes title-pulse {
  0%,
  100% {
    opacity: 0.88;
    text-shadow: 0 0 0 transparent;
  }
  50% {
    opacity: 1;
    text-shadow:
      0 0 28px rgba(255, 255, 255, 0.12),
      0 0 44px rgba(255, 122, 0, 0.38);
  }
}

.standby {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  display: grid;
  place-items: center;
}

.standby__ring {
  position: absolute;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 123, 0, 0.72);
  opacity: 0;
  animation: ring-out 3.2s ease-out infinite;
}

.standby__ring--2 {
  animation-delay: 1.05s;
}

.standby__ring--3 {
  animation-delay: 2.1s;
}

@keyframes ring-out {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  70% {
    opacity: 0.2;
  }
  100% {
    transform: scale(14);
    opacity: 0;
  }
}

.standby__dot {
  position: relative;
  z-index: 1;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #ff7a00;
  box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.55);
  animation: standby-breathe 2.8s ease-in-out infinite;
}

@keyframes standby-breathe {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 122, 0, 0);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
    box-shadow: 0 0 26px 4px rgba(255, 122, 0, 0.62);
  }
}

.wave {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 1.25rem;
}

.wave span {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #ff8a1f;
  animation: wave-bob 1.35s ease-in-out infinite;
}

.wave span:nth-child(2) {
  animation-delay: 0.2s;
}

.wave span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes wave-bob {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  50% {
    transform: translateY(-8px);
    opacity: 0.95;
  }
}

.status {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #ff8f2f;
}

.status-anim {
  animation: status-fade 3s ease-in-out infinite;
}

@keyframes status-fade {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

.status-note {
  margin: 0;
  max-width: 22rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #b57c53;
}

.note-anim {
  animation: note-fade 5s ease-in-out infinite;
}

@keyframes note-fade {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.85;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .title-anim,
  .standby__ring,
  .standby__dot,
  .wave span,
  .status-anim,
  .note-anim {
    animation: none !important;
  }

  body::before {
    transform: none;
    opacity: 0.9;
  }

  body::after {
    transform: none;
    opacity: 0.8;
  }
}
