:root {
  --bg: #0b1020;
  --bg-alt: #0e1530;
  --panel: #131b38;
  --line: #24305c;
  --text: #e8ecf8;
  --muted: #9aa4c7;
  --cyan: #00e5ff;
  --violet: #7b5cff;
  --ok: #55ff55;
  --bad: #ff5555;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #0a0f22;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.95em;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
.grad {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 20px;
  background: rgba(11, 16, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.brand img { border-radius: 8px; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.95rem; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--text); text-decoration: none; }
.top nav a.discord { color: var(--cyan); }

/* hero */
.hero {
  position: relative; overflow: hidden;
  text-align: center;
  padding: 72px 20px 64px;
}
.hero-glow {
  position: absolute; inset: auto 0 auto 0; top: -120px; margin: 0 auto;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.22), rgba(123, 92, 255, 0.10) 45%, transparent 70%);
  pointer-events: none;
}
.hero > :not(.hero-glow) { position: relative; }
.hero-icon { border-radius: 28px; box-shadow: 0 20px 60px rgba(0, 229, 255, 0.25); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-top: 20px; letter-spacing: -0.02em; }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 640px; margin: 0 auto 28px; }
.address { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 14px; }
.address code { font-size: 1.25rem; padding: 10px 16px; }
.status { display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 26px; font-size: 0.95rem; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 10px currentColor; }
.status.online .dot { background: var(--ok); color: var(--ok); }
.status.offline .dot { background: var(--bad); color: var(--bad); }
.cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block; cursor: pointer;
  padding: 10px 18px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font: inherit; font-weight: 600;
}
.btn:hover { border-color: var(--cyan); text-decoration: none; }
.btn.primary {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  color: #061021; border: none;
}
.btn.primary:hover { filter: brightness(1.1); }
.linklike { background: none; border: none; color: var(--cyan); font: inherit; cursor: pointer; padding: 0; }
.linklike:hover { text-decoration: underline; }

/* sections */
.section { max-width: 1040px; margin: 0 auto; padding: 64px 20px; }
.section.alt { max-width: none; background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.alt > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
.sub { color: var(--muted); max-width: 720px; margin-top: -4px; margin-bottom: 28px; }
.note { color: var(--muted); border-left: 3px solid var(--violet); padding-left: 14px; margin-top: 28px; }
.small { color: var(--muted); font-size: 0.93rem; }

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px;
}
.card p:last-child { margin-bottom: 0; }

.realms { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.realm {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  border-top: 4px solid var(--c);
}
.realm h3 { color: var(--c); }
.realm p { margin: 0; color: var(--muted); }

.steps { padding-left: 22px; }
.steps li { margin-bottom: 12px; }
.rules { padding-left: 22px; }
.rules li { margin-bottom: 8px; }

.votes { display: flex; flex-wrap: wrap; gap: 12px; }
.votes a { display: inline-block; padding: 12px 18px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.votes a:hover { border-color: var(--cyan); text-decoration: none; }
.votes .empty { color: var(--muted); }

footer { text-align: center; padding: 40px 20px 60px; color: var(--muted); font-size: 0.9rem; }
footer .banner { max-width: 100%; width: 468px; height: auto; border-radius: 8px; margin-bottom: 20px; }

@media (max-width: 640px) {
  .top { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 48px; }
}

/* document pages: rules, terms, privacy */
.doc { max-width: 760px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.doc h2 { font-size: 1.2rem; margin-top: 2em; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }

/* ideas board */
.ideas { max-width: 860px; }
.ideas h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.ideas .card { margin-bottom: 16px; }
.ideas input, .ideas textarea, .ideas select {
  font: inherit; color: var(--text);
  background: #0a0f22; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; width: 100%;
}
.ideas input:focus, .ideas textarea:focus, .ideas select:focus { outline: none; border-color: var(--cyan); }
.ideas textarea { resize: vertical; margin-top: 10px; }
.link-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; margin-top: 12px; }
.compose .row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 12px; }
.error { color: var(--bad); margin: 10px 0 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 14px; }
.tab {
  font: inherit; font-weight: 600; cursor: pointer;
  padding: 8px 14px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
}
.tab.active { color: #061021; background: linear-gradient(90deg, var(--cyan), var(--violet)); border-color: transparent; }
.idea-list { display: grid; gap: 12px; }
.idea {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px;
}
.idea h3 { margin-bottom: 4px; }
.idea .meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 8px; }
.idea .body { margin: 0; white-space: pre-wrap; }
.idea .note { margin: 10px 0 0; color: var(--muted); border-left: 3px solid var(--violet); padding-left: 12px; }
.votes-col { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.vote {
  font: inherit; cursor: pointer; line-height: 1;
  width: 40px; height: 32px; border-radius: 8px;
  background: #0a0f22; border: 1px solid var(--line); color: var(--muted);
}
.vote:hover:not(:disabled) { border-color: var(--cyan); color: var(--text); }
.vote:disabled { cursor: default; opacity: 0.5; }
.vote.up.active { color: var(--ok); border-color: var(--ok); }
.vote.down.active { color: var(--bad); border-color: var(--bad); }
.score { font-size: 1.1rem; }
.tag {
  display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; margin-right: 4px;
  background: #0a0f22; border: 1px solid var(--line); color: var(--muted);
}
.tag.open { color: var(--cyan); border-color: var(--cyan); }
.tag.planned { color: #ffd93d; border-color: #ffd93d; }
.tag.implemented { color: var(--ok); border-color: var(--ok); }
.tag.denied { color: var(--bad); border-color: var(--bad); }
.tag.staff { color: var(--violet); border-color: var(--violet); margin-left: 8px; }
.admin { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; margin-top: 12px; align-items: center; }
.admin select { width: auto; }
.btn.danger:hover { border-color: var(--bad); color: var(--bad); }
@media (max-width: 640px) {
  .link-form, .admin { grid-template-columns: 1fr; }
  .idea { grid-template-columns: 48px 1fr; gap: 10px; }
}

/* support page */
.support { max-width: 860px; }
.support h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.titles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 28px 0; }
.title-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  border-top: 4px solid var(--c); display: flex; flex-direction: column; gap: 6px;
}
.title-card h3 { color: var(--c); margin: 0; }
.title-card .price { font-size: 1.4rem; font-weight: 700; margin: 0; }
.title-card .small { flex: 1; margin: 0 0 8px; }
.title-card .btn { text-align: center; }
.how { margin-top: 8px; }
