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

:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --ink: #1c1e21;
  --muted: #7a7f87;
  --accent: #2f6fed;
  --accent-dark: #2454bd;
  --danger: #e0343c;
  --danger-dark: #b92a31;
  --radius: 20px;
}

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px;
}

.brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(20, 24, 40, 0.08);
  padding: 48px 44px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.title { font-size: 26px; font-weight: 700; }
.subtitle { font-size: 15px; color: var(--muted); line-height: 1.5; }

.call-btn {
  margin-top: 16px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  padding: 18px 60px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.call-btn:hover { background: var(--accent-dark); }
.call-btn:active { transform: scale(0.97); }

.hangup-btn {
  margin-top: 12px;
  border: none;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 34px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.hangup-btn:hover { background: var(--danger-dark); }

.hidden { display: none !important; }

.spinner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 5px solid rgba(47, 111, 237, 0.15);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.preview {
  width: 100%;
  max-width: 240px;
  border-radius: 12px;
  background: #0f1115;
  transform: scaleX(-1);
}
.preview.small {
  position: relative;
  max-width: 150px;
}

.card.call {
  position: fixed;
  inset: 0;
  max-width: none;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  background: #0f1115;
  justify-content: flex-start;
}

.videos {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0f1115;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.remote {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview.small {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 24vw;
  max-width: 200px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 12px;
}

.call .title {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  font-size: 22px;
}

.call .hangup-btn {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0;
  z-index: 5;
}
