:root {
  --bg: #12162b;
  --panel: #1d2342;
  --panel-2: #283062;
  --text: #f1f3ff;
  --muted: #9aa3c7;
  --line: #343c6b;
  --primary: #7c5cff;
  --primary-2: #a896ff;
  --danger: #ff5d6c;
  --ok: #3ddc84;
  --a: #e03131;
  --b: #1c7ed6;
  --c: #f59f00;
  --d: #2f9e44;
  --radius: 14px;
  font-family: "Baloo 2", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { font-size: 16px; line-height: 1.4; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
a { color: var(--primary-2); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 28px; }

.screen { min-height: 100dvh; }
.center { display: grid; place-items: center; padding: 16px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
}
.card.wide { width: min(760px, 100%); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

label { display: grid; gap: 6px; font-weight: 600; }
input, textarea, select {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
}
textarea { resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--primary); border-color: transparent; }

.btn {
  font: inherit;
  font-weight: 700;
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
  background: var(--panel-2);
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn:hover { filter: brightness(1.15); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.btn.primary { background: var(--primary); }
.btn.danger { background: var(--danger); }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.big { font-size: 20px; padding: 12px 24px; }
.error { color: var(--danger); margin: 0; min-height: 1.4em; white-space: pre-line; }

.notice {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--danger);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  z-index: 10;
}
