:root {
  --bg: #0b1412;
  --bg2: #0f1a18;
  --panel: #13201d;
  --panel2: #182926;
  --line: rgba(156, 255, 176, .12);
  --line2: rgba(156, 255, 176, .22);
  --dark: #3c5c59;
  --light: #9cffb0;
  --ink: #0e1d1a;
  --text: #e8fff0;
  --muted: rgba(232, 255, 240, .62);
  --faint: rgba(232, 255, 240, .4);
  --red: #e0493f;
  --radius: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 15px/1.55 'Inter', system-ui, sans-serif; }
a { color: var(--light); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: 'Oswald', sans-serif; font-weight: 600; letter-spacing: .01em; margin: 0; line-height: 1.2; }
img { max-width: 100%; }
svg { flex-shrink: 0; }

/* ------------------------------------------------------------ header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(11, 20, 18, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 22px; height: 64px; padding-right: 16px; }
/* Kushty's own logo: hexagon K badge + the "kushty rp" wordmark of the in-game HUD (rp in gold) */
.brand { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 18px 0 16px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; height: 36px; width: auto; transition: filter .15s; }
.brand:hover .brand-logo { filter: brightness(1.12); }
.nav { display: flex; align-items: stretch; height: 64px; gap: 4px; }
.nav a { display: flex; align-items: center; padding: 0 12px; color: var(--muted); font: 500 13px 'Oswald', sans-serif; letter-spacing: .08em; text-transform: uppercase; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a.on { color: var(--light); border-bottom-color: var(--light); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 13px; }
.top-right a, .top-right button { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); background: none; border: 0; cursor: pointer; }
.top-right a:hover, .top-right button:hover { color: var(--text); text-decoration: none; }
.top-right svg, .icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: none; border: 0; color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--text); background: var(--panel); }
.user-menu { position: relative; }
.user-menu .menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 200px; padding: 6px; background: var(--panel2); border: 1px solid var(--line2); border-radius: var(--radius); box-shadow: var(--shadow); }
.user-menu .menu a, .user-menu .menu button { display: flex; width: 100%; padding: 9px 12px; border-radius: 6px; color: var(--text); font-size: 14px; }
.user-menu .menu a:hover, .user-menu .menu button:hover { background: rgba(156, 255, 176, .08); }
.burger { display: none; width: 40px; height: 40px; margin-left: auto; background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 8px; }
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
.search-bar { max-width: 1240px; margin: 0 auto; display: flex; gap: 8px; padding: 10px 16px 14px; }
.search-bar input { flex: 1; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; height: 300px; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg2); }
.hero.big { height: 460px; }
.hero-slides { position: absolute; inset: 0; }
.hero-slides div { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.04); }
.hero-slides div.on { opacity: 1; animation: drift 12s linear forwards; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 20, 18, .95) 0%, rgba(11, 20, 18, .7) 45%, rgba(60, 92, 89, .25) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 40%); }
.hero-inner { position: relative; z-index: 1; max-width: 1240px; height: 100%; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.hero h1 { font-size: 46px; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--light); }
.hero-welcome { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.hero-logo { height: 84px; width: auto; filter: drop-shadow(0 4px 18px rgba(0,0,0,.5)); }
.hero p { max-width: 520px; margin: 0; color: var(--muted); font-weight: 500; }
.hero .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* ------------------------------------------------------------ layout */
.wrap { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 22px 16px 60px; outline: none; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.card + .card, .stack > * + * { margin-top: 16px; }
.pad { padding: 18px 20px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 20px; font-size: 12px; color: var(--faint); border-bottom: 1px solid var(--line); }
.crumbs a { color: var(--muted); }
.crumbs span.sep { opacity: .6; }
.page-title { padding: 18px 20px; }
.page-title h1 { font-size: 24px; font-weight: 500; }
.page-title p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.cat-head { padding: 12px 20px; font: 500 14px 'Oswald', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--light); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(60, 92, 89, .45), transparent); border-radius: var(--radius) var(--radius) 0 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }

