/* Palforge: storm-night palette taken from the banner. Violet lightning as the
   main accent, forge fire for the call-to-action, carved serif for headings. */
:root {
  --night: #0c0a17;        /* page background */
  --slab: #17142a;         /* raised surfaces */
  --seam: #2d2850;         /* borders */
  --mist: #a7a2c4;         /* secondary text */
  --moon: #ece9f7;         /* primary text */
  --volt: #b07cff;         /* lightning accent */
  --fire: #ff8a3d;         /* call-to-action */
  --good: #5fd39b;
  --bad:  #ff5f6d;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--night);
  color: var(--moon);
  font: 17px/1.6 var(--body);
}
a { color: var(--volt); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--volt); outline-offset: 3px;
}
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
code { font-family: var(--mono); font-size: .9em; background: var(--night); border: 1px solid var(--seam); padding: 1px 6px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 680px; }

/* ---- Nav ---- */
.topnav { position: sticky; top: 0; z-index: 10; background: #0c0a17e6; backdrop-filter: blur(8px); border-bottom: 1px solid var(--seam); }
.topnav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: .12em; text-transform: uppercase; color: var(--moon); text-decoration: none; }
.topnav ul { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.topnav ul a { color: var(--mist); text-decoration: none; font-weight: 500; font-size: 15px; }
.topnav ul a:hover, .topnav ul a[aria-current="page"] { color: var(--moon); }
.topnav .nav-discord { color: var(--volt); }

/* ---- Hero banner ---- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--seam); background: #000; }
.hero::before {
  content: ""; position: absolute; inset: -40px;
  background: url("banner.gif") center / cover;
  filter: blur(28px) brightness(.45) saturate(1.3);
}
.hero-banner { position: relative; display: block; width: 100%; max-width: 1100px; height: auto; margin: 0 auto; box-shadow: 0 0 80px #000c; }

/* ---- Connect ---- */
section { padding: 72px 0; border-bottom: 1px solid var(--seam); }
.connect { background: radial-gradient(ellipse 60% 80% at 80% 0%, #b07cff1f, transparent 70%); }
.connect-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .connect-grid { grid-template-columns: 1fr; } }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--volt); margin: 0 0 14px; }
.connect h1 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 4vw, 40px); }

