* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.call-screen {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.call-screen__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(0px) brightness(0.85);
  transform: scale(1.02);
}

.call-screen__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.05) 18%,
    rgba(0, 0, 0, 0.05) 60%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

.status-bar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 18px 24px 0;
}

.status-bar__time {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.call-info {
  position: relative;
  z-index: 2;
  margin-top: 12vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
}

.call-info__avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 18px;
}

.call-info__name {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.call-info__type {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.call-actions {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 48px 56px;
}

.call-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.call-btn svg {
  width: 26px;
  height: 26px;
}

.call-btn > svg,
.call-btn::before {
  content: "";
}

.call-btn__label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.call-btn--decline svg,
.call-btn--answer svg {
  display: block;
}

.call-btn--decline,
.call-btn--answer {
  position: relative;
}

.call-btn--decline > svg,
.call-btn--answer > svg {
  display: flex;
  align-items: center;
  justify-content: center;
}

.call-btn--decline {
  --btn-color: #ff3b30;
}

.call-btn--answer {
  --btn-color: #34c759;
  position: relative;
  z-index: 0;
}

.call-btn--decline svg,
.call-btn--answer svg {
  padding: 20px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--btn-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}

.call-btn--answer svg {
  position: relative;
  z-index: 1;
  animation: answer-vibrate 1.1s ease-in-out infinite;
}

.call-btn--answer::before,
.call-btn--answer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 62px;
  height: 62px;
  margin-left: -31px;
  border-radius: 50%;
  background: var(--btn-color);
  z-index: -1;
  pointer-events: none;
  animation: answer-pulse 1.65s cubic-bezier(0.4, 0, 0.5, 1) infinite;
}

.call-btn--answer::after {
  animation-delay: 0.55s;
}

@keyframes answer-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

@keyframes answer-vibrate {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  10% { transform: translate(-1.5px, -1px) rotate(-4deg); }
  20% { transform: translate(1.5px, -1px) rotate(4deg); }
  30% { transform: translate(-1.5px, 1px) rotate(-3deg); }
  40% { transform: translate(1.5px, 1px) rotate(3deg); }
  50% { transform: translate(-1px, -1px) rotate(-2deg); }
  60% { transform: translate(1px, -1px) rotate(2deg); }
  70% { transform: translate(-1px, 1px) rotate(-1deg); }
  80% { transform: translate(1px, 1px) rotate(1deg); }
  90% { transform: translate(0, 0) rotate(0deg); }
}

.call-btn:active svg {
  transform: scale(0.92);
  animation-play-state: paused;
}

@media (min-width: 481px) {
  body {
    background: #111;
  }
  .call-screen {
    height: 100vh;
    max-height: 960px;
    margin-top: 0;
    border-radius: 0;
  }
}