/* ------------------------------------------------------------ forum node rows */
.node { display: grid; grid-template-columns: 34px minmax(0, 1fr) 150px 300px; align-items: center; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); }
.node:first-child, .cat-head + .node { border-top: 0; }
.node-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--dark); stroke-width: 1.8; }
.node.new .node-icon svg { stroke: var(--light); }
.node-title { font-weight: 600; color: var(--text); }
.node-title:hover { color: var(--light); }
.node-desc { font-size: 13px; color: var(--muted); }
.subs { position: relative; display: inline-block; margin-top: 2px; font-size: 12px; }
.subs > button { background: none; border: 0; color: var(--faint); padding: 0; cursor: pointer; }
.subs > button:hover { color: var(--light); }
.subs .sub-list { position: absolute; z-index: 5; top: 100%; left: 0; min-width: 240px; padding: 6px; background: var(--panel2); border: 1px solid var(--line2); border-radius: var(--radius); box-shadow: var(--shadow); }
.subs .sub-list a { display: block; padding: 7px 10px; border-radius: 5px; color: var(--text); }
.subs .sub-list a:hover { background: rgba(156, 255, 176, .08); text-decoration: none; }
.counts { display: flex; justify-content: center; gap: 22px; text-align: center; }
.counts b { display: block; font-weight: 500; font-size: 14px; }
.counts small { font-size: 11px; color: var(--faint); }
.latest { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 12px; }
.latest .t { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text); }
.latest .m { color: var(--faint); }
.latest .m a { color: var(--muted); }
.badge-new { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 3px; background: var(--light); color: var(--ink); font: 700 10px 'Inter', sans-serif; letter-spacing: .04em; vertical-align: 2px; }

.avatar { flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font: 600 13px 'Oswald', sans-serif; color: var(--ink); background: var(--light); }
.avatar.lg { width: 84px; height: 84px; font-size: 32px; border-radius: 12px; }
.avatar.md { width: 44px; height: 44px; font-size: 17px; }

