/* Shared look for the website and the dashboard: "night sky, refined".
   Deep ink blue, moonlight-silver text, one accent colour (Settings → Branding) for actions,
   pale moon-gold only for the moon itself. Fraunces for titles, Figtree for everything else. */
:root {
  --night: #0c1229;
  --night-2: #0f1633;
  --panel: #131b3b;
  --panel-2: #1a2348;
  --deep: #0a1025;
  --line: #222b51;
  --line-2: #323d6d;
  --moon: #e7eaf6;
  --haze: #949dc2;
  --faint: #67719a;
  --glow: #f3dca3;
  --accent: #ff69b4;
  --accent-2: #ffa6d2;
  --accent-ink: #2b0a1d;
  --accent-rgb: 255 105 180;
  --ok: #5fd4a6;
  --warn: #f0c16b;
  --bad: #ff7d95;
  --blurple: #5865f2;
  --r-lg: 16px;
  --r-md: 10px;
  --r-sm: 7px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--night); color: var(--moon); font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgb(var(--accent-rgb) / .35); }
code, kbd { font-family: var(--mono); }
code { font-size: .86em; background: var(--deep); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: #c5cbe6; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
.display { font-family: var(--display); font-optical-sizing: auto; font-weight: 560; letter-spacing: -0.012em; }
.muted { color: var(--haze); }
.right { text-align: right; }
[hidden] { display: none !important; }

/* icons (static/icons.svg) */
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.ic.sm { width: 15px; height: 15px; vertical-align: -2px; }
.ic.lg { width: 22px; height: 22px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 14px/1 var(--font);
  padding: 10px 16px; border-radius: var(--r-md); border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  color: var(--moon); background: var(--panel-2); transition: background .15s, border-color .15s, color .15s, filter .15s; }
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--moon); }
.btn.ghost:hover { background: var(--panel-2); filter: none; }
.btn.quiet { background: transparent; color: var(--haze); padding-left: 10px; padding-right: 10px; }
.btn.quiet:hover { color: var(--moon); background: var(--panel-2); filter: none; }
.btn.danger { background: transparent; border-color: rgb(255 125 149 / .5); color: var(--bad); }
.btn.danger:hover { background: var(--bad); color: #2a0710; filter: none; }
.btn.discord { background: var(--blurple); color: #fff; }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn.big { padding: 14px 22px; font-size: 15.5px; border-radius: 12px; }
.btn.full { width: 100%; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--haze); cursor: pointer; }
.linklike:hover { color: var(--moon); text-decoration: underline; text-underline-offset: 3px; }

/* messages */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: var(--r-md);
  margin: 0 0 16px; border: 1px solid; font-size: 14px; line-height: 1.5; }
.flash::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-top: 7px; }
.flash.ok { background: rgb(95 212 166 / .08); border-color: rgb(95 212 166 / .3); color: #a6ead0; }
.flash.error { background: rgb(255 125 149 / .08); border-color: rgb(255 125 149 / .35); color: #ffc0cc; }
.flash.warn { background: rgb(240 193 107 / .07); border-color: rgb(240 193 107 / .3); color: #f5d79b; }
.flash.info { background: rgb(148 157 194 / .07); border-color: var(--line-2); color: #cdd3ea; }
.flash a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.flash strong { color: var(--moon); }

/* avatars / server icons */
.ava { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; background: var(--panel-2); }
.letter { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: var(--panel-2);
  color: var(--moon); font: 600 14px/1 var(--font); text-transform: uppercase; }
.server-ico { width: 40px; height: 40px; border-radius: 12px; overflow: hidden; flex: none; display: grid; place-items: center;
  background: var(--panel-2); color: var(--moon); font: 600 16px/1 var(--font); }
.server-ico img { width: 100%; height: 100%; object-fit: cover; }

/* online dot */
.dot-status { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.dot-status.on { background: var(--ok); box-shadow: 0 0 0 4px rgb(95 212 166 / .14); }
.dot-status.off { background: var(--bad); }

/* the moon (overview, login, home) */
.moon-phase { display: block; overflow: visible; filter: drop-shadow(0 0 22px rgb(243 220 163 / .22)); }
.moon-phase .dark { fill: #18213f; stroke: rgb(243 220 163 / .18); stroke-width: 1; }
.moon-phase .lit { fill: var(--glow); }
.moon-phase .craters circle { fill: #0c1229; opacity: .1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
