:root {
  color-scheme: dark;
  font-family: Inter, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  color: #eff1ff;
  background: #0b0c12;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 80% 0%, #24213e 0, transparent 38%), #0b0c12;
}
a {
  color: inherit;
}
.site-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: auto;
  padding: 0 24px;
}
.site-header nav {
  display: flex;
  gap: 24px;
}
.site-header nav a {
  color: #aeb2c7;
  text-decoration: none;
}
.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.page {
  max-width: 1080px;
  margin: auto;
  padding: 64px 24px 96px;
}
.hero {
  max-width: 680px;
  margin-bottom: 48px;
}
.eyebrow {
  color: #a78bfa;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 800;
}
h1 {
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.05;
  margin: 12px 0 20px;
}
h2 {
  margin: 0 0 10px;
}
p {
  color: #aeb2c7;
  line-height: 1.75;
}
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}
.character-card {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 24px;
  border: 1px solid #303247;
  border-radius: 22px;
  background: rgba(20, 21, 31, 0.84);
}
.character-card img,
.call-avatar {
  border-radius: 50%;
  box-shadow: 0 0 48px rgba(139, 92, 246, 0.24);
}
.button {
  display: inline-flex;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  color: white;
  background: #6d4aff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button.secondary {
  background: #303247;
}
.button.danger {
  background: #c33c58;
}
.button:focus-visible,
a:focus-visible {
  outline: 3px solid #c4b5fd;
  outline-offset: 3px;
}
.call-shell {
  text-align: center;
  max-width: 620px;
  margin: auto;
}
.call-shell h1 {
  font-size: 44px;
}
.back-link {
  display: block;
  text-align: left;
  color: #aeb2c7;
  text-decoration: none;
  margin-bottom: 40px;
}
.call-state {
  margin: 28px auto 12px;
  color: #c7cada;
}
.pulse {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #65697d;
  margin-right: 8px;
}
.state-active .pulse {
  background: #4ade80;
  box-shadow: 0 0 18px #4ade80;
}
.state-error .pulse {
  background: #fb7185;
}
.timer {
  font-variant-numeric: tabular-nums;
  font-size: 42px;
  font-weight: 300;
  letter-spacing: 0.08em;
  margin: 14px 0 26px;
}
.call-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.hint {
  font-size: 14px;
}
.page-heading {
  margin-bottom: 40px;
}
.history-list {
  display: grid;
  gap: 12px;
}
.history-list article {
  display: grid;
  grid-template-columns: 1fr auto 80px;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid #303247;
  border-radius: 16px;
  background: #14151f;
}
.history-list time {
  color: #8e92a8;
}
.history-list strong {
  text-align: right;
}
.status {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  background: #303247;
}
.status-completed {
  color: #86efac;
}
.status-failed {
  color: #fda4af;
}
.empty-state {
  border: 1px dashed #3a3c51;
  border-radius: 20px;
  padding: 48px;
  text-align: center;
  color: #aeb2c7;
}
.empty-state h1 {
  font-size: 32px;
}

@media (max-width: 620px) {
  .page {
    padding-top: 36px;
  }
  .character-card {
    align-items: flex-start;
  }
  .character-card img {
    width: 88px;
    height: 88px;
  }
  .history-list article {
    grid-template-columns: 1fr auto;
  }
  .history-list strong {
    grid-column: 2;
  }
}