/* prefixes */
.prefix { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 3px; font: 600 10.5px 'Inter', sans-serif; letter-spacing: .02em; color: #fff; vertical-align: 1px; white-space: nowrap; }
.p-important { background: var(--red); }
.p-approved { background: #2e9d5a; }
.p-rejected { background: #6b7479; }
.p-pending-review { background: #e0783a; }
.p-on-consideration { background: #3a7be0; }
.p-reviewed { background: var(--light); color: var(--ink); }
.p-interesting { background: #36a9cf; }
.p-for-the-guide { background: #b8403a; }
.p-closed { background: #444c50; }

/* thread list */
.threads-head, .thread-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 70px 70px 170px; gap: 14px; align-items: center; padding: 10px 20px; }
.threads-head { font-size: 12px; color: var(--faint); border-bottom: 1px solid var(--line); }
.threads-head span:nth-child(n+3), .thread-row .num { text-align: center; }
.thread-row { border-top: 1px solid var(--line); }
.thread-row:first-of-type { border-top: 0; }
.thread-row.pinned { background: rgba(156, 255, 176, .03); }
.thread-row .tt { font-weight: 500; color: var(--text); }
.thread-row .tt:hover { color: var(--light); }
.thread-row .sub { font-size: 12px; color: var(--faint); }
.thread-row .num { font-size: 13px; }
.thread-row .last { text-align: right; font-size: 12px; color: var(--faint); }
.thread-row .last b { display: block; color: var(--muted); font-weight: 500; }
.lock-icon svg { width: 13px; height: 13px; fill: none; stroke: var(--faint); stroke-width: 2; vertical-align: -2px; margin-left: 6px; }
.filters { display: flex; justify-content: flex-end; padding: 10px 20px; border-bottom: 1px solid var(--line); gap: 10px; }
.empty { padding: 26px 20px; color: var(--muted); text-align: center; }
.post-note { display: flex; justify-content: flex-end; margin-top: 10px; }
.post-note .pill { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line2); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--panel); }
.pager { display: flex; gap: 6px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 32px; height: 32px; display: grid; place-items: center; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.pager span.on { background: var(--light); border-color: var(--light); color: var(--ink); font-weight: 700; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0; }

/* thread view */
.post { display: grid; grid-template-columns: 170px minmax(0, 1fr); border-top: 1px solid var(--line); }
.post:first-child { border-top: 0; }
.post-side { padding: 18px 14px; text-align: center; border-right: 1px solid var(--line); background: rgba(60, 92, 89, .12); }
.post-side .avatar { margin: 0 auto 10px; }
.post-side .who { font-weight: 600; word-break: break-word; }
.post-side .role { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.role-admin { background: var(--red); color: #fff; }
.role-moderator { background: #3a7be0; color: #fff; }
.role-user { background: rgba(156, 255, 176, .12); color: var(--muted); }
.post-side .facts { margin-top: 10px; font-size: 12px; color: var(--faint); }
.post-main { padding: 14px 20px 16px; min-width: 0; display: flex; flex-direction: column; }
.post-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--faint); padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.post-actions { display: flex; gap: 12px; margin-top: auto; padding-top: 12px; font-size: 12px; }
.post-actions button { background: none; border: 0; padding: 0; color: var(--faint); cursor: pointer; }
.post-actions button:hover { color: var(--light); }
.thread-head h1 { font-size: 26px; font-weight: 500; }
.thread-head .meta { margin-top: 6px; font-size: 13px; color: var(--muted); }
.modbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); background: rgba(60, 92, 89, .15); font-size: 13px; }
.modbar b { font: 500 12px 'Oswald', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--light); margin-right: 6px; }

/* rendered text (posts + wiki) */
.md { word-wrap: break-word; overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p, .md ul, .md ol, .md blockquote, .md table { margin: 0 0 12px; }
.md h1 { font-size: 28px; margin: 0 0 14px; }
.md h2 { font-size: 21px; margin: 22px 0 10px; color: var(--light); }
.md h3 { font-size: 17px; margin: 18px 0 8px; }
.md ul, .md ol { padding-left: 22px; }
.md li + li { margin-top: 4px; }
.md blockquote { padding: 10px 14px; border-left: 3px solid var(--light); background: rgba(156, 255, 176, .06); border-radius: 0 6px 6px 0; color: var(--muted); }
.md code { padding: 1px 6px; border-radius: 4px; background: rgba(156, 255, 176, .1); font-family: Consolas, monospace; font-size: .92em; }
.md table { width: 100%; border-collapse: collapse; font-size: 14px; }
.md th, .md td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.md th { background: rgba(60, 92, 89, .35); font-weight: 600; }
.md img { border-radius: 6px; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* ------------------------------------------------------------ forms & buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border: 0; border-radius: 6px; background: var(--light); color: var(--ink); font: 600 13px 'Oswald', sans-serif; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line2); }
.btn.dark { background: var(--dark); color: var(--text); }
.btn.danger { background: transparent; color: #ff8a80; border: 1px solid rgba(224, 73, 63, .5); }
.btn.small { height: 32px; padding: 0 12px; font-size: 12px; }
.btn.discord { background: #5865f2; color: #fff; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
input[type=text], input[type=email], input[type=password], input[type=search], input:not([type]), select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--line2); background: var(--bg2); color: var(--text); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--light); box-shadow: 0 0 0 3px rgba(156, 255, 176, .14); }
select { width: auto; }
textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
label { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.form { max-width: 440px; margin: 0 auto; }
.form h1 { font-size: 28px; margin-bottom: 4px; }
.form .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.form .alt { margin-top: 18px; font-size: 14px; color: var(--muted); }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--faint); font-size: 12px; }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.error { margin-top: 12px; padding: 10px 12px; border-radius: 6px; background: rgba(224, 73, 63, .14); border: 1px solid rgba(224, 73, 63, .35); color: #ffb3ad; font-size: 14px; }
.ok { margin-top: 12px; padding: 10px 12px; border-radius: 6px; background: rgba(156, 255, 176, .1); border: 1px solid var(--line2); color: var(--light); font-size: 14px; }
.hint { font-size: 12px; color: var(--faint); margin-top: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.tabs button { background: none; border: 1px solid var(--line); color: var(--muted); padding: 5px 12px; border-radius: 5px; cursor: pointer; font-size: 13px; }
.tabs button.on { background: var(--panel2); color: var(--light); border-color: var(--line2); }
.preview { min-height: 180px; padding: 12px; border: 1px dashed var(--line2); border-radius: 6px; }

/* ------------------------------------------------------------ home */
.status { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: -64px; position: relative; z-index: 2; box-shadow: var(--shadow); }
.status > div { padding: 18px 20px; border-left: 1px solid var(--line); }
.status > div:first-child { border-left: 0; }
.status small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.status b { display: block; margin-top: 4px; font: 600 26px 'Oswald', sans-serif; }
.status .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: var(--light); box-shadow: 0 0 10px var(--light); vertical-align: 3px; }
.status .dot.off { background: var(--red); box-shadow: none; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin: 40px 0 16px; }
.section-title h2 { font-size: 28px; }
.section-title h2 em { font-style: normal; color: var(--light); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { position: relative; min-height: 230px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel) center / cover no-repeat; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; color: var(--text); }
.feature::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 15, 13, .95) 10%, rgba(8, 15, 13, .35) 60%, rgba(8, 15, 13, .1)); transition: background .2s; }
.feature:hover { text-decoration: none; }
.feature:hover::before { background: linear-gradient(0deg, rgba(8, 15, 13, .95) 10%, rgba(60, 92, 89, .45) 70%, rgba(60, 92, 89, .2)); }
.feature > * { position: relative; }
.feature h3 { font-size: 21px; }
.feature p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.feature .tag { align-self: flex-start; margin-bottom: 10px; padding: 3px 8px; border-radius: 3px; background: var(--light); color: var(--ink); font: 700 10px 'Inter', sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.feature.wide { grid-column: span 2; }
.news-item { display: block; padding: 16px 20px; border-top: 1px solid var(--line); color: var(--text); }
.news-item:first-child { border-top: 0; }
.news-item:hover { text-decoration: none; background: rgba(156, 255, 176, .03); }
.news-item h3 { font-size: 18px; }
.news-item .ex { margin-top: 6px; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { padding: 22px; }
.step .n { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--light); color: var(--light); font: 600 18px 'Oswald', sans-serif; margin-bottom: 12px; }
.step h3 { font-size: 19px; }
.step p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.mini-list a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--text); font-size: 13px; }
.mini-list a:first-child { border-top: 0; }
.mini-list a:hover { text-decoration: none; background: rgba(156, 255, 176, .03); }
.mini-list .t { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mini-list small { display: block; color: var(--faint); font-size: 11px; }
.side-title { padding: 12px 16px; font: 500 13px 'Oswald', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--light); border-bottom: 1px solid var(--line); }

