/* KangaRO "Elegant" theme (2026-10-27). Loaded after site.css and theme2.css; page-content rules are scoped under .el (home) or .docs (guide) so older pages keep working. Self-hosted fonts only, no inline styles (the live site's CSP forbids them). */
@font-face { font-family: "Inter"; src: url("fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #0a0918; --bg2: #0f0d24; --surface: rgba(255,255,255,.045); --surface2: rgba(255,255,255,.075);
  --line: rgba(255,255,255,.10); --line2: rgba(255,255,255,.18);
  --ink: #efeaf9; --muted: #a8a4c6; --dim: #7f7ba3;
  --gold: #e9c46a; --gold2: #c99a3a; --violet: #9887f8; --violet2: #6f5bdc; --mint: #4ade9a; --rose: #f08aa8;
  --radius: 16px; --shadow: 0 18px 50px rgba(0,0,0,.45);
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; color: var(--ink); font: 400 16px/1.65 var(--sans); background: radial-gradient(1200px 600px at 80% -10%, rgba(111,91,220,.20), transparent 60%), radial-gradient(900px 500px at -10% 30%, rgba(233,196,106,.06), transparent 60%), var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--violet); text-decoration: none; }
a:hover { color: #b9aeff; }
.el img, .docs img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.serif { font-family: var(--serif); font-weight: 600; }
.el .wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- top bar ---------- */
.sitetop { position: sticky; top: 0; z-index: 50; background: rgba(10,9,24,.72); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-bottom: 1px solid var(--line); }
.sitetop .in { max-width: 1280px; margin: 0 auto; padding: 0 28px; height: 68px; display: flex; align-items: center; gap: 28px; }
.sitetop .logo img { height: 38px; width: auto; }
.sitetop nav { display: flex; gap: 2px; margin-left: 8px; flex: 1; }
.sitetop nav a { color: var(--muted); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px; position: relative; }
.sitetop nav a:hover { color: var(--ink); background: var(--surface); }
.sitetop nav a.on { color: var(--ink); }
.sitetop nav a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 2px; background: var(--gold); border-radius: 2px; }
.sitetop .actions { display: flex; align-items: center; gap: 10px; }
.social { display: flex; gap: 4px; }
.social a { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); border: 1px solid transparent; }
.social a:hover { color: var(--ink); border-color: var(--line); background: var(--surface); }
.kbtn { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--sans); padding: 12px 20px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.kbtn.gold { background: linear-gradient(180deg, #f0cf7f, #d9ab48); color: #2b1d02; box-shadow: 0 8px 24px rgba(233,196,106,.22), inset 0 1px 0 rgba(255,255,255,.4); }
.kbtn.gold:hover { transform: translateY(-1px); color: #2b1d02; box-shadow: 0 12px 30px rgba(233,196,106,.32), inset 0 1px 0 rgba(255,255,255,.4); }
.kbtn.ghost { background: var(--surface); border-color: var(--line2); color: var(--ink); }
.kbtn.ghost:hover { background: var(--surface2); color: var(--ink); }
.kbtn.lg { padding: 16px 28px; font-size: 15px; border-radius: 12px; }
.menu-toggle, .burger { display: none; }

/* ---------- hero ---------- */
.el .hero { position: relative; min-height: min(78vh, 720px); display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate; }
.el .hero::before { content: ""; position: absolute; inset: 0; background: url("img/hero-bg.jpg") center 35% / cover no-repeat; z-index: -2; transform: scale(1.04); }
.el .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,9,24,.55) 0%, rgba(10,9,24,.15) 38%, rgba(10,9,24,.70) 78%, var(--bg) 100%), radial-gradient(70% 60% at 50% 45%, rgba(10,9,24,0) 0%, rgba(10,9,24,.45) 100%); }
.el .hero .inner { padding: 70px 28px 130px; max-width: 760px; }
.el .hero .mark { width: min(440px, 78vw); margin: 0 auto 22px; filter: drop-shadow(0 8px 30px rgba(0,0,0,.55)); }
.el .hero p.lead { font-size: 19px; color: #ddd8ef; margin: 0 auto 30px; max-width: 560px; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.el .hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- status strip ---------- */
.el .status { margin: -64px auto 0; position: relative; z-index: 5; }
.el .status .grid { display: grid; grid-template-columns: repeat(5, 1fr); background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035)); border: 1px solid var(--line2); border-radius: 20px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow); overflow: hidden; }
.el .status .cell { padding: 20px 24px; border-left: 1px solid var(--line); }
.el .status .cell:first-child { border-left: 0; }
.el .status small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 600; margin-bottom: 4px; }
.el .status b { font-size: 20px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.el .status b.up { color: var(--mint); }
.el .led { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(74,222,154,.16), 0 0 14px rgba(74,222,154,.7); }
.el .status .sub { font-size: 12.5px; color: var(--dim); font-weight: 400; }

/* ---------- sections ---------- */
.el section.block { padding: 96px 0 0; }
.el .head { max-width: 640px; margin-bottom: 40px; }
.el .head h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); margin-top: 10px; }
.el .head p { color: var(--muted); margin: 12px 0 0; font-size: 17px; }
.el .head.row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.el .more { font-size: 14px; font-weight: 600; white-space: nowrap; }

