:root {
  --bg: #0b1020;
  --bg2: #131a33;
  --fg: #eef1ff;
  --muted: #8b93b8;
  --accent: #7c5cff;
  --accent2: #4ad3ff;
  --ok: #38e08a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: radial-gradient(120% 90% at 50% 0%, var(--bg2), var(--bg) 60%);
  color: var(--fg);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.screen {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: max(18px, env(safe-area-inset-top)) 20px max(18px, env(safe-area-inset-bottom));
  max-width: 520px;
  margin: 0 auto;
}

.top { display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.brand .dot { color: var(--accent); margin-left: 4px; font-size: 12px; vertical-align: middle; }
.status {
  font-size: 13px; color: var(--muted);
  padding: 6px 12px; border: 1px solid #ffffff1a; border-radius: 999px;
}
.status.ok { color: var(--ok); border-color: #38e08a44; }
.status.err { color: #ff7a7a; border-color: #ff7a7a44; }

.center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }

.call {
  position: relative;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: none;
  color: white;
  font-size: 22px; font-weight: 600;
  background: linear-gradient(160deg, var(--accent), #5b34d6);
  box-shadow: 0 20px 60px -20px var(--accent), inset 0 0 0 1px #ffffff22;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.call:active { transform: scale(.97); }
.call:disabled { filter: grayscale(.35) opacity(.85); }
.call .label { position: relative; z-index: 2; }
.call .ring {
  position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid var(--accent2); opacity: .35;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .35; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { opacity: 0; }
}

.call.on { background: linear-gradient(160deg, #ff5c7a, #d6344f); box-shadow: 0 20px 60px -20px #ff5c7a, inset 0 0 0 1px #ffffff22; }
.call.on .ring { border-color: #ff9db0; }

.pin-row { display: flex; justify-content: center; }
.pin {
  width: 180px; text-align: center; letter-spacing: 6px; font-size: 20px;
  padding: 12px 14px; border-radius: 12px; color: var(--fg);
  background: #ffffff10; border: 1px solid #ffffff2a; outline: none;
}
.pin:focus { border-color: var(--accent); }

.hint { color: var(--muted); font-size: 14px; text-align: center; max-width: 320px; }

.bottom { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.install {
  background: #ffffff14; color: var(--fg);
  border: 1px solid #ffffff2a; border-radius: 12px;
  padding: 12px 18px; font-size: 15px; font-weight: 600; cursor: pointer;
}
.install:active { background: #ffffff22; }
.meta { color: #5b6390; font-size: 12px; }
