* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Noto Sans SC", sans-serif;
  background: radial-gradient(circle at 20% 20%, #fff6e8, #e9f4ff 45%, #f7fbe9);
  color: #14213d;
  min-height: 100vh;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d8e4ef;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(20, 33, 61, 0.08);
  padding: 20px;
}

h1 {
  margin-top: 0;
  font-family: "Space Grotesk", "Source Sans 3", sans-serif;
  letter-spacing: 0.02em;
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.status {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff2cc;
  color: #6c5b00;
  font-weight: 600;
}

.status.ready {
  background: #d9fbe3;
  color: #055c2e;
}

.status.error {
  background: #ffd7d7;
  color: #861b1b;
}

#joinUrl,
#scanText {
  word-break: break-all;
}

#qrcode,
#incomingQrcode {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

button {
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: #1f6feb;
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

#reader {
  width: 100%;
  max-width: 420px;
}
