:root {
  --bg: #111111;
  --panel: #1c1c1c;
  --line: rgba(255, 255, 255, 0.10);
  --red: #fc5957;
  --cream: #f2ede4;
  --muted: #8a8a8a;
  --radius: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---- Stage / canvas ---- */
.stage {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
}
#card { display: block; width: 100%; height: auto; }

/* ---- Controls ---- */
.controls { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.btn {
  font: inherit;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 13px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.06s ease, opacity 0.2s ease, background 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn--primary { background: var(--red); color: #fff; }
.btn--ghost { background: transparent; color: var(--cream); border: 1px solid var(--line); }
.btn--link {
  background: none; border: none; color: var(--muted);
  font-weight: 600; padding: 4px 6px; border-radius: 6px;
}
.btn--link:hover { color: var(--cream); }

.ic { width: 17px; height: 17px; fill: currentColor; flex: none; }

/* ---- Phase 1: photo source ---- */
.source { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.source__or { font-size: 13px; color: var(--muted); }
.source__connects { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---- Phase 2: share ---- */
.share { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.share__buttons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.share__secondary { display: flex; align-items: center; gap: 6px; }
.share__secondary .dot { color: var(--muted); }
.share__hint { font-size: 12px; color: var(--muted); text-align: center; max-width: 420px; }

@media (max-width: 520px) {
  .btn { padding: 12px 18px; }
}
