:root {
  --bg: #0f0d14;
  --card: #1a1722;
  --line: #2c2838;
  --text: #f3f0f7;
  --muted: #a49eb3;
  --accent: #ff4f8b;
  --accent2: #ffb84f;
  --ok: #3ccf91;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent2); }
.wrap { max-width: 760px; margin: 0 auto; padding: 16px; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px;
  border-bottom: 1px solid var(--line); }
.logo { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; color: var(--text); }
.logo span { color: var(--accent); }
h1 { font-size: 28px; line-height: 1.15; margin: 16px 0 8px; letter-spacing: -0.02em; }
h2 { font-size: 20px; margin: 28px 0 10px; }
.muted { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 12px 0; }
label { display: block; font-weight: 600; margin: 12px 0 6px; }
input[type=text], input[type=tel], input[type=datetime-local], input[type=number], select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: #0c0a10; color: var(--text); font-size: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none;
  background: var(--accent); color: #fff; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.small { padding: 6px 12px; font-size: 14px; }
.btn.big { padding: 18px 24px; font-size: 20px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--line); color: var(--muted); }
.pill.live { background: var(--accent); color: #fff; }
.pill.ok { background: var(--ok); color: #062; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.grid figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 1; }
.grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grid figure.hidden img { opacity: 0.25; }
.grid .tools { position: absolute; bottom: 6px; left: 6px; right: 6px; display: flex; gap: 6px; justify-content: space-between; }
.grid .tools button { border: 0; border-radius: 999px; padding: 4px 10px; background: rgba(0,0,0,.65); color: #fff; font-size: 13px; cursor: pointer; }
.tabs { display: flex; gap: 8px; margin: 12px 0; }
.tabs button { flex: 1; padding: 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); font-weight: 700; cursor: pointer; }
.tabs button.on { background: var(--text); color: var(--bg); }
.qr { background: #fff; border-radius: 12px; padding: 8px; width: 180px; }
.qr svg { width: 100%; height: auto; display: block; }
.awards { display: grid; gap: 8px; }
.award { display: flex; gap: 12px; align-items: center; }
.award .emo { font-size: 30px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
td, th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.selfie-preview { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; display: none; margin: 10px auto; border: 3px solid var(--accent); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg);
  padding: 12px 18px; border-radius: 999px; font-weight: 700; display: none; z-index: 10; }
footer { padding: 32px 16px; text-align: center; color: var(--muted); font-size: 13px; }
dialog { background: #000; border: 0; padding: 0; max-width: 96vw; max-height: 96vh; }
dialog img { max-width: 96vw; max-height: 90vh; display: block; }
dialog::backdrop { background: rgba(0,0,0,.85); }
