/* Sketchy: a night alley wall. Pure black (the logos' own background), spray-paint violet,
   chalk white, concrete grey. Display type: Anton (street poster); text: Barlow. (Kestrel) */
:root {
  --bg: #000000; --surface: #120c1c; --ink: #eeeaf7; --muted: #8e879e; --line: #2a2138;
  --spray: #9d5cff; --spray-deep: #6d2bd9; --red: #e0565b;
  --display: "Anton", "Impact", sans-serif; --text: "Barlow", "Segoe UI", sans-serif;
  --mono: Consolas, "Cascadia Code", monospace;
  /* legacy names used by other pages */
  --panel: var(--surface); --accent: var(--spray); --accent-ink: #fff; --warn: #1d1328;
}
* { box-sizing: border-box; }
img { max-width: 100%; }
pre { max-width: 100%; }
body { overflow-x: hidden; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--text); }
a { color: var(--spray); text-underline-offset: 3px; }
a:hover { color: #c39bff; }
:focus-visible { outline: 2px solid var(--spray); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: 1.1; }
h2 { font-size: 40px; margin: 0 0 18px; }
h3 { font-size: 22px; margin: 0 0 6px; }
code, kbd { font-family: var(--mono); font-size: .9em; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }

/* ---- header ---- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1120px; margin: 0 auto; padding: 14px 20px; }
.top .logo img { display: block; height: 52px; width: auto; }
.top nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.top nav a:hover { color: var(--spray); }

main { max-width: 1120px; margin: 0 auto; padding: 0 20px 72px; }
footer { max-width: 1120px; margin: 0 auto; padding: 28px 20px 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }

/* ---- buttons ---- */
.btn { display: inline-block; background: var(--spray); color: #fff !important; padding: 10px 18px; border-radius: 6px; text-decoration: none; font: 600 16px/1.2 var(--text); border: 0; cursor: pointer; }
.btn:hover { background: #b07bff; }
.btn.big { padding: 16px 28px; font-size: 19px; box-shadow: 0 0 0 1px #b88cff inset, 0 10px 40px rgba(157, 92, 255, .35); }
.btn.small { padding: 4px 10px; font-size: 14px; }
.btn.red { background: var(--red); }
.ghost { color: var(--muted) !important; }
.muted { color: var(--muted); }

/* ---- home: hero ---- */
.hero { margin-bottom: 72px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 8px; min-height: 560px; }
.hero h1 { margin: 0; }
.hero h1 img { display: block; width: 100%; max-width: 620px; height: auto; margin-left: -14px; }
.hero .lead { font-size: 22px; line-height: 1.45; color: var(--ink); max-width: 30em; margin: 8px 0 28px; }
.hero .version { color: var(--muted); font-size: 15px; margin-top: 14px; }
.hero .art img { display: block; width: 118%; max-width: 118%; height: auto; margin-right: -18%;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }

/* ---- home: steps (a real sequence) ---- */
.steps-row { margin: 28px 0 96px; }
.steps-row ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; margin: 0; padding: 0; counter-reset: step; }
.steps-row li { list-style: none; position: relative; padding-top: 104px; }
.steps-row li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: -4px;
  font: 400 96px/1 var(--display); color: var(--spray); text-shadow: 0 0 24px rgba(157, 92, 255, .5); }
.steps-row h3 { font-size: 26px; }
.steps-row p { margin: 6px 0 0; color: var(--muted); }

/* ---- home: modes ---- */
.modes { width: 100%; border-collapse: collapse; margin: 0 0 88px; font-size: 18px; }
.modes th, .modes td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.modes th { font: 400 24px/1.1 var(--display); color: var(--ink); }
.modes td:first-child { color: var(--muted); width: 26%; }
.modes .vip { color: var(--spray); }

/* ---- home: scripting ---- */
.scripting { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.scripting p { color: var(--muted); max-width: 32em; }
.scripting .links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }

/* ---- shared ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; margin-bottom: 18px; }
.account { display: flex; align-items: center; gap: 16px; }
.account h1 { margin: 0; font-size: 34px; }
.avatar { width: 72px; height: 72px; border-radius: 50%; }
.danger { border-color: #4d1f2a; }
table { width: 100%; border-collapse: collapse; margin: 10px 0; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 15px; }
.doc { max-width: 760px; }
.doc h1 { font-size: 48px; margin: 28px 0 12px; }
.lead { font-size: 20px; color: var(--muted); }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps > li { position: relative; padding: 0 0 10px 54px; }
.steps > li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: -6px; font: 400 40px/1 var(--display); color: var(--spray); }
.steps h3 { margin: 0 0 4px; }
.warn { background: var(--warn); border-left: 3px solid var(--spray); border-radius: 6px; padding: 12px 16px; }

/* ---- guide ---- */
.guide { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 20px; }
.guide .toc { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.guide .toc strong { font: 400 26px/1 var(--display); margin-bottom: 8px; }
.guide .toc a { color: var(--ink); text-decoration: none; padding: 3px 0; }
.guide .toc a:hover { color: var(--spray); }
.guide .toc .btn { margin-top: 14px; text-align: center; }
.guide .doc { max-width: 820px; }
.guide h2 { font-size: 32px; margin-top: 48px; padding-bottom: 8px; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
pre { background: var(--surface); color: #e6e1f2; border-radius: 8px; padding: 16px 18px; overflow-x: auto; font: 14px/1.6 var(--mono); border: 1px solid var(--line); }
pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
pre.result { background: #0b1410; color: #b9f3cf; border-color: #1f3b2b; }
.result-title { margin: 16px 0 -4px; font-size: 15px; font-weight: 700; color: var(--spray); }
.note { background: var(--surface); border-left: 3px solid var(--spray); border-radius: 6px; padding: 12px 16px; margin: 16px 0; }
.paint-demo { background: linear-gradient(135deg, #3d4a2b, #5a6b3a 40%, #2f3b22); border-radius: 8px; padding: 18px; margin: 10px 0; }
.paint-demo div { display: inline-block; background: rgba(0, 0, 0, .6); color: #fff; padding: 8px 14px; font: 13px/1.5 Arial, sans-serif; }

/* ---- small screens ---- */
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 8px; }
  .hero .art { order: -1; }
  .hero .art img { width: 100%; margin: 0 auto; max-width: 420px; }
  .hero h1 img { margin-left: -8px; }
  .steps-row ol, .scripting { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps-row li { padding-top: 84px; }
  .steps-row li::before { font-size: 76px; }
  .modes td:nth-child(2) { display: none; }
  .modes th, .modes td { padding: 12px 8px; }
  .hero { margin-bottom: 48px; }
  .guide { grid-template-columns: minmax(0, 1fr); }
  .guide .toc { position: static; }
  h2 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.ghost-btn { background: transparent; box-shadow: 0 0 0 1px var(--spray) inset; }
.ghost-btn:hover { background: rgba(157, 92, 255, .15); }

/* ---- Discord (white logo on Discord blurple, per Discord's brand guidelines) ---- */
.dc-ico { width: 1.25em; height: 1.25em; vertical-align: -0.28em; margin-right: .45em; }
.dc-btn { background: #5865f2; box-shadow: none; }
.dc-btn:hover { background: #6d78f5; }
.btn.big.dc-btn { box-shadow: 0 10px 40px rgba(88, 101, 242, .35); margin-right: 10px; }
.btn.big.ghost-btn { box-shadow: 0 0 0 1px var(--spray) inset; }
.dc-link { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; font-weight: 600; margin-bottom: 10px; }
.dc-link:hover { color: #8c95ff; }
footer p { margin: 0; }
