* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #87b87a;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: #222;
}

#cv {
  display: block;
  width: 100%;
  height: 100%;
  background: #87b87a;
  cursor: crosshair;
}

.connect {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  z-index: 20;
}

.connect.hidden {
  display: none;
}

.connect-card {
  text-align: center;
  max-width: min(92vw, 26rem);
  padding: 1.5rem 1.25rem;
}

.connect-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.connect-copy {
  margin: 0 0 1.25rem;
  color: #666;
  line-height: 1.45;
  font-size: 0.98rem;
}

.connect-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: stretch;
}

.connect-btn {
  appearance: none;
  border: 1px solid #222;
  background: #1a1a1a;
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  padding: 0.85rem 1.35rem;
  border-radius: 10px;
  cursor: pointer;
}

.connect-btn-alt {
  background: #fff;
  color: #1a1a1a;
}

.connect-btn-alt:hover {
  background: #f0f0f0;
}

.connect-btn:hover {
  background: #333;
}

.connect-btn-alt:hover {
  background: #f0f0f0;
}

.connect-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.connect-status {
  margin: 0.9rem 0 0;
  font-size: 0.88rem;
  color: #888;
  min-height: 1.3em;
}

.connect-status.on {
  color: #1a7f4b;
}

.connect-status.err {
  color: #b33;
}

.connect-note {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: #999;
}

.hint,
.pad {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  z-index: 5;
}

.hint {
  bottom: 28px;
  color: #888;
  text-align: center;
  max-width: min(92vw, 40rem);
  line-height: 1.35;
  transition: opacity 0.6s ease;
}

.hint.fade {
  opacity: 0;
}

.pad {
  top: 18px;
  color: #aaa;
  font-size: 0.8rem;
}

.pad.on {
  color: #444;
}

kbd {
  display: inline-block;
  padding: 0 0.35em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.85em;
  background: #f6f6f6;
}
