html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  font-family: Arial, sans-serif;
}

#stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#canvas-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas {
  display: block;
}

.live-source {
  margin: 0;
  font-size: 13px;
  color: #e6e6e6;
}

.live-source a {
  color: #8fd3ff;
}

.hidden {
  display: none !important;
}

.access-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 900;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
}

.access-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: #2fbf71;
  color: #08180e;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.access-hint {
  margin: 0;
  font-size: 14px;
  color: #f3f3f3;
}

.access-status {
  max-width: 520px;
  margin: 0;
  padding: 0 16px;
  font-size: 13px;
  line-height: 1.4;
  color: #d7d7d7;
  text-align: center;
}

.no-access #canvas-container canvas {
  filter: blur(6px) brightness(0.65);
  transition: filter 180ms ease;
}

.permission-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1000;
  padding: 16px;
  box-sizing: border-box;
}

.permission-card {
  width: min(520px, 100%);
  background: #111;
  border: 1px solid #2f2f2f;
  border-radius: 12px;
  padding: 20px;
  color: #f5f5f5;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.permission-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.permission-card p {
  margin: 0 0 10px;
  line-height: 1.4;
}

.permission-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.permission-actions button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
}

#camera-allow {
  background: #2fbf71;
  color: #08180e;
}

#camera-decline {
  background: #3c3c3c;
  color: #f5f5f5;
}