.el .features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.el .feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: border-color .2s, transform .2s, background .2s; }
.el .feat:hover { border-color: rgba(233,196,106,.45); background: var(--surface2); transform: translateY(-3px); }
.el .feat .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(233,196,106,.10); color: var(--gold); border: 1px solid rgba(233,196,106,.25); margin-bottom: 18px; }
.el .feat h3 { font-size: 17px; margin-bottom: 8px; }
.el .feat p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.el .tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.el .tile { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; align-items: flex-end; color: var(--ink); isolation: isolate; transition: transform .25s, border-color .25s; }
.el .tile::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("img/hero-bg.jpg") var(--pos, 50%) 50% / auto 100% no-repeat; transition: transform .6s; }
.el .tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,9,24,0) 25%, rgba(10,9,24,.92) 100%); }
.el .tile:hover { transform: translateY(-4px); border-color: rgba(233,196,106,.5); color: var(--ink); }
.el .tile:hover::before { transform: scale(1.06); }
.el .tile .t { padding: 22px; }
.el .tile .t small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.el .tile .t h3 { font-family: var(--serif); font-size: 24px; margin: 4px 0 6px; }
.el .tile .t p { margin: 0; font-size: 13.5px; color: #cfcbe6; }
.el .tile.t1 { --pos: 8%; } .el .tile.t2 { --pos: 38%; } .el .tile.t3 { --pos: 68%; } .el .tile.t4 { --pos: 96%; }

.el .news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.el .note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; color: var(--ink); display: block; transition: border-color .2s, background .2s; }
.el .note:hover { border-color: var(--line2); background: var(--surface2); color: var(--ink); }
.el .note .meta { font-size: 12.5px; color: var(--dim); display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.el .badge { font-size: 10.5px; letter-spacing: .12em; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(152,135,248,.16); color: #c4baff; border: 1px solid rgba(152,135,248,.35); }
.el .badge.new { background: rgba(233,196,106,.14); color: var(--gold); border-color: rgba(233,196,106,.4); }
.el .note h3 { font-size: 18px; margin-bottom: 8px; }
.el .note p { margin: 0; color: var(--muted); font-size: 14.5px; }

.el .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.el .step { padding: 0 32px 0 0; position: relative; }
.el .step .n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 20px; color: var(--gold); border: 1px solid rgba(233,196,106,.5); background: var(--bg2); position: relative; z-index: 2; margin-bottom: 18px; }
.el .step::before { content: ""; position: absolute; top: 22px; left: 44px; right: 0; height: 1px; background: linear-gradient(90deg, rgba(233,196,106,.5), rgba(233,196,106,.08)); }
.el .step:last-child::before { display: none; }
.el .step b { display: block; font-size: 18px; margin-bottom: 6px; }
.el .step span { color: var(--muted); font-size: 15px; }

.el .community { margin-top: 96px; border: 1px solid var(--line2); border-radius: 24px; padding: 54px 40px; text-align: center; background: radial-gradient(600px 240px at 50% 0%, rgba(152,135,248,.22), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); }
.el .community h2 { font-family: var(--serif); font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 10px; }
.el .community p { color: var(--muted); max-width: 520px; margin: 0 auto 26px; }
.el .community .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
.sfoot .wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.sfoot { margin-top: 110px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(0,0,0,.35)); }
.sfoot .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
.sfoot .brand img { height: 42px; margin-bottom: 14px; }
.sfoot .brand p { color: var(--dim); font-size: 14px; max-width: 300px; margin: 0; }
.sfoot h4 { margin: 0 0 14px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.sfoot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.sfoot li a { color: var(--muted); font-size: 14.5px; }
.sfoot li a:hover { color: var(--ink); }
.slegal { border-top: 1px solid var(--line); padding: 20px 0 30px; font-size: 12.5px; color: var(--dim); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- guide (docs layout) ---------- */
.docs { display: grid; grid-template-columns: 260px minmax(0, 1fr) 220px; gap: 44px; max-width: 1280px; margin: 0 auto; padding: 40px 28px 0; align-items: start; }
.side { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 6px; }
.side .search { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--dim); font-size: 14px; margin-bottom: 22px; }
.side h5 { margin: 22px 0 8px; padding: 0 12px; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-size: 14.5px; font-weight: 500; border: 1px solid transparent; }
.side a:hover { background: var(--surface); color: var(--ink); }
.side a.on { background: rgba(233,196,106,.10); border-color: rgba(233,196,106,.28); color: var(--gold); }
.side a .i { width: 18px; height: 18px; }
article.doc { min-width: 0; max-width: 760px; }
.crumbs { font-size: 13.5px; color: var(--dim); margin-bottom: 14px; display: flex; gap: 8px; }
.crumbs a { color: var(--dim); } .crumbs a:hover { color: var(--ink); }
article.doc h1 { font-family: var(--serif); font-size: clamp(32px, 4.4vw, 46px); margin-bottom: 16px; }
.doc .lead { font-size: 19px; color: #d9d4ee; margin: 0 0 30px; }
.doc h2 { font-family: var(--serif); font-size: 28px; margin: 48px 0 14px; padding-top: 8px; scroll-margin-top: 90px; }
.doc h3 { font-size: 18px; margin: 28px 0 8px; }
.doc p, .doc li { color: #cfcae6; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc code { font: 500 .88em ui-monospace, Consolas, monospace; background: rgba(255,255,255,.08); border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; color: #f3dca0; }
.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: 14px; border: 1px solid rgba(233,196,106,.3); background: rgba(233,196,106,.07); margin: 24px 0; }
.callout .i { color: var(--gold); margin-top: 2px; }
.callout p { margin: 0; color: #e7dcc0; font-size: 15px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin: 22px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.doc th { text-align: left; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 13px 16px; background: var(--surface); }
.doc td { padding: 13px 16px; border-top: 1px solid var(--line); color: #d6d1ec; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.pager a { border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; color: var(--ink); background: var(--surface); }
.pager a:hover { border-color: rgba(233,196,106,.45); }
.pager a.r { text-align: right; }
.pager small { display: block; color: var(--dim); font-size: 12px; margin-bottom: 2px; }
.toc { position: sticky; top: 92px; font-size: 13.5px; }
.toc h6 { margin: 0 0 12px; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.toc a { display: block; padding: 5px 0 5px 14px; color: var(--dim); border-left: 1px solid var(--line); }
.toc a:hover, .toc a.on { color: var(--gold); border-left-color: var(--gold); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .el .features, .el .tiles { grid-template-columns: repeat(2, 1fr); }
  .el .status .grid { grid-template-columns: repeat(3, 1fr); } .el .status .cell:nth-child(4) { border-left: 0; } .el .status .cell { border-top: 1px solid var(--line); } .el .status .cell:nth-child(-n+3) { border-top: 0; }
  .docs { grid-template-columns: 240px minmax(0, 1fr); } .toc { display: none; }
  .sfoot .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .sitetop nav { display: none; }
  .sitetop .in { gap: 12px; } .sitetop .actions { margin-left: auto; } .social { display: none; }
  .burger { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; color: var(--ink); }
  .menu-toggle:checked ~ nav { display: grid; position: absolute; top: 68px; left: 0; right: 0; background: rgba(10,9,24,.96); padding: 12px 20px 20px; border-bottom: 1px solid var(--line); gap: 2px; }
  .menu-toggle:checked ~ nav a.on::after { display: none; }
  .el .news, .el .steps { grid-template-columns: 1fr; gap: 28px; } .el .step::before { display: none; } .el .step { padding: 0; }
  .docs { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .side { position: static; max-height: none; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface); }
  
}
@media (max-width: 600px) {
  .el .wrap { padding: 0 18px; } .sitetop .in { padding: 0 18px; }
  .el .features, .el .tiles { grid-template-columns: 1fr; }
  .el .tile { aspect-ratio: 16/10; }
  .el .status .grid { grid-template-columns: 1fr 1fr; } .el .status .cell { border-left: 0; border-top: 1px solid var(--line); } .el .status .cell:nth-child(-n+2) { border-top: 0; } .el .status .cell:nth-child(even) { border-left: 1px solid var(--line); }
  .el .hero .inner { padding: 50px 18px 110px; } .el .hero p.lead { font-size: 17px; }
  .el section.block { padding-top: 70px; } .el .community { padding: 40px 22px; }
  .sfoot .cols { grid-template-columns: 1fr; gap: 28px; } .pager { grid-template-columns: 1fr; }
  .el .head.row { flex-direction: column; align-items: start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Discord brand button (official blurple #5865F2 + white mark) */
svg.dc { width: 22px; height: 22px; fill: currentColor; flex: none; }
.social a.dcb { background: #5865F2; color: #fff; border-color: transparent; }
.social a.dcb:hover { background: #6b77f5; color: #fff; border-color: transparent; }
.social a.dcb .dc { width: 20px; height: 20px; }
.kbtn.discord { background: #5865F2; color: #fff; box-shadow: 0 8px 24px rgba(88,101,242,.35), inset 0 1px 0 rgba(255,255,255,.22); }
.kbtn.discord:hover { background: #6b77f5; color: #fff; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(88,101,242,.5), inset 0 1px 0 rgba(255,255,255,.22); }
.kbtn.discord .dc { width: 22px; height: 22px; }

/* Facebook brand look (official blue #0866FF circle with the white f) */
svg.fb { width: 22px; height: 22px; fill: #0866FF; flex: none; }
.social a.fbb { border-color: transparent; }
.social a.fbb .fb { width: 30px; height: 30px; }
.social a.fbb:hover { background: transparent; border-color: transparent; transform: translateY(-1px); }
.kbtn.facebook { background: #0866FF; color: #fff; box-shadow: 0 8px 24px rgba(8,102,255,.32), inset 0 1px 0 rgba(255,255,255,.22); }
.kbtn.facebook:hover { background: #2b7bff; color: #fff; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(8,102,255,.5), inset 0 1px 0 rgba(255,255,255,.22); }
.kbtn.facebook .fb { width: 24px; height: 24px; fill: #fff; }
.kbtn.facebook .fb circle { fill: #0866FF; }

/* Facebook button, toned down: dark glass button, only the logo carries the brand blue */
.kbtn.facebook { background: var(--surface); color: var(--ink); border-color: var(--line2); box-shadow: none; }
.kbtn.facebook:hover { background: var(--surface2); color: var(--ink); border-color: rgba(8,102,255,.6); box-shadow: 0 8px 24px rgba(8,102,255,.18); }
.kbtn.facebook .fb { fill: #0866FF; }
.kbtn.facebook .fb circle { fill: #fff; }

/* Discord: no background colour, same quiet treatment as Facebook. Only the logo carries the brand blurple. */
.social a.dcb { background: transparent; color: #5865F2; border-color: transparent; }
.social a.dcb:hover { background: transparent; color: #7983f5; border-color: transparent; transform: translateY(-1px); }
.social a.dcb .dc { width: 28px; height: 28px; }
.kbtn.discord { background: var(--surface); color: var(--ink); border-color: var(--line2); box-shadow: none; }
.kbtn.discord:hover { background: var(--surface2); color: var(--ink); border-color: rgba(88,101,242,.65); box-shadow: 0 8px 24px rgba(88,101,242,.2); }
.kbtn.discord .dc { fill: #5865F2; width: 24px; height: 24px; }

/* Top-bar Facebook: plain blue f glyph (no disc), matches the Discord glyph. Glyph path: Font Awesome Free (CC BY 4.0) facebook-f. */
.social a.fbb .fbf { height: 24px; width: auto; fill: #0866FF; transition: fill .15s; }
.social a.fbb:hover .fbf { fill: #3b86ff; }
.social a.fbb .fbf { height: 26px; }

/* ---------- subtle hero animation (CSS only; off for visitors who prefer reduced motion) ---------- */
@keyframes kdrift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-1.2%, -1%, 0); } }
@keyframes kmote { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 12% { opacity: .95; } 85% { opacity: .5; } 100% { transform: translate3d(var(--dx, 20px), -72vh, 0); opacity: 0; } }
@keyframes ksweep { 0%, 50% { transform: translateX(-70%); } 100% { transform: translateX(70%); } }
@keyframes kin { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.el .hero::before { animation: kdrift 30s ease-in-out infinite alternate; will-change: transform; }
.el .hero .inner { position: relative; z-index: 2; }
.motes { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.motes i { position: absolute; bottom: -12px; left: var(--x, 50%); width: var(--s, 4px); height: var(--s, 4px); border-radius: 50%; background: radial-gradient(circle, #fff1c2 0%, rgba(233,196,106,.65) 45%, rgba(233,196,106,0) 72%); box-shadow: 0 0 10px 2px rgba(233,196,106,.35); opacity: 0; animation: kmote var(--d, 18s) linear infinite; animation-delay: var(--l, 0s); }
.sweep { position: absolute; inset: -10% -40%; z-index: 1; pointer-events: none; background: linear-gradient(104deg, transparent 38%, rgba(255,222,160,.11) 50%, transparent 62%); animation: ksweep 13s ease-in-out infinite; }
.el .hero .mark { animation: kin 1.1s .1s both cubic-bezier(.2,.7,.2,1); }
.el .hero p.lead { animation: kin 1s .4s both cubic-bezier(.2,.7,.2,1); }
.el .hero .cta { animation: kin 1s .65s both cubic-bezier(.2,.7,.2,1); }
.motes i:nth-child(1) { --x: 6%; --s: 3px; --d: 15s; --l: 0s; --dx: 18px; }
.motes i:nth-child(2) { --x: 13%; --s: 4px; --d: 19s; --l: 4s; --dx: -24px; }
.motes i:nth-child(3) { --x: 21%; --s: 3px; --d: 16s; --l: 9s; --dx: 20px; }
.motes i:nth-child(4) { --x: 29%; --s: 5px; --d: 22s; --l: 2s; --dx: -16px; }
.motes i:nth-child(5) { --x: 37%; --s: 3px; --d: 17s; --l: 11s; --dx: 26px; }
.motes i:nth-child(6) { --x: 45%; --s: 4px; --d: 20s; --l: 6s; --dx: -20px; }
.motes i:nth-child(7) { --x: 52%; --s: 3px; --d: 15s; --l: 13s; --dx: 14px; }
.motes i:nth-child(8) { --x: 59%; --s: 5px; --d: 23s; --l: 1s; --dx: -28px; }
.motes i:nth-child(9) { --x: 66%; --s: 3px; --d: 18s; --l: 8s; --dx: 22px; }
.motes i:nth-child(10) { --x: 73%; --s: 4px; --d: 21s; --l: 12s; --dx: -18px; }
.motes i:nth-child(11) { --x: 80%; --s: 3px; --d: 16s; --l: 3s; --dx: 24px; }
.motes i:nth-child(12) { --x: 86%; --s: 5px; --d: 24s; --l: 7s; --dx: -22px; }
.motes i:nth-child(13) { --x: 92%; --s: 3px; --d: 17s; --l: 10s; --dx: 16px; }
.motes i:nth-child(14) { --x: 97%; --s: 4px; --d: 19s; --l: 5s; --dx: -14px; }

@keyframes kreveal { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
@supports (animation-timeline: view()) {
  .el .feat, .el .tile, .el .note, .el .step, .el .community { animation: kreveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
}
@media (prefers-reduced-motion: reduce) {
  .el .hero::before, .motes i, .sweep, .el .hero .mark, .el .hero p.lead, .el .hero .cta, .el .feat, .el .tile, .el .note, .el .step, .el .community { animation: none !important; }
  .motes, .sweep { display: none; }
}

/* green glow for live status numbers */
.el .status b.glow { color: var(--mint); text-shadow: 0 0 12px rgba(74,222,154,.65), 0 0 28px rgba(74,222,154,.35); }

/* section titles stay on one line on wide screens; the paragraph underneath keeps a comfortable reading width */
.el .head { max-width: none; }
.el .head p { max-width: 640px; }
@media (max-width: 700px) { .el .head h2 { font-size: clamp(24px, 7vw, 30px); } }
.el .head p { max-width: 780px; text-wrap: pretty; }

/* Explore tiles: four matching paintings (landscape, 2x2) instead of crops of the hero */
.el .tiles { grid-template-columns: repeat(2, 1fr); gap: 18px; }
.el .tile { aspect-ratio: 16 / 10; }
.el .tile::before { background: var(--art) center / cover no-repeat; }
.el .tile::after { background: linear-gradient(180deg, rgba(10,9,24,0) 38%, rgba(10,9,24,.88) 100%); }
.el .tile.t1 { --art: url("img/tiles/tile-guide.jpg"); }
.el .tile.t2 { --art: url("img/tiles/tile-events.jpg"); }
.el .tile.t3 { --art: url("img/tiles/tile-database.jpg"); }
.el .tile.t4 { --art: url("img/tiles/tile-download.jpg"); }
.el .tile .t h3 { font-size: 28px; }
@media (max-width: 600px) { .el .tiles { grid-template-columns: 1fr; } .el .tile .t h3 { font-size: 24px; } }

/* ---------- Leveling guide preview (DRAFT) ---------- */
.draftbar { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px; border: 1px dashed rgba(240,138,168,.6); background: rgba(240,138,168,.08); color: #f6c9d7; font-size: 14px; margin-bottom: 22px; }
.draftbar b { letter-spacing: .16em; font-size: 12px; background: rgba(240,138,168,.2); border: 1px solid rgba(240,138,168,.55); padding: 4px 10px; border-radius: 999px; color: #ffd9e4; }
.picker { border: 1px solid var(--line2); border-radius: 18px; padding: 22px; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)); margin: 8px 0 26px; }
.picker h3 { margin: 0 0 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.prow + .prow { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.cgroup + .cgroup { margin-top: 14px; }
.cgroup h4 { margin: 0 0 8px; font-size: 12px; color: var(--dim); font-weight: 600; letter-spacing: .06em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 14px/1 var(--sans); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface); color: var(--muted); cursor: pointer; transition: all .15s; }
.chip:hover { color: var(--ink); background: var(--surface2); }
.chip.on { background: rgba(233,196,106,.14); border-color: rgba(233,196,106,.65); color: var(--gold); font-weight: 600; }
.lvl { display: flex; align-items: center; gap: 18px; }
.lvl input[type=range] { flex: 1; accent-color: #e9c46a; height: 6px; }
.lvl input[type=number] { width: 84px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface); color: var(--ink); font: 600 18px var(--sans); text-align: center; }
.result .rhead { margin: 8px 0 18px; }
.result .rhead h2 { margin: 6px 0 0; padding: 0; font-size: 30px; }
.spots { display: grid; gap: 12px; margin: 18px 0 30px; }
.spot { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--surface); }
.spot.fav { border-color: rgba(233,196,106,.5); background: rgba(233,196,106,.06); }
.spot .stop { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.spot b { font-size: 16px; }
.spot p { margin: 6px 0 0; font-size: 14.5px; color: var(--muted); }
.advice { border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; background: var(--surface); }
.advice h3 { margin: 0 0 12px; font-family: var(--serif); font-size: 22px; }
.advice dl { margin: 0; display: grid; grid-template-columns: 120px 1fr; gap: 10px 18px; }
.advice dt { color: var(--gold); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; padding-top: 3px; }
.advice dd { margin: 0; color: #d6d1ec; font-size: 15px; }
.advice .fine { margin: 16px 0 0; font-size: 13px; color: var(--dim); }
@media (max-width: 600px) { .advice dl { grid-template-columns: 1fr; gap: 2px; } .advice dd { margin-bottom: 10px; } .lvl { flex-direction: column; align-items: stretch; } .lvl input[type=number] { width: 100%; } }

/* class picture beside the class tips */
.classhead { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: center; margin-bottom: 20px; }
.classart { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid rgba(233,196,106,.45); background: var(--bg2); aspect-ratio: 1 / 1; position: relative; box-shadow: 0 12px 34px rgba(0,0,0,.45); }
.classart img { width: 100%; height: 100%; object-fit: cover; display: block; }
.classart.soon img { object-fit: contain; padding: 22%; opacity: .5; }
.classart figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px; text-align: center; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); background: linear-gradient(180deg, transparent, rgba(10,9,24,.85)); }
.classtitle h3 { margin: 6px 0 8px; font-size: 30px; }
.classtitle p { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .classhead { grid-template-columns: 1fr; } .classart { max-width: 260px; } }

/* ---------- bridge: older pages (register, download, tables, forms ...) pick up the new palette through the shared variables ---------- */
:root { --card: #15132e; --card2: #1d1a3c; --nav: #0a0918; --purple: #9887f8; --purple2: #6f5bdc; --purple-soft: #c4baff; --green: #4ade9a; --line2: rgba(255,255,255,.18); }
.btn.primary { background: linear-gradient(180deg, #f0cf7f, #d9ab48); border-color: transparent; color: #2b1d02; border-radius: 10px; box-shadow: 0 8px 24px rgba(233,196,106,.22), inset 0 1px 0 rgba(255,255,255,.4); }
.btn.primary:hover { filter: none; transform: translateY(-1px); }
.page, .panel, .gcard { border-radius: var(--radius); }

/* ---------- live data on the home page ---------- */
.el .status b.down { color: #ff7a7a; text-shadow: 0 0 12px rgba(255,107,107,.5); }
.el .status .led.off { background: #ff6b6b; box-shadow: 0 0 0 4px rgba(255,107,107,.16), 0 0 14px rgba(255,107,107,.6); }
.el .status b.time { font-size: 15px; line-height: 1.35; }
.slegal a { color: var(--dim); text-decoration: underline; text-decoration-color: var(--line2); }
.slegal a:hover { color: var(--ink); }
.sfoot .slegal { margin-top: 0; }

/* page header picture (shown only when static/img/pages/<slug>.jpg exists) */
.pagehero { position: relative; margin: 0 0 28px; aspect-ratio: 16 / 5; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.pagehero img { width: 100%; height: 100%; object-fit: cover; }
.pagehero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,9,24,0) 45%, rgba(10,9,24,.7) 100%); }
@media (max-width: 600px) { .pagehero { aspect-ratio: 16 / 8; } }

/* guide hub (cards) */
.docs.hub { grid-template-columns: minmax(0, 1fr); max-width: 1180px; }
.docs.hub .gcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.docs.hub .gc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--ink); display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, background .2s, transform .2s; }
.docs.hub .gc:hover { border-color: rgba(233,196,106,.45); background: var(--surface2); transform: translateY(-3px); color: var(--ink); }
.docs.hub .gc .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(233,196,106,.10); color: var(--gold); border: 1px solid rgba(233,196,106,.25); }
.docs.hub .gc small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.docs.hub .gc h3 { font-family: var(--serif); font-size: 21px; }
.docs.hub .gc p { margin: 0; color: var(--muted); font-size: 14.5px; }
.docs.hub h1 { font-family: var(--serif); font-size: clamp(32px, 4.4vw, 46px); margin-bottom: 12px; }
.docs.hub .lead { font-size: 19px; color: #d9d4ee; margin: 0 0 30px; }
@media (max-width: 1100px) { .docs.hub .gcards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .docs.hub .gcards { grid-template-columns: 1fr; } }

/* legacy guide content inside the new article */
.doc.gbody { max-width: 760px; }
.doc.gbody .note { background: rgba(233,196,106,.07); border: 1px solid rgba(233,196,106,.3); border-left-width: 3px; border-radius: 12px; }

/* badges inside the guide (leveling spots) */
.docs .badge { font-size: 10.5px; letter-spacing: .12em; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(152,135,248,.16); color: #c4baff; border: 1px solid rgba(152,135,248,.35); }
.docs .badge.new { background: rgba(233,196,106,.14); color: var(--gold); border-color: rgba(233,196,106,.4); }
.toc[hidden] { display: none; }

@media (max-width: 600px) { .doc table { display: block; overflow-x: auto; max-width: 100%; } }
code { overflow-wrap: anywhere; }
@media (max-width: 600px) { .cal { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cal div { overflow-wrap: anywhere; } }
@media (max-width: 860px) {
  .side { padding: 12px 14px 14px; }
  .side h5 { margin: 12px 0 6px; padding: 0; }
  .side ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .side a { padding: 7px 11px; font-size: 13.5px; background: var(--surface); border-color: var(--line); }
}
.side { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }

/* ---------- inner pages (sign up, download, rules, forgot ...): solid glass card, more room ---------- */
.page { max-width: 700px; margin: 56px auto 48px; padding: 40px 28px; background: linear-gradient(180deg, #1b1838 0%, #141229 100%); border: 1px solid var(--line2); border-radius: 22px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.07); line-height: 1.7; }
.page.wide { max-width: 940px; }
@media (min-width: 600px) { .page { padding: 54px 60px; } }
.page h1 { font-family: var(--serif); font-size: clamp(30px, 4.4vw, 42px); line-height: 1.15; margin-bottom: 14px; }
.page h2 { font-family: var(--serif); font-size: 24px; margin: 44px 0 10px; }
.page p { margin: 14px 0; }
.page .lead { font-size: 17px; line-height: 1.7; color: #cfcae6; margin: 14px 0; }
.page .rules { padding-left: 22px; margin: 18px 0 22px; }
.page .rules li { margin: 16px 0; padding-left: 4px; }
.page code { word-break: break-all; }
.page label { margin: 26px 0 8px; font-size: 15px; }
.page input[type=text], .page input[type=password], .page input[type=email] { padding: 14px 16px; font-size: 16px; background: rgba(0,0,0,.32); border: 1px solid var(--line2); border-radius: 12px; }
.page input[type=text]:focus, .page input[type=password]:focus, .page input[type=email]:focus { border-color: rgba(233,196,106,.6); outline: none; box-shadow: 0 0 0 3px rgba(233,196,106,.14); }
.page small { margin-top: 8px; line-height: 1.55; }
.page fieldset { margin: 28px 0 0; padding: 18px 22px 16px; border-radius: 14px; }
.page .choice { margin: 8px 22px 8px 0; }
.page .choice.check { margin: 20px 0 0; }
.page .cf-turnstile { margin: 30px 0 0; }
.page button.submit { margin-top: 30px; height: 54px; font-size: 16px; color: #2b1d02; background: linear-gradient(180deg, #f0cf7f, #d9ab48); border: 0; border-radius: 12px; box-shadow: 0 8px 24px rgba(233,196,106,.22), inset 0 1px 0 rgba(255,255,255,.4); }
.page button.submit:hover { filter: none; transform: translateY(-1px); }
.page .btn { height: 48px; padding: 0 28px; border-radius: 12px; margin: 4px 0; }
.page .warn, .page .err, .page .alert, .page .ok { padding: 12px 14px; border-radius: 10px; margin-top: 14px; }

/* more room between the big buttons (hero and community) */
.el .hero .cta { gap: 32px; }
.el .community .cta { gap: 26px; }
@media (max-width: 600px) { .el .hero .cta, .el .community .cta { gap: 16px; } }

/* secondary buttons were see-through over the hero picture: solid dark fill instead */
.kbtn.ghost, .kbtn.discord, .kbtn.facebook { background: #1b1838; border-color: rgba(255,255,255,.22); backdrop-filter: none; }
.kbtn.ghost:hover, .kbtn.discord:hover, .kbtn.facebook:hover { background: #26224a; }
.kbtn.ghost:hover { border-color: rgba(233,196,106,.55); }

/* page header pictures are 16:9: a slightly taller banner so the art is not cropped too hard */
.pagehero { aspect-ratio: 16 / 6; }
.page .pagehero { margin: 0 0 30px; }
.dbwrap .pagehero { margin: 0 0 24px; }
@media (max-width: 600px) { .pagehero { aspect-ratio: 16 / 8; } }

/* Guide landing page: side menu on the left, cards on the right */
.docs.hub { grid-template-columns: 260px minmax(0, 1fr); max-width: 1280px; }
.docs.hub .hubmain { min-width: 0; }
.docs.hub .gcards { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .docs.hub { grid-template-columns: 240px minmax(0, 1fr); } .docs.hub .gcards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .docs.hub { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .docs.hub .gcards { grid-template-columns: 1fr; } }

/* tables: headers follow their column (the browser default centres them) */
.rate-table th { text-align: left; }
.board { table-layout: fixed; }
.board th, .board td { padding: 14px 18px; }
.board th:nth-child(1), .board td:nth-child(1) { width: 12%; }
.board th:nth-child(2), .board td:nth-child(2) { width: 28%; }
.board th:nth-child(n+3), .board td:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; }
.board td:nth-child(n+4) { font-weight: 400; color: var(--muted); }
.board td:nth-child(3) { font-weight: 700; color: var(--ink); }
@media (max-width: 600px) { .board th, .board td { padding: 12px 10px; } .board th:nth-child(1), .board td:nth-child(1) { width: 14%; } .board th:nth-child(2), .board td:nth-child(2) { width: 26%; } }

/* leveling guide: the class introduction now sits above "Where to level" */
.result > .advice { margin: 8px 0 38px; }
.result .rhead { margin-top: 0; }

/* guide search box and results */
.side .search { margin-bottom: 14px; }
.side .search:focus-within { border-color: rgba(233,196,106,.6); box-shadow: 0 0 0 3px rgba(233,196,106,.14); }
.side .search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: inherit; padding: 0; }
.side .search input::placeholder { color: var(--dim); }
.side .search input::-webkit-search-cancel-button { filter: invert(.7); }
.side .gresults { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.side .gresults[hidden] { display: none; }
.side .gresults a { display: block; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.side .gresults a:hover { border-color: rgba(233,196,106,.45); background: var(--surface2); }
.side .gresults b { display: block; color: var(--gold); font-size: 14.5px; margin-bottom: 2px; }
.side .gresults span { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.5; font-weight: 400; }
.side .gresults .none { color: var(--dim); font-size: 13.5px; padding: 6px 12px; }
.side.searching > h5, .side.searching > ul:not(.gresults) { display: none; }

/* Support page: manual donations */
.approve-card { background: rgba(255,255,255,.04); border: 1px solid var(--line2); border-radius: 14px; padding: 8px 18px; margin: 18px 0; }
.approve-card p { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 10px 0; }
.approve-card span { color: var(--muted); }
.approve-card strong { word-break: break-all; text-align: right; }
.approve-form { display: flex; flex-direction: column; gap: 14px; margin: 22px 0; }
.bigbtn { font-size: 20px; padding: 18px 20px; min-height: 64px; border-radius: 14px; border: 0; cursor: pointer; font-weight: 700; color: #fff; }
.bigbtn.yes { background: #2f8f4e; }
.bigbtn.no { background: #8a3a3a; }
.result { font-size: 19px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line2); }
.result.yes { border-color: #2f8f4e; }
.result.no { border-color: #8a3a3a; }
.gcash-qr { display: block; max-width: 260px; width: 100%; height: auto; border-radius: 12px; margin: 14px 0; background: #fff; }