.btn-discord {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 30px;
  padding: 20px 34px; border-radius: 10px;
  font: 700 22px var(--body); color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #5865f2, #7d5cff);
  box-shadow: 0 10px 40px #6b5cff55, inset 0 1px 0 #ffffff33;
  transition: transform .15s, box-shadow .15s;
}
.btn-discord svg { width: 30px; height: 30px; }
.btn-discord:hover { transform: translateY(-2px); box-shadow: 0 14px 50px #6b5cff88, inset 0 1px 0 #ffffff33; }
.discord-note { color: var(--mist); font-size: 15px; margin: 12px 0 0; }

.plate { background: linear-gradient(180deg, #1e1a36, var(--slab)); border: 1px solid var(--seam); border-radius: 12px; padding: 26px; box-shadow: 0 20px 50px #0009; }
.status { display: inline-flex; align-items: center; gap: 8px; font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.status.online  { color: var(--good); background: #5fd39b1a; }
.status.online i { box-shadow: 0 0 10px currentColor; animation: pulse 2s infinite; }
.status.offline { color: var(--bad); background: #ff5f6d1a; }
.status.unknown { color: var(--mist); background: #a7a2c41a; }
@keyframes pulse { 50% { opacity: .4; } }
.label { font-size: 13px; color: var(--mist); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; }
.ip { display: flex; gap: 8px; }
.ip code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 18px; padding: 12px 14px; border-radius: 6px; }
.ip .soon { color: var(--fire); font-weight: 500; letter-spacing: .04em; }
.soon-note { margin: 8px 0 0; font-size: 14px; color: var(--mist); }
.copy { font: 600 14px var(--body); background: #b07cff22; color: var(--volt); border: 1px solid #b07cff66; border-radius: 6px; padding: 0 18px; cursor: pointer; }
.copy:hover { background: #b07cff33; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 22px 0 0; }
.facts dt { font-size: 13px; color: var(--mist); }
.facts dd { margin: 0; font: 500 16px var(--mono); font-variant-numeric: tabular-nums; }

/* ---- Section headings ---- */
.sec-title { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4.5vw, 46px); letter-spacing: .02em; }
.sec-title::after { content: ""; display: block; width: 72px; height: 3px; margin-top: 14px; background: linear-gradient(90deg, var(--volt), var(--fire)); }
.intro { max-width: 62ch; color: var(--mist); margin: 18px 0 36px; }
.sub-title { font-family: var(--display); font-size: 26px; margin: 48px 0 16px; }

/* ---- Rates ---- */
.rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--seam); border: 1px solid var(--seam); border-radius: 12px; overflow: hidden; }
.rate { background: var(--slab); padding: 22px; display: grid; gap: 4px; }
.rate b { font: 800 34px var(--display); color: var(--moon); font-variant-numeric: tabular-nums; }
.rate span { color: var(--mist); font-size: 15px; }
.rate-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.rate-rows div { display: grid; gap: 4px; padding: 18px 22px; border: 1px solid var(--seam); border-radius: 12px; background: var(--slab); }
.rate-rows span { color: var(--mist); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.rate-rows strong { font-size: 18px; }
.rate-rows .wipe { color: var(--fire); font-size: 20px; }

/* ---- Rules ---- */
.rule-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.rule-group { border-top: 3px solid var(--volt); background: var(--slab); border-radius: 0 0 12px 12px; padding: 22px 24px 8px; }
.rule-group:nth-child(3) { border-top-color: var(--fire); }
.rule-group h3 { font-family: var(--display); font-size: 22px; margin-bottom: 8px; }
.rule-group ul { list-style: none; margin: 0; padding: 0; }
.rule-group li { padding: 12px 0; border-top: 1px solid var(--seam); }
.rule-group li:first-child { border-top: 0; }
.rule-group strong { display: block; }
.rule-group span { color: var(--mist); font-size: 15px; }

/* ---- Steps ---- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.steps li { counter-increment: s; background: var(--slab); border: 1px solid var(--seam); border-radius: 12px; padding: 24px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; margin-bottom: 14px; font: 800 18px var(--display); color: var(--night); background: var(--volt); }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--mist); font-size: 15px; overflow-wrap: anywhere; }

/* ---- Bands, buttons ---- */
.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.band p { color: var(--mist); max-width: 56ch; margin: 18px 0 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 700 16px var(--body); padding: 14px 26px; border-radius: 8px; border: 0; cursor: pointer; text-decoration: none; color: #1d0c02; background: var(--fire); box-shadow: 0 8px 30px #ff8a3d40; }
.btn:hover { background: #ffa264; }

/* ---- Leaderboard ---- */
.page-head { padding-bottom: 8px; border-bottom: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--seam); border-radius: 12px; }
.board { width: 100%; border-collapse: collapse; background: var(--slab); }
.board th, .board td { padding: 14px 18px; text-align: left; white-space: nowrap; }
.board th { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--mist); border-bottom: 1px solid var(--seam); }
.board td { border-top: 1px solid #2d285080; }
.board .num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); }
.board .rank { font: 800 20px var(--display); color: var(--mist); width: 56px; }
.board .top1 .rank { color: #ffd36b; }
.board .top2 .rank { color: #d4d8e8; }
.board .top3 .rank { color: #e0965a; }
.pill { font: 500 11px var(--mono); text-transform: uppercase; color: var(--good); background: #5fd39b1a; border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
.online-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.online-list li { background: var(--slab); border: 1px solid var(--seam); border-radius: 999px; padding: 6px 14px; }
.online-list span { color: var(--mist); font-size: 14px; margin-left: 4px; }

/* ---- Notices & forms ---- */
.notice { border: 1px solid var(--seam); background: var(--slab); border-radius: 10px; padding: 16px 20px; color: var(--mist); margin-bottom: 24px; }
.notice ul { margin: 0; padding-left: 18px; }
.notice.ok  { border-color: #5fd39b66; color: var(--moon); }
.notice.err { border-color: #ff5f6d66; color: var(--moon); }
.ticket { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.field em { font-style: normal; color: var(--mist); font-weight: 400; font-size: 14px; }
.field input, .field select, .field textarea { font: inherit; color: var(--moon); background: var(--slab); border: 1px solid var(--seam); border-radius: 8px; padding: 12px 14px; width: 100%; }
.field textarea { resize: vertical; }
.ticket .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Footer ---- */
.site-footer { padding: 32px 0 44px; color: var(--mist); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

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