:root {
  --accent: #ff3e6c;
  --bg: #0c0d12;
  --bg-soft: #15171f;
  --card: #1b1e29;
  --line: #2a2e3c;
  --text: #f4f5f8;
  --muted: #9aa0b0;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  font-synthesis-weight: none;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(1200px 700px at 50% -10%, #1d2030 0%, var(--bg) 55%);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { display: flex; flex-direction: column; align-items: center; }

.wrap {
  width: 100%;
  max-width: 520px;
  padding: 22px 18px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}
.brand h1 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; margin: 0; text-align: center; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px var(--accent); }

.sub { color: var(--muted); text-align: center; margin: -8px 0 0; font-size: 0.92rem; }

.card {
  background: linear-gradient(180deg, var(--card), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

/* Camera / photo stage keeps the event aspect ratio */
.stage {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ar, 4 / 5);
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.stage video, .stage img, .stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stage video.mirror { transform: scaleX(-1); }
.stage .frame { object-fit: fill; pointer-events: none; }

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.secondary { background: #262a38; color: var(--text); border: 1px solid var(--line); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.block { width: 100%; }

.row { display: flex; gap: 10px; }
.row > * { flex: 1; }

.shutter {
  width: 78px; height: 78px; border-radius: 50%;
  background: #fff; border: 5px solid rgba(255,255,255,0.25);
  margin: 4px auto 0; display: block; cursor: pointer;
  box-shadow: 0 0 0 4px var(--accent);
}
.shutter:active { transform: scale(0.94); }

.center { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.muted { color: var(--muted); font-size: 0.9rem; }
.note { font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.hidden { display: none !important; }
.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.2); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

input[type="text"], input[type="password"], input[type="number"], select {
  width: 100%;
  background: #0f111a;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
}
label { display: block; font-size: 0.85rem; color: var(--muted); margin: 0 0 6px; }
.field { margin-bottom: 14px; }

/* Gallery / screen grids */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.grid img { width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; }
.wall {
  position: fixed; inset: 0; background: #000; overflow: hidden;
  display: grid; place-items: center;
}
.wall img {
  max-width: 92vw; max-height: 92vh; border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.7);
  animation: pop 0.5s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #222634; border: 1px solid var(--line); color: var(--text);
  padding: 10px 16px; border-radius: 999px; font-size: 0.9rem; box-shadow: var(--shadow);
  opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.toast.show { opacity: 1; }
