*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, #dbeafe 0%, #93c5fd 100%);
  color: #1e3a8a;
}

.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 1.5rem 2.5rem;
}

.title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}

.controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.record-button {
  width: 5.5rem;
  height: 5.5rem;
  border: none;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.record-button:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.record-button:active,
.record-button.is-recording {
  background: #1e40af;
  transform: scale(0.96);
  box-shadow: 0 6px 18px rgba(30, 64, 175, 0.45);
}

.record-button.is-recording {
  animation: pulse 1.2s ease-in-out infinite;
}

.record-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.mic-icon {
  width: 2.4rem;
  height: 2.4rem;
  fill: currentColor;
}

.status {
  margin: 0;
  min-height: 1.5rem;
  font-size: 0.95rem;
  text-align: center;
  color: #1e40af;
}

.status.is-error {
  color: #b91c1c;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45);
  }

  50% {
    box-shadow: 0 0 0 14px rgba(239, 68, 68, 0);
  }
}
