:root {
  --bg: #050814;
  --bg2: #0b1224;
  --panel: #0b1224;
  --ink: #e8f1ff;
  --muted: #8aa0c8;
  --acc: #3b82f6;
  --acc2: #7c5cff;
  --ok: #10b981;
  --err: #f87171;
  --line: #1e2a4a;
  --link: #93c5fd;
  --input: #070b16;
}
html[data-theme="light"] {
  --bg: #eef3fb;
  --bg2: #ffffff;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --acc: #2563eb;
  --acc2: #6d28d9;
  --ok: #047857;
  --err: #b91c1c;
  --line: #dbe3f0;
  --link: #1d4ed8;
  --input: #f8fafc;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(900px 480px at 82% 0%, color-mix(in srgb, var(--acc) 22%, var(--bg)) 0%, var(--bg) 58%);
  color: var(--ink);
  font-family: Segoe UI, system-ui, sans-serif;
}
a { color: var(--link); }
.wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 28px;
  gap: 12px;
  flex-shrink: 0;
}
.brand { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 26px; letter-spacing: -0.03em; }
.brand img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.controls { display: flex; gap: 8px; align-items: center; }
.chip {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.flag { display: inline-block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,0.25); flex-shrink: 0; }
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(240px, 0.95fr);
  gap: 24px;
  padding: 8px 28px 16px;
  align-items: center;
  min-height: 0;
}
.copy h1 {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.12;
  margin: 0 0 14px;
  background: linear-gradient(90deg, #38bdf8, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="light"] .copy h1 {
  background: linear-gradient(90deg, #0369a1, #6d28d9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.feats { list-style: none; padding: 0; margin: 0 0 12px; }
.feats li { margin: 8px 0; padding-left: 26px; position: relative; color: var(--muted); }
.feats li:before { content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 4px; background: linear-gradient(135deg, var(--acc), var(--acc2)); }
.tag { text-transform: uppercase; letter-spacing: 0.16em; font-size: 11px; color: var(--muted); }
.reg { margin-top: 16px; background: color-mix(in srgb, var(--panel) 88%, transparent); border: 1px solid var(--line); padding: 14px; border-radius: 16px; max-width: 520px; }
.row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
input, button { font: inherit; border-radius: 10px; border: 1px solid var(--line); padding: 10px 12px; }
input { flex: 1; min-width: 180px; background: var(--input); color: var(--ink); }
button.primary, .reg button[type="submit"] {
  background: linear-gradient(90deg, var(--acc), var(--acc2));
  color: white; border: 0; cursor: pointer; white-space: nowrap;
}
.hint { color: var(--muted); font-size: 13px; }
.ok { color: var(--ok); }
.err { color: var(--err); }
.art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  max-height: calc(100vh - 130px);
}
.art img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 130px);
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.legal { max-width: 820px; margin: 24px auto 64px; padding: 0 24px; line-height: 1.55; }
.legal h1 { font-size: 28px; }
footer {
  padding: 12px 28px 18px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
#consent {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 8, 18, 0.72);
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
}
#consent.open { display: flex; }
.consent-box {
  width: min(720px, 100%);
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 12px;
}
.consent-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.consent-actions .ghost {
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.narrow { max-width: 640px; margin: 48px auto; padding: 0 20px; }
.admin { padding: 0 24px 48px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.mono { font-family: Consolas, monospace; font-size: 12px; }
.inline { display: inline-block; margin: 2px 0; }
.inline button { padding: 6px 8px; font-size: 12px; margin: 2px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .art { max-height: 42vh; }
  .art img { max-height: 42vh; }
}
html.consent-lock body { overflow: hidden; }