/* ------------------------------------------------------------ wiki */
.wiki { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.wiki-nav { position: sticky; top: 80px; padding: 8px 0; max-height: calc(100vh - 100px); overflow-y: auto; }
.wiki-nav h4 { padding: 12px 18px 6px; font: 500 12px 'Oswald', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.wiki-nav a { display: block; padding: 7px 18px; color: var(--muted); font-size: 14px; border-left: 3px solid transparent; }
.wiki-nav a:hover { color: var(--text); text-decoration: none; background: rgba(156, 255, 176, .04); }
.wiki-nav a.on { color: var(--light); border-left-color: var(--light); background: rgba(156, 255, 176, .06); }
.wiki-page { padding: 26px 30px; }
.wiki-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }

/* ------------------------------------------------------------ account / profile */
.profile-head { display: flex; align-items: center; gap: 20px; }
.profile-head h1 { font-size: 30px; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; font-size: 14px; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; }
.discord-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.discord-box img { width: 44px; height: 44px; border-radius: 50%; }

/* ------------------------------------------------------------ footer etc */
.foot { border-top: 1px solid var(--line); background: var(--bg2); }
.foot-inner { max-width: 1240px; margin: 0 auto; padding: 18px 16px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--faint); }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); }
.cookie { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: max-content; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: var(--radius); background: var(--panel2); border: 1px solid var(--line2); box-shadow: var(--shadow); font-size: 13px; color: var(--muted); }
.toast { position: fixed; right: 16px; bottom: 16px; z-index: 70; max-width: 360px; padding: 12px 16px; border-radius: var(--radius); background: var(--panel2); border: 1px solid var(--line2); box-shadow: var(--shadow); font-size: 14px; }
.toast.bad { border-color: rgba(224, 73, 63, .5); color: #ffb3ad; }
.loading { padding: 60px 0; text-align: center; color: var(--faint); }

/* ------------------------------------------------------------ small screens */
@media (max-width: 1000px) {
  .node { grid-template-columns: 30px minmax(0, 1fr) 130px; }
  .node .latest { display: none; }
  .grid2, .wiki { grid-template-columns: 1fr; }
  .wiki-nav { position: static; max-height: none; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature.wide { grid-column: span 2; }
}
@media (max-width: 800px) {
  .burger { display: flex; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; height: auto; flex-direction: column; padding: 8px 16px 14px; background: var(--bg2); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; border-bottom: 0; }
  .top-right { margin-left: 0; }
  .top-right .label { display: none; }
  .brand { padding-right: 10px; }
  .brand-logo { height: 30px; }
  .hero h1 { font-size: 34px; }
  .hero-logo { height: 58px; }
  .hero, .hero.big { height: 340px; }
  .status { grid-template-columns: 1fr 1fr; margin-top: -40px; }
  .status > div:nth-child(3) { border-left: 0; }
  .status > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .features, .steps { grid-template-columns: 1fr; }
  .feature.wide { grid-column: auto; }
  .node { grid-template-columns: 26px minmax(0, 1fr); }
  .node .counts { display: none; }
  .threads-head { display: none; }
  .thread-row { grid-template-columns: 36px minmax(0, 1fr); }
  .thread-row .num, .thread-row .last { display: none; }
  .post { grid-template-columns: 1fr; }
  .post-side { display: flex; align-items: center; gap: 12px; text-align: left; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; }
  .post-side .avatar { margin: 0; }
  .post-side .facts { display: none; }
  .two { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .wiki-page { padding: 20px 18px; }
}

/* features / events pages */
.feature-big { min-height: 300px; }
.feature-list { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.feature-list li + li { margin-top: 3px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-grid .card + .card { margin-top: 0; }
.feature-card h3 { font-size: 19px; color: var(--light); }
.feature-card p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.event-grid .card + .card { margin-top: 0; }
.event-card { display: flex; gap: 18px; align-items: flex-start; }
.event-when { flex: none; width: 92px; text-align: center; padding: 10px 6px; border-radius: 6px; background: rgba(156, 255, 176, .08); border: 1px solid var(--line); }
.event-when b { display: block; font: 600 24px 'Oswald', sans-serif; color: var(--light); }
.event-when small { color: var(--muted); font-size: 12px; }
.event-card h3 { font-size: 20px; margin: 4px 0 6px; }
.event-card p { margin: 0 0 6px; font-size: 14px; }
.event-vs { display: inline-block; padding: 2px 8px; border-radius: 3px; background: var(--light); color: var(--ink); font: 700 10px 'Inter', sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.event-prize { color: #f5c542; font-weight: 600; }
@media (max-width: 1000px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .event-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } .event-card { flex-direction: column; } .event-when { width: auto; } }

/* Enhanced / Legacy support page */
.support-table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: 14px; }
.support-table th, .support-table td { padding: 10px 12px; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); text-align: left; vertical-align: top; }
.support-table th { color: #f5c542; font-weight: 600; }
.support-table td:first-child { color: var(--muted); white-space: nowrap; }
@media (max-width: 600px) { .support-table { font-size: 13px; } .support-table td:first-child { white-space: normal; } }
