:root {
  --bg: #0d0b1a;
  --bg2: #17142b;
  --card: #211d3b;
  --line: #342f57;
  --text: #f4f1ff;
  --muted: #a39dc4;
  --accent: #ff4d6d;
  --accent2: #ffb703;
  --good: #06d6a0;
  --radius: 18px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(1200px 700px at 80% -10%, #3a1747 0%, transparent 60%),
              radial-gradient(900px 600px at -10% 110%, #12305a 0%, transparent 60%), var(--bg);
  color: var(--text);
  font-family: 'Fredoka', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; border: 0; cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

.btn {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 1.1rem;
  box-shadow: 0 6px 0 #b3203d;
  transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #b3203d; }
.btn.secondary { background: var(--card); box-shadow: 0 6px 0 #0a0815; border: 2px solid var(--line); }
.btn.big { width: 100%; padding: 18px; font-size: 1.25rem; }
.btn:disabled { opacity: .45; pointer-events: none; }

.avatar {
  width: 1em; height: 1em;
  border-radius: 50%;
  display: inline-grid; place-items: center;
  font-weight: 700; color: #1a1030;
  flex-shrink: 0;
}
.avatar span { font-size: .45em; }

select {
  font: inherit; color: var(--text);
  background: var(--bg2); border: 2px solid var(--line);
  border-radius: 12px; padding: 10px 12px; width: 100%;
}
input {
  font: inherit; font-size: 1.2rem; color: var(--text);
  background: var(--bg2); border: 2px solid var(--line);
  border-radius: 14px; padding: 14px 16px; width: 100%;
  outline: none;
}
input:focus, select:focus { border-color: var(--accent2); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #000c; padding: 12px 20px; border-radius: 999px; z-index: 50;
  font-size: 1rem; max-width: 90vw; text-align: center;
}
.offline {
  position: fixed; top: 0; left: 0; right: 0; background: var(--accent2); color: #1a1030;
  text-align: center; padding: 6px; font-weight: 600; z-index: 60;
}

@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.pop { animation: pop .35s cubic-bezier(.2, 1.4, .4, 1) both; }

.def { background: #ffffff0d; border-left: 4px solid var(--accent2); border-radius: 10px; padding: 8px 12px; text-align: left; font-size: .95rem; }
.def-head i { color: var(--muted); font-size: .85em; }
.def-form { color: var(--muted); font-size: .9em; margin-top: 2px; }
.def ol { margin: 6px 0 0; padding-left: 20px; }
.def li { margin: 2px 0; }
.def-src { color: var(--muted); font-size: .7rem; margin-top: 4px; text-align: right; }
