:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17233c;
  background: transparent;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 220px;
  min-height: 100%;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

button:focus-visible {
  outline: 3px solid #75a9ff;
  outline-offset: 2px;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.coach {
  width: 100%;
  padding: 0.75rem;
}

.idle-view {
  display: grid;
  min-height: 160px;
  place-content: center;
  gap: 0.75rem;
}

.primary-button {
  color: #fff;
  background: #155eef;
}

.error-message {
  max-width: 30ch;
  margin: 0.75rem auto 0;
  color: #a31d1d;
  font-size: 0.875rem;
  text-align: center;
}

.call-view {
  display: grid;
  gap: 0.65rem;
}

.call-view[hidden],
.idle-view[hidden] {
  display: none;
}

.avatar-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 230px;
  max-height: calc(100vh - 76px);
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  background: #e9eef7;
}

.avatar-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.call-status {
  position: absolute;
  inset: 50% auto auto 50%;
  width: max-content;
  max-width: calc(100% - 2rem);
  margin: 0;
  transform: translate(-50%, -50%);
  color: #4a5670;
  font-size: 0.9rem;
  text-align: center;
}

.call-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.control-button {
  color: #17233c;
  background: #e1e7f0;
}

.end-button {
  color: #fff;
  background: #b42318;
}
